2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blobc45e77a9972263db2ba0d436bcc63e576c24cd70
1 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3         * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
4         on function entities whose return type is a limited view.
5         * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
6         where to place the freeze node for a function that returns the
7         limited view of a type, when the function is called and frozen
8         in a different unit.
10 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
12         * sem_ch3.adb (Build_Derived_Private_Type): Minor code
13         refactoring.
15 2014-08-04  Robert Dewar  <dewar@adacore.com>
17         * gnat_ugn.texi: Clarify documentation on assertions.
19 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
21         * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
22         if a component association has a box initialization when the
23         component type has no default initialization, either through an
24         initial value, an aspect, or an implicit initialization procedure.
26 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
28         * freeze.adb: Code clean up.
30 2014-08-04  Thomas Quinot  <quinot@adacore.com>
32         * sem_ch5.adb: Minor reformatting.
34 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
36         * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
37         a function can return a limited view of a type declared
38         elsewhere. In that case the function cannot be frozen at the end
39         of its enclosing package. If its first use is in a different unit,
40         it cannot be frozen there, but if the call is legal the full view
41         of the return type is available and the subprogram can now be
42         frozen. However the freeze node cannot be inserted at the point
43         of call, but rather must go in the package holding the function,
44         so that the backend can process it in the proper context.
46 2014-08-04  Robert Dewar  <dewar@adacore.com>
48         * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
50 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
52         * sem_ch4.adb (Operator_Check): Refine previous change.
54 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
56         * sem_scil.ads: Improve comments.
57         * sem_ch4.adb (Analyze_Equality_Op): Add support for
58         Allow_Integer_Address (equality between Address and Integer).
60 2014-08-04  Yannick Moy  <moy@adacore.com>
62         * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
63         notation on untagged objects.
64         * sem.ads: Update comment.
65         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
66         not inline subprograms declared in the visible part of a package.
68 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
70         * exp_ch5.adb: minor reformatting.
71         * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
72         parameters.
74 2014-08-04  Thomas Quinot  <quinot@adacore.com>
76         * s-fatgen.adb: Minor reformatting.
78 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
80         * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
81         False on .NET.
83 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
85         * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
86         the loop parameter for element iterators over containers and
87         arrays, so that improper uses of it are detected in the loop
88         body when expansion is disabled.
89         * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
90         generated cursor is that of the analyzed loop parameter.
92 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
94         * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
95         Flag_Decl. Do not analyze the declaration of the flag as it is
96         not part of the tree yet, instead add it to the freeze actions
97         of the C++ type.
99 2014-08-04  Robert Dewar  <dewar@adacore.com>
101         * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
102         case of OUT and IN OUT parameter correctly (where Source_Typ is
103         set), we were missing one case where a check must be applied.
105 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
107         * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
108         the generated code. Instead of hiding the renaming and using the
109         wrapper as the proper association, have the subprogram renaming
110         alias the wrapper.
111         (Build_Spec): The entity of the wrapper is
112         now derived from the entity of the related primitive.
114 2014-08-04  Emmanuel Briot  <briot@adacore.com>
116         * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
117         using non-capturing groups.
119 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
121         * inline.adb (Build_Body_To_Inline): Remove Unmodified and
122         related pragmas before copying the original body, to prevent
123         spurious errors when the pragmas apply to formals that will not
124         appear in the inlined body.
126 2014-08-04  Robert Dewar  <dewar@adacore.com>
128         * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
129         exp_ch3.adb: Minor reformatting.
131 2014-08-04  Robert Dewar  <dewar@adacore.com>
133         * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
135 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
137         * aspects.adb Add an entry in table Canonical_Aspect for
138         Default_Initial_Condition.
139         * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
140         Aspect_Names and Aspect_Delay for Default_Initial_Condition.
141         * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
142         is now Is_Default_Init_Cond_ Procedure. Flag133 is now
143         Has_Inherited_Default_Init_Cond.
144         (Default_Init_Cond_Procedure): New routine.
145         (Has_Default_Init_Cond): New routine.
146         (Has_Inherited_Default_Init_Cond): New routine.
147         (Is_Default_Init_Cond_Procedure): New routine.
148         (Set_Default_Init_Cond_Procedure): New routine.
149         (Set_Has_Default_Init_Cond): New routine.
150         (Set_Has_Inherited_Default_Init_Cond): New routine.
151         (Set_Is_Default_Init_Cond_Procedure): New routine.
152         (Write_Entity_Flags): Output all the new flags.
153         * einfo.ads New attributes Default_Init_Cond_Procedure,
154         Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
155         along with usage in nodes.
156         (Default_Init_Cond_Procedure): New routine.
157         (Has_Default_Init_Cond): New routine and pragma Inline.
158         (Has_Inherited_Default_Init_Cond): New routine and
159         pragma Inline.
160         (Is_Default_Init_Cond_Procedure): New routine and
161         pragma Inline.
162         (Set_Default_Init_Cond_Procedure): New routine.
163         (Set_Has_Default_Init_Cond): New routine and pragma Inline.
164         (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
165         (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
166         * exp_ch3.adb (Expand_N_Object_Declaration): New constant
167         Next_N. Generate a call to the default initial condition procedure
168         if the object's type is subject to the pragma.  (Freeze_Type):
169         Generate the body of the default initial condition procedure or
170         inherit the spec from a parent type.
171         * exp_ch7.adb Add with and use clause for Exp_Prag.
172         (Expand_Pragma_Initial_Condition): Removed.
173         * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
174         routine.
175         * par-prag.adb (Prag): Pragma Default_Initial_Condition does
176         not need special treatment by the parser.
177         * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
178         attributes related to pragma Default_Initial_Condition to the
179         derived type.
180         (Process_Full_View): Propagate the attributes
181         related to pragma Default_Initial_Condition to the full view.
182         * sem_ch7.adb (Analyze_Package_Specification): Build the
183         declaration of the default initial condition procedure for all
184         types that qualify or inherit the one from the parent type.
185         * sem_ch13.adb (Analyze_Aspect_Specifications):
186         Add processing for aspect Default_Initial_Condition.
187         (Check_Aspect_At_Freeze_Point): Aspect
188         Default_Initial_Condition does not require delayed analysis.
189         (Replace_Type_References_Generic): Moved to spec.
190         * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
191         * sem_prag.adb Add an entry in table Sif_Glags for
192         Default_Initial_Condition.
193         (Analyze_Pragma): Pragma
194         Default_Initial_Condition is now part of assertion
195         policy. Add processing for pragma Default_Initial_Condition.
196         (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
197         now recognized as a proper assertion policy.
198         * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
199         routine.
200         (Build_Default_Init_Cond_Procedure_Body): New routine.
201         (Build_Default_Init_Cond_Procedure_Declaration): New routine.
202         (Inherit_Default_Init_Cond_Procedure): New routine.
203         * snames.ads-tmpl Add new predefined name and pragma id for
204         Default_Initial_Condition.
206 2014-08-04  Vincent Celier  <celier@adacore.com>
208         * prj-dect.adb (Parse_Case_Construction): It is no longer
209         an error if the variable for a case construction is not
210         typed, only if the variable value is not a single string. Call
211         Parse_Choice_List and End_Case_Construction with the new parameter
212         to indicate that the variable is typed.
213         * prj-strt.adb (End_Case_Construction): Only check the labels
214         if the variable is typed.  If the variable is not typed,
215         issue a warning when there is no "when others" allternative.
216         (Parse_Choice_List): Manage the labels only if the variable
217         is typed.
218         * prj-strt.ads (End_Case_Construction): New Boolean parameter
219         String_Type.
220         (Parse_Choice_List): Ditto.
222 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
224         * sem_ch5.adb: Additional fix to Check_Predicate_Use.
226 2014-08-04  Vincent Celier  <celier@adacore.com>
228         * projects.texi: Update documentation of case constructions with
229         variables that are not typed.
231 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
233         * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
234         an Eliminated pragma, indicate that the wrapper is also to be
235         eliminated, to prevent spurious errors when using gnatelim on
236         programs that include box-initialization of equality operators
237         (consequence of AI05-071)..
239 2014-08-04  Robert Dewar  <dewar@adacore.com>
241         * checks.adb (Activate_Overflow_Check): Handle floating-point
242         case correctly.
243         * checks.ads (Activate_Overflow_Check): Clarify handling of
244         floating-point cases.
245         * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
246         flag if we generate an explicit overflow check (for
247         Check_Float_Overflow mode).
249 2014-08-04  Robert Dewar  <dewar@adacore.com>
251         * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
252         prj-attr.adb, prj-attr.ads: Minor reformatting.
254 2014-08-04  Yannick Moy  <moy@adacore.com>
256         * expander.adb (Expand): Always perform special
257         expansion in GNATprove mode, even when doing pre-analysis.
259 2014-08-04  Thomas Quinot  <quinot@adacore.com>
261         * repinfo.adb (List_Scalar_Storage_Order): List bit order if
262         not default. Also list bit order if SSO is specified. Do not
263         assume that bit order is always equal to scalar storage order.
265 2014-08-04  Thomas Quinot  <quinot@adacore.com>
267         * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
268         order to reverse SSO for a type that has an explicit native
269         Bit_Order.
271 2014-08-04  Doug Rupp  <rupp@adacore.com>
273         * cal.c: Macro check for VxWorks7.
274         * init.c (getpid): Likewise.
275         * mkdir.c (__gnat_mkdir): Likewise.
276         * sysdep.c (__gnat_is_file_not_found_error): Likewise.
278 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
280         * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
281         of an invariant check in the case where No_Initialization is set,
282         since the object is uninitialized.
284 2014-08-04  Thomas Quinot  <quinot@adacore.com>
286         * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
287         name, in addition to a pragma name.
288         * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
289         Is_Pragma_Name): Adjust accordingly.
290         * sem_attr.ads, sem_attr.adb, exp_attr.adb
291         (Attribute_Default_Scalar_Storage_Order): Add handling of new
292         attribute.
293         * gnat_rm.texi: Document the above.
295 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
297         * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
298         mode for now, to revert to previous behavior.
299         * checks.adb: Revert previous change, no longer needed.
301 2014-08-04  Robert Dewar  <dewar@adacore.com>
303         * gnat1drv.adb (Adjust_Global_Switches): Don't set
304         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
305         * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
306         set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
307         * switch-c.adb (Scan_Front_End_Switches): Don't set
308         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
310 2014-08-04  Vincent Celier  <celier@adacore.com>
312         * prj-attr.adb: Add new default indications for
313         attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
314         (Attribute_Default_Of): New function (Initialize): Set the
315         default for those attributes that have one specified.
316         * prj-attr.ads (Attribute_Data): New component Default.
317         * prj-proc.adb (Expression): Take into account the new defaults
318         for attributes Object_Dir, Exec_Dir and Source_Dirs.
319         * prj-strt.adb (Attribute_Reference): Set the default for
320         the attribute.
321         * prj-tree.ads, prj-tree.adb (Default_Of): New function.
322         (Set_Default_Of): New procedure.
323         * prj.adb (The_Dot_String): New global Name_Id variable,
324         initialized in procedure Initialize.
325         (Dot_String): New function
326         (Initialize): Initialize The_Dot_String.
327         (Reset): Create the string list Shared.Dot_String_List.
328         * prj.ads (Attribute_Default_Value): New enumeration type.
329         (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
330         (Dot_String): New function.
331         (Shared_Project_Tree_Data): New string list component Dot_String_List.
332         * projects.texi: Document new defaults for attribute Object_Dir,
333         Exec_Dir and Source_Dirs.
335 2014-08-04  Robert Dewar  <dewar@adacore.com>
337         * sem_ch12.adb: Minor reformatting.
339 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
341         * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
342         expansion in CodePeer_Mode.
343         (Selected_Range_Checks): Add handling of overflow checks in
344         CodePeer_Mode.
346 2014-08-04  Robert Dewar  <dewar@adacore.com>
348         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
349         Remove special test for Float'First, no longer required.
350         (Expand_N_Attribute_Reference, case Succ): Remove special test
351         for Float'First, no longer required.
352         * s-fatgen.adb (Pred): return infinity unchanged.
353         (Succ): ditto.
355 2014-08-04  Claire Dross  <dross@adacore.com>
357         * sem_ch12.adb (Analyze_Associations): Defaults should only be
358         used if there is no explicit match.
359         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
360         Also check for pragma external_axiomatization on generic units.
362 2014-08-04  Robert Dewar  <dewar@adacore.com>
364         * checks.adb (Activate_Overflow_Check): Remove
365         Check_Float_Overflow processing.
366         (Apply_Scalar_Range_Check): Ditto.
367         (Generate_Range_Check): Ditto.
368         * exp_ch4.adb (Expand_N_Op_Add): Add call to
369         Check_Float_Op_Overflow.
370         (Expand_N_Op_Divide): ditto.
371         (Expand_N_Op_Multiply): ditto.
372         (Expand_N_Op_Subtract): ditto.
373         * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
374         * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
375         Do_Range_Check is set for floating-point case in -gnatc or
376         GNATprove mode.
377         (Analyze_Attribute, case Succ): Make sure
378         Do_Range_Check is set for floating-point case in -gnatc or
379         GNATprove mode.
380         * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
381         flag is set for real to integer conversion in GNATprove or
382         -gnatc mode.
384 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
386         * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
387         the expression of an Import or Export aspect as type Boolean
388         and require it to be static. Add ??? comment. Also, set the
389         Is_Exported flag when appropriate.
391 2014-08-04  Robert Dewar  <dewar@adacore.com>
393         * exp_ch4.adb: Minor reformatting.
394         * exp_attr.adb: Minor reformatting.
396 2014-08-04  Thomas Quinot  <quinot@adacore.com>
398         * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
399         (Unaligned_Valid): Remove now unused subprogram.
400         * exp_attr.adb (Expand_N_Attribute_Reference, case
401         Attribute_Valid): If the prefix is in reverse SSO or potentially
402         unaligned, copy it using a byte copy operation to a temporary
403         variable.
404         * einfo.adb: Minor comment fix.
406 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
408         * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
410 2014-08-04  Robert Dewar  <dewar@adacore.com>
412         * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
413         * s-fatgen.adb (Pred): Handle Float'First.
414         (Succ): Handle Float'Last.
416 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
418         * sem_util.adb (Is_Potentially_Unevaluated): If the original
419         node of a parent node in the tree is a short-circuit operation,
420         the node is potentially unevaluated.
422 2014-08-04  Robert Dewar  <dewar@adacore.com>
424         * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
425         conversion from a real type to an integer type.
427 2014-08-04  Yannick Moy  <moy@adacore.com>
429         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
430         sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
431         exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
432         sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
433         SPARK_05 instead of SPARK.
435 2014-08-04  Robert Dewar  <dewar@adacore.com>
437         * sem.ads: Minor reformatting.
438         * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
439         reformatting.
440         (Analyze_Aspect_Specifications, case Convention): Put External_Name
441         before Link_Name when constructing pragma.
443 2014-08-04  Yannick Moy  <moy@adacore.com>
445         * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
446         to True during analysis of a default component expression.
447         (Semantics): Save and restore In_Default_Expr around analysis.
448         * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
449         Call new wrapper Preanalyze_Default_Expression.
450         (Preanalyze_Default_Expression): New wrapper on
451         Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
452         * sem_res.adb (Resolve_Call): Mark calls inside default
453         expressions as not inlined in GNATprove mode.
455 2014-08-04  Robert Dewar  <dewar@adacore.com>
457         * exp_ch4.adb: Minor reformatting.
459 2014-08-04  Olivier Hainque  <hainque@adacore.com>
461         * link.c: remove const on __gnat_objlist_file_supported for AIX
463 2014-08-04  Robert Dewar  <dewar@adacore.com>
465         * sem_util.ads: Minor addition of comment.
467 2014-08-04  Vincent Celier  <celier@adacore.com>
469         * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
470         all projects, including aggregate and aggregate library projects.
472 2014-08-04  Yannick Moy  <moy@adacore.com>
474         * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
476 2014-08-04  Robert Dewar  <dewar@adacore.com>
478         * sem_eval.adb (Test_In_Range): Always in range for
479         Is_Known_Valid target type, where input type has smaller or
480         equal size and does not have biased rep.
482 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
484         * sem_attr.adb (Eval_Attribute): Constrained is not treated as
485         a static attribute, and the Static flag must not be set on it
486         during resolution. It may be constant-folded during expansion,
487         but if expansion is disabled it is not a static expression.
489 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
491         * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
492         referenced once resolution has taken place.
494 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
496         * exp_ch4.adb (Expand_N_Type_Conversion): Don't
497         compare access levels in the case where the target type is the
498         anonymous type of an access discriminant, since the level of
499         such types is defined based on context. Add comment.
501 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
503         * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
504         cases related to equality.  Remove the special processing
505         for dispatching abstract subprograms as it is not needed.
506         (Interpretation_Error): Add a specialized error message for
507         predefined operators.
508         (Is_Intrinsic_Equality): New routine.
509         (Is_Suitable_Candidate): New routine.
511 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
513         * checks.adb: Minor comment reformatting.
515 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
517         * restrict.adb (Check_Restriction): For checked max_parameter
518         restrictions reset Violated flag, so that subsequent violations
519         are properly detected.
521 2014-08-04  Robert Dewar  <dewar@adacore.com>
523         * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
524         mode.
525         (Process_Discriminants): Fix bad test of GNATprove mode
527 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
529         * sem_ch12.adb (Instantiate_Formal_Subprogram):
530         Move variable to their own section. Propagate the source
531         location of a formal parameter to the corresponding formal of
532         the subprogram renaming declaration. Code reformatting.
534 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
536         * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
538 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
540         * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
541         if error already detected.  We may reach this point in spite of
542         previous errors when compiling with -gnatq, to force all possible
543         errors (this is the usual ACATS mode).
545 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
547         * checks.adb (Generate_Range_Check): For the case of converting
548         a base type with a larger range to a smaller target subtype, only
549         use unchecked conversions of bounds in the range check followed
550         by conversion in the case where both types are discrete. In other
551         cases, convert to the target base type and save in a temporary
552         followed by the range check.
553         (Convert_And_Check_Range): New procedure factoring code to save
554         conversion to a temporary followed by a range check (called two
555         places in Generate_Range_Check).
556         * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
557         check-in, to generate range checks for conversions between
558         any floating-point types rather than limiting it to matching
559         base types.
561 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
563         * gcc-interface/trans.c: Use hash_set instead of pointer_set.
565 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
567         * restrict.adb (Update_Restrictions): For restrictions with a
568         maximum parameter (e.g. number of protected entries in Ravenscar)
569         do not compute the maximum of the violation over several objects,
570         because the restriction is per-object.
571         (Check_Restriction): After possible message, reset the value
572         of of a checked max_parameter restriction to zero, to prevent
573         cascaded errors.
574         * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
575         (sub)type to determine whether derived type should be on the
576         list of private dependents of a type whose full view may become
577         visible subsequently.
579 2014-08-01  Olivier Hainque  <hainque@adacore.com>
581         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
582         $(CXX) instead of ../../xg++ to feed CXX.
583         (CXX_LFLAGS): Remove. Now unused as the proper flags
584         are expected to be included in the CXX variable.
586 2014-08-01  Pierre-Marie Derodat  <derodat@adacore.com>
588         * gcc-interface/decl.c (elaborate_expression_1): Return the new
589         variable when debug info is needed and the expression is not
590         constant.  Tag as external only new variables that are global.
591         (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
592         * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
593         attributes for IN array parameters when their actual subtype
594         needs debug info.
595         (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
596         * gcc-interface/gigi.h (process_deferred_decl_context): New.
597         * gcc-interface/utils.c (gnat_write_global_declarations): Do not
598         emit debug info for ignored global declarations.
599         (struct deferred_decl_context_node,
600         add_deferred_decl_context, add_deferred_type_context,
601         compute_deferred_decl_context, defer_or_set_type_context,
602         deferred_decl_context_queue, get_debug_scope,
603         get_global_context, process_deferred_decl_context): New.
604         (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
605         computation machinery to rely on the GNAT Scope attribute.
607 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
609         * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
611 2014-08-01  Robert Dewar  <dewar@adacore.com>
613         * sem_ch8.adb, opt.ads Minor comment updates.
615 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
617         * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
618         from the side effects removal machinery.
619         * exp_util.adb (Duplicate_Subexpr): Add formal parameter
620         Renaming_Req. Update the nested call to Remove_Side_Effects.
621         (Duplicate_Subexpr_No_Checks): Add formal parameter
622         Renaming_Req. Update the nested call to Remove_Side_Effects.
623         (Duplicate_Subexpr_Move_Checks): Add formal parameter
624         Renaming_Req. Update the nested call to Remove_Side_Effects.
625         (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
626         an object renaming declaration when the caller requests it.
627         * exp_util.ads (Duplicate_Subexpr): Add formal
628         parameter Renaming_Req. Update comment on usage.
629         (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
630         (Duplicate_Subexpr_Move_Checks): Add formal parameter
631         Renaming_Req.
633 2014-08-01  Bob Duff  <duff@adacore.com>
635         * gnat_ugn.texi: Minor updates.
637 2014-08-01  Robert Dewar  <dewar@adacore.com>
639         * atree.adb: Minor reformatting.
641 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
643         * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
644         private extension, get stored constraint, if any, from full view.
646 2014-08-01  Robert Dewar  <dewar@adacore.com>
648         * opt.ads (No_Elab_Code_All_Pragma): New global variable.
649         * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
650         (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
651         (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
652         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
653         Remove code for checking with's, now in sem_ch10.adb, set
654         Opt.No_Elab_Code_All_Pragma.
656 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
658         * sem_ch3.adb (Copy_And_Build): Copy the declaration for
659         access types as well and adjust the subtype mark if there are
660         no constraints.
662 2014-08-01  Robert Dewar  <dewar@adacore.com>
664         * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
666 2014-08-01  Robert Dewar  <dewar@adacore.com>
668         * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
670 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
672         * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
673         * exp_ch4.adb (Expand_Composite_Equality): Add conversion
674         of the actuals in the case of untagged record types too.
675         * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
676         full derivation of a derived private type, extracted from...
677         (Copy_And_Build): In the case of record types and most
678         enumeration types, copy the original declaration.  Build the
679         full derivation according to the approach extracted from...
680         (Build_Derived_Private_Type): ...here.  Call Build_Full_Derivation
681         to create the full derivation in all existing cases and also
682         create it in the no-discriminants/discriminants case instead of
683         deriving directly from the full view.
684         (Is_Visible_Component): Remove obsolete code.
685         * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
687 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
689         * fe.h (GNAT_Mode): New.
690         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
691         reverse SSO in GNAT mode.
693 2014-08-01  Thomas Quinot  <quinot@adacore.com>
695         * freeze.adb: Minor reformatting.
697 2014-08-01  Thomas Quinot  <quinot@adacore.com>
699         * exp_ch3.adb (Default_Initialize_Object): Do not generate
700         default initialization for an imported object.
702 2014-08-01  Olivier Hainque  <hainque@adacore.com>
704         * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
705         to the expected FARPROC type instead of void *.
706         * adaint.c (f2t): Expect __time64_t * as second argument, in line with
707         other datastructures.
708         (__gnat_file_time_name_attr): Adjust accordingly.
709         (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
710         in line with uses.
711         (__gnat_check_OWNER_ACL): Declare AccessMode
712         parameter as ACCESS_MODE instead of DWORD, in line with callers
713         and uses.
714         (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
715         unused on win32.  Correct cast of "args" on call to spawnvp.
716         (add_handle): Cast realloc calls into their destination types.
717         (win32_wait): Remove declaration and initialization of unused variable.
718         (__gnat_locate_exec_on_path): Cast alloca calls
719         into their destination types.
720         * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
721         their destination types.
723 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
725         * exp_ch4.adb (Expand_N_Type_Conversion): Expand
726         range checks for conversions between floating-point subtypes
727         when the target and source types are the same.
729 2014-08-01  Robert Dewar  <dewar@adacore.com>
731         * exp_aggr.adb: Minor reformatting.
733 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
735         * sem_ch13.adb (Check_Indexing_Functions): Initialize
736         Indexing_Found.
738 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
740         * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
741         ALI file before we call the backend (so that gnat2why can append
742         to it).
744 2014-08-01  Thomas Quinot  <quinot@adacore.com>
746         * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
747         Expand_Packed_Element_Reference): Pass additional Rev_SSO
748         parameter indicating whether the packed array type has reverse
749         scalar storage order to the s-pack* Set/Get routines.
750         * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
751         indicating reverse scalar storage order.
753 2014-08-01  Robert Dewar  <dewar@adacore.com>
755         * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
756         for initial component value in -gnatc or GNATprove mode.
757         (Process_Discriminants): Same fix for default discriminant values.
758         * sem_eval.adb (Test_In_Range): Improve accuracy of results by
759         checking subtypes.
761 2014-08-01  Robert Dewar  <dewar@adacore.com>
763         * sinfo.ads: Minor comment clarification.
765 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
767         * sem_ch13.adb (Analyze_Aspect_Specifications): Code
768         reformatting. Store the generated pragma Import in the related
769         subprogram as routine Wrap_Imported_Subprogram will need it later.
770         * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
771         a private type with discriminants is considered to fall in the
772         category of unconstrained or tagged items.
774 2014-08-01  Arnaud charlet  <charlet@adacore.com>
776         * s-os_lib.adb (Open_Append): New functions to open a file for
777         appending. This binds to the already existing (but not used)
778         __gnat_open_append.
779         * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
780         to open a file for appending.
781         * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
782         to open the ALI file for appending.
784 2014-08-01  Robert Dewar  <dewar@adacore.com>
786         * sem_ch8.adb: Minor reformatting.
788 2014-08-01  Yannick Moy  <moy@adacore.com>
790         * sem_ch13.adb (Insert_Pragma): Add special case for precondition
791         pragmas from aspects, which need to be inserted in proper order.
793 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
795         * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
796         Handle properly a type extension that constrains a discriminated
797         derived type that renames other discriminants of an ancestor.
799 2014-08-01  Thomas Quinot  <quinot@adacore.com>
801         * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
802         s-pack25.adb: Fix minor inconsistencies and typos.
804 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
806         * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
807         globals and move certain variables to the "local
808         variable" section. Call Build_Class_Wide_Wrapper when
809         renaming a default actual subprogram with a class-wide actual.
810         (Build_Class_Wide_Wrapper): New routine.
811         (Check_Class_Wide_Actual): Removed.
812         (Find_Renamed_Entity): Code reformatting.
813         (Has_Class_Wide_Actual): Alphabetize. Change the
814         logic of the predicate as the renamed name may not necessarely
815         denote the correct subprogram.
817 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
819         * sem_ch7.adb: Fix minor oversight in condition.
821 2014-08-01  Bob Duff  <duff@adacore.com>
823         * projects.texi: Minor documentation improvements.
825 2014-08-01  Robert Dewar  <dewar@adacore.com>
827         * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
828         * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
829         * lib-load.adb: Initialize No_Elab_Code_All field.
830         * lib-writ.adb: Initialize No_Elab_Code_All.
831         * lib.ads, lib.adb: New field No_Elab_Code_All.
832         * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
833         * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
834         longer exists.
835         * sem_ch10.adb (Analyze_Context): Processing for
836         No_Elaboration_Code_All removed.
837         (Generate_Parent_References): Moved to Sem_Util.
838         * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
839         * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
840         Sem_Ch10.
841         * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
842         * targparm.adb: Minor comment updates Add comments on ignoring
843         pragma No_Elaboration_Code_All.
845 2014-08-01  Nicolas Roche  <roche@adacore.com>
847         * adaint.c (__gnat_set_close_on_exec): Ensure that
848         we can unset "close_on_exec" flag.
850 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
852         * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
853         the parameter specs of the wrapper program for a primitive operation
854         of a synchronized type that implements an interface, copy the
855         null_exclusion indicator as well.
857 2014-08-01  Robert Dewar  <dewar@adacore.com>
859         * sem_eval.ads: Minor reformatting.
861 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
863         * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
864         to go down the chain of private derivations.
865         * freeze.adb (Freeze_Entity): Fix typo in comment.
867 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
869         * sem_ch3.adb (Access_Type_Declaration): If designated type is
870         a limited view, create a master entity (as is already done for
871         class-wide types) in case the full view designates a type that
872         contains tasks.
873         * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
874         and the designated type is a limited view, use the non-limited
875         view if available.
877 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
879         * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
880         (DECL_FUNCTION_STUB): Likewise.
881         (SET_DECL_FUNCTION_STUB): Likewise.
882         (DECL_PARM_ALT_TYPE): Likewise.
883         (SET_DECL_PARM_ALT_TYPE): Likewise.
884         (TYPE_VAX_FLOATING_POINT_P): Delete.
885         (TYPE_DIGITS_VALUE): Likewise.
886         (SET_TYPE_DIGITS_VALUE): Likewise.
887         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
888         (malloc32_decl): Delete.
889         (build_vms_descriptor): Likewise.
890         (build_vms_descriptor32): Likewise.
891         (fill_vms_descriptor): Likewise.
892         (convert_vms_descriptor): Likewise.
893         (TARGET_ABI_OPEN_VMS): Likewise.
894         (TARGET_MALLOC64): Likewise.
895         * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
896         (gnat_to_gnu_entity): Call it to add the original type as a parallel
897         type to the implementation type of a packed array type.
898         <E_Procedure>: Remove now obsolete kludge.
899         <E_Exception>: Delete obsolete comment.
900         <object>: Small tweak.
901         <E_Subprogram_Type>: Remove support for stub subprograms, as well as
902         for the descriptor passing mechanism.
903         (gnat_to_gnu_param): Likewise.
904         * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
905         (gnat_print_type): Adjust.
906         * gcc-interface/trans.c (gigi): Remove obsolete initializations.
907         (vms_builtin_establish_handler_decl): Delete.
908         (gnat_vms_condition_handler_decl): Likewise.
909         (establish_gnat_vms_condition_handler): Likewise.
910         (build_function_stub): Likewise.
911         (Subprogram_Body_to_gnu): Do not call above functions.
912         (Call_to_gnu): Remove support for the descriptor passing mechanism.
913         * gcc-interface/utils.c (make_descriptor_field): Delete.
914         (build_vms_descriptor32): Likewise.
915         (build_vms_descriptor): Likewise.
916         (fill_vms_descriptor): Likewise.
917         (convert_vms_descriptor64): Likewise.
918         (convert_vms_descriptor32): Likewise.
919         (convert_vms_descriptor): Likewise.
920         * gcc-interface/utils.c (unchecked_convert): Likewise.
921         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
923 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
925         * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
926         type and get_unpadded_type for the longest FP type.
927         (Attribute_to_gnu) <Machine>: Compare the precision of the types.
928         (convert_with_check): Adjust formatting and remove FIXME.
930 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
932         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
933         Do not convert the RM bounds to the base type.
934         (E_Floating_Point_Subtype): Likewise.
935         (E_Array_Subtype): Convert the bounds to the base type.
936         * gcc-interface/trans.c (get_type_length): New function.
937         (Attribute_to_gnu) <Range_Length>: Call it.
938         <Length>: Likewise.
939         (Loop_Statement_to_gnu): Convert the bounds to the base type.
940         (gnat_to_gnu) <N_In>: Likewise.
941         * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
942         bounds to the base type.
943         (create_range_type): Likewise.
944         (convert): Convert the bounds to the base type for biased types.
945         * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
946         base type.
948 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
950         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
951         incorrect implicit type derivation.
952         * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
953         to the base type.
955 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
957         * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
958         prefix of attribute Loop_Entry.
959         * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
960         Loop_Variant with respect to an enclosing loop (if any).
961         (Contains_Loop_Entry): Update the parameter profile and all
962         calls to this routine.
963         * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
964         for the corresponding body before determining the nature of the
965         ultimate alias's declarative node.
967 2014-08-01  Robert Dewar  <dewar@adacore.com>
969         * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
971 2014-08-01  Robert Dewar  <dewar@adacore.com>
973         * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
974         constraint error node since it is a list member.
976 2014-08-01  Robert Dewar  <dewar@adacore.com>
978         * sem_warn.adb: Minor reformatting.
980 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
982         * einfo.adb (Underlying_Type): Return the underlying full view
983         of a private type if present.
984         * freeze.adb (Freeze_Entity):
985         Build a single freeze node for partial, full and underlying full
986         views, if any.
987         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
988         missing guard before the access to the Underlying_Full_View.
989         * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
990         full view if present.
991         * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
993 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
995         * sem_res.adb (Resolve_Entry_Call): When an entry has
996         preconditions, the entry call is wrapped in a procedure call
997         that incorporates the precondition checks. To prevent a double
998         expansion, with possible duplication of extra formals, that
999         procedure call must only be pre-analyzed and resolved. Expansion
1000         takes place upon return to the caller Resolve_Call.
1002 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1004         * sem_res.adb (Resolve_Call): Do not perform
1005         GNATprove-specific inlining while within a generic.
1007 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1009         * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
1010         case expression with incompatible alternatives, when the first
1011         alternative is overloaded.
1013 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1015         * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
1016         to create the name of the parameterless call, rather than
1017         New_Copy, to preserve the tree structure when the name is a
1018         complex expression, e.g. a selected component that denotes a
1019         protected operation, whose prefix is itself a selected component.
1021 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1023         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
1024         Unit_Declaration_Node to retrieve body when inlining, to handle
1025         properly subprogram child units.
1027 2014-08-01  Robert Dewar  <dewar@adacore.com>
1029         * sem_attr.adb: Minor reformatting.
1031 2014-08-01  Vincent Celier  <celier@adacore.com>
1033         * debug.adb: Minor documentation addition for -dn switch.
1035 2014-08-01  Robert Dewar  <dewar@adacore.com>
1037         * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
1038         sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
1039         documentation of Is_Static_Expression vs Is_OK_Static_Expression.
1040         In several places, use the Is_OK version as suggested by the spec.
1042 2014-08-01  Vincent Celier  <celier@adacore.com>
1044         * gnatcmd.adb: Revert last change which was not correct.
1046 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1048         * freeze.adb (Find_Constant): Ensure that the constant being
1049         inspected is still an object declaration (i.e. not a renaming).
1051 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1053         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
1054         An attribute_reference to Loop_Entry denotes an iterator
1055         specification: its prefix is an object, as is the case for 'Old.
1056         b) If the domain of iteration is an expression whose type has
1057         the Iterable aspect defined, this is an iterator specification.
1059 2014-08-01  Robert Dewar  <dewar@adacore.com>
1061         * gnatcmd.adb: Minor reformatting.
1063 2014-08-01  Robert Dewar  <dewar@adacore.com>
1065         * atree.ads (Info_Messages): New counter.
1066         * err_vars.ads: Minor comment update.
1067         * errout.adb (Delete_Warning_And_Continuations): Deal
1068         with new Info_Messages counter.
1069         (Error_Msg_Internal): ditto.
1070         (Delete_Warning): ditto.
1071         (Initialize): ditto.
1072         (Write_Error_Summary): ditto.
1073         (Output_Messages): ditto.
1074         (To_Be_Removed): ditto.
1075         * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
1076         (Compilation_Errors): ditto.
1077         * errutil.adb (Error_Msg): Deal with Info_Messages counter.
1078         (Finalize): ditto.
1079         (Initialize): ditto.
1080         * sem_prag.adb (Analyze_Pragma): Minor comment addition.
1081         * gnat_ugn.texi: Document that -gnatwe does not affect info
1082         messages.
1084 2014-08-01  Robert Dewar  <dewar@adacore.com>
1086         * debug.adb: Document debug switch -gnatd.Z.
1087         * sem.adb (Semantics): Force expansion on in no or configurable
1088         run time mode.
1090 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1092         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
1093         unchecked conversion denotes an iterator specification. Such a
1094         conversion will be inserted in the context of an inlined call
1095         when needed, and its argument is always an object.
1097 2014-08-01  Robert Dewar  <dewar@adacore.com>
1099         * make.adb, makeutl.ads: Minor reformatting.
1100         * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
1101         Back_End_Inlining.
1103 2014-08-01  Tristan Gingold  <gingold@adacore.com>
1105         * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
1107 2014-08-01  Javier Miranda  <miranda@adacore.com>
1109         * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
1110         -gnatd.z.
1111         * debug.adb: Updating documentation.
1112         * exp_ch6.adb (Expand_Call): Remove assertion.
1114 2014-08-01  Robert Dewar  <dewar@adacore.com>
1116         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
1117         sem_res.adb: Minor reformatting.
1119 2014-08-01  Vincent Celier  <celier@adacore.com>
1121         * make.adb (Initialize): Set Keep_Temporary_Files to True when
1122         -dn is specified.
1123         * makeusg.adb: Add line for new switch --keep-temp-files.
1124         * makeutl.ads (Keep_Temp_Files_Option): New constant String.
1125         * opt.ads (Keep_Temporary_Files): Document that it is also used
1126         by gnatmake and gprbuild.
1127         * switch-m.adb: Recognize new switch --keep-temp-files.
1129 2014-08-01  Tristan Gingold  <gingold@adacore.com>
1131         * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
1132         * exp_ch9.adb (Make_Task_Create_Call): ... here.
1134 2014-08-01  Vincent Celier  <celier@adacore.com>
1136         * gnat1drv.adb: Do not try to get the target parameters when
1137         invoked with -gnats.
1139 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1141         * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
1142         declaration subject to No_Initialization.
1144 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1146         * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
1147         is a subtype with dynamic predicates, or a non-static subtype
1148         with predicates.
1149         * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
1150         expression if subtype has a dynamic predicate.
1151         (Constrain_Index): Reject subtype indication if subtype mark
1152         has predicates.
1153         (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
1154         (Make_Index): If index is a subtype indication, itype inhereits
1155         predicate flags for subsequent testing.
1156         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
1157         procedure Check_Predicate_Use, to reject illegal uses of domains
1158         of iteration that have dynamic predicates.
1159         * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
1160         indication to which a predicate applies.
1161         * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
1162         prevent cascaded errors when subtype is invalid.
1164 2014-08-01  Robert Dewar  <dewar@adacore.com>
1166         * sem_ch10.adb: Minor reformatting.
1168 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1170         * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
1171         because either type may be a subtype of the other.
1173 2014-08-01  Vincent Celier  <celier@adacore.com>
1175         * makeusg.adb: Add documentation for debug switch -dn.
1177 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1179         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
1180         expression with standard operator and type, for pretty-printing
1181         use, when in ASIS_Mode. When generating code dimensional analysis
1182         is not involved and dimension expressions are handled statically,
1183         and other operators are resolved in the usual way.
1185 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1187         * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
1188         Parent_Subtype in ASIS mode, leads to several failures.
1189         * sem_ch4.adb (Analyze_Selected_Component): In an instance,
1190         if the prefix is a type extension, check whether component is
1191         declared in the parent type, possibly in a parent unit. Needed
1192         in ASIS mode when Parent_Subtype is not set.
1194 2014-08-01  Robert Dewar  <dewar@adacore.com>
1196         * sem_prag.adb: Minor reformatting.
1197         * s-regpat.adb: Minor reformatting.
1198         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
1199         Treat_As_Volatile on constants.
1201 2014-08-01  Tristan Gingold  <gingold@adacore.com>
1203         * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
1205 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1207         * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
1208         warning on a with_clause created for the renaming of a parent
1209         unit in an explicit with_clause.
1211 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1213         * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
1214         Set Is_Imported flag at once, to simplify subsequent legality
1215         checks. Reject the aspect on an object whose declaration has an
1216         explicit initial value.
1217         * sem_prag.adb (Process_Import_Or_Interface): Use original node
1218         to check legality of an initial value for an imported entity.
1219         Set Is_Imported flag in case of error to prevent cascaded errors.
1220         Do not set the Is_Imported flag if the pragma comes from an
1221         aspect, because it is already done when analyzing the aspect.
1223 2014-08-01  Emmanuel Briot  <briot@adacore.com>
1225         * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
1227 2014-08-01  Robert Dewar  <dewar@adacore.com>
1229         * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
1230         identifier name.
1232 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1234         * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
1235         checks when the related variable comes from source.
1236         * sem_res.adb (Resolve_Actuals): Enable the volatility checks
1237         when the related actual parameter comes from source. Update comment.
1238         * freeze.adb (Freeze_Record_Type): Do not freeze the designated
1239         type of an array of pointers when the designated type is
1240         class-wide and its root type is the record being currently frozen.
1242 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1244         * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
1245         of renaming declaration created for domain of iteration.
1246         * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
1247         for error messages on aggregates whose index subtypes have
1248         predicates. The new placement avoids posting messages on previous
1249         subtype declarations rather than on the aggregate itself.
1250         * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
1251         Add_Dispatching_Operation, to handle properly the overriding of
1252         the predefined operations on controlled types, when the partial
1253         view of a type is not visibly controlled.
1255 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
1257         * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
1258         appendix.
1260 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1262         * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
1263         assertion check as the attribute is defined for all entities.
1264         (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
1265         check as the attribute is defined for all entities.
1266         * einfo.ads Update the documentation of attribute
1267         Is_Hidden_Non_Overridden_Subprogram.
1268         * sem_ch7.adb (Install_Package_Entity): No need to check the
1269         entity kind of the Id.
1270         * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
1271         usage. Ensure that the homographs are of the same entity kind
1272         and not fully conformant.
1273         (Hide_Non_Overridden_Subprograms): Update the comment on usage.
1275 2014-08-01  Robert Dewar  <dewar@adacore.com>
1277         * inline.adb: Minor code reorganization.
1278         * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
1280 2014-08-01  Robert Dewar  <dewar@adacore.com>
1282         * inline.adb, s-os_lib.ads: Minor reformatting.
1284 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1286         * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
1287         * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
1288         hooks.
1290 2014-08-01  Yannick Moy  <moy@adacore.com>
1292         * inline.adb (Cannot_Inline): Issue info message instead of
1293         warning for subprograms not inlined in GNATprove mode.
1294         * sem_res.adb (Resolve_Call): Take body into account for deciding
1295         whether subprogram can be inlined in GNATprove mode or not.
1297 2014-08-01  Claire Dross  <dross@adacore.com>
1299         * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
1300         of Get_First_Parent_With_External_Axiomatization_For_Entity for
1301         shorter.
1302         * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
1303         for parameters of packages with external axiomatization.
1305 2014-08-01  Robert Dewar  <dewar@adacore.com>
1307         * sem_res.adb: Minor comment addition.
1309 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1311         * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
1312         s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
1313         no longer used.
1314         * s-os_lib.ads: Minor reformatting.
1316 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1318         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
1319         completely previous code since only GCC back-ends are prepared
1320         to handle e.g. 'Machine attribute.
1321         * targparm.adb, targparm.ads: Remove remaining refs and
1322         handling of OpenVMS_On_Target, VAX_Float_On_Target and
1323         RTX_RTSS_Kernel_Module_On_Target.
1324         * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
1325         no longer used.
1327 2014-08-01  Robert Dewar  <dewar@adacore.com>
1329         * exp_dist.adb, exp_attr.adb: Minor reformatting.
1330         * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
1331         a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
1332         sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
1333         g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
1334         improper use of shall.
1336 2014-08-01  Robert Dewar  <dewar@adacore.com>
1338         * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
1339         exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
1340         exp_ch3.adb: Minor reformatting & code reorganization.
1342 2014-08-01  Robert Dewar  <dewar@adacore.com>
1344         * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
1345         * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
1346         s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
1347         s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
1348         s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
1349         code.
1350         * gcc-interface/decl.c, gcc-interface/Makefile.in,
1351         gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
1353 2014-08-01  Pascal Obry  <obry@adacore.com>
1355         * s-os_lib.ads: Rename File_Size to Large_File_Size.
1357 2014-08-01  Robert Dewar  <dewar@adacore.com>
1359         * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
1360         a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
1361         a-numaux-libc-x86.ads: Fix bad package header comments.
1362         * elists.ads, elists.adb (Append_New_Elmt): New procedure.
1363         * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
1364         checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
1365         sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
1366         targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
1367         stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
1368         s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
1369         s-os_lib.adb: Remove VMS-specific code.
1371 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1373         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
1374         previous state in CodePeer_Mode.
1376 2014-08-01  Robert Dewar  <dewar@adacore.com>
1378         * hostparm.ads: Put back definition of OpenVMS as False to aid
1379         the transition process.
1380         * sem_ch7.adb: Minor reformatting.
1381         * prj-env.adb: Minor code fix.
1382         * gnat_rm.texi: Complete previous change.
1383         * sem_ch3.adb: Minor reformatting.
1384         * sem_ch6.adb: Minor reformatting.
1385         * sem_elab.adb: Minor reformatting.
1386         * exp_strm.adb: Complete previous change.
1388 2014-08-01  Vincent Celier  <celier@adacore.com>
1390         * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
1391         warning when a constant is unreferenced and its type has pragma
1392         Unreferenced_Objects.
1394 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1396         * einfo.adb: Flag2 is now known as
1397         Is_Hidden_Non_Overridden_Subprogram.
1398         (Is_Hidden_Non_Overridden_Subprogram): New routine.
1399         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
1400         (Write_Entity_Fields): Output Flag2.
1401         * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
1402         along with occurrences in entities.
1403         (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
1404         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
1405         and pragma Inline.
1406         * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
1407         declared non-overriden homographs into visibility.
1408         * sem_ch13.adb (Freeze_Entity_Checks): Hide all
1409         implicitly declared non-overriden homographs.
1410         (Hide_Non_Overridden_Subprograms): New routine.
1412 2014-08-01  Robert Dewar  <dewar@adacore.com>
1414         * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
1415         VMS-specific code.
1416         * prj-conf.adb: Minor reformatting.
1417         * xr_tabls.adb (Read_File): Restore code which was enabled on
1418         non VMS platforms before.
1419         * prj-env.adb (Initialize_Default_Project_Path): Ditto.
1420         * sem_ch5.adb: Minor reformatting.
1421         * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
1422         sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
1423         Remove VMS-specific code.
1425 2014-08-01  Vincent Celier  <celier@adacore.com>
1427         * make.adb (Await_Compile): Remove loop that was only needed
1428         for VMS.
1430 2014-08-01  Robert Dewar  <dewar@adacore.com>
1432         * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
1433         a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
1434         a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
1435         einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
1436         exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
1437         fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
1438         g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
1439         g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
1440         krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
1441         mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
1442         osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
1443         prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
1444         rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
1445         s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
1446         s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
1447         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
1448         s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
1449         s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
1450         sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
1451         sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
1452         sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
1453         treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
1454         specific code and comments.
1456 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1458         * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
1459         Check_Reverse_Iteration, to verify the legality of the Reverse
1460         indicator on various container types, and to detect illegal
1461         reverse iterations on containers that only supoort forward
1462         iteration.
1464 2014-08-01  Vincent Celier  <celier@adacore.com>
1466         * gnatcmd.adb: Remove the VMS specific stuff.  Integrate in
1467         procedure GNATCmd the relevant declarations from packages VMS_Cmds
1468         and VMS_Conv.
1469         * gnatcmd.ads: Update comments to remove any trace of VMS
1471 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1473         * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
1474         defaulted actual that is an operator, before building wrapper
1475         for it in GNATprove mode. Restrict construction of wrapper to
1476         actuals that are operators.
1478 2014-08-01  Vincent Celier  <celier@adacore.com>
1480         * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
1481         specific packages no longer needed.
1483 2014-08-01  Pascal Obry  <obry@adacore.com>
1485         * s-os_lib.ads (System.CRTL): Move with clause to body.
1486         (File_Size): New type.
1487         (File_Length64): Use it.
1488         (File_Length): Restore previous spec returning a Long_Integer.
1489         * s-os_lib.adb (System.CRTL): Move with clause here.
1491 2014-08-01  Vincent Celier  <celier@adacore.com>
1493         * mlib-prj.adb: Update comments to remove any mention of VMS.
1495 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1497         * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
1498         xgnatugn.adb and ug_words.
1500 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1502         * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
1503         expansion can be avoid for Machine, Model and Rounding.
1504         (Is_Inline_Floating_Point_Attribute): Return true for Machine
1505         & Model, as well as Rounding if wrapped in a conversion to an
1506         integer type.
1507         * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
1508         * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
1509         * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
1510         * gcc-interface/misc.c (enumerate_modes): Compute it.
1511         * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
1512         (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
1513         Machine and Model.
1514         (Attribute_to_gnu) <Attr_Model>: New case.
1515         <Attr_Machine>): Likewise.
1516         (convert_with_check): Test
1517         fp_arith_may_widen variable.
1519 2014-08-01  Pascal Obry  <obry@adacore.com>
1521         * adaint.h (GNAT_FOPEN): New definition for Windows.
1522         (GNAT_OPEN): Likewise.
1523         (GNAT_STAT): Likewise.
1524         (GNAT_FSTAT): Likewise.
1525         (GNAT_LSTAT): Likewise.
1526         (GNAT_STRUCT_STAT): Likewise.
1527         * adaint.c (__gnat_stat): Fix computation of file size for
1528         Windows.
1530 2014-08-01  Vincent Celier  <celier@adacore.com>
1532         * Makefile.rtl: Minor comment update.
1534 2014-08-01  Vincent Celier  <celier@adacore.com>
1536         * Make-generated.in: Remove dependencies for vms-help.
1538 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
1540         * makeutl.ads, opt.ads: Minor grammar fixes.
1541         * makeutl.adb: Minor code reorganization.
1543 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1545         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
1546         gnatsym.adb: Remove gnatsym (VMS only tool).
1548 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
1550         * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
1551         conditionalization from gnat_ugn.texi and projects.texi, and updated
1552         (considerably simplified) xgnatugn.adb, to be removed soon.
1554 2014-08-01  Vincent Celier  <celier@adacore.com>
1556         * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
1557         * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
1558         instead of Debug.Debug_Flag_S.
1559         * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
1560         No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
1561         error messages.
1562         * makeutl.ads (No_Exit_Message_Option): New constant string
1563         for switch --no-exit-message.
1564         * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
1565         * switch-m.adb (Scan_Make_Switches): Recognize new switch
1566         --no-exit-message.
1568 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1570         * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
1571         * gcc-interface/Make-lang.in: Remove exp_vfpt.o
1573 2014-08-01  Javier Miranda  <miranda@adacore.com>
1575         * inline.ads (Inlined_Calls, Backend_Calls,
1576         Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
1577         moved to inline.adb (Cannot_Inline): Update documentation.
1578         (Check_And_Build_Body_To_Inline): Renamed.
1579         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
1580         * inline.adb (Check_Inlining_Restrictions): New local variable.
1581         (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
1582         Backend_Not_Inlined_Subps): Declarations moved here
1583         from inline.ads (Number_Of_Statements): Removed.
1584         (Remove_Pragmas): Avoid duplicated version of this subprogram.
1585         (Build_Body_To_Inline): Code cleanup.
1586         (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
1587         (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
1588         (Check_Body_To_Inline): Removed.
1589         (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
1590         (Has_Excluded_Declaration): No action if not
1591         Check_Inlining_Restrictions.
1592         (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
1593         (Initialize): Initialize the lists of inlined calls and subprograms.
1594         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
1595         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
1596         to Check_And_Build_Body_To_Inline since it has been renamed as
1597         Check_And_Split_Unconstrained_Function
1598         * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
1599         package inline.
1600         * gnat1drv.adb Update call to Inline.List_Inlining_Info.
1602 2014-08-01  Vincent Celier  <celier@adacore.com>
1604         * debug.adb: Add documentation for new debug switch -ds.
1605         * make.adb (List_Bad_Compilations): Do not issue any message
1606         when switch -ds is specified.
1607         * makeutl.adb (Fail_Program): Do not issue any message when
1608         -ds is specified.
1609         (Finish_Program): Ditto.
1611 2014-08-01  Robert Dewar  <dewar@adacore.com>
1613         * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
1614         s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
1615         s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
1616         indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
1617         indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
1618         s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
1619         s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
1620         s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
1621         s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
1622         s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
1623         s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
1624         s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
1625         g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
1626         s-tratas.ads: Minor fix to copyright notices.
1628 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1630         * sinfo.ads: Remove long obsolete comment.
1631 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1633         * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
1634         * sem_ch3.adb: Minor reformatting.
1636 2014-08-01  Pascal Obry  <obry@adacore.com>
1638         * cstreams.c: Only enable large file support on know supported
1639         platforms. Add missing defines/includes.
1641 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1643         * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
1644         No_Dynamic_Predicate_On_Actual, to enforce the generic contract
1645         on generic units that contain constructs that forbid subtypes
1646         with predicates.
1647         * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
1648         Inherit flags indicating the presence of predicates in subtype
1649         declarations with and without constraints.
1650         (Inherit_Predicate_Flags): Utility for the above.
1651         * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
1652         indicate that the actual cannot have predicates, and preserve
1653         warning. In an instance, report error if actual has predicates
1654         and the construct appears in a package declaration.
1655         * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
1656         for an actual with predicates, if the corresponding formal
1657         carries No_Predicate_On_Actual or (in the case of a loop)
1658         No_Dynamic_Predicate_On_Actual.
1659         * sem_ch13.adb (Build_Predicate_Functions); Do not build a
1660         Static_Predicate function if the type is non-static (in the
1661         presence of previous errors),
1662         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
1663         No_Dynamic_Predicate_On_Actual in a generic context, to enforce
1664         generic contract on actuals that cannot have predicates.
1666 2014-08-01  Pascal Obry  <obry@adacore.com>
1668         * a-direct.adb (C_Size): Returns an int64.
1669         * osint.adb (System.CRTL): New with clause.
1670         (File_Length.Internal): Returns an int64.
1671         * s-os_lib.ads (File_Length): Returns an int64.
1673 2014-08-01  Robert Dewar  <dewar@adacore.com>
1675         * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
1676         mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
1677         osint.adb, krunch.adb: Minor reformatting.
1679 2014-08-01  Robert Dewar  <dewar@adacore.com>
1681         * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
1682         sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
1683         sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
1684         Remove VMS-specific code.
1685         * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
1687 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1689         * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
1690         gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
1691         make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
1692         mlib.ads, tempdir.adb: Remove VMS handling.
1694 2014-08-01  Pascal Obry  <obry@adacore.com>
1696         * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
1697         (__gnat_named_file_length): Likewise.
1698         (__gnat_file_length_attr): Likewise.
1699         * a-direct.adb (C_Size): Use size_t as returned type.
1700         * osint.adb (File_Length): Adjust spec for Internal routine
1701         (returns size_t).
1702         * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
1703         (System.CRTL): With claused moved to spec.
1704         * s-os_lib.ads (System.CRTL): With clause moved to here.
1706 2014-08-01  Pascal Obry  <obry@adacore.com>
1708         * adaint.h, adaint.c (__gnat_open): Added.
1709         * s-crtl.ads (open): Import __gnat_open for large file support.
1711 2014-08-01  Robert Dewar  <dewar@adacore.com>
1713         * sem_case.adb (Dup_Choice): Improve message for integer constants.
1715 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1717         * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
1719 2014-08-01  Pascal Obry  <obry@adacore.com>
1721         * adaint.h (GNAT_OPEN): Defines as open64 where supported.
1722         * adaint.c (GNAT_OPEN): Uses new macro where needed.
1724 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1726         * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
1727         extracted from...
1728         (maybe_pad_type): ...here.  Call it to canonicalize the pad type.
1729         * gcc-interface/gigi.h: Update comment.
1731 2014-07-31  Javier Miranda  <miranda@adacore.com>
1733         * debug.adb Remove documentation of -gnatd.k (no longer needed).
1734         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
1735         * inline.ads (Backend_Inlined_Subps): New
1736         Elist.  (Backend_Not_Inlined_Subps): New Elist.
1737         (Has_Excluded_Declaration): Declaration previously located in
1738         * inline.adb (Has_Excluded_Statement): Declaration previously
1739         located in inline.adb
1740         * inline.adb (Has_Single_Return): Moved out of
1741         Build_Body_To_Inline to avoid having duplicated code.
1742         (Number_Of_Statements): New subprogram.
1743         (Register_Backend_Inlined_Subprogram): New subprogram.
1744         (Register_Backend_Not_Inlined_Subprogram): New subprogram.
1745         (Add_Inlined_Subprogram): Register backend inlined subprograms and
1746         also register subprograms that cannot be inlined by the backend.
1747         (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
1748         to avoid having duplicated code.  Replace occurrences of
1749         Debug_Flag_Dot_K by Back_End_Inlining.
1750         * sem_res.adb (Resolve_Call): Code cleanup.
1751         * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
1752         occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
1753         (List_Inlining_Info): Add listing of subprograms passed to the
1754         backend and listing of subprograms that cannot be inlined by
1755         the backend.
1756         * sem_ch12.adb, sem_ch3.adb Replace occurrences of
1757         Debug_Flag_Dot_K by Back_End_Inlining.
1759 2014-07-31  Robert Dewar  <dewar@adacore.com>
1761         * nlists.ads: Minor code fix (remove unwise Inline for
1762         List_Length).
1764 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
1766         * einfo.adb: Remove VMS specific code.
1767         * exp_attr.adb: Remove VAX specific code.
1768         * set_targ.adb: Remove handling of VAX_Float.
1769         * sem_vfpt.adb: Remove references to Vax_Native.
1770         * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
1772 2014-07-31  Robert Dewar  <dewar@adacore.com>
1774         * sem_ch4.adb: Minor reformatting.
1776 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
1778         * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
1779         to VMS. Misc clean ups.
1780         * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
1782 2014-07-31  Robert Dewar  <dewar@adacore.com>
1784         * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
1785         exp_prag.adb, frontend.adb, interfac.ads,
1786         par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
1787         s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
1788         sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
1789         snames.ads-tmpl: Remove obsolete VMS-specific code.
1791 2014-07-31  Robert Dewar  <dewar@adacore.com>
1793         * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
1795 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
1797         * a-intnam-linux.ads: Minor: update obsolete comments.
1798         * s-taasde.adb: Minor: fix comment header.
1800 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
1802         * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
1803         s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
1804         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
1805         g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
1806         s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
1807         s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
1808         s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
1809         a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
1810         symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
1811         symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
1812         s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
1813         symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
1814         s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
1815         s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
1816         s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
1817         a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
1818         * namet.h (Is_Non_Ada_Error): Remove.
1820 2014-07-31  Robert Dewar  <dewar@adacore.com>
1822         * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
1823         reformatting.
1825 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1827         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
1828         which demonstrates the expansion of while loops subject to
1829         attribute 'Loop_Entry. The condition of a while loop along with
1830         related condition actions is now wrapped in a function.  Instead
1831         of repeating the condition, the expansion now calls the function.
1833 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
1835         * sem_case.adb (Check_Against_Predicate): Correct off-by-one
1836         error when reporting of missing values in a case statement for
1837         a type with a static predicate.
1838         (Check_Choices): Reject a choice given by a subtype to which a
1839         Dynamic_Predicate applies.
1840         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
1841         Has_Dynamic_Predicate_Aspect flag from parent.
1843 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
1845         * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
1846         cannot apply to a subtype of an incomplete type.
1847         (Is_Static_Choice): Treat an Others_Clause as static. The
1848         staticness of the expression and of the range are checked
1849         elsewhere.
1851 2014-07-31  Pascal Obry  <obry@adacore.com>
1853         * adaint.h (__gnat_ftell64): Added.
1854         (__gnat_fseek64): Added.
1855         (__int64): Added.
1856         * cstreams.c (__int64): Removed.
1858 2014-07-31  Pascal Obry  <obry@adacore.com>
1860         * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
1861         * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
1862         (ftell64): Always returns a 64bit value.
1863         * cstreams.c (int64): New definition.
1864         (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
1865         (__gnat_ftell64): Always returns a 64bit value. The implemenation now
1866         uses ftello() on UNIX.
1867         (__gnat_fseek64): Offset is always a 64bit value. The
1868         implementation now uses fseeko() on UNIX.
1869         * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
1870         always use fseek64 to set the offset.
1871         (Size): Simplify code, always use fseek64/ftell64.
1872         * s-direio.ads (Count): Now an int64.
1873         * g-socket.ads (Vector_Element): Adjust definition for Length
1874         to be a size_t. This matches the C definition and avoid using
1875         a 64bit integer on 32bit platforms now that Count is always 64bit.
1876         * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
1877         (C_Recvmsg): Change some conversion to account for change in
1878         Vector_Element.
1879         (C_Sendmsg): Likewise.
1881 2014-07-31  Robert Dewar  <dewar@adacore.com>
1883         * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
1884         * debug.adb: Remove documentation of -gnatdm flag.
1885         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
1886         -gnatdm flag.
1888 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
1890         * lib-writ.adb (Write_Unit_Information): Fix case where U =
1891         No_Unit.
1893 2014-07-31  Claire Dross  <dross@adacore.com>
1895         * exp_util.adb, exp_util.ads
1896         (Get_First_Parent_With_External_Axiomatization_For_Entity):
1897         New routine to find the first parent of an entity with
1898         a pragma Annotate (GNATprove, External_Axiomatization).
1899         (Has_Annotate_Pragma_For_External_Axiomatization): New function
1900         to check if a package has a pragma Annotate (GNATprove,
1901         External_Axiomatization).
1902         * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
1903         flag on the entity for the declaration created for a formal
1904         subprogram in an instance. This is a renaming declaration,
1905         or in GNATprove_Mode the declaration of an expression function
1906         that captures the axiomatization of the actual.
1907         * sem_ch6.adb (Analyze_Expression_Function): For a
1908         Generic_Actual_Subprogram, place body immediately after the
1909         declaration because it may be used in a subsequent declaration
1910         in the instance.
1911         * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
1912         the actual is a function, not an operator. Handle functions with
1913         one and two parameters and binary and unary operators.
1915 2014-07-31  Pascal Obry  <obry@adacore.com>
1917         * cstreams.c (__gnat_is_regular_file_fd): Removed.
1918         * adaint.c (__gnat_is_regular_file_fd): Added.
1920 2014-07-31  Robert Dewar  <dewar@adacore.com>
1922         * exp_strm.adb: Minor reformatting.
1924 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
1926         * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
1927         Analyze_Associations, to create a wrapper around operators that
1928         are actuals to formal subprograms. This is done in GNATProve
1929         mode in order to propagate the contracts of the operators to
1930         the body of the instance.
1932 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
1934         * sem_attr.adb (Analyze_Attribute, case 'Old):  The reference is
1935         legal if within an aspect specification for a generic subprogram.
1937 2014-07-31  Javier Miranda  <miranda@adacore.com>
1939         * gnat1drv.adb (Back_End_Inlining): Set to false if
1940         Suppress_All_Inlining is set.
1941         * debug.adb: Adding documentation for -gnatd.z.
1942         * inline.adb (Add_Inlined_Body): Extend the -gnatn2
1943         processing to -gnatn1 for calls to Inline_Always routines.
1944         (Add_Inlined_Subprogram): Remove previous patch.
1946 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
1948         * sem_ch13.adb (Check_One_Function): Apply properly the static
1949         semantic rules for indexing aspects and the functions they denote.
1951 2014-07-31  Javier Miranda  <miranda@adacore.com>
1953         * debug.adb: Complete documentation of -gnatd.z.
1955 2014-07-31  Bob Duff  <duff@adacore.com>
1957         * gnat_ugn.texi: Minor doc fixes.
1959 2014-07-31  Robert Dewar  <dewar@adacore.com>
1961         * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
1962         index value.
1964 2014-07-31  Tristan Gingold  <gingold@adacore.com>
1966         * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
1967         (Packed_Bytes1): Make component aliased.
1969 2014-07-31  Robert Dewar  <dewar@adacore.com>
1971         * s-unstyp.ads, s-fileio.adb: Minor reformatting.
1973 2014-07-31  Robert Dewar  <dewar@adacore.com>
1975         * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
1976         reformatting.
1978 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
1980         * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
1981         on array references here, now done more selectively in trans.c.
1983 2014-07-31  Doug Rupp  <rupp@adacore.com>
1985         * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
1987 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
1989         * sem_util.adb (Is_Effectively_Volatile): New routine.
1991 2014-07-31  Fedor Rybin  <frybin@adacore.com>
1993         * gnat_ugn.texi: Document --test-duration option for gnattest.
1995 2014-07-31  Javier Miranda  <miranda@adacore.com>
1996             Eric Botcazou  <ebotcazou@adacore.com>
1998         * opt.ads (Back_End_Inlining): New variable which controls
1999         activation of inlining by back-end expansion.
2000         * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
2001         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
2002         the body to be inlined by the frontend if Back_End_Inlining
2003         is enabled.
2004         * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
2005         (Expand_Call): If backend inlining is enabled let the backend to
2006         handle inlined subprograms.
2007         * inline.ads (Register_Backend_Call): Moved here from exp_ch6
2008         * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
2009         (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
2010         (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
2011         enabled.
2012         * debug.adb Document -gnatd.z
2013         * fe.h Import Back_End_Inlining variable.
2014         * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
2015         enabled then declare attribute "always inline"
2016         * gcc-interface/decl.c, gcc-interface/trans.c,
2017         gcc-interface/gigi.h: Add handling of Inline_Always pragma.
2019 2014-07-31  Robert Dewar  <dewar@adacore.com>
2021         * a-ngelfu.ads: Minor comment fix.
2023 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2025         * freeze.adb (Freeze_Record_Type): Replace all calls to
2026         Is_SPARK_Volatile with Is_Effectively_Volatile and update
2027         related comments.
2028         * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
2029         Replace all calls to Is_SPARK_Volatile with
2030         Is_Effectively_Volatile and update related comments.
2031         * sem_ch5.adb (Analyze_Iterator_Specification,
2032         Analyze_Loop_Parameter_Specification): Replace all calls to
2033         Is_SPARK_Volatile with Is_Effectively_Volatile and update
2034         related comments.
2035         * sem_ch6.adb (Process_Formals): Replace all calls to
2036         Is_SPARK_Volatile with Is_Effectively_Volatile and update
2037         related comments.
2038         * sem_ch12.adb (Instantiate_Object): Replace the call to
2039         Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
2040         and update related comment.
2041         * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
2042         Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
2043         with Is_Effectively_Volatile and update related comments.
2044         * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
2045         all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
2046         update related comments.
2047         * sem_util.adb (Has_Enabled_Property,
2048         Variable_Has_Enabled_Property): Replace all calls
2049         to Is_SPARK_Volatile with Is_Effectively_Volatile and
2050         update related comments.
2051         (Is_Effectively_Volatile): New routine.
2052         (Is_Effectively_Volatile_Object): New routine.
2053         (Is_SPARK_Volatile): Removed.
2054         (Is_SPARK_Volatile_Object): Removed.
2055         * sem_util.ads (Is_Effectively_Volatile): New routine.
2056         (Is_Effectively_Volatile_Object): New routine.
2057         (Is_SPARK_Volatile): Removed.
2058         (Is_SPARK_Volatile_Object): Removed.
2060 2014-07-31  Pascal Obry  <obry@adacore.com>
2062         * s-fileio.adb (Open): Make sure a shared file gets inserted into
2063         the global list atomically. This ensures that the file descriptor
2064         won't be freed because another tasks is closing the file.
2066 2014-07-31  Robert Dewar  <dewar@adacore.com>
2068         * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
2069         generation of _FIRST and _LAST variables even in GNATprove_Mode.
2070         * gnat_ugn.texi: Minor editing.
2071         * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
2072         aggregate is marked Comes_From_Source if argument is CFS.
2074 2014-07-31  Pascal Obry  <obry@adacore.com>
2076         * s-fileio.adb: Remove obsolete comment.
2078 2014-07-31  Vincent Celier  <celier@adacore.com>
2080         * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
2081         overriding keyword before function to avoid error when compiler
2082         is called with -gnatyO (check overriding indicators).
2084 2014-07-31  Tucker Taft  <taft@adacore.com>
2086         * gnat_ugn.texi: Add a paragraph pointing the reader
2087         to the "plugins" example.
2089 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2091         * freeze.adb (Freeze_Expression): Document the
2092         purpose of the parent chain traversal.
2094 2014-07-31  Robert Dewar  <dewar@adacore.com>
2096         * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
2097         unconstrained fpt ops.
2099 2014-07-31  Pascal Obry  <obry@adacore.com>
2101         * s-fileio.adb (Open): Make sure a shared file gets inserted into
2102         the global list atomically. This ensures that the file descriptor
2103         won't be freed because another tasks is closing the file.
2105 2014-07-31  Vincent Celier  <celier@adacore.com>
2107         * projects.texi: Minor spelling error fix.
2109 2014-07-31  Robert Dewar  <dewar@adacore.com>
2111         * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
2112         * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
2113         information.
2114         * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
2115         * restrict.adb (Process_Restriction_Synonyms): Add handling
2116         of No_Elaboration_Code_All.
2117         * restrict.ads (Process_Restriction_Synonyms): Now handles
2118         No_Elaboration_Code_All.
2119         * sem_ch10.adb (Analyze_Context): Enforce transitive with for
2120         No_Elaboration_Code_All.
2121         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2122         Handle setting of No_Elab_Code in unit information. Handle
2123         No_Elaboration_Code_All.
2124         * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
2125         pragma processing.
2126         (Name_No_Elaboration_Code_All): New name for pragma processing.
2128 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2130         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
2131         types with a null range and use the Esize of the component
2132         instead of its RM_Size to identify appropriate values.
2134 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2136         * freeze.adb Add with and use clause for Aspects.
2137         (Freeze_Expression): Emit an error when a volatile constant lacks
2138         Boolean aspect Import.
2139         (Has_Boolean_Aspect_Import): New routine.
2141 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
2143         * exp_util.adb: Minor reformatting.
2145 2014-07-31  Vincent Celier  <celier@adacore.com>
2147         * errutil.adb (Error_Msg): Make sure that all components of
2148         the error message object are initialized.
2150 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2152         * sem_ch4.adb (Try_Container_Indexing): If the container type is
2153         class-wide, use specific type to locate iteration primitives.
2154         * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
2155         rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
2156         Minor error message reformating.
2157         * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
2158         aspect for a derived type.
2160 2014-07-31  Robert Dewar  <dewar@adacore.com>
2162         * debug.adb: Document debug flag d.X.
2164 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2166         * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
2167         * sem_util.adb (Find_Specific_Type): If type is untagged private,
2168         retrieve full view so that primitive operations can be located.
2169         * exp_disp.adb Move Find_Specific_Type to sem_util.
2170         * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
2171         Find_Specific_Type to locate primitive equality.
2172         * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
2173         type does not require initialization.
2174         * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
2175         body all visibility is established, and the enclosing package
2176         declarations must not be installed.
2178 2014-07-31  Yannick Moy  <moy@adacore.com>
2180         * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
2181         Make subprogram public.
2183 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2185         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
2186         predicate Discriminated_Size, to distinguish between private
2187         components that depend on discriminants from those whose size
2188         depends on some other non-static expression.
2190 2014-07-31  Nicolas Setton  <setton@adacore.com>
2192         * g-exptty.adb (Close): Fix binding to Waitpid: use the
2193         tty version.
2195 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2197         * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
2198         in a discrete range, when 'range was probably intended.
2200 2014-07-31  Robert Dewar  <dewar@adacore.com>
2202         * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
2204 2014-07-31  Robert Dewar  <dewar@adacore.com>
2206         * frontend.adb: Minor reformatting.
2207         * sem.adb: Minor reformatting.
2208         * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
2209         identifiers on rewrite.
2210         * par.adb: Minor comment updates.
2211         * a-ngelfu.adb (Cos): Minor simplification.
2212         * par-ch13.adb (Get_Aspect_Specifications): Improve messages
2213         and recovery for bad aspect.
2214         * exp_ch3.adb: Code clean up.
2215         * sem_util.ads: Minor comment correction.
2216         * sem_ch13.adb (Check_Array_Type): Properly handle large types.
2217         * sem_ch3.adb: Code clean up.
2218         * binderr.ads: Minor comment correction.
2220 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2222         * exp_disp.adb (Expand_Interface_Conversion): A call whose
2223         prefix is a static conversion to an interface type that is not
2224         class-wide is not dispatching.
2226 2014-07-31  Robert Dewar  <dewar@adacore.com>
2228         * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
2229         s-traceb-mastop.adb: Minor reformatting.
2231 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2233         * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
2234         expansion, to handle properly visibility of selected components
2235         in instance bodies.
2237 2014-07-31  Robert Dewar  <dewar@adacore.com>
2239         * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
2240         * par-ch2.adb (P_Pragma): Set Inside_Depends.
2241         * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
2242         Check_Unary_Plus_Or_Minus.
2243         * scans.ads (Inside_Depends): New flag.
2244         * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
2245         * style.ads: Add Inside_Depends parameter to Check_Arrow Add
2246         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
2247         * styleg.adb (Check_Arrow): Handle Inside_Depends case.
2248         (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
2249         * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
2250         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
2252 2014-07-31  Javier Miranda  <miranda@adacore.com>
2254         * s-vaflop.adb Move the body of function T_To_G before
2255         T_To_D. Required for frontend inlining.
2256         * inline.adb (Has_Excluded_Contract): New subprogram used to
2257         check if a subprogram inlined by the frontend has contracts
2258         which cannot be inlined.
2260 2014-07-31  Bob Duff  <duff@adacore.com>
2262         * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
2263         (Call_Chain): Add 1 to number of frames to skip, to account for
2264         the fact that there's one more frame on the stack.
2265         * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
2267 2014-07-31  Robert Dewar  <dewar@adacore.com>
2269         * checks.adb (Enable_Overflow_Check): More precise setting of
2270         Do_Overflow_Check flag for division.
2272 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2274         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
2275         array types with implementation type.
2277 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2279         * sem_ch10.adb (Process_State): Remove local variable Name. Add
2280         local variable Decl. Partially declare an abstract state by
2281         generating an entity and storing it in the state declaration.
2282         * sem_prag.adb (Create_Abstract_State): Fully declare a
2283         semi-declared abstract state.
2285 2014-07-31  Robert Dewar  <dewar@adacore.com>
2287         * prj-nmsc.adb: Minor reformatting.
2289 2014-07-31  Bob Duff  <duff@adacore.com>
2291         * s-tasdeb.adb (System.Tasking.Debug): Remove
2292         all usage of the secondary stack from this package.
2294 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2296         * freeze.adb (Freeze_Expression): Update the loop in charge
2297         of finding a proper insertion place for freeze nodes to handle
2298         N_Expression_With_Actions nodes.
2300 2014-07-31  Robert Dewar  <dewar@adacore.com>
2302         * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
2303         reformatting.
2305 2014-07-31  Pascal Obry  <obry@adacore.com>
2307         * prj-nmsc.adb: Minor reformatting.
2309 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2311         * sem_util.adb (Has_Preelaborable_Initialization): Check that
2312         type is tagged before checking whether a user-defined Initialize
2313         procedure is present.
2315 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
2317         * a-ngelfu.ads (Sqrt): Augment postcondition.
2319 2014-07-31  Pascal Obry  <obry@adacore.com>
2321         * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
2322         directory and ALI directory must be different than all object
2323         and library directories of aggregated projects.
2325 2014-07-31  Vincent Celier  <celier@adacore.com>
2327         * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
2328         to package body, as it is not called from outside. Remove argument
2329         Project_Tree, no longer used. When runtime cannot be found,
2330         call Raise_Invalid_Config instead of failing the program.
2332 2014-07-31  Robert Dewar  <dewar@adacore.com>
2334         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
2335         (Overflow_Check).
2336         * gnatlink.adb (Process_Args): Remove generation of -gnato0,
2337         no longer needed.
2339 2014-07-31  Robert Dewar  <dewar@adacore.com>
2341         * gnat_ugn.texi: Document new switch -gnato0.
2342         * sem_ch3.ads: Minor reformatting.
2343         * gnatlink.adb (Process_Args): Compile bind file with -gnato0
2344         (we do not want overflow checks when incrementing elaboration
2345         counters).
2346         * einfo.ads: Minor reformatting.
2348 2014-07-31  Robert Dewar  <dewar@adacore.com>
2350         * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
2351         * s-arit64.adb: Minor reformatting.
2353 2014-07-31  Robert Dewar  <dewar@adacore.com>
2355         * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
2356         checking is enabled except in GNAT_Mode.
2357         * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
2358         (suppress overflow checks).
2360 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2362         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
2363         invariant procedure for an internally generated subtype that is
2364         created for an object of a class-wide type.
2366 2014-07-31  Vincent Celier  <celier@adacore.com>
2368         * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
2370 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
2372         * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
2373         exp_disp.adb: Minor reformatting.
2375 2014-07-31  Robert Dewar  <dewar@adacore.com>
2377         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
2378         sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
2379         exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
2380         reformatting.
2382 2014-07-31  Robert Dewar  <dewar@adacore.com>
2384         * sem_ch13.adb: Minor reformatting.
2386 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2388         * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
2389         is an unchecked_union, warn that invariants will not be checked
2390         on components that have them.
2392 2014-07-31  Robert Dewar  <dewar@adacore.com>
2394         * freeze.adb (Freeze_Entity): Check for error of
2395         Type_Invariant'Class applied to a untagged type.
2396         * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
2397         as null body, so that we perform error checks even if expansion
2398         is off.
2400 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2402         * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
2403         is already present, nothing to do.
2404         * exp_ch3.adb (Build_Component_Invariant_Call): For an access
2405         component, check whether the access type has an invariant before
2406         checking the designated type.
2407         (Build_Record_Invariant_Proc): Change suffix of generated
2408         name to prevent ambiguity when record type has invariants
2409         in addition to those of components, and two subprograms are
2410         constructed. Consistent with handling of array types.
2411         (Insert_Component_Invariant_Checks): Build invariant procedure
2412         body when one has not been created yet, in the case of composite
2413         types that are completions and whose full declarations carry
2414         invariants.
2416 2014-07-30  Thomas Quinot  <quinot@adacore.com>
2418         * gnat_rm.texi: Minor doc fixes.
2420 2014-07-30  Robert Dewar  <dewar@adacore.com>
2422         * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
2424 2014-07-30  Vincent Celier  <celier@adacore.com>
2426         * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
2427         of error message.
2428         * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
2429         message to report that a directory cannot be created, to avoid
2430         processing of the directory path that may contains special
2431         insertion characters.
2433 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2435         * a-crdlli.ads: Place declaration of Empty_List after full type
2436         declaration for Curosr, to prevent freezing error.
2438 2014-07-30  Robert Dewar  <dewar@adacore.com>
2440         * get_targ.adb: Minor code reorganization.
2441         * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
2442         reformatting.
2444 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2446         * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
2447         not Program_Error, when attempting to remove an element not in
2448         the set. This is the given semantics for all set containers.
2450 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2452         * a-rbtgbo.adb (Delete_Node_Sans_Free): If
2453         element is not present in tree return rather than violating
2454         an assertion. Constraint_Error will be raised in the caller if
2455         element is not in the container.
2457 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
2459         * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
2460         (elab body): Add provision for default target config file.
2461         * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
2463 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2465         * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
2466         when attempting to remove an element not in the set. This is
2467         the given semantics for all set containers.
2468         * a-cborse.adb (Delete): Attempt removal first, to check for
2469         tampering, before checking whether this is an attempt to
2470         delete a  non-existing element, and in fthe latter case raise
2471         Constraint_Error.
2473 2014-07-30  Vincent Celier  <celier@adacore.com>
2475         * prj-proc.adb (Recursive_Process): Do not create a new
2476         Project_Id if the project is already in the list of projects of
2477         the tree.
2479 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2481         * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
2482         whose type is an incomplete formal type.
2483         (Analyze_Return_Type): Reject a return type that is an untagged
2484         imcomplete formal type.
2485         (Process_Formals): Reject a formal parameter whose type is an
2486         untagged formal incomplete type.
2487         * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
2488         an untagged formal incomplete type.
2490 2014-07-30  Robert Dewar  <dewar@adacore.com>
2492         * gnat_ugn.texi: Minor spelling correction.
2493         * makeutl.adb: Minor code reorganization.
2494         * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
2496 2014-07-30  Robert Dewar  <dewar@adacore.com>
2498         * einfo.ads (Has_Unchecked_Union): Document that this is used
2499         to check for illegal Valid_Scalars attribute references.
2500         * exp_attr.adb (Build_Record_VS_Func): New function
2501         (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
2502         function.
2503         * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
2504         Unchecked_Union Add note on 'Valid_Scalars generating a lot
2505         of code.
2506         * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
2507         error on attempt to apply Valid_Scalars to Unchecked_Union type.
2509 2014-07-30  Steve Baird  <baird@adacore.com>
2511         * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
2512         of A(I..J)(K) in CodePeer_Mode.
2514 2014-07-30  Ben Brosgol  <brosgol@adacore.com>
2516         * gnat_ugn.texi: Fix typo.
2518 2014-07-30  Thomas Quinot  <quinot@adacore.com>
2520         * lib-writ.ads: document format change.
2522 2014-07-30  Pascal Obry  <obry@adacore.com>
2524         * prj-util.adb (For_Interface_Sources): Do not
2525         include sources from withed externally built projects.
2527 2014-07-30  Robert Dewar  <dewar@adacore.com>
2529         * lib.adb: Minor reformatting.
2530         * prj-util.adb: Minor reformatting.
2532 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2534         * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
2535         that depends on discriminants, and which is given by an others
2536         clause, create an explicit subtype with the discriminant values
2537         of the enclosing aggregate, because the backend cannot otherwise
2538         retrieve the actual bounds of the array.
2540 2014-07-30  Fedor Rybin  <frybin@adacore.com>
2542         * gnat_ugn.texi: Improve gnattest documentation.
2544 2014-07-30  Pascal Obry  <obry@adacore.com>
2546         * makeutl.adb (Insert_Project_Sources): Properly handle sources
2547         that are aggregated. We want to include sources not only part
2548         of libraries but also if part of an aggregated project from an
2549         aggregate library.
2550         * prj.adb (For_Project_And_Aggregated_Context): Properly check
2551         state of root project.
2553 2014-07-30  Thomas Quinot  <quinot@adacore.com>
2555         * lib-load.ads: Minor reformatting.
2556         * sinfo.ads (Library_Unit): Update comment.
2557         * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
2558         is redundant. Instead used the pragma Node_Id directly as the
2559         element type.
2561 2014-07-30  Thomas Quinot  <quinot@adacore.com>
2563         * lib.adb (Store_Note): Store only notes that do not come from
2564         an instance, and that are in the extended main source unit.
2565         * lib-writ (Write_Unit_Information): Annotations from subunits
2566         must be emitted along with those for the main unit, and they
2567         must carry a specific file name.
2568         * ali.ads (Notes_Record): Use a File_Name_Type instead of a
2569         Unit_Id for the source file containing the pragma, as in the
2570         case of annotations from subunits we might not have a readily
2571         available unit id.
2572         * ali.adb (Scan_ALI): Account for above change in data structure.
2574 2014-07-30  Vincent Celier  <celier@adacore.com>
2576         * makeutl.adb (Insert_Project_Sources): When the library project
2577         is an aggregate Stand-Alone Library, insert in the queue the
2578         Ada interface units, with Closure set to True;
2580 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2582         * sem_util.adb: Fix minor typo.
2583         * makeutl.adb: Minor reformatting.
2585 2014-07-30  Robert Dewar  <dewar@adacore.com>
2587         * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
2589 2014-07-30  Yannick Moy  <moy@adacore.com>
2591         * checks.ads: Fix typo in comment.
2593 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
2595         * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
2596         entities that materialize range bounds, if any.
2598 2014-07-30  Vincent Celier  <celier@adacore.com>
2600         * projects.texi: Minor spelling fix.
2602 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2604         * checks.adb (Make_Bignum_Block): Use the new secondary stack
2605         build routines to manage the mark.
2606         * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
2607         Use the new secodary stack build routines to manage the mark.
2608         (Insert_Actions_In_Scope_Around): Add new formal parameter
2609         Manage_SS along with comment on its usage. Code and comment
2610         reformatting. Mark and release the secondary stack when the
2611         context warrants it.
2612         (Make_Transient_Block): Update the call
2613         to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
2614         (Wrap_Transient_Declaration): Remove local variable
2615         Uses_SS. Ensure that the secondary stack is marked and released
2616         when the related object declaration appears in a library level
2617         package or package body. Code and comment reformatting.
2618         * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
2619         (Build_SS_Release_Call): New routine.
2621 2014-07-30  Steve Baird  <baird@adacore.com>
2623         * exp_attr.adb: Revert previous change, not needed after all.
2625 2014-07-30  Vincent Celier  <celier@adacore.com>
2627         * makeutl.adb (Queue.Insert_Project_Sources): Insert with
2628         Closure => True for interfaces of Stand-Alone Libraries.
2629         * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
2630         Boolean component Closure, defaulted to False.
2632 2014-07-30  Yannick Moy  <moy@adacore.com>
2634         * sem_res.adb: Fix typo in error message.
2636 2014-07-30  Robert Dewar  <dewar@adacore.com>
2638         * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
2639         as name suffixes rather than L/H for subtype bounds.
2640         * tbuild.ads: Minor comment improvements and fixes
2641         (Make_External_Name): Document that suffix can start with an
2642         underscore.
2644 2014-07-30  Bob Duff  <duff@adacore.com>
2646         * gnat_ugn.texi: Document --rep-clauses switch.
2648 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2650         * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
2651         Default_Component_Value can only be specified for scalar type or
2652         arrays of scalar types respectively.  This legality check must
2653         be performed at the point the aspect is analyzed, in order to
2654         reject aspect specifications that apply to a partial view.
2656 2014-07-30  Thomas Quinot  <quinot@adacore.com>
2658         * freeze.adb: Minor reformatting.
2660 2014-07-30  Robert Dewar  <dewar@adacore.com>
2662         * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
2663         codepeer mode.
2665 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2667         * freeze.adb (Check_Expression_Function): At the freeze point
2668         of an expression function, verify that the expression in the
2669         function does not contain references to any deferred constants
2670         that have no completion yet.
2671         (Freeze_Expression, Freeze_Before): call
2672         Check_Expression_Function.
2673         * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
2674         * a-ciorse.adb: Add Adjust and Finalize routines for
2675         Reference_Control_Type. Use it in the construction of Reference
2676         and Constant_Reference values.
2678 2014-07-30  Robert Dewar  <dewar@adacore.com>
2680         * exp_aggr.adb: Update comments.
2681         * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
2682         reformatting.
2684 2014-07-30  Robert Dewar  <dewar@adacore.com>
2686         * cstand.adb (New_Standard_Entity): New version takes name
2687         string to call Make_Name.
2688         (Create_Standard): Use this routine to set name before setting other
2689         fields.
2691 2014-07-30  Robert Dewar  <dewar@adacore.com>
2693         * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
2694         entity reference.
2695         (Expand_Attribute, case Last): Ditto.
2696         * exp_ch3.adb (Constrain_Index): New calling sequence for
2697         Process_Range_Expr_In_Decl.
2698         (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
2699         problematical case.
2700         * sem_ch3.adb (Constrain_Index): New calling sequence for
2701         Process_Range_Expr_In_Decl.
2702         (Set_Scalar_Range_For_Subtype): ditto.
2703         (Process_Range_Expr_In_Decl): Create constants to hold bounds for
2704         subtype.
2705         * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
2706         * sem_eval.adb (Compile_Time_Compare): Make sure we use base
2707         types if we are not assuming no invalid values.
2709 2014-07-30  Robert Dewar  <dewar@adacore.com>
2711         * clean.adb: Minor reformatting.
2712         * opt.ads: Minor fix to incorrect comment.
2714 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2716         * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
2717         subprogram, used by bounded hashed sets, to delete a node at
2718         a given index, whose element may have been improperly updated
2719         through a Reference_Preserving key.
2720         * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
2721         * a-cbhase.adb: Add Adjust and Finalize routines for
2722         Reference_Control_Type.
2723         (Delete, Insert): Raise Program_Error, not Constraint_Error,
2724         when operation is illegal.
2725         (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
2726         * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
2727         private with_clause for Ada.Finalization.
2728         * a-cbmutr.adb: Add Adjust and Finalize routines for
2729         Reference_Control_Type. Use it in the construction of Reference
2730         and Constant_Reference values.
2732 2014-07-30  Robert Dewar  <dewar@adacore.com>
2734         * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
2736 2014-07-30  Pascal Obry  <obry@adacore.com>
2738         * clean.adb (Clean_Project): Properly check for directory
2739         existence before trying to enter it.
2741 2014-07-30  Robert Dewar  <dewar@adacore.com>
2743         * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
2745 2014-07-30  Robert Dewar  <dewar@adacore.com>
2747         * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
2748         missing semicolon after name.
2750 2014-07-30  Pascal Obry  <obry@adacore.com>
2752         * prj.ads (Gprinstall_Flags): New constant.
2753         * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
2754         missing library dir if Directories_Must_Exist_In_Projects
2755         is false.
2757 2014-07-30  Bob Duff  <duff@adacore.com>
2759         * a-except-2005.adb, a-except.adb: Remove obsolete comments.
2760         * s-traceb.ads: Updagte comments.
2762 2014-07-30  Robert Dewar  <dewar@adacore.com>
2764         * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
2765         a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
2766         a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
2767         reformatting.
2769 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2771         * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
2772         subprogram, used by all versions of hashed sets, to delete a node
2773         whose element has been improperly updated through a Reference_
2774         Preserving key.
2775         * a-cohase.adb: Remove Delete_Node, use new common procedure
2776         Delete_Node_At_Index.
2777         * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
2778         * a-cihase.adb: Add Adjust and Finalize routines for
2779         Reference_Control_Type.
2780         (Reference_Preserving_Key): Build aggregate for
2781         Reference_Control_Type
2783 2014-07-30  Yannick Moy  <moy@adacore.com>
2785         * checks.adb, checks.ads (Determine_Range_R): New procedure to
2786         determine the possible range of a floating-point expression.
2788 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2790         * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
2791         * a-cborse.adb: Add Adjust and Finalize routines for
2792         Reference_Control_Type.
2793         (Reference_Preserving_Key): Build aggregate for
2794         Reference_Control_Type.
2795         (Delete): Check for tampering, and raise Program_Error (not
2796         Constraint_Error) when attempting to delete an element not in
2797         the set.
2798         (Insert): Ditto.
2800 2014-07-30  Bob Duff  <duff@adacore.com>
2802         * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
2803         * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
2804         Exception_Information is used to produce useful debugging
2805         information for the programmer. However, it was also used to
2806         implement the stream attributes for type Exception_Occurrence. The
2807         latter requires a stable and portable interface, which meant
2808         that we couldn't include a symbolic traceback. A separate set of
2809         routines was used to provide symbolic tracebacks under program
2810         control (i.e. not automatically). The goal of this ticket is
2811         to provide such automatic tracebacks, so the change here is to
2812         split the two functionalities: Exception_Information gives the
2813         maximally useful information for debugging (i.e. it now includes
2814         a symbolic traceback when a decorator is set, and it can be
2815         improved freely in the future without disturbing streaming).
2816         Untailored_Exception_Information always uses hexadecimal addresses
2817         in the traceback, has a stable and portable output, and is now
2818         used for streaming.
2820 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2822         * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
2823         on the target of the assignment to find out whether it
2824         can be directly done by the back-end.
2825         * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
2827 2014-07-30  Robert Dewar  <dewar@adacore.com>
2829         * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
2830         a-tasatt.adb: Minor reformatting.
2832 2014-07-30  Robert Dewar  <dewar@adacore.com>
2834         * exp_ch4.adb: Minor reformatting.
2836 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2838         * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
2839         Reference_Control_Type to generic package, to keep additional
2840         information for Reference_Types that manipulate keys. Add Adjust and
2841         Finalize procedures for this type.
2842         (Finalize): When finalizing a reference_preserving_key, verify
2843         that the key of the new value is equivalent to the key of the
2844         original element, raise Program_Error otherwise.
2845         (Insert): Detect tampering.
2846         (Reference_Preserving_Key): Build proper Reference_Control_Type,
2847         and update Busy and Lock bits to detect tampering.
2848         * a-cohase.ads: Keep with-clause private.
2850 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
2852         * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
2853         of an equality are of an Unchecked_Union type and lack inferable
2854         discriminants.
2856 2014-07-30  Bob Duff  <duff@adacore.com>
2858         * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
2859         g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
2860         GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
2861         hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
2862         we can call them from the runtimes. Leave renamings in place under GNAT.
2864 2014-07-30  Yannick Moy  <moy@adacore.com>
2866         * inline.adb (Check_And_Build_Body_To_Inline): Include code for
2867         inlining in GNATprove mode.
2869 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2871         * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
2872         Reference_Control_Type to generic package, to keep additional
2873         information for Reference_Types that manipulate keys. Add Adjust and
2874         Finalize procedures for this type.
2875         (Delete_Node): New procedure called when finalizing a
2876         Reference_Control_Type, to remove a node whose element has been
2877         improperly updated through a Reference.
2878         (Insert): Detect tampering.
2879         (Reference_Preserving_Key): Build proper Reference_Control_Type,
2880         and update Busy and Lock bits to detect tampering.
2882 2014-07-30  Bob Duff  <duff@adacore.com>
2884         * exp_intr.ads: Minor comment fix.
2886 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
2888         * exp_prag.adb, a-tags.ads: Minor typo fixes.
2890 2014-07-30  Bob Duff  <duff@adacore.com>
2892         * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
2893         a-except.ads, g-traceb.adb, memtrack.adb,
2894         s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
2895         Cleanup: Make the three versions of System.Traceback.Call_Chain
2896         have the same interface. Use an array for the Traceback parameter
2897         instead of an Address.  This will enable reduction in code
2898         duplication.
2900 2014-07-30  Pat Rogers  <rogers@adacore.com>
2902         * gnat_ugn.texi: Corrected minor textual error in description
2903         of switch -gnatwl.
2905 2014-07-30  Bob Duff  <duff@adacore.com>
2907         * Makefile.rtl: Sort file names.
2909 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
2911         * a-tasatt.adb: Complete previous change: kill spurious warning
2912         on e.g. sparc, and make sure we only use the fast path when the
2913         alignment is compatible.
2915 2014-07-30  Yannick Moy  <moy@adacore.com>
2917         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
2918         coming from source.
2920 2014-07-30  Yannick Moy  <moy@adacore.com>
2922         * inline.adb (Build_Body_To_Inline): Issue more precise messages
2923         for declarations that prevent inlining.
2924         (Cannot_Inline): Change usual start of message to refer to contextual
2925         analysis in GNATprove mode.
2926         * sem_res.adb (Resolve_Call): Change usual start of message to
2927         refer to contextual analysis in GNATprove mode, when inlining
2928         not possible.
2930 2014-07-30  Robert Dewar  <dewar@adacore.com>
2932         * sem_res.adb, sem_ch6.adb: Minor code reorganization.
2933         * inline.adb: Minor reformatting.
2935 2014-07-30  Javier Miranda  <miranda@adacore.com>
2937         * a-tags.ads: Add comments.
2939 2014-07-30  Pat Rogers  <rogers@adacore.com>
2941         * gnat_rm.texi: Minor word error.
2943 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
2945         * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
2946         created to capture the value of the prefix of 'Old at the
2947         beginning of the current declarative part, to prevent data flow
2948         anomalies in the postcondition procedure that will follow.
2950 2014-07-30  Yannick Moy  <moy@adacore.com>
2952         * debug.adb: Retire debug flag -gnatdQ.
2953         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
2954         on decl, not on body.  Ignore predicate functions.
2955         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
2956         debug flag -gnatdQ.  Correctly analyze SPARK_Mode on decl and
2957         body when generating a decl for a body on which SPARK_Mode aspect
2958         is given.
2959         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
2960         attaching pragma to entity, to account for declaration not coming
2961         from source.
2962         * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
2963         as not always inlined in GNATprove mode, when called in an
2964         assertion context.
2966 2014-07-30  Vincent Celier  <celier@adacore.com>
2968         * debug.adb: Minor comment update.
2970 2014-07-30  Robert Dewar  <dewar@adacore.com>
2972         * s-tasuti.adb, s-tassta.adb: Minor reformatting.
2973         * sprint.adb (Sprint_Node): Handle N_Contract case.
2974         * exp_prag.adb: Minor reformatting.
2975         * freeze.adb (Freeze_Entity): Check useless postcondition for
2976         No_Return subprogram.
2977         * sem_prag.adb: Minor reformatting.
2979 2014-07-30  Javier Miranda  <miranda@adacore.com>
2981         * a-tags.ads: Complete comments about performance.
2983 2014-07-30  Fedor Rybin  <frybin@adacore.com>
2985         * gnat_ugn.texi: Adding description for --exit-status option to
2986         gnattest section.  Fixing index entry of --passed-tests option
2987         in gnattest section.
2989 2014-07-30  Javier Miranda  <miranda@adacore.com>
2991         * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
2992         rtsfind.ads: Remove references to package Interfaces.CPP since this
2993         package is no longer needed.
2995 2014-07-30  Bob Duff  <duff@adacore.com>
2997         * s-taasde.adb (Timer_Queue): Don't use a
2998         build-in-place function call to initialize the Timer_Queue.
2999         * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
3000         Turn off polling in these units, because otherwise we get
3001         elaboration circularities with Ada.Exceptions when the -gnatP
3002         switch is used.
3003         * s-tassta.adb (Create_Task): Make sure independent tasks
3004         are created with Parent = Environment_Task. This was not true,
3005         for example, in s-interr.adb, when Interrupt_Manager does "new
3006         Server_Task"; the Server_Task had Parent = Interrupt_Manager,
3007         which is wrong because the master is determined by the access
3008         type, which is at library level.
3009         * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
3010         now set correctly by Create_Task.
3011         (Make_Passive): Remove the workaround for the race condition in
3012         Make_Independent.
3013         * frontend.adb (Frontend): Revert to previous method of detecting
3014         temporary configuration pragma files, recognizing such files by
3015         ".tmp" in the name. This is more general than detecting pragmas
3016         Source_File_Name_Project, because it allows any tool to use
3017         this naming convention, no matter the content of the file.
3018         * gnat_ugn.texi: Document this naming convention.
3020 2014-07-30  Robert Dewar  <dewar@adacore.com>
3022         * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
3023         inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
3024         s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
3025         s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
3026         * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
3027         conversion.
3029 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3031         * sem_ch5.adb: Improve error recovery.
3032         * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
3033         before analyzing the body, so that in GNATprove mode there is
3034         no light expansion. Whatever expansion is required by SPARK will
3035         be performed when analysing the inlined code.
3037 2014-07-30  Bob Duff  <duff@adacore.com>
3039         * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
3041 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3043         * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
3044         verify that it is not hidden by an inner implicit declaration.
3046 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3048         * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
3049         * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
3050         * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
3051         the call returns an unconstrained type: in this case there is
3052         already a transient scope, and we should not establish a new one.
3053         * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
3054         True, also insert cleanup actions in the tree.
3055         (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
3056         with Clean set True.
3058 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3060         * s-taskin.ads (Direct_Index, Direct_Index_Range,
3061         Direct_Attribute_Element, Direct_Attribute_Array,
3062         Direct_Index_Vector, Direct_Attributes, Is_Defined,
3063         Indirect_Attributes): Removed.  (Atomic_Address,
3064         Attribute_Array, Attributes): New.
3065         * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
3066         Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
3067         (Finalize_Attributes): Reimplement.
3068         * s-tassta.adb (Create_Task): Remove call to
3069         Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
3070         Replace Finalize_Attributes_Link by Finalize_Attributes.
3071         * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
3072         Reimplement from scratch, using a simpler and more efficient
3073         implementation.
3074         * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
3075         * s-parame.ads, s-parame-hpux.ads,
3076         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
3077         * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
3078         Default_Attribute_Count.
3080 2014-07-30  Olivier Hainque  <hainque@adacore.com>
3082         * vxworks-ppc-link.spec: New file. Extra link
3083         instructions for ppc-vxworks.
3084         * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
3085         * system-vxworks-ppc.ads: Adjust linker options to use spec files.
3086         * system-vxworks-arm.ads: Likewise.
3087         * gcc-interface/Makefile.in: Enable .spec files.
3089 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3091         * sem_aggr.adb: Minor comment reformatting.
3093 2014-07-30  Robert Dewar  <dewar@adacore.com>
3095         * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
3096         * sem_warn.adb (Has_Junk_Name): New function
3097         (Check_References): Use Has_Junk_Name to delete junk warnings
3098         (Check_Unset_Reference): ditto.
3099         (Warn_On_Unreferenced_Entity): ditto.
3100         (Warn_On_Useless_Assignment): ditto.
3102 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3104         * checks.adb (Insert_Valid_Check): Do not check for the packed
3105         array type of a prefix that is an access type.
3107 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3109         * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
3110         Unconstrained_Array even if prefix is not frozen yet, as can
3111         occur with a private subtype used as a generic actual.
3113 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
3115         * sem_attr.adb: Minor reformatting.
3117 2014-07-30  Pat Rogers  <rogers@adacore.com>
3119         * gnat_rm.texi: Corrected minor wording error in description
3120         of No_Exception_Registration.
3122 2014-07-30  Yannick Moy  <moy@adacore.com>
3124         * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
3125         mode. Realphabetize two subprograms.
3126         * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
3127         (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
3128         (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
3129         mode.
3130         (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
3131         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
3132         Is_Inline in GNATprove mode.
3133         (Analyze_Subprogram_Specification):
3134         Set Is_Inlined_Always at subprogram entity creation.
3135         * sem_res.adb (Resolve_Call): Do not deal with inlining during
3136         pre-analysis.  Issue warning on call to possibly inlined
3137         subprogram when body not seen.
3139 2014-07-30  Yannick Moy  <moy@adacore.com>
3141         * lib-xref.adb (Generate_Reference): Add special
3142         case for compiler-generated formals in GNATprove mode.
3144 2014-07-30  Yannick Moy  <moy@adacore.com>
3146         * sem_ch6.adb: Add comments.
3148 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3150         * s-os_lib.ads (GM_Time_Of): Clarify documentation.
3152 2014-07-30  Robert Dewar  <dewar@adacore.com>
3154         * sem_aggr.adb, sem_res.adb: Minor reformatting.
3156 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3158         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3159         Bit_Order): Set Reverse_Bit_Order on the base type of the
3160         specified first subtype.
3162 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3164         * inline.adb (Expand_Inlined_Call): Use a renaming declaration
3165         to capture the value of actuals of a limited type rather than
3166         an object declaration, to prevent spurious errors when analyzing
3167         the inlined body.
3169 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3171         * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
3172         as an instance, and inhibit semantic checks on already analyzed
3173         code to prevent spurious errors.
3175 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3177         * a-exctra.ads ("="): New function, to restore compatibility.
3179 2014-07-30  Pascal Obry  <obry@adacore.com>
3181         * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
3182         routine to use the OS dst setting.
3184 2014-07-30  Pat Rogers  <rogers@adacore.com>
3186         * gnat_ugn.texi: Minor correction to description of -gnatw.K.
3188 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3190         * sem_util.adb (Wrong_Type): Disable some checks equally within
3191         instances and within inlined bodies, to suppress spurious type
3192         errors on already analyzed code.
3193         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
3194         is legal in an inlined body, juts as it is in an instance body.
3196 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3198         * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
3199         body the operand of an unchecked conversion may be a literal, in
3200         which case its type is the target type of the conversion. This
3201         is in contrast to conversions in other contexts, where the
3202         operand cannot be a literal and must be resolvable independent
3203         of the context.
3205 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
3207         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
3208         mere scalar constant instead of a reference for a renaming of
3209         scalar literal.
3210         * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
3211         * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
3213 2014-07-30  Robert Dewar  <dewar@adacore.com>
3215         * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
3216         g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
3217         g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
3218         s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
3219         g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
3220         s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
3221         & code reorganization.
3223 2014-07-30  Bob Duff  <duff@adacore.com>
3225         * s-tassta.adb, sem_util.ads: Minor reformatting.
3227 2014-07-30  Yannick Moy  <moy@adacore.com>
3229         * inline.adb (Build_Body_To_Inline): Detect when
3230         subprogram has multiple returns, or not a single last return
3231         statement, in GNATprove mode.
3232         (Cannot_Inline): Simplify logic to handle case of GNATprove
3233         inlining first.
3235 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3237         * sem_ch6.adb: Stubs are not subject to inlining.
3239 2014-07-30  Bob Duff  <duff@adacore.com>
3241         * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
3242         from a procedure to a function, so that it can more easily be
3243         called before the "begin" of a task.
3244         * s-taasde.ads (Delay_Block): Make this type immutably limited,
3245         so we can use a build-in-place function call to initialize
3246         Timer_Queue in the body.
3247         * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
3248         * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
3249         * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
3250         Make_Independent before reaching its "begin", to avoid race
3251         conditions. This causes the activating task to wait until after
3252         Make_Independent is complete before proceeding.  In addition,
3253         we initialize data structures used by independent tasks before
3254         activating those tasks, to avoid possible use of uninitialized data.
3255         * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
3256         Minor comment fixes.
3258 2014-07-30  Bob Duff  <duff@adacore.com>
3260         * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
3261         the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
3262         System.Traceback_Entries (s-traent.ads and s-traent-vms.ads).  Add
3263         subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
3264         * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
3266 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3268         * a-tasatt.adb: Remove old comments.
3270 2014-07-30  Yannick Moy  <moy@adacore.com>
3272         * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
3273         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
3274         to explain rationale for inlining or not in GNATprove mode.
3275         (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
3276         to False when inlining is not possible.
3277         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
3278         flag to indicate that subprogram is fully inlined. To be reversed
3279         if inlining problem is found.
3280         * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
3281         call in potentially unevaluated context.
3283 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
3285         * s-tarest.adb, s-tarest.ads: Fix comments.
3287 2014-07-30  Robert Dewar  <dewar@adacore.com>
3289         * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
3290         Change No_Scalar_Parts predicate to Scalar_Part_Present and
3291         invert sense of test. This avoids the "not No_xxx" situation
3292         which is always ugly.
3294 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3296         * inline.adb (Expand_Inlined_Call): When generating code for
3297         an internal subprogram the expansion uses the location of the
3298         call, so that gdb can skip over it. In GNATprove mode we want to
3299         preserve slocs of original subprogram when expanding an inlined
3300         call, to obtain better warnings, even though subprogram appears
3301         not to come from source if it is the inlining of a subprogram
3302         body without a previous spec.
3304 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
3306         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
3307         types with atomic components.
3309 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3311         * Make-generated.in: Remove now unnecessary targets after s-oscons
3312         reorg.
3314 2014-07-30  Yannick Moy  <moy@adacore.com>
3316         * sem_res.adb (Resolve_Call): Use ultimate alias
3317         of callee when available.
3319 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3321         * sem_ch6.adb (Analyze_Expression_Function): To check whether
3322         an expression function is a completion, use the specification of
3323         the previous declaration, not its entity, which may be internally
3324         generated in an inlined context.
3326 2014-07-30  Doug Rupp  <rupp@adacore.com>
3328         * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
3329         temp files in /cache directory unless overridden by TMPDIR.
3331 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
3333         * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
3334         Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
3335         type CPU, so it can never be greater than CPU_Range'Last.
3337 2014-07-30  Bob Duff  <duff@adacore.com>
3339         * s-taskin.ads: Minor comment fix.
3341 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3343         * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
3344         clauses.
3346 2014-07-30  Yannick Moy  <moy@adacore.com>
3348         * debug.adb: Free debug flag dQ used for frontend inlining in
3349         GNATprove mode..
3350         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
3351         debug flag..
3353 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3355         * Make-generated.in: Remove generation of s-oscons.ads, only
3356         generate the xoscons utility, in runtime-agnostic rules.
3357         * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
3358         no longer supported.
3360 2014-07-30  Bob Duff  <duff@adacore.com>
3362         * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
3363         parameter Chain to be used in the allocator case.
3364         (Make_Build_In_Place_Call_In_Allocator): If the allocated object
3365         has tasks, wrap the code in a block that will activate them,
3366         including the usual finalization code to kill them off in case
3367         of exception or abort.
3369 2014-07-30  Robert Dewar  <dewar@adacore.com>
3371         * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
3372         Remove renamings (don't work for gdb).
3373         (par): New synonym for p (avoid gdb ambiguities).
3374         * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
3376 2014-07-30  Bob Duff  <duff@adacore.com>
3378         * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
3379         fixes.
3380         * treepr.ads, treepr.adb (ppp): Make this debugging routine
3381         accept any type covered by Union_Id.
3383 2014-07-30  Robert Dewar  <dewar@adacore.com>
3385         * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
3386         analyzing branches.
3387         * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
3388         expression case.
3390 2014-07-30  Robert Dewar  <dewar@adacore.com>
3392         * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
3393         of predicate aspect on entity other than a type.
3395 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3397         * sem_ch6.adb (Body_Has_Contract): New predicate to determine
3398         when a subprogram body without a previous spec cannot be inlined
3399         in GNATprove mode, because it includes aspects or pragmas that
3400         generate a SPARK contract clause.
3401         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
3402         instance cannot be inlined.
3404 2014-07-30  Robert Dewar  <dewar@adacore.com>
3406         * debug.adb: Document that d7 suppresses compilation time output.
3407         * errout.adb (Write_Header): Include compilation time in
3408         header output.
3409         * exp_intr.adb (Expand_Intrinsic_Call): Add
3410         Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
3411         Compilation_Date/Compilation_Time.
3412         * g-souinf.ads (Compilation_Date): New function
3413         (Compilation_Time): New function.
3414         * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
3415         * gnat_rm.texi (Compilation_Date): New function
3416         (Compilation_Time): New function.
3417         * opt.ads (Compilation_Time): New variable.
3418         * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
3419         * sem_intr.adb (Compilation_Date): New function.
3420         (Compilation_Time): New function.
3421         * snames.ads-tmpl (Name_Compilation_Date): New entry.
3422         (Name_Compilation_Time): New entry.
3424 2014-07-30  Yannick Moy  <moy@adacore.com>
3426         * inline.adb: Add comment.
3428 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3430         * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
3431         parameterless attribute, and a postondition can mention an
3432         indexed component or a slice whose prefix is an attribute
3433         reference F'Result.
3435 2014-07-30  Robert Dewar  <dewar@adacore.com>
3437         * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
3438         Avoid bomb when printing package Standard.
3440 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3442         * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
3443         entity is created at this point, ensure that the name of the
3444         flag is unique, because the subprogram may be overloaded and
3445         other homonyms may also have elaboration flags created on the fly.
3447 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
3449         * sem_attr.adb (Analyze_Array_Component_Update): New routine.
3450         (Analyze_Attribute): Major cleanup of attribute
3451         'Update. The logic is now split into two distinct routines
3452         depending on the type of the prefix. The use of <> is now illegal
3453         in attribute 'Update.
3454         (Analyze_Record_Component_Update): New routine.
3455         (Check_Component_Reference): Removed.
3456         (Resolve_Attribute): Remove the return statement and ??? comment
3457         following the processing for attribute 'Update. As a result,
3458         the attribute now freezes its prefix.
3460 2014-07-30  Javier Miranda  <miranda@adacore.com>
3462         * exp_ch4.adb (Apply_Accessibility_Check): Do
3463         not call Base_Address() in VM targets.
3465 2014-07-30  Yannick Moy  <moy@adacore.com>
3467         * gnat1drv.adb (Adjust_Global_Switches): Set
3468         Ineffective_Inline_Warnings to True in GNATprove mode.
3469         * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
3470         mode of inlining.
3471         * opt.ads (Ineffective_Inline_Warnings): Add comment that
3472         describes use in GNATprove mode.
3473         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
3474         pragma when applied to the special body created for inlining.
3476 2014-07-30  Robert Dewar  <dewar@adacore.com>
3478         * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
3479         Minor reformatting.
3481 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
3483         * aspects.ads Add a comment explaining why SPARK 2014 aspects are
3484         not delayed. Update the delay status of most SPARK 2014 aspects.
3485         * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
3486         to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
3487         to Decorate and Insert_Pragma. Add various comments concerning
3488         the delay status of several SPARK 2014 aspects. The insertion
3489         of Refined_State now uses routine Insert_After_SPARK_Mode.
3490         (Decorate): New routine.
3491         (Decorate_Aspect_And_Pragma): Removed.
3492         (Insert_Delayed_Pragma): Removed.
3493         (Insert_Pragma): New routine.
3495 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3497         * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
3498         only a warning, not an error on an attempt to inline a recursive
3499         subprogram.
3501 2014-07-30  Robert Dewar  <dewar@adacore.com>
3503         * g-forstr.adb: Minor code reorganization (use J rather than I
3504         as a variable name).
3505         * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
3506         g-forstr.ads: Minor reformatting.
3508 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
3510         * sprint.adb (Set_Debug_Sloc): Also reset the end location if
3511         we are debugging the generated code.
3513 2014-07-30  Yannick Moy  <moy@adacore.com>
3515         * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
3516         returns True for source pointer for an inlined body.
3518 2014-07-30  Javier Miranda  <miranda@adacore.com>
3520         * exp_ch4.adb (Apply_Accessibility_Check): Add
3521         missing calls to Base_Address().
3523 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3525         * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
3526         mode, subprogram bodies without a previous declaration are also
3527         candidates for front-end inlining.
3529 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
3531         * aspects.ads Aspects Async_Readers, Async_Writers,
3532         Effective_Reads and Effective_Writes do not need to be delayed.
3533         * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
3534         optional Boolean expression when generating the corresponding
3535         pragma for an external property aspect.
3536         * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
3537         local constant Obj. Add local constant Obj_Id. Reimplement the
3538         check which ensures that the related variable is in fact volatile.
3539         (Analyze_Pragma): Reimplement the analysis of external property pragmas.
3540         * sem_util.adb (Is_Enabled): New routine.
3541         (Variable_Has_Enabled_Property): Reimplement the detection of
3542         an enabled external property.
3544 2014-07-30  Sergey Rybin  <rybin@adacore.com frybin>
3546         * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
3547         for body stubs.
3549 2014-07-30  Pascal Obry  <obry@adacore.com>
3551         * g-forstr.adb, g-forstr.ads: New.
3552         * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
3553         GNAT.Formatted_String.
3555 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
3557         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
3558         (Expand_Array_Aggregate): Also enable in-place expansion for
3559         code generated by the compiler.  For an object declaration,
3560         set the kind of the object in addition to its type.  If an
3561         in-place assignment is to be generated and it can be directly
3562         done by the back-end, do not expand the aggregate.
3563         * fe.h (Is_Others_Aggregate): Declare.
3564         * gcc-interface/trans.c
3565         (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
3566         aggregate with a single Others choice on the RHS by means of
3567         __builtin_memset.  Tidy up.
3569 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3571         * gnat_rm.texi: minor reformatting.
3573 2014-07-30  Yannick Moy  <moy@adacore.com>
3575         * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
3576         in SPARK_Mode Off.
3578 2014-07-30  Robert Dewar  <dewar@adacore.com>
3580         * gnat_rm.texi: Document additional implementation-defined use
3581         of Constrained.
3583 2014-07-30  Robert Dewar  <dewar@adacore.com>
3585         * prj-proc.adb, prj-strt.adb: Update comments.
3587 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
3589         * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
3591 2014-07-30  Vincent Celier  <celier@adacore.com>
3593         * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
3594         parameter No_Extending, defaulted to False. When No_Extending
3595         is True, do not look for an extending project.
3596         (Expression): For a variable reference that is not for the current
3597         project, get its Id calling Imported_Or_Extended_Project_From
3598         with No_Extending set to True.
3599         * prj-strt.adb (Parse_Variable_Reference): If a referenced
3600         variable is not found in the current project, check if it is
3601         defined in one of the projects it extends.
3603 2014-07-30  Robert Dewar  <dewar@adacore.com>
3605         * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
3606         some additional cases of internally generated routines.
3608 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3610         * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
3611         if the compilation unit is a subunit, extend optional processing
3612         to all subunits of the current one. This allows gnatstub to
3613         supress generation of spurious bodies.
3615 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
3617         * a-cbmutr.adb (Insert_Child): Use local variable First to keep
3618         track of the initial element's index within the tree.
3620 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
3622         * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
3623         (Insert_Child): Add local variable First. Capture the index of the
3624         first node being created to ensure correct cursor construction
3625         later on. Use the three parameter version of Allocate_Node
3626         when creating multiple children as this method allows aspect
3627         Default_Value to take effect (if applicable).
3629 2014-07-29  Eric Botcazou  <ebotcazou@adacore.com>
3631         * exp_aggr.adb (Safe_Slice_Assignment): Remove.
3632         (Expand_Array_Aggregate): For a safe slice assignment, just set
3633         the target and use the common code path.
3635 2014-07-29  Robert Dewar  <dewar@adacore.com>
3637         * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
3638         predicate No_Predicate_Test_On_Arguments, new name is
3639         Predicate_Tests_On_Arguments (with the opposite sense).
3641 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
3643         * sem_attr.adb (Resolve_Attribute): Clean up the code for
3644         attribute 'Access. Do not generate an elaboration flag for a
3645         stand alone expression function. The expression of an expression
3646         function is now frozen when the expression function appears as
3647         the prefix of attribute 'Access.
3648         * sem_ch6.adb (Analyze_Expression_Function): Remove local
3649         variable New_Decl and update all references to it after the
3650         rewriting has taken place. Establish the linkages between the
3651         generated spec and body.
3653 2014-07-29  Robert Dewar  <dewar@adacore.com>
3655         * sem_prag.adb (ip, rv): Prevent from being optimized away.
3656         * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
3657         * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
3658         reformatting.
3660 2014-07-29  Vincent Celier  <celier@adacore.com>
3662         * prj-pp.adb: Minor comment update.
3663         * frontend.adb: If a target dependency info file has been read
3664         through switch -gnateT= add it to the dependencies of the source
3665         being compiled.
3667 2014-07-29  Robert Dewar  <dewar@adacore.com>
3669         * sem_ch3.adb, prj.adb: Minor reformatting.
3671 2014-07-29  Vincent Celier  <celier@adacore.com>
3673         * prj-pp.adb (Pretty_Print.Output_Project_File): New
3674         procedure to output project file names between quotes without
3675         concatenation, even if the line is too long.
3676         (Pretty_Print): Use Output_Project_File for project being extended and
3677         project imported.
3679 2014-07-29  Vincent Celier  <celier@adacore.com>
3681         * gnat_ugn.texi: Document that configuration pragmas files are
3682         added to the dependencies, unless they contain only pragmas
3683         Source_File_Name_Project.
3685 2014-07-29  Robert Dewar  <dewar@adacore.com>
3687         * frontend.adb: Minor reformatting.
3689 2014-07-29  Robert Dewar  <dewar@adacore.com>
3691         * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
3692         (Expand_Actuals): Make sure predicate checks are properly applied
3693         for the case of OUT or IN OUT parameters.
3694         * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
3695         predicate tests on arguments for Finalize
3696         * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
3697         if predicate tests on subprogram arguments should be skipped.
3698         * sem_util.ads (No_Predicate_Test_On_Arguments): New function
3700 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
3702         * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
3703         clause for the object and the expression is an aggregate, defer
3704         resolution and expansion of the aggregate until the freeze point
3705         of the entity.
3706         * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
3707         the parent node is an N_Reference generated during expansion.
3709 2014-07-29  Vincent Celier  <celier@adacore.com>
3711         * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
3713 2014-07-29  Robert Dewar  <dewar@adacore.com>
3715         * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
3716         prepcomp.ads: Minor reformatting and code clean up.
3717         * exp_ch6.adb (Expand_Actuals): Generate predicate test
3718         unconditionally for case of OUT or IN OUT actual (before this
3719         was generated only for certain subcases, which is wrong, the
3720         test is always needed).
3722 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
3724         * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
3725         * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
3726         until context type is available.
3727         * sem_res.adb (Resolve_Allocator): In the case of a qualified
3728         expression, complete resolution of expression.
3729         (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
3730         to apply Ada2012 checks on aliased formals, as well as
3731         accesibility checks when the context of the call is an allocator
3732         or a qualified expression.
3733         * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
3734         Moved here from sem_ch3.
3735         (Object_Access_Level): Handle properly aliased formals and
3736         aggregates.
3737         * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
3738         now properly performed in sem_res (Resolve_Actuals,
3739         Check_Aliased_Parameter).
3741 2014-07-29  Yannick Moy  <moy@adacore.com>
3743         * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
3744         * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
3745         function to decide when a subprogram can be inlined in GNATprove mode.
3746         (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
3747         condition for possible inlining.
3748         * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
3749         for Inline_Always in GNATprove mode.
3750         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
3751         body for subprograms in GNATprove mode, under debug flag -gnatdQ.
3752         * sem_prag.adb Minor change in comments.
3753         * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
3754         inside subprograms marked as SPARK_Mode On.
3755         * sinfo.ads: Minor typo fix.
3757 2014-07-29  Vincent Celier  <celier@adacore.com>
3759         * frontend.adb: Add dependency on gnat.adc when taken into account
3760         and on non-temporary configuration pragmas files specified in
3761         switches -gnatec.
3762         * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
3763         dependencies on configuration pragmas files.
3765 2014-07-29  Pat Rogers  <rogers@adacore.com>
3767         * gnat_ugn.texi: Minor clarification to the explanation for the
3768         GNATtest -v switch.
3770 2014-07-29  Robert Dewar  <dewar@adacore.com>
3772         * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
3773         documentation that explains the need for this extended range
3774         (use by C_Pass_By_Copy).
3776 2014-07-29  Robert Dewar  <dewar@adacore.com>
3778         * gnat_rm.texi, sem_prag.adb: Minor reformatting.
3780 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
3782         * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
3783         complexity metrics.
3785 2014-07-29  Thomas Quinot  <quinot@adacore.com>
3787         PR ada/60652
3788         * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
3789         CRTSCTS to be visible.
3791 2014-07-29  Bob Duff  <duff@adacore.com>
3793         * g-trasym.adb, g-trasym.ads: Code cleanup.
3795 2014-07-29  Doug Rupp  <rupp@adacore.com>
3797         * sigtramp-vxworks.c: Minor reformatting.
3799 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
3801         * gnat_rm.texi: No doc needed for Ada2012 aspect
3802         Implicit_dereference.
3804 2014-07-29  Robert Dewar  <dewar@adacore.com>
3806         * sem_attr.adb (Attribute_12): New array
3807         (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
3808         (Check_Ada_2012_Attribute): Removed.
3810 2014-07-29  Doug Rupp  <rupp@adacore.com>
3812         * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
3813         PPC, and e500.
3814         * sigtramp-vxworks.c: New file.
3815         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
3817 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
3819         * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
3820         derived array type, add information about component type, which
3821         was previously missing in ali file.
3822         * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
3824 2014-07-29  Thomas Quinot  <quinot@adacore.com>
3826         * sem_ch3.adb (Constrain_Corresponding_Record): For the case
3827         of the subtype created for a record component, do not mark
3828         the subtype as frozen. For one thing, this is anomalous (in
3829         particular, the base type might not itself be frozen yet);
3830         furthermore, proper freezing of the subtype must happen in any
3831         case. So, we just mark the subtype as requiring delayed freezing
3832         (and we'll actually freeze it when generating the init_proc of
3833         the enclosing record).
3834         Also change the name of the constrained record subtype (append a
3835         'C' so that it is clearly different from the unconstrained record
3836         type, "related_idV") to make debugging easier.
3837         (Process_Full_View): When creating a full subtype for a pending
3838         private subtype, re-establish the scope of the private subtype
3839         so that we get proper visibility on outer discriminants.
3840         * exp_ch3.adb (Build_Init_Statements): Freeze any component
3841         subtype that is not frozen yet.
3843 2014-07-29  Vincent Celier  <celier@adacore.com>
3845         * prj-proc.adb (Recursive_Process): Always initialize the
3846         environment when the project is an aggregate project, even when
3847         it is not the root tree.
3848 2014-07-29  Robert Dewar  <dewar@adacore.com>
3850         * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
3851         * gnat_rm.texi: Complete list of implementation aspects.
3852         * aspects.ads: Minor comment clarification.
3854 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
3856         * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
3857         is a null-excluding access type, do not generate a constraint
3858         check if Suppress_Assignment_Checks is set on assignment node.
3859         * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
3860         parameter of a null-excluding access type, there is access check
3861         on entry, so set Suppress_Assignment_Checks on generated statement
3862         that assigns actual to parameter block.
3863         * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
3865 2014-07-29  Robert Dewar  <dewar@adacore.com>
3867         * gnat_rm.texi: Change theta to @ in documentation of aspect
3868         Dimension_System.
3870 2014-07-29  Robert Dewar  <dewar@adacore.com>
3872         * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
3873         are now on pragma.
3874         * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
3875         of Uneval_Old_*
3876         * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
3877         * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
3879 2014-07-29  Javier Miranda  <miranda@adacore.com>
3881         * types.ads Update documentation on how to add new reason codes
3882         for exceptions.
3883         (RT_Exception_Code): Keep values ordered by their
3884         reason code.  Required by the .NET backend.
3885         (RT_CE_Exceptions): Subtype declaration removed.
3886         (RT_PE_Exceptions): Subtype declaration removed.
3887         (RT_SE_Exceptions): Subtype declaration removed.
3888         (Kind): New mapping table of RT_Exception_Codes.
3889         * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
3890         new mapping table.
3891         * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
3892         mapping table.  (Make_Raise_Program_Error): Updated to use the
3893         new mapping table.
3894         (Make_Raise_Storage_Error): Updated to use the new mapping table.
3895         * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
3896         their reason code.
3898 2014-07-29  Thomas Quinot  <quinot@adacore.com>
3900         * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
3901         distributed stubs generation.
3902         * exp_ch3.adb: Minor reformatting.
3904 2014-07-29  Yannick Moy  <moy@adacore.com>
3906         * sinfo.ads: Document constraint between frontend and GNATprove.
3908 2014-07-29  Robert Dewar  <dewar@adacore.com>
3910         * a-except.adb: Minor comment clarification.
3912 2014-07-29  Robert Dewar  <dewar@adacore.com>
3914         * gnat_rm.texi: Complete list of implementation attributes.
3915         * snames.ads-tmpl: Clean up list of impl-defined attributes.
3917 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
3919         * freeze.adb (Freeze_Record_Type): Perform various
3920         volatility-related checks.
3922 2014-07-29  Robert Dewar  <dewar@adacore.com>
3924         * sem_ch3.adb, sem_eval.adb: Minor reformatting.
3926 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
3928         * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
3929         the case where the attribute reference appears in a nested scope
3930         from that of the subprogram prefix.
3931         * sem_attr.adb: Minor reformatting.
3933 2014-07-29  Robert Dewar  <dewar@adacore.com>
3935         * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
3936         initialization options.
3938 2014-07-29  Robert Dewar  <dewar@adacore.com>
3940         * sinfo.ads: Minor comment addition.
3942 2014-07-29  Bob Duff  <duff@adacore.com>
3944         * sem_eval.adb, sem_ch13.adb: Minor reformatting.
3946 2014-07-29  Doug Rupp  <rupp@adacore.com>
3948         * init.c: Complete previous change.
3950 2014-07-29  Robert Dewar  <dewar@adacore.com>
3952         * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
3953         array case.
3955 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
3957         * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
3958         and the completion will appear in the same declarative part,
3959         create elaboration flag.
3960         * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
3961         is a completion of a declaration in the same declarative part,
3962         and the subprogram has had its address taken, add elaboration
3963         check inside the subprogram body, to detect elaboration errors
3964         that may occur through indirect calls.
3966 2014-07-29  Doug Rupp  <rupp@adacore.com>
3968         * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
3969         * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
3971 2014-07-29  Vincent Celier  <celier@adacore.com>
3973         * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
3974         runtime directorie specified with two switches --RTS= designate
3975         the same directory, even when there are no literarily the same.
3977 2014-07-29  Robert Dewar  <dewar@adacore.com>
3979         * gnat_ugn.texi: Minor documentation clarification.
3980         * switch-c.adb: Minor reformatting.
3982 2014-07-29  Robert Dewar  <dewar@adacore.com>
3984         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
3985         Fix incorrect RTE call which caused bomb if pragma was in
3986         configuration pragma file.
3988 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
3990         * expect.c (__gnat_expect_poll): Fix typo in previous change.
3991         * g-expect.adb: Update comments.
3993 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
3995         * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
3996         (Default_Attribute_Count): Bump to 16 on native platforms.
3998 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4000         * sem_res.adb: Add guard to front-end inlining for SPARK.
4002 2014-07-29  Robert Dewar  <dewar@adacore.com>
4004         * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
4005         Minor reformatting.
4007 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4009         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
4010         inline in GNATprove mode when subprogran is marked Inline_Always.
4011         * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
4012         mode if body to inline is available.
4013         * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
4014         effective in GNATprove mode.
4015         * sem_ch10.adb (Analyze_Compilation_Unit): Call
4016         Check_Package_Body_For_Inlining in GNATprove mode, so that body
4017         containing subprograms with Inline_Always can be available before
4018         calls to them.
4020 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4022         * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
4023         to Check_Package_Body_For_Inlining, to prevent confusion with other
4024         inlining subprograms.
4026 2014-07-29  Robert Dewar  <dewar@adacore.com>
4028         * opt.ads: Minor comment update.
4029         * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
4030         we want setting of Uneval_Old at time of encountering the aspect.
4031         * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
4032         of Opt.Uneval_Old.
4033         * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
4034         New function (Set_Uneval_Old_Accept): New procedure.
4035         (Set_Uneval_Old_Warn): New procedure.
4036         * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
4038 2014-07-29  Robert Dewar  <dewar@adacore.com>
4040         * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
4041         * snames.ads-tmpl: Minor reformatting.
4042         * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
4043         to give <Error>.  Not clear why this was there, but the compiler
4044         sources do not reference Name_Error, and this interfered with
4045         the circuits for pragma Unevaluated_Use_Of_Old.
4047 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4049         * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
4050         types in SPARK 2014 (again).
4051         * sem_res.adb (Is_OK_Volatile_Context): New routine.
4052         (Resolve_Entity_Name): Ensure that a volatile object with
4053         enabled properties Async_Writers or Effectire_Reads appears in
4054         a non-interfering context.
4056 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4058         * sem_ch6.adb: Move Build_Body_To_Inline,
4059         Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
4060         * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
4061         * inline.ads, inline.adb: Package now contains subprograms that
4062         implement front-end inlining.  No functional changes, no test
4063         needed.
4065 2014-07-29  Robert Dewar  <dewar@adacore.com>
4067         * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
4069 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4071         * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
4072         is a limited view when the context is a package body, because
4073         there is no subsequent place at which the non-limited view may
4074         become visible.
4075         (Process_Formals): Ditto.
4076         * sinfo.ads, par-ch3.adb: Minor reformatting.
4078 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
4080         * expect.c (__gnat_expect_poll): New parameter dead_process
4081         used to return the dead process among the array of file
4082         descriptors. The Windows, VMS and HPUX implementations now
4083         properly report the dead process via this parameter. Other unixes
4084         don't need it.
4085         * g-expect.adb (Poll): Adapt to the C profile.
4086         (Expect_Internal): Use the new parameter to properly close the
4087         File Descriptor.  This then can be properly reported by the
4088         function First_Dead_Process as is expected.
4090 2014-07-29  Robert Dewar  <dewar@adacore.com>
4092         * gnat_ugn.texi: Minor clarification of -gnatQ switch.
4094 2014-07-29  Robert Dewar  <dewar@adacore.com>
4096         * einfo.adb (Derived_Type_Link): New function
4097         (Set_Derived_Type_Link): New procedure.
4098         (Write_Field31_Name): Output Derived_Type_Link.
4099         * einfo.ads: New field Derived_Type_Link.
4100         * exp_ch6.adb (Expand_Call): Warn if change of representation
4101         needed on call.
4102         * sem_ch13.adb: Minor addition of ??? comment.
4103         (Rep_Item_Too_Late): Warn on case that is legal but could cause an
4104         expensive implicit conversion.
4105         * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
4107 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4109         * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
4110         to DF_Id. Add new local variable DF_Call. Do not perform any
4111         elaboration-related checks on the call to the partial finalization
4112         routine within an init proc to avoid generating bogus elaboration
4113         warnings on expansion-related code.
4114         * sem_elab.adb (Check_A_Call): Move constant Access_Case to
4115         the top level of the routine.  Ensure that Output_Calls takes
4116         into account flags -gnatel and -gnatwl when emitting warnings
4117         or info messages.
4118         (Check_Internal_Call_Continue): Update the call to Output_Calls.
4119         (Elab_Warning): Moved to the top level of routine Check_A_Call.
4120         (Emit): New routines.
4121         (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
4122         comment on usage. Output all warnings or info messages only when the
4123         caller context demands it and the proper elaboration flag is set.
4125 2014-07-29  Yannick Moy  <moy@adacore.com>
4127         * sem_attr.adb (Analyze_Attribute/Attribute_Old):
4128         Check rule about Old appearing in potentially unevaluated
4129         expression everywhere, not only in Post.
4131 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
4133         * sem_prag.adb: Update comment.
4134         * a-except.adb, a-except-2005.adb: Minor editing.
4136 2014-07-29  Pierre-Marie Derodat  <derodat@adacore.com>
4138         * exp_dbug.adb (Debug_Renaming_Declaration):
4139         Do not create renaming entities for renamings of non-packed
4140         objects and for exceptions.
4142 2014-07-29  Robert Dewar  <dewar@adacore.com>
4144         * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
4145         sem_ch6.adb, par-ch3.adb: Minor reformatting.
4147 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4149         * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
4150         subtype indication in an extended return statement when the
4151         return value is an ancestor of the return type of the function,
4152         and that return type is a null record extension.
4154 2014-07-29  Thomas Quinot  <quinot@adacore.com>
4156         * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
4157         message produced for the case of a type-related representation
4158         item that is made illegal by 13.10(1).
4159         * gnat_rm.texi (Scalar_Storage_Order): Minor change in
4160         documentation.
4162 2014-07-29  Robert Dewar  <dewar@adacore.com>
4164         * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
4165         * erroutc.adb (Output_Error_Msgs): Take wide characters into
4166         account in computing position of error flags.
4167         * sinput.adb (Get_Column_Number): Take wide characters into
4168         account.
4170 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4172         * par-ch3.adb (P_Access_Type_Definition): The subtype indication
4173         in an access type definition can carry a null_exclusion indicator.
4174         * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
4175         carries a null_exclusion indicator, verify that the subtype
4176         indication denotes an access type, and create a null-excluding
4177         subtype for it.
4178         * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
4179         defined on N_Access_To_Object_Definition to indicate that the
4180         subtype indication carries a null_exclusion indicator.
4182 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4184         * exp_ch6.adb (Add_Extra_Actual): Do not construct
4185         the extra actual by name, generate a reference instead.
4187 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
4189         * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
4190         Allow_Integer_Address if already set.
4191         * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
4192         Fix order, for consistency with Rmsg_xx declarations.
4194 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4196         * sem_ch4.adb (Complete_Object_Operation): If the type of the
4197         candidate subprogram is a limited view, use non-limited view
4198         when available.
4200 2014-07-29  Robert Dewar  <dewar@adacore.com>
4202         * sem_ch13.adb: Minor change in RM reference.
4203         * sem_mech.ads: Minor reformatting.
4204         * einfo.ads: Minor comment fix.
4205         * types.ads: Minor correction to range given for Mechanism_Type.
4206         * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
4207         check predicate on way out for OUT or IN OUT parameters.
4208         * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
4209         better (P_Range_Constraint): Corresponding fix.
4210         * checks.ads: Minor comment clarification.
4212 2014-07-29  Gary Dismukes  <dismukes@adacore.com>
4214         * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
4215         and Treat_As_Volatile flags based on whether the renamed object
4216         is a volatile object.
4218 2014-07-29  Olivier Hainque  <hainque@adacore.com>
4220         * g-debpoo.adb
4221         (Default_Alignment): Rename as Storage_Alignment. This is not
4222         a "default" that can be overriden. Augment comment to clarify
4223         intent and document why we need to manage alignment padding.
4224         (Header_Offset): Set to Header'Object_Size instead of 'Size
4225         rounded up to Storage_Alignment. Storage_Alignment on the
4226         allocation header is not required by our internals so was
4227         overkill. 'Object_Size is enough to ensure proper alignment
4228         of the header address when substracted from a storage address
4229         aligned on Storage_Alignment.
4230         (Minimum_Allocation): Rename as Extra_Allocation, conveying that
4231         this is always added on top of the incoming allocation requests.
4232         (Align): New function, to perform alignment rounding operations.
4233         (Allocate): Add comments on the Storage_Address computation
4234         scheme and adjust so that the alignment padding applies to that
4235         (Storage_Address) only.
4237 2014-07-29  Robert Dewar  <dewar@adacore.com>
4239         * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
4240         pragma Unreferenced.
4241         * cstand.adb (Create_Standard): Use E_Array_Type for standard
4242         string types. Make sure index of Any_String/Any_Array is in a list.
4243         * errout.adb: Minor reformatting.
4245 2014-07-29  Robert Dewar  <dewar@adacore.com>
4247         * gnat_ugn.texi: Clean up and correct documentation of warnings.
4248         * usage.adb: Minor corrections to make sure warnings are properly
4249         documented.
4250         * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
4251         (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
4253 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4255         * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
4256         created to match internal sequence numbers between compilations
4257         with/without abort must have its type properly set.
4259 2014-07-29  Robert Dewar  <dewar@adacore.com>
4261         * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
4262         (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
4263         SSO_Default_Specified.
4264         * ali.ads (ALIs_Record): Add field SSO_Default
4265         (SSO_Default_Specified): New global switch.
4266         * bcheck.adb (Check_Consistent_SSO_Default): New procedure
4267         (Check_Configuration_Consistency): Call this procedure
4268         * einfo.adb (SSO_Set_High_By_Default): New
4269         function (SSO_Set_Low_By_Default): New function
4270         (Set_SSO_Set_High_By_Default): New procedure
4271         (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
4272         List new flags
4273         * einfo.ads (SSO_Set_Low_By_Default): New flag
4274         (SSO_Set_High_By_Default): New flag
4275         * freeze.adb (Set_SSO_From_Default): New procedure
4276         (Freeze_Array_Type): Call Set_SSO_From_Default
4277         (Freeze_Record_Type): Call Set_SSO_From_Default
4278         * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
4279         * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
4280         * lib-writ.ads: Add OL/OH parameters to P line
4281         * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
4282         * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
4283         New global switch
4284         * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
4285         set by default using pragma Default_Scalar_Storage_Order.
4286         * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
4287         * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
4288         Clear SSO defaults when explicit SSO is inherited.
4289         (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
4290         explicit SSO is specified.
4291         (Inherit_Aspects_At_Freeze_Point):
4292         Clear SSO default when inheriting SSO.
4293         * sem_ch3.adb (Set_Default_SSO): New procedure
4294         (Analyze_Private_Extension_Declaration): Set defualt SSO
4295         (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
4296         (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
4297         ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
4298         (Record_Type_Declaration): ditto
4299         * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
4300         Save Default_SSO
4301         * sem_prag.adb (Analyze_Pragma, case
4302         Default_Scalar_Storage_Order): Set Default_SSO
4304 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4306         * sem_ch6.adb (Valid_Operator_Definition): Verify that
4307         all parameter have mode IN. This check must be done here for
4308         subprogram instantiations that have operator names, because their
4309         analysis does not follow the same path as that for subprogram
4310         declarations.
4312 2014-07-29  Robert Dewar  <dewar@adacore.com>
4314         * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
4315         to make sure that the Etype of a component of the corresponding
4316         record type is present before trying to freeze it.
4317         * sem_ch5.adb: Minor reformatting.
4319 2014-07-29  Robert Dewar  <dewar@adacore.com>
4321         * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
4322         a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
4323         and then use it when a stream operation is used from a library generic
4324         when the restriction (No_Streams) is active.
4326 2014-07-29  Thomas Quinot  <quinot@adacore.com>
4328         * projects.texi: Fix minor typo.
4330 2014-07-29  Yannick Moy  <moy@adacore.com>
4332         * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
4334 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
4336         * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
4337         CodePeer mode.
4339 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4341         * exp_ch7.adb (Find_Last_Init): Add local variable
4342         Deep_Init_Found. Check the statement immediately following the
4343         declaration if [Deep_]Initialization was not found.
4345 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4347         * exp_util.adb (Is_Aliased): It appears that
4348         'reference-d and renamed objects still play some role in Boolean
4349         expression with actions and cannot be finalized immediately.
4351 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4353         * exp_dbug.adb (Qualify_Needed):  For debugging purposes,
4354         Loop names are not part of the full qualification of entity names.
4356 2014-07-29  Robert Dewar  <dewar@adacore.com>
4358         * einfo.adb (Has_Protected): Test base type.
4359         * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
4360         that we always properly check No_Protected_Type_Allocators.
4362 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4364         * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
4365         loop declarations as well.
4366         * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
4367         to an iterator loop, because it may contain local renaming
4368         declarations that require debugging information.
4370 2014-07-29  Robert Dewar  <dewar@adacore.com>
4372         * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
4374 2014-07-29  Robert Dewar  <dewar@adacore.com>
4376         * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
4377         (Set_Static_Real_Or_String_Predicate): New procedure
4378         * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
4379         string predicates (Is_Predicate_Static): Handle static string
4380         predicates.
4381         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
4382         New procedure (Check_Expression_Against_Static_Predicate):
4383         Deal with static string predicates, now fully implemented
4384         (Eval_Relational_Op): Allow string equality/inequality as static
4385         if not comes from source.
4387 2014-07-29  Robert Dewar  <dewar@adacore.com>
4389         * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
4390         einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
4391         sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
4392         handling. Change name of Discrete_Predicate to
4393         Discrete_Static_Predicate, and replace testing of the presence of this
4394         field by testing the flag Has_Static_Expression.
4396 2014-07-29  Robert Dewar  <dewar@adacore.com>
4398         * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
4399         * opt.adb: Handle Uneval_Old.
4400         * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
4401         * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
4402         * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
4403         * sem_attr.adb (Uneval_Old_Msg): New procedure.
4404         * sem_ch8.adb (Push_Scope): Save Uneval_Old.
4405         (Pop_Scope): Restore Uneval_Old.
4406         * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
4407         Implemented.
4408         * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
4409         Add entries for Name_Warn, Name_Allow.
4411 2014-07-29  Robert Dewar  <dewar@adacore.com>
4413         * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
4414         to Is_OK_Static_Range.
4415         * sem_attr.adb (Eval_Attribute): Make sure we properly flag
4416         static attributes (Eval_Attribute, case Size): Handle size of
4417         zero properly (Eval_Attribute, case Value_Size): Handle size of
4418         zero properly.
4419         * sem_ch13.adb: Minor reformatting.
4420         * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
4421         Is_Static_Range to Is_OK_Static_Range.
4422         * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
4423         wrong in several ways (Is_Static_Range): Moved here from spec
4424         (Is_Static_Subtype): Moved here from spec Change some incorrect
4425         Is_Static_Subtype calls to Is_OK_Static_Subtype.
4426         * sem_eval.ads: Add comments to section on
4427         Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
4428         Add clarifying comments (Is_Static_Range): Moved to body
4429         (Is_Statically_Unevaluated): New function.
4430         * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
4431         Is_Static_Range to Is_OK_Static_Range.
4432         * sinfo.ads: Additional commments for Is_Static_Expression noting
4433         that clients should almost always use Is_OK_Static_Expression
4434         instead. Many other changes throughout front end units to obey
4435         this rule.
4436         * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
4437         for enumeration literal.
4438         * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
4439         lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
4440         sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
4441         exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
4442         Replace all occurrences of Is_Static_Expression by
4443         Is_OK_Static_Expression.
4445 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4447         * exp_ch4.adb (Process_Transient_Object): Remove constant
4448         In_Cond_Expr, use its initialization expression in place.
4449         * exp_ch7.adb (Process_Declarations): There is no need to check
4450         that a transient object being hooked is controlled as it would
4451         not have been hooked in the first place.
4452         * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
4453         objects are not considered aliased when the related context is
4454         a Boolean expression_with_actions.
4455         (Requires_Cleanup_Actions): There is no need to check that a transient
4456         object being hooked is controlled as it would not have been hooked in
4457         the first place.
4459 2014-07-29  Robert Dewar  <dewar@adacore.com>
4461         * errout.adb: Minor reformatting.
4463 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4465         * exp_ch3.adb (Default_Initialize_Object): Add new variables
4466         Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
4467         not allowed to ensure the symmetrical generation of symbols.
4468         * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
4469         and E_Decl. Add new variables Decl and Dummy. Generate a dummy
4470         temporary when aborts are not allowed to ensure symmertrical
4471         generation of symbols.
4472         * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
4473         Dummy. Generate a dummy temporary when aborts are not allowed
4474         to ensure symmertrical generation of symbols.
4476 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4478         * exp_dbug.adb (Debug_Renaming_Declaration): For an object
4479         renaming, indicate that the renamed entity itself needs debug
4480         information. This is necessary if that entity is a temporary,
4481         e.g. part of the expansion of an explicit dereference in an
4482         iterator.
4484 2014-07-29  Thomas Quinot  <quinot@adacore.com>
4486         * errout.adb (Set_Error_Posted): When propagating flag to
4487         an enclosing named association, also propagate to the parent
4488         of that node, so that named and positional associations are
4489         treated consistently.
4491 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4493         * sem_attr.adb (Resolve_Attribute, case 'Update):  Set
4494         Do_Range_Check properly on array component expressions that
4495         have a scalar type. In GNATprove mode, only checks on scalar
4496         components must be marked by the front-end.
4498 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4500         * sem_res.adb (Resolve_Type_Conversion): If the type of the
4501         expression is a limited view, use the non-limited view when
4502         available.
4504 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4506         * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
4507         case statement as coming from a conditional expression.
4508         (Expand_N_If_Expression): Mark the generated if statement as
4509         coming from a conditional expression.
4510         * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
4511         objects found in case statement alternatives when the case
4512         statement is actually a case expression.
4513         (Expand_N_If_Statement):
4514         Do not process controlled objects found in an if statement when
4515         the if statement is actually an if expression.
4516         * sinfo.adb (From_Conditional_Expression): New routine.
4517         (Set_From_Conditional_Expression): New routine.
4518         * sinfo.ads Add new semantic flag From_Conditional_Expression and
4519         update related nodes.
4520         (From_Conditional_Expression): New routine along with pragma Inline.
4521         (Set_From_Conditional_Expression): New routine along with pragma Inline.
4523 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4525         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
4526         formal parameter Obj_Id and update the comment on usage. Renamed
4527         Obj_Typ to Func_Typ and update all occurrences.
4528         (Find_Last_Init): Remove formal parameter Decl and update the comment
4529         on usage.
4530         Remove local constants Obj_Id and Obj_Typ. Remove local variables
4531         Init_Typ and Is_Conc. Remove the extraction of the initialization type.
4532         (Find_Last_Init_In_Block): Remove formal parameter
4533         Init_Typ and update the comment on usage.
4534         (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
4535         on usage. Check whether the procedure call is an initialization
4536         procedure of either the object type or the initialization type.
4537         (Is_Init_Proc_Of): New routine.
4538         (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
4539         routine. Add new variable Init_Typ. Add circuitry to extract the object
4540         type as well as the initialization type.
4542 2014-07-29  Robert Dewar  <dewar@adacore.com>
4544         * sem_case.adb: Minor reformatting.
4545         * sem_aux.ads: Minor reformatting.
4547 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4549         * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
4550         pointer on these fields, even though they are semantic, because
4551         subsequent analysis and expansion of action nades may require
4552         exploring the tree, for example to locate a node to be wrapped
4553         when a function with controlled result is called.
4555 2014-07-29  Claire Dross  <dross@adacore.com>
4557         * sem_aux.adb (Get_Binary_Nkind): Use case on
4558         Name_Id instead of an intermediate string.
4559         (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
4560         string.
4562 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
4564         * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
4565         about processing sources with preprocessor directives.
4567 2014-07-24  Martin Liska  <mliska@suse.cz>
4569         * gcc-interface/trans.c (finalize_nrv): Adjust function call.
4570         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
4571         (gnat_write_global_declarations): Likewise.
4573 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
4575         * gnat_rm.texi: Clean up for makeinfo 5.2.
4577 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
4579         * gnat_rm.texi (Machine Code Insertions): Clean up.
4581 2014-07-18  Robert Dewar  <dewar@adacore.com>
4583         * exp_ch7.adb: Minor reformatting.
4585 2014-07-18  Claire Dross  <dross@adacore.com>
4587         * sem_aux.ads (Get_Binary_Nkind): New function that returns
4588         the Node_Kind value of an entity defining a binary operator.
4589         (Get_Unary_Nkind): New function that returns the Node_Kind value
4590         of an entity defining a unary operator.
4592 2014-07-18  Pascal Obry  <obry@adacore.com>
4594         * sysdep.c: comment update.
4595         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
4596         platforms where it is known to be supported.
4598 2014-07-18  Thomas Quinot  <quinot@adacore.com>
4600         * sem_dist.adb (Process_Remote_AST_Declaration): Need
4601         to set Fat_Type's Ekind in order to be able to use its
4602         Corresponding_Remote_Type attribute.
4604 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
4606         * einfo.adb Last_Aggregate_Assignment is now Node 30.
4607         (Last_Aggregate_Assignment): Include
4608         constants in the assertion. Update the underlying node.
4609         (Set_Last_Aggregate_Assignment): Include constants in the
4610         assertion. Update the underlying node.  (Write_Field11_Name):
4611         Remove the entry for Last_Aggregate_Assignment.
4612         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
4613         * einfo.ads Update the node designation and usage of attribute
4614         Last_Aggregate_Assignment.
4615         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
4616         assignment statement used to initialize a controlled object.
4617         (Late_Expansion): Store the last assignment statement used to
4618         initialize a controlled record or an array of controlled objects.
4619         * exp_ch3.adb (Expand_N_Object_Declaration): Default
4620         initialization of objects is now performed in a separate routine.
4621         (Default_Initialize_Object): New routine.
4622         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
4623         Obj_Id. Update the comment on usage.
4624         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
4625         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
4626         (Is_Init_Call): Add formal parameter Init_Typ. Update the
4627         comment on usage.  Account for the type init proc when trying
4628         to determine whether a statement is an initialization call.
4629         (Make_Adjust_Call): Rename formal parameter For_Parent to
4630         Skip_Self. Update all occurrences of For_Parent. Account for
4631         non-tagged types. Update the call to Make_Call.
4632         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
4633         comment on usage. Update all occurrences of For_Parent.
4634         (Make_Final_Call): Rename formal parameter For_Parent to
4635         Skip_Self. Update all occurrences of For_Parent. Account
4636         for non-tagged types. Update the call to Make_Call.
4637         (Process_Object_Declaration): Most variables and constants are
4638         now local to the routine.
4639         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
4640         For_Parent to Skip_Self. Update the comment on usage.
4641         (Make_Final_Call): Rename formal parameter For_Parent to
4642         Skip_Self. Update the comment on usage.
4644 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
4646         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
4647         can be a procedure that is implemented by entry, and have a
4648         formal that is a synchronized interface.  It does not have to
4649         be declared as a protected operation.
4651 2014-07-18  Robert Dewar  <dewar@adacore.com>
4653         * gnat_rm.texi: Remove mention of obsolete attributes
4654         Max[_Interrupt]_Priority, which have never been implemented
4655         (or at the very least were removed long ago if they ever were
4656         implemented.  Add documentation of Max[_Interrupt]_Priority
4657         constants in package System.
4658         * ttypes.ads: Document actual handling of package System,
4659         rather than a historical fantasy version.  Remove mention of
4660         non-existent attributes Max[_Interrupt]_Priority.
4662 2014-07-18  Pascal Obry  <obry@adacore.com>
4664         * a-witeio.adb (Put): No 16-bit character output when text
4665         translation is disabled.
4666         * i-cstrea.ads: Code clean up.
4668 2014-07-18  Robert Dewar  <dewar@adacore.com>
4670         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
4671         static attributes.
4673 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
4675         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
4677 2014-07-18  Pascal Obry  <obry@adacore.com>
4679         * adaint.c: Do not include wchar.h on VxWorks.
4680         * mingw32.h: Remove obsolete definition.
4682 2014-07-18  Pascal Obry  <obry@adacore.com>
4684         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
4685         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
4686         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
4687         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
4689 2014-07-18  Pascal Obry  <obry@adacore.com>
4691         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
4692         * a-ztexio.adb: Likewise.
4693         * a-witeio.adb: Likewise.
4694         (Open): Pass file's translation mode to set_text_mode.
4695         * s-ficobl.ads (Content_Encoding): New type.
4696         (Text_Content_Encoding): New subtype.
4697         (AFCB): Rename Is_Text_File to Text_Encoding.
4698         * s-fileio.adb (Open): Handles new text_translation
4699         values. Remove Is_Text_File which is equivalent to Text_Encoding
4700         in Text_Content_Encoding.
4701         * adaint.h (__gnat_set_mode): New routine.
4702         * sysdep.c (__gnat_set_wide_text_mode): Removed.
4703         (__gnat_set_mode): New routine.
4705 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
4707         * gcc-interface/decl.c, gcc-interface/trans.c,
4708         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
4709         Is_Packed_Array_Impl_Type.
4711 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
4713         * sem_util.adb: Minor typo correction.
4715 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
4717         * gnat_rm.texi: Complete previous change.
4719 2014-07-18  Pascal Obry  <obry@adacore.com>
4721         * s-fileio.adb: Minor style fix.
4723 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
4725         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
4726         specification of stream attributes for subtypes that are not
4727         first subtypes, to prevent malformed rep_item chains in the case
4728         of such illegal specifications for discriminated private subtypes.
4729         (Check_Overloaded_Name): Verify that the name is an entity name
4730         before other checks.
4732 2014-07-18  Pascal Obry  <obry@adacore.com>
4734         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
4736 2014-07-18  Robert Dewar  <dewar@adacore.com>
4738         * sem_prag.adb, sem_attr.adb,
4739         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
4741 2014-07-18  Pascal Obry  <obry@adacore.com>
4743         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
4744         * initialize.c (__gnat_wide_text_translation_required): Defined here.
4746 2014-07-18  Pascal Obry  <obry@adacore.com>
4748         * adaint.c (__gnat_fputwc): New routine.
4749         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
4751 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
4753         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
4754         (Set_Stores_Attribute_Old_Prefix): New routine.
4755         (Stores_Attribute_Old_Prefix): New routine.
4756         (Write_Entity_Flags):
4757         Output flag Stores_Attribute_Old_Prefix.
4758         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
4759         comment on usage.
4760         (Set_Stores_Attribute_Old_Prefix): New routine
4761         along with pragma Inline.
4762         (Stores_Attribute_Old_Prefix): New
4763         routine along with pragma Inline.
4764         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
4765         constant which captures the result of attribute 'Old's prefix.
4766         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
4767         relocated expression which acted as a prefix of attribute 'Old.
4769 2014-07-18  Bob Duff  <duff@adacore.com>
4771         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
4772         null before dispatching to Deallocate_Subpool.
4773         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
4774         parameter of Default_Subpool_For_Pool to 'in out'.
4775         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
4776         a message to the raise.
4777         * sem_util.adb: Minor reformatting.
4779 2014-07-18  Robert Dewar  <dewar@adacore.com>
4781         * sem_util.adb (Check_Expression_Against_Static_Predicate):
4782         Mark expression as non-static if it fails static predicate check,
4783         and issue additional warning.
4785 2014-07-18  Pascal Obry  <obry@adacore.com>
4787         * a-witeio.adb (Put): Control translation based on
4788         wide_text_translation_required.
4789         * adaint.c (CurrentCCSEncoding): New variable.
4790         * initialize.c (__gnat_initialize): On Windows initialize
4791         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
4792         environment variable.
4793         * mingw32.h (CurrentCCSEncoding): New external.
4794         (__gnat_wide_text_translation_required): Likewise.
4795         * sysdep.c (wide_text_translation_required): New variable.
4796         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
4798 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
4800         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
4801         variable Refined_States.  Add global variable Matched_Items.
4802         (Check_Dependency_Clause): Account for dependency
4803         clauses utilizing states with visible null refinements.
4804         (Is_Null_Refined_State): New routine.
4805         (Match_Items): Record each successfully matched item of pragma Depends.
4806         (Record_Item): New routine.
4808 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
4810         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
4811         Do_Range_Check flag on a dynamic index expression used in a
4812         component association in the argument of Update.
4814 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
4816         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
4818 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
4820         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
4821         of enclosing blocks, loops and the enclosing function using a
4822         parent-based traversal.
4823         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
4824         stack reclamation if the iterator loop contains a return statement
4825         that uses the stack.
4826         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
4827         patch up the scope stack as the secondary stack management now
4828         takes into account the enclosing function of the iterator loop.
4830 2014-07-18  Robert Dewar  <dewar@adacore.com>
4832         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
4834 2014-07-18  Robert Dewar  <dewar@adacore.com>
4836         * einfo.adb (Has_Static_Predicate): New function.
4837         (Set_Has_Static_Predicate): New procedure.
4838         * einfo.ads (Has_Static_Predicate): New flag.
4839         * sem_ch13.adb (Is_Predicate_Static): New function
4840         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
4841         (Add_Call): Minor change in Sloc of generated expression
4842         (Add_Predicates): Remove setting of Static_Pred, no longer used.
4843         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
4844         replace by use of the entity flag Has_Static_Predicate_Aspect.
4845         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
4846         and issue warning that predicate is not checked for now.
4847         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
4848         spec.
4849         * sem_util.adb (Check_Expression_Against_Static_Predicate):
4850         Carry out check for any case where there is a static predicate,
4851         and output appropriate message.
4852         * sinfo.ads: Minor comment corrections.
4854 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
4856         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
4857         from an untagged private type whose full view is tagged, the type
4858         is marked tagged for layout reasons, but it has no dispatch table,
4859         so Set_All_DT_Position must not be called.
4860         * exp_ch13.adb: If the freeze node is for a type internal to a
4861         record declaration, as is the case for a class-wide subtype
4862         of a parent component, the relevant scope is the scope of the
4863         enclosing record.
4865 2014-07-18  Thomas Quinot  <quinot@adacore.com>
4867         * g-memdum.adb, g-memdum.ads: Code clean ups.
4869 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
4871         * sem_prag.adb (Check_Dependency_Clause):
4872         Update the comment on usage. Reimplement the mechanism which
4873         attempts to match a single clause of Depends against one or
4874         more clauses of Refined_Depends.
4875         (Input_Match): Removed.
4876         (Inputs_Match): Removed.
4877         (Is_Self_Referential): Removed.
4878         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
4879         (Normalize_Outputs): Rename variable Split to New_Claue and update
4880         all its occurrences.
4881         (Report_Extra_Clauses): Update the comment on usage.
4882         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
4884 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
4886         * i-cstrea.ads: Minor reformatting.
4888 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
4890         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
4891         secondary stack-related flags to the generated block.
4892         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
4893         once the loop is relocated in a block.
4895 2014-07-18  Robert Dewar  <dewar@adacore.com>
4897         * repinfo.ads: Add documentation on handling of back annotation
4898         for dynamic case.
4900 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
4902         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
4903         of full type declaration, denotes previous declaration for
4904         incomplete view of the type.
4905         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
4906         of declaration if one is present.
4907         (Replace_Type): When constructing the signature of an inherited
4908         operation, handle properly the case where the operation has a
4909         formal whose type is an incomplete view.
4910         * sem_util.adb (Collect_Primitive_Operations): Handle properly
4911         the case of an operation declared after an incomplete declaration
4912         for a type T and before the full declaration of T.
4914 2014-07-18  Pascal Obry  <obry@adacore.com>
4916         * i-cstrea.ads: Add documentation for set_wide_text_mode.
4918 2014-07-18  Robert Dewar  <dewar@adacore.com>
4920         * a-witeio.adb: Minor code reorganization.
4921         * i-cstrea.ads: Add comment.
4923 2014-07-18  Thomas Quinot  <quinot@adacore.com>
4925         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
4926         clarifications.
4928 2014-07-18  Robert Dewar  <dewar@adacore.com>
4930         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
4932 2014-07-18  Pascal Obry  <obry@adacore.com>
4934         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
4935         * a-witeio.adb (Put): On platforms where there is translation
4936         done by the OS output the raw text.
4937         (New_Line): Use Put above to properly handle the LM wide characters.
4939 2014-07-18  Thomas Quinot  <quinot@adacore.com>
4941         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
4942         to Absolute_Address.
4944 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
4946         * opt.ads (Suppress_Back_Annotation): Remove as unused.
4947         * fe.h (Back_Annotate_Rep_Info): Likewise.
4948         (Global_Discard_Names): Likewise.
4950 2014-07-18  Robert Dewar  <dewar@adacore.com>
4952         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
4953         parenthesized.
4955 2014-07-18  Vincent Celier  <celier@adacore.com>
4957         * s-osinte-vms.ads: Fix style errors.
4959 2014-07-18  Thomas Quinot  <quinot@adacore.com>
4961         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
4962         NAME_MAX and PATH_MAX.
4964 2014-07-18  Bob Duff  <duff@adacore.com>
4966         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
4967         Build_Record_Or_Elementary_Output_Procedure): For Input and
4968         Output attributes, do not read/write the discriminants if they
4969         have default values; that will be done by Read/Write.
4971 2014-07-18  Robert Dewar  <dewar@adacore.com>
4973         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
4974         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
4975         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
4976         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
4977         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
4979 2014-07-18  Robert Dewar  <dewar@adacore.com>
4981         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
4983 2014-07-18  Vincent Celier  <celier@adacore.com>
4985         * lib-writ.ads: Update documentation about the D lines.
4987 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
4989         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
4990         as a parameter, rather than its Chars field, in order to locate
4991         freeze node of type. If the predicate or invariant has references
4992         to types other than the one to which the contract applies, these
4993         types must be frozen, and the corresponding predicate functions
4994         created, before that freeze node.
4996 2014-07-18  Robert Dewar  <dewar@adacore.com>
4998         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
4999         * par_sco.adb: Minor reformatting.
5001 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
5003         * exp_ch4.adb (Real_Range_Check): Turn off
5004         the Do_Range_Check flag on the conversion's current Expression
5005         argument rather than on the originally captured Operand node,
5006         as Expression may reflect a rewriting (as in conversions to a
5007         fixed-point type).
5009 2014-07-18  Vincent Celier  <celier@adacore.com>
5011         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
5012         is not a subunit.
5013         * ali.ads (Sdep_Record): New component Unit_Name.
5014         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
5015         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
5016         dependent unit is in a project and the source file name is not
5017         one of its sources.
5019 2014-07-18  Bob Duff  <duff@adacore.com>
5021         * s-addima.ads: Minor: add comment.
5023 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5025         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
5026         of nesting rules for composites with different SSOs.
5028 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5030         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
5031         a proper logical operator.
5032         (Has_Decision): An If_Expression indicates the presence of a decision
5033         although it is not a logical operator.
5035 2014-07-18  Robert Dewar  <dewar@adacore.com>
5037         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
5038         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
5040 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
5042         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
5043         on the null statement.
5045 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5047         * adaint.c: Minor comment rewording.
5048         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
5049         use of errno in this file is thread safe.
5051 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
5053         * gnat_ugn.texi: Doc clarification.
5054         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
5055         * sem_ch13.ads: Minor comment update.
5057 2014-07-18  Robert Dewar  <dewar@adacore.com>
5059         * repinfo.ads: Minor comment fix.
5061 2014-07-18  Robert Dewar  <dewar@adacore.com>
5063         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
5064         * sem_prag.adb: Add dummy implementation of
5065         Default_Scalar_Storage_Order.
5066         * snames.ads-tmpl: Add dummy entry for
5067         Default_Scalar_Storage_Order pragma.
5069 2014-07-18  Robert Dewar  <dewar@adacore.com>
5071         * opt.adb (Tree_Read): Read Address_Is_Private,
5072         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
5073         (Tree_Write): Corresponding writes
5074         * opt.ads: Minor comment reformatting and fixes.
5075         * tree_io.ads: Increment ASIS_Version_Number.
5077 2014-07-18  Robert Dewar  <dewar@adacore.com>
5079         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
5080         * types.h: Fix typo.
5082 2014-07-18  Robert Dewar  <dewar@adacore.com>
5084         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
5085         functional change).
5086         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
5087         ASIS trees.
5088         * sem_ch13.adb (Kill_Rep_Clause): New procedure
5089         (Analyze_Attribute_Definition_Clause): Use
5090         Kill_Rep_Clause. This is just a cleanup, no functional effect.
5091         (Analyze_Enumeration_Representation_Clause):
5092         Use Kill_Rep_Clause. This means that enum rep
5093         clauses are now properly removed from -gnatct trees.
5094         (Analyze_Record_Representation_Clause): Same change.
5095         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
5097 2014-07-18  Pascal Obry  <obry@adacore.com>
5099         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
5100         OS_Time from time parts.
5101         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
5103 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5105         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
5106         indexing over containers that are derived types: check whether
5107         signature of found operation has the correct first parameter
5108         before retrieving directly a primitive operation.
5110 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5112         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
5113         Do_Range_Check flag on dynamic bounds of a range used in a
5114         component association in the argument of Update.
5116 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5118         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
5119         accesses to errno(3) to be thread safe.
5121 2014-07-18  Vincent Celier  <celier@adacore.com>
5123         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
5124         limited imported project that is an extending project, return
5125         a project being extended if it has the expected name.
5127 2014-07-18  Pascal Obry  <obry@adacore.com>
5129         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
5130         routine to set the last modification time stamp for the given file.
5131         * gnatchop.adb (File_Time_Stamp): Removed.
5132         (Write_Unit): Use
5133         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
5135 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5137         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
5138         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
5139         Moved here, so it can be shared with the resolution of 'Update,
5140         whose argument shares some features with aggregates.
5141         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
5142         Aggregate_Constraint_Checks with the expression of each
5143         association, so that the Do_Range_Check flag is set when needed.
5145 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5147         * sem_ch4.adb (Try_Container_Indexing):  If the container
5148         type is a derived type, the value of the inherited  aspect is
5149         the Reference operation declared for the parent type. However,
5150         Reference is also a primitive operation of the new type, and
5151         the inherited operation has a different signature. We retrieve
5152         the right one from the list of primitive operations of the
5153         derived type.
5155 2014-07-18  Vincent Celier  <celier@adacore.com>
5157         * debug.adb: Update comment.
5159 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5161         * exp_util.adb (Needs_Finalization): There is no reason why a
5162         C type should not benefit from finalization actions.
5164 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5166         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
5167         (FILENAME_MAX): Remove unneeded definition.
5169 2014-07-18  Robert Dewar  <dewar@adacore.com>
5171         * exp_attr.adb, debug.adb: Update comments.
5173 2014-07-18  Vincent Celier  <celier@adacore.com>
5175         * par-ch4.adb (Simple_Expression): Add missing style check
5176         for binary adding operators.
5177         (Term): Add missing style check for multiplying operators.
5179 2014-07-18  Robert Dewar  <dewar@adacore.com>
5181         * impunit.adb: Minor comment correction.
5182         * widechar.adb, s-wchcon.ads: Minor comment corrections.
5184 2014-07-18  Robert Dewar  <dewar@adacore.com>
5186         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
5187         for Build_Static_Predicate (Build_Predicate_Functions):
5188         Don't try to build discrete predicate for real type.
5189         (Build_Predicate_Functions): Report attempt to use
5190         Static_Predicate function on real type as unimplemented.
5191         * sem_util.adb (Check_Expression_Against_Static_Predicate):
5192         Add guard to prevent blow up on predicate for real type.
5194 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5196         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
5197         properly static predicate on enumeration types and modular types
5198         (not subtypes).
5200 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
5202         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
5203         the corresponding source file index.
5204         * get_scos.ads (Get_SCOs): Add a default value for it.
5205         * par_sco.adb (SCO_Record): Fill the corresponding value.
5206         * scos.h: New.
5208 2014-07-18  Vincent Celier  <celier@adacore.com>
5210         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
5211         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
5212         reformatting.
5213         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
5215 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5217         * g-sercom.ads (Set): document possible data loss.
5219 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5221         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
5222         Output, Read, Write): If the restriction No_Streams is active,
5223         replace each occurrence of a stream attribute by an explicit
5224         Raise statement.
5226 2014-07-18  Robert Dewar  <dewar@adacore.com>
5228         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
5229         reformatting.
5231 2014-07-18  Robert Dewar  <dewar@adacore.com>
5233         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
5234         function.
5235         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
5236         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
5237         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
5238         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
5240 2014-07-18  Robert Dewar  <dewar@adacore.com>
5242         * bcheck.adb (Check_Consistent_Restrictions):
5243         Remove obsolete code checking for violation of
5244         No_Standard_Allocators_After_Elaboration (main program)
5245         * bindgen.adb (Gen_Adainit): Handle
5246         No_Standard_Allocators_After_Elaboration
5247         (Gen_Output_File_Ada): ditto.
5248         * exp_ch4.adb (Expand_N_Allocator): Handle
5249         No_Standard_Allocators_After_Elaboration.
5250         * Makefile.rtl: Add entry for s-elaall
5251         * rtsfind.ads: Add entry for Check_Standard_Allocator.
5252         * s-elaall.ads, s-elaall.adb: New files.
5253         * sem_ch4.adb (Analyze_Allocator): Handle
5254         No_Standard_Allocators_After_Elaboration.
5256 2014-07-18  Robert Dewar  <dewar@adacore.com>
5258         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
5259         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
5260         Remove AB parameter from ali files and all uses.
5261         Remove Allocator_In_Body and all uses.
5263 2014-07-18  Robert Dewar  <dewar@adacore.com>
5265         * g-expect-vms.adb: Add comment.
5267 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5269         * par_sco.adb (Is_Logical_Operation): return True for
5270         N_If_Expression.
5272 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5274         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
5275         analysis and resolution of each choice in the associations within
5276         the argument of Update, because they may be variable names.
5278 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5280         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
5281         actions before the generated if statement.
5283 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5285         * gnat_ugn.texi Enhance the documentation of
5286         switches -gnateA and -gnateV.
5288 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5290         * sem_util.adb (Build_Default_Subtype): Add missing condition
5291         so that code matches description: use the full view of the base
5292         only if the base is private and the subtype is not.
5294 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
5296         * exp_disp.adb: Minor reformatting.
5297         * exp_disp.adb: Minor code reorganization.
5299 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5301         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
5302         require an explicit SSO attribute definition clause on a composite type
5303         just because one of its components has one.
5305 2014-07-17  Robert Dewar  <dewar@adacore.com>
5307         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
5308         attribute out of existence if the enclosing pragma is ignored.
5309         * sem_util.adb: Minor reformatting.
5311 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5313         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
5314         array aggregate expanded into assignments when it appears as a
5315         local declaration in an inlined body.
5317 2014-07-17  Doug Rupp  <rupp@adacore.com>
5319         * init.c [__ANDROID__]: Modify for ZCX.
5320         * exp_aggr.adb: Minor reformatting
5321         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
5323 2014-07-17  Robert Dewar  <dewar@adacore.com>
5325         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
5326         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
5327         scng.adb: Remove incorrect usage "allow to" and "allows to".
5329 2014-07-17  Robert Dewar  <dewar@adacore.com>
5331         * exp_dist.adb: Minor reformatting.
5333 2014-07-17  Bob Duff  <duff@adacore.com>
5335         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
5337 2014-07-17  Robert Dewar  <dewar@adacore.com>
5339         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
5340         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
5342 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5344         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
5345         non-bit-packed array, propagate Reverse_Storage_Order to the
5346         packed array type.
5348 2014-07-17  Javier Miranda  <miranda@adacore.com>
5350         * exp_disp.adb: Fix comment.
5351         * exp_pakd.adb: Minor reformatting.
5353 2014-07-17  Robert Dewar  <dewar@adacore.com>
5355         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
5356         entity if none exists (Gen_Elab_Calls): Complain if clash with
5357         No_Multiple_Elaboration.
5358         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
5359         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
5360         if not needed.
5361         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
5362         * sem_ch4.adb: Minor comment updates.
5364 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5366         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
5367         of function call for later use when shared passive objects
5368         are involved.
5370 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5372         * par-ch13.adb (Get_Aspect_Specifications):
5373         Catch a case where the argument of SPARK aspect Refined_State
5374         is not properly parenthesized.
5376 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5378         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
5379         the lifetime of a reference to an Ada 2012 container element.
5380         (Is_Element_Reference): New routine.
5382 2014-07-17  Robert Dewar  <dewar@adacore.com>
5384         * ali.ads: Minor comment fix.
5385         * lib-writ.adb: Minor reformatting.
5387 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5389         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
5390         in ASIS mode, load another subunit only if it a subunit of the
5391         current one, not a sibling that has been reached through the
5392         analysis of an ancestor. This allows the construction of the
5393         ASIS tree for the subunit even when sibling subunits have errors.
5395 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5397         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
5398         prevents the analysis of various contracts when the associated
5399         construct is erroneous.
5400         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
5401         SPARK_Pragma of an illegal or a partially decorated construct.
5403 2014-07-17  Robert Dewar  <dewar@adacore.com>
5405         * s-imguns.ads: Minor reformatting.
5407 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5409         * exp_ch7.adb (Build_Finalization_Master): Move all local
5410         variables to the proper code section. When looking for an existing
5411         finalization master, inspect the ultimate ancestor type of the
5412         full view.
5413         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
5415 2014-07-17  Robert Dewar  <dewar@adacore.com>
5417         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
5418         * gnat_rm.texi: Document Entity argument for pragma Annotate and
5419         Annotate aspect.
5420         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
5421         for Annotate aspect.
5422         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
5423         Entity argument at end.
5424         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
5426 2014-07-17  Tristan Gingold  <gingold@adacore.com>
5428         * s-imguns.ads: Fix minor typo.
5430 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5432         * sprint.adb: Minor reformatting.
5434 2014-07-17  Robert Dewar  <dewar@adacore.com>
5436         * sprint.adb (Write_Itype): Print proper header for string
5437         literal subtype.
5439 2014-07-17  Steve Baird  <baird@adacore.com>
5441         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
5443 2014-07-17  Vincent Celier  <celier@adacore.com>
5445         * gnatbind.adb: Change in message "try ... for more information".
5447 2014-07-17  Robert Dewar  <dewar@adacore.com>
5449         * sprint.adb: Code clean up.
5451 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5453         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
5454         the relevant code section. Add new local constant Obj_Id. When
5455         a limited controlled object is initialized by a function call,
5456         the build-in-place object access function call acts as the last
5457         initialization statement.
5458         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
5459         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
5460         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
5462 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5464         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
5465         propagate intrinsic flag to renamed entity, to allow e.g. renaming
5466         of Unchecked_Conversion.
5467         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
5468         if the declaration has errors.
5470 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5472         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
5473         container is busy before checking whether capacity allows for
5474         a further insertion. Insertion in a busy container that is full
5475         raises Program_Error rather than Capacity_Error. Previous to that
5476         patch which exception was raised varied among container types.
5478 2014-07-17  Robert Dewar  <dewar@adacore.com>
5480         * g-comlin.ads, g-comlin.adb: Minor clean up.
5482 2014-07-17  Bob Duff  <duff@adacore.com>
5484         * gnat_ugn.texi: Update gnatpp doc.
5486 2014-07-17  Robert Dewar  <dewar@adacore.com>
5488         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
5489         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
5490         could do this by actually expanding a real generic.
5491         * a-tags.ads: Add comments about performance.
5492         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
5493         Print Etype of defining identifier, rather than the object
5494         definition. More information.
5496 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5498         * exp_dist.adb: Minor documentation clarification.
5500 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5502         * exp_util.adb (Is_Aliased): Revert previous change.
5504 2014-07-17  Vincent Celier  <celier@adacore.com>
5506         * g-comlin.adb (Try_Help): New procedure.
5507         (Getopt): Use new procedure Try_Help.
5508         * g-comlin.ads (Try_Help): New procedure.
5510 2014-07-17  Bob Duff  <duff@adacore.com>
5512         * gnat_ugn.texi: Minor update.
5514 2014-07-17  Robert Dewar  <dewar@adacore.com>
5516         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
5517         * sinfo.ads: Document restriction on aggregates (must expand to
5518         assignments if one or more assignments needs expansion, e.g. for
5519         controlled types).
5520         * sem_ch13.adb: All warning messages regarding bit order should
5521         be info: messages.
5522         * gnat_ugn.texi: Minor correction of missing @ on @code
5524 2014-07-17  Robert Dewar  <dewar@adacore.com>
5526         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
5527         * s-rident.ads (Partition_Boolean_Restrictions): Add
5528         No_Long_Long_Integer.
5529         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
5530         Long_Integer'Size if restriction No_Long_Long_Integer is active.
5531         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
5532         as the implicit base type for a signed integer type declaration
5533         if restriction No_Long_Long_Integer is active.
5534         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
5535         No_Long_Long_Integer.
5537 2014-07-17  Robert Dewar  <dewar@adacore.com>
5539         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
5540         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
5541         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
5542         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
5543         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
5545 2014-07-17  Robert Dewar  <dewar@adacore.com>
5547         * debug.adb: Remove -gnatdQ.
5548         * exp_disp.adb: Remove -gnatdQ.
5549         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
5550         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
5551         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
5552         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
5553         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
5554         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
5556 2014-07-17  Robert Dewar  <dewar@adacore.com>
5558         * back_end.adb: Minor reformatting and comment additions.
5559         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
5560         function.
5561         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
5562         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
5563         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
5564         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
5565         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
5566         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
5568 2014-07-17  Robert Dewar  <dewar@adacore.com>
5570         * gnat_rm.texi: Minor comment updates.
5572 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5574         * sem_util.adb (Make_Explicit_Dereference): If the expression
5575         being dereferenced is a generalized indexing, reset the overloaded
5576         flag on the generalized indexing call, consistent with the
5577         resetting of the flag on the original indexed component.
5579 2014-07-17  Robert Dewar  <dewar@adacore.com>
5581         * gnat_ugn.texi: Document advise not to mix -gnatV? and
5582         optimization.
5584 2014-07-17  Robert Dewar  <dewar@adacore.com>
5586         * checks.adb (Insert_Valid_Check): Don't insist on a name
5587         for the prefix when we make calls to Force_Evaluation and
5588         Duplicate_Subexpr_No_Checks.
5589         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
5590         (Remove_Side_Effects): Handle all volatile references right
5591         (Side_Effect_Free): Volatile reference is never side effect free
5592         * sinfo.ads (N_Attribute_Reference): Add comments explaining
5593         that in the tree, the prefix can be a general expression.
5595 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5597         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
5598         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
5599         * sem_ch7.adb (Analyze_Package_Body_Contract,
5600         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
5602 2014-07-17  Robert Dewar  <dewar@adacore.com>
5604         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
5605         Store_After_Actions_In_Scope.
5607 2014-07-17  Robert Dewar  <dewar@adacore.com>
5609         * sem_aux.ads: Minor comment addition.
5611 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5613         * sem_res.adb (Make_Call_Into_Operator): If the call is already
5614         a rewriting of an operator node, there are no actuals to be
5615         propagated from original node to rewritten node when in ASIS mode.
5617 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5619         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
5620         Analyze_Subprogram_Contract): Add new local variable Mode. Save
5621         and restore the SPARK mode of the related construct in a
5622         stack-like fashion.
5623         * sem_ch7.adb (Analyze_Package_Body_Contract,
5624         Analyze_Package_Contract): Add new local variable Mode. Save and
5625         restore the SPARK mode of the related construct in a stack-like fashion.
5626         * sem_util.adb Remove with and use clause for Opt.
5627         (Restore_SPARK_Mode): New routine.
5628         (Save_SPARK_Mode_And_Set): New routine.
5629         * sem_util.ads Add with and use clause for Opt.
5630         (Restore_SPARK_Mode): New routine.
5631         (Save_SPARK_Mode_And_Set): New routine.
5633 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5635         * exp_util.adb (Is_Aliased): Transient objects
5636         within an expression with actions cannot be considered aliased.
5638 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5640         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
5641         introduce a new list (cleanup actions) for each (transient) scope.
5642         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
5643         N_Block_Statement
5644         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
5645         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
5646         processing for Store_xxx_Actions_In_Scope.
5647         (Build_Cleanup_Statements): Allow for a list of additional
5648         cleanup statements to be passed by the caller.
5649         (Expand_Cleanup_Actions): Take custom cleanup actions associated
5650         with an N_Block_Statement into account.
5651         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
5652         reorganization (refactoring only, no behaviour change).
5653         (Make_Transient_Block): Add assertion to ensure that the current
5654         scope is indeed a block (namely, the entity for the transient
5655         block being constructed syntactically, which has already been
5656         established as a scope).  If cleanup actions are present in the
5657         transient scope, transfer them now to the transient block.
5658         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
5659         called function while it is still present as the name in a call
5660         in the tree. This may not be the case later on if the call is
5661         rewritten into a transient block.
5662         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
5663         inserted after calling a protected operation on a shared passive
5664         protected must be performed in a block finalizer, not just
5665         inserted in the tree, so that they are executed even in case of
5666         a normal (RETURN) or abnormal (exception) transfer of control
5667         outside of the current scope.
5668         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
5669         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
5670         Scope_Stack_Entry reorganization.
5672 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5674         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
5675         call for types that do not have an explicit attribute definition
5676         clause for External_Tag, as their default tag may clash with an
5677         explicit tag defined for some other type.
5679 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
5681         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
5682         controlled function call with multiple actual parameters that
5683         appears in Object.Operation form.
5685 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5687         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
5688         entity flag.
5689         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
5690         External_Tag): No need to set entity flag.
5691         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
5692         Reimplement correctly in terms of Has_Rep_Item.
5694 2014-07-17  Thomas Quinot  <quinot@adacore.com>
5696         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
5697         Start examining the tree at the node passed to
5698         Establish_Transient_Scope (not its parent).
5699         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
5700         The access type for the variable storing the reference to
5701         the call must be declared and frozen prior to establishing a
5702         transient scope.
5703         * exp_ch9.adb: Minor reformatting.
5705 2014-07-17  Pascal Obry  <obry@adacore.com>
5707         * s-os_lib.ads: Minor comment update.
5709 2014-07-17  Tristan Gingold  <gingold@adacore.com>
5711         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
5712         indentation.
5713         * socket.c: Remove #warning to avoid warning.
5714         * expect.c: Indent some preprocessor directives to clarify
5715         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
5716         to remove warnings.
5717         * env.c: Fix indentation.  Port to PikeOS.
5718         * gsocket.h: Port to PikeOS.  Remove #warning.
5719         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
5720         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
5721         of stubbed __gnat_setup_parent_communication.
5722         * adaint.c: Port to PikeOS.  Reindent some preprocessor
5723         directives to clarify nested if.  Fix indentation.  Add missing
5724         ATTRIBUTE_UNUSED.
5726 2014-07-17  Robert Dewar  <dewar@adacore.com>
5728         * sem_attr.adb: Minor reformatting.
5730 2014-07-17  Robert Dewar  <dewar@adacore.com>
5732         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
5734 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
5736         * sem_case.adb (Check_Choice_Set): If the case expression is the
5737         expression in a predicate, do not recheck coverage against itself,
5738         to prevent spurious errors.
5739         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
5740         expression comes from an aspect specification, to prevent spurious
5741         errors when expression is a case expression in a predicate.
5743 2014-07-17  Pascal Obry  <obry@adacore.com>
5745         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
5746         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
5748 2014-07-17  Vincent Celier  <celier@adacore.com>
5750         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
5751         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
5752         the usage for an erroneous invocation of a gnat tool.
5754 2014-07-16  Vincent Celier  <celier@adacore.com>
5756         * gnatls.adb: Get the target parameters only if -nostdinc was
5757         not specified.
5759 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
5761         * checks.adb (Insert_Valid_Check): If the expression is a packed
5762         component of a modular type of the right size the data is always
5763         valid. This os particularly useful if the component is part of
5764         a volatile variable.
5766 2014-07-16  Robert Dewar  <dewar@adacore.com>
5768         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
5770 2014-07-16  Thomas Quinot  <quinot@adacore.com>
5772         * exp_ch7.ads: Minor documentation fix.
5774 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
5776         * sem_ch3.adb (Find_Type_Name): Diagnose properly
5777         a private extension completion that is an interface definition
5778         with an interface list.
5780 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
5782         * gnatls.adb (Gnatls): Code clean ups.
5784 2014-07-16  Thomas Quinot  <quinot@adacore.com>
5786         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
5787         * sem.adb (Analyze): Handle N_Compound_Statement.
5788         * sprint.adb (Sprint_Node_Actual): Ditto.
5789         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
5790         procedure to handle N_Compound_Statement.
5791         * exp_aggr.adb (Collect_Initialization_Statements):
5792         Use a proper compound statement node, instead of a bogus
5793         expression-with-actions with a NULL statement as its expression,
5794         to wrap collected initialization statements.
5795         * freeze.ads, freeze.adb
5796         (Explode_Initialization_Compound_Statement): New public procedure,
5797         lifted from Freeze_Entity.
5798         (Freeze_Entity): When freezing
5799         an object with captured initialization statements and without
5800         delayed freezing, explode compount statement.
5801         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
5802         case that used to handle bogus EWAs with NULL statement as
5803         the expression.
5804         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
5805         delayed freezing and captured initialization statements, explode
5806         compound statement.
5808 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
5810         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
5812 2014-07-16  Doug Rupp  <rupp@adacore.com>
5814         * s-interr-hwint.adb: Casing error on parameter.
5816 2014-07-16  Pascal Obry  <obry@adacore.com>
5818         * Makefile.rtl: Add g-rewdat.o dependencies in
5819         GNATRTL_NONTASKING_OBJS.
5821 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
5823         * sem_case.adb: Code clean up.
5825 2014-07-16  Vincent Celier  <celier@adacore.com>
5827         * make.adb: Do not read gnat.adc when gnatmake is invoked
5828         with -gnatA.
5830 2014-07-16  Pascal Obry  <obry@adacore.com>
5832         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
5833         implementation of GNAT.Rewrite_Data.
5835 2014-07-16  Vincent Celier  <celier@adacore.com>
5837         * gnatls.adb (Normalize): New function.
5838         (Gnatls): Get the target parameters. On targets other than VMS,
5839         normalize the path names in the source search path, the object search
5840         path and the project search path.
5842 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
5844         * sem_case.adb: Avoid self-checking of case expressions in
5845         dynamic predicates.
5847 2014-07-16  Robert Dewar  <dewar@adacore.com>
5849         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
5850         discriminants.
5852 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
5854         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
5856 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
5858         * gnat_ugn.texi: Fix typo.
5860 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
5862         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
5863         expression if it is the specification of a subtype predicate:
5864         it will be expanded when the return statement is analyzed, or
5865         when a static predicate is transformed into a static expression
5866         for evaluation by the front-end.
5867         * sem_ch13.adb (Get_RList): If the expression for a static
5868         predicate is a case expression, extract the alternatives of the
5869         branches with a True value to create the required statically
5870         evaluable expression.
5872 2014-07-16  Thomas Quinot  <quinot@adacore.com>
5874         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
5875         expression, not the location of the aspect, for all generated
5876         code, so that in particular the call to raise_assert_failure
5877         gets the sloc of the associated condition.
5878         * exp_ch6.adb
5879         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
5880         Set an explicit End_Label on the handled sequence of statements
5881         for the _Postconditions procedure so that the implicit return
5882         statement does not erroneously get associated with code generated
5883         for the last condition in postconditions.
5885 2014-07-16  Thomas Quinot  <quinot@adacore.com>
5887         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
5888         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
5889         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
5890         -gnatw.Z.
5892 2014-07-16  Robert Dewar  <dewar@adacore.com>
5894         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
5895         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
5896         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
5897         not in Access_Kind.
5898         * par-ch4.adb (At_Start_Of_Attribute): New function
5899         (P_Simple_Expression): Better msg for bad attribute prefix.
5900         * scans.ads: Minor reformatting.
5902 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
5904         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
5905         static constant, check that in belongs to the corresponding index
5906         subtype, to produce the proer warning when expansion is disabled.
5908 2014-07-16  Robert Dewar  <dewar@adacore.com>
5910         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
5911         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
5912         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
5913         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
5914         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
5915         -gnatw.z/-gnatw.Z
5916         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
5917         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
5918         reformatting.
5920 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
5922         * exp_ch7.adb (Process_Declarations): Reinstate the check on
5923         a hook object to ensure that the related transient declaration
5924         is finalizable.
5925         * exp_util.adb (Is_Aliased): Do not consider expresison with
5926         actions as a special context.
5927         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
5928         ensure that the related transient declaration is finalizable.
5930 2014-07-16  Robert Dewar  <dewar@adacore.com>
5932         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
5933         * snames.ads-tmpl: Add Allocation_Check to list of check names.
5934         * types.ads: Add Allocation_Check to list of check names.
5936 2014-07-16  Thomas Quinot  <quinot@adacore.com>
5938         * sem_util.adb (Enter_Name): replace bogus test for presence of
5939         Corresponding_Remote_Type with correct test on Ekind.
5940         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
5941         of calls to Corresponding_ Remote_Type (documentation fix).
5943 2014-07-16  Robert Dewar  <dewar@adacore.com>
5945         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
5946         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
5947         where it applies.
5948         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
5949         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
5951 2014-07-16  Robert Dewar  <dewar@adacore.com>
5953         * gnat_ugn.texi: Document binder switch -Ra.
5954         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
5955         (List_Closure_All).
5956         * opt.ads (List_Closure_All): New switch.
5957         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
5958         List_Closure_All.
5960 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
5962         * gnat_rm.texi: Minor edits, to make case consistent in names
5963         of types and fields.
5965 2014-07-16  Robert Dewar  <dewar@adacore.com>
5967         * gnat_rm.texi: Document erroneous mixing of thin pointers and
5968         unrestricted access
5969         * gnat_ugn.texi: Add note on size of access types about thin
5970         pointers and the use of attribute Unrestricted_Access.
5972 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
5974         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
5975         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
5976         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
5977         machinery to detect tampering on bounded vectors.
5979 2014-07-16  Robert Dewar  <dewar@adacore.com>
5981         * gnat_rm.texi: Document that leading/trailing asterisks are
5982         now implied for the pattern match string for pragma Warnings
5983         and Warning_As_Error.
5984         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
5985         (Analyze_Pragma, case Warning_As_Error): Call
5986         Acquire_Warning_Match_String.
5987         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
5989 2014-07-16  Bob Duff  <duff@adacore.com>
5991         * gnat_ugn.texi: Document need for project file
5992         for --incremental switch for gnat2xml.
5994 2014-07-16  Robert Dewar  <dewar@adacore.com>
5996         * gnat_rm.texi: Fix example of non-packable components in packed
5997         records section.
5999 2014-07-16  Robert Dewar  <dewar@adacore.com>
6001         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
6002         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
6003         upper case in exception messages.
6005 2014-07-16  Robert Dewar  <dewar@adacore.com>
6007         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
6008         is renamed Has_Same_Storage.
6009         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
6010         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
6011         descriptions).
6013 2014-07-16  Robert Dewar  <dewar@adacore.com>
6015         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
6016         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
6018 2014-07-16  Robert Dewar  <dewar@adacore.com>
6020         * gnat_ugn.texi: Add note that integrated
6021         preprocessing cannot be applied to configuration pragma files.
6023 2014-07-16  Yannick Moy  <moy@adacore.com>
6025         * sem_attr.adb (Analyze_Attribute/cases Pred
6026         and Succ): Always enable range check on fixed-point types if
6027         not suppressed for the type.
6029 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
6031         * sem_util.adb (State_Has_Enabled_Property):
6032         Account for an external property denoted by an others choice.
6034 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
6036         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
6037         * exp_ch7.adb (Process_Declarations): There is no need to check
6038         that a transient object being hooked is controlled as it would
6039         not have been hooked in the first place.
6040         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
6041         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
6042         (Is_Aliased): A renaming of a transient controlled object is
6043         not considered aliasing when it occurs within an expression
6044         with actions.
6045         (Requires_Cleanup_Actions): There is no need to
6046         check that a transient object being hooked is controlled as it
6047         would not have been hooked in the first place.
6048         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
6050 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
6052         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
6053         the outer level of routine Analyze_Aspect_Specifications. Ensure
6054         that the corresponding pragmas of aspects Initial_Condition and
6055         Initializes are inserted after pragma SPARK_Mode.
6057 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6059         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
6060         properly a choice list with more than one choice, where each
6061         is an aggregate denoting a sequence of array indices for a
6062         multidimentional array. For SPARK use.
6064 2014-07-16  Vadim Godunko  <godunko@adacore.com>
6066         * a-coinho-shared.adb (Adjust): Create
6067         copy of internal shared object and element when source container
6068         is locked.
6069         (Copy): Likewise.
6070         (Query_Element): Likewise.
6071         (Update_Element): Likewise.
6072         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
6073         to get reference for empty holder.
6074         (Reference): Likewise.
6076 2014-07-16  Thomas Quinot  <quinot@adacore.com>
6078         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
6079         from Process_Transient_Oject.
6080         * exp_ch4.ads: Ditto.
6081         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
6082         declaration as an action on the topmost enclosing expression,
6083         not on a possibly conditional subexpreession.
6085 2014-07-16  Vadim Godunko  <godunko@adacore.com>
6087         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
6088         Fix parameter mode of Update_Element.
6090 2014-07-16  Robert Dewar  <dewar@adacore.com>
6092         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
6093         reformatting.
6095 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6097         * a-cohase.ads: Type Iterator must be controlled, so that the
6098         tampering bit is properly set through an iteration.
6099         * a-cohase.adb: Add Finalize operation for type Iterator.
6101 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6103         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
6104         tampering checks.
6106 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6108         * a-coinho-shared.adb: Fix spurious accessibility check.
6110 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
6112         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
6114 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6116         PR ada/61505
6117         * gnat_rm.texi: Fix errors with makeinfo 5.1.
6119 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
6121         PR ada/61505
6122         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
6124 2014-06-13  Yannick Moy  <moy@adacore.com>
6126         * exp_attr.adb: Fix typo in comment.
6127         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
6128         checking in GNATprove_Mode.
6130 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6132         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
6134 2014-06-13  Robert Dewar  <dewar@adacore.com>
6136         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
6137         reformatting.
6139 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
6141         * sem_prag.adb (Analyze_Pragma): Add local
6142         variable Missing_Parentheses. Emit an error when a state
6143         declaration with options appears without parentheses. Add a
6144         guard to prevent a bogus error when a state declaration may be
6145         interpreted as an option if a previous declaration with options
6146         was not parenthesized.
6148 2014-06-13  Robert Dewar  <dewar@adacore.com>
6150         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
6151         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
6152         * checks.ads (Alignment_Warnings_Record): New type.
6153         (Alignment_Warnings): New table
6154         (Validate_Alignment_Check_Warnings): New procedure.
6155         * errout.adb (Delete_Warning_And_Continuations): New procedure
6156         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
6157         Warnings_Treated_As_Errors (Finalize): Minor reformatting
6158         * errout.ads (Warning_Msg): New variable
6159         (Delete_Warning_And_Continuations): New procedure
6160         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
6161         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
6163 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6165         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
6167 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
6169         * errout.adb (SPARK_Msg_N): New routine.
6170         (SPARK_Msg_NE): New routine.
6171         * errout.ads Add a section on SPARK-related error routines.
6172         (SPARK_Msg_N): New routine.
6173         (SPARK_Msg_NE): New routine.
6174         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
6175         pragma Abstract_State is always inserted after SPARK_Mode.
6176         (Insert_After_SPARK_Mode): New routine.
6177         * sem_prag.adb (Analyze_Abstract_State,
6178         Analyze_Constituent, Analyze_External_Property,
6179         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
6180         Analyze_Global_List, Analyze_Initialization_Item,
6181         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
6182         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
6183         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
6184         Analyze_Refined_Global_In_Decl_Part,
6185         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
6186         Check_Aspect_Specification_Order, Check_Constituent_Usage,
6187         Check_Declaration_Order, Check_Dependency_Clause,
6188         Check_Duplicate_Mode, Check_Duplicate_Option,
6189         Check_Duplicate_Property, Check_External_Properties,
6190         Check_External_Property, Check_Function_Return,
6191         Check_Matching_Constituent, Check_Matching_State,
6192         Check_Mode_Restriction_In_Enclosing_Context,
6193         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
6194         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
6195         Has_Extra_Parentheses, Inconsistent_Mode_Error,
6196         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
6197         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
6198         Report_Unrefined_States, Report_Unused_Constituents,
6199         Report_Unused_States, Role_Error, Usage_Error):
6200         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
6201         to report semantic errors only when SPARK_Mode is on.
6202         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
6203         pragma Depends explicitly, this is now done by the analysis.
6204         (Analyze_Global_In_Decl_List): Do not check the syntax of
6205         pragma Global explicitly, this is now done by the analysis.
6206         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
6207         pragma Initializes explicitly, this is now done by the analysis.
6208         (Analyze_Part_Of): Do not check the syntax of the encapsulating
6209         state, this is now done by the analysis.
6210         (Analyze_Pragma): Do
6211         not check the syntax of a state declaration, this is now done
6212         by the analysis.
6213         (Analyze_Refined_Depends_In_Decl_Part): Do not
6214         check the syntax of pragma Refined_Depends explicitly, this is now
6215         done by the analysis.
6216         (Analyze_Refined_Global_In_Decl_Part): Do
6217         not check the syntax of pragma Refined_Global explicitly, this is
6218         now done by the analysis.
6219         (Analyze_Refined_State_In_Decl_Part):
6220         Do not check the syntax of pragma Refined_State explicitly, this
6221         is now done by the analysis.
6222         (Check_Dependence_List_Syntax): Removed.
6223         (Check_Global_List_Syntax): Removed.
6224         (Check_Initialization_List_Syntax): Removed.
6225         (Check_Item_Syntax): Removed.
6226         (Check_Missing_Part_Of): Do not consider items from an instance.
6227         (Check_Refinement_List_Syntax): Removed.
6228         (Check_State_Declaration_Syntax): Removed.
6229         (Collect_Global_List): Do not raise Program_Error when the input is
6230         malformed.
6231         (Process_Global_List): Do not raise Program_Error when the input
6232         is malformed.
6233         * sem_ch13.adb: Minor reformatting.
6235 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6237         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
6238         that is an interface definition with an interface list.
6239         (Process_Full_View): Move error message on missmatched interfaces
6240         between views to the declaration of full view, for clarity.
6241         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
6242         for clarity.
6244 2014-06-13  Robert Dewar  <dewar@adacore.com>
6246         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
6247         reason to Overflow.
6249 2014-06-13  Robert Dewar  <dewar@adacore.com>
6251         * makeutl.adb: Minor reformatting.
6253 2014-06-13  Gail Schenker  <schenker@adacore.com>
6255         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
6256         associated flag (d.z), no longer needed.
6258 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6260         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
6261         Export aspects, do not check whether a corresponding Convention
6262         aspect has been specified. Convention is optional in Ada2012,
6263         and defaults to Convention_Ada.
6265 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
6267         * checks.adb (Apply_Address_Clause_Check): Only issue the new
6268         warning if the propagation warning is issued.
6270 2014-06-13  Thomas Quinot  <quinot@adacore.com>
6272         * exp_ch4.adb: Minor reformatting.
6274 2014-06-13  Robert Dewar  <dewar@adacore.com>
6276         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
6277         Handle float range check case (Expand_N_Attribute_Reference,
6278         case Succ): Handle float range check case.
6279         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
6280         range check case.
6282 2014-06-13  Vincent Celier  <celier@adacore.com>
6284         * makeutl.ads (Compute_Builder_Switches): Change name of
6285         parameter Root_Environment to Env.
6286         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
6287         Env parameter of procedure Get_Or_Create_Configuration_File.
6288         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
6289         of new parameter Env.
6290         * prj-conf.ads (Locate_Runtime): New parameter Env of type
6291         Prj.Tree.Environment.
6293 2014-06-13  Robert Dewar  <dewar@adacore.com>
6295         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
6297 2014-06-13  Robert Dewar  <dewar@adacore.com>
6299         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
6300         reformatting.
6301         * sem_attr.adb: Minor code reformatting and simplification.
6302         * checks.adb: Fix minor typo.
6304 2014-06-13  Emmanuel Briot  <briot@adacore.com>
6306         * g-comlin.adb (Get_Argument): fix expansion
6307         of command line arguments (e.g. "*.adb") when using a custom
6308         parser. The parser was not passed to the recursive call, and
6309         thus we were trying to do the expansion on the default command
6310         line parser.
6312 2014-06-13  Thomas Quinot  <quinot@adacore.com>
6314         * exp_ch9.adb: Minor reformatting.
6316 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6318         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
6319         To determine whether the attribute should be expanded, examine
6320         whether the enclosing postcondition pragma is to be checked,
6321         rather than using the internal flag Assertions_Enabled.
6323 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
6325         * gnat_rm.texi: Minor fixes.
6326         * gnat_ugn.texi: Added a missing "@itemize".
6328 2014-06-13  Robert Dewar  <dewar@adacore.com>
6330         * debug.adb: Remove -gnatd.1 flag documentation.
6331         * layout.adb (Layout_Type): Remove special handling of size
6332         for anonymous access type.
6333         * sem_ch3.adb (Replace_Type): Remove special handling of size
6334         for anonymous access type.
6336 2014-06-13  Robert Dewar  <dewar@adacore.com>
6338         * debug.adb: Document debug flag -gnatd.1.
6339         * layout.adb (Layout_Type): Size change for anonymous access
6340         types under -gnatd.1.
6341         * sem_ch3.adb (Replace_Type): Size change for anonymous access
6342         types under -gnatd.1.
6344 2014-06-13  Robert Dewar  <dewar@adacore.com>
6346         * layout.adb (Layout_Type): Anonymous access types designating
6347         unconstrained arrays are always thin pointers.
6348         * sem_ch3.adb (Replace_Type): Anonymous access types designating
6349         unconstrained arrays are always thin pointers.
6351 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6353         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
6354         to resolve the prefix of an attribute that is an entity name
6355         and may be a parameterless call.  Minor code reorganization.
6357 2014-06-13  Robert Dewar  <dewar@adacore.com>
6359         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
6360         Removed.
6361         * opt.ads (Compiler_Unit): New flag.
6362         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
6363         for null statement sequence (not allowed in compiler unit).
6364         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
6365         parsing.
6366         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
6367         calling sequence.
6368         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
6369         Check_Compiler_Unit.
6370         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
6371         Check_Compiler_Unit (this construct is not allowed in compiler
6372         units).
6373         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
6374         Set Opt.Compiler_Unit.
6376 2014-06-13  Geert Bosch  <bosch@adacore.com>
6378         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
6379         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
6380         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
6382 2014-06-13  Robert Dewar  <dewar@adacore.com>
6384         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
6386 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
6388         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
6389         types in SPARK as it is poorly placed and poorly formulated. The
6390         check was flagging ALL volatile entities as illegal in SPARK.
6391         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
6392         types as illegal in SPARK.
6394 2014-06-13  Robert Dewar  <dewar@adacore.com>
6396         * sem_cat.adb: Minor reformatting.
6398 2014-06-13  Yannick Moy  <moy@adacore.com>
6400         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
6402 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
6404         * gnat_rm.texi: Add detail on SPARK_05 restriction.
6406 2014-06-13  Bob Duff  <duff@adacore.com>
6408         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
6409         Add assertions requiring the secondary stack to be initialized.
6410         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
6411         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
6412         secondary stack is initialized before calling Init_Tasking_Soft_Links,
6413         by adding pragmas Elaborate_Body.
6415 2014-06-13  Thomas Quinot  <quinot@adacore.com>
6417         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
6418         kludge disabling new legality check.
6420 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
6422         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
6423         volatile types.
6424         (Freeze_Type): Volatile types are now illegal in SPARK.
6426 2014-06-13  Robert Dewar  <dewar@adacore.com>
6428         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
6429         * gnat_rm.texi: Document aspect Thread_Local_Storage.
6431 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6433         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
6434         value is a temporary that renames an aggregate is legal in a
6435         preelaborated unit. Illegalities, if any will be detected in
6436         the aggregate components.
6438 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6440         * einfo.ads: Minor reformatting an comment expansion.
6442 2014-06-13  Robert Dewar  <dewar@adacore.com>
6444         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
6445         Tbuild.
6446         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
6447         Back_End.
6448         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
6449         * sem_warn.adb: Minor reformatting.
6451 2014-06-13  Doug Rupp  <rupp@adacore.com>
6453         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
6454         files with rfm=udf.
6456 2014-06-13  Yannick Moy  <moy@adacore.com>
6458         * sem_warn.adb (Check_Unset_References): Take
6459         case of Refined_Post into account in Within_Postcondition check.
6461 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
6463         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
6464         SPARK.
6466 2014-06-13  Yannick Moy  <moy@adacore.com>
6468         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
6469         Aspect_Export): Consider that variables may be set outside the program.
6471 2014-06-13  Robert Dewar  <dewar@adacore.com>
6473         * back_end.adb (Make_Id): New function.
6474         (Make_SC): New function.
6475         (Set_RND): New procedure.
6476         * back_end.ads (Make_Id): New function.
6477         (Make_SC): New function.
6478         (Set_RND): New procedure.
6479         * einfo.ads: Minor comment updates.
6480         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
6481         * gnat1drv.adb (Gnat1drv): New calling sequence for
6482         Get_Target_Parameters.
6483         (Gnat1drv): Move Atree.Initialize here from Frontend.
6484         * targparm.adb (Get_Target_Parameters): New calling
6485         sequence (Get_Target_Parameters): Handle pragma Restriction
6486         (No_Dependence,..)
6487         * targparm.ads (Get_Target_Parameters): New calling sequence.
6489 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
6491         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
6492         loop if the pragma does not come from source, so that an implicit
6493         pragma Import only applies to the first declaration, avoiding
6494         possible conflicts with earlier explicit and implicit declarations
6495         due to multiple Provide_Shift_Operators pragmas.
6496         (Set_Imported): Remove previous fix that bypassed pragma duplication
6497         error.
6498         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
6499         of Provide_Shift_Operators.
6501 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
6503         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
6504         string pointer directly to set_decl_section_name.
6506 2014-06-11  Robert Dewar  <dewar@adacore.com>
6508         * sem_ch13.adb: Minor reformatting.
6510 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
6512         * sem_prag.adb (Check_Clause_Syntax): Add new
6513         local variable Outputs. Account for the case where multiple
6514         output items appear as an aggregate.
6516 2014-06-11  Robert Dewar  <dewar@adacore.com>
6518         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
6519         with ?j? not ??.
6521 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6523         * einfo.ads: Minor reformatting.
6525 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
6527         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
6528         new variable First_Node. Update the position after all insertions have
6529         taken place to First_Node.
6531 2014-06-11  Robert Dewar  <dewar@adacore.com>
6533         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
6534         * layout.adb (Layout_Type): Remove test of -gnatd.1.
6536 2014-06-11  Robert Dewar  <dewar@adacore.com>
6538         * sem_ch13.adb: Minor reformatting.
6540 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
6542         * sem_prag.adb (Check_Clause_Syntax): Add new
6543         local variable Outputs. Account for the case where multiple
6544         output items appear as an aggregate.
6546 2014-06-11  Robert Dewar  <dewar@adacore.com>
6548         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
6549         with ?j? not ??.
6551 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6553         * einfo.ads: Minor reformatting.
6555 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
6557         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
6558         new variable First_Node. Update the position after all insertions have
6559         taken place to First_Node.
6561 2014-06-11  Robert Dewar  <dewar@adacore.com>
6563         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
6564         * layout.adb (Layout_Type): Remove test of -gnatd.1.
6566 2014-06-11  Thomas Quinot  <quinot@adacore.com>
6568         * freeze.ads: Minor reformatting.
6569         * checks.adb (Determine_Range): Do not attempt to determine
6570         the range of a deferred constant whose full view has not been
6571         seen yet.
6572         * sem_res.adb (Resolve): Remove undesirable guard against
6573         resolving expressions from expression functions.
6575 2014-06-11  Robert Dewar  <dewar@adacore.com>
6577         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
6578         access types.
6579         * layout.adb (Layout_Type): Make anonymous access types for
6580         subprogram formal types and return types always thin. For now
6581         only enabled if -gnatd.1 set.
6583 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6585         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
6586         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
6587         subprogram must be a null procedure.
6589 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
6591         * sem_prag.adb (Analyze_Input_Item): Allow formal
6592         parameters to appear as input_items in an initialization_list
6593         of pragma Initializes. Encapsulation now applies to states and
6594         variables only (as it should). Add RM references to key errors.
6595         * sem_prag.adb (Set_Imported): Suppress errors
6596         about preceding Imports when the pragma does not come from source,
6597         which can happen through use of pragma Provide_Shift_Operators.
6599 2014-06-11  Thomas Quinot  <quinot@adacore.com>
6601         * sem_ch3.adb: Minor reformatting.
6602         * einfo.ads (Full_View): Minor comment update.
6604 2014-06-11  Robert Dewar  <dewar@adacore.com>
6606         * einfo.adb (Is_Independent): New flag.
6607         * einfo.ads (Is_Independent): New flag.
6608         (Has_Independent_Components): Clean up and fix comments.
6609         * sem_prag.adb (Fix_Error): Deal with changing argument
6610         [of] to entity [for].
6611         (Analyze_Pragma, case Independent): Set Is_Independent flag
6612         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
6613         in all components of specified record.
6615 2014-06-11  Thomas Quinot  <quinot@adacore.com>
6617         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
6618         Set proper Etype on bounds of dummy type created for analysis
6619         of the generic.
6621 2014-06-11  Robert Dewar  <dewar@adacore.com>
6623         * debug.adb: Minor comment fix (add missing section of dot
6624         numeric flags).
6626 2014-06-11  Robert Dewar  <dewar@adacore.com>
6628         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
6629         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
6630         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
6631         * errout.adb (Output_Messages): Avoid duplicate output for
6632         library level instance.
6633         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
6634         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
6635         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
6636         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
6637         accomodate largest modulus value.
6638         * gnat_ugn.texi: Minor updates.
6640 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6642         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
6643         load body of generic package or its parent, if body is optional
6644         and the unit does not require a body.
6646 2014-06-11  Robert Dewar  <dewar@adacore.com>
6648         * gnat_rm.texi: Document System.Unsigned_Types.
6649         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
6650         * s-unstyp.ads: Update comments (this is now user available unit).
6652 2014-06-11  Robert Dewar  <dewar@adacore.com>
6654         * make.adb, sem_res.adb: Minor reformatting.
6656 2014-06-11  Thomas Quinot  <quinot@adacore.com>
6658         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
6659         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
6660         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
6661         Preelaborate_05 to just Preelaborate in runtime units, and similarly
6662         change Pure_05 to just Pure.
6664 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6666         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
6667         analysis if error has been posted on subprogram body.
6669 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6671         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
6672         rule given in RM 13.1 (8/1) for operational attributes to stream
6673         attributes: the attribute must apply to a first subtype. Fixes
6674         missing errors in ACATS test bdd2004.
6676 2014-06-11  Robert Dewar  <dewar@adacore.com>
6678         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
6679         record type if restriction No_Implicit_Conditionals is active.
6680         (Expand_N_Object_Declaration): Don't allow default initialization
6681         for variant record type if restriction No_Implicit_Condition is active.
6682         (Build_Variant_Record_Equality): Don't build for variant
6683         record type if restriction No_Implicit_Conditionals is active.
6684         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
6685         No_Implicit_Conditionals.
6686         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
6688 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
6690         * i-cstrin.ads: Update comments.
6692 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6694         * sem_res.adb (Resolve_Selected_Component): Handle properly a
6695         selected component whose prefix is overloaded, when none of the
6696         interpretations matches the expected type.
6698 2014-06-11  Bob Duff  <duff@adacore.com>
6700         * make.adb (Wait_For_Available_Slot): Give a more
6701         informative error message; if the ALI file is not found, print
6702         the full path of what it's looking for.
6704 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
6706         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
6707         option to specify the result file encoding.
6709 2014-06-11  Robert Dewar  <dewar@adacore.com>
6711         * errout.ads, sem_ch12.adb: Minor reformatting.
6712         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
6713         * lib-xref.adb: Minor reformatting.
6714         * restrict.adb: Minor code reorganization (put routines in
6715         alpha order).
6717 2014-06-11  Yannick Moy  <moy@adacore.com>
6719         * einfo.ads: Minor typo in comment
6721 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6723         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
6724         formal private types and private type extensions, to indicate
6725         variable in a generic unit whose uninitialized use suggest that
6726         actual type should be fully initialized.
6727         Needs_Initialized_Actual:  removed, functionaity replaced by
6728         the above.
6729         * lib-xref.adb (Generate_Reference): Generate a reference for
6730         variables of a formal type when the unit is not the main unit,
6731         to enable appropriate warnings in an instance.
6732         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
6733         of variable in a generic unit that suggests that actual type
6734         should be full initialized.
6735         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
6736         and do not emot warning, which now only appears in an instance.
6738 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
6740         * gnat_ugn.texi: Fix minor typo.
6742 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
6744         * sem_ch3.adb Add with and use clause for Sem_Ch10.
6745         (Analyze_Declarations): Code reformatting. Analyze the contract
6746         of a subprogram body stub at the end of the declarative region.
6747         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
6748         now a variable. Do not process the body if its contract is not
6749         available. Account for subprogram body stubs when extracting
6750         the corresponding spec.
6751         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
6752         on usage.
6753         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
6754         New routine.
6755         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
6756         Account for subprogram body stubs when extracting the
6757         corresponding spec.
6758         (Analyze_Global_In_Decl_List):
6759         Account for subprogram body stubs when extracting the
6760         corresponding spec.
6761         (Analyze_Refined_Depends_In_Decl_Part):
6762         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
6763         of the related body. Spec_Is now a variable. Account for
6764         subprogram body stubs when extracting the corresponding spec.
6765         (Analyze_Refined_Global_In_Decl_Part): Use
6766         Find_Related_Subprogram_Or_Body to retrieve the declaration
6767         of the related body. Spec_Is now a variable. Account for
6768         subprogram body stubs when extracting the corresponding spec.
6769         (Collect_Subprogram_Inputs_Output): Account for subprogram body
6770         stubs when extracting the corresponding spec.
6772 2014-06-11  Vincent Celier  <celier@adacore.com>
6774         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
6775         -lgnarl or -lgnat.
6777 2014-06-11  Robert Dewar  <dewar@adacore.com>
6779         * debug.adb: Add debug flag -gnatd.q.
6780         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
6781         -gnatd.q set.
6782         * styleg.adb (Check_Xtra_Parens): Message should be a style
6783         message.
6784         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
6785         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
6786         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
6787         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
6789 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
6791         * gnat_rm.texi: Revised chapter on Implementation Defined
6792         Characteristics.
6794 2014-06-11  Geert Bosch  <bosch@adacore.com>
6796         * s-exctab.adb: avoid race conditions in exception registration.
6798 2014-06-11  Robert Dewar  <dewar@adacore.com>
6800         * errout.adb (Warn_Insertion): New function.
6801         (Error_Msg): Use Warn_Insertion and Prescan_Message.
6802         (Error_Msg_Internal): Set Info field of error object.
6803         (Error_Msg_NEL): Use Prescan_Message.
6804         (Set_Msg_Text): Don't store info: at start of message.
6805         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
6806         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
6807         * errout.ads: Document new ?$? and >$> insertion sequences
6808         Document use of "(style)" and "info: "
6809         * erroutc.adb (dmsg): Print several missing fields
6810         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
6811         Deal with new tagging of info messages
6812         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
6813         Add field Info (Prescan_Message): New procedure, this procedure
6814         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
6815         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
6816         sem_elab.adb: Follow new rules for info message (info belongs
6817         only at the start of a message, and only in the first message,
6818         not in any of the continuations).
6819         * gnat_ugn.texi: Document full set of warning tags.
6821 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
6823         * sem_util.adb: Minor typo fix.
6825 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
6827         * sem_warn.adb (Check_References): Do not emit spurious warnings
6828         on uninitialzed variable of a formal private type if variable
6829         is not read.
6831 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
6833         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
6834         set_decl_section_name accessor.
6836 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
6838         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
6839         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
6840         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
6842 2014-05-21  Robert Dewar  <dewar@adacore.com>
6844         * layout.adb: Minor reformatting.
6845         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
6846         dummy procedure ip.
6848 2014-05-21  Robert Dewar  <dewar@adacore.com>
6850         * restrict.ads (Implementation_Restriction): Add entry for
6851         No_Fixed_IO.
6852         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
6853         Ada.[Wide_[Wide_]Text_IO.
6854         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
6855         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
6856         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
6857         Wide_Wide_Value if restriction No_Fixed_IO is set.
6858         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
6860 2014-05-21  Robert Dewar  <dewar@adacore.com>
6862         * gnatcmd.adb: Minor error msg changes (no upper case letter
6863         at start).
6864         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
6865         reformatting.
6867 2014-05-21  Robert Dewar  <dewar@adacore.com>
6869         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
6870         via generic formals.
6871         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
6872         -gnatd.G is set.
6874 2014-05-21  Thomas Quinot  <quinot@adacore.com>
6876         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
6877         more accurately describe that this subprogram needs to come into
6878         play also in cases where no byte swapping is involved, because
6879         it also takes care of some required shifts (left-justification
6880         of values).
6882 2014-05-21  Thomas Quinot  <quinot@adacore.com>
6884         * freeze.adb (Check_Component_Storage_Order): Indicate whether
6885         a Scalar_Storage_Order attribute definition is present for the
6886         component's type.
6887         (Freeze_Record_Type): Suppress junk warnings
6888         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
6889         definitions.
6891 2014-05-21  Robert Dewar  <dewar@adacore.com>
6893         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
6894         to Kill_Elaboration_Checks.
6896 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
6898         * layout.adb (Assoc_Add): Suppress the optimization of the (E
6899         - C1) + C2 case, when the expression type is unsigned and C1 <
6900         C2, to avoid creating a negative literal when folding.
6902 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
6904         * freeze.adb (Freeze_Record_Type): Update the use of
6905         Is_SPARK_Volatile.
6906         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
6907         Is_SPARK_Volatile.
6908         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
6909         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
6910         of Is_SPARK_Volatile.
6911         (Analyze_Loop_Parameter_Specification):
6912         Update the use of Is_SPARK_Volatile.
6913         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
6914         formal parameter when its type is volatile.
6915         * sem_prag.adb (Analyze_Global_Item): Update the use of
6916         Is_SPARK_Volatile.
6917         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
6918         determines whether an entity is a volatile source SPARK object.
6919         * sem_util.adb (Has_Enabled_Property): Accout for external
6920         properties being set on objects other than abstract states
6921         and variables. An example would be a formal parameter.
6922         (Is_SPARK_Volatile): New routine.
6923         (Is_SPARK_Volatile_Object):
6924         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
6925         when checking entities and/or types.
6926         * sem_util.ads (Is_SPARK_Volatile): New routine.
6928 2014-05-21  Robert Dewar  <dewar@adacore.com>
6930         * sem_warn.adb: Minor fix to warning messages (use ?? instead
6931         of ?).
6933 2014-05-21  Vincent Celier  <celier@adacore.com>
6935         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
6936         switch --version and --help.
6938 2014-05-21  Robert Dewar  <dewar@adacore.com>
6940         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
6942 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
6944         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
6945         iterator variable when the domain of iteration is a formal
6946         container and this is an element iterator.
6948 2014-05-21  Bob Duff  <duff@adacore.com>
6950         * sem_ch12.adb: Minor reformatting.
6952 2014-05-21  Robert Dewar  <dewar@adacore.com>
6954         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
6956 2014-05-21  Robert Dewar  <dewar@adacore.com>
6958         * sem_elab.adb: Minor reformatting.
6959         * s-taprop.ads: Minor comment fix.
6960         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
6961         Kill_Elaboration_Checks.
6962         * errout.adb, erroutc.adb: Minor reformatting.
6964 2014-05-21  Thomas Quinot  <quinot@adacore.com>
6966         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
6967         component. No byte swapping occurs, but this procedure also takes
6968         care of appropriately justifying the argument.
6970 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
6972         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
6973         New routine.
6974         (Analyze_Subprogram_Body_Helper): Move the
6975         analysis of aspect specifications and the processing of the
6976         subprogram body contract after inlining has taken place.
6977         (Diagnose_Misplaced_Aspect_Specifications): Removed.
6979 2014-05-21  Javier Miranda  <miranda@adacore.com>
6981         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
6983 2014-05-21  Robert Dewar  <dewar@adacore.com>
6985         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
6986         continuations any more.
6988 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
6990         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
6991         present in formal_Private_Definitions and on private extension
6992         declarations of a formal derived type. Set when the use of the
6993         formal type in a generic suggests that the actual should be a
6994         fully initialized type.
6995         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
6996         to indicate that an entity of a generic type has default
6997         initialization, and that the corresponing actual type in any
6998         subsequent instantiation should be fully initialized.
6999         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
7000         to emit a warning if the actual for a generic type on which
7001         Needs_Initialized_Actual is set is not a fully initialized type.
7003 2014-05-21  Robert Dewar  <dewar@adacore.com>
7005         * sem_elab.adb, prj-dect.adb: Minor reformatting.
7007 2014-05-21  Robert Dewar  <dewar@adacore.com>
7009         * erroutc.ads: Minor comment addition.
7011 2014-05-21  Robert Dewar  <dewar@adacore.com>
7013         * errout.ads: Add documentation for use of >*> tag.
7014         * restrict.adb: Make sure we use >*> tag for restriction warnings.
7016 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
7018         * debug.adb: Add case of illegal overriding_indicator for a
7019         protected subprogram body to description of -gnatd.E switch.
7020         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
7021         for cases of giving overriding_indicators on protected subprogram
7022         bodies, but change this to a warning if -gnatd.E is enabled. No
7023         longer give a style warning about missing indicators on protected
7024         subprogram bodies.
7026 2014-05-21  Robert Dewar  <dewar@adacore.com>
7028         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
7029         sem_elab.ads: Minor reformatting.
7030         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
7031         parameter optional.
7033 2014-05-21  Pascal Obry  <obry@adacore.com>
7035         * prj-dect.adb: Allow package Install in aggregate project.
7037 2014-05-21  Robert Dewar  <dewar@adacore.com>
7039         * sem_ch13.adb (Analyze_Aspect_Specifications):
7040         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
7041         * sem_prag.adb: Minor comment improvements.
7043 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7045         * sem_ch12.adb (Install_Body): When checking whether freezing of
7046         instantiation must be delayed, verify that the common enclosing
7047         subprogram to generic and instance is in fact an overloadable
7048         entity.
7050 2014-05-21  Vincent Celier  <celier@adacore.com>
7052         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
7053         mains with the same name and fail if there is more than one.
7054         * prj.ads, prj.adb (Find_All_Sources): New function
7056 2014-05-21  Robert Dewar  <dewar@adacore.com>
7058         * sem_ch13.adb: Minor reformatting.
7059         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
7060         * sem_prag.adb: Minor error message improvement.
7062 2014-05-21  Yannick Moy  <moy@adacore.com>
7064         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
7065         (Enclosing_Subprogram_Or_Package): Only return a library-level
7066         package.
7068 2014-05-21  Javier Miranda  <miranda@adacore.com>
7070         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
7071         to the full view of the parent type when processing a derived type
7072         which is the full view of a private type not defined in a generic
7073         unit which is derived from a private type with discriminants
7074         whose full view is a non-tagged record type.
7076 2014-05-21  Javier Miranda  <miranda@adacore.com>
7078         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
7079         Complete previous patch.
7081 2014-05-21  Thomas Quinot  <quinot@adacore.com>
7083         PR ada/9535
7084         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
7085         Provide a behaviour more consistent with underlying datagram
7086         socket: do not attempt to loop over Send_Socket/Receive_Socket
7087         iterating along the buffer.
7089 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
7091         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
7092         or a tagged type is not labelled as volatile. Ensure that a
7093         non-volatile type has no volatile components.
7094         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
7095         Obj_Typ. Code reformatting.  Ensure that a discriminated or
7096         tagged object is not labelled as volatile.
7097         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
7098         pragma Volatile applies to a full type declaration or an object
7099         declaration when SPARK mode is on.
7101 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
7103         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
7104         providing options needed for compiling the argument source for
7105         the situation when a project file can be used as a tool parameter.
7107 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
7109         * gnat_rm.texi: Minor typo fix.
7111 2014-05-21  Robert Dewar  <dewar@adacore.com>
7113         * stand.adb (Tree_Read): Read missing entities.
7114         (Tree_Write): Write missing entities.
7116 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
7118         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
7119         section in gnatmetric chapter.
7121 2014-05-21  Robert Dewar  <dewar@adacore.com>
7123         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
7124         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
7125         post-call copy write back (see detailed comment in code).
7126         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
7127         Exp_Ch6.
7128         * tbuild.ads: Minor reformatting.
7130 2014-05-21  Robert Dewar  <dewar@adacore.com>
7132         * stand.ads: Add warning about adding new entities and
7133         Tree_Read/Tree_Write.
7135 2014-05-21  Robert Dewar  <dewar@adacore.com>
7137         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
7138         references to restricted entities within the units in which they
7139         are declared.
7141 2014-05-21  Robert Dewar  <dewar@adacore.com>
7143         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
7144         simplify the needed test, and also deal with failure to catch
7145         situations with non-standard names.
7146         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
7147         (Source_File_Is_Subunit): Removed, no longer used.
7149 2014-05-21  Javier Miranda  <miranda@adacore.com>
7151         * exp_ch4.adb
7152         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
7153         renaming of an access to interface object there is no need to
7154         generate extra code to reference the tag.
7156 2014-05-21  Robert Dewar  <dewar@adacore.com>
7158         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
7159         Warnings (Off, string).
7161 2014-05-21  Robert Dewar  <dewar@adacore.com>
7163         * osint.adb: Fix three error messages to say invalid instead
7164         of erroneous.
7165         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
7166         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
7167         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
7169 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7171         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
7172         sem_ch9.ads: Move discriminant manipulation routines for analysis of
7173         aspect specifications from sem_ch9 to sem_ch13, where they belong.
7175 2014-05-21  Robert Dewar  <dewar@adacore.com>
7177         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
7178         Clearly document -gnatyg (GNAT style switches).
7179         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
7180         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
7181         available for VMS after all.
7182         * warnsw.adb: Reorganize to eliminate duplicated code
7183         (Restore_Warnings): Add a couple of missing entries
7184         (Save_Warnings): Add a couple of missing entries.
7185         * warnsw.ads: Add missing entries to Warning_Record (not clear
7186         what the impact is).
7188 2014-05-21  Robert Dewar  <dewar@adacore.com>
7190         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
7191         warning) case.
7192         * errout.ads: Document ?*? (restriction warning) insertion.
7193         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
7194         warning) case.
7195         * erroutc.ads: Document use of * for restriction warning tag.
7196         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
7198 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7200         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
7201         make discriminants immediately visible when analyzing an aspect
7202         of a subtype declaration.
7203         (Uninstall_Discriminants): Do not apply to the entity in a
7204         subtype declaration.
7206 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7208         * sem_util.adb: Code clean up.
7210 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7212         * gnat_ugn.texi: Document -Werror.
7214 2014-05-21  Bob Duff  <duff@adacore.com>
7216         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
7217         This was returning False if the Object is a constant view. Fix
7218         it to return True in that case, because it might be a view of
7219         a variable.
7220         (Has_Discriminant_Dependent_Constraint): Fix latent
7221         bug; this function was crashing when passed a discriminant.
7223 2014-05-21  Robert Dewar  <dewar@adacore.com>
7225         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
7226         * s-arit64.adb: Minor code reorganization.
7227         * sem_prag.adb: Minor comment fix (remove erroneous use of the
7228         term erroneous).
7230 2014-05-21  Robert Dewar  <dewar@adacore.com>
7232         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
7233         computing new table size.
7235 2014-05-21  Robert Dewar  <dewar@adacore.com>
7237         * einfo.ads: Minor reformatting.
7238         * ceinfo.adb: Deal with slight format change of einfo.ads.
7240 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7242         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
7243         implementation of the SPARK 2014 rule concerning private child
7244         units (LRM 7.2.6).
7246 2014-05-21  Vincent Celier  <celier@adacore.com>
7248         * makeusg.adb: Add switch -d to usage.
7250 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7252         * sem_util.adb (Find_Actual): If an actual that is the prefix
7253         of an enclosing prefixed call has been rewritten, use Nkind
7254         and Sloc to identify the corresponding formal, when handling
7255         deferred references.
7257 2014-05-21  Robert Dewar  <dewar@adacore.com>
7259         * debug.adb: Document -gnatd.z switch.
7260         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
7262 2014-05-21  Robert Dewar  <dewar@adacore.com>
7264         * einfo.ads (Can_Never_Be_Null): Minor comment update.
7265         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
7266         error message change.
7267         * s-arit64.adb ("abs"): New function. Use expression functions
7268         for the simple conversions and arithmetic.
7270 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7272         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
7273         set function_start_locus.
7275 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7277         * utils.c (gnat_write_global_declarations): Adjust the flags put on
7278         dummy_global.
7280 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7282         * gcc-interface/decl.c (change_qualified_type): New static function.
7283         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
7284         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
7285         <E_Array_Subtype>: Likewise.
7286         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
7287         (gnat_to_gnu_component_type): Likewise.
7288         (gnat_to_gnu_param): Likewise.
7290 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7292         * fe.h (Set_Present_Expr): Move around.
7293         (End_Location): New macro.
7294         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
7296 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7298         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
7299         lieu of more verbose construct.
7300         * gcc-interface/trans.c (Call_to_gnu): Likewise.
7301         (gnat_to_gnu): Likewise.  Remove obsolete code.
7303 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7305         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
7306         consider that regular packed arrays can never be superflat.
7308 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
7310         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
7311         annotation.
7312         * gcc-interface/decl.c (annotate_value): Adjust.
7313         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7314         (push_range_check_info): Likewise.
7315         (Loop_Statement_to_gnu): Likewise.
7316         (Subprogram_Body_to_gnu): Likewise.
7317         (Compilation_Unit_to_gnu): Likewise.
7318         (start_stmt_group): Likewise.
7319         * gcc-interface/utils.c (init_gnat_utils): Likewise.
7320         (gnat_pushlevel): Likewise.
7321         (maybe_pad_type): Likewise.
7323 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
7325         * seh_init.c: Fix copyright year.
7327 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7329         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
7330         are defined.  Move include windows.h before system.h.
7331         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
7332         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
7334 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
7336         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
7337         to the appropriate type.
7338         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
7339         (pos_to_constructor): Likewise.
7341 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7343         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
7345 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
7346             Mike Stump  <mikestump@comcast.net>
7347             Richard Sandiford  <rdsandiford@googlemail.com>
7349         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
7350         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
7351         (annotate_value): Use wide-int interfaces.
7352         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
7354 2014-04-28  Richard Henderson  <rth@redhat.com>
7356         * gcc-interface/Makefile.in: Support aarch64-linux.
7358 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
7360         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
7361         add 'Suffix' parameter and adjust comment.
7362         (Get_External_Name_With_Suffix): Delete.
7363         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
7364         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
7365         'Suffix' parameter.
7366         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
7367         Call Get_External_Name instead of Get_External_Name_With_Suffix.
7368         (Get_Secondary_DT_External_Name): Likewise.
7369         * exp_cg.adb (Write_Call_Info): Likewise.
7370         * exp_disp.adb (Export_DT): Likewise.
7371         (Import_DT): Likewise.
7372         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
7373         parameter with False default.
7374         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
7375         * types.h (Fat_Pointer): Rename into...
7376         (String_Pointer): ...this.  Add comment on interfacing rules.
7377         * fe.h (Compiler_Abort): Adjust for above renaming.
7378         (Error_Msg_N): Likewise.
7379         (Error_Msg_NE): Likewise.
7380         (Get_External_Name): Likewise.  Add third parameter.
7381         (Get_External_Name_With_Suffix): Delete.
7382         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
7383         (create_concat_name): Adjust call to Get_External_Name, remove call to
7384         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
7385         * gcc-interface/trans.c (post_error): Likewise.
7386         (post_error_ne): Likewise.
7387         * gcc-interface/misc.c (internal_error_function): Likewise.
7389 2014-04-28  Richard Biener  <rguenther@suse.de>
7391         PR middle-end/60092
7392         * gcc-interface/utils.c: Define flag_isoc11.
7394 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
7396         * gnatvsn.ads (Library_Version): Bump to 4.10.
7398 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
7400         Revert
7401         2014-04-22  Richard Henderson  <rth@redhat.com>
7403         * gcc-interface/Makefile.in: Support aarch64-linux.
7405         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
7407         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
7408         (Error_Msg_N): Likewise.
7409         (Error_Msg_NE): Likewise.
7410         (Get_External_Name_With_Suffix): Likewise.
7411         * types.h (Fat_Pointer): Delete.
7412         (String_Pointer): New type.
7413         (DECLARE_STRING_POINTER): New macro.
7414         * gcc-interface/decl.c (create_concat_name): Adjust.
7415         * gcc-interface/trans.c (post_error): Likewise.
7416         (post_error_ne): Likewise.
7417         * gcc-interface/misc.c (internal_error_function): Likewise.
7419 2014-04-22  Richard Henderson  <rth@redhat.com>
7421         * gcc-interface/Makefile.in: Support aarch64-linux.
7423         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
7424         (__gnat_alternate_stack): Enable for all linux except ia64.
7426 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
7428         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
7429         (Error_Msg_N): Likewise.
7430         (Error_Msg_NE): Likewise.
7431         (Get_External_Name_With_Suffix): Likewise.
7432         * types.h (Fat_Pointer): Delete.
7433         (String_Pointer): New type.
7434         (DECLARE_STRING_POINTER): New macro.
7435         * gcc-interface/decl.c (create_concat_name): Adjust.
7436         * gcc-interface/trans.c (post_error): Likewise.
7437         (post_error_ne): Likewise.
7438         * gcc-interface/misc.c (internal_error_function): Likewise.
7440 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7441             Pierre-Marie de Rodat  <derodat@adacore.com>
7443         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
7444         scalar constant instead of a reference for renaming of scalar literal.
7445         Do not create a new object for constant renaming except for a function
7446         call.  Make sure a VAR_DECL is created for the renaming pointer.
7447         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
7448         (fold_constant_decl_in_expr): New function.
7449         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
7450         For a constant renaming, try to fold a constant DECL in the result.
7451         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
7452         (Identifier_to_gnu): Reference the renamed object of constant renaming
7453         pointers directly.
7454         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
7455         invalidate constant renaming pointers.
7457 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7459         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
7460         (build_vector_type_for_size): New function.
7461         (build_vector_type_for_array): Likewise.
7462         (unchecked_convert): Build an intermediate vector type to convert
7463         from a generic array type to a vector type.
7464         (handle_vector_size_attribute): Reimplement.
7465         (handle_vector_type_attribute): Likewise.
7467 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7469         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
7470         Is_OK_Static_Expression in lieu of Is_Static_Expression to
7471         detect valid arguments.
7473 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7475         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
7477 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
7479         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
7480         (components_to_record): Likewise.
7481         * gcc-interface/utils.c (make_aligning_type): Likewise.
7482         (maybe_pad_type): Likewise.
7483         (finish_record_type): Likewise.
7484         (rest_of_record_type_compilation): Likewise.
7486 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7488         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
7489         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
7490         for Ivdep hint.
7491         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
7492         hint for Loop_Optimize.
7493         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
7494         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
7495         with new Ivdep hint.
7496         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
7497         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
7498         with new Ivdep hint.
7499         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
7501 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7502             Robert Dewar  <dewar@adacore.com>
7504         * opt.ads (Suppress_Back_Annotation): Remove as unused.
7505         * fe.h (Back_Annotate_Rep_Info): Likewise.
7506         (Global_Discard_Names): Likewise.
7507         (List_Representation_Info): Declare.
7508         * types.h (Uint_Minus_1): Likewise.
7509         * repinfo.ads: Document back-annotation change.
7510         * gcc-interface/gigi.h (init_gnat_decl): Declare.
7511         (destroy_gnat_decl): Likewise.
7512         * gcc-interface/decl.c (annotate_value): Do not create the cache of
7513         annotated values here but...
7514         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
7515         in ASIS mode.
7516         (init_gnat_decl): ...here instead.  New function.
7517         (destroy_gnat_decl): Likewise.
7518         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
7519         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
7521 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
7523         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
7524         offset for the field, if any.
7526 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
7527             Svante Signell  <svante.signell@gmail.com>
7529         PR ada/54040
7530         PR ada/59346
7531         * s-osinte-x32.adb: New file.
7532         * s-linux.ads (Time): New section.
7533         * s-linux-alpha.ads (Time): Likewise.
7534         * s-linux-android.ads (Time: Likewise.
7535         * s-linux-hppa.ads (Time): Likewise.
7536         * s-linux-mipsel.ads (Time): Likewise.
7537         * s-linux-sparc.ads (Time): Likewise.
7538         * s-linux-x32.ads (Time): Likewise.
7539         * s-osprim-x32.ads (timespec): Adjust.
7540         (Clock): Likewise.
7541         (To_Timespec): Likewise.
7542         * s-osinte-linux.ads (Time): Define local subtypes for those defined
7543         in System.Linux.
7544         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
7545         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
7546         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
7547         * s-osinte-solaris-posix.ads (timespec): Likewise.
7548         * s-osinte-posix.adb (To_Timespec): Likewise.
7549         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
7551 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7553         PR ada/60411
7554         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
7555         * s-linux-android.ads: New file.
7556         * s-intman-android.adb: Likewise.
7557         * s-osinte-android.ads: Adjust.
7558         * sigtramp-armdroid.c: Likewise.
7559         * sigtramp.h: Add Android support.
7561 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7563         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
7565 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7567         PR ada/60703
7568         * system-linux-alpha.ads: Adjust for Ada 2005.
7569         * system-linux-mips.ads: Likewise.
7570         * system-linux-mips64el.ads: Likewise.
7571         * system-linux-mipsel.ads: Likewise.
7572         * system-linux-s390.ads: Likewise.
7573         * system-linux-s390x.ads: Likewise.
7574         * system-linux-sparc.ads: Likewise.
7575         * system-linux-sparcv9.ads: Likewise.
7576         * system-rtems.ads: Likewise.
7577         * system-vxworks-arm.ads: Likewise.
7579 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
7581         PR ada/39172
7582         * gcc-interface/Makefile.in (target_cpu_default): Revert
7583         2013-10-11 change.
7585 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
7587         PR ada/51483
7588         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
7589         it to set the RM size.  Use directly 'size' for the Esize.
7590         (Create_Back_End_Float_Types): Adjust call to above.
7591         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
7592         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
7593         (Write_Target_Dependent_Values): Adjust comment.
7594         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
7595         deal with it.
7596         (Write_Target_Dependent_Values): Write the precision in lieu of size.
7597         (Initialization): Read the precision in lieu of size and compute the
7598         size from the precision and the alignment.
7599         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
7600         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
7601         types for vector modes, pass the size in addition to the precision.
7603 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
7605         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
7607 2014-03-07  Doug Rupp  <rupp@adacore.com>
7609         PR ada/60411
7610         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
7611         (Support_64_Bit_Divides): Removed, no longer used.
7612         (ZCX_By_Default): Enabled.
7614 2014-02-25  Doug Rupp  <rupp@adacore.com>
7616         * gcc-interface/Makefile.in (arm-linux):
7617         (EH_MECHANISM): Use ARM unwinder (-arm)
7618         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
7619         s-excmac-arm.ads.
7620         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
7621         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
7622         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
7623         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
7624         Add dependencies for sigtramp-armvxw.o.
7626 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7628         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
7630 2014-02-25  Robert Dewar  <dewar@adacore.com>
7632         * rtsfind.adb (Is_RTE): Protect against entity with no scope
7633         field (previously this call blew up on the Standard entity).
7634         * sem_attr.adb (Analyze_Attribute, case Access): Remove
7635         test for No_Abort_Statements, this is now handled in
7636         Set_Entity_With_Checks.
7637         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
7638         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
7639         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
7640         Set_Entity_With_Checks.
7641         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
7642         Add checks for No_Abort_Statements.
7644 2014-02-25  Robert Dewar  <dewar@adacore.com>
7646         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
7647         Check_Restriction is OK.
7649 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
7651         * sem_ch3.adb (Process_Full_View): Better error message when
7652         the full view of  a private type without discriminants is an
7653         unconstrained type.
7654         * sem_ch7.adb (Uninstall_Declarations): Ditto.
7656 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7658         * sigtramp-armvxw.c: Also restore r0.
7660 2014-02-25  Robert Dewar  <dewar@adacore.com>
7662         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
7663         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
7664         set unconditionally.
7665         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
7666         any more (Output_Msg_Text): Rewritten with new convention on
7667         output of warnings that are treated as errors.
7668         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
7669         if Warn is False.
7670         * gnat_rm.texi: Updates to documentation on pragma
7671         Warning_As_Error.
7672         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
7673         set Warning_Doc_Switch.
7674         * lib-writ.ads: Add documentation note on ALI file generation
7675         for C.
7676         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
7677         (belongs in Sem).
7678         * sem_attr.adb (Resolve_Attribute, case Access):
7679         Abort_Task'Access violates the No_Abort_Statements restriction.
7680         * sem_res.adb (Resolve_Call): Check restriction
7681         No_Abort_Statements for call to Abort_Task or a renaming of it.
7683 2014-02-25  Robert Dewar  <dewar@adacore.com>
7685         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
7686         type name as index.
7687         * lib.ads: Minor reformatting.
7688         * einfo.ads: Minor reformatting.
7690 2014-02-25  Doug Rupp  <rupp@adacore.com>
7692         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
7693         use Short_Descriptor(S) as the argument passing mechanism.
7695 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7697         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
7699 2014-02-25  Robert Dewar  <dewar@adacore.com>
7701         * atree.ads (Warnings_Treated_As_Errors): New variable.
7702         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
7703         error object (Initialize): Initialize Warnings_As_Errors_Count
7704         (Write_Error_Summary): Include count of warnings treated as errors.
7705         * erroutc.adb (Warning_Treated_As_Error): New function.
7706         (Matches): Function moved to outer level of package.
7707         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
7708         (Warning_Treated_As_Error): New function.
7709         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
7710         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
7711         * opt.ads (Config_Switches_Type): Add entry for
7712         Warnings_As_Errors_Count.
7713         (Warnings_As_Errors_Count): New variable.
7714         (Warnings_As_Errors): New array.
7715         * par-prag.adb: Add dummy entry for Warning_As_Error.
7716         * sem_prag.adb (Analyze_Pragma): Implement new pragma
7717         Warning_As_Error.
7718         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
7720 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7722         * sigtramp.h: Fix minor inaccuracy.
7724 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
7726         * gnat_ugn.texi: Added description of kill command.
7728 2014-02-25  Robert Dewar  <dewar@adacore.com>
7730         * gnat_rm.texi (Address_Clauses): Add a section discussing the
7731         problem of address clauses causing unexpected initialization,
7732         including the effect of Initialize_Scalars.
7734 2014-02-25  Robert Dewar  <dewar@adacore.com>
7736         * errout.adb: Various changes for better msgs for anonmous access
7737         subprogram types.
7738         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
7739         argument.
7740         (Buffer_Remove): Version with character argument.
7741         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
7742         of mismatching conventions for access-to-subprogram case.
7743         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
7744         access types in record.
7745         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
7746         types, including in records.
7748 2014-02-25  Doug Rupp  <rupp@adacore.com>
7750         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
7751         enhancements and corrections.
7753 2014-02-25  Robert Dewar  <dewar@adacore.com>
7755         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
7757 2014-02-25  Robert Dewar  <dewar@adacore.com>
7759         * gnat_rm.texi: First set of documentation additions for
7760         predefined RM units.
7761         * checks.adb: Minor reformatting.
7762         * sem_elab.adb (Check_Task_Activation): Minor fix to error
7763         message.
7764         * sem_util.adb: Minor reformatting.
7766 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
7768         * usage.adb (Usage): Add help on -gnateC.
7769         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
7770         * opt.ads (Generate_CodePeer_Messages): New flag.
7771         * gnat_ugn.texi: Document new switch -gnateC.
7773 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
7775         * gnat_rm.texi: Corrected minor typos in Implementation Defined
7776         Aspects.
7777         * opt.ads: Minor reformatting.
7779 2014-02-25  Robert Dewar  <dewar@adacore.com>
7781         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
7782         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
7783         of -gnatel/-gnateL.
7784         * opt.ads (Warn_Info_Messages): New flag.
7785         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
7786         messages.
7787         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
7788         messages.
7789         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
7790         * usage.adb: Add documentation of -gnatel/-gnateL Update
7791         documentation of -gnatwl/-gnatwL.
7792         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
7793         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
7795 2014-02-25  Robert Dewar  <dewar@adacore.com>
7797         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
7798         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
7799         * interfac.ads: Minor code reorganization (add pragma
7800         Compiler_Unit_Warning).
7801         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
7802         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
7803         Has_Shift_Operator flag.
7804         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
7805         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
7806         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
7807         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
7808         Add entry for Name_Amount.
7809         * checks.adb (Selected_Range_Checks): When checking for a null
7810         range, make sure we use the base type, and not the subtype for
7811         deciding a range is null.
7812         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
7813         for suspicious loop bound which is outside the range of the
7814         loop subtype.
7815         * gnat_ugn.texi: Add documentation section "Determining the
7816         Chosen Elaboration Order"
7817         * sem_ch13.adb (UC_Entry): Add field Act_Unit
7818         (Validate_Unchecked_Conversion): Store Act_Unit
7819         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
7820         * treepr.adb: Minor reformatting.
7822 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
7824         * usage.adb: Minor: fix typo.
7826 2014-02-25  Robert Dewar  <dewar@adacore.com>
7828         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
7829         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
7830         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
7831         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
7832         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
7833         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
7834         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
7835         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
7836         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
7837         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
7838         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
7839         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
7840         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
7841         Compiler_Unit_Warning, change Compiler_Unit everywhere to
7842         Compiler_Unit_Warning.
7844 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
7846         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
7847         in ASIS mode aggregates that are used as aspect definitions.
7849 2014-02-25  Robert Dewar  <dewar@adacore.com>
7851         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
7852         reformatting.
7854 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
7856         * freeze.adb (Freeze_Entity): If the return type of a function
7857         is a limited view, and the non-limited view has not been seen yet,
7858         defer freezing to some later point.
7860 2014-02-25  Robert Dewar  <dewar@adacore.com>
7862         * sem_ch3.adb: Minor reformatting.
7864 2014-02-25  Robert Dewar  <dewar@adacore.com>
7866         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
7867         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
7868         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
7869         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
7870         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
7871         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
7872         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
7873         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
7874         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
7875         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
7876         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
7877         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
7878         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
7879         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
7880         snames.ads-tmpl: Change Compiler_Unit everywhere to
7881         Compiler_Unit_Warning.
7883 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
7885         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
7886         (Collect_Body_Postconditions_In_Decls): New routine.
7887         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
7888         postcondition aspects or pragmas that appear on a subprogram
7889         body stub.
7890         (Collect_Spec_Preconditions): Factor out code. Handle
7891         precondition aspects or pragmas that appear on a subprogram
7892         body stub.
7893         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
7894         aspects that apply to a subprogram body stub is no longer delayed,
7895         the aspects are analyzed on the spot.
7896         (SPARK_Aspect_Error):
7897         Aspects that apply to a subprogram declaration cannot appear in
7898         a subunit.
7899         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
7900         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
7901         is now a local variable. Code cleanup. Analysis related to
7902         the aspects of a subprogram body stub is now carried out by
7903         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
7904         and/or pragmas of a subprogram body stub to the proper body
7905         as this is no longer needed. Do not analyze the aspects of a
7906         subprogram stub when the corresponding source unit is missing.
7907         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
7908         on a stub.
7909         (Analyze_Task_Body_Stub): Flag the illegal use of
7910         aspects on a stub.
7911         (Optional_Subunit): Add local variable Unum.
7912         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
7913         pragma when it applies to a subprogram body stub.
7914         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
7915         Depends and Global can now apply to a subprogram body stub as
7916         long as it acts as its own spec.
7917         (Analyze_Refined_Pragma):
7918         Code reformatting. Refinement pragmas cannot apply to a subunit.
7920 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
7922         * einfo.ads Update the usage of flag
7923         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
7924         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
7925         now starts with the letter 'C'. This makes reading expanded
7926         code easier.
7927         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
7928         Iter_Loop. Signal that an Ada 2012 iterator loop requires
7929         secondary stack management when creating a transient scope for
7930         an element reference.
7931         * exp_util.adb (Process_Statements_For_Controlled_Objects):
7932         When wrapping the statements of a loop, pass the E_Loop entity
7933         to the wrapping machinery.
7934         (Wrap_Statements_In_Block): Add
7935         formal parameter Scop along with comment on usage. Add local
7936         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
7937         block as requiring secondary stack management when the block is
7938         created inside an Ada 2012 iterator loop. This ensures that any
7939         reference objects are reclaimed on each iteration of the loop.
7940         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
7941         tasked with the handling of container iterators as requiring
7942         secondary stack management. This ensures that iterators are
7943         reclaimed when the loop terminates or is exited in any fashion.
7944         * sem_util.adb (Add_Block_Identifier): New routine.
7945         (Find_Enclosing_Iterator_Loop): New routine.
7946         * sem_util.ads (Add_Block_Identifier): New routine.
7947         (Find_Enclosing_Iterator_Loop): New routine.
7949 2014-02-25  Robert Dewar  <dewar@adacore.com>
7951         * sinfo.ads: Minor reformatting.
7953 2014-02-25  Tristan Gingold  <gingold@adacore.com>
7955         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
7957 2014-02-25  Pascal Obry  <obry@adacore.com>
7959         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
7961 2014-02-25  Tristan Gingold  <gingold@adacore.com>
7963         * sem_ch10.adb: Minor comment fix.
7965 2014-02-25  Bob Duff  <duff@adacore.com>
7967         * s-tasdeb.adb: Misc cleanup of this package,
7968         including printing addresses in hexadecimal.
7969         (Write): Fix minor bug when taking 'Address of an empty string.
7971 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
7973         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
7974         public child unit when it does not refer to the abstract state
7975         of a public ancestor.
7977 2014-02-25  Yannick Moy  <moy@adacore.com>
7979         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
7980         Validity_Checks in GNATprove and CodePeer modes.
7982 2014-02-25  Pascal Obry  <obry@adacore.com>
7984         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
7985         Artifacts attribute.
7987 2014-02-25  Yannick Moy  <moy@adacore.com>
7989         * sem_prag.adb: Minor reformatting to get consistent messages.
7991 2014-02-25  Robert Dewar  <dewar@adacore.com>
7993         * checks.adb: Minor reformatting.
7994         * sinfo.ads (Do_Range_Check): Document that this flag is never
7995         passed to the back end.
7997 2014-02-25  Yannick Moy  <moy@adacore.com>
7999         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
8000         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
8002 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
8004         * sem_res.adb (Appears_In_Check): New routine.
8005         (Resolve_Entity_Name): Remove local variables Prev and
8006         Usage_OK. Par is now a constant. Remove the parent chain traversal
8007         as the placement of a volatile object with enabled property
8008         Async_Writers and/or Effective_Reads must appear immediately
8009         within a legal construct.
8011 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
8013         * checks.adb (Apply_Selected_Range_Checks):
8014         Alphabetize local constants and variables. Add comments.
8015         Always insert a range check that requires runtime evaluation into
8016         the tree.
8018 2014-02-25  Robert Dewar  <dewar@adacore.com>
8020         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
8022 2014-02-25  Bob Duff  <duff@adacore.com>
8024         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
8025         iterations while waiting for independent tasks to terminate;
8026         if an independent task does not terminate, we do not want to
8027         hang here. In that case, the thread will be terminated when the
8028         process exits.
8029         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
8031 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8033         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
8034         used to perform pre-analysis of the expression for SPARK
8035         aspects that have a non-standard syntax, such as GLobal and
8036         Initializes. The procedure applies to the original expression
8037         in an aspect specification, prior to the analysis of the
8038         corresponding pragma, in order to provide semantic information
8039         for ASIS navigation purposes.
8040         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
8041         Call new subprogram.
8043 2014-02-25  Yannick Moy  <moy@adacore.com>
8045         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
8047 2014-02-25  Doug Rupp  <rupp@adacore.com>
8049         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
8050         (__gnat_adjust_context_for_raise): Bump the PC by 2.
8052 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8054         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
8055         misplaced IS, add a statement sequence to improper body only if
8056         one has not been parsed already.
8058 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8060         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
8061         mismatch when multidimensional array is updated with a single
8062         index.
8064 2014-02-25  Yannick Moy  <moy@adacore.com>
8066         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
8067         sem_ch6.adb: Mark most references to SPARK RM in error messages
8068         for removal.
8070 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8072         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
8073         appears in a list of basic declarations, complete the tree with
8074         an empty statement list, to prevent cascaded errors and crashes
8075         if semantic analysis is attempted.
8077 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8079         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
8080         value.
8081         * erroutc.adb: Minor reformatting.
8083 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8085         * sem_prag.adb (Check_Clause_Syntax): Account
8086         for a solitary input item in a dependency list.
8088 2014-02-24  Yannick Moy  <moy@adacore.com>
8090         * gnat1drv.adb (Adjust_Global_Switches): Do not
8091         use validity checks at all in GNATprove_Mode.
8093 2014-02-24  Robert Dewar  <dewar@adacore.com>
8095         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
8096         atree.adb, atree.ads: Minor reformatting.
8098 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8100         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
8101         global and dependence refinement when SPARK_Mode is off.
8102         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
8103         state refinement when SPARK_Mode is off.
8104         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
8105         variable Decl. Insert the generated pragma for Refined_State
8106         after a potential pragma SPARK_Mode.
8107         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
8108         constant Deps. Remove local variable Expr. Check the syntax
8109         of pragma Depends when SPARK_Mode is off. Factor out the
8110         processing for extra parenthesis around individual clauses.
8111         (Analyze_Global_In_Decl_List): Items is now a constant. Check
8112         the syntax of pragma Global when SPARK_Mode is off.
8113         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
8114         Initializes when SPARK_Mode is off.
8115         (Analyze_Part_Of): Check
8116         the syntax of the encapsulating state when SPARK_Mode is off.
8117         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
8118         SPARK_Mode is off. Move the declaration order check with respect
8119         to pragma Initializes to the end of the processing. Do not verify
8120         the declaration order for pragma Initial_Condition when SPARK_Mode
8121         is off. Do not complain about a useless package refinement when
8122         SPARK_Mode is off.
8123         (Analyze_Refined_Depends_In_Decl_Part): Refs
8124         is now a constant. Check the syntax of pragma Refined_Depends
8125         when SPARK_Mode is off.
8126         (Analyze_Refined_Global_In_Decl_Part):
8127         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
8128         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
8129         Refined_State when SPARK_Mode is off.
8130         (Check_Dependence_List_Syntax): New routine.
8131         (Check_Global_List_Syntax): New routine.
8132         (Check_Initialization_List_Syntax): New routine.
8133         (Check_Item_Syntax): New routine.
8134         (Check_State_Declaration_Syntax): New routine.
8135         (Check_Refinement_List_Syntax): New routine.
8136         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
8138 2014-02-24  Robert Dewar  <dewar@adacore.com>
8140         * a-tags.adb, s-os_lib.adb: Minor reformatting.
8142 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8144         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
8145         strerror message, not just numeric errno value.
8147 2014-02-24  Doug Rupp  <rupp@adacore.com>
8149         * raise-gcc.c (exception_class_eq): Make endian neutral.
8151 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8153         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
8154         flag, and reset Etype and Analyzed attributes unconditionally
8155         when copying a tree that may be partly analyzed.
8156         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
8157         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
8158         within a subprogram body and applies to it, remove it from the
8159         body before making a copy of it, to prevent spurious errors when
8160         analyzing the copied body.
8162 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8164         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
8165         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
8166         vxWorks.h has been included.  Also ensure that file attributes
8167         related definitions are output even in cases where socket support
8168         is not enabled.
8169         * a-tags.adb: Code clean up.
8170         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
8171         instead of -I to add the main ada source directory to the header
8172         search path, in order to avoid conflict between our own "types.h"
8173         and VxWork's <types.h>.
8175 2014-02-24  Robert Dewar  <dewar@adacore.com>
8177         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
8178         * debug.adb: Remove documentation of -gnatd.X, no longer used.
8179         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
8181 2014-02-24  Bob Duff  <duff@adacore.com>
8183         * gnat_ugn.texi: Improve documentation of gnatpp.
8185 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8187         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
8188         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
8189         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
8190         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
8191         a chars_ptr, because on Windows this is a renaming of
8192         Socket_Error_Message.
8194 2014-02-24  Robert Dewar  <dewar@adacore.com>
8196         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
8197         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
8198         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
8199         reorganization.
8201 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8203         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
8204         that the source directory containing s-oscons-tmplt.c is on the
8205         include path, so that all internal header files are available.
8207 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8209         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
8210         domain of iteration is an attribute reference 'Old, this is an
8211         Ada 2012 iterator and the loop must be rewritten as such.
8213 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8215         * s-fileio.adb (Errno_Message): Remove, use shared version from
8216         s-os_lib instead.
8217         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
8218         * g-stseme (Socket_Error_Message): Reimplement in terms of new
8219         s-os_lib function.
8220         * g-socthi.ads, g-socthi.adb: Change profile of
8221         Socket_Error_Message to return String to allow the above.
8222         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
8223         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
8224         * g-socthi-vxworks.ads: Update to account for the above profile
8225         change.
8226         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
8227         * s-crtl.ads (strncpy): New procedure.
8228         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
8229         Use import from s-crtl.
8230         * a-envvar.adb, osint.adb: Use imports of C runtime functions
8231         from s-crtl instead of re-importing locally.
8233 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8235         * sem_prag.adb (Analyze_Global_Item): Emit the
8236         variable related checks concerning volatile objects only when
8237         SPARK_Mode is on.
8239 2014-02-24  Robert Dewar  <dewar@adacore.com>
8241         * sem_ch5.adb (Analyze_Iterator_Specification): use
8242         Error_Msg_Ada_2012_Feature.
8244 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
8246         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
8247         No_Local_Timing_Events and No_Specific_Termination_Handlers
8248         must be set, according to the Ravenscar profile definition
8249         in D.13(6/3).
8251 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8253         * sem_ch6.adb (Analyze_Expression_Function): If this is a
8254         completion, freeze return type and its designated type if needed.
8256 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8258         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
8259         'Address): When moving initialization statements to a freeze
8260         entity, keep them under a single node (i.e. do not unwrap
8261         expressions with actions), and set the Initialization_Statements
8262         attribute again so that processing of a later pragma Import can
8263         still remove them.
8265 2014-02-24  Claire Dross  <dross@adacore.com>
8267         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
8268         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
8269         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
8270         Left/Right to First_To_Previous/Current_To_Last.
8272 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8274         * adaint.h (struct file_attributes): New component "error"
8275         (__gnat_error_attributes): Accessor for the above.
8276         * adaint.c (__gnat_error_attributes): New subprogram
8277         (__gnat_stat): Fix returned value (expect errno value)
8278         (__gnat_stat_to_attr): Add management of error component (set to
8279         stat errno value, except for missing files where it is set to 0,
8280         and exists is set to 0).
8281         * osint.ads (File_Attributes_Size): Update per change above,
8282         also clarify documentation.
8283         * s-filatt.ads: New file, binding to file attributes related
8284         functions.
8285         * Makefile.rtl (s-filatt): New runtime unit.
8286         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
8287         to library function if not available on target).
8288         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
8289         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
8290         SIZEOF_struct_dirent_alloc): New constants.
8291         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
8292         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
8293         Perform appropriate error checking if stat fails (do not just
8294         ignore existing files if stat fails)
8295         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
8296         dependencies.
8298 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8300         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
8301         the use of volatile objects as global items in a function to
8302         the variable related checks section.
8303         * sem_util.adb (Async_Readers_Enabled): Directly call
8304         Has_Enabled_Property.
8305         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
8306         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
8307         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
8308         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
8309         Update the comment on usage. State_Has_Enabled_Property how handles
8310         the original logic of the routine. Add processing for variables.
8311         (State_Has_Enabled_Property): New routine.
8312         (Variable_Has_Enabled_Property): New routine.
8314 2014-02-24  Robert Dewar  <dewar@adacore.com>
8316         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
8317         Minor reformatting.
8318         * atree.ads, atree.adb (Node35): New function.
8319         (Set_Node35): New procedure.
8320         * debug.adb: Define new debug flag -gnatd.X.
8321         * einfo.ads, einfo.adb (Import_Pragma): New field.
8322         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
8323         really active yet, has to be activated with -gnatd.X.
8324         * sem_prag.adb (Set_Imported): Set new Import_Pragma
8325         field (Set_Imported): Don't set Is_Public (see
8326         Freeze.Wrap_Imported_Subprogram)
8327         * par-ch3.adb (P_Component_List): Handle unexpected null component.
8329 2014-02-24  Yannick Moy  <moy@adacore.com>
8331         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
8332         * gnat_rm.texi: Correct documentation of attribute Update.
8334 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8336         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
8337         iterator in older versions of Ada.
8339 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
8341         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
8342         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
8344 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8346         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
8347         indexed_components that are instances of Ada 2012 container
8348         indexing operations. Analysis and resolution of such nodes
8349         is performed on the attribute, and the original source is
8350         preserved for ASIS operations. If expansion is enabled, the
8351         indexed component is replaced by the value of this attribute,
8352         which is in a call to an Indexing aspect, in most case wrapped
8353         in a dereference operation.
8354         * sem_ch4.adb (Analyze_Indexed_Component): Create
8355         Generalized_Indexing attribute when appropriate.
8356         (Analyze_Call): If prefix is not overloadable and has an indexing
8357         aspect, transform into an indexed component so it can be analyzed
8358         as a potential container indexing.
8359         (Analyze_Expression): If node is an indexed component with a
8360         Generalized_ Indexing, do not re-analyze.
8361         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
8362         of an indexed_component that has been transformed into a container
8363         indexing operation.
8364         (Resolve_Indexed_Component): Call the above when required.
8365         (Resolve): Do not insert an explicit dereference operation on
8366         an indexed_component whose type has an implicit dereference:
8367         the operation is inserted when resolving the related
8368         Generalized_Indexing.
8370 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
8372         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
8373         Environment.
8375 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8377         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
8378         error messages.
8379         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
8380         Merge the expected and available mode errors.
8381         (Report_Unused_Constituents): Remove leading spaces in error messages.
8382         (Report_Unused_States): Remove leading spaces in error messages.
8384 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8386         * par_sco.adb (Traverse_One): Refine categorization of statement
8387         SCOs.
8389 2014-02-24  Robert Dewar  <dewar@adacore.com>
8391         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
8392         Pure_05, Pure_12 and Preelaborate_05.
8393         * gnat_rm.texi: Update accordingly.
8394         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
8395         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
8396         Recognize one argument form of these pragmas only in GNAT mode
8397         (-gnatg).
8399 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8401         * s-dimmks.ads: Replace symbol for temperature, previously the
8402         Greek letter Theta, by the ASCII @ sign.
8403         * s-diflio.ads: ditto.
8405 2014-02-24  Robert Dewar  <dewar@adacore.com>
8407         * exp_ch4.adb: Minor code reorganization (use OR for boolean
8408         variables).
8409         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
8411 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
8413         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
8414         so that references to gnatmem and ASIS tools do not appear in the FSF
8415         edition of the GNAT User's Guide.
8417 2014-02-24  Yannick Moy  <moy@adacore.com>
8419         * freeze.adb (Freeze_Entity): Do not issue warning
8420         for pre/post being ignored on imported subprogram in GNATprove
8421         mode.
8423 2014-02-24  Robert Dewar  <dewar@adacore.com>
8425         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
8426         stand.ads, sem_eval.adb: Minor reformatting.
8428 2014-02-24  Yannick Moy  <moy@adacore.com>
8430         * sem_prag.adb: Minor rewording in error message.
8432 2014-02-24  Johannes Kanig  <kanig@adacore.com>
8434         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
8435         GNATprove_mode, gnat2why doesn't need nor use these types.
8437 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
8439         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
8440         target, in the case of signed integer exponentiation that uses a
8441         run-time routine, always select the Exp_* versions, since overflow
8442         checking is automatically done by AAMP arithmetic instructions.
8444 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8446         * sem_ch13.adb (Analyze_Aspect_Specifications):
8447         When the related context is a package instace, insert pragma
8448         Abstract_State after all internally-generated renamings related
8449         to the instance "header".
8451 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8453         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
8454         subprograms.
8455         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
8456         call to an abstract subprogram is legal if it appears in a
8457         pre/postcondition of another abstract operation.
8459 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
8461         * gnat_ugn.texi: Misc updates.
8463 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8465         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
8467 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
8469         * layout.adb (Layout_Variant_Record): Instantiate
8470         Generic_Check_Choices and call Check_Choices before calling
8471         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
8472         set to prevent generating incorrect discriminant-checking
8473         functions for 'others' variants (functions that unconditionally
8474         return True rather than accounting for the values covered by the
8475         'others' choice).
8476         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
8477         Formal_Derived_Matching.
8478         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
8479         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
8480         Formal_Derived_Matching formal to Subtypes_Statically_Match.
8481         (Subtypes_Statically_Match): Suppress the Object_Size matching
8482         test in the case where Formal_Derived_Matching is True.
8483         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
8484         True for Formal_Derived_Matching_Formal on the call to
8485         Subtypes_Statically_Compatible.
8487 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
8489         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
8491 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
8493         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
8494         Look through a conversion between original and packable version to get
8495         the base object.
8496         (build_component_ref): Rework comment and fix formatting.
8498 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
8500         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
8501         project-specific options.
8503 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8505         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
8506         not Constraint_Error.
8507         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
8508         * sem_ch5.adb: Code clean up.
8510 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
8512         * sem_prag.adb (Usage_Error): Remove local
8513         constant Typ. Remove the specialized diagnostics for unconstrained
8514         or tagged items as those are not part of the explicit input set
8515         of the related subprogram and should not be flagged.
8517 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8519         * sem_attr.adb: Add guard to preserve all errors.
8521 2014-02-20  Vincent Celier  <celier@adacore.com>
8523         * switch-m.adb (Normalize_Compiler_Switches): Take into account
8524         switches that are recorded in ALI files: -gnateA, -gnateE,
8525         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
8527 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8529         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
8530         of an element iterator form over a formal container with an
8531         Iterable aspect.
8532         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
8533         to create declaration and loop statements for both forms of
8534         container iterators.
8535         (Expand_Formal_Container_Element_Iterator): New procedure
8536         to handle loops of the form  "for E of C" when C is a formal
8537         container.
8538         (Expand_Formal_Container_Iterator): Code cleanup.
8540 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
8542         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
8543         (Analyze_Contract_Case): Remove the use of
8544         "may". Replace "aspect Contract_Cases" to avoid categorization
8545         of aspect vs pragma.
8546         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
8547         (Analyze_Global_Item): Remove
8548         the use of "formal", specify the subprogram.  Split the
8549         error message about a state with visible refinement into
8550         two. Remove the use of "global" from "volatile global item".
8551         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
8552         is on one line.
8553         (Analyze_Input_Output): Update the call to
8554         Check_Mode. Specify the duplicated item. Reword the error
8555         message concerning an input of a null output list. Use "\"
8556         for error message continuation.
8557         (Analyze_Part_Of): Remove
8558         the use of "may". Use "\" for error message continuation.
8559         (Analyze_Refined_Depends_In_Decl_Part): Update the error
8560         message concerning a useless refinement to match the format
8561         of Refined_Global.
8562         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
8563         concerning a useless refinement.
8564         (Analyze_Refinement_Clause): Use "\" for error message continuation.
8565         (Check_Constituent_Usage): Use "\" for error message continuation.
8566         (Check_Dependency_Clause): Use "\" for error message continuation.
8567         (Check_Matching_Constituent): Use "\" for error message continuation.
8568         (Check_Missing_Part_Of): Use "\" for error message continuation.
8569         (Check_Mode): Renamed to
8570         Check_Role. Update the comment on usage. Redo the error reporting
8571         to use Role_Error.
8572         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
8573         message continuation.
8574         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
8575         with comment on usage. Update all occurrences of Is_Input and Is_Output.
8576         (Inconsistent_Mode_Error): Use "\" for error message continuation.
8577         (Input_Match): Use "\" for error message continuation.
8578         (Role_Error): New routine.
8579         (Set_Convention_From_Pragma): Use "\" for error message continuation.
8580         (Usage_Error): Add local variable Error_Msg. Build specialized error
8581         message showcasing the offending item kind. Redo the diagnostics for
8582         unconstrained types.
8584 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8586         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
8587         to determine whether a type is a container type, rather than
8588         examining only its type declaration, so that subtypes and derived
8589         types are handled properly.
8591 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
8593         * gnat_ugn.texi: gnatmetric: add description of project-specific
8594         options.
8596 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8598         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
8599         all choices in an association for a record type have the same
8600         type, as is done for record aggregates.
8602 2014-02-20  Robert Dewar  <dewar@adacore.com>
8604         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
8605         Unmodified rather than Warnings (Off). Make comments
8606         uniform in the four affected units.
8608 2014-02-20  Robert Dewar  <dewar@adacore.com>
8610         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
8611         Object_Size): For non-scalar types allow any value that is a
8612         multiple of 8.
8613         * gnat_rm.texi: Document Object_Size for composites more clearly.
8615 2014-02-20  Yannick Moy  <moy@adacore.com>
8617         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
8619 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8621         * stand.ads: Raise_Type: new predefined entity, used as the type
8622         of a Raise_Expression prior to resolution.
8623         * cstand.adb: Build entity for Raise_Type.
8624         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
8625         initial type of the node.
8626         * sem_type.adb (Covers): Raise_Type is compatible with all
8627         other types.
8628         * sem_res.adb (Resolve): Remove special handling of Any_Type on
8629         Raise_Expression nodes.
8630         (Resolve_Raise_Expression): Signal ambiguity if the type of the
8631         context is still Raise_Type.
8633 2014-02-20  Robert Dewar  <dewar@adacore.com>
8635         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
8636         mismatching predicates.
8637         * sem_ch6.adb (Check_Conformance): Give better messages on
8638         predicate mismatch.
8639         * sem_eval.adb (Predicates_Match): Move to spec.
8640         * sem_eval.ads (Predicates_Match): Moved here from body.
8642 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8644         * a-cbmutr.adb: Use default value in Insert_Child.
8646 2014-02-20  Vincent Celier  <celier@adacore.com>
8648         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
8649         Stringt.Initialize in all project aware tools.
8651 2014-02-20  Doug Rupp  <rupp@adacore.com>
8653         * gnat_ugn.texi: Document gnatbind -X option.
8654         * vms_data.ads: Minor warnings documentation reformatting.
8656 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8658         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
8659         procedure for a base type.
8661 2014-02-20  Robert Dewar  <dewar@adacore.com>
8663         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
8664         expression with type info.
8665         * sem_ch13.adb: Minor reformatting.
8666         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
8667         False if predicates do not match on the two types.
8669 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
8671         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
8672         In Relaxed_RM_Semantics mode, allow any static integer value,
8673         for compatibility with other compilers.
8675 2014-02-20  Vincent Celier  <celier@adacore.com>
8677         * errutil.adb (Initialize): Properly initialize entry in table
8678         Warnings when warnings are suppressed.
8680 2014-02-20  Robert Dewar  <dewar@adacore.com>
8682         * s-os_lib.ads: Add warning about non-portability of Rename_File.
8683         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
8684         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
8685         * gnat_ugn.texi: Document no warnings on junk variable names.
8686         * layout.adb: Minor code reorganization (use Ekind_In).
8687         * stringt.adb: Move initialization of Null_String_Id to Initialize
8688         routine.
8690 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8692         * sem_ch13.adb: Initialize optional Element_Id.
8694 2014-02-20  Robert Dewar  <dewar@adacore.com>
8696         * s-os_lib.ads (Rename_File): Minor commment addition.
8698 2014-02-20  Thomas Quinot  <quinot@adacore.com>
8700         * einfo.ads: Minor reformatting.
8702 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
8704         * aspects.adb (Exchange_Aspects): New routine.
8705         * aspects.ads (Exchange_Aspects): New routine.
8706         * atree.adb (Rewrite): Do not check whether the save node has
8707         aspects as it never will, instead check the node about to be clobbered.
8708         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
8709         entities of generic packages.
8710         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
8711         pointer of an aspect specification list after rewriting takes place.
8712         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
8713         specifications of the generic template and the copy used for analysis.
8714         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
8715         the aspect specifications of the generic template and the
8716         copy used for analysis.
8717         (Analyze_Package_Instantiation): Propagate the aspect specifications
8718         from the generic template to the instantiation.
8719         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
8720         specifications from the generic template to the instantiation.
8721         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
8722         Abstract_State, Initializes and Initial_Condition when they
8723         apply to a package instantiation.
8725 2014-02-20  Robert Dewar  <dewar@adacore.com>
8727         * stringt.adb: Add call to Initialize in package initialization.
8729 2014-02-20  Robert Dewar  <dewar@adacore.com>
8731         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
8732         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
8733         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
8734         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
8735         reformatting.
8737 2014-02-20  Bob Duff  <duff@adacore.com>
8739         * s-os_lib.ads: Minor: Remove incorrect comment.
8741 2014-02-20  Robert Dewar  <dewar@adacore.com>
8743         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
8745 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8747         * a-cborma.adb (Assign): When creating a node without a specified
8748         element, insert an uninitialized element in the map, because
8749         the instance may provide an element type with a default
8750         initialization, e.g a scalar with a Default_Value aspect.
8751         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
8752         (Insert): In the version without explicit element, provide an
8753         uninitialized element, as above.
8754         * a-cbdlli.adb (Append): In the version without explicit element,
8755         provide an uninitalized element, as above.
8756         (Allocate): Remove unused version.
8758 2014-02-20  Robert Dewar  <dewar@adacore.com>
8760         * sem_elab.adb: Minor code reorganization (use Nkind_In).
8761         * stringt.adb: Remove temporary pragma Warnings (Off).
8762         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
8763         of Null_String_Id.
8765 2014-02-20  Matthew Heaney  <heaney@adacore.com>
8767         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
8768         index.
8770 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
8772         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
8773         properly the cursor type for subsequent volatile testing in SPARK
8774         mode, when domain is a formal container with an Iterabe aspect.
8776 2014-02-20  Robert Dewar  <dewar@adacore.com>
8778         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
8779         (Set_Specific_Warning_Off): Add Reason argument.
8780         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
8781         (Set_Specific_Warning_Off): Add Reason argument.
8782         * erroutc.adb (Warnings_Entry): Add Reason field
8783         (Specific_Warning_Entry): Add Reason field.
8784         (Warnings_Suppressed): return String_Id for Reason.
8785         (Warning_Specifically_Suppressed): return String_Id for Reason.
8786         * erroutc.ads (Warnings_Entry): Add Reason field.
8787         (Specific_Warning_Entry): Add Reason field.
8788         (Set_Specific_Warning_Off): Add Reason argument.
8789         (Set_Warnings_Mode_Off): Add Reason argument.
8790         (Warnings_Suppressed): return String_Id for Reason.
8791         (Warning_Specifically_Suppressed): return String_Id for Reason.
8792         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
8793         (Warning_Specifically_Suppressed): returns String_Id for Reason
8794         * gnat_rm.texi: Document that Warning parameter is string literal
8795         or a concatenation of string literals.
8796         * par-prag.adb: New handling for Reason argument.
8797         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
8798         for Reason argument.
8799         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
8800         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
8801         * stringt.adb: Set Null_String_Id.
8802         * stringt.ads (Null_String_Id): New constant.
8804 2014-02-20  Robert Dewar  <dewar@adacore.com>
8806         * einfo.ads: Minor comment addition: Etype of package is
8807         Standard_Void_Type.
8808         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
8809         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
8810         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
8811         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
8812         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
8813         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
8814         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
8815         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
8816         Replace all calls with calls to New_Occurrence_Of.
8818 2014-02-20  Robert Dewar  <dewar@adacore.com>
8820         * par-util.adb (Ignore, case of right paren): Make this a
8821         serious error.
8823 2014-02-19  Robert Dewar  <dewar@adacore.com>
8825         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
8826         * debug.adb: Remove -gnatd.X switch, no longer used.
8827         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
8828         now always made.
8830 2014-02-19  Bob Duff  <duff@adacore.com>
8832         * g-socket.ads: Minor: Correct some comments.
8834 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
8836         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
8838 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
8840         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
8841         an error on out of range priorities if Relaxed_RM_Semantics.
8842         * sem_prag.adb (Analyze_Pragma): Ditto.
8844 2014-02-19  Bob Duff  <duff@adacore.com>
8846         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
8847         where F denotes the renaming of an enumeration literal, and
8848         issue a specialized error message.
8850 2014-02-19  Matthew Heaney  <heaney@adacore.com>
8852         * a-chtgop.ads (Checked_Index): New operation.
8853         (Next): Changed mode of hash table.
8854         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
8855         (Generic_Read, Reserve_Capacity): Ditto.
8856         (Generic_Equal): Detect tampering.
8857         (Next): Changed mode of hash table, detect tampering.
8858         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
8859         operation.
8860         (Find): Changed mode of hash table.
8861         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
8862         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
8863         tampering.
8864         (Find): Changed mode of hash table, check for tampering.
8865         (Generic_Replace_Element): Check for tampering.
8866         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
8867         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
8868         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
8869         Detect tampering.
8870         (Find, Generic_Replace_Element): Check for tampering.
8871         * a-chtgbo.ads (Checked_Index): New operation.
8872         * a-chtgbo.adb (Checked_Index): New operation
8873         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
8874         (Generic_Read, Next): Ditto.
8875         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
8876         table (Difference, Intersection): Use variable view of
8877         source, detect tampering (Find, Is_Subset, Overlap): Use
8878         variable view of container (Symmetric_Difference, Union):
8879         Detect tampering (Vet): Use Checked_Index to detect tampering
8880         (Constant_Reference, Element, Find): Use variable view of
8881         container.
8882         (Update_Element_Preserving_Key): Detect tampering.
8883         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
8884         of container.
8885         (Is_Subset): Ditto.
8886         (Equivalent_Sets, Overlap): Use Node's Next component.
8887         (Vet): Use Checked_Index to detect tampering.
8888         (Constant_Reference, Element, Find): Use variable view of container.
8889         (Update_Element_Preserving_Key): Detect tampering.
8890         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
8891         Element, Find): Use variable view of container.
8892         (Reference): Rename hash table component.
8893         (Vet): Use Checked_Index to detect tampering.
8895 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
8897         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
8898         of -nostdinc.
8900 2014-02-19  Thomas Quinot  <quinot@adacore.com>
8902         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
8903         against calls without Def_Id.
8905 2014-02-19  Claire Dross  <dross@adacore.com>
8907         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
8908         a-cofove.ads: Add global annotations to subprograms.
8910 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
8912         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
8913         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
8914         Initial_Condition no longer requires the presence of pragma
8915         Initialized. Do not try to diagnose whether all variables mentioned in
8916         pragma Initializes also appear in Initial_Condition.
8917         (Collect_Variables): Removed.
8918         (Match_Variable): Removed.
8919         (Match_Variables): Removed.
8920         (Report_Unused_Variables): Removed.
8922 2014-02-19  Thomas Quinot  <quinot@adacore.com>
8924         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
8926 2014-02-19  Robert Dewar  <dewar@adacore.com>
8928         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
8929         reformatting.
8931 2014-02-19  Vincent Celier  <celier@adacore.com>
8933         * prj-part.adb (Parse_Single_Project): Use the fully resolved
8934         project path, with all symbolic links resolved, to check if the
8935         same project is imported with a different unresolved path.
8936         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
8937         changed to Resolved_Path to reflect that all symbolic links
8938         are resolved.
8940 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
8942         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
8943         from sem_ch13, for use elsewhere.
8944         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
8945         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
8946         cursor type on the loop variable when the iteration is over o
8947         formal container.
8949 2014-02-19  Vincent Celier  <celier@adacore.com>
8951         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
8952         for an empty Target (Check_Target): Never fail when an empty
8953         target is declared in the configuration project.
8955 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
8957         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
8958         the pragma comes fron a predicate aspect and the context is a
8959         record declaration within the scope that declares the type.
8961 2014-02-19  Robert Dewar  <dewar@adacore.com>
8963         * gnat_rm.texi: Minor clarifications.
8964         * expander.adb, sem_aggr.adb: Add comments.
8966 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
8968         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
8969         applies to a subprogram body, the name is the current scope,
8970         rather than being declared in the current scope.
8971         (Analyze_Pragma, case No_Return): Handle properly a No_Return
8972         aspect applied to a subprogram body.
8974 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
8976         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
8977         of overloaded subprograms, and fix bug in handling of primitive
8978         operation Element.
8980 2014-02-19  Pascal Obry  <obry@adacore.com>
8982         * s-os_lib.adb: Minor reformatting.
8984 2014-02-19  Yannick Moy  <moy@adacore.com>
8986         * expander.adb (Expand): Do nothing inside generics.
8987         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
8988         generics.
8990 2014-02-19  Yannick Moy  <moy@adacore.com>
8992         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
8994 2014-02-19  Robert Dewar  <dewar@adacore.com>
8996         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
8997         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
8998         longer needed).
9000 2014-02-19  Claire Dross  <dross@adacore.com>
9002         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9003         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
9005 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9007         * sem_ch3.adb (Analyze_Declarations): Analyze
9008         a package contract at the end of the private declarations (if
9009         applicable), otherwise analyze it and the end of the visible
9010         declarations.
9012 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9014         * style.adb (Missing_Overriding): If subprogram is an
9015         instantiation, place warning on the instance node itself,
9016         without mention of the original generic. Do not emit message
9017         if explicit Ada version is older than the introduction of the
9018         overriding indicator.
9020 2014-02-19  Yannick Moy  <moy@adacore.com>
9022         * gnat_rm.texi: Doc clarifications.
9024 2014-02-19  Yannick Moy  <moy@adacore.com>
9026         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
9027         inside a generic.
9029 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9031         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
9032         specified First primitive, rather than by name.
9033         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
9034         and extend error checking for missing primitives and incorrect
9035         signatures.
9037 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9039         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
9040         errors when a Synchronization aspect on an overriding protected
9041         operation does not match the given aspect on the overridden
9042         operation of an ancestor interface.
9044 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9046         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
9047         (Check_Loop_Pragma_Placement): Update
9048         comment on usage. Remove local variables Orig_Stmt and
9049         Within_Same_Sequence. Check that the current Loop_Invariant or
9050         Loop_Variant pragma is grouped together with other such pragmas.
9051         (Is_Loop_Pragma): New routine.
9052         (Prev_In_Loop): Removed.
9054 2014-02-19  Robert Dewar  <dewar@adacore.com>
9056         * par-ch6.adb (P_Return): For extended return, end column lines
9057         up with RETURN.
9058         * par.adb: Minor documentation clarification.
9060 2014-02-19  Yannick Moy  <moy@adacore.com>
9062         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
9063         that Loop_Invariant and Loop_Variant appear consecutively.
9064         * gnat_rm.texi Update documentation of Loop_Invariant and
9065         Loop_Variant pragmas.
9067 2014-02-19  Robert Dewar  <dewar@adacore.com>
9069         * debug.adb: Document -gnatd.X.
9070         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
9071         first token
9072         (Check_Then_Column): Ditto.
9073         * styleg.adb (Check_Then): Allow THEN on line after IF.
9074         (Check_Then): Check THEN placement under control of -gnatd.X
9075         * styleg.ads (Check_Then): Now called even if THEN is not first
9076         token on line.
9077         * stylesw.ads (Style_Check_If_Then_Layout): Document new
9078         relaxed rules.
9079         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
9081 2014-02-19  Robert Dewar  <dewar@adacore.com>
9083         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
9084         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
9085         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
9086         vms_conv.adb: Fix bad layout of IF statements
9088 2014-02-19  Robert Dewar  <dewar@adacore.com>
9090         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
9092 2014-02-19  Robert Dewar  <dewar@adacore.com>
9094         * exp_util.adb: Update comments.
9096 2014-02-19  Doug Rupp  <rupp@adacore.com>
9098         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
9099         * init.c (__gl_float_format): [VMS] New global.
9100         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
9101         representation in effect.
9103 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9105         * exp_ch6.adb Add with and use clause for Exp_Prag.
9106         (Expand_Contract_Cases): Relocated to Exp_Prag.
9107         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
9108         * exp_prag.adb Add with and use clauses for Checks and Validsw.
9109         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
9110         structure of the expanded code to showcase the evaluation of
9111         attribute 'Old prefixes. Add local variable Old_Evals. Expand
9112         any attribute 'Old references found within a consequence. Add
9113         circuitry to evaluate the prefixes of attribute 'Old that
9114         belong to a selected consequence.
9115         (Expand_Old_In_Consequence): New routine.
9116         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
9117         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
9118         potentially unevaluated prefix is always evaluated.
9120 2014-02-19  Robert Dewar  <dewar@adacore.com>
9122         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
9123         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
9124         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
9125         handling for the case of Modify_Tree_For_C, this approach did
9126         not work.
9127         * exp_util.adb (Matching_Standard_Type): New function
9128         (Side_Effect_Free): New top level functions (from
9129         Remove_Side_Effects).
9130         * exp_util.ads (Side_Effect_Free): New top level functions
9131         (moved from body).
9132         * sinfo.ads: Minor comment updates.
9134 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9136         * exp_ch6.adb (Expand_Simple_Function_Return): If return
9137         type is unconstrained and uses the secondary stack, mark the
9138         enclosing function accordingly, to ensure that the value is not
9139         prematurely removed.
9141 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9143         * par.adb Alphabetize the routines in Par.Sync.
9144         (Resync_Past_Malformed_Aspect): New routine.
9145         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
9146         variables. Code and comment reformatting. Detect missing
9147         parentheses on aspects [Refined_]Global and [Refined_]Depends
9148         with a non-null definition.
9149         * par-sync.adb: Alphabetize all routines in this separate unit.
9150         (Resync_Past_Malformed_Aspect): New routine.
9152 2014-02-19  Robert Dewar  <dewar@adacore.com>
9154         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
9155         if Esize values do not match.
9157 2014-02-19  Yannick Moy  <moy@adacore.com>
9159         * sinfo.ads: Minor comment update.
9161 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9163         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
9165 2014-02-19  Thomas Quinot  <quinot@adacore.com>
9167         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
9168         that has the No_Ctrl_Actions flag is a suitable node to be
9169         wrapped if the assigned expression has no finalization actions.
9170         * sem_eval.adb (Eval_Entity_Name): For a compile time known
9171         boolean value, mark the corresponding condition SCO as constant.
9173 2014-02-19  Robert Dewar  <dewar@adacore.com>
9175         * exp_util.adb: Minor reformatting.
9176         * exp_util.ads (Matching_Standard_Type): New function.
9177         * exp_ch7.adb: Minor reformatting.
9179 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9181         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
9182         to find declaration for Cursor, to handle properly the case of
9183         a discriminated iterable type.
9185 2014-02-19  Vincent Celier  <celier@adacore.com>
9187         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
9188         imported library projects with the library ALI dirs, when setting
9189         the object paths.
9190         * prj-env.ads (Ada_Objects_Path): Correct comments about
9191         argument Including_Libraries.
9193 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
9195         * gnat_rm.texi: Minor spelling fixes.
9197 2014-02-19  Doug Rupp  <rupp@adacore.com>
9199         * init.c: Remove unneeded code.
9200         * fe.h (Float_Format): New macro
9201         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
9203 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9205         * sem_prag.adb (Check_Refined_Global_Item):
9206         A state or variable acts as a constituent only it is part of an
9207         encapsulating state and the state has visible refinement.
9209 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9211         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
9212         postcondition for a function when the expression does not mention
9213         'Result but the function has in-out parameters.
9215 2014-02-19  Robert Dewar  <dewar@adacore.com>
9217         * gnat_rm.texi: Add documentation on Value_Size forcing biased
9218         representation.
9220 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9222         * lib-xref.ads Remove the small table of letter and symbol usage as we
9223         already have one.
9225 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9227         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
9228         messages depending on the offending misplaced aspect specifications.
9229         (Diagnose_Misplaced_Aspect_Specifications): New routine.
9231 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9233         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
9234         for iterable aspect primitives.
9235         (Resolve_Iterable_Operation): Use expected signature of iterable
9236         aspect to resolve primitive when overloading is present.
9237         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
9238         (Check_Signature): Removed.
9240 2014-02-19  Yannick Moy  <moy@adacore.com>
9242         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
9243         subunit in GNATprove_Mode.
9244         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
9246 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9248         * lib-xref.ads Alphabetize the contents of table
9249         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
9250         for E_Abstract_State. List all letters and symbols in use.
9251         * sem_prag.adb (Analyze_Abstract_State): Update all calls
9252         to Create_Abstract_State to reflect the new signature.
9253         (Create_Abstract_State): Change subprogram profile and update
9254         the comment on usage. Use the proper location of the state
9255         declaration when creating a new abstract state entity. Do not
9256         generate an external name, but simply reuse the name coming from
9257         the state declaration.
9259 2014-02-19  Robert Dewar  <dewar@adacore.com>
9261         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
9262         declarations get properly inserted in Modify_Tree_For_C mode.
9263         * sinfo.ads: Minor comment addition.
9265 2014-02-19  Robert Dewar  <dewar@adacore.com>
9267         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
9268         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
9270 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9272         * style.adb (Missing_Overriding): Warning does not apply in
9273         language versions prior to Ada 2005.
9274         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
9275         * sem_attr.adb: Add Attribute_Iterable where needed.
9276         * exp_attr.adb: ditto.
9277         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
9278         handle loops and quantified expressions over types that have an
9279         iterable aspect.  Called from Expand_Iterator_Loop.
9280         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
9281         with Iterable aspect.
9282         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
9283         subprograms specified in the Iterable aspect have the proper
9284         signature involving container and cursor.
9285         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
9286         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
9287         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
9288         New procedure to retrieve one of the primitives First, Last,
9289         or Has_Element, from the value of the iterable aspect of a
9290         formal container.
9291         (Is_Container_Element): Predicate to recognize expressions
9292         that denote an element of one of the predefined containers,
9293         for possible optimization.  This subprogram is not currently
9294         used, pending ARG discussions on the legality of the proposed
9295         optimization. Worth preserving for eventual use.
9296         (Is_Iterator): Recognize formal container types.
9297         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
9299 2014-02-19  Robert Dewar  <dewar@adacore.com>
9301         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
9302         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
9303         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
9304         declarations from list of actions.
9305         * output.ads, output.adb (Delete_Last_Char): New procedure.
9306         * sinfo.ads: Document handling of Mod and expression with actions
9307         in Modify_Tree_For_C mode.
9309 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9311         * par-ch9.adb (P_Task): Add a null statement to produce a
9312         well-formed task body when due to a previous syntax error the
9313         statement list is empty.
9315 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9317         * sem_prag.adb (Check_Dependency_Clause): Account
9318         for the case where a state with a non-null refinement matches a
9319         null output list. Comment reformatting.
9320         (Inputs_Match): Copy a solitary input to avoid an assertion failure
9321         when trying to match the same input in multiple clauses.
9323 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
9325         * sem_attr.adb: Minor typo fix.
9327 2014-02-18  Robert Dewar  <dewar@adacore.com>
9329         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
9330         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
9331         (Create_Standard): Create new unsigned types.
9332         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
9333         mode (Expand_N_Reference): Removed, problematic and not needed
9334         for now.
9335         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
9336         not needed for now.
9337         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
9338         * expander.adb: Remove call to Expand_N_Reference (problematic,
9339         and not needed now).
9340         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
9341         * stand.adb: Read and write unsigned type entities.
9342         * stand.ads: Add new unsigned types.
9344 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
9346         * sem_ch4.adb (Analyze_Call): Do not mark a function call
9347         as being inside an assertion expression as the flag is now removed.
9348         (Check_Ghost_Subprogram_Call): Do not query the
9349         In_Assertion_Expression flag as it is now removed, instead use
9350         a predicate function.
9351         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
9352         In_Assertion_Expression flag as it is now removed, instead use
9353         a predicate function.
9354         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
9355         * sem_util.adb Add with and use clause for Sem_Prag.
9356         (In_Assertion_Expression_Pragma): New routine.
9357         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
9358         * sinfo.adb (In_Assertion_Expression): Removed.
9359         (Set_In_Assertion_Expression): Removed.
9360         * sinfo.ads Remove flag In_Assertion_Expression along with its
9361         use in nodes.
9362         (In_Assertion_Expression): Removed along with
9363         pragma Inline.  (Set_In_Assertion_Expression): Removed along
9364         with pragma Inline.
9366 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
9368         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
9369         used together with '-r', '-rf' or '-rnb' options.
9371 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
9373         * sem_attr.adb (Analyze_Attribute): Comment
9374         and code reformatting. Use separate routines to check the
9375         legality of attribute 'Old in certain pragmas. Verify
9376         the use of 'Old, 'Result and locally declared entities
9377         within the prefix of 'Old.
9378         (Check_References_In_Prefix): New routine.
9379         (Check_Use_In_Contract_Cases): New routine.
9380         (Check_Use_In_Test_Case): New routine.
9382 2014-02-18  Vincent Celier  <celier@adacore.com>
9384         * sem_aux.adb (Is_By_Reference_Type): For each components of
9385         a record type, check also if the component is volatile as it
9386         may have an aspect that makes it volatile. If it is, then the
9387         record type is a by reference type.
9389 2014-02-18  Robert Dewar  <dewar@adacore.com>
9391         * exp_attr.adb: Minor reformatting.
9392         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
9393         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
9394         as another case where we don't generate N_Reference nodes for
9395         primitive types.
9396         * expander.adb (Expand): Add call to Expand_N_Reference.
9398 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9400         * sem_prag.adb (Analyze_Refined_Pragma): Remove
9401         local variable Pack_Spec. Refinement pragmas may now apply to
9402         bodies of both visible and private subprograms.
9404 2014-02-06  Robert Dewar  <dewar@adacore.com>
9406         * exp_attr.adb (Expand_Loop_Entry_Attribute):
9407         Minor change (Attr => N) (Expand_Pred_Succ): New name
9408         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
9409         Max): Expand into if expression if Modify_Tree_For_C mode.
9410         (Expand_N_Attribute_Reference, case Min): ditto
9411         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
9412         Max attributes.
9414 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
9416         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
9417         predicate check if this is an internal declaration with
9418         No_Initialization set, as for an expanded aggregate component.
9420 2014-02-06  Doug Rupp  <rupp@adacore.com>
9422         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
9423         conditions with severity of "SUCCESS" or "INFORMATIONAL".
9425 2014-02-06  Yannick Moy  <moy@adacore.com>
9427         * sem_prag.adb (Analyze_Pragma): Analyze pragma
9428         Debug rewritten node before rewriting it as a null statement in
9429         GNATprove mode.
9431 2014-02-06  Robert Dewar  <dewar@adacore.com>
9433         * sem_attr.adb (Min_Max): New procedure.
9434         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
9435         procedure.
9437 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
9439         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
9440         gnatmetric/gnatpp.
9442 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9444         * sem_prag.adb (Analyze_Abstract_State): Update
9445         all calls to Create_Abstract_State to pass the proper state
9446         "declaration".
9447         (Create_Abstract_State): Add new formal parameter
9448         State_Decl along with comment on usage. Establish a link between
9449         the abstract state entity and the state declaration.
9451 2014-02-06  Robert Dewar  <dewar@adacore.com>
9453         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
9454         comparison of unordered enumeration type.
9455         (Analyze_Attribute, case Max): Check for improper comparison of
9456         unordered enumeration type.
9457         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
9458         sem_util.adb.
9459         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
9460         Moved here from Sem_Res.
9462 2014-02-06  Robert Dewar  <dewar@adacore.com>
9464         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
9465         reformatting.
9467 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9469         * sem_ch6.adb (Process_Formals): Error message reformatting.
9471 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9473         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
9474         variable Spec. Do not inherit the null indicator from the
9475         subprogram body when generating the spec.
9477 2014-02-06  Robert Dewar  <dewar@adacore.com>
9479         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
9480         mixed case.
9482 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
9484         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
9485         when the function has a foreign convention, but not if only the
9486         limited return type has such a convention.
9488 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9490         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
9491         variable Spec. Comment reformatting. Use Copy_Separate_Tree
9492         rather than New_Copy_Tree when building the corresponding
9493         subprogram declaration.
9495 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9497         * sem_prag.adb (Analyze_Global_Item): Remove
9498         the mode-related checks on abstract states with enabled external
9499         properties.
9500         (Property_Error): Removed.
9502 2014-02-06  Javier Miranda  <miranda@adacore.com>
9504         * lib-xref.adb (Generate_Reference): When
9505         generating the reference to the first private entity take care
9506         of handling swapped entities.
9508 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
9510         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
9511         gnatmetric.
9513 2014-02-06  Robert Dewar  <dewar@adacore.com>
9515         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
9516         than the word size when operating in Modify_Tree_For_C mode.
9517         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
9519 2014-02-06  Robert Dewar  <dewar@adacore.com>
9521         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
9522         compare is case insensitive.
9523         * gnat_rm.texi: Document that string compare for Warnings Off
9524         is now case insensitive.
9526 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
9528         * gnat_rm.texi: Small wording tweak.
9530 2014-02-06  Pascal Obry  <obry@adacore.com>
9532         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
9533         and Included_Artifact_Patterns attribute definitions.
9535 2014-02-06  Yannick Moy  <moy@adacore.com>
9537         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
9538         SPARK_Mode pragma component for all subprograms, including stubs.
9540 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9542         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
9543         the configuration options of the enclosing context in a
9544         stack-like fasion.
9545         (Analyze_Subprogram_Body_Stub): Maintain the
9546         configuration options of the enclosing context in a stack-like
9547         fashion.
9549 2014-02-06  Robert Dewar  <dewar@adacore.com>
9551         * debug.adb: -gnatd.u sets Modify_Tree_For C
9552         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
9553         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
9554         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
9555         * exp_intr.adb (Expand_Shift): Call expander so we do
9556         Modify_Tree_For_C expansions.
9557         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
9558         if -gnatd.u set.
9560 2014-02-06  Fedor Rybin  <frybin@adacore.com>
9562         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
9563         after the phase 1 of the processing of each aggregated project
9564         to get access to project trees of aggregated projects.
9565         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
9566         If specified, On_New_Tree_Loaded is called after each aggregated
9567         project has been processed succesfully.
9568         (Process): new parameter On_New_Tree_Loaded.
9569         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
9570         callback added after processing of each aggregated project.
9571         (Recursive_Process): new parameter On_New_Tree_Loaded.
9572         (Process): new parameter On_New_Tree_Loaded.
9573         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
9574         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
9575         On_New_Tree_Loaded.
9576         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
9577         On_New_Tree_Loaded.
9579 2014-02-06  Bob Duff  <duff@adacore.com>
9581         * gnat_ugn.texi: Implement --insert-blank-lines and
9582         --preserve-blank-lines switches.
9584 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
9586         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
9587         gnatelim.
9589 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
9591         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
9592         of the pragma on individual objects.
9594 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9596         * einfo.adb Node29 is now used as BIP_Initialization_Call.
9597         (BIP_Initialization_Call): New routine.
9598         (Set_BIP_Initialization_Call): New routine.
9599         (Write_Field29_Name): Add an entry for constants and variables.
9600         * einfo.ads Add new attribute BIP_Initialization_Call and update
9601         its usage in nodes.
9602         (BIP_Initialization_Call): New routine along with pragma Inline.
9603         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
9604         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
9605         Add local declaration Res_Decl. Capture the build-in-place
9606         initialization call when the related object declaration has
9607         created a transient block.
9608         * exp_ch7.adb (Process_Transient_Objects): Add local variable
9609         Fin_Insrt. Recognize a scenario where an object declaration acts
9610         as a transient context and is initialized by a build-in-place
9611         function call.
9613 2014-02-06  Pascal Obry  <obry@adacore.com>
9615         * prj-util.adb (For_Interface_Sources): Fix handling of required
9616         bodies for aggregate libs.
9618 2014-02-06  Robert Dewar  <dewar@adacore.com>
9620         * nlists.ads: Minor comment clarifications.
9622 2014-02-06  Robert Dewar  <dewar@adacore.com>
9624         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
9625         if gnatd.V set.
9626         * opt.ads (Modify_Tree_For_C): New flag.
9627         * output.ads, output.adb (Last_Char): New function.
9629 2014-02-06  Pascal Obry  <obry@adacore.com>
9631         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
9632         share/gpr for cross-builds.
9634 2014-02-06  Robert Dewar  <dewar@adacore.com>
9636         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
9637         Minor reformatting and code clean ups.
9639 2014-02-06  Pascal Obry  <obry@adacore.com>
9641         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
9642         * prj.ads: Minor typo fix in comment.
9644 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9646         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
9647         local variable Expr. Flag clauses with extra parenthesis as this
9648         is not allowed by the syntax of the pragma. Code reformatting.
9650 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9652         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
9653         variables. Rename variabme Tnn to Temp. Do not create a temporary
9654         if assertions are disabled. Find enclosing routine _Postconditions
9655         and insert the temporary that captures the value of the prefix
9656         before the routine.
9657         * exp_ch6.adb (Build_Postconditions_Procedure):
9658         Insert the generated _Postconditions routine
9659         before the first source declaration of the related
9660         subprogram.
9661         (Insert_After_Last_Declaration): Removed.
9662         (Insert_Before_First_Source_Declaration): New routine.
9664 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
9666         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
9667         Utility to determine whether current expansion is for the body
9668         of a predefined primitive operation.
9669         (Make_Predicate_Check): Use Within_Internal_Subpgram
9670         * checks.adb (Apply_Predicate_Check): Use
9671         Within_Internal_Subprogram
9672         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
9674 2014-02-06  Pascal Obry  <obry@adacore.com>
9676         * prj.ads, prj-util.adb: Minor reformatting.
9678 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
9680         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
9681         Take into account the Split_PPC flag to ensure that conjuncts
9682         in a composite postcondition aspect are tested in source order.
9684 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9686         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
9687         use of SPARK_Mode.
9688         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
9689         illegal use of SPARK_Mode.
9690         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
9691         * sem_prag.adb (Analyze_Pragma): Code reformatting.
9692         * sem_util.adb Add with and use clause for Aspects.
9693         (Check_SPARK_Mode_In_Generic): New routine.
9694         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
9696 2014-02-06  Thomas Quinot  <quinot@adacore.com>
9698         * a-calend.adb (Formatting_Operations.Split): Ensure that
9699         Time_Error is raised for invalid time values.
9701 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
9703         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
9704         in GNATprove_Mode.
9706 2014-02-06  Robert Dewar  <dewar@adacore.com>
9708         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
9709         * exp_ch3.adb (Build_Dcheck_Function): Set
9710         Is_Discriminant_Check_Function.
9712 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9714         * exp_ch7.adb (Is_Subprogram_Call): Inspect
9715         the original tree in certain cases where a construct has been
9716         factored out and replaced by a reference to a temporary.
9718 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
9720         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
9721         parameters when propagating predicate function to full view.
9722         (Find_Type_Of_Object): Freeze base type of object type to catch
9723         premature use of discriminated private type without a full view.
9725 2014-02-06  Robert Dewar  <dewar@adacore.com>
9727         * sprint.adb: Minor reformatting.
9729 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9731         * exp_ch4.adb (Process_Transient_Object): Add local variable
9732         Temp_Ins. When the transient object is initialized by an
9733         aggregate, the hook must capture the object after the last
9734         component assignment takes place.
9735         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
9736         routine Is_Subprogram_Call.
9737         (Is_Subprogram_Call): Inspect an
9738         aggregate that has been heavily expanded for subprogram calls.
9739         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
9740         and Temp_Ins.  Remove the nested declare block and adjust the
9741         indentation. When the transient object is initialized by an
9742         aggregate, the hook must capture the object after the last
9743         component assignment takes place.
9745 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9747         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
9748         external states with enabled properties that do not match the
9749         global mode.
9750         (Property_Error): New routine.
9751         * sem_res.adb (Property_Error): New routine.
9752         (Resolve_Actuals): Detect illegal uses of external variables with
9753         enabled properties in procedure calls that do not match the mode of
9754         the corresponding formal parameter.
9756 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
9758         * sem_util.adb (Has_Enabled_Property): Rename
9759         formal parameter Prop_Nam to Property. Update the comment on usage
9760         and all occurrences in the body. Add local variable Prop_Nam. When
9761         inspecting a property with an expression, the property name
9762         appears as the first choice of the component association.
9764 2014-02-04  Robert Dewar  <dewar@adacore.com>
9766         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
9768 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
9770         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
9771         for consistency with other messages.
9773 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
9775         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
9776         iterator, indicate that the element is a constant if the container
9777         type does not have a variable indexing aspect.
9778         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
9779         marked as constant, do not reset its Ekind, to ensure that
9780         container elements in an element loop are not modified if the
9781         container (e.g. a hashed set) only has a constant indexing aspect.
9783 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
9785         * g-souinf.ads: Subprograms in this unit are actually not pure.
9786         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
9787         * einfo.ads (Is_Pure): Update doc to match implementation.
9789 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
9791         * exp_ch13.adb: Minor spelling fix.
9793 2014-02-04  Robert Dewar  <dewar@adacore.com>
9795         * opt.ads: Minor comment update.
9797 2014-02-04  Robert Dewar  <dewar@adacore.com>
9799         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
9800         instead of Replace.
9802 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
9804         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
9805         on null expressions if component type is non-null, when the
9806         corresponding association covers an empty range of index values.
9808 2014-02-04  Robert Dewar  <dewar@adacore.com>
9810         * sinfo.ads: Further comments on N_Expression_With_Actions node.
9812 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
9814         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
9815         variables Out_Items and Ref_Global. Remove local constant
9816         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
9817         and D8. Remove the useless collection of global items as this
9818         was a leftover from an earlier version of the routine. Move
9819         several routines out to avoid deep nesting and indentation.
9820         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
9821         parameter Do_Checks to Post_Errors. Update the comment on usage.
9822         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
9823         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
9824         to Post_Errors. Update the comment on usage. Account for the
9825         case where a self referential state may have a null input_list.
9826         (Is_Self_Referential): New routine.
9828 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
9830         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
9831         entity renames an expression, as in the case of an object of
9832         an unconstrained type initialized by a function call, defer the
9833         rewriting of the expression to the expander.
9834         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
9835         'Alignment): If the entity renames an expression, introduce
9836         temporary to capture value, and rewrite original declaration to
9837         use temporary.
9839 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
9841         * g-comlin.adb: Minor typo fix.
9843 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
9845         * freeze.adb (Freeze_All): Types derived from a formal
9846         access_to_classwide type do not have a finalization master.
9848 2014-02-04  Robert Dewar  <dewar@adacore.com>
9850         * sprint.adb: Minor reformatting.
9852 2014-02-04  Robert Dewar  <dewar@adacore.com>
9854         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
9855         cases where Actions is a null list.
9856         * sinfo.ads (N_Expression_With_Actions): Actions can be
9857         temporarily empty during semantic analysis, but must be non-empty
9858         in the final expanded tree.
9860 2014-01-31  Robert Dewar  <dewar@adacore.com>
9862         * exp_ch9.adb: Minor reformatting.
9864 2014-01-31  Emmanuel Briot  <briot@adacore.com>
9866         * g-comlin.adb (Set_Command_Line): Take the switches
9867         configuration from the Command_Line_Config.
9869 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
9871         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
9872         refinement clause.
9874 2014-01-31  Vincent Celier  <celier@adacore.com>
9876         * projects.texi: Add more documentation about others used as an
9877         index in indexed attributes.
9879 2014-01-31  Robert Dewar  <dewar@adacore.com>
9881         * gnat_ugn.texi: Minor update.
9882         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
9883         * exp_util.adb: Minor reformatting.
9885 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
9887         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
9888         depends on data that is not private to the protected object,
9889         and potentially modifiable in unsynchronized fashion.
9891 2014-01-31  Yannick Moy  <moy@adacore.com>
9893         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
9894         GNATprove_Mode.
9896 2014-01-31  Robert Dewar  <dewar@adacore.com>
9898         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
9899         for Unknown_Package.
9900         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
9902 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
9904         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
9905         the logic that generates a runtime check to determine the
9906         controlled status of the object about to be allocated or
9907         deallocated. Class-wide types now always use a runtime check
9908         even if they appear as generic actuals.
9909         (Find_Object): Detect
9910         a special case that involves interface class-wide types because
9911         the object appears as a complex expression.
9913 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
9915         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
9916         subprogram with an incomplete untagged formals on the list of
9917         private dependents, to verify that the type is properly completed
9918         in the private part.
9919         * sem_attr.adb: Code clean up.
9921 2014-01-31  Robert Dewar  <dewar@adacore.com>
9923         * exp_ch6.adb: Minor reformatting.
9925 2014-01-31  Vincent Celier  <celier@adacore.com>
9927         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
9928         when Pkg is unknown.
9930 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
9932         * sem_res.adb (Resolve_Entity_Name): Comment
9933         reformatting. Allow volatile objects in various generated checks.
9935 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
9937         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
9938         component association, set the etype of the identifier, for
9939         SPARK use.
9941 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
9943         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
9944         declared in a package, not checks can apply to the subprogram.
9946 2014-01-31  Robert Dewar  <dewar@adacore.com>
9948         * erroutc.adb (Validate_Specific_Warnings): Warnings are
9949         controlled -gnatw.W.
9950         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
9951         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
9953 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
9955         * exp_disp.adb: Update comments.
9957 2014-01-31  Yannick Moy  <moy@adacore.com>
9959         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
9960         Save_Global_References): Guard access to expression in aspect.
9962 2014-01-31  Yannick Moy  <moy@adacore.com>
9964         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
9965         Issue an error when the pragma is applied to a generic unit,
9966         a generic declaration, or inside a generic.
9968 2014-01-31  Yannick Moy  <moy@adacore.com>
9970         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
9971         entity.
9973 2014-01-31  Robert Dewar  <dewar@adacore.com>
9975         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
9976         reformatting.
9978 2014-01-31  Tristan Gingold  <gingold@adacore.com>
9980         * exp_disp.adb: Add a historic note.
9982 2014-01-31  Robert Dewar  <dewar@adacore.com>
9984         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
9985         Process_Deferred_References.
9987 2014-01-31  Yannick Moy  <moy@adacore.com>
9989         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
9990         ineffective pragma Warnings(Off) in GNATprove_Mode.
9992 2014-01-31  Bob Duff  <duff@adacore.com>
9994         * s-taskin.ads: Minor comment fix.
9995         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
9996         just direct dependents. If this is actually an abort, each task
9997         will take care of aborting its dependents, so all dependents will
9998         get aborted, as before. However, when this is called the second
9999         time from Vulnerable_Complete_Master "for convenience" (i.e. to
10000         kill off tasks waiting at terminate alternatives), aborting
10001         indirect dependents is wrong, because it causes some unrelated
10002         tasks to get aborted.
10004 2014-01-31  Robert Dewar  <dewar@adacore.com>
10006         * sem_ch4.adb: Minor reformatting.
10008 2014-01-31  Robert Dewar  <dewar@adacore.com>
10010         * exp_ch2.adb: New calling sequence for Is_LHS.
10011         * frontend.adb: Add call to Process_Deferred_References.
10012         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
10013         (Deferred_References): New table.
10014         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
10015         entries.
10016         (Find_Expanded_Name): Ditto.
10017         * sem_res.adb: New calling sequence for Is_LHS.
10018         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
10019         * sem_warn.adb: Call Process_Deferred_References before issuing
10020         warnings.
10022 2014-01-31  Tristan Gingold  <gingold@adacore.com>
10024         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
10025         use of System_Tasking_Protected_Objects_Single_Entry.
10026         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
10027         of Protected_Single_Entry_Call.
10028         (Expand_N_Timed_Entry_Call): Remove single_entry case.
10029         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
10030         single_entry case.
10031         (Make_Disp_Timed_Select_Body): Likewise.
10032         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
10033         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
10034         Self_Id parameter.
10035         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
10036         (Wait_For_Completion_With_Timeout): Remove.
10037         (Protected_Single_Entry_Call): Remove Mode parameter
10038         (always Simple_Call).
10039         (Service_Entry): Remove Self_Id constant (not used anymore).
10040         (Timed_Protected_Single_Entry_Call): Remove.
10041         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
10042         (Protected_Single_Entry_Call): Remove Mode parameter.
10044 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10046         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
10047         * einfo.ads (Get_Pragma): Update the comment on special pragmas
10048         handled by this routine.
10049         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
10050         to the contract of the related subprogram body.
10051         * sem_util.adb (Add_Contract_Item): Handle the insertion of
10052         pragma Refined_Post into the contract of a subprogram body.
10053         * sinfo.ads Update the documentation of node N_Contract.
10054         * sem_res.adb (Resolve_Entity_Name): Add a guard
10055         to detect abstract states and variables only when checking the
10056         SPARK 2014 rules concerning volatile object placement.
10058 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
10060         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
10061         null is compatible with any access type.
10063 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10065         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
10066         placement is not in a package.
10068 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10070         * sem_util.adb (Has_Enabled_Property): Compare the character field of
10071         the sole property.
10073 2014-01-29  Robert Dewar  <dewar@adacore.com>
10075         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
10076         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
10077         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
10079 2014-01-29  Robert Dewar  <dewar@adacore.com>
10081         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
10082         * sem_warn.adb (Check_References): Suppress warnings if inside
10083         Initial_Condition pragma.
10085 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10087         * sem_prag.adb (Check_Missing_Part_Of): List all values of
10088         State_Space_Kind for readability reasons. Do not emit an error on
10089         a private item when the enclosing package lacks aspect/pragma
10090         Abstract_State. Do not emit an error on a private package
10091         instantiation when the corresponding generic template lacks
10092         visible state.
10093         (Has_Visible_State): New routine.
10094         * sem_util.adb (Find_Placement_In_State_Space): The visible
10095         declarations of any kind of child units in general act as proper
10096         placement location.
10098 2014-01-29  Robert Dewar  <dewar@adacore.com>
10100         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
10101         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
10102         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
10103         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
10104         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
10105         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
10106         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
10107         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
10108         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
10109         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
10110         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
10111         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
10112         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
10113         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
10114         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10115         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
10116         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
10117         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
10118         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
10119         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
10120         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
10121         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
10122         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
10123         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
10124         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
10125         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
10126         s-regpat.adb, s-secsta.adb, s-stalib.ads,
10127         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
10128         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
10129         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
10130         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
10131         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
10133 2014-01-29  Robert Dewar  <dewar@adacore.com>
10135         * expander.adb: Minor reformatting.
10137 2014-01-29  Javier Miranda  <miranda@adacore.com>
10139         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
10140         previous patch.
10142 2014-01-29  Javier Miranda  <miranda@adacore.com>
10144         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
10145         that checks if an interface types defines the predefined "="
10146         function because the compiler was erroneously not generating the
10147         predefined "=" primitive as soon as the name of some interface
10148         primitive is "=" (formals were not checked).
10150 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
10152         * expander.adb (Expander): In GNATprove mode, do not process
10153         transient scopes: they are in general not created in this mode,
10154         and an attempt to examine them will lead to constraint errors when
10155         processing configuration pragmas that have analyzable expressions.
10157 2014-01-29  Vincent Celier  <celier@adacore.com>
10159         * clean.adb (Gnatclean): Fail if main project is an aggregate
10160         project or if there is an aggregate library project in the
10161         project tree.
10162         * gnatcmd.adb: Fail if the main project is an aggregate project
10163         or if there is an aggegate library project in the project tree.
10164         * make.adb (Initialize): : Fail if main project is an aggregate
10165         project or if there is an aggregate library project in the
10166         project tree.
10167         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
10168         * prj-makr.adb (Initialize): Fail if the main project is an
10169         aggregate project or an aggregate library project.
10171 2014-01-29  Vincent Celier  <celier@adacore.com>
10173         * prj-part.adb (Check_Import_Aggregate): New procedure
10174         to check if an imported project is an aggregate project.
10175         (Parse_Single_Project): Call Check_Import_Aggregate
10176         * projects.texi: Document that aggregate projects cannot be
10177         extended or imported.
10179 2014-01-29  Robert Dewar  <dewar@adacore.com>
10181         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
10182         reformatting and code clean up.
10183         * gnat_ugn.texi: Add documentation section on Atomic Variables
10184         and Optimization.
10186 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10188         * einfo.adb Flag264 is now unused.
10189         (Has_Body_References): Removed.
10190         (Set_Has_Body_References): Removed.
10191         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
10192         * einfo.ads Update the comment on usage of attribute
10193         Body_References. Remove attribute Has_Body_References and its
10194         usage in nodes.
10195         (Has_Body_References): Removed along with pragma Inline.
10196         (Set_Has_Body_References): Removed along with pragma Inline.
10197         * sem_prag.adb (Analyze_Global_Item): Move the call to
10198         Record_Possible_Body_Reference in the state related checks
10199         section. Add a comment intended function.
10200         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
10201         in the state related checks section. Add a comment intended function.
10202         (Analyze_Refinement_Clause): Cleanup the illegal body reference
10203         reporting. Add a comment on timing of error reporting.
10204         (Record_Possible_Body_Reference): Reimplement the routine.
10206 2014-01-29  Vincent Celier  <celier@adacore.com>
10208         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
10209         unit-based languages.
10210         (Mains.Complete_Mains.Do_Complete): Use the source file project
10211         tree when calling Find_File_Add_Extension. Use the correct
10212         project name when reporting an error.
10214 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10216         * aspects.adb Add an entry for aspect Part_Of in table
10217         Canonical_Aspect.
10218         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
10219         Aspect_Argument, Aspect_Names and Aspect_Delay.
10220         * atree.h Define Elist9.
10221         * atree.adb (Elist9): New routine.
10222         (Set_Elist9): New routine.
10223         * atree.ads (Elist9): New routine.
10224         (Set_Elist9): New routine.
10225         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
10226         the list of node usage.  Remove Refined_State from the list of
10227         node usage.
10228         (Encapsulating_State): New routine.
10229         (Get_Pragma):
10230         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
10231         (Refined_State): Removed.
10232         (Set_Encapsulating_State): New routine.
10233         (Set_Part_Of_Constituents): New routine.
10234         (Set_Refined_State): Removed.
10235         (Write_Field9_Name): Add an entry
10236         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
10237         Encapsulating_State. Remove the entry for Refined_State.
10238         * einfo.ads Add new attributes Encapsulating_State
10239         and Part_Of_Constituents alond with their usage in
10240         entities. Remove attribute Refined_State along with its
10241         usage in entities.
10242         (Encapsulating_State): New routine and
10243         pragma Inline.  (Get_Pragma): Update the comment on usage.
10244         (Part_Of_Constituents): New routine and pragma Inline.
10245         (Refined_State): Removed along with pragma Inline.
10246         (Set_Encapsulating_State): New routine and pragma Inline.
10247         (Set_Part_Of_Constituents): New routine and pragma Inline.
10248         (Set_Refined_State): Removed along with pragma Inline.
10249         * par-prag.adb Pragma Part_Of does not need any special processing
10250         by the parser.
10251         * sem_ch3.adb (Analyze_Declarations): Remove local variables
10252         Body_Id and Prag. Call separate routines to analyze the
10253         contract of a package [body].
10254         (Analyze_Object_Contract):
10255         Update the comment on usage. Remove local variables
10256         Items and Nam. Use Get_Pragma rather than traversing the
10257         classification list.  Verify whether the lack of indicator
10258         Part_Of agrees with the placement of the variable in state space.
10259         (Analyze_Object_Declaration): Initialize the encapsulating state
10260         of a variable.  (Requires_State_Refinement): Moved to sem_util.
10261         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
10262         (Analyze_Package_Contract): New routine.
10263         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
10264         (Analyze_Package_Contract): New routine.
10265         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
10266         state and Part_Of constituents.
10267         * sem_ch13.adb (Analyze_Aspect_Specifications):
10268         Add processing for aspect Part_Of. Update all
10269         calls to Decorate_Delayed_Aspect_And_Pragma.
10270         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
10271         not need any special processing at freeze time.
10272         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
10273         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
10274         update the associated comment.
10275         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
10276         (Analyze_Abstract_State): Add new global variable State_Id. Remove
10277         local constants Errors and Loc. Remove local variables Is_Null
10278         and State_Nam. Create the entity of the abstract state on the
10279         spot, before all remaining checks are performed. Verify that a
10280         missing Part_Of option agrees with the placement of the abstract
10281         state within the state space.
10282         (Analyze_Depends_In_Decl_Part):
10283         Add new global variables Constits_Seen and States_Seen. Check
10284         that a state and a corresponding constituent do not appear
10285         in pragma [Refined_]Depends.
10286         (Analyze_Global_In_Decl_Part):
10287         Add new global variables Constits_Seen and States_Seen. Check
10288         that a state and a corresponding constituent do not appear
10289         in pragma [Refined_]Global.
10290         (Analyze_Global_Item):
10291         Remove the now obsolete code that deals with Part_Of.
10292         Add the entity of the global item to the list of processed
10293         items.  (Analyze_Initializes_In_Decl_Part): Add new global
10294         variables Constits_Seen and States_Seen. Check that a state
10295         and a corresponding constituent do not appear in pragma
10296         Initializes.
10297         (Analyze_Initialization_Item): Add the entity
10298         of the initialization item to the list of processed items.
10299         (Analyze_Input_Item): Add the entity of the initialization
10300         item to the list of processed items.
10301         (Analyze_Input_Output):
10302         Remove the now obsolete code that deals with Part_Of.  Add the
10303         entity of the input/output to the list of processed items.
10304         (Analyze_Part_Of): New routine.
10305         (Analyze_Part_Of_Option): Remove
10306         local constant Par_State. Add local constant Encaps and local
10307         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
10308         the option. Turn the related state into a Part_Of constituent
10309         if the option is legal.
10310         (Analyze_Pragma): Add processing
10311         for pragma Part_Of.
10312         (Analyze_Refined_State_In_Decl_Part):
10313         Remove global constants Pack_Body and Spec_Id. Remove
10314         global variables Abstr_States and Hidden_States. Add new
10315         global variables Available_States, Body_Id, Body_States and
10316         Spec_Id. Add new local constant Body_Decl. Reimplement the
10317         logic that extracts the states available for refinement from
10318         the related package and the body hidden states of the said
10319         package.
10320         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
10321         (Check_Applicable_Policy): Alphabetize body.
10322         (Check_Dependency_Clause): Replace Refined_State
10323         with Encapsulating_State.
10324         (Check_Matching_Constituent):
10325         Reimplement the logic that determines whether an item is a valid
10326         / invalid constituent of the current refined state. Return when
10327         a construct does not denote a valid abstract state. Extract the
10328         list of Part_Of constituents for further analysis. Check that all
10329         Part_Of constituents of a state have been used in its refinement.
10330         (Check_Matching_State): Update the comment on usage. Operate
10331         on the list of available states.
10332         (Check_Missing_Part_Of): New routine.
10333         (Check_Refined_Global_Item): Replace Refined_State
10334         with Encapsulating_State.
10335         (Check_State_And_Constituent_Use): New routine.
10336         (Create_Abstract_State): New routine.
10337         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
10338         (Is_Part_Of): Removed.
10339         (Collect_Body_States): New routine.
10340         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
10341         (Collect_Hidden_States): Removed.
10342         (Report_Unrefined_States): Change the profile of the procedure along
10343         with the comment on usage.
10344         (Report_Unused_Constituents): New routine.
10345         (Report_Unused_Hidden_States): Removed.
10346         (Report_Unused_States): New routine.
10347         * sem_prag.ads (Check_Missing_Part_Of): New routine.
10348         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
10349         appear in the classification pragmas of a package instantiation
10350         or a variable.
10351         (Find_Placement_In_State_Space): New routine.
10352         (Is_Child): Removed.
10353         (Is_Child_Or_Sibling): Remove formal
10354         parameter Private_Child. Remove the private child checks.
10355         (Requires_State_Refinement): Moved from sem_ch3.
10356         * sem_util.ads Add new type State_Space_Kind along with
10357         comment on its usage and values.
10358         (Add_Contract_Item): Update the comment on usage.
10359         (Find_Body_Discriminal): Alphabetize spec.
10360         (Find_Placement_In_State_Space): New routine.
10361         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
10362         and update the comment on usage.
10363         (Requires_State_Refinement): Moved from sem_ch3.
10364         * sinfo.ads: Update the documentation of N_Contract.
10365         * snames.ads-tmpl The predefined name for Part_Of is now used
10366         to denote a pragma. Add Pragma_Id for Part_Of.
10368 2014-01-29  Emmanuel Briot  <briot@adacore.com>
10370         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
10371         machine as needed.
10372         (Dump): New subprogram.
10374 2014-01-29  Tristan Gingold  <gingold@adacore.com>
10376         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
10377         Expand_Entry_Declaration to factorize code.
10379 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
10381         * checks.adb: minor clarification.
10382         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
10383         search for primitive operations to the entities that immediately
10384         follow the type declaration.
10386 2014-01-29  Tristan Gingold  <gingold@adacore.com>
10388         * exp_ch9.adb (Build_Protected_Entry): Do not call
10389         Complete_Entry_Body anymore.
10390         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
10391         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
10393 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
10395         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
10396         string when the Name input bigger than allowed. Adapt the function
10397         specification.
10399 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
10401         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
10402         if expression is within a case_expression of if_expression.
10404 2014-01-29  Robert Dewar  <dewar@adacore.com>
10406         * exp_ch9.adb, inline.ads: Minor reformatting.
10408 2014-01-29  Tristan Gingold  <gingold@adacore.com>
10410         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
10412 2014-01-29  Yannick Moy  <moy@adacore.com>
10414         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
10415         SPARK_Mode_Pragma components to be able to analyze generic
10416         instance.
10417         * sem_ch12.adb (Analyze_Package_Instantiation,
10418         Inline_Instance_Body, Need_Subprogram_Instance_Body,
10419         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
10420         for future analysis of the instance.
10421         (Instantiate_Package_Body,
10422         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
10423         from instantiation to analyze the instance.
10425 2014-01-29  Robert Dewar  <dewar@adacore.com>
10427         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
10428         reorganization.
10430 2014-01-29  Yannick Moy  <moy@adacore.com>
10432         * gnat_rm.texi: Update description of SPARK_Mode pragma.
10434 2014-01-29  Tristan Gingold  <gingold@adacore.com>
10436         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
10438 2014-01-29  Thomas Quinot  <quinot@adacore.com>
10440         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
10442 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
10444         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
10445         resulting string is an internal entity. and thus requires no
10446         initialization. This is relevant when Initialize_ Scalars is
10447         enabled, because the resultant spurious initialization may lead to
10448         secondary stack anomalies that produce a mangled name for a task.
10450 2014-01-29  Yannick Moy  <moy@adacore.com>
10452         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
10453         not inherited from spec anymore. Check consistency
10454         rules after processing of declarations.
10455         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
10456         from spec anymore. Check consistency rules after processing of
10457         declarations.
10458         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
10459         packages.
10460         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
10461         consistency rules.
10463 2014-01-27  Robert Dewar  <dewar@adacore.com>
10465         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
10466         to unordered msg.
10467         (Resolve_Range): Add type name/location to unordered msg.
10469 2014-01-27  Claire Dross  <dross@adacore.com>
10471         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
10472         Capacity) is only called with Capacity >= Length (Source) and
10473         Capacity in Capacity_Range.
10474         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
10475         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
10476         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
10477         in the code is this is not the case.
10479 2014-01-27  Thomas Quinot  <quinot@adacore.com>
10481         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
10482         selected component in an instance where the component of the
10483         actual is not visibile at instantiation.
10485 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10487         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
10488         has a dynamic predicate, generate freeze node for Actual_Subtype
10489         at once, because the declaration of the corresponding predicate
10490         function will make reference to it.
10492 2014-01-27  Tristan Gingold  <gingold@adacore.com>
10494         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
10496 2014-01-27  Robert Dewar  <dewar@adacore.com>
10498         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
10499         for 2**X optimization.
10501 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10503         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
10504         explicitly whether value is in range of Character, because the
10505         library is typically compiled with range checks disabled, and
10506         we cannot rely on the implicit check on the argument of 'Val.
10508 2014-01-27  Vincent Celier  <celier@adacore.com>
10510         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
10511         not the Target to itself.
10513 2014-01-27  Robert Dewar  <dewar@adacore.com>
10515         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
10516         changes to avoid incorrect use of unordered enum types.
10518 2014-01-27  Thomas Quinot  <quinot@adacore.com>
10520         * sem_ch4.adb: Minor reformatting.
10522 2014-01-27  Robert Dewar  <dewar@adacore.com>
10524         * scn.adb (Check_End_Of_Line): Removed.
10525         (Error_Long_Line): Removed.
10526         (Determine_License): Use versions of above routines from Scanner.
10527         * scng.adb (Check_End_Of_Line): Moved to spec.
10528         (Error_Long_Line): Removed, no longer used.
10529         * scng.ads (Check_End_Of_Line): Moved here from body.
10531 2014-01-27  Tristan Gingold  <gingold@adacore.com>
10533         * exp_ch7.adb (Build_Cleanup_Statements): Call
10534         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
10535         for protected body.
10536         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
10537          Remove Service_Name variable.
10538         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
10539         factorize code from the above subprograms.
10540         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
10542 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
10544         * einfo.adb (Has_Option): Reimplemented.
10545         * sem_prag.adb (Analyze_Refinement_Clause): Add global
10546         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
10547         External_Constit_Seen and State. Add local variables Body_Ref,
10548         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
10549         avoid a cumbersome while pool. Verify the legality of an external
10550         state and relevant properties.
10551         (Check_External_Property): New routine.
10552         (Check_Matching_State): Remove parameter profile
10553         and update comment on usage.
10554         (Collect_Constituent): Store the
10555         relevant external property of a constituent.
10556         * sem_util.adb (Async_Readers_Enabled): Update the call to
10557         Has_Enabled_Property.
10558         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
10559         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
10560         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
10561         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
10562         Update comment on usage. Reimplement the logic to recognize the various
10563         formats of properties.
10565 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10567         * par-ch5.adb: Minor reformatting.
10569 2014-01-27  Tristan Gingold  <gingold@adacore.com>
10571         * s-tposen.ads: Harmonize style and comments.
10573 2014-01-27  Vincent Celier  <celier@adacore.com>
10575         * projects.texi: Document that shared library projects, by
10576         default, cannot import projects that are not shared library
10577         projects.
10579 2014-01-27  Robert Dewar  <dewar@adacore.com>
10581         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
10582         of Rewrite.
10584 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10586         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
10587         any other exception is raised.
10588         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
10589         still necessary to perform a conversion in order to remove overlong
10590         encodings.
10592 2014-01-27  Robert Dewar  <dewar@adacore.com>
10594         * exp_smem.adb: Minor reformatting.
10596 2014-01-27  Thomas Quinot  <quinot@adacore.com>
10598         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
10600 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10602         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
10603         nodes for operands to the original node for the call, to preserve
10604         Original_Node pointers within the resolved operands, given that
10605         they may have been rewritten as well. Previous approach copied
10606         the operands into a new tree and lost those pointers.
10608 2014-01-27  Claire Dross  <dross@adacore.com>
10611         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
10613 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10615         * sem_util.adb (Check_Internal_Protected_Use): A call through
10616         an anonymous access parameter of the current protected function
10617         is not a potential modification of the current object.
10619 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10621         * a-cobove.adb (Reserve_Capacity): Procedure raises
10622         Capacity_Error, not Constraint_Error, when request cannot be
10623         satisfied.
10625 2014-01-27  Vincent Celier  <celier@adacore.com>
10627         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
10628         not the Target to itself.
10630 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10632         * exp_ch4.adb (Expand_Concatenate): If the target of the
10633         concatenation is a library-level entity, always use the off-line
10634         version of concatenation, regardless of optimization level. This
10635         is space-efficient, and prevents linking problems when some
10636         units are compiled with different optimization levels.
10638 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10640         * sem_ch5.adb: Code clean up.
10642 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10644         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
10645         when an array or container iterator includes a subtype indication,
10646         which is only legal in an element iterator.
10648 2014-01-27  Thomas Quinot  <quinot@adacore.com>
10650         * exp_ch7.adb: Minor reformatting.
10652 2014-01-27  Robert Dewar  <dewar@adacore.com>
10654         * opt.adb (SPARK_Mode): Default for library units is None rather
10655         than Off.
10656         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
10657         no longer ordered.
10658         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
10659         possibility.
10660         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
10662 2014-01-27  Robert Dewar  <dewar@adacore.com>
10664         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
10665         Suspicious_Labels table if we have identifier; followed by loop
10666         or block.
10667         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
10668         * par.adb (Suspicious_Labels): New table.
10670 2014-01-27  Robert Dewar  <dewar@adacore.com>
10672         * exp_aggr.adb (Check_Bounds): Reason is range check, not
10673         length check.
10675 2014-01-27  Yannick Moy  <moy@adacore.com>
10677         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
10678         reference.
10679         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
10680         function now.
10681         (Add_SPARK_Xrefs): Include references to constants.
10682         * spark_xrefs.ads Document new character 'c' for references to
10683         constants.
10685 2014-01-27  Thomas Quinot  <quinot@adacore.com>
10687         * exp_smem.adb (Add_Write_After): For a function call, insert write as
10688         an after action in a transient scope.
10690 2014-01-27  Thomas Quinot  <quinot@adacore.com>
10692         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
10693         to a shared variable as an OUT formal in a call to an init proc,
10694         the 'Read call must be emitted after, not before, the call.
10696 2014-01-27  Robert Dewar  <dewar@adacore.com>
10698         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
10700 2014-01-27  Robert Dewar  <dewar@adacore.com>
10702         * a-wichha.adb (Character_Set_Version): Change to output proper
10703         value.
10705 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
10707         * einfo.adb (Is_Input_Only_State): Removed.
10708         (Is_Non_Volatile_State): Removed.
10709         (Is_Output_State): Removed.
10710         * einfo.ads (Is_Input_Only_State): Remove attribute and
10711         subprogram. Update related entity.
10712         (Is_Non_Volatile_State):
10713         Remove attribute and subprogram. Update related entity.
10714         (Is_Output_State): Removed attribute and subprogram. Update
10715         related entity.
10716         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
10717         generated code.
10718         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
10719         an object, not just variables.
10720         (Analyze_Object_Contract): New routine.
10721         (Analyze_Variable_Contract): Removed.
10722         (Process_Discriminants): Detect an illegal use of volatile
10723         discriminant in SPARK mode.
10724         * sem_ch5.adb (Analyze_Iterator_Specification):
10725         Detect an illegal use of volatile loop variable.
10726         (Analyze_Loop_Parameter_Specification): Detect an illegal use
10727         of volatile loop variable.
10728         * sem_ch6.adb (Process_Formals): Update the volatile object
10729         detection. Detect an illegal formal of mode IN OUT or OUT in
10730         SPARK mode. Enhance the error messages with references.
10731         * sem_ch12.adb (Instantiate_Object): Update the volatile object
10732         detection. Enhance the error messages with references.
10733         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
10734         messages with references.
10735         (Analyze_Contract_Case): Enhance the error messages with references.
10736         (Analyze_External_Property): Call Check_Duplicate_Property to process
10737         an external property.
10738         (Analyze_External_Property_In_Decl_Part): New routine.
10739         (Analyze_External_State_In_Decl_Part): Removed.
10740         (Analyze_Global_Item): Detect an illegal
10741         use of a volatile constant. Detect an illegal use
10742         of a variable with enabled Effective_Reads. Enhance
10743         the error messages with references. Remove obsolete
10744         checks concerning Input_Only and Output_Only states.
10745         (Analyze_Initialization_Item): Enhance the error messages
10746         with references.
10747         (Analyze_Initializes_In_Decl_Part): Do not
10748         collect the states and variables when the initialization list
10749         is null.
10750         (Analyze_Input_Item): Enhance the error messages with references.
10751         (Analyze_Input_Output): Enhance the error messages with references.
10752         (Analyze_Pragma): Enhance the error messages with references.
10753         (Analyze_Refinement_Clause): Code reformatting.
10754         (Analyze_Refined_Depends_In_Decl_Part):
10755         Rename global variable Global to Reg_Global and update all
10756         occurrences. Add local variables D7 and D8. Update the error
10757         messages with references. Update the call to Collect_Global_Items.
10758         (Analyze_Refined_Global_In_Decl_Part): Add local variables
10759         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
10760         the call to Collect_Global_Items.  Account for a Proof_In state
10761         in null / useless refinement checks. Verify the coverage of
10762         Proof_In states.
10763         (Check_Dependency_Clause): Remove local variable
10764         Out_Constits. Remove the retrieval and removal of constituents
10765         for an Output_Only state. Remove the reporting of unused
10766         Output_Only state constituents.
10767         (Check_Duplicate_Mode): Enhance
10768         the error message with a reference.
10769         (Check_Duplicate_Property): New routine.
10770         (Check_Duplicate_Option): Enhance the error message with a reference.
10771         (Check_External_Properties): Enhance the error message with a reference.
10772         (Check_Function_Return): Enhance the error message with a reference.
10773         (Check_In_Out_States): Update
10774         comment on usage. Add a specialized error message for Proof_In
10775         constituents. Enhance the error message with a reference.
10776         (Check_Input_States): Update comment on usage. Account for
10777         possible Proof_In constituents. Enhance the error message
10778         with a areference.
10779         (Check_Matching_Constituent): Enhance the error message with a
10780         reference.
10781         (Check_Matching_State): Enchance the error message with a reference.
10782         (Check_Mode): Add local variable From_Global. Update the call to
10783         Find_Mode.  Emit more precise error messages concerning extra items
10784         (Check_Mode_Restriction_In_Enclosing_Context): Consider
10785         pragma Refined_Global.  Enhance the error message with a
10786         reference.
10787         (Check_Mode_Restriction_In_Function): Enhance the error message with
10788         a reference.
10789         (Check_Output_States): Update comment on usage. Add local variable
10790         Posted.  Account for possible Proof_In constituents. Produce a detailed
10791         list of missing constituents.
10792         (Check_Proof_In_States): New routine.
10793         (Check_Refined_Global_Item): Handle Proof_In
10794         constituents. Enchance the error message with a reference.
10795         (Collect_Global_Items): Add formal parameters Proof_In_Items
10796         and Has_Proof_In_State. Update the comment on usage. Account
10797         for Proof_In items.
10798         (Create_Or_Modify_Clause): Enchance
10799         the error message with a reference.
10800         (Find_Mode): Add
10801         formal parameter From_Global. Update the comment on usage.
10802         Detect when the mode is governed by pragma [Refined_]Global.
10803         (Output_Constituents): Removed.
10804         (Report_Extra_Constituents):
10805         Report extra Proof_In constituents.
10806         (Report_Unused_Constituents): Removed.
10807         (Usage_Error): Code reformatting. Enhance the error
10808         messages with reference.
10809         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
10810         (Analyze_External_State_In_Decl_Part): Removed.
10811         * sem_res.adb (Resolve_Actuals): Update the volatile object
10812         detection. Enhance the error message with a reference.
10813         (Resolve_Entity_Name): Update the volatile object
10814         detection. Enhance the error message with a reference.
10815         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
10816         (Is_SPARK_Volatile_Object): New routine.
10817         (Has_Volatile_Component): New routine.
10818         * sem_util.ads (Is_Delegate): Alphabetized.
10819         (Is_SPARK_Volatile_Object): New routine.
10820         (Has_Volatile_Component): New routine.
10821         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
10823 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
10825         * sem_attr.adb: Resolve fully prefix of 'Update.
10827 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
10829         * gnat_rm.texi: Minor clarifications.
10831 2014-01-27  Robert Dewar  <dewar@adacore.com>
10833         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
10834         about call that is generated as part of an Initial_Condition
10835         check.
10836         * sem_prag.adb: Minor spelling correction.
10838 2014-01-27  Robert Dewar  <dewar@adacore.com>
10840         * sem_prag.adb (Set_Convention_From_Pragma): Check that
10841         convention Ghost can only apply to functions.
10842         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
10844 2014-01-27  Robert Dewar  <dewar@adacore.com>
10846         * gnat_ugn.texi: Add Short_Enums to documentation of
10847         -gnatet/-gnateT.
10849 2014-01-27  Robert Dewar  <dewar@adacore.com>
10851         * sem_prag.adb (Analyze_Input_Item): Correct check for input
10852         item in same package.
10853         * sem_util.ads, sem_util.adb (Within_Scope): New function.
10855 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
10857         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
10858         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
10859         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
10860         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
10861         maintained.
10863 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
10865         * gcc-interface/Makefile.in: Fix oversight.
10867 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
10869         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
10870         conversion from a thin pointer with a shifted value.
10871         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
10872         read-only flag from the values onto the result.
10873         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
10875 2014-01-25  Tristan Gingold  <gingold@adacore.com>
10877         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
10878         for E_Variable with a pragma Linker_Section.
10880 2014-01-25  Robert Dewar  <dewar@adacore.com>
10882         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
10883         with Default_Value aspect is passed in by copy.
10885 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
10887         * set_targ.adb: Set Short_Enums.
10888         * gcc-interface/lang.opt (fshort-enums): New option.
10889         * gcc-interface/misc.c (gnat_handle_option): Handle it.
10890         (gnat_post_options): Do not modify the global settings.
10892 2014-01-24  Robert Dewar  <dewar@adacore.com>
10894         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
10895         function.
10896         (Random_Decimal_Fixed): New generic function.
10897         * s-rannum.ads: Minor comment clarifications.
10899 2014-01-24  Robert Dewar  <dewar@adacore.com>
10901         * back_end.adb: Remove Short_Enums handling (handled in
10902         Ttypes/Get_Targ now) Minor added comments.
10903         * freeze.adb: Change name Short_Enums_On_Target to
10904         Target_Short_Enums.
10905         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
10906         * opt.ads: Minor comment updates.
10907         * sem_ch13.adb: Change name Short_Enums_On_Target to
10908         Target_Short_Enums.
10909         * set_targ.adb: Set Short_Enums from gcc back end.
10910         * set_targ.ads (Short_Enums): New variable.
10911         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
10912         Ttypes/Get_Targ now).
10913         * ttypes.ads (Target_Short_Enums): New constant boolean switch
10915 2014-01-24  Pascal Obry  <obry@adacore.com>
10917         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
10919 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
10921         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
10922         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
10923         stripped off.
10925 2014-01-24  Robert Dewar  <dewar@adacore.com>
10927         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
10929 2014-01-24  Vincent Celier  <celier@adacore.com>
10931         * prj.adb (Add_Aggregated_Project): Do not add a project in
10932         the list if it is already there.
10934 2014-01-24  Yannick Moy  <moy@adacore.com>
10936         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
10937         Correct the search for a subrogram declaration to which a pragma is
10938         attached.
10940 2014-01-24  Bob Duff  <duff@adacore.com>
10942         * gnat_ugn.texi: Document --decimal-grouping and
10943         --based-grouping switches in gnatpp.
10945 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
10947         * sinfo.ads: Documentation update.
10949 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
10951         * sem_ch3.adb (Constant_Redeclaration): New declaration is
10952         illegal if previous one has an initial expression that is an
10953         aggregate expanded into assignments.
10955 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
10957         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
10958         code reorganization to remove spurious warning on a loop with
10959         an array element iterator that has a null range.
10961 2014-01-24  Vincent Celier  <celier@adacore.com>
10963         * make.adb (Binding_Phase): When setting the Ada paths, use
10964         the library ALI dir, not the object dir in libraries.
10966 2014-01-24  Yannick Moy  <moy@adacore.com>
10968         * sinfo.ads: Add documentation of check flag fields.
10970 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
10972         * sem_res.adb (Resolve_Actuals): If an actual is a view
10973         conversion of a discriminated object, and the formal type is
10974         discriminated and constrained, apply a discriminant check to
10975         the object itself.
10977 2014-01-24  Robert Dewar  <dewar@adacore.com>
10979         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
10981 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
10983         * sem_ch3.adb (Analyze_Declarations): At the end of an
10984         appropriate declarative part, call Freeze_All from the first
10985         declaration in the scope, not from the first unfrozen one. This
10986         is necessary to apply visibility checks to entities with delayed
10987         aspects. Otherwise, in the presence of instantiations and cleanups
10988         that they may generate, the delayed aspects may be analyzed too
10989         late and produce spurious visibility errors.
10990         * sem_attr.adb: Place etype on range.
10991         * sem_ch6.adb: Documentation expression functions.
10993 2014-01-24  Robert Dewar  <dewar@adacore.com>
10995         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
10996         terminology in compiler).
10998 2014-01-24  Robert Dewar  <dewar@adacore.com>
11000         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
11001         categories, now that Ada 95 supports raise expressions.
11003 2014-01-24  Robert Dewar  <dewar@adacore.com>
11005         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
11006         Short_Enums_On_Target.
11007         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
11008         into account.
11009         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
11011 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11013         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
11014         indication is given explicity, check that it matches the array
11015         component type or the container element type of the domain
11016         of iteration.
11018 2014-01-24  Tristan Gingold  <gingold@adacore.com>
11020         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
11021         * gcc-interface/misc.c (flag_short_enums): Declare.
11022         (gnat_post_options): Set it.
11024 2014-01-24  Vincent Celier  <celier@adacore.com>
11026         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
11027         to cache the result when Including_Libraries is False.
11028         * prj-env.ads (Ada_Objects_Path): Update documentation
11029         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
11030         (Get_Object_Directory): Return the Library_Ali_Dir only when
11031         when Including_Libraries is True.
11032         * prj.ads (Get_Object_Directory): Fix and complete documentation
11033         (Project_Data): New component Ada_Objects_Path_No_Libs
11035 2014-01-24  Robert Dewar  <dewar@adacore.com>
11037         * checks.adb (Expr_Known_Valid): Result of fpt operator never
11038         considered valid.
11040 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
11042         * back_end.adb: Minor fix in comment.
11044 2014-01-24  Javier Miranda  <miranda@adacore.com>
11046         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
11047         required to report the error in case of task types.
11049 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11051         * sem_attr.adb: Additional index checking.
11053 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11055         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
11056         expressions in each component association, and for records note
11057         the entity in each association choice, for subsequent resolution.
11058         (Resolve_Attribute, case 'Update): Complete resolution of
11059         expressions in each component association.
11061 2014-01-24  Robert Dewar  <dewar@adacore.com>
11063         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
11064         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
11065         leading to wrong handling of SPARK_Mode for library units).
11067 2014-01-24  Robert Dewar  <dewar@adacore.com>
11069         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
11070         on generic instances (do not consider them to be internally
11071         generated)
11073 2014-01-24  Doug Rupp  <rupp@adacore.com>
11075         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
11076         vice pthread_sigmask.
11078 2014-01-24  Vincent Celier  <celier@adacore.com>
11080         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
11081         not default.
11083 2014-01-24  Vincent Celier  <celier@adacore.com>
11085         * prj-ext.adb (Add): Do not output anything when Silent is True,
11086         whatever the verbosity. When Source is From_External_Attribute,
11087         set the corresponding environment variable if it is not already set.
11088         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
11089         to False
11090         * prj-proc.adb (Process_Expression_For_Associative_Array):
11091         For attribute External, call Prj.Ext.Add with Silent set to
11092         True for the child environment, to avoid useless output in non
11093         default verbosity.
11095 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11097         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
11098         range given by a subtype indication, and force evaluation of
11099         the bounds, as for a simple range.
11100         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
11101         of bounds of slice for various kinds of discrete ranges.
11102         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
11103         Evaluate_Slice_Bounds.
11105 2014-01-24  Bob Duff  <duff@adacore.com>
11107         * s-taskin.ads (Activator): Make this Atomic, because
11108         Activation_Is_Complete reads it, and that can be called
11109         from any task. Previously, this component was only
11110         modified by the activator before activation, and by
11111         Self after activation.
11112         * a-taside.ads, a-taside.adb (Environment_Task,
11113         Activation_Is_Complete): Implement these missing functions.
11115 2014-01-24  Doug Rupp  <rupp@adacore.com>
11117         * init.c: Add a handler section for Android.
11119 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
11121         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
11123 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11125         * sem_ch4.adb (Operator_Check): If one operand is a
11126         Raise_Expression, set its type to that of the other operand.
11127         * sem_res.adb (Resolve_Raise_Expression): new procedure.
11128         (Resolve_Actuals): For an actual that is a Raise_Expression,
11129         set the type to that of the formal.
11130         * sem_type.adb (Find_Unique_Type): If one of the operands is a
11131         Raise_Expression, return type of the other operand.
11133 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11135         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
11136         component of the record has a type with a default aspect, and
11137         the corresponding aggregate component is initiaized with a box,
11138         use the default value in the rewritten aggregate.
11140 2014-01-24  Tristan Gingold  <gingold@adacore.com>
11142         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
11143         s-interr-sigaction.adb,
11144         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
11145         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
11146         to the call to Install_Restricted_Handlers.
11148 2014-01-24  Emmanuel Briot  <briot@adacore.com>
11150         * prj-nmsc.adb (Check_File): Add protection when the source is
11151         not fully initialized.
11153 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11155         * sem_util.adb (Is_Post_State): In a postcondition, a selected
11156         component that denotes an implicit dereference is a reference
11157         to the post state of the subprogram.
11159 2014-01-24  Robert Dewar  <dewar@adacore.com>
11161         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
11162         for generated subprograms.
11163         (Analyze_Subprogram_Specification): Ditto.
11165 2014-01-24  Vincent Celier  <celier@adacore.com>
11167         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
11168         attributes in package Builder of aggregate and aggregate library
11169         projects.
11170         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
11171         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
11172         Remove parameters.  Change error message from "... externally
11173         build library ..." to "... externally built project ...".
11174         (Process_Naming_Scheme.Check): Do not do any check in aggregate
11175         project, as attribute Library_Dir and Library_Name have already
11176         been detected as forbidden.
11178 2014-01-24  Vincent Celier  <celier@adacore.com>
11180         * prj-env.adb (Find_Project): If cached project path is not in
11181         project directory, look in current directory first and use cached
11182         project path only if project is not found in project directory.
11184 2014-01-24  Robert Dewar  <dewar@adacore.com>
11186         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
11188 2014-01-24  Vincent Celier  <celier@adacore.com>
11190         * projects.texi: Document that aggregate projects are only
11191         supported by gprbuild, but not by gnatmake.  Document that the
11192         only attribute Switches in package Binder of aggregate projects
11193         will be ignored if its index is not others.  Document that
11194         attribute Global_Config_File is allowed in package Binder of
11195         aggregate projects.
11197 2014-01-24  Robert Dewar  <dewar@adacore.com>
11199         * sem_prag.adb: Minor code reorganization.
11200         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
11202 2014-01-24  Pascal Obry  <obry@adacore.com>
11204         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
11205         attribute definition.
11207 2014-01-24  Vincent Celier  <celier@adacore.com>
11209         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
11210         in the Queue the same source (same path, same multi-source index)
11211         from the same project file, to avoid compiling several times
11212         the same source.
11214 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
11216         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
11217         (Has_Gigi_Rep_Item): Likewise.
11218         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
11219         Has_Gigi_Rep_Item for objects.
11220         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
11221         (prepend_one_attribute): ...this.
11222         (prepend_one_attribute_pragma): New function extracted from...
11223         (prepend_attributes): ...here.  Swap the parameters for consistency.
11224         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
11225         prepend_attributes.
11226         <object>: Deal with a pragma Linker_Section on a constant
11227         or variable.  <E_Function>: Deal with a pragma Linker_Section
11228         on a subprogram.
11229         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
11231 2014-01-24  Vincent Celier  <celier@adacore.com>
11233         * opt.ads: Minor comment update.
11235 2014-01-24  Robert Dewar  <dewar@adacore.com>
11237         * sem_prag.adb (Analyze_Input_Output): Add missing error check
11238         for junk operand.
11239         * sem_util.adb (Is_Refined_State): Add defense against junk
11240         tree from error.
11242 2014-01-24  Pascal Obry  <obry@adacore.com>
11244         * projects.texi: Removes Build_Slaves attribute documentation.
11246 2014-01-23  Robert Dewar  <dewar@adacore.com>
11248         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
11249         setting.
11251 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
11253         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
11254         applies to expressions that come from source.
11255         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
11256         message.
11257         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
11258         rule regarding potentially unevaluated expressions, to prefix
11259         of attribute.
11261 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
11263         * exp_util.adb (Make_Invqriant_Call): If type of expression is
11264         a private extension, get invariant from base type.
11266 2014-01-23  Robert Dewar  <dewar@adacore.com>
11268         * sem_util.adb, sem_attr.adb: Minor reformatting.
11270 2014-01-23  Robert Dewar  <dewar@adacore.com>
11272         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
11273         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
11274         * sem.adb (Semantics): Remove save/restore of
11275         SPARK_Mode[_Pragma]. Not needed since already done in
11276         Save/Restore_Opt_Config_Switches.
11278 2014-01-23  Robert Dewar  <dewar@adacore.com>
11280         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
11281         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
11282         Linker_Section enhancements.
11284 2014-01-23  Tristan Gingold  <gingold@adacore.com>
11286         * gnat_rm.texi: Minor editing.
11288 2014-01-23  Robert Dewar  <dewar@adacore.com>
11290         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
11291         with'ed internal units.
11292         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
11294 2014-01-23  Javier Miranda  <miranda@adacore.com>
11296         * lib-xref.adb (Generate_Reference): As part of processing the
11297         "end-of-spec" reference generate an extra reference to the first
11298         private entity of the package.
11299         * xr_tabls.adb (Add_Reference): No action needed for the extra
11300         'E' reference associated; similar to the processing of the
11301         'e' reference.
11303 2014-01-23  Bob Duff  <duff@adacore.com>
11305         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
11307 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
11309         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
11310         predicate to implement rule given in 6.1.1 (20/3).
11311         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
11312         'Old in a postcondition, if it is potentially unevaluated and
11313         it is not an entity name.
11315 2014-01-23  Bob Duff  <duff@adacore.com>
11317         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
11319 2014-01-23  Robert Dewar  <dewar@adacore.com>
11321         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
11322         msg on VMS.
11324 2014-01-23  Bob Duff  <duff@adacore.com>
11326         * g-dynhta.ads: Minor comment fix.
11328 2014-01-23  Yannick Moy  <moy@adacore.com>
11330         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
11331         from spec on body only when not already inherited on spec. Set
11332         SPARK_Mode from context on body without previous spec.  *
11333         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
11334         library-level entities.  Correct retrieval of entity from
11335         declaration, for cases where the declaration is not a unit.
11336         * sem_ch12.adb (Instantiate_Object): Avoid
11337         calling Is_Volatile_Object on an empty node.
11339 2014-01-23  Robert Dewar  <dewar@adacore.com>
11341         * gnatlink.adb (Gnatlink): Check for suspicious executable file
11342         names on windows.
11344 2014-01-23  Robert Dewar  <dewar@adacore.com>
11346         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
11347         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
11348         style errors in instances.
11349         * g-dynhta.ads (Static_HTable): Comment updates.
11351 2014-01-23  Vincent Celier  <celier@adacore.com>
11353         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
11354         to find a configuration project file when Config_File_Name is
11355         No_Configuration_File.
11356         * prj-conf.ads (No_Configuration_File): New constant String.
11357         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
11358         with Config_File_Name set to No_Configuration_File, so that
11359         no existing configuration project file will be used, and the
11360         configuration project will be only created in memory when
11361         Add_Default_GNAT_Naming_Scheme is called.
11362         * projects.texi: Minor reformatting.
11364 2014-01-23  Vincent Celier  <celier@adacore.com>
11366         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
11367         a config project file if On_Load_Config is not null.
11368         * prj-pars.adb: Minor comment changes.
11370 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
11372         * lib-xref.adb (Output_References): Output progenitors of
11373         synchronized tagged types, for source navigation.
11375 2014-01-23  Robert Dewar  <dewar@adacore.com>
11377         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
11378         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
11379         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
11381 2014-01-23  Emmanuel Briot  <briot@adacore.com>
11383         * prj-conf.adb (Get_Or_Create_Configuration_File): call
11384         On_Load_Config later.
11386 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
11388         * sem_ch3.adb (Analyze_Declarations): Do not
11389         generate the spec of the late primitive in ASIS mode. Add two
11390         comments to explain the special cases when the expansion is
11391         not performed.
11393 2014-01-23  Robert Dewar  <dewar@adacore.com>
11395         * sem_util.adb (Note_Possible_Modification): Fix error of
11396         misbehaving for implicit dereference cases in -gnatc mode.
11398 2014-01-23  Emmanuel Briot  <briot@adacore.com>
11400         * prj-pars.adb: Minor reformatting.
11402 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
11404         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
11405         body generated for an expression function within a protected body
11406         needs a set of renaming declarations if the expression function
11407         comes from source.
11409 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
11411         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
11412         list interface progenitor of a tagged concurrent type, for better
11413         source navigation.
11415 2014-01-22  Robert Dewar  <dewar@adacore.com>
11417         * lib.adb (In_Extended_Main_Code_Unit): Return False for
11418         Standard_Location.
11419         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
11420         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
11421         treatment of Slocs No_Location and Standard_Location.
11422         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
11423         check for entity with Standard_Location Sloc, rather than relying
11424         on Lib routines to do that.
11425         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
11426         that a call cannot occur before a later occuring body within
11427         the same unit.
11429 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11431         * rtsfind.adb: Update comment.
11433 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
11435         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
11436         * sem_ch3.adb (Analyze_Declarations): Add local variable
11437         Body_Seen. Generate the spec of a late controlled
11438         primitive body that is about to freeze its related type.
11439         (Handle_Late_Controlled_Primitive): New routine.
11441 2014-01-22  Robert Dewar  <dewar@adacore.com>
11443         * a-stream.adb: Minor reformatting.
11445 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
11447         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
11448         sub-procedure Declared_In_Actual to handle properly the visibility
11449         of actuals in actual packages, that are themselves actuals to a
11450         actual package of the current instance. This mimics properly the
11451         visibility of formals of formal packages declared with a box,
11452         within the corresponding generic unit.
11454 2014-01-22  Robert Dewar  <dewar@adacore.com>
11456         * checks.adb: Do not assume that a volatile variable is valid.
11458 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11460         * g-catiio.ads (Image, Value): Clarify that these functions
11461         operate in the local time zone.  Minor documentation update.
11463 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11465         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
11467 2014-01-22  Robert Dewar  <dewar@adacore.com>
11469         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
11470         Moved to sem_aux.adb.
11472 2014-01-22  Robert Dewar  <dewar@adacore.com>
11474         * vms_data.ads: Minor reformatting.
11476 2014-01-22  Robert Dewar  <dewar@adacore.com>
11478         * debug.adb: Document messages affected by -gnatd.E including
11479         the new ones that relate to late definition of equality.
11480         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
11481         debug flag -gnatd.E is set, then generate warnings rather than
11482         errors.
11483         (Check_Untagged_Equality): In earlier versions of Ada,
11484         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
11486 2014-01-22  Robert Dewar  <dewar@adacore.com>
11488         * sem_prag.adb (Usage_Error): Output additional messages for
11489         unconstrained OUT parameters lacking an input dependency.
11491 2014-01-22  Robert Dewar  <dewar@adacore.com>
11493         * sem_ch4.adb: Minor reformatting.
11495 2014-01-22  Robert Dewar  <dewar@adacore.com>
11497         * restrict.ads: Minor reformatting.
11498         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
11499         forbids a call from within a subprogram to the same subprogram.
11501 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11503         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
11504         stream attributes for Stream_Element_Array.
11505         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
11506         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
11507         defined in the current scope.
11509 2014-01-22  Robert Dewar  <dewar@adacore.com>
11511         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
11513 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11515         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
11517 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11519         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
11520         declaration initialized with a function call, whose type
11521         has variable size, need to remove side effects so that the
11522         initialization expression becomes a dereference of a temporary
11523         reference to the function result.
11525 2014-01-22  Yannick Moy  <moy@adacore.com>
11527         * errout.adb (Initialize): Remove trick to add dummy entry
11528         in Warnings table.
11529         * erroutc.adb (Set_Warnings_Mode_Off,
11530         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
11531         command line switch.
11532         * opt.ads (Warning_Mode): Document behavior
11533         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
11535 2014-01-22  Robert Dewar  <dewar@adacore.com>
11537         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
11539 2014-01-22  Robert Dewar  <dewar@adacore.com>
11541         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
11542         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
11543         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
11544         case Storage_Size): call Check_Pool_Size_Clash.
11546 2014-01-22  Robert Dewar  <dewar@adacore.com>
11548         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
11549         sem_eval.ads: Minor reformatting.
11551 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11553         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
11554         Any_Composite to prevent cascaded errors.
11556 2014-01-22  Yannick Moy  <moy@adacore.com>
11558         * errout.adb (Initialize): Do not insert special entry in Warnings
11559         table in GNATprove_Mode.
11560         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
11561         GNATprove_Mode.
11562         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
11563         warnings anymore.
11565 2014-01-22  Robert Dewar  <dewar@adacore.com>
11567         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
11568         initializes case.
11570 2014-01-22  Robert Dewar  <dewar@adacore.com>
11572         * snames.ads-tmpl: Update header.
11574 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11576         * exp_util.adb (Insert_Actions): When inserting actions on a
11577         short circuit operator that has already been analyzed, do not park
11578         actions in node; instead introduce an N_Expression_With_Actions
11579         and insert actions immediately.
11580         Add guard for unexpected case of climbing up through statement
11581         in Actions list of an N_Expression_With_Actions.
11582         * sem_elab.adb (Insert_Elab_Check): Remove complex
11583         specialized circuitry for the case where the context is already
11584         analyzed, as it is not needed and introduces irregularities in
11585         finalization. Instead rely on the above change to Insert_Actions
11586         to ensure that late insertion on short circuit operators works
11587         as expected.
11589 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
11591         * sem_ch4.adb (Operator_Check): Improve error message when an
11592         operand of concatenation is an access type.
11594 2014-01-22  Thomas Quinot  <quinot@adacore.com>
11596         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
11597         cascaded error.
11599 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
11601         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
11602         of an expanded name in a proper body, whose prefix is a package
11603         in the context of the proper body, when there is a homonym of
11604         the package declared in the parent unit.
11606 2014-01-22  Robert Dewar  <dewar@adacore.com>
11608         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
11609         msg if errors found.
11610         (Check_One_Unit): Same change.
11612 2014-01-22  Robert Dewar  <dewar@adacore.com>
11614         * ug_words: Add missing/wrong entries for VMS warning switches.
11615         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
11617 2014-01-22  Jerome Guitton  <guitton@adacore.com>
11619         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
11620         arm.
11622 2014-01-22  Robert Dewar  <dewar@adacore.com>
11624         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
11626 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
11628         * gcc-interface/Makefile.in: Minor fixes.
11630 2014-01-21  Robert Dewar  <dewar@adacore.com>
11632         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
11633         * par-ch5.adb (P_Condition): New version with expression prescanned.
11634         * par.adb (P_Condition): New version with expression prescanned.
11636 2014-01-21  Robert Dewar  <dewar@adacore.com>
11638         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
11639         if Address is not a private type.
11640         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
11641         Ignore pragma if System.Address is not a private type.
11643 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11645         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
11646         uninitialized value.
11648 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11650         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
11652 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
11654         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
11655         the value of Assertions_Enabled flag when compiling an instance of
11656         an internal unit. This facilitates the use of pre/postconditions
11657         in generic internal units, such as the new elementary function
11658         libraries.
11660 2014-01-21  Robert Dewar  <dewar@adacore.com>
11662         * exp_aggr.adb: Minor reformatting.
11663         * sem_attr.adb: Minor reformatting.
11664         * sem_res.adb: Minor comment addition.
11665         * einfo.adb: Minor comment updates.
11666         * freeze.adb: Minor reformatting and code reorganization.
11668 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
11670         * par-ch4.adb (P_If_Expression): Handle more gracefully an
11671         elsif clause that does not have an else part.
11673 2014-01-21  Robert Dewar  <dewar@adacore.com>
11675         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
11676         * gcc-interface/Makefile.in: clean up target pairs.
11678 2014-01-21  Pascal Obry  <obry@adacore.com>
11680         * projects.texi: Minor typo fix.
11682 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11684         * freeze.adb (Check_Component_Storage_Order): If a record type
11685         has an explicit Scalar_Storage_Order attribute definition clause,
11686         reject any component that itself is of a composite type and does
11687         not have one.
11689 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
11691         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
11692         can be used to generate proper cross-reference information for
11693         the parent units of proper bodies.
11695 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11697         * exp_pakd.adb (Expand_Packed_Element_Set,
11698         Expand_Packed_Element_Reference): No byte swapping required in
11699         the front-end for the case of a reverse storage order array,
11700         as this is now handled uniformly in the back-end.  However we
11701         still need to swap back an extracted element if it is itself a
11702         nested composite with reverse storage order.
11704 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
11706         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
11707         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
11708         include "others".
11710 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11712         * gnat_ugn.texi: Minor updates.
11714 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11716         * exp_pakd.adb: Update comment, minor reformatting.
11718 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
11720         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
11721         object check when SPARK_Mode is on.
11722         * sem_ch6.adb (Process_Formals): Trigger the volatile object
11723         check when SPARK_Mode is on.
11724         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
11725         check when SPARK_Mode is on.
11726         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
11727         corresponding pragma of aspect SPARK_Mode in the visible
11728         declarations of a package declaration.
11729         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
11730         check when SPARK_Mode is on.
11731         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
11732         check when SPARK_Mode is on.
11733         (Resolve_Entity_Name): Trigger
11734         the volatile object check when SPARK_Mode is on.
11736 2014-01-21  Robert Dewar  <dewar@adacore.com>
11738         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
11739         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
11741 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
11743         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
11744         object is declared, it is rewritten as a renaming of an dynamic
11745         expression that wraps the initial value.  The renaming declaration
11746         is first given an internal name, to prevent collisions with the
11747         entity already declared, and then the name is modified to reflect
11748         the original one. the modification of the name must preserve
11749         the source location of the original, to prevent spurious errors
11750         when compiling with style checks if the declaration involves
11751         more than one entity.
11753 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
11755         * aspects.adb Add entries for Async_Readers, Async_Writers,
11756         Effective_Reads and Effective_Writes in table Canonical_Aspect.
11757         * aspects.ads Add entries for Async_Readers, Async_Writers,
11758         Effective_Reads and Effective_Writes in tables Aspect_Id,
11759         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
11760         * atree.adb (Ekind_In): New version with 8 parameters.
11761         (Node34): New routine.
11762         (Set_Node34): New routine.
11763         * atree.ads (Ekind_In): New version with 8 parameters.
11764         (Node34): New routine.
11765         (Set_Node34): New routine.
11766         * einfo.adb Contract is now Node34.
11767         (Contract): Update the assertion and node usage.
11768         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
11769         Effective_Reads and Effective_Writes.
11770         (Set_Contract): Update the assertion and node usage.
11771         (Write_Field24_Name): Remove the output for a contract.
11772         (Write_Field34_Name): Add output for a contract.
11773         * einfo.ads Contract is now Node34. Update the comment on
11774         attribute usage and related node structures.
11775         (Get_Pragma): Update the comment on usage.
11776         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
11777         Effective_Reads and Effective_Writes do not require special
11778         processing by the parser.
11779         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
11780         (Analyze_Declarations): Analyze the contract of a variable at
11781         the end of the declarative region.
11782         (Analyze_Object_Declaration): Create a contract for a variable.
11783         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
11784         of classification pragmas.
11785         (Process_Formals): Detect an illegal
11786         use of a volatile object as a formal in a function.
11787         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
11788         a volatile object as an actual in generic instantiation.
11789         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
11790         Effective_Reads and Effective_Writes in table Sig_Flags.
11791         (Analyze_External_State_In_Decl_Part): New routine.
11792         (Analyze_Global_Item): Detect an illegal use of a volatile object
11793         as a global item of a function.
11794         (Analyze_Pragma): Reimplement
11795         pragma Abstract_State. Add support for pragmas Async_Readers,
11796         Async_Writers, Effective_Reads and Effective_Writes.
11797         (Check_External_Properties): New routine.
11798         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
11799         (Check_External_Properties): New routine.
11800         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
11801         volatile object as an actual in a call.
11802         (Resolve_Entity_Name):
11803         Add local variables Par, Prev and Usage_OK. Detect illegal
11804         contexts of volatile objects.
11805         * sem_util.adb (Add_Contract_Item): Add support for
11806         pragmas associated with the contract of a variable.
11807         (Async_Readers_Enabled): New routine.
11808         (Async_Writers_Enabled): New routine.
11809         (Effective_Reads_Enabled): New routine.
11810         (Effective_Writes_Enabled): New routine.
11811         (Has_Enabled_Property):
11812         New routine.
11813         (Is_Unchecked_Conversion_Instance): New routine.
11814         (Is_Volatile_Object): Add support for entities that may denote
11815         a volatile object.
11816         * sem_util.ads (Add_Contract_Item): Update the
11817         comment on usage.
11818         (Async_Readers_Enabled): New routine.
11819         (Async_Writers_Enabled): New routine.
11820         (Effective_Reads_Enabled): New routine.
11821         (Effective_Writes_Enabled): New routine.
11822         (Is_Unchecked_Conversion_Instance): New routine.
11823         * sinfo.ads Update the comment on the structure of N_Contract.
11824         * snames.ads-tmpl Add predefined names for Async_Readers,
11825         Async_Writers, Effective_Reads and Effective_Writes. Add
11826         pragma ids for Async_Readers, Async_Writers, Effective_Reads
11827         and Effective_Writes.
11829 2014-01-21  Robert Dewar  <dewar@adacore.com>
11831         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
11832         * sem_eval.adb (Compile_Time_Known_Value): Remove special
11833         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
11834         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
11835         (Test_Foldable): Add CRT_Safe parameter
11836         * sem_eval.ads (Compile_Time_Known_Value): Remove special
11837         handling of CRT mode.
11838         (CRT_Safe_Compile_Time_Known_Value): New function.
11840 2014-01-21  Robert Dewar  <dewar@adacore.com>
11842         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
11843         with pragma or aspect that applies to package spec or subprogram
11844         spec.
11846 2014-01-21  Robert Dewar  <dewar@adacore.com>
11848         * exp_aggr.adb: Minor reformatting.
11850 2014-01-21  Johannes Kanig  <kanig@adacore.com>
11852         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
11854 2014-01-21  Bob Duff  <duff@adacore.com>
11856         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
11858 2014-01-21  Steve Baird  <baird@adacore.com>
11860         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
11862 2014-01-21  Vincent Celier  <celier@adacore.com>
11864         * prj-part.adb (Parse_Single_Project): Accept to extend a project
11865         if it has only be imported by an project being extended. When a
11866         project that has only been imported by a project being extended
11867         is imported by another project that is not being extended,
11868         reset the previous indication, so that it will be an error if
11869         this project is extended later.
11870         * prj-tree.adb (Create_Project): Include component From_Extended
11871         in table Projects_HT
11872         * prj-tree.ads (Project_Name_And_Node): New Boolean component
11873         From_Extended
11875 2014-01-21  Robert Dewar  <dewar@adacore.com>
11877         * atree.ads, atree.adb: Add Node33 and Set_Node33.
11878         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
11879         New field (SPARK_Pragma_Inherited): New flag
11880         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
11881         Removed.
11882         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
11883         * opt.ads (SPARK_Mode_Pragma): New global variable.
11884         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
11885         * sem_ch3.adb: Use new SPARK_Mode data structures.
11886         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
11887         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
11888         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
11889         (Pop_Scope): Restore SPARK_Mode_Pragma.
11890         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
11891         new data structures.
11893 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11895         * back_end.adb: Undo previous change, not needed. Minor reformatting.
11897 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11899         * exp_ch5.adb: Fix comment.
11900         * switch-c.adb: Minor comment update.
11901         * exp_ch3.adb: Minor reformatting.
11903 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11905         * back_end.adb (Scan_Compiler_Arguments): Do not store object
11906         filename in gnatprove mode.
11908 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11910         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
11911         suppresses usage of primitive _assign for tagged types).
11912         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
11913         No_Ctrl_Actions for a tagged type that does not require
11914         finalization, as we want to disable usage of _assign (which
11915         may cause undesirable discriminant checks on an uninitialized,
11916         invalid target).
11918 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
11920         * sem_prag.adb: Reject invariant'class on completion.
11922 2014-01-21  Javier Miranda  <miranda@adacore.com>
11924         * exp_ch3.adb (Build_Init_Procedure): For
11925         derivations of interfaces, do not move the the initialization
11926         of the _parent field since such assignment is not generated.
11928 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
11930         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
11931         with the operator it renames if we are within an expression of
11932         a pre/postcondition, because the expression will be reanalyzed
11933         at a later point, and the analysis of the renaming may affect
11934         the visibility of the operator when in an instance.
11936 2014-01-21  Robert Dewar  <dewar@adacore.com>
11938         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
11939         Add this flag to type conversion nodes and assignment nodes.
11940         * treepr.adb: Deal properly with Flag 1,2,3.
11941         * treeprs.adt: Minor comment update.
11943 2014-01-21  Robert Dewar  <dewar@adacore.com>
11945         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
11946         parameter.
11947         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
11948         parameter, completely rewrite spec.
11950 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
11952         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
11953         instance that is inlined, it may have been rewritten as a wrapper
11954         package. In that case the unit that must be made visible is the
11955         related instance of the package.
11957 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11959         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
11960         previous change in codepeer mode.
11962 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11964         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
11965         call to Abort_Undefer, as expected by the runtime.
11966         * s-tasren.adb (Local_Complete_Rendezvous): Replace
11967         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
11968         deferred at this point. Update comments.
11970 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11972         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
11974 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11976         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
11977         remove from doc.
11979 2014-01-21  Robert Dewar  <dewar@adacore.com>
11981         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
11983 2014-01-21  Thomas Quinot  <quinot@adacore.com>
11985         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
11986         this is value is used in Node_Id arithmetic operations.
11987         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
11988         instead of hard-coded unrolled code.
11990 2014-01-21  Yannick Moy  <moy@adacore.com>
11992         * gnat1drv.adb: Minor code cleanup, removing useless code.
11994 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
11996         * opt.ads (SPARK_Switches_File_Name): New.
11997         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
11998         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
11999         * gnat_ugn.texi: Document -gnates.
12001 2014-01-21  Yannick Moy  <moy@adacore.com>
12003         * errout.adb (Special_Msg_Delete): Update comment. Remove
12004         special case for GNATprove which should not ignore mismatch
12005         in sizes for representation clauses.
12006         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
12007         which should not ignore pragma Pack.
12009 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12011         * sem_ch4.adb: Code clean up.
12013 2014-01-21  Steve Baird  <baird@adacore.com>
12015         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
12017 2014-01-21  Robert Dewar  <dewar@adacore.com>
12019         * gcc-interface/gigi.h: Get Flags array address.
12020         * gcc-interface/trans.c: Acquire Flags array address.
12021         * atree.adb: Add support for Flags array and Flag0,1,2,3.
12022         * atree.ads: Add support for Flags array and Flag0,1,2,3.
12023         * atree.h: Add support for Flags array and Flag0,1,2,3.
12024         * back_end.adb: Pass Flags array address to gigi.
12026 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12028         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
12029         reference to generated body so that legality checks on stream
12030         attributes are properly applied. If type is tagged and already
12031         frozen, insert generated body at the point of the renaming
12032         declaration.
12034 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12036         * sem_ch12.adb: Code clean up.
12037         * sem_ch8.adb: Minor reformatting
12039 2014-01-20  Robert Dewar  <dewar@adacore.com>
12041         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
12042         converting warnings on inevitable exceptions to errors.
12043         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
12044         converting warnings on inevitable exceptions to errors.
12045         * opt.adb (SPARK_Mode_Config): Handled like other config flags
12046         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
12047         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
12048         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
12049         New flag (Config_Switches_Type): Add SPARK_Mode field
12050         * sem.adb: Minor code reorganization (remove unnecessary with)
12051         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
12052         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
12053         converting warnings on inevitable exceptions to errors.
12054         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
12055         converting warnings on inevitable exceptions to errors.
12056         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
12057         converting warnings on inevitable exceptions to errors.
12058         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
12059         converting warnings on inevitable exceptions to errors.
12060         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
12061         from spec if needed
12062         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
12063         from spec if needed
12064         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
12065         Restore SPARK_Mode
12066         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
12067         converting warnings on inevitable exceptions to errors.
12068         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
12069         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
12070         of Get_SPARK_Mode_Id
12071         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
12072         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
12073         converting warnings on inevitable exceptions to errors.
12074         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
12075         converting warnings on inevitable exceptions to errors.
12076         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
12077         SPARK_Mode_Type
12079 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12081         * sem_ch13.adb: Add semantic information to rewritten type
12082         reference.
12084 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12086         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
12087         are of a type with unknown discriminants, convert both to the
12088         underlying view of the type, so that the proper constraint check
12089         can be applied to the right-hand side.
12091 2014-01-20  Robert Dewar  <dewar@adacore.com>
12093         * atree.adb (Copy_Node): Fix failure to copy last component
12094         (Exchange_Entities): Fix failure to exchange last entity
12096 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12098         * sem_ch12.adb: Code clean up.
12100 2014-01-20  Robert Dewar  <dewar@adacore.com>
12102         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
12104 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12106         * sem_ch4.adb (Analyze_Quantified_Expression): If after
12107         pre-analysis  the loop parameter specification has been
12108         rewritten as a iterator specification, propagate the change to
12109         the quantified expression, for ASIS navigtion needs.
12111 2014-01-20  Vincent Celier  <celier@adacore.com>
12113         * par-ch10.adb: Minor error message change: escape [ and ].
12115 2014-01-20  Robert Dewar  <dewar@adacore.com>
12117         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
12118         * errout.adb: Implement [ and ] insertion characters.
12119         * errout.ads: Document new [ and ] insertion characters.
12120         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
12121         addition of ??? comment.
12122         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
12123         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
12124         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
12125         Make warnings on exceptions into errors in GNATprove mode.
12126         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
12127         in error messages.
12129 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12131         * sem_ch13.adb: Code clean up.
12133 2014-01-20  Robert Dewar  <dewar@adacore.com>
12135         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
12136         messages.
12137         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
12138         error in GNATprove mode.
12140 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12142         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
12143         reference 'Old takes no parameters, and thus can appear as a
12144         prefix of a slice.
12146 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
12148         * exp_aggr.adb: Fix minor typos.
12150 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12152         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
12153         instance the attribute is legal, and its value is determined
12154         statically if the type has no discriminants. This choice is
12155         more useful than rechecking the legality rule in the instance,
12156         is consistent with older usage, and is also consistent with all
12157         existing tests.
12159 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
12161         * sem_cat.adb (Validate_Static_Object_Name): Change error into
12162         warning in Relaxed_Semantic_Mode.
12164 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12166         * sem_attr.adb: Code and comments cleanup.
12168 2014-01-20  Yannick Moy  <moy@adacore.com>
12170         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
12171         * errout.adb (Compilation_Errors): Remove special handling in
12172         GNATprove mode.
12173         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
12174         removed debug flags.
12175         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
12176         Global, Initial_Condition, Initializes and Refined_State pragmas and
12177         aspects.
12178         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
12179         SPARK_Strict_Mode): Remove global flags.
12180         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
12181         always performed now, on packages declaring a null state.
12182         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
12183         at providing pedantic mode for bounds of integer types.
12184         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
12185         "some" quantified expression now issued under control of -gnatw.t,
12186         like the other warning on unused bound variable.
12187         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
12188         on removed flag.
12189         (Analyze_Pragma): Remove tests for SPARK 2014
12190         pragmas, not officially allowed by GNAT.
12192 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12194         * sem_prag.adb (Analyze_Pragma): Ensure that
12195         the sole argument of pragmas Abstract_State, Contract_Cases,
12196         Depends, Global and Initializes in in aggregate form.
12197         (Analyze_Refined_Pragma): Ensure that the sole argument of
12198         pragmas Refined_Depends, Refined_Global and Refined_State is in
12199         aggregate form.
12200         (Ensure_Aggregate_Form): New routine.
12202 2014-01-20  Doug Rupp  <rupp@adacore.com>
12204         * sem_attr.adb (Analyze_Attribute): case
12205         Attribute_Constrained => treat all prefixes as legal for Declib
12206         compatibility.
12208 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12210         * sem_prag.adb (Check_Mode): Reimplement the routine.
12211         (Find_Mode): New routine.
12213 2014-01-20  Robert Dewar  <dewar@adacore.com>
12215         * sem_ch4.adb (Operator_Check): Handle additional
12216         Allow_Integer_Address cases.
12218 2014-01-20  Robert Dewar  <dewar@adacore.com>
12220         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
12221         allowed if address is non-private, no longer true.
12222         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
12223         Remove check for address being private, causes difficulty when
12224         pragma used in gnat.adc file and is not needed, since we guard
12225         this in Address_Integer_Convert_OK.
12226         * exp_ch7.adb: Minor reformatting.
12227         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
12229 2014-01-20  Robert Dewar  <dewar@adacore.com>
12231         * checks.adb (Apply_Range_Check): Remove gnatprove special
12232         casing of exponentiation.
12233         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
12234         operand for integer case to check range against Natural.
12236 2014-01-20  Robert Dewar  <dewar@adacore.com>
12238         * s-tataat.adb: Minor reformatting.
12240 2014-01-20  Robert Dewar  <dewar@adacore.com>
12242         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
12243         entities, and also fix documentation to remove mention of visible
12244         integer type, since this is not what the implementation does.
12245         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
12246         entities, and also fix documentation to remove mention of visible
12247         integer type, since this is not what the implementation does.
12248         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
12249         function.
12250         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
12251         case for parameter type check.
12252         * sem_res.adb (Resolve): Use new function
12253         Address_Integer_Convert_OK.
12254         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
12255         reformatting throughout.
12256         * sem_util.adb (Address_Integer_Convert_OK): New function.
12257         * sem_util.ads: Minor reformatting (put specs in alpha order)
12258         (Address_Integer_Convert_OK): New function.
12260 2014-01-20  Thomas Quinot  <quinot@adacore.com>
12262         * exp_ch7.adb (Wrap_Transient_Expression):
12263         Insertion extra conditional expression only if
12264         Opt.Suppress_Control_Flow_Optimizations is set.
12266 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
12268         * s-tataat.adb (Initialize_Attributes): Abort might already be
12269         deferred in Create_Task.
12271 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12273         * checks.adb (Apply_Scalar_Range_Check): Flag
12274         the exponent as requiring a range check when the expression is
12275         an exponentiation.
12277 2014-01-20  Fedor Rybin  <frybin@adacore.com>
12279         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
12281 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12283         * sem_util.adb (Default_Initialization): New routine.
12284         * sem_util.ads: Add new type Default_Initialization_Kind.
12285         (Default_Initialization): New routine.
12287 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12289         * sem_prag.adb (Check_Mode): Correct all error
12290         message logic dealing with in/in out parameters that may appear
12291         as inputs or have a self reference.
12293 2014-01-20  Robert Dewar  <dewar@adacore.com>
12295         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
12296         * sem_res.adb (Resolve): Fix error causing infinite loop for
12297         integer used as address. Allow addresses as integers.
12299 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
12301         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
12303 2014-01-20  Bob Duff  <duff@adacore.com>
12305         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
12306         error when "use all" is not followed by "type".
12308 2014-01-20  Bob Duff  <duff@adacore.com>
12310         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
12311         followed by free.
12313 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12315         * checks.adb (Apply_Address_Clause_Check): If there is an
12316         alignment check on the expression in an address clause, and there
12317         is no local exception propagation, add an additional explanatory
12318         message to clarify the cause of previous warning.
12320 2014-01-20  Robert Dewar  <dewar@adacore.com>
12322         * exp_ch7.adb: Minor reformatting.
12323         * opt.ads: Minor comment updates.
12324         * sem.adb: Minor name change Is_Main_Unit =>
12325         Is_Main_Unit_Or_Main_Unit_Spec.
12326         * sem_ch6.adb: Minor reformatting and code reorganization.
12328 2014-01-20  Bob Duff  <duff@adacore.com>
12330         * gnat_ugn.texi: Update gnatpp switches.
12332 2014-01-20  Thomas Quinot  <quinot@adacore.com>
12334         * exp_ch9.adb: Minor comment edit.
12336 2014-01-20  Robert Dewar  <dewar@adacore.com>
12338         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
12339         only if System.Address is a private type.
12340         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
12341         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
12342         Allowed only if type System.Address is private, since otherwise
12343         it makes no sense.
12344         * sem_res.adb: Fix failure to properly Analyze unchecked
12345         conversions that were introduced by Allow_Integer_Address.
12346         * switch-c.adb: Remove -gnates switch.
12347         * usage.adb: Remove -gnates switch.
12348         * gnat_ugn.texi: Remove documentation of -gnates flag.
12350 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12352         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
12353         resolve expression to perform proper name capture.
12355 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12357         * sem.adb (Semantics): When saving/restoring configuration
12358         switches, the spec of a pre- defined unit that is the main unit
12359         must be treated as a predefined unit as well.
12361 2014-01-20  Thomas Quinot  <quinot@adacore.com>
12363         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
12364         expression, insert an extra conditional expression when saving
12365         the value of the expression, for the benefit of control flow
12366         graph based coverage analysis.
12367         * exp_ch3.adb: Minor reformatting.
12369 2014-01-20  Robert Dewar  <dewar@adacore.com>
12371         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
12372         * gnat_rm.texi: Document pragma Allow_Integer_Address.
12373         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
12374         * opt.ads: New flag Allow_Integer_Address.
12375         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
12376         * sem_ch5.adb: Minor reformatting.
12377         * sem_prag.adb: Implement pragma Allow_Integer_Address.
12378         * sem_res.adb (Resolve): Allow integer address value if
12379         switch set.
12380         * sem_util.adb: Minor reformatting.
12381         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
12382         * switch-c.adb: Recognize flag -gnates.
12383         * usage.adb: Document flag -gnates.
12385 2014-01-20  Thomas Quinot  <quinot@adacore.com>
12387         * s-tadeca.adb: Fix minor typos in comment.
12389 2014-01-20  Pascal Obry  <obry@adacore.com>
12391         * s-win32.ads (FreeLibrary): New import.
12393 2014-01-20  Robert Dewar  <dewar@adacore.com>
12395         * sem_res.adb, sem_cat.adb: Minor reformatting.
12396         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
12397         assigning to OUT parameters for the current subprogram scope.
12398         * exp_ch4.adb: Minor reformatting.
12400 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12402         * exp_ch4.adb (Process_Transient_Object,
12403         Find_Enclosing_Contexts): If the top-level if-expression that
12404         generated the transient object is an actual in a call, the proper
12405         Hook_Context is a construct enclosing the call.
12406         * einfo.ads: Indicate that Related_Expression is used to link a
12407         loop variable to the container expression over which the loop
12408         takes place.
12409         (Analyze_Iterator_Specification): Set the Related_Expression of
12410         the loop variable in a container element iterator.
12411         (Note_Possible_Modification): If the variable is the loop
12412         variable in a container element iterator, indicate that the
12413         enclosing container is also modified.
12415 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12417         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
12419 2014-01-20  Robert Dewar  <dewar@adacore.com>
12421         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
12422         Minor reformatting and code clean up.
12424 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
12426         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
12427         of objects of private type if Relaxed_RM_Semantics.
12429 2014-01-20  Claire Dross  <dross@adacore.com>
12431         * a-cofove.ads (Vector): Capacity discriminant
12432         should be in range of the index.
12434 2014-01-20  Thomas Quinot  <quinot@adacore.com>
12436         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
12437         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
12438         possible difference between epoch of Ada.Calendar clock and Ada
12439         real-time/tasking clock.
12440         * s-taprop-posix.adb: Minor comment fix.
12442 2014-01-20  Doug Rupp  <rupp@adacore.com>
12444         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
12446 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12448         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
12449         checks on the prefix of attribute 'Old.
12450         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
12451         generation of validity checks on a range that belongs to the
12452         iteration scheme of a quantified expression.
12453         * sem_ch5.adb (One_Bound): Suppress the generation of validity
12454         checks on a bound that belongs to the iteration scheme of a
12455         quantified expression, generate the check in all other cases.
12457 2014-01-20  Bob Duff  <duff@adacore.com>
12459         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
12461 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12463         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
12464         interpretations that do not come from other predefined units,
12465         to prevent spurious ambiguities in the presence of user-defined
12466         operators in the context of (an instance of) a predefined unit.
12468 2014-01-20  Robert Dewar  <dewar@adacore.com>
12470         * gnat_rm.texi: Document that Loop_Variant is included in
12471         Statement_Assertions.
12472         * sem_prag.adb (Check_Kind): Add Loop_Variant to
12473         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
12474         to Statement_Assertions.
12476 2014-01-20  Doug Rupp  <rupp@adacore.com>
12478         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
12479         for errno ENOENT from RTP on NFS mounted file system.
12481 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12483         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
12484         examine code that does not come from source. The check does not
12485         apply to code generated for constraint checks, and such code may
12486         generate spurious error messages when compiled with expansion
12487         disabled (as in a generic unit) because side effects may not
12488         have been removed.
12489         2) Make error messages more explicit: indicate the component
12490         of the  construct whose value is indeterminate because of a
12491         call to a function with in-out parameter in another component,
12492         when there is no mandated order of execution between the two
12493         components (actuals, aggregate components, alternatives).
12495 2014-01-20  Robert Dewar  <dewar@adacore.com>
12497         * gnat_rm.texi: Minor cleanup.
12499 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12501         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
12502         can now apply to a refined postcondition.
12503         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
12504         variable Result_Seen. Add variables Case_Prag, Post_Prag,
12505         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
12506         whether postconditions and/or constract-cases mention attribute
12507         'Result and introduce a post-state when applied to functions.
12508         (Check_Result_And_Post_State): Removed.
12509         * sem_prag.adb (Analyze_Pragma): Add local variable
12510         Result_Seen. Verify that the expression of pragma Refined_Post
12511         mentions attribute 'Result and introduces a post-state.
12512         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
12514 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12516         * exp_ch7.adb (Is_Subprogram_Call): New routine.
12517         (Process_Transient_Objects): Make variable Must_Hook global with
12518         respect to all locally declared subprograms. Search the context
12519         for at least one subprogram call.
12520         (Requires_Hooking): Removed.
12522 2014-01-20  Claire Dross  <dross@adacore.com>
12524         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
12525         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
12526         External_Axiomatization);
12528 2014-01-20  Robert Dewar  <dewar@adacore.com>
12530         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
12531         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
12532         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
12533         Allow Loop_Entry to be used in these pragmas if they appear in
12534         an appropriate context.
12535         (Placement_Error): Specialize error
12536         message for pragma Assert[_And_Cut] or pragma Assume containing
12537         Loop_Entry attribute.
12538         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
12539         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
12540         and code clean ups.
12542 2014-01-20  Robert Dewar  <dewar@adacore.com>
12544         * gnat1drv.adb: Minor comment update.
12546 2014-01-20  Tristan Gingold  <gingold@adacore.com>
12548         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
12549         variables, comment out unused code.
12550         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
12551         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
12552         * s-excmac-arm.ads: New file.
12554 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12556         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
12557         Drange and Index_Typ. Remove the circuitry which creates a
12558         range check to compare the index type of the array against the
12559         discrete_range.
12560         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
12561         the circuitry which creates a range check to handle a
12562         discrete_range denoted by a subtype indication.
12564 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
12566         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
12567         nodes to get the original sloc range.
12569 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12571         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
12572         entity of a [library level] package.
12574 2014-01-20  Tristan Gingold  <gingold@adacore.com>
12576         * raise-gcc.c (exception_class_eq): New function.
12577         (is_handled_by): Use it to compare exception classes.
12578         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
12579         be called to return URC_CONTINUE_UNWIND.
12580         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
12581         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
12583 2014-01-20  Robert Dewar  <dewar@adacore.com>
12585         * opt.ads: Minor comment update.
12587 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12589         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
12590         constants to the "Local variables" area. Add new constant D. Add
12591         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
12592         to Pref_Typ and update all occurrences. Add circuitry to extract
12593         the discrete_range and the index type and build a range check.
12595 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
12597         * gnat1drv.adb (Adjust_Global_Switches): Enable
12598         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
12599         is set.
12601 2014-01-20  Thomas Quinot  <quinot@adacore.com>
12603         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
12605 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12607         * sem_ch13.adb (Analyze_Aspect_Specifications):
12608         When aspect SPARK_Mode appears on a package body, insert the
12609         generated pragma at the top of the body declarations.
12611 2014-01-20  Robert Dewar  <dewar@adacore.com>
12613         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
12614         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
12615         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
12616         sem_ch8.adb, exp_dist.adb: Minor reformatting.
12618 2014-01-20  Yannick Moy  <moy@adacore.com>
12620         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
12621         mode.
12623 2014-01-20  Pascal Obry  <obry@adacore.com>
12625         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
12626         write scheme).
12627         * g-arrspl.adb: Adapt all routine to this new implementation.
12628         (Set): Copy the Slice_Set definition before reusing it.
12630 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
12632         * sem_prag.adb (Process_Import_Or_Interface): In
12633         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
12634         (Analyze_Pragma): Ditto for pragma Export.
12635         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
12636         Import style.
12638 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12640         * einfo.ads: E_Abstract_State is now part of the entities that
12641         can be overloaded. Update type Overloadable_Kind to reflect the
12642         inclusion of abstract states.
12643         * sem_ch6.adb (New_Overloaded_Entity): A function can now
12644         overload an abstract state.
12645         * sem_prag.adb (Analyze_Constituent): Handle the overloading
12646         of states by functions. Use Entity_Of to obtain the entity of
12647         a constituent.  (Analyze_Global_Item): Handle the overloading of
12648         states by functions.
12649         (Analyze_Initialization_Item): Handle the
12650         overloading of states by functions.  Use Entity_Of to obtain the
12651         entity of an item.
12652         (Analyze_Input_Item): Handle the overloading
12653         of states by functions. Use Entity_Of to obtain the entity of an item.
12654         (Analyze_Input_Output): Handle the overloading of states by functions.
12655         (Analyze_Refinement_Clause): Handle the overloading
12656         of states by functions.  Use Entity_Of to obtain the entity of an item.
12657         (Appears_In): Use Entity_Of to obtain the entity of an element.
12658         (Check_Usage): Use Entity_Of to obtain the entity of
12659         an item. Add a guard to prevent a crash due to a previous error.
12660         (Resolve_State): New routine.
12662 2014-01-20  Yannick Moy  <moy@adacore.com>
12664         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
12665         opt.ads: Minor comments updates.
12667 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12669         * einfo.adb (Non_Limited_View): Applies to abstract states.
12670         (Set_From_Limited_With): Applies to abstract states.
12671         (Set_Non_Limited_View): Applies to abstract states.
12672         (Write_Field17): Output the non-limited view of an abstract state.
12673         * einfo.ads: Update the comment on usage and occurrences in
12674         nodes for attributes From_Limited_With and Non_Limited_View.
12675         * sem_aux.adb (Available_View): This routine can now handle
12676         abstract states.
12677         * sem_aux.ads (Available_View): This routine can now handle
12678         abstract states. Update the comment on usage.
12679         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
12680         of states and variables.
12681         (In_Pragmas_Depends_Or_Global): New routine.
12682         * sem_ch10.adb (Build_Limited_Views): Implement
12683         abstract (limited) views of variables and states.
12684         (Build_Shadow_Entity): This routine is now a procedure. Add
12685         formal parameter Shadow. Update the comment on usage. Add
12686         context-specific decoration for states and variables.
12687         (Decorate_State): New routine.  (Decorate_Variable): New routine.
12688         (Find_And_Process_States): New routine.
12689         (Process_Declarations): Renamed to Process_Declarations_And_States.
12690         (Process_Declarations_And_States): Add formal parameters
12691         Pack and Create_Abstract_Views. Update the comment on usage.
12692         (Process_States): New routine.
12693         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
12694         views of states and variables. Match the abstract view of a state
12695         against its corresponding non-abstract view.
12696         (Is_Matching_Input):
12697         Handle abstract views of states and variables. Match the abstract
12698         view of a state against its corresponding non-abstract view.
12699         (Process_Global_Item): Handle abstract views of states and
12700         variables.
12702 2014-01-20  Bob Duff  <duff@adacore.com>
12704         * sem_ch10.adb (Expand_With_Clause): Don't
12705         recurse on the prefix if the current with-ed name refers to a
12706         package that renames its own parent, eg "package P.Q renames P;".
12708 2014-01-20  Yannick Moy  <moy@adacore.com>
12710         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
12711         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
12712         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
12713         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
12714         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
12715         Expander_Active.
12717 2014-01-20  Yannick Moy  <moy@adacore.com>
12719         * sinfo.ads Update documentation of GNATprove mode.
12721 2014-01-20  Yannick Moy  <moy@adacore.com>
12723         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
12724         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
12725         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
12726         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
12727         GNATprove_Mode.
12728         * sem_ch13.adb: Remove blank.
12729         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
12730         subprograms by alias for renamings, not for inherited primitive
12731         operations.
12732         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
12733         in GNATprove mode.
12734         (Remove_Side_Effects): Apply the removal in
12735         GNATprove mode, for the full analysis of expressions.
12736         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
12737         mode.
12738         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
12739         save/restore actions for Expander_Active flag in GNATprove mode,
12740         similar to what is done in ASIS mode.
12741         * frontend.adb (Frontend): Generic bodies are instantiated in
12742         GNATprove mode.
12743         * gnat1drv.adb (Adjust_Global_Switches): Set operating
12744         mode to Check_Semantics in GNATprove mode, although a light
12745         expansion is still performed.
12746         (Gnat1drv): Set Back_End_Mode to
12747         Declarations_Only in GNATprove mode, and later on special case
12748         the GNATprove mode to continue analysis anyway.
12749         * lib-writ.adb (Write_ALI): Always generate ALI files in
12750         GNATprove mode.
12751         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
12752         Expander_Active.
12753         (SPARK_Mode): Renamed as GNATprove_Mode.
12754         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
12755         tree in GNATprove_Mode.
12756         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
12757         body in GNATprove mode.
12758         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
12759         mode.
12760         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
12761         Make sure side effects are removed in GNATprove mode.
12763 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
12765         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
12766         for aliased objects with an unconstrained nominal subtype.
12767         * gcc-interface/trans.c (Call_to_gnu): Likewise.
12768         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
12769         <case N_Op_Minus>: Remove useless code.
12770         (Exception_Handler_to_gnu_zcx): Minor tweaks.
12772 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
12774         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
12775         Tidy up.  For a subtype with discriminants and variant part, if a
12776         variant is statically selected and the fields all have a constant
12777         position, put them in order of increasing position.  Likewise if
12778         no variant part but representation clause is present.
12779         * gcc-interface/utils.c (make_packable_type): Robustify.
12780         (maybe_pad_type): Use local variable and tidy up condition.  If no
12781         alignment is specified, use the original one.
12782         (create_type_stub_decl): Minor tweak.
12783         (convert) <case VECTOR_CST>: Fix typo.
12784         <case CONSTRUCTOR>: Deal with padding types around the same type.
12785         Do not punt on missing fields.
12786         (unchecked_convert): Call finish_record_type to lay out the special
12787         record types made for conversions from/to problematic integer types.
12788         Bump the alignment of CONSTRUCTORs before converting them to a more
12789         aligned type.
12791 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
12793         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
12794         obsolete code for type_annotate_only mode, simplify code and slightly
12795         improve wording of comments.
12797 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
12799         PR ada/59772
12800         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
12801         as intermediate type.
12802         (UI_To_gnu): Likewise.
12804 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12806         * gnatvsn.ads (Current_Year): Bump to 2014.
12808 2014-01-02  Tobias Burnus  <burnus@net-b.de>
12810         * gnat_ugn.texi: Bump @copying's copyright year.
12812 Copyright (C) 2014 Free Software Foundation, Inc.
12814 Copying and distribution of this file, with or without modification,
12815 are permitted in any medium without royalty provided the copyright
12816 notice and this notice are preserved.