svn merge -r 217500:218679 svn+ssh://gcc.gnu.org/svn/gcc/trunk
[official-gcc.git] / gcc / ada / ChangeLog
blobc749b541a2a982c009e53b2485d3c1a5c4b8c76d
1 2014-11-24  Eric Botcazou  <ebotcazou@adacore.com>
3         * gcc-interface/Makefile.in (Cygwin/Mingw): Fix previous change.
5 2014-11-24  Eric Botcazou  <ebotcazou@adacore.com>
7         * gcc-interface/trans.c (build_return_expr): Use INIT_EXPR instead of
8         MODIFY_EXPR to assign to the return object.
9         (finalize_nrv_r): Adjust to above change.
10         (finalize_nrv_unc_r): Likewise.
12 2014-11-24  Eric Botcazou  <ebotcazou@adacore.com>
14         * gcc-interface/trans.c (push_range_check_info): Replace early test
15         with assertion.
16         (Raise_Error_to_gnu): Do not call push_range_check_info if the loop
17         stack is empty.
18         * gcc-interface/utils.c (convert_to_fat_pointer): Fix formatting.
19         * gcc-interface/utils2.c (gnat_invariant_expr): Deal with padded types
20         and revert latest change.
22 2014-11-22  Eric Botcazou  <ebotcazou@adacore.com>
24         * gcc-interface/trans.c (Call_to_gnu): Strip unchecked conversions on
25         actuals of In parameters if the destination type is an unconstrained
26         composite type.
28 2014-11-22  Eric Botcazou  <ebotcazou@adacore.com>
30         * gcc-interface/trans.c (gnat_gimplify_expr): Add 'type' variable.
31         <case NULL_EXPR>: Deal with unconstrained array types and use 'type'.
32         <case ADDR_EXPR>: Use 'type'.
33         <case DECL_EXPR>: Likewise.
35 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
37         * gcc-interface/decl.c (annotate_value_cache): Replace htab with
38         hash_table.
39         (annotate_value): Adjust.
40         (init_gnat_decl): Likewise.
41         (destroy_gnat_decl): Likewise.
42         * gcc-interface/utils.c (pad_type_hash_table): Replace htab with
43         hash_table.
44         (init_gnat_utils): Adjust.
45         (destroy_gnat_utils): Likewise.
46         (lookup_and_insert_pad_type): Likewise.
48 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
50         PR ada/63931
51         * gnatvsn.ads (Library_Version): Switch to "5".
53 2014-11-20  Thomas Quinot  <quinot@adacore.com>
55         * freeze.adb (Freeze_Entity): Do not reset Is_True_Constant
56         for aliased constant objects.
58 2014-11-20  Robert Dewar  <dewar@adacore.com>
60         * exp_util.adb (Following_Address_Clause): Use new Name_Table
61         boolean flag set by parser to avoid the search if there is no
62         address clause anywhere for the name.
63         * namet.adb (Name_Enter): Initialize Boolean_Info flag
64         (Name_Find): ditto (Reinitialize): ditto (Get_Name_Table_Boolean):
65         New function (Set_Name_Table_Boolean): New procedure
66         * namet.ads: Add and document new Boolean field in name table
67         (Get_Name_Table_Boolean): New function.
68         (Set_Name_Table_Boolean): New procedure.
69         * par-ch13.adb (P_Representation_Clause): Set Name_Table boolean
70         flag for an identifier name if we detect an address clause or
71         use-at clause for the identifier.
72         * sem_ch3.adb (Analyze_Object_Declaration): Remove comment about
73         Following_Address_Clause since this function is now optimized
74         and is not a performance concern.
75         * sem_prag.adb (Analyze_Pragma, case Elaborate): In SPARK
76         mode, pragma Elaborate is now allowed, but does not suppress
77         elaboration checking.
79 2014-11-20  Jerome Lambourg  <lambourg@adacore.com>
81         * gcc-interface/Makefile.in: Add some support for VxWorks7.
83 2014-11-20  Thomas Quinot  <quinot@adacore.com>
85         * sem_ch13.adb, freeze.adb: Minor reformatting.
86         * gnat_rm.texi: Minor editing.
88 2014-11-20  Robert Dewar  <dewar@adacore.com>
90         * sem_prag.adb (Analyze_Pragma): Minor reformatting.
91         (Process_Suppress_Unsuppress): Ignore suppress Elaboration_Check
92         in SPARK.
94 2014-11-20  Bob Duff  <duff@adacore.com>
96         * gnat_rm.texi: Correction to documentation of
97         'Unrestricted_Access in case of access to unconstrained array.
98         * a-cofove.adb (Capacity): Fix bug -- was always
99         returning Capacity_Range'Last.
100         (Is_Sorted): Fix bug -- was always returning True, because
101         Container.Last = Last. That test isn't even needed, because the
102         loop will go around zero times in that case, so deleted that
103         test rather than fixing it.
104         (Reverse_Elements): Make sure to use the correct array bounds.
106 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
108         * sem_ch12.adb (Analyze_Associations): In GNATProve mode, build
109         wrappers for functions and operators that are actuals only if
110         expander is enabled. Wrappers play no role within a generic unit.
112 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
114         * sem_util.adb (Policy_In_Effect): Use the
115         configuration level assertion flag.
117 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
119         * s-parame-ae653.ads: Update comments.
121 2014-11-20  Robert Dewar  <dewar@adacore.com>
123         * types.ads, einfo.ads: Minor reformatting.
124         * sem_elab.adb (Check_A_Call): Add guard for reference to Alias
125         for variable case.
127 2014-11-20  Bob Duff  <duff@adacore.com>
129         * a-cofove.adb (Elems,Elemsc): Use access-to-constrained arrays
130         instead of access-to-unconstrained, because the latter doesn't
131         work with 'Unrestricted_Access when the result is returned from
132         a function.
133         * a-cofove.ads (Vector): Move the discriminant-dependent array
134         after the other components for efficiency. Otherwise the compiler
135         will generate a lot of code to calculate the offset of the other
136         components every time they're accessed.
138 2014-11-20  Olivier Hainque  <hainque@adacore.com>
140         * opt.ads: Fix comment on Generate_SCO_Instance_Table wrt when
141         it is set to true.
143 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
145         * exp_ch3.adb (Expand_N_Object_Declaration): Handle properly
146         a type invariant check on an object with default initialization
147         and an address clause.
149 2014-11-20  Robert Dewar  <dewar@adacore.com>
151         * sem_elab.adb (Check_A_Call): Handle variable ref case in
152         SPARK (Check_Elab_Call): ditto (Find_Elab_Reference): ditto
153         (Get_Referenced_Ent): ditto.
154         * sem_elab.ads: Comment fixes to account for the fact that we
155         now deal with variable references in SPARK mode.
156         * sem_res.adb (Resolve_Entity_Name): In SPARK_Mode Call
157         Check_Elab_Call for variable.
159 2014-11-20  Yannick Moy  <moy@adacore.com>
161         * a-cofove.ads (Copy): Fix precondition, which should allow
162         Capacity = 0.
163         (First_To_Previous, Current_To_Last): Add necessary preconditions.
165 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
167         * exp_ch3.adb (Build_Initialization_Call): Reimplement the
168         circuitry which extraacts the [underlying] full view of a
169         private type to handle a case where the private type acts as a
170         generic actual.
171         * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Inherit the
172         loop label form the original loop regardless of whether it came
173         from source.
174         * sem_attr.adb (Analyze_Attribute): When taking 'Access of an
175         expression function with a generated body that has not been
176         analyzed yet, analyze the body to freeze the expression.
177         * sem_util.adb (Set_Public_Status_Of): New routine.
178         (Transfer_Entities): Handle the case where a private type with
179         an internally generated full view is being transfered and update
180         its full view.
182 2014-11-20  Vincent Celier  <celier@adacore.com>
184         * prj-nmsc.adb (Check_Object): If a unit is in a multi-source
185         file, its object file is never the same as any other unit.
187 2014-11-20  Bob Duff  <duff@adacore.com>
189         * s-taskin.adb (Initialize_ATCB): Take into
190         account the fact that the domain of the activator can be null
191         if we're initializing a foreign task.
193 2014-11-20  Robert Dewar  <dewar@adacore.com>
195         * sem_ch12.adb: Minor reformatting.
197 2014-11-20  Jerome Lambourg  <lambourg@adacore.com>
199         * s-osinte-vxworks.ads: Add comments. Minor reformatting.
201 2014-11-20  Yannick Moy  <moy@adacore.com>
203         * sem_prag.adb, sem_elab.adb: Minor rewording of error message in
204         SPARK mode, for consistency.
206 2014-11-20  Vasiliy Fofanov  <fofanov@adacore.com>
208         * gnat_ugn.texi: New section on gnattest stubbing. Minor
209         reformatting.
211 2014-11-20  Jerome Lambourg  <lambourg@adacore.com>
213         * s-taprop-vxworks.adb (Create_Task): Fix thread comparison.
214         Minor reformatting.
216 2014-11-20  Robert Dewar  <dewar@adacore.com>
218         * s-tassta.adb, exp_aggr.adb, s-taskin.adb, exp_strm.adb: Minor
219         reformatting.
220         * comperr.adb (Compiler_Abort): New wording for bug box.
221         * par-ch13.adb: Minor reformatting.
222         * par-ch3.adb (P_Identifier_Declarations): Handle aspect
223         specifications given before initialization expression in object
224         declaration cleanly.
225         * gnat1drv.adb (Adjust_Global_Switches): Make sure static
226         elaboration mode is set if we are operating in SPARK mode.
227         * sem_ch12.adb (Analyze_Package_Instantiation): Make
228         sure static elab mode is set if we are in SPARK mode.
229         (Analyze_Subprogram_Instantiation): ditto.
230         (Set_Instance_Env): ditto.
231         * sem_elab.adb (Check_A_Call): In SPARK mode, we require
232         Elaborate_All in the case of a call during elaboration to a
233         subprogram in another unit.
235 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
237         * inline.adb (Can_Split_Unconstrained_Function,
238         Build_Procedure): Copy parameter type rather than creating
239         reference to the entity, to capture class-wide reference, whose
240         name is not retrieved by visibility.
242 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
244         * s-taspri-solaris.ads: Replace 64 by long_long_integer'size.
246 2014-11-20  Olivier Hainque  <hainque@adacore.com>
248         * init.c (__gnat_map_signal for VxWorks): Use a common mapping
249         scheme for VxWorks version >= 6, instead of falling back to the
250         vx5 scheme for versions > 6.
252 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
254         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Use
255         base type when constructing subtype indication for constrained
256         target object.
258 2014-11-20  Jose Ruiz  <ruiz@adacore.com>
260         * projects.texi: Minor spelling fix.
262 2014-11-20  Bob Duff  <duff@adacore.com>
264         * gnat_ugn.texi: Add doc for --split-line-before-op switch in gnatpp.
266 2014-11-20  Vincent Celier  <celier@adacore.com>
268         * prj-attr.adb (Register_New_Package): Allow the registration
269         of an already unknown package and make it known.
271 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
273         * gcc-interface/decl.c, gcc-interface/utils.c: replace htab with
274         hash_table.
276 2014-11-20  Robert Dewar  <dewar@adacore.com>
278         * sem_prag.adb (Analyze_Pragma, case Elaborate): Forbid pragma
279         Elaborate in SPARK mode.
281 2014-11-20  Bob Duff  <duff@adacore.com>
283         * s-taskin.adb, s-tassta.adb (Initialize_ATCB): If Domain
284         is null, then initialize T.Common.Domain to that of the
285         activating task (not the parent task!), as required by RM-D.16.1.
286         T.Common.Domain should never be null; so Assert. Remove similar
287         code from Create_Task in s-tassta.adb.
288         * s-mudido-affinity.adb: Remove checks for Domain = null,
289         because it can't be null.
290         * s-taskin.ads, s-taspri-dummy.ads, s-taspri-mingw.ads,
291         s-taspri-posix.ads, s-taspri-posix-noaltstack.ads,
292         s-taspri-solaris.ads, s-taspri-vxworks.ads: Mark limited types as
293         explicitly limited for clarity.
295 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
297         * exp_aggr.adb (Init_Hidden_Discriminants): Code clean up.
299 2014-11-20  Robert Dewar  <dewar@adacore.com>
301         * errout.adb (Error_Msg): Don't suppress continuation msgs for
302         run-time files.
303         * sem_prag.adb (Analyze_Pragma, case Elaborate): Forbid pragma
304         Elaborate in SPARK mode.
306 2014-11-20  Yannick Moy  <moy@adacore.com>
308         * gnat_rm.texi: Update GNAT RM with rule about expressions in
309         Update attribute.
311 2014-11-20  Thomas Quinot  <quinot@adacore.com>
313         * g-socket.adb (To_Host_Entry): Guard against case of a
314         non-AF_INET entry.
316 2014-11-20  Vadim Godunko  <godunko@adacore.com>
318         * a-strunb-shared.adb (To_Unbounded_String): Use shared empty
319         object to construct return value when source string is empty or
320         requested length is zero.
321         * a-stwiun-shared.adb (To_Unbounded_Wide_String): Likewise.
322         * a-stzunb-shared.adb (To_Unbounded_Wide_Wide_String): Likewise.
324 2014-11-20  Yannick Moy  <moy@adacore.com>
326         * a-cfhase.adb, a-cfinve.adb, a-cforma.adb, a-cfhama.adb, a-cforse.adb,
327         a-cofove.adb: Skip CodePeer analysis on body of all formal containers.
329 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
331         * adaint.c: Fix typo.
332         * exp_util.adb (Make_Subtype_From_Expr): Complete previous change,
333         generate constant values.
334         * sem_eval.adb (Decompose_Expr): Fix latent bug leading to a wrong
335         evaluation to '0' of some unknown values.
337 2014-11-20  Robert Dewar  <dewar@adacore.com>
339         * repinfo.adb (List_Record_Info): Do not list discriminant in
340         unchecked union.
341         * sem_ch13.adb (Has_Good_Profile): Minor reformatting
342         (Analyze_Stream_TSS_Definition): Minor reformatting
343         (Analyze_Record_Representation_Clause): Do not issue warning
344         for missing rep clause for discriminant in unchecked union.
346 2014-11-20  Vadim Godunko  <godunko@adacore.com>
348         * a-strunb-shared.adb, a-stwiun-shared.adb, a-stzunb-shared.adb
349         ("&") Use already computed value of data length to call allocation
350         subprogram.
352 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
354         * exp_ch6.adb (Expand_Call, Inlined_Subprogram): Do not suppress
355         debugging information for a call to a predefined unit, if the
356         call comes from source and the unit is in the Ada hierarchy.
358 2014-11-20  Bob Duff  <duff@adacore.com>
360         * s-mudido.ads: Update signature of Create and Get_Last_CPU. Add
361         CPU_Set, another Create, and Get_CPU_Set.
362         * s-mudido.adb: Corresponding changes to the spec. New
363         operations just raise an exception.  Also minor cleanup: use
364         raise_expressions.
365         * s-mudido-affinity.adb: Implementations of new operations from
366         * s-mudido.ads, for the platforms that actually support processor
367         affinity. The new Create (which takes a set) now does all the
368         work; the old Create (which takes a range) now just calls the
369         new one. Change error messages to reflect the fact that it's an
370         arbitrary set, not just a range.
372 2014-11-20  Robert Dewar  <dewar@adacore.com>
374         * exp_attr.adb: Minor reformatting.
376 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
378         * exp_util.adb (Make_Subtype_From_Expr): Capture the bounds of
379         all index constracts when the expression is of an array type.
381 2014-11-20  Bob Duff  <duff@adacore.com>
383         * s-taskin.ads: Minor comment improvements.
385 2014-11-20  Bob Duff  <duff@adacore.com>
387         * exp_ch9.adb: Minor comment fixes.
388         * s-taskin.adb (Initialize): Small simplification: pass System_Domain
389         to Initialize_ATCB instead of passing null and then setting the Domain
390         to System_Domain. This requires moving the creation of System_Domain
391         earlier.
392         * s-taprop-linux.adb (Set_Task_Affinity): Only call CPU_SET for
393         processors that have a True in the Domain. This is necessary if the
394         Domain is not all-True values.
396 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
398         * sem_ch13.adb (Has_Good_Profile): a) An stream attribute
399         for the class-wide type of an interface type is not a primitive
400         operation and is not subject to the restrictions of 13.13. (38/3).
401         b) A stream operation for an interface type must be a null
402         procedure, and it cannot be a function.
404 2014-11-20  Bob Duff  <duff@adacore.com>
406         * exp_attr.adb (Attribute_Max_Size_In_Storage_Elements):
407         Eliminate 'Class references from the tree, because gigi crashes on
408         'Class. Also, don't check Nkind (Attr) -- it is known to be
409         N_Attribute_Reference.  Assert that instead.
411 2014-11-20  Bob Duff  <duff@adacore.com>
413         * debug.adb: Minor comment fix.
415 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
417         * a-ciorma.adb: Minor update: move pragma Annotate up.
418         * a-cfdlli.adb: Skip codepeer analysis on this body.
420 2014-11-20  Robert Dewar  <dewar@adacore.com>
422         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
423         Allow use of this pragma with generic unit (package or subprogram).
424         * gnat_rm.texi: Clarify that pragma No_Elaboration_Code_All can
425         be applied to generics.
427 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
429         * sem_aggr.adb (Valid_Limited_Ancestor): Ancestor part of
430         extension aggregate can itself be an extension aggregate, as
431         well as a call that is rewritten as a reference.
433 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
435         * inline.adb (Add_Inlined_Subprogram): Insert all programs
436         generated as a body or whose declaration was provided along with
437         the body.
439 2014-11-20  Javier Miranda  <miranda@adacore.com>
441         * sem.adb (Semantics): Disable expansion if we are compiling a
442         separate unit under configurable runtime. By default separate
443         units are compiled with expansion disabled but under configurable
444         runtime we enable the expansion to get error messages about
445         missing entities.
447 2014-11-20  Robert Dewar  <dewar@adacore.com>
449         * sem_ch13.adb: Minor reformatting.
450         * exp_util.adb (Following_Address_Clause): Handle case of
451         package private part.
453 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
455         * a-cdlili.adb, a-cihama.adb, a-coinve.adb, a-cusyqu.adb, a-ciorse.adb,
456         a-coorma.adb, a-cborma.adb, a-cidlli.adb, a-cimutr.adb, a-ciormu.adb,
457         a-cbprqu.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb, a-coboho.adb,
458         a-cuprqu.adb, a-cbhama.adb, a-rbtgbo.adb, a-cborse.adb, a-comutr.adb,
459         a-ciorma.adb, a-cobove.adb, a-coormu.adb, a-convec.adb, a-cohase.adb,
460         a-coinho.adb, a-coinho-shared.adb, a-cbdlli.adb, a-cbsyqu.adb,
461         a-cbmutr.adb, a-cbhase.adb: Add pragma Annotate to prevent codepeer
462         from analyzing these bodies.
464 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
466         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not apply
467         inlining expansion if function build in place, i.e. has a limited
468         return type.
470 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
472         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Add
473         variables Body_Id, Body_Inputs, Body_Outputs, Spec_Inputs,
474         Spec_Outputs. Synthesize the inputs and outputs of the subprogram
475         when pragma [Refined_]Global is missing and perform legality
476         checks on output states with visible refinement.
477         (Appears_In): Update the comment on usage.
478         (Check_Output_States): New routine.
479         (Collect_Dependency_Clause): New routine.
480         (Collect_Global_Items): Relocated to
481         Analyze_Refined_Global_In_Decl_Part.
482         (Collect_Subprogram_Inputs_Outputs): Add new formal parameters
483         Synthesize and Depends_Seen. The routine can now synthesize inputs
484         and outputs from pragma [Refined_]Depends.
485         (Normalize_Clause): Update the comment on usage. The routine no longer
486         performs normalization of outputs.
487         (Normalize_Clauses): Normalize both inputs and outputs.
488         (Normalize_Output): Relocated to Normalize_Clauses.
489         * sem_prag.ads (Collect_Subprogram_Inputs_Outputs): Add new
490         formal parameters Synthesize and Depends_Seen and update the
491         comment on usage.
493 2014-11-20  Vincent Celier  <celier@adacore.com>
495         PR ada/47500
496         * back_end.adb (Scan_Back_End_Switches): Skip switch -G and
497         its argument.
499 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
501         * sem_ch13.adb (Reset_Loop_Variable): New subsidiary procedure
502         in Build_Predicate_Functions, to handle properly quantified
503         expressions in dynamic predicates.
505 2014-11-20  Robert Dewar  <dewar@adacore.com>
507         * gnatcmd.adb, sem_ch6.adb, exp_dist.adb: Minor reformatting.
508         * sem_util.adb (Bad_Unordered_Enumeration_Reference): Suppress
509         warning (return False) for generic type.
511 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
513         * sem_res.adb (Appears_In_Check): Removed.
514         (Is_OK_Volatile_Context): Rewrite the checks which verify that
515         an effectively volatile object subject to enabled properties
516         Async_Writers or Effective_Reads appears in a suitable context to
517         properly recognize a procedure call.
518         (Within_Check): New routine.
519         (Within_Procedure_Call): New routine.
521 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
523         * sem_ch6.adb: Improve better error message.
525 2014-11-20  Thomas Quinot  <quinot@adacore.com>
527         * freeze.adb, sem_ch13.adb: Minor editing.
529 2014-11-20  Vincent Celier  <celier@adacore.com>
531         * gnatcmd.adb: Remove any special processing for the ASIS tools
532         (gnatpp, gnatmetric, gnatcheck, gnatelim and gnatstup) and simply
533         invoke the tool with the provided switches and arguments.
535 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
537         * sem_ch6.adb (Analyze_Expression_Function): Reject declaration
538         of expression function with identical profile as previous
539         expression function.
541 2014-11-20  Thomas Quinot  <quinot@adacore.com>
543         * sem_ch13.adb: Complete previous change.
544         * exp_dist.adb, exp_dist.ads: Rework PolyORB/DSA arguments processing
545         circuitry to correctly handle the case of non-private limited
546         unconstrained formals.
548 2014-11-20  Robert Dewar  <dewar@adacore.com>
550         * freeze.adb, exp_dbug.adb, sem_ch13.adb: Minor reformatting.
552 2014-11-20  Thomas Quinot  <quinot@adacore.com>
554         * einfo.ads: Fix minor typo in comment.
556 2014-11-20  Robert Dewar  <dewar@adacore.com>
558         * inline.adb, sem_util.adb: Minor reformatting.
560 2014-11-20  Pierre-Marie Derodat  <derodat@adacore.com>
562         * uintp.h (UI_Eq): Declare.
563         * urealp.h (Norm_Den): Declare.
564         (Norm_Num): Declare.
565         * exp_dbug.adb (Is_Handled_Scale_Factor): New.
566         (Get_Encoded_Name): Do not output ___XF GNAT encodings
567         for fixed-point types when these can be handled by GCC's DWARF
568         back-end.
570 2014-11-20  Thomas Quinot  <quinot@adacore.com>
572         * sem_ch13.db (Inherit_Aspects_At_Freeze_Point): Inherit parent
573         SSO even if set through a pragma Default_Scalar_Storage_Order.
574         * freeze.adb (Set_SSO_From_Default): For a type extension,
575         do not let the default SSO override the parent SSO.
576         * gnat_rm.texi: document the above
578 2014-11-20  Robert Dewar  <dewar@adacore.com>
580         * a-stream.ads, a-reatim.ads, a-calend.ads, sinfo.ads, s-crtl.ads,
581         interfac.ads, s-taskin.ads: Minor reformatting.
583 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
585         * sem_prag.adb (Analyze_Pragma): Extensions_Visible can now
586         apply to an expression function.
587         * sem_util.adb (Extensions_Visible_Status): Add special processing
588         for expression functions.
590 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
592         * inline.adb (Build_Body_To_Inline): Remove meaningless aspects
593         and pragmas.
594         (Generate_Subprogram_Body): Remove meaningless aspects and pragmas.
595         (Remove_Aspects_And_Pragmas): New routine.
596         (Remove_Pragmas): Removed.
597         * namet.ads, namet.adb (Nam_In): New versions of the routine.
599 2014-11-20  Thomas Quinot  <quinot@adacore.com>
601         * sem_util.adb: Minor reformatting.
603 2014-11-20  Robert Dewar  <dewar@adacore.com>
605         * sem_prag.adb (Analyze_Pragma, case Linker_Section): Detect
606         duplicate Linker_Section.
608 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
610         * exp_ch4.adb: Add guard for build-in-place boolean op.
612 2014-11-20  Yannick Moy  <moy@adacore.com>
614         * checks.adb (Apply_Scalar_Range_Check): In GNATprove mode,
615         put a range check when an empty range is used, instead of an
616         error message.
617         * sinfo.ads Update comment on GNATprove mode.
619 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
621         * a-stream.ads, s-osinte-linux.ads, a-reatim.ads, a-calend.ads,
622         s-crtl.ads, interfac.ads, s-taskin.ads: Replace uses of 2 ** 63 and
623         2 ** 64 by references to Long_Long_Integer instead, to allow these
624         units to be analyzed by codepeer or spark when using a target
625         configuration file with long_long_size set to 32.
627 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
629         * sem_util.adb (Extensions_Visible_Status): Modify the logic to account
630         for non-SPARK code.
631         (Object_Access_Level): In ASIS mode, recognize
632         a selected component with an implicit dereference so that it
633         yields the same value with and without expansion.
635 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
637         * sem_prag.adb (Analyze_Pragma, case Implemented): In ASIS
638         (compile-only) mode, use original type declaration to determine
639         whether protected type implements an interface.
641 2014-11-20  Yannick Moy  <moy@adacore.com>
643         * a-cfdlli.adb, a-cfdlli.ads, a-cfinve.adb, a-cfinve.ads,
644         * a-cofove.adb, a-cofove.ads: Mark spec as SPARK_Mode, and private
645         part/body as SPARK_Mode Off.
646         * a-cfhama.adb, a-cfhama.ads, a-cfhase.adb, a-cfhase.ads,
647         * a-cforma.adb, a-cforma.ads, a-cforse.adb, a-cforse.ads: Use
648         aspect instead of pragma for uniformity.
650 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
652         * sem_util.adb (Is_EVF_Expression): Include
653         attributes 'Loop_Entry, 'Old and 'Update to the logic.
655 2014-11-20  Bob Duff  <duff@adacore.com>
657         * sem_res.adb (Make_Call_Into_Operator): Don't
658         call Left_Opnd in the case of unary operators, because they only
659         have Right.
661 2014-11-20  Pascal Obry  <obry@adacore.com>
663         * initialize.c (ProcListCS): New extern variable (critical section).
664         (ProcListEvt): New extern variable (handle).
665         (__gnat_initialize)[Win32]: Initialize the ProcListCS critical
666         section object and the ProcListEvt event.
667         * final.c (__gnat_finalize)[Win32]: Properly finalize the
668         ProcListCS critical section and the ProcListEvt event.
669         * adaint.c (ProcListEvt): New Win32 event handle.
670         (EnterCS): New routine to enter the critical section when dealing with
671         child processes chain list.
672         (LeaveCS): As above to exit from the critical section.
673         (SignalListChanged): Routine to signal that the chain process list has
674         been updated.
675         (add_handle): Use EnterCS/LeaveCS, also call SignalListChanged when the
676         handle has been added.
677         (__gnat_win32_remove_handle): Use EnterCS/LeaveCS,
678         also call SignalListChanged if the handle has been found and removed.
679         (remove_handle): Routine removed, implementation merged with the above.
680         (win32_wait): Use EnterCS/LeaveCS for the critical section. Properly
681         copy the PID list locally to ensure that even if the list is updated
682         the local copy remains valid. Add into the hl (handle list) the
683         ProcListEvt handle. This handle is used to signal that a change has
684         been made into the process chain list. This is to ensure that a waiting
685         call can be resumed to take into account new processes. We also make
686         sure that if the handle was not found into the list we start over
687         the wait call. Indeed another concurrent call to win32_wait()
688         could already have handled this process.
690 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
692         * sem_res.adb (Resolve_Actuals): The legality rule concerning
693         the use of class-wide actuals for a non-controlling formal are
694         not rechecked in an instance.
696 2014-11-20  Pascal Obry  <obry@adacore.com>
698         * g-dirope.ads: Minor typo fix.
700 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
702         * exp_attr.adb (Expand_N_Attribute_Reference,
703         Expand_Update_Attribute): Preserve the tag of a prefix by offering
704         a specific view of the class-wide version of the prefix.
706 2014-11-20  Javier Miranda  <miranda@adacore.com>
708         * sem_ch6.adb (Analyze_Function_Return): For functions returning
709         an access to an interface add an implicit conversion to the target
710         type to force the displacement of the pointer to the object to
711         reference the secondary dispatch table.
712         (Check_Anonymous_Return): Skip internally built functions which handle
713         the case of null access when locating the master of a task.
714         * sem_res.adb (Valid_Conversion): Return true for internally
715         generated conversions of access to interface types added to force
716         the displacement of the pointer to reference the corresponding
717         dispatch table.
719 2014-11-20  Pascal Obry  <obry@adacore.com>
721         * adaint.c (add_handle): realloc with a size of +100.
723 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
725         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
726         back the resolved operands to the original call node, taking
727         into account that the original call may have named associations.
729 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
731         * inline.adb (Has_Some_Contract): Change the
732         guard to test the Ekind of the entity rather than the Analyzed
733         flag. This handles partially analyzed contexts.
735 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
737         * sem_ch8.adb (Analyze_Object_Renaming): In Ada 83 mode, do
738         not reject the renaming of a function result if the renaming
739         does not come for source.
741 2014-11-20  Robert Dewar  <dewar@adacore.com>
743         * exp_util.ads: Minor addition of ??? clause.
745 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
747         * sem_util.adb (Is_Variable): For an Ada 2012 implicit
748         dereference introduced for an indexing opertion, check that the
749         type of the corresponding access discriminant is not an access
750         to constant.
752 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
754         * sem_ch6.adb (Find_Corresponding_Spec): Inherit
755         the ghostness of the matching spec, the same way convention
756         is inherited.
758 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
760         * sem_ch3.adb (Analyze_Object_Declaration): Swap a couple of
761         tests in a condition so Following_Address_Clause is invoked
762         only if need be.
763         * exp_util.ads (Following_Address_Clause): Add small note.
765 2014-11-20  Pascal Obry  <obry@adacore.com>
767         * adaint.c (remove_handle): New local routine without a lock.
768         (win32_wait): fix the critical section to properly protect needed
769         code, use new remove_handle.
770         (__gnat_win32_remove_handle): refactor code with remove_handle.
772 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
774         * inline.adb (Analyze_Inlined_Bodies): Iterate between loading
775         of the inlined bodies and instantiation of the generic bodies
776         until no more bodies need to be loaded.
778 2014-11-20  Vincent Celier  <celier@adacore.com>
780         * prj.adb, prj.ads, prj-conf.adb: Minor change of procedure name:
781         Update_Ignore_Missing_With becomes Set_Ignore_Missing_With.
783 2014-11-20  Robert Dewar  <dewar@adacore.com>
785         * exp_ch7.adb, sem_ch5.adb, sem_ch7.adb, sem_util.adb,
786         sem_ch6.adb: Minor reformatting.
788 2014-11-20  Javier Miranda  <miranda@adacore.com>
790         * exp_ch4.adb (Expand_N_Type_Conversion): Add missing implicit
791         conversion to force the displacement of the pointer to the object
792         to reference the secondary dispatch table.
794 2014-11-11  Simon Wright  <simon@pushface.org>
796         PR ada/42978
797         * mlib-utl.adb (ar): Output the options passed to ranlib.
799 2014-11-07  Arnaud Charlet  <charlet@adacore.com>
801         * debug.adb, snames.adb-tmpl (Is_Keyword_Name): Consider 'overriding'
802         a keyword in Ada 95 mode when -gnatd.D is used.
803         * gnat_ugn.texi: Document -gnatd.D.
805 2014-11-07  Vasiliy Fofanov  <fofanov@adacore.com>
807         * gnatls.adb: Lower severity of the program's return value in
808         some common cases.
810 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
812         * sem_ch10.adb (Decorate_Type): The limited view of a tagged
813         type has an empty list of primitive operations.
815 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
817         * sem_ch3.adb (Analyze_Object_Declaration): Update references to SPARK
818         RM.
819         (Process_Full_View): Update references to SPARK RM.
820         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Update references
821         to SPARK RM.
822         (Analyze_Subprogram_Body_Helper): Update references
823         to SPARK RM.
824         * sem_ch7.adb (Analyze_Package_Body_Helper): Update references
825         to SPARK RM.
826         * sem_prag.adb (Check_Ghost_Constituent): Update references to
827         SPARK RM.
828         * sem_res.adb (Check_Ghost_Policy): Update references to SPARK RM.
829         (Resolve_Actuals): Ensure that the actual parameter of a Ghost
830         subprogram whose formal is of mode IN OUT or OUT is Ghost.
831         * sem_util.adb (Check_Ghost_Completion): Update references to
832         SPARK RM.
834 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
836         * exp_ch7.adb (Make_Final_Call): If type of designated object is
837         derived from that of the formal of the Deep_Finalize procedure,
838         add an unchecked conversion to prevent spurious type error.
840 2014-11-07  Robert Dewar  <dewar@adacore.com>
842         * table.adb, inline.adb, einfo.adb, gnat1drv.adb, exp_ch13.adb,
843         exp_fixd.adb, prj-conf.adb, exp_strm.adb, a-cofove.adb, exp_ch3.ads:
844         Minor reformatting.
846 2014-11-07  Robert Dewar  <dewar@adacore.com>
848         * sem_ch12.adb, sem_ch13.adb, prj-tree.adb: Minor reformatting.
850 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
852         * einfo.adb (Set_Is_Checked_Ghost_Entity,
853         Set_Is_Ignored_Ghost_Entity): Add exceptions to the assertion
854         check.
855         * sem_ch6.adb (Check_Conformance): Consider only
856         source subprograms when checking for Ghost conformance.
857         * sem_prag.adb (Analyze_Pragma): Handle the case
858         where pragma Ghost applies to a stand alone subprogram body that
859         acts as a compilation unit.
860         * sem_res.adb: Minor reformatting (merge if statements).
862 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
864         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
865         Check whether underlying type is constrained before generating
866         the object declaration for the result object of the function.
868 2014-11-07  Robert Dewar  <dewar@adacore.com>
870         * freeze.adb: Code clean up.
872 2014-11-07  Yannick Moy  <moy@adacore.com>
874         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cfinve.ads,
875         * a-cforma.ads, a-cforse.ads, a-cofove.ads: Mark First_To_Previous,
876         Current_To_Last and Strict_Equal as Ghost.
878 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
880         * sem_ch3.adb: Code clean up.
882 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
884         * freeze.adb (Freeze_Entity): Issue an error regardless of the
885         SPARK_Mode when a ghost type is effectively volatile.
886         * sem_ch3.adb (Analyze_Object_Contract): Decouple the checks
887         related to Ghost from SPARK_Mode.
888         * sem_res.adb (Check_Ghost_Policy): Issue an error regardless
889         of the SPARK_Mode when the Ghost policies do not match.
890         * sem_util.adb (Check_Ghost_Completion): Issue an error regardless
891         of the SPARK_Mode when the Ghost policies do not match.
893 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
895         * sem_ch5.adb (Analyze_Iterator_Specification): return if name
896         in iterator does not have any usable aspect for iteration.
898 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
900         * sem_ch6.adb (Analyze_Null_Procedure): Reject a null procedure
901         that there is a previous null procedure in scope with a matching
902         profile.
904 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
906         * atree.adb (Copy_Separate_Tree): Copy the aspect specifications.
907         * inline.adb (Has_Some_Contract): Do the check only when the
908         related entity has been analyzed.
910 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
912         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Integer):
913         If the restriction No_Floating_Point is in effect, and the
914         operands have the same type, introduce a temporary to hold
915         the fixed point result, to prevent the use of floating-point
916         operations at run-time.
918 2014-11-07  Robert Dewar  <dewar@adacore.com>
920         * freeze.adb (Check_Address_Clause): Minor reformatting
921         (Find_Constant): Minor reformatting.
922         (Freeze_Array_Type): Modify check for packed declarations.
923         (Freeze_Entity): Minor reformatting.
925 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
927         * gnatvsn.ads (Library_Version): Bump to 5.0.
929 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
931         * gcc-interface/trans.c (Subprogram_Body_to_gnu): For a function with
932         copy-in/copy-out parameters and which returns by invisible reference,
933         do not create the variable for the return value; instead, manually
934         generate the indirect copy out statements on exit.
935         (gnat_to_gnu) <N_Simple_Return_Statement>: Adjust accordingly and build
936         a simple indirect assignment for the return value.
938 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
940         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: For a
941         derived untagged type that renames discriminants, be prepared for
942         a type derived from a private discriminated type when changing the
943         type of the stored discriminants.
945 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
947         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): Set
948         the SLOC of the node on the call to set_jmpbuf_address_soft emitted
949         on block entry with SJLJ.
951 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
953         * gcc-interface/utils.c (create_subprog_decl): Move code dealing with
954         conflicting inlining status of nested subprograms to...
955         * gcc-interface/trans.c (check_inlining_for_nested_subprog): ...here.
956         (Attribute_to_gnu) <Attr_Access>: Call it.
957         (Call_to_gnu): Likewise.
958         (Subprogram_Body_to_gnu): Drop the body if it is an inlined external
959         function that has been marked uninlinable.
961 2014-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
963         * aspects.adb Add an entry for aspect Ghost in table
964         Canonical_Aspect.
965         * aspects.ads Add an entry for aspect Ghost in tables
966         Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names and
967         Implementation_Defined_Aspect.
968         * einfo.adb: Flags 277 and 278 are now in use.
969         (Is_Checked_Ghost_Entity): New routine.
970         (Is_Ghost_Entity): Removed.
971         (Is_Ghost_Subprogram): Removed.
972         (Is_Ignored_Ghost_Entity): New routine.
973         (Set_Is_Checked_Ghost_Entity): New routine.
974         (Set_Is_Ignored_Ghost_Entity): New routine.
975         (Write_Entity_Flags): Output flags Is_Checked_Ghost_Entity and
976         Is_Ignored_Ghost_Entity.
977         * einfo.ads: Add new flags Is_Checked_Ghost_Entity
978         and Is_Ignored_Ghost_Entity along with usage in nodes.
979         (Is_Checked_Ghost_Entity): New routine and pragma Inline.
980         (Is_Ghost_Entity): Removed along with synthesized flag
981         description and usage in nodes.
982         (Is_Ghost_Subprogram): Removed along with synthesized flag description
983         and usage in nodes.
984         (Is_Ignored_Ghost_Entity): New routine and pragma Inline.
985         (Set_Is_Checked_Ghost_Entity): New routine and pragma Inline.
986         (Set_Is_Ignored_Ghost_Entity): New routine and pragma Inline.
987         * freeze.adb (Freeze_Entity): A Ghost type cannot be effectively
988         volatile.
989         * par-prag.adb Pragma Ghost does not need special handling by
990         the parser.
991         * repinfo.adb (List_Mechanisms): Remove the entry for convention Ghost.
992         * sem_attr.adb (Analyze_Access_Attribute): Remove obsolete check.
993         * sem_ch3.adb (Analyze_Full_Type_Declaration): Mark
994         the type as Ghost when its enclosing context is Ghost.
995         (Analyze_Incomplete_Type_Decl): Mark the type as Ghost when
996         its enclosing context is Ghost.
997         (Analyze_Number_Declaration): Mark the number as Ghost when its
998         enclosing context is Ghost.
999         (Analyze_Object_Declaration): Mark the object as Ghost when its
1000         enclosing context is Ghost. Verify the Ghost policy between
1001         initial declaration and completion of a deferred constant.
1002         (Analyze_Object_Contract): A Ghost variable cannot be effectively
1003         volatile, imported or exported.
1004         (Build_Derived_Record_Type): Mark a type extension as Ghost when it
1005         implements a Ghost interface.
1006         (Build_Record_Type): Inherit volatility and "ghostness" from
1007         the parent type.
1008         (Check_Completion): A Ghost entity declared
1009         in a non-Ghost package does not require completion in a body.
1010         (Implements_Ghost_Interface): New routine.
1011         (Process_Full_View): Inherit "ghostness" from the partial view. Verify
1012         the Ghost policy between the partial and full views. Verify the
1013         completion of a Ghost type extension.
1014         * sem_ch4.adb (Check_Ghost_Subprogram_Call): Removed.
1015         * sem_ch5.adb (Analyze_Assignment): Analyze the left hand side first.
1016         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Mark
1017         the subprogram as Ghost when its enclosing context is Ghost.
1018         (Analyze_Generic_Subprogram_Body): Mark the generic body as Ghost
1019         when its enclosing context is Ghost. Verify the Ghost policy
1020         between the spec and body.
1021         (Analyze_Subprogram_Body_Helper): Mark the body as Ghost when its
1022         enclosing context is Ghost. Verify the Ghost policy between the spec
1023         and body.
1024         (Check_Conformance): A Ghost subprogram profile and a non-Ghost
1025         subprogram profile are not subtype conformant.
1026         (Convention_Of): Removed.
1027         * sem_ch7.adb (Analyze_Package_Body_Helper): Inherit the
1028         "ghostness" from the spec. Verify the Ghost policy between
1029         the spec and body.
1030         (Analyze_Private_Type_Declaration): Mark the type as Ghost when its
1031         enclosing context is Ghost.
1032         (Requires_Completion_In_Body): New routine.
1033         (Unit_Requires_Body): Use Requires_Completion_In_Body.
1034         (Unit_Requires_Body_Info): Rename formal parameter P to Pack_Id, update
1035         comment on usage and all uses of P in the body. Use
1036         Requires_Completion_In_Body.
1037         * sem_ch7.ads (Unit_Requires_Body): Rename formal parameter P
1038         to Pack_Id, update comment on usage and all uses of P in the body.
1039         * sem_ch8.adb (Analyze_Exception_Renaming): Inherit the "ghostness"
1040         from the renamed excention.
1041         (Analyze_Generic_Renaming): Inherit the "ghostness" from the
1042         renamed generic subprogram.
1043         (Analyze_Object_Renaming): Inherit the "ghostness" from the renamed
1044         object.
1045         (Analyze_Package_Renaming): Inherit the "ghostness" from the
1046         renamed package.
1047         (Analyze_Subprogram_Renaming): Inherit the "ghostness" from the
1048         renamed subprogram.
1049         * sem_ch11.adb (Analyze_Exception_Declaration): Mark an exception
1050         as Ghost when its enclosing context is Ghost.
1051         * sem_ch12.adb (Analyze_Generic_Package_Declaration,
1052         Analyze_Generic_Subprogram_Declaration): Mark an exception as
1053         Ghost when its enclosing context is Ghost.
1054         (Preanalyze_Actuals): Remove obsolete check.
1055         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
1056         for aspect Ghost.
1057         (Check_Aspect_At_Freeze_Point): Aspects
1058         Depends and Global do no need special checking at freeze point.
1059         (Insert_After_SPARK_Mode): Update comment on usage.
1060         * sem_mech.adb (Set_Mechanisms): Remove the entry for convention Ghost.
1061         * sem_prag.adb Add an entry for pragma Ghost in table Sig_Flags.
1062         (Analyze_Abstract_State): Update the grammar of the pragma. Add
1063         formal parameter Pack_Id along with comment on usage. Mark an
1064         abstract state as Ghost when its enclosing context is Ghost. Add
1065         processing for option Ghost.
1066         (Analyze_Constituent): Verify
1067         that a Ghost abstract state is refined by Ghost constituents.
1068         (Analyze_Pragma): "Ghost" is now a valid policy. Add checks
1069         related to the use and placement of Check_Policy Ghost. Add
1070         processing for pragma Ghost.
1071         (Check_Ghost_Constituent): New routine.
1072         (Is_Valid_Assertion_Kind): "Ghost" is now a valid assertion.
1073         (Process_Convention): Remove obsolete check.
1074         (Set_Convention_From_Pragma): Remove the processing for convention
1075         Ghost.
1076         * sem_res.adb (Check_Ghost_Context): New routine.
1077         (Resolve_Call): Verify that a reference to a Ghost entity appears in a
1078         suitable context. Verify the Ghost polity between point of declaration
1079         and point of use.
1080         (Resolve_Entity_Name): Verify that a reference to
1081         a Ghost entity appears in a suitable context. Verify the Ghost
1082         polity between point of declaration and point of use.
1083         * sem_util.adb (Check_Ghost_Completion): New routine.
1084         (Check_Ghost_Derivation): New routine.
1085         (Incomplete_Or_Partial_View): New routine.
1086         (Incomplete_Or_Private_View): Removed.
1087         (Is_Ghost_Entity): New routine.
1088         (Is_Ghost_Statement_Or_Pragma): New routine.
1089         (Is_Subject_To_Ghost): New routine.
1090         (Policy_In_Effect): New routine.
1091         (Set_Is_Ghost_Entity): New routine.
1092         (Within_Ghost_Scope): New routine.
1093         * sem_util.ads (Check_Ghost_Completion): New routine.
1094         (Check_Ghost_Derivation): New routine.
1095         (Incomplete_Or_Partial_View): New routine.
1096         (Incomplete_Or_Private_View): Removed.
1097         (Is_Ghost_Entity): New routine.
1098         (Is_Ghost_Statement_Or_Pragma): New routine.
1099         (Is_Subject_To_Ghost): New routine.
1100         (Policy_In_Effect): New routine.
1101         (Set_Is_Ghost_Entity): New routine.
1102         (Within_Ghost_Scope): New routine.
1103         * snames.adb-tmpl (Get_Convention_Id): Remove the entry for
1104         convention Ghost.
1105         (Get_Convention_Name): Remove the entry for convention Ghost.
1106         * snames.ads-tmpl Remove the convention id for Ghost. Add a
1107         pragma id for Ghost.
1109 2014-10-31  Sergey Rybin  <rybin@adacore.com frybin>
1111         * gnat_ugn.texi: Add description of --RTS option for ASIS tools.
1113 2014-10-31  Olivier Hainque  <hainque@adacore.com>
1115         * gcc-interface/Makefile.in (arm-vxworks): Update target pairs.
1117 2014-10-31  Vincent Celier  <celier@adacore.com>
1119         * prj-part.adb (Parse_Single_Project): Call Set_Display_Name_Of.
1120         * prj-proc.adb (Recursive_Process): Call Display_Name_Of to
1121         get the project Display_Name.
1122         * prj-tree.adb (Display_Name_Of): New function
1123         (Set_Display_Name_Of): New procedure.
1124         (Create_Project): Call Set_Display_Name_Of.
1125         * prj-tree.ads (Display_Name_Of): New function.
1126         (Set_Display_Name_Of): New procedure.
1127         (Project_Node_Record): New component Display_Name.
1128         (Project_Name_And_Node): Remove component Display_Name.
1129         * prj-conf.adb (Parse_Project_And_Apply_Config): Use the full
1130         Config_File_Path as the Config_File_Name, not just its simple
1131         name.
1133 2014-10-31  Thomas Quinot  <quinot@adacore.com>
1135         * get_scos.adb: Minor reformatting.
1137 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1139         * exp_ch5.adb (Expand_Formal_Container_Loop): Create block to
1140         capture declaration for cursor to prevent spurious errors when
1141         several formal iterators that use the same cursoe name appear
1142         in the same context.
1144 2014-10-31  Vincent Celier  <celier@adacore.com>
1146         * prj-proc.adb (Recursive_Process): Make sure that the project
1147         display name is never No_Name.
1149 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1151         * sem_attr.adb (Analyze_Access_Attribute): Do not emit error
1152         message if reference does not come from source, as in the case
1153         for the controlling argument of a dispatching call. Error is
1154         diagnosed when call is resolved.
1155         * sem_ch4.adb (Complete_Object_Operation); Fix incorrect RM
1156         reference in error message.
1157         * sem_res.adb (Check_Prefixed_Call): ditto.
1159 2014-10-31  Yannick Moy  <moy@adacore.com>
1161         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Do not
1162         suppress checks when pragma Restrictions (No_Exception) is used in
1163         CodePeer or GNATprove mode.
1165 2014-10-31  Yannick Moy  <moy@adacore.com>
1167         * gnat1drv.adb (Adjust_Global_Switches): Explicitly mark language
1168         checks as not suppressed in GNATprove mode.
1170 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1172         * sem_elab.adb (Check_Elab_Call): Nothing to check if call is
1173         being pre-analyzed.
1174         * sem_ch3.adb (Complete_Private_Subtype): If all rep items of full
1175         view are those of the base, use rep_item chain of partial view,
1176         which may include aspects.
1177         * sem_cat.adb (Is_non_Remote_Access_Type): Use underlying type
1178         of base type, to handle properly declared subtypes.
1180 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1182         * sem_ch12.adb (Analyze_Generic_Package_Declaration): If there
1183         is a default storage pool, add a corresponding aspect to the
1184         generic unit, to be used at the point of instantiation.
1185         (Analyze_Package_Instantiation): If generic unit has aspect
1186         specifications, propagate them to instance. If instance has a
1187         Default_Storage_Pool aspect, make sure that it overrides the
1188         one that may be inherited from the generic.
1190 2014-10-31  Vincent Celier  <celier@adacore.com>
1192         * prj-attr.adb: Minor removal of attributes of package Linker
1193         that have never been used and never been documented.
1194         * projects.texi: Add documentation for attribute Runtime.
1195         * prj-nmsc.adb (Check_Configuration): Do not report a warning
1196         for unknown compilers when the project is externally built.
1198 2014-10-31  Vasiliy Fofanov  <fofanov@adacore.com>
1200         * prj-conf.adb (Do_Autoconf): Refactor the code so that empty
1201         Normalized_Pathname doesn't inhibit the custom Selected_Target
1202         value.
1203         * prj-conf.adb (Parse_Project_And_Apply_Config): Make sure that
1204         Automatically_Generated is correctly set after the first call
1205         to Process_Project_And_Apply_Config and not modified after the
1206         second call, if any.
1208 2014-10-31  Yannick Moy  <moy@adacore.com>
1210         * Makefile.rtl, gnat_rm.texi, impunit.adb: Add mention of new library
1211         files.
1212         * a-cfinve.adb, a-cfinve.ads: New unit for formal indefinite
1213         vectors, suitable for use in client SPARK code, also more
1214         efficient than the standard vectors.
1215         * a-coboho.adb, a-coboho.ads New unit for bounded holders, that
1216         are used to define formal indefinite vectors in terms of formal
1217         definite ones.
1218         * a-cofove.adb, a-cofove.ads: Simplification of the API of formal
1219         definite vectors, similar to the API of the new indefinite ones. A
1220         new formal parameter of the generic unit called Bounded allows
1221         to define growable vectors that use dynamic allocation.
1223 2014-10-31  Vincent Celier  <celier@adacore.com>
1225         * prj-conf.adb (Look_For_Project_Paths): New procedure
1226         (Parse_Project_And_Apply_Config): Initially, parse the project
1227         files ignoring missing withs. If there are missing withs, extend
1228         the project path with directories rooted at the compiler roots,
1229         including directories rooted at the runtime roots, if there are
1230         non default runtimes, in the PATH orser.
1231         * prj-env.adb (Initialize_Default_Project_Path): Do not add
1232         any directory from the prefix if the target is "-".
1233         * prj-part.adb (Parse): Initialize the tables, as Parse may be
1234         call several times by gprbuild.
1235         * prj.adb (Update_Ignore_Missing_With): New procedure.
1237 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1239         * sem_aux.adb (First_Stored_Discriminant,
1240         Has_Completely_Hidden_Discriminant): When scanning the list of
1241         discriminants to locate possibly hidden (inherited) discriminants,
1242         ignore itypes that may appear in the entity list, when an access
1243         discriminants is constrained by an access attribute reference.
1245 2014-10-31  Javier Miranda  <miranda@adacore.com>
1247         * freeze.adb (Freeze_Record_Type): Add missing
1248         check to verify that all the primitives of an interface type
1249         are abstract or null procedures.
1251 2014-10-31  Vincent Celier  <celier@adacore.com>
1253         * s-os_lib.adb, s-os_lib.ads: New function Non_Blocking_Spawn that
1254         redirects standard output and standard error to two different files.
1256 2014-10-31  Bob Duff  <duff@adacore.com>
1258         * makeutl.ads: Minor comment fix.
1260 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
1262         * system-linux-x86_64.ads, system-mingw-x86_64.ads (Word_Size,
1263         Memory_Size): Use Standard'Word_Size so that the value can be changed
1264         via a target configuration file.
1266 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1268         * exp_ch4.adb: Minor tweak.
1270 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1272         * sem_ch12.adb (Analyze_Package_Instantiation): Do not inline with
1273         back-end inlining.
1274         (Must_Inline_Subp): Delete.
1275         * sem_util.ads, sem_util.adb (Must_Inline): Likewise.
1277 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1279         * freeze.adb (Freeze_Entity): A default_pool does not apply to
1280         internal access types generated for 'access references.
1281         * sem_prag (Analyze_Pragma, case Default_Pool): If the name is
1282         not null it must designate a variable.
1284 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1286         * inline.adb: Minor reformatting.
1288 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1290         * sem_ch3.adb (Build_Derived_Private_Type): If the derived
1291         type has access discriminants, create itype references for their
1292         anonymous types, so that they are elaborated before the generated
1293         bodies for the primitive operations of the type.
1295 2014-10-31  Tristan Gingold  <gingold@adacore.com>
1297         * prj-conf.adb (Locate_Runtime): Remove procedure.
1299 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1301         * inline.adb (Has_Excluded_Declaration): With back-end inlining,
1302         only return true for nested packages.
1303         (Cannot_Inline): Issue errors/warnings whatever the optimization level
1304         for back-end inlining and remove assertion.
1306 2014-10-31  Sergey Rybin  <rybin@adacore.com frybin>
1308         * table.adb (Tree_Read, Tree_Write): Use parentheses to specify
1309         the desired order of '*' and '/' operations to avoid overflow.
1311 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1313         * exp_ch6.adb (Do_Inline): Remove unreachable code.
1314         (Do_Inline_Always): Likewise.
1316 2014-10-31  Vincent Celier  <celier@adacore.com>
1318         * prj-nmsc.adb (Check_Stand_Alone_Library): Change error message
1319         when library has no Ada interfaces and Library_Standalone is
1320         declared.
1322 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
1324         * sem_ch13.adb (Check_Constant_Address_Clause): Disable checks
1325         on address clauses in CodePeer mode.
1327 2014-10-31  Javier Miranda  <miranda@adacore.com>
1329         * inline.adb (Expand_Inlined_Call): Do not skip
1330         inlining of calls to subprogram renamings.
1332 2014-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
1334         * sem_res.adb (Resolve_Entity_Name): Account for
1335         the case where the immediate parent of a reference to an entity
1336         is a parameter association.
1338 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1340         * inline.adb (Check_And_Split_Unconstrained_Function): Do not
1341         test for the presence of nested subprograms.
1343 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1345         * aspects.ads, aspects.adb: Add aspect Default_Storage_Pool.
1346         * sem_ch13.adb (Analyze_One_Aspect): Generate pragma for aspect
1347         Default_Storage_Pool.
1349 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1351         * sem_ch6.adb: Remove obsolete comment.
1353 2014-10-31  Olivier Hainque  <hainque@adacore.com>
1355         * g-allein.ads: bind vec_sld for pixels to 8hi vsldoi instead
1356         of 4si, as pixels are short.
1358 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1360         * sem_res.adb (Resolve_Call): Do not reject a call to a protected
1361         operation in the spec of a protected type, when the call appears
1362         in a pre/postcondition for another protected operation.
1364 2014-10-31  Tristan Gingold  <gingold@adacore.com>
1366         * prj-conf.adb: Locate_Runtime: Always search the runtime in
1367         project path.
1369 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1371         * inline.adb (Check_Package_Body_For_Inlining): Adjust previous
1372         change to use correct idiom for back-end inlining.
1374 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1376         * freeze.adb (Freeze_Record_Type): Do not check component size
1377         if its type is generic.
1379 2014-10-31  Bob Duff  <duff@adacore.com>
1381         * gnat_rm.texi: Fix documentation w.r.t -gnatw.w.
1383 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1385         * sem_ch4.adb (Try_Container_Indexing): Use Check_Implicit_Dereference.
1386         * sem_util.adb (Check_Implicit_Dereference): a) Handle generalized
1387         indexing as well as function calls.  b)  If the context is a
1388         selected component and whe are in an instance, remove entity from
1389         selector name to force resolution of the node, so that explicit
1390         dereferences can be generated in the instance if they were in
1391         the generic unit.
1393 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1395         * inline.adb (Back_End_Cannot_Inline): Delete.
1396         (Add_Inlined_Subprogram): Do not call it.
1398 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1400         * exp_ch3.ads (Make_Tag_Assignment): New function, used to
1401         re-initialize the tag in a tagged object declaration with
1402         initial value.
1403         * exp_ch3.adb (Expand_N_Object_Declaration): Use
1404         Make_Tag_Assignment to simplify code for a tagged object
1405         declaration.
1406         * exp_ch13.adb (Expand_Freeze_Entity): Analyze freeze actions
1407         for the freeze node of an object.
1408         * freeze.adb (Check_Address_Clause): Use Make_Tag_Assignment when
1409         needed to extend Freeze_Actions for a tagged object declaration.
1411 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1413         * gnat_ugn.texi: Further minor improvement to -flto entry.
1415 2014-10-31  Gary Dismukes  <dismukes@adacore.com>
1417         * g-dynhta.adb, g-dynhta.ads: Minor typo fixes and reformatting.
1419 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1421         * exp_ch3.adb (Expand_N_Object_Declaration): Code cleanup.
1423 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1425         * sem_ch5.adb (Analyze_Iterator_Specification): If a subtype
1426         indication is provided, check properly that it covers the element
1427         type of of the container type.
1429 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1431         * g-dynhta.ads, g-dynhta.adb: Add the implementation of a load facto
1432         -based hash table.
1434 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1436         * exp_util.ads, exp_util.adb (Following_Address_Clause): Modify
1437         Has_Following_Address_Clause so that it returns the address
1438         clause if present, rather than a boolean value.
1439         * sem_ch3.adb (Analyze_Object_Declaration): use
1440         Following_Address_Clause.
1441         * exp_ch3.adb (Expand_N_Object_Declaration): When a tagged object
1442         is initialized, insert tag assignment after object is frozen,
1443         which may be after an address clause that follows the declaration.
1445 2014-10-30  Tristan Gingold  <gingold@adacore.com>
1447         * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
1448         system-vxworks-arm.ads, system-freebsd-x86_64.ads,
1449         system-linux-hppa.ads, system-linux-s390.ads,
1450         system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
1451         system-vxworks-sparcv9.ads, system-linux-ppc.ads, system-aix64.ads,
1452         system-linux-sh4.ads, system-solaris-x86.ads, system-linux-x86_64.ads,
1453         system-linux-x86.ads, system-vxworks-ppc.ads, system-hpux.ads,
1454         system-linux-armel.ads, system-darwin-ppc.ads, system-solaris-sparc.ads,
1455         system-vxworks-m68k.ads, system-hpux-ia64.ads, system.ads,
1456         system-solaris-x86_64.ads, system-mingw-x86_64.ads,
1457         system-vxworks-mips.ads, system-linux-sparc.ads, system-freebsd-x86.ads,
1458         system-aix.ads, system-darwin-x86_64.ads, system-vxworks-x86.ads: Add
1459         pragma No_Elaboration_Code_All.
1461 2014-10-30  Eric Botcazou  <ebotcazou@adacore.com>
1463         * gnat_ugn.texi: Minor improvement to -flto entry.
1465 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1467         * sem_util.adb (Inherit_Subprogram_Contract):
1468         Add a guard to protect against enumeration literal overriding.
1469         * sem_ch3.adb, sem_ch4.adb, sem_res.adb, sem_util.adb:
1470         Minor reformatting (add SPARK RM references).
1472 2014-10-30  Robert Dewar  <dewar@adacore.com>
1474         * exp_dbug.adb, opt.ads: Minor reformatting.
1476 2014-10-30  Yannick Moy  <moy@adacore.com>
1478         * inline.adb (Has_Single_Return_In_GNATprove_Mode):
1479         Return False when return statement is inside one or more blocks.
1481 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1483         * exp_ch7.adb (Is_Subprogram_Call): Account for the case where an
1484         object declaration initialized by a function call that returns
1485         an unconstrained result may be rewritted as a renaming of the
1486         secondary stack result.
1488 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1490         * aspects.adb: Add an entry for aspect Extensions_Visible in
1491         table Canonical_Aspect.
1492         * aspects.ads: Add entry for aspect Extensions_Visible in
1493         tables Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names,
1494         Implementation_Defined_Aspect.
1495         * einfo.adb (Get_Pragma): Include pragma Extensions_Visible in
1496         the list of contract pragmas.
1497         * par-prag.adb Pragma Extensions_Visible does not require special
1498         processing from the parser.
1499         * sem_ch3.adb (Analyze_Object_Declaration): Prevent an
1500         implicit class-wide conversion of a formal parameter
1501         of a specific tagged type whose related subprogram is
1502         subject to pragma Extensions_Visible with value "False".
1503         (Check_Abstract_Overriding): Add various overriding checks
1504         related to pragma Extensions_Visible.
1505         (Derive_Subprogram):
1506         A subprogram subject to pragma Extensions_Visible with value
1507         False requires overriding if the subprogram has at least one
1508         controlling OUT parameter.
1509         (Is_EVF_Procedure): New routine.
1510         * sem_ch4.adb (Analyze_Type_Conversion): A formal parameter of
1511         a specific tagged type whose related subprogram is subject to
1512         pragma Extensions_Visible with value "False" cannot appear in
1513         a class-wide conversion.
1514         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove
1515         the assertion to account for pragma Extensions_Visible.
1516         (Check_Overriding_Indicator): An overriding subprogram
1517         inherits the contact of the overridden subprogram.
1518         (New_Overloaded_Entity): An overriding subprogram inherits the
1519         contact of the overridden subprogram.
1520         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
1521         for aspect Extensions_Visible.
1522         (Check_Aspect_At_Freeze_Point): Aspect Extensions_Visible does not
1523         require special processing at the freeze point.
1524         * sem_prag.adb Add an entry for pragma Extensions_Visible in
1525         table Sig_Flags.
1526         (Analyze_Pragma): Ensure that various SPARK
1527         pragmas lack identifiers in their arguments. Add processing for
1528         pragma Extensions_Visible.
1529         (Chain_CTC): Code reformatting.
1530         * sem_res.adb (Resolve_Actuals): A formal parameter of a
1531         specific tagged type whose related subprogram is subject to
1532         pragma Extensions_Visible with value "False" cannot act as an
1533         actual in a subprogram with value "True".
1534         * sem_util.adb (Add_Classification): New routine.
1535         (Add_Contract_Item): Account for pragma Extensions_Visible. Code
1536         reformatting.
1537         (Add_Contract_Test_Case): New routine.
1538         (Add_Pre_Post_Condition): New routine.
1539         (Extensions_Visible_Status): New routine.
1540         (Inherit_Subprogram_Contract): New routine.
1541         (Is_EVF_Expression): New routine.
1542         (Is_Specific_Tagged_Type): New routine.
1543         * sem_util.ads Add type Extensions_Visible_Mode and document all values.
1544         (Add_Contract_Item): Add pragma Extensions_Visible to the
1545         comment on usage.
1546         (Inherit_Subprogram_Contract): New routine.
1547         (Is_EVF_Expression): New routine.
1548         (Is_Specific_Tagged_Type): New routine.
1549         * sinfo.adb (Is_Inherited): New routine.
1550         (Set_Is_Inherited): New routine.
1551         * sinfo.ads Add flag Is_Inherited along with its usage in
1552         nodes.
1553         (Is_Inherited): New routine along with pragma Inline.
1554         (Set_Is_Inherited): New routine along with pragma Inline.
1555         * snames.ads-tmpl: Add predefined name "Extensions_Visible"
1556         and a new Pragma_Id for the pragma.
1558 2014-10-30  Vincent Celier  <celier@adacore.com>
1560         * prj-proc.adb (Process_Case_Construction): Do not look for
1561         the ultimate extending project for a case variable.
1563 2014-10-30  Pierre-Marie Derodat  <derodat@adacore.com>
1565         * exp_dbug.adb, opt.ads (GNAT_Encodings): Import from C. Define
1566         enumerators.
1567         (gnat_encodings): Define a dummy variable for the AAMP back-end.
1568         (Get_Encoded_Name): When -fgnat-encodings=all|gdb, encode names
1569         for all discrete types whose bounds do not match size and do so
1570         only for biased types when -fgnat-encodings=minimal.
1571         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not create ___XA
1572         parallel types when array bounds are constant while the lower bound is
1573         not 1.  Also stop generating them because the bound type is
1574         larger than sizetype.
1575         * gcc-interface/misc.c (gnat_encodings): New.
1577 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1579         * opt.adb (Set_Opt_Config_Switches): For an internal unit,
1580         always reset Default_SSO to ' '.
1582 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1584         * freeze.adb (Freeze_Record_Type): Set SSO from default before
1585         checking SSO consistency.
1587 2014-10-30  Javier Miranda  <miranda@adacore.com>
1589         * inline.adb (Check_Package_Body_For_Inlining):
1590         Cleanup this subprogram to implement exactly the behavior
1591         documented in the spec.
1593 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1595         * a-comutr.adb, a-cimutr.adb (Insert_Child): Add new variable First.
1596         Update the position after all insertions have taken place.
1598 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1600         * sem_prag.adb (Analyze_Pragma, case License): Do not perform
1601         analysis of pragma arguments when in CodePeer mode, pragma has
1602         different format on other compilers.
1604 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1606         * s-os_lib.adb: Minor reformatting.
1608 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1610         * gcc-interface/decl.c, gcc-interface/gigi.h, gcc-interface/misc.c,
1611         gcc-interface/trans.c, gcc-interface/utils.c, gcc-interface/utils2.c:
1612         Remove redundant enum from machine_mode.
1614 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
1616         * gcc-interface/trans.c: Adjust include files.
1617         * gcc-interface/utils.c: Ditto.
1619 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1621         * gcc-interface/utils.c (create_subprog_decl): Adjust condition.
1623 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1625         * gcc-interface/misc.c (gnat_init_options_struct): Parameterize errno
1626         support here instead of...
1627         Do not set flag_delete_dead_exceptions to 1 unconditionally.
1628         (gnat_init_gcc_eh): Set flag_delete_dead_exceptions to 1.
1629         (gnat_init_gcc_fp): ...here.
1631 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1633         * gcc-interface/trans.c (gnat_to_gnu) <N_Real_Literal>: Minor tweaks.
1635 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1637         * gcc-interface/utils.c (create_var_decl_1): For a variable declared
1638         in the unit, set TREE_PUBLIC only if it has static storage duration.
1640 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1642         * gcc-interface/decl.c (gnat_to_gnu_entity): Apply special treatment
1643         of derived packed array types to constrained subtypes only.
1645 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1647         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove
1648         superfluous computation for the max size.
1649         <E_Array_Subtype>: Likewise.  Make sure that the max size calculation
1650         does not overflow at compile time.
1652 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1654         * sem_eval.adb (Check_Non_Static_Context): Do not set
1655         Is_Machine_Number on a literal of a fixed-point type.
1657 2014-10-23  Robert Dewar  <dewar@adacore.com>
1659         * mlib-prj.adb, sem_ch4.adb, exp_ch3.adb: Minor reformatting.
1661 2014-10-23  Pierre-Marie Derodat  <derodat@adacore.com>
1663         * exp_dbug.ads: Update ___XA parallel type specification.
1665 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1667         * sem_ch3.adb (Copy_Array_Subtype_Attributes): Inherit the rep
1668         chain of the source type.
1669         * sem_ch13.adb (Analyze_Aspect_Specifications): Minor
1670         reformatting of an error message.
1671         * sem_util.adb (Inherit_Rep_Item_Chain): Do not inherit a rep
1672         chain that has been inherited already.
1674 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1676         * sem_ch6.adb (Analyze_Expression_Function): Simplify analysis
1677         in generic context, and generate body in this case as well,
1678         to simplify ASIS traversals on the construct.
1680 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1682         * sem_ch4.adb (Complete_Object_Operation): Indicate that the
1683         scope of the operation (s) is referenced, to prevent spurious
1684         warnings about unused units.
1686 2014-10-23  Johannes Kanig  <kanig@adacore.com>
1688         * errout.adb (Error_Msg_Internal): Copy check flag, increment
1689         check msg count.
1690         * erroutc.adb (Delete_Msg) adjust check msg count.
1691         (Output_Msg_Text) handle check msg case (do nothing).
1692         (Prescan_Message) recognize check messages with severity prefixes.
1693         * errutil.adb (Error_Msg) handle check flag, adjust counter.
1695 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1697         * sem_eval.adb (Subtypes_Statically_Match): For a generic actual
1698         type, check for the presence of discriminants in its parent type,
1699         against the presence of discriminants in the context type.
1701 2014-10-23  Tristan Gingold  <gingold@adacore.com>
1703         * adaint.c: __gnat_get_file_names_case_sensitive: Default is
1704         true on arm-darwin.
1706 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1708         * pprint.adb (Expression_Image): Add handling of quantifiers.
1710 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1712         * exp_pakd.adb (Expand_Packed_Element_Reference): If the
1713         prefix is a source entity, generate a reference to it before
1714         transformation, because rewritten node might not generate a
1715         proper reference, leading to spurious warnings.
1717 2014-10-23  Tristan Gingold  <gingold@adacore.com>
1719         * init.c: Fix thinko in previous patch.
1721 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1723         * sem_ch3.adb (Decimal_Fixed_Point_Type_Declaration):
1724         Inherit the rep chain of the implicit base type.
1725         (Floating_Point_Type_Declaration): Inherit the rep chain of the
1726         implicit base type.
1727         (Ordinary_Fixed_Point_Type_Declaration): Inherit the rep chain of the
1728         implicit base type.
1729         (Signed_Integer_Type_Declaration): Inherit the rep chain of the
1730         implicit base type.
1731         * sem_util.ads, sem_util.adb (Inherit_Rep_Item_Chain): New routine.
1733 2014-10-23  Pascal Obry  <obry@adacore.com>
1735         * g-regist.adb, g-regist.ads: Add support for reading 32bit or 64bit
1736         view of the registry.
1738 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1740         * exp_ch3.adb (Expand_N_Object_Declaration): If type is abstract,
1741         return without expanding expression, to prevent subsequent crash.
1742         * freeze.adb: better error message for illegal declaration.
1744 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1746         * sysdep.c (__gnat_localtime_tzoff): Properly delimit the
1747         substring which represents the time zone on VxWorks.
1749 2014-10-23  Vincent Celier  <celier@adacore.com>
1751         * gnatls.adb: If --RTS= was not used, check if there is a default
1752         runtime. If there is none, in verbose mode, indicate that the
1753         default runtime is not available and show only the current
1754         directory in the source and the object search paths.
1756 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1758         * sem_ch6.adb (Process_Formals): A thunk procedure with a
1759         parameter of a limited view does not need a freeze node.
1761 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1763         * sem_ch7.adb (Analyze_Package_Body_Helper):
1764         The logic which hides local entities from external
1765         visibility is now contained in routine Hide_Public_Entities.
1766         (Hide_Public_Entities): New routine. Object and subprogram
1767         renamings are now hidden from external visibility the same way
1768         objects are.
1770 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1772         * sem_attr.adb (Analyze_Attribute): The prefix of attribute Elaborated
1773         does not require freezing, in particular if it denotes a generic
1774         function.
1776 2014-10-23  Yannick Moy  <moy@adacore.com>
1778         * sem_prag.adb (Analyze_Pragma/Pragma_Inline & Pragma_Inline_Always):
1779         Disable analysis in GNATprove mode.
1781 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1783         * mlib-prj.adb: Remove obsolete references to libdecgnat (VMS only).
1785 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1787         * gnat1drv.adb (Adjust_Global_Switches): Ignore style check
1788         pragmas in codepeer mode.
1790 2014-10-23  Gary Dismukes  <dismukes@adacore.com>
1792         * gnat_rm.texi: Minor syntax fix for pragma Annotate (missing ',').
1794 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1796         * sem_ch12.adb (Inline_Instance_Body): Alphabetize
1797         local variables and constants. Add constants Save_SM and Save_SMP
1798         to capture SPARK_Mode-related attributes.  Compile the inlined
1799         body with the SPARK_Mode of the enclosing context.
1801 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1803         * sinfo.adb (Elaboration_Boolean): Removed.
1804         (Set_Elaboration_Boolean): Removed.
1805         * sinfo.ads Remove attribute Elaboration_Boolean along with its
1806         occurrence in nodes.
1807         (Elaboration_Boolean): Removed along with pragma Inline.
1808         (Set_Elaboration_Boolean): Removed along with pragma Inline.
1810 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1812         * sem_ch3.adb (Constant_Redeclaration): Make error message more
1813         explicit on a deferred constant whose object_definition is an
1814         anonymous array.
1816 2014-10-23  Vincent Celier  <celier@adacore.com>
1818         * gnatls.adb: Never call Targparm.Get_Target_Parameters.
1820 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1822         * sem_ch6.adb (Analyze_Expression_Function): In a generic
1823         context do not create a body, and only pre-analyze the expression,
1824         which may include incomplete views.
1826 2014-10-23  Robert Dewar  <dewar@adacore.com>
1828         * sem_type.adb: Minor code reorganization (use Nkind_In, Ekind_In).
1829         * sem_ch3.adb: Minor reformatting.
1831 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1833         * sem_ch12.adb (Analyze_Associations): If an actual for a formal
1834         object is a call to a parameterless expression function, add
1835         the function to the list of actuals to freeze.
1836         * freeze.adb (Check_Expression_Function): Create freeze nodes of
1837         outer types that may be references in the body of the expression.
1839 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1841         * exp_util.ads, checks.ads: Minor comment reformatting.
1843 2014-10-23  Javier Miranda  <miranda@adacore.com>
1845         * sem_eval (Test_In_Range): Disable removal of range_check for
1846         VM targets.
1848 2014-10-23  Robert Dewar  <dewar@adacore.com>
1850         * erroutc.adb (Validate_Specific_Warnings): Fix test for -W
1851         messages, which got disabled when we unconditionally added an
1852         asterisk at the start of the string.
1854 2014-10-23  Vincent Celier  <celier@adacore.com>
1856         * gnatls.adb: Ensure that "gnatls -l" works even when there is
1857         no default runtime.
1859 2014-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1861         * sem_ch3.adb (Build_Derived_Private_Type): When the parent is
1862         untagged and has discriminants, build the implicit full view after
1863         building the derived type. Capture original declaration and type
1864         here instead of...
1865         (Copy_And_Build): ...here.
1866         * sem_type.adb (Full_View_Covers): Handle the Underlying_Full_View.
1868 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1870         * checks.adb (Ensure_Valid): Update the subprogram
1871         profile. Propagate the contex attributes to Insert_Valid_Check.
1872         (Insert_Valid_Check): Update the subprogram profile. Propagate
1873         the attributes of the context to Duplicate_Subexpr_No_Checks.
1874         (Validity_Check_Range): Update the subprogram profile. Propagate
1875         the context attribute to Ensure_Valid.
1876         * checks.ads (Ensure_Valid): Update the subprogram profile
1877         along with the comment on usage.
1878         (Insert_Valid_Check): Update the subprogram profile along with the
1879         comment on usage.
1880         (Validity_Check_Range): Update the subprogram profile along with
1881         the comment on usage.
1882         * exp_util.adb (Build_Temporary): New routine.
1883         (Duplicate_Subexpr_No_Checks): Update the subprogram
1884         profile. Propagate the attributes of the context to Remove_Side_Effects.
1885         (Remove_Side_Effects): Update the subprogram profile. Update all calls
1886         to Make_Temporary to invoke Build_Temporary.
1887         * exp_util.ads (Duplicate_Subexpr_No_Checks): Update
1888         the subprogram profile along with the comment on usage.
1889         (Remove_Side_Effects): Update the subprogram profile along with
1890         the comment on usage.
1891         * sem_ch3.adb (Process_Range_Expr_In_Decl): Pass the subtype
1892         to the validity check machinery.  Explain the reason for this
1893         propagation.
1895 2014-10-23  Robert Dewar  <dewar@adacore.com>
1897         * a-strsea.adb: Minor reformatting.
1899 2014-10-23  Thomas Quinot  <quinot@adacore.com>
1901         * bcheck.adb (Check_Consistent_SSO_Default): Exclude internal
1902         units from consistency check.
1903         * gnat_rm.texi (Default_Scalar_Storage_Order): Document that
1904         consistency check excludes run-time units.
1906 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1908         * a-strsea.adb (Find_Token): Enable constraint checking in this
1909         procedure, so that even when compiling with checks suppressed, as is
1910         the case for the run-time, an exception is raised in this routine when
1911         the input meets the conditions described in RM 2005 A.4.3 (68/1).
1913 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1915         * sem_ch3.adb (Build_Derived_Private_Type): When the parent
1916         is untagged and has discriminants, build the implicit full
1917         view even if the derived type is a completion, and make it
1918         the Underlying_Full_View of the type.
1919         (Copy_And_Build): Fix Is_Completion actual parameter in the calls to
1920         Build_Derived_Type.
1921         (Build_Derived_Record_Type): Likewise.
1923 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1925         * sem_ch13.adb: Add guard to convention setting.
1927 2014-10-20  Robert Dewar  <dewar@adacore.com>
1929         * sem_ch3.adb, prj-proc.adb, prj-proc.ads, prj-conf.adb: Minor
1930         reformatting.
1932 2014-10-20  Robert Dewar  <dewar@adacore.com>
1934         * par-prag.adb (Add_List_Pragma_Entry): New procedure.
1935         * par.adb (P_Pragma): Document requirement to handle multiple calls.
1937 2014-10-20  Robert Dewar  <dewar@adacore.com>
1939         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1940         Fix error of bad inheritance of this pragma from with'ed unit.
1942 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1944         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a subtype,
1945         inherit convention from parent type, because the subtype may
1946         have been declared on a partial view, prior to the pragma on
1947         the parent.
1949 2014-10-20  Olivier Hainque  <hainque@adacore.com>
1950             Tristan Gingold  <gingold@adacore.com>
1952         * gcc-interface/Makefile.in: Handle arm-darwin and VxWorks 7.
1953         Misc clean ups.
1955 2014-10-20  Nicolas Roche  <roche@adacore.com>
1957         * gcc-interface/Make-lang.in: ensure that automatically generated
1958         dependency are referencing generated gnatvsn rather than original
1959         one.
1961 2014-10-20  Gary Dismukes  <dismukes@adacore.com>
1963         * gnat_ugn.texi: Minor reformatting.
1964         * sem_ch3.adb: Minor reformatting.
1966 2014-10-20  Vincent Celier  <celier@adacore.com>
1968         * prj-attr.adb: New project level attribute Runtime.
1969         * prj-conf.adb (Get_Project_Runtimes): New procedure to get
1970         the attributes Runtime declared in the main project, to use
1971         in auto-configuration.
1972         (Get_Or_Create_Configuration_File): Call Get_Project_Runtimes.
1973         * prj-proc.adb (Runtime_Defaults): New table to store
1974         the default values of attributes Runtime (<language>).
1975         (Set_Default_Runtime_For): New procedure to store the default
1976         value of a Runtime (<language>) in table Runtime_Defaults.
1977         (Expression): Use the value stored in table Runtime_Defaults as
1978         the default for Runtime (<language>).
1979         * prj-proc.ads (Set_Default_Runtime_For): New procedure.
1980         * prj.ads (Attribute_Default_Value): New enumerated value
1981         Runtime_Value.
1983 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1985         * sem_ch3.adb (Analyze_Object_Declaration): If the type is
1986         an unconstrained unchecked_union type, rewrite declaration
1987         as a renaming to prevent attempt to retrieve non- existent
1988         discriminants from expression.
1990 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1992         * gnat_ugn.texi: Minor reformatting.
1994 2014-10-20  Tristan Gingold  <gingold@adacore.com>
1996         * init.c (__gnat_is_stack_guard): Don't use mach_vm_region_recurse on
1997         arm-darwin.
1998         * raise-gcc.c: Add ATTRIBUTE_UNUSED to remove warnings for
1999         unused arguments.
2001 2014-10-20  Hristian Kirtchev  <kirtchev@adacore.com>
2003         * sem_attr.adb (Analyze_Attribute): Replace
2004         variables CS and PS with Proc_Id and Subp_Id to better illustrate
2005         their purpose. Account for the case where _Postconditions
2006         has not been generated yet and the context is aspect/pragma
2007         Refined_Post. In that scenario the expected prefix of attribute
2008         'Result is the current scope.
2010 2014-10-20  Robert Dewar  <dewar@adacore.com>
2012         * par-ch4.adb (P_Expression): Handle extraneous comma/semicolon
2013         in middle of expression with logical operators.
2015 2014-10-20  Robert Dewar  <dewar@adacore.com>
2017         * par-ch13.adb (Possible_Misspelled_Aspect): New function.
2019 2014-10-20  Steve Baird  <baird@adacore.com>
2021         * pprint.adb: Improve Expression_Image function.
2023 2014-10-20  Robert Dewar  <dewar@adacore.com>
2025         * gnat_rm.texi: Document No_Tagged_Streams pragma and aspect.
2026         * snames.ads-tmpl: Add entry for pragma No_Tagged_Streams.
2027         * aspects.ads, aspects.adb: Add aspect No_Tagged_Streams.
2028         * einfo.adb (No_Tagged_Streams_Pragma): New field.
2029         * einfo.ads: Minor reformatting (reorder entries).
2030         (No_Tagged_Streams_Pragma): New field.
2031         * exp_ch3.adb: Minor comment update.
2032         * opt.ads (No_Tagged_Streams): New variable.
2033         * par-prag.adb: Add dummy entry for pragma No_Tagged_Streams.
2034         * sem.ads (Save_No_Tagged_Streams): New field in scope record.
2035         * sem_attr.adb (Check_Stream_Attribute): Check stream ops
2036         prohibited by No_Tagged_Streams.
2037         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set
2038         No_Tagged_Streams_Pragma.
2039         (Analyze_Subtype_Declaration): ditto.
2040         (Build_Derived_Record_Type): ditto.
2041         (Record_Type_Declaration): ditto.
2042         * sem_ch8.adb (Pop_Scope): Restore No_Tagged_Streams.
2043         (Push_Scope): Save No_Tagged_Streams.
2044         * sem_prag.adb (Analyze_Pragma, case No_Tagged_Streams): Implement new
2045         pragma.
2047 2014-10-20  Robert Dewar  <dewar@adacore.com>
2049         * sem_ch3.adb, prj-proc.adb, sem_ch4.adb, prj-env.adb, lib.ads,
2050         sem_ch13.adb: Minor reformatting.
2052 2014-10-20  Javier Miranda  <miranda@adacore.com>
2054         * exp_ch3.adb (Expand_N_Object_Declaration): Expand the
2055         declaration of a class-wide limited object containing an
2056         initializing expression into a renaming declaration.  Required to
2057         avoid passing such declaration to the backend and also to avoid
2058         generating an extra copy.
2060 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
2062         * inline.adb (List_Inlining_Info): Minor tweaks.
2063         (Add_Inlined_Body): Inline the enclosing package
2064         if it is not internally generated, even if it doesn't come
2065         from source.
2067 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
2069         * sem_ch4.adb (Process_Function_Call): If the first actual
2070         denotes a discrete type, the mode must be interpreted as a slice
2071         of an array returned by a parameterless call.
2073 2014-10-20  Vasiliy Fofanov  <fofanov@adacore.com>
2075         * prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit
2076         searching for runtime referenced by a simple name on a project path.
2078 2014-10-20  Olivier Hainque  <hainque@adacore.com>
2080         * vxworks-x86-link.spec: New file.
2081         * system-vxworks-x86.ads: Add pragma Linker_Options to link with
2082         vxworks-x86-link.spec.
2084 2014-10-20  Vincent Celier  <celier@adacore.com>
2086         * opt.ads (Origin_Of_Target): New type.
2087         (Target_Origin): New variable.
2088         * prj-conf.adb (Parse_Project_And_Apply_Config): Record
2089         Target_Value and Target_Origin.  If target was not specified
2090         on the command line with --target=, check if attribute Target
2091         is declared in the main project. If it is and it is not the
2092         native target, parse again the projects so that 'Target get
2093         the new value. Fail if the target has changed again.  Invoke
2094         Process_Project_And_Apply_Config with Do_Phase_1 set to False
2095         is Process_Project_Tree_Phase_1 has already been invoked.
2096         * prj-conf.ads (Process_Project_And_Apply_Config): New Boolean
2097         parameter Do_Phase_1, defaulted to True.
2098         * prj-proc.adb (Expression): Check the special values and
2099         defaults for attribute Target.
2101 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
2103         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze
2104         the subprogram spec of the body in full, because it will be
2105         reanalyzed when the declaration itself is analyzed;  otherwise. a
2106         formal may end up duplicated in the list of formals leading to
2107         spurious conformance errors with an existing declaration.
2109 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
2111         * sem_ch13.adb: Improve error recovery on illegal aspect.
2113 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
2115         * set_targ.adb (Write_Target_Dependent_Values, Write_Line):
2116         Fix calling C APIs with no trailing NUL char by calling better
2117         wrappers instead.
2119 2014-10-20  Tristan Gingold  <gingold@adacore.com>
2121         * gnat_ugn.texi: Document that gdb users must be in group
2122         _developer on mac os.
2124 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
2126         * a-tgdico.ads: Fix typo.
2128 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
2130         * exp_aggr.adb (Convert_To_Assignments): Do not create a
2131         transient scope for a component whose type requires it, if the
2132         context is an initialization procedure, because the target of
2133         the assignment must be visible outside of the block.
2135 2014-10-20  Tristan Gingold  <gingold@adacore.com>
2137         * tracebak.c: Define PC_ADJUST for arm-darwin.
2138         * env.c: Remove darwin specific code.
2139         * raise-gcc.c (__gnat_Unwind_ForcedUnwind): Error on arm-darwin.
2141 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
2143         * sem_ch3.adb (Analyze_Full_Type_Declaration): If previous view
2144         is incomplete rather than private, and full type declaration
2145         has aspects, analyze aspects on the full view rather than
2146         the incomplete view, to prevent freezing anomalies with the
2147         class-wide type.
2149 2014-10-17  Robert Dewar  <dewar@adacore.com>
2151         * exp_ch9.adb (Expand_N_Task_Body): Add defense against
2152         previous errors.
2153         * freeze.adb (Freeze_Entity): Add defense against checking null
2154         scope for generic.
2155         * restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode.
2156         * sem_ch13.adb (Freeze_Entity_Checks): Add defense against
2157         previous errors.
2158         * sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if
2159         in No_Run_Time mode.
2161 2014-10-17  Robert Dewar  <dewar@adacore.com>
2163         * prj-makr.adb: Minor reformatting.
2165 2014-10-17  Robert Dewar  <dewar@adacore.com>
2167         * gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb,
2168         prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible.
2170 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2172         * exp_prag.adb (Undo_Initialization): If Initialize_Scalars
2173         is enabled, code will be generated for some composite types
2174         to initialize an object after its declaration. If there is
2175         a subsequent Import pragma for the object, that code must be
2176         removed as specified byw the semantics of the pragma, and to
2177         prevent out-of-order elaboration issues in the back-end.
2179 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
2181         * exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator
2182         wrapping mechanism under debug flag -gnatd.h.
2183         * debug.adb: Claim debug switch -gnatd.h.
2185 2014-10-17  Doug Rupp  <rupp@adacore.com>
2187         * gcc-interface/Makefile.in: Enable the socket runtime bits
2188         for Android.
2190 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2192         * sem_ch13.adb (Add_Invariants, Replace_Type_References): Do
2193         not perform the replacement on the expression for an inherited
2194         class-wide invariant if in ASIS_Mode and the type reference is
2195         already the prefix of a 'Class attribute reference: the expression
2196         has already been preanalyzed and the replacement performed when
2197         first encountered on the declaration of the parent type.
2199 2014-10-17  Robert Dewar  <dewar@adacore.com>
2201         * sem_ch5.adb, sem_ch7.adb, prj-nmsc.adb, sem_ch13.adb, exp_ch3.adb:
2202         Minor reformatting.
2204 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2206         * exp_ch3.adb (Build_Component_Invariant_Call): Retrieve Invariant
2207         subprogram from base type.
2208         * sem_ch7.adb (Analyze_Package_Specification): Build invariant
2209         subprogram for private type, not any of its subtypes.
2210         * sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set type
2211         of procedure entity, because a call to it may be generated in
2212         a client unit before the corresponding subprogram declaration
2213         is analyzed.
2215 2014-10-17  Vincent Celier  <celier@adacore.com>
2217         * prj-nmsc.adb (Get_Directories): Do not create directories
2218         when a project is abstract.
2220 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2222         * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
2223         of iteration is given by an expression that is not an array type,
2224         verify that its type implements an iterator iterface.
2226 2014-10-17  Robert Dewar  <dewar@adacore.com>
2228         * sem_attr.adb (Eval_Attribute): Ensure that attribute
2229         reference is not marked as being a static expression if the
2230         prefix evaluation raises CE.
2232 2014-10-17  Robert Dewar  <dewar@adacore.com>
2234         * exp_pakd.adb: Move bit packed entity tables to spec.
2235         * exp_pakd.ads: Move bit packed entity tables here from body.
2236         * freeze.adb (Freeze_Array_Type): Check that packed array type
2237         is supported.
2238         * rtsfind.adb (PRE_Id_Table): New table (Entity_Not_Defined):
2239         Specialize messages using PRE_Id_Table.
2240         * uintp.ads, uintp.adb (UI_Image): New functional form.
2242 2014-10-17  Robert Dewar  <dewar@adacore.com>
2244         * aspects.ads, aspects.adb: Add Suppress_Initialization aspect.
2245         * einfo.ads, einfo.adb (Suppress_Initialization): Now applies to
2246         E_Variable.
2247         * exp_ch3.adb (Default_Initialize_Object): Handle
2248         Suppress_Initialization.
2249         * exp_prag.adb (Expand_Pragma_Suppress_Initialization): New
2250         procedure (Expand_N_Pragma): Handle Suppress_Initialization
2251         (Expand_Pragma_Import_Or_Interface): Use Undo_Initialization
2252         (Undo_Initialization): New procedure.
2253         * sem_prag.adb (Analyze_Pragma, case Suppress_Initialization):
2254         This is now allowed for E_Variable case.
2255         * gnat_rm.texi: Document new aspect Suppress_Initialization
2256         Suppress_Initialization aspect/pragma can apply to variable.
2257         * einfo.ads: Minor reformatting.
2259 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
2261         * spark_xrefs.ads: Add documentation pointer to Flow_Computed_Globals.
2263 2014-10-17  Robert Dewar  <dewar@adacore.com>
2265         * cstand.adb (Create_Standard): Mark Short_Integer as
2266         implementation defined.
2267         * sem_util.adb (Set_Entity_With_Checks): Avoid blow up for
2268         compiler built with assertions for No_Implementation_Identifiers test.
2270 2014-10-17  Robert Dewar  <dewar@adacore.com>
2272         * aspects.ads: Documentation fix, aspect Lock_Free does have a
2273         corresponding pragma.
2274         * gnat_rm.texi: Document implementation defined boolean aspects
2275         as boolean.
2277 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2279         * sem_ch13.adb (Add_Invariants): For a class-wide type invariant,
2280         preserve semantic information on the invariant expression
2281         (typically a function call) because it may be inherited by a
2282         type extension in a different unit, and it cannot be resolved
2283         by visibility elsewhere because it may refer to local entities.
2285 2014-10-17  Robert Dewar  <dewar@adacore.com>
2287         * gnat_rm.texi: Document that string literal can be used for
2288         pragma Warnings when operating in Ada 83 mode.
2290 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2292         * freeze.adb (Find_Aggregate_Component_Desig_Type): New
2293         subsidiary function to Freeze_ Expression, used to determine
2294         whether an aggregate for an array of access types also freezes the
2295         designated type, when some aggregate components are allocators.
2297 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2299         * a-strsea.adb (Find_Token): AI05-031 indicates that the
2300         procedure must raise Index_Error when Source is not empty and
2301         the From parameter is not within the range of the Source string.
2303 2014-10-17  Robert Dewar  <dewar@adacore.com>
2305         * sem_prag.adb (Is_Static_String_Expression): Allow string
2306         literal in Ada 83 mode.
2308 2014-10-17  Vincent Celier  <celier@adacore.com>
2310         * prj-conf.adb (Get_Config_Switches): In CodePeer mode, do
2311         not take into account any compiler command from package IDE.
2313 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2315         * sem_ch12.adb (Build_Function_Wrapper): The formals of the
2316         wrapper must have the same identifiers as those of the formal
2317         subprogram, because calls within the generic may use named
2318         associations.
2320 2014-10-17  Robert Dewar  <dewar@adacore.com>
2322         * sem_ch3.adb, a-strsea.adb: Minor reformatting.
2323         * par-ch6.adb (P_Subprogram): Fix bad handling of null procedures.
2325 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2327         * sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect
2328         specfications from original type declaration to declaration of
2329         implicit base, because original node is rewritten as a subtype
2330         declaration on which type aspects do not belong.
2332 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
2334         * sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type
2335         inherits the attributes related to pragma Default_Initial_Condition
2336         from its parent type.
2338 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2340         * a-strsea.adb (Index - versions with a From parameter):
2341         According to AI05-056, the Index functions with a From parameter
2342         return 0 if the source is an empty string.
2344 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
2346         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable
2347         the consistency checks in ASIS mode.
2349 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
2351         * s-expmod.ads: Minor typo fix.
2353 2014-10-17  Robert Dewar  <dewar@adacore.com>
2355         * sem_util.adb: Minor reformatting.
2357 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2359         * sem_ch12.adb (Build_Function_Wrapper): Build wrappers for
2360         actuals that are defaulted subprograms of the formal subprogram
2361         declaration.
2363 2014-10-17  Robert Dewar  <dewar@adacore.com>
2365         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the
2366         implementation base type.
2367         * sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record
2368         operands are always expanded out into component comparisons.
2370 2014-10-17  Robert Dewar  <dewar@adacore.com>
2372         * s-vallli.adb: Minor comment correction.
2373         * s-valuti.ads: Minor comment reformatting.
2375 2014-10-17  Robert Dewar  <dewar@adacore.com>
2377         * gnat_rm.texi: Document System.Atomic_Counters.
2378         * impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the
2379         list of user- accessible units added as children of System.
2380         * s-atocou.ads: Update comment.
2382 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
2384         * s-expmod.ads: Add comments.
2386 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
2388         * sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation
2389         of all attributes related to pragma Default_Initial_Condition.
2390         (Build_Derived_Type): Propagation of all attributes related
2391         to pragma Default_Initial_Condition.
2392         (Process_Full_View): Account for the case where the full view derives
2393         from another private type and propagate the attributes related
2394         to pragma Default_Initial_Condition to the private view.
2395         (Propagate_Default_Init_Cond_Attributes): New routine.
2396         * sem_util.adb: Alphabetize various routines.
2397         (Build_Default_Init_Cond_Call): Use an unchecked type conversion
2398         when calling the default initial condition procedure of a private type.
2399         (Build_Default_Init_Cond_Procedure_Declaration): Prevent
2400         the generation of multiple default initial condition procedures.
2402 2014-10-17  Robert Dewar  <dewar@adacore.com>
2404         * prj-conf.adb: Revert previous change.
2406 2014-10-17  Robert Dewar  <dewar@adacore.com>
2408         * lib-writ.ads, s-valdec.ads: Minor reformatting.
2410 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2412         * sem_ch12.adb: Additional work on function wrappers.
2414 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2416         * exp_util.adb (Possible_Bit_Aligned_Component): Also recurse
2417         on the renamed object of renamings.
2419 2014-10-17  Vincent Celier  <celier@adacore.com>
2421         * prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer
2422         mode, always use the native target.
2424 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
2426         * gcc-interface/misc.c: Adjust include files.
2428 2014-10-13  Eric Botcazou  <ebotcazou@adacore.com>
2429             Alan Modra  <amodra@gmail.com>
2431         PR ada/63225
2432         * uintp.adb (Vector_To_Uint): Move from here to...
2433         * uintp.ads (UI_Vector): Make public.
2434         (Vector_To_Uint): ...here.
2436 2014-10-10  Robert Dewar  <dewar@adacore.com>
2438         * freeze.adb, sem_attr.adb: Minor reformatting.
2440 2014-10-10  Johannes Kanig  <kanig@adacore.com>
2442         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
2443         a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
2444         to container type.
2446 2014-10-10  Vincent Celier  <celier@adacore.com>
2448         * prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
2449         any configuration switches from the project file.
2451 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2453         * sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
2454         (Build_Function_Wrapper): New function, to construct a wrapper
2455         function for actuals that are functions with an arbitrary
2456         number of parameters. Used in GNATProve mode to simplify proof
2457         propagation in instantiations.
2459 2014-10-10  Robert Dewar  <dewar@adacore.com>
2461         * freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
2462         code clean up.
2464 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2466         * sem_res.adb (Is_OK_Volatile_Context): Allow
2467         a volatile object reference to appear as the expression of a
2468         type conversion.
2470 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2472         * sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
2473         Aspect specification is legal on a local instantiation of a
2474         library-level generic unit.
2476 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2478         * gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
2479         if inlining has been enabled via -gnatn and the target is not GCC.
2481 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2483         * freeze.adb (Freeze_Entity): Freezing a subprogram does
2484         not always freeze its profile.  In particular, an attribute
2485         reference that takes the access type does not freeze the types
2486         of the formals.
2488 2014-10-10  Robert Dewar  <dewar@adacore.com>
2490         * errout.adb (Adjust_Name_Case): New procedure.
2491         (Set_Msg_Node): Use Adjust_Name_Case.
2492         * errout.ads (Adjust_Name_Case): New procedure.
2493         * exp_intr.adb (Add_Source_Info): Minor code reorganization
2494         (use Ekind_In).
2495         (Write_Entity_Name): Use Errout.Adjust_Name_Case.
2496         * sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
2497         and fix up entries in Sig_Flags, and correct logical errors in
2498         function itself.
2499         * sprint.adb (Sprint_Node_Actual): Properly print string for
2500         raise statement.
2502 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2504         * sem_ch3.adb (Analyze_Object_Declaration): For an object of an
2505         anonymous array type with delayed aspects, defer freezing of
2506         type until object itself is frozen.
2507         * freeze.adb (Freeze_Entity): When freezing an object of an
2508         anonymous array type with delayed aspects, remove freeze node of
2509         object after freezing type, to prevent out-of-order elaboration
2510         in the back-end. The initialization call for the object has
2511         already been constructed when expanding the object declaration.
2513 2014-10-10  Robert Dewar  <dewar@adacore.com>
2515         * exp_intr.adb (Write_Entity_Name): Moved to outer level
2516         (Write_Entity_Name): Properly handle operator names
2517         (Expand_Source_Info): New procedure.
2518         * exp_intr.ads (Add_Source_Info): New procedure.
2520 2014-10-10  Robert Dewar  <dewar@adacore.com>
2522         * butil.ads: Minor reformatting.
2523         * sem_ch5.adb: Code clean up.
2525 2014-10-10  Robert Dewar  <dewar@adacore.com>
2527         * exp_ch11.adb (Expand_N_Raise_Statement): Handle
2528         Prefix_Exception_Messages.
2529         * opt.adb: Handle new flags Prefix_Exception_Message[_Config].
2530         * opt.ads: New flags Prefix_Exception_Message[_Config].
2531         * par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
2532         * snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
2533         * sem_prag.adb: Implement new pragma Prefix_Exception_Messages
2534         * gnat_rm.texi: Document pragma Prefix_Exception_Messages.
2536 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2538         * sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
2539         raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).
2541 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2543         * sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
2544         contain pragmas generated for loop invariants and type predicates.
2545         Clarify use of this subprogram.
2547 2014-10-10  Yannick Moy  <moy@adacore.com>
2549         * sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
2550         contracts.
2551         * errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
2552         SPARK_Mode is Off.
2554 2014-10-10  Vadim Godunko  <godunko@adacore.com>
2556         * a-stwima.adb (To_Sequence): Compute size of result array.
2558 2014-10-10  Javier Miranda  <miranda@adacore.com>
2560         * gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
2561         sources of the example to avoid a warning when the Ada files are
2562         automatically generated by the binding generator.
2564 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2566         * sem_attr.adb (Resolve_Attribute, case 'Update): Set
2567         Do_Range_Check on the expression of a record component
2568         association when needed, as is done for array components, when
2569         the corresponding type is a scalar type.
2571 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2573         * a-coinho-shared.adb: Minor typo fix.
2574         * prj-env.ads: Minor reformatting.
2576 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2578         * sem_res.adb (Resolve_String_Literal): Do not
2579         generate a string literal subtype for the default expression of
2580         a formal parameter in GNATprove mode.
2582 2014-10-10  Yannick Moy  <moy@adacore.com>
2584         * errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.
2586 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2588         * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
2589         declaration for loop parameter before rest of loop, and set
2590         entity kind to prevent assignments to it in the user code.
2591         * sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
2592         loop parameter in an element iteration over o formal container.
2594 2014-10-10  Robert Dewar  <dewar@adacore.com>
2596         * gnat_ugn.texi: Document use of user-level routines to handle
2597         e.g. col major arrays.
2599 2014-10-10  Doug Rupp  <rupp@adacore.com>
2601         * s-osinte-android.adb: Fix misspelling.
2602         * gsocket.h: Tweak the Android quirks.
2604 2014-10-10  Robert Dewar  <dewar@adacore.com>
2606         * errout.ads (SPARK_Msg_N): Fix spec to match change in body.
2608 2014-10-10  Robert Dewar  <dewar@adacore.com>
2610         * sem_ch13.adb: Minor code reorganization.
2612 2014-10-10  Pat Rogers  <rogers@adacore.com>
2614         * gnat_rm.texi: Text now indicates pragma No_Run_Time is not
2615         for users.
2617 2014-10-10  Vadim Godunko  <godunko@adacore.com>
2619         * a-coinho-shared.adb: Add minor comment.
2620         * a-stzmap.adb (To_Sequence): Compute size of result array.
2622 2014-10-10  Javier Miranda  <miranda@adacore.com>
2624         * exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
2625         if-stmt to match its current documentation.
2627 2014-10-10  Robert Dewar  <dewar@adacore.com>
2629         * sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
2630         freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
2631         sem_ch6.adb, sem_cat.adb, sem_disp.adb
2632         (Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
2633         throughout where appropriate.
2635 2014-10-10  Bob Duff  <duff@adacore.com>
2637         * a-coinho-shared.ads: Minor reformatting.
2638         * s-traceb.adb: Minor clean up.
2640 2014-10-10  Robert Dewar  <dewar@adacore.com>
2642         * ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
2643         * ali.ads (GNATprove_Mode): New component in ALI table.
2644         (GNATprove_Mode_Specified): New global.
2645         * gnatbind.adb (Gnatbind): Give fatal error if any file compiled
2646         in GNATProve mode.
2647         * lib-writ.ads, lib-writ.adb (GP): New flag on P line for
2648         GNATProve_Mode.
2650 2014-10-10  Javier Miranda  <miranda@adacore.com>
2652         * exp_ch3.adb (Build_Init_Procedure): Adding assertion.
2653         (Build_Init_Statement): Ensure that statements
2654         associated with the parent components are located at the beginning
2655         of the returned list of statements.
2657 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2659         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
2660         view of a private type T that has a type invariant is a scalar
2661         or constrained array type, the base type created for the full
2662         view has the same type invariant.
2664 2014-10-10  Robert Dewar  <dewar@adacore.com>
2666         * exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
2667         reorganization.
2669 2014-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2671         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
2672         * gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
2674 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
2676         * gcc-interface/Make-lang.in (check_acats_numbers0,
2677         check_acats_numbers1, check_acats_numbers2, check_acats_numbers3,
2678         check_acats_numbers4, check_acats_numbers5, check_acats_numbers6,
2679         check_acats_numbers, check_acats_subdirs): New variables.
2680         (check_acats_targets): Use $(check_acats_subdirs).
2681         (check-acats, check-acats%): Rewritten so that for parallelized
2682         testing each job runs all the chapters files, with
2683         GCC_RUNTEST_PARALLELIZE_DIR set in environment.  Prepare the support
2684         directory sequentially and share it.
2685         (check-acats-subtargets): Always print just check-acats.
2687 2014-08-25  Martin Liska  <mliska@suse.cz>
2689         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to
2690         new cgraph interface.
2691         (gnat_write_global_declarations): Likewise.
2693 2014-08-13  Sylvestre Ledru  <sylvestre@debian.org>
2695         * 9drpc.adb: Fix a typo
2696         * s-interr.ads: Likewise
2697         * s-taskin.ads: Likewise
2698         * s-traces.ads: Likewise
2699         * sysdep.c: Likewise
2701 2014-08-12  Joel Sherrill <joel.sherrill@oarcorp.com>
2703         * socket.c: For RTEMS, use correct prototype of gethostbyname_r().
2704         * gsocket.h Add include of <unistd.h> on RTEMS.
2706 2014-08-11  Joel Sherrill <joel.sherrill@oarcorp.com>
2708         * s-osinte-rtems.adb: Correct formatting of line in license block.
2710 2014-08-04  Claire Dross  <dross@adacore.com>
2712         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
2713         For an instance, look at the scope before the generic parent.
2715 2014-08-04  Yannick Moy  <moy@adacore.com>
2717         * lib-writ.ads: Update comments.
2718         * sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add
2719         parameters to filter inherited subprograms.
2721 2014-08-04  Robert Dewar  <dewar@adacore.com>
2723         * gnat_rm.texi: Add section on use of address clause for memory
2724         mapped I/O.
2726 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2728         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in
2729         particular the subtype created for a generic actual, inherits
2730         invariant information from the base type.
2732 2014-08-04  Robert Dewar  <dewar@adacore.com>
2734         * aspects.ads, aspects.adb: Add entries for aspect Obsolescent.
2735         * gnat_rm.texi: Add documentation for aspect Obsolescent.
2736         * sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect
2737         Obsolescent.
2738         (Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent.
2739         * s-osprim-mingw.adb: Minor reformatting.
2740         * sem_res.adb (Is_Atomic_Ref_With_Address): New function
2741         (Resolve_Indexed_Component): Rework warnings for non-atomic access
2742         (Resolve_Selected_Component): Add warnings for non-atomic access.
2744 2014-08-04  Doug Rupp  <rupp@adacore.com>
2746         * g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec
2747         formal to long_long.
2748         * g-calend.ads (timeval): Bump up size to accomodate sec type.
2749         * s-taprop-linux.adb (timeval_to_duration): Change sec formal to
2750         long_long
2751         * s-osprim-posix.adb (timeval): Bump up size to accomodate
2752         new sec type.
2753         (timeval_to_duration): Change sec formal to Long_Long_Integer
2754         * s-osinte-darwin.adb (timeval): Bump up
2755         size to accomodate new sec type.
2756         (timeval_to_duration): Change sec formal to long_long
2757         * s-osinte-android.adb: Likewise.
2758         * cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change
2759         sec formal from long to long long.
2761 2014-08-04  Robert Dewar  <dewar@adacore.com>
2763         * sem_res.adb (Resolve_Qualified_Expression): Make sure
2764         Do_Range_Check flag gets set.
2766 2014-08-04  Robert Dewar  <dewar@adacore.com>
2768         * einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
2769         * exp_ch3.adb (Build_Array_Init_Proc): Use
2770         Is_Standard_String_Type.
2771         (Expand_Freeze_Array_Type): ditto.
2772         (Get_Simple_Init_Val): ditto.
2773         (Needs_Simple_Initialization): ditto.
2774         * sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
2775         * sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
2777 2014-08-04  Pascal Obry  <obry@adacore.com>
2779         * adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
2780         _stprintf which insert garbage into the wfull_path buffer.
2782 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2784         * cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
2785         code.
2786         * fe.h: Minor reformatting.
2788 2014-08-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2790         * cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
2792 2014-08-04  Robert Dewar  <dewar@adacore.com>
2794         * par-ch13.adb (Get_Aspect_Specifications): Improve error
2795         recovery, fixing a -gnatQ bomb.
2797 2014-08-04  Yannick Moy  <moy@adacore.com>
2799         * sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode,
2800         do not generate two Itypes with the same name for an array
2801         definition.
2802         * sinfo.ads: Expand doc on GNATprove mode.
2804 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2806         * exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization
2807         master and storage pool attributes on the root type of an
2808         anonymous access type.
2809         * exp_ch4.adb (Expand_N_Allocator): Set the finalization master
2810         and storage pool attributes on the root type of an anonymous
2811         access type.
2813 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2815         * exp_ch3.adb: Minor reformatting.
2816         * tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed.
2817         * tracebak.c: Remove use of above files.
2818         * gcc-interface/Makefile.in: Update dependencies.
2820 2014-08-04  Pierre-Marie Derodat  <derodat@adacore.com>
2822         * gcc-interface/utils.c (gnat_set_type_context): Also set the
2823         context for parallel types' TYPE_STUB_DECL.  Do not change
2824         anything if the context is already set for them.
2825         (gnat_pushdecl): Update the comment for calls to
2826         gnat_set_type_context to mention parallel types.
2827         (add_parallel_type): When adding a context-less parallel type to
2828         a type that has a context, propagate the context from the latter
2829         type to the former.
2830         (process_deferred_decl_context): Call gnat_set_type_context
2831         rather than manually setting the type context.
2832         (build_unc_object_type): Call gnat_set_type_context on the
2833         template type.
2835 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2837         * exp_ch5.adb (Expand_N_Case_Statement): If a choice is a
2838         subtype indication and the case statement has only two choices,
2839         replace subtype indication with its range, because the resulting
2840         membership test cannot have a subtype indication as an operand.
2842 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2844         * exp_ch3.adb: Update comments, minor reformatting.
2846 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2848         * sem_ch3.adb (Analyze_Declarations): Explain why the bodies of
2849         the default initial condition procedures are build here.
2850         * sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the
2851         analyzed argument of pragma Default_Initial_Condition in some
2852         dummy code as GNATprove mode disables assertions, but still
2853         needs to see the argument.
2855 2014-08-04  Robert Dewar  <dewar@adacore.com>
2857         * exp_ch6.adb, sem_util.adb: Minor reformatting.
2859 2014-08-04  Olivier Hainque  <hainque@adacore.com>
2861         * a-comutr.ads: Set Root_Node_Type'Alignment to
2862         Standard'Maximum_Alignment, so that it is at least as large as
2863         the max default for Tree_Node_Type'Alignment.
2865 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2867         * exp_ch3.adb (Freeze_Type): Remove the generation and inheritance
2868         of the default initial condition procedure [body].
2869         * sem_ch3.adb (Analyze_Declarations): Create the bodies of
2870         all default initial condition procedures at the end of private
2871         declaration analysis.
2872         * sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New
2873         routine.
2874         (Build_Default_Init_Cond_Procedure_Body): Merged in the
2875         processing of routine Build_Default_Init_Cond_Procedure_Bodies.
2876         * sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies):
2877         New routine.
2878         (Build_Default_Init_Cond_Procedure_Body): Removed.
2880 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2882         * sem_elab.adb (Check_Elab_Call): Do not check a call to a
2883         postcondtion.
2884         * exp_ch6.adb (Expand_Call): Clarify handling of inserted
2885         postcondition call.
2887 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2889         * sem_prag.adb (Analyze_Pragma): Ensure that an
2890         internally generated spec for a stand alone body is recognized
2891         as a proper context for pragma SPARK_Mode.
2893 2014-08-04  Robert Dewar  <dewar@adacore.com>
2895         * erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors.
2897 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2899         * adabkend.adb (Scan_Back_End_Switches): Ignore extra -o
2900         when -gnatO has already been specified, for compatibility
2901         with gcc driver.
2902         (Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in
2903         codepeer mode.
2904         * g-expect.ads: Fix typo.
2906 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2908         * exp_ch4.adb (Insert_Dereference_Action): the actual Size
2909         must account for the bounds template if the designated type is
2910         an unconstrained array.
2912 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2914         * a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add
2915         SPARK_Mode in the body.
2916         * sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original
2917         way to verify the consistency of SPARK_Mode between a spec and
2918         a body.
2919         * sem_ch12.adb (Analyze_Package_Instantiation): Remove the call
2920         to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
2921         manually.
2922         (Analyze_Subprogram_Instantiation): Remove the call to
2923         Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
2924         manually.
2925         * sem_prag.adb (Analyze_Pragma): Remove local variable
2926         Inst_Id. SPARK_Mode can no longer be applied to a package or
2927         subprogram instantiation.
2928         * sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode):
2929         Removed.
2931 2014-08-04  Robert Dewar  <dewar@adacore.com>
2933         * sem_prag.adb, osint.adb, osint.ads: Minor reformatting.
2935 2014-08-04  Yannick Moy  <moy@adacore.com>
2937         * sem_ch3.adb (Derive_Type_Declaration,
2938         Process_Discriminants): Remove SPARK-specific legality checks.
2940 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2942         * g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram.
2943         * gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support
2944         for HMAC.
2946 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2948         * sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the
2949         compatibility of SPARK_Mode between a spec and a body, use the
2950         SPARK_Mode of the public part.
2951         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use
2952         the already available routine to exchange the aspects between
2953         the template and its copy. Analyze the aspects of copy to
2954         ensure that the corresponding pragmas perform their semantic
2955         effects.  The partial analysis of aspects is no longer needed.
2956         (Analyze_Package_Instantiation): Save and restore the SPARK_Mode
2957         of the context.
2958         (Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of
2959         the context.
2960         * sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram
2961         instantiation which does not come from source.
2963 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2965         * a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add
2966         SPARK_Mode pragmas to the public and private part of the unit.
2967         * sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived
2968         type cannot have discriminants if the parent type already has
2969         discriminants.
2970         (Process_Discriminants): Ensure that the type of a discriminant is
2971         discrete.
2972         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on
2973         SPARK_Mode compatibility between a spec and a body can now be
2974         safely performed while processing a generic.
2975         * sem_ch7.adb (Analyze_Package_Body_Helper): The check on
2976         SPARK_Mode compatibility between a spec and a body can now be
2977         safely performed while processing a generic.
2978         * sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be
2979         safely analyzed when processing a generic.
2981 2014-08-04  Nicolas Roche  <roche@adacore.com>
2983         * g-dirope.adb: Minor reformating.
2985 2014-08-04  Robert Dewar  <dewar@adacore.com>
2987         * sem_ch6.adb: Minor reformatting.
2989 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2991         * sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
2992         Before normalizing these pragmas into a pragma Check, preanalyze
2993         the optional Message argument, (which is subsequently copied)
2994         so that it has the proper semantic information for ASIS use.
2995         * sem_case.adb: Initialize flag earlier.
2996         * osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
2997         the full source path of a configuration file is requested.
2998         (Read_Source_File): Use Full_Name parameter..
3000 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3002         * opt.ads Alphabetize various global flags. New flag
3003         Ignore_Pragma_SPARK_Mode along with a comment on usage.
3004         * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
3005         Pragma SPARK_Mode is now allowed in generic units.
3006         (Analyze_Subprogram_Body_Helper): Do not verify the compatibility
3007         between the SPARK_Mode of a spec and that of a body when inside
3008         a generic.
3009         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the
3010         compatibility between the SPARK_Mode of a spec and that of a
3011         body when inside a generic.
3012         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
3013         Pragma SPARK_Mode is now allowed in generic units.
3014         (Analyze_Package_Instantiation): Save and restore the value of
3015         flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
3016         the governing SPARK_Mode before analyzing the instance.
3017         (Analyze_Subprogram_Instantiation): Save and restore the value
3018         of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
3019         the governing SPARK_Mode before analyzing the instance.
3020         * sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the
3021         placement of a source pragma when inserting the generated pragma
3022         for aspect SPARK_Mode.
3023         * sem_prag.adb (Analyze_Pragma): Reimplement the handling of
3024         pragma SPARK_Mode to allow for generics and their respective
3025         instantiations.
3026         * sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed.
3027         (Set_Ignore_Pragma_SPARK_Mode): New routine.
3029 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
3031         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with
3032         renaming discriminants in tagged types first.
3033         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test
3034         the underlying type of the prefix.
3035         (Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..."
3036         (process_freeze_entity): Reset the nodes of all the view of a type,
3037         if any.
3039 2014-08-04  Doug Rupp  <rupp@adacore.com>
3040             Olivier Hainque  <hainque@adacore.com>
3042         * gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7
3043         and remove incorrect EH_MECHANISM macros.
3044         Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to
3045         EXTRA_LIBGNAT_OBJS.
3047 2014-08-04  Robert Dewar  <dewar@adacore.com>
3049         * exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix
3050         of constructed 'Valid attribute in -gnatVa mode does not appear
3051         to come from source.
3052         * sem_attr.adb (Analyze_Access_Attribute): Don't set
3053         Never_Set_In_Source for non-source reference.
3054         * sem_util.adb: Minor reformatting.
3055         * sem_warn.adb (Check_References): Don't check Address_Taken,
3056         not necessary, see comment.
3058 2014-08-04  Robert Dewar  <dewar@adacore.com>
3060         * sem_util.adb, sem_case.adb: Minor reformatting.
3062 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3064         * exp_ch9.adb (Extract_Entry): If the synchronized object is a
3065         limited view, replace with non-limited view, which is available
3066         at the point of an entry call.
3068 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3070         * exp_ch6.adb (Expand_Call): If the call is to a function in
3071         a run-time unit that is marked Inline_Always, we must suppress
3072         debugging information on it, so that the code that is eventually
3073         inlined will not affect debugging of the user program.
3075 2014-08-04  Robert Dewar  <dewar@adacore.com>
3077         * inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
3078         fixes.
3080 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3082         * sem_prag.adb (Process_Import_Or_Interface): Handle properly
3083         an aspect Import that specifies a False value.
3085 2014-08-04  Robert Dewar  <dewar@adacore.com>
3087         * gnat_rm.texi: Add section on aspect Invariant'Class.
3089 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3091         * sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
3092         for better control of cascaded error messages when some choice
3093         in a case statement over a predicated type violates the given
3094         static predicate.
3096 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3098         * sem_ch3.adb (Build_Derived_Type): Modify the
3099         inheritance of the rep chain to ensure that a non-tagged type's
3100         items are not clobbered during the inheritance.
3102 2014-08-04  Robert Dewar  <dewar@adacore.com>
3104         * sem_ch3.adb, einfo.ads: Minor reformatting.
3106 2014-08-04  Yannick Moy  <moy@adacore.com>
3108         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix
3109         detection of subprograms that cannot be inlined in GNATprove mode.
3111 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3113         * einfo.adb: Add guard to Returns_Limited_View.
3115 2014-08-04  Jose Ruiz  <ruiz@adacore.com>
3117         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of
3118         the secondary stack to respect the alignments of the returned objects.
3120 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3122         * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
3123         on function entities whose return type is a limited view.
3124         * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
3125         where to place the freeze node for a function that returns the
3126         limited view of a type, when the function is called and frozen
3127         in a different unit.
3129 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
3131         * sem_ch3.adb (Build_Derived_Private_Type): Minor code
3132         refactoring.
3134 2014-08-04  Robert Dewar  <dewar@adacore.com>
3136         * gnat_ugn.texi: Clarify documentation on assertions.
3138 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3140         * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
3141         if a component association has a box initialization when the
3142         component type has no default initialization, either through an
3143         initial value, an aspect, or an implicit initialization procedure.
3145 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3147         * freeze.adb: Code clean up.
3149 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3151         * sem_ch5.adb: Minor reformatting.
3153 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3155         * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
3156         a function can return a limited view of a type declared
3157         elsewhere. In that case the function cannot be frozen at the end
3158         of its enclosing package. If its first use is in a different unit,
3159         it cannot be frozen there, but if the call is legal the full view
3160         of the return type is available and the subprogram can now be
3161         frozen. However the freeze node cannot be inserted at the point
3162         of call, but rather must go in the package holding the function,
3163         so that the backend can process it in the proper context.
3165 2014-08-04  Robert Dewar  <dewar@adacore.com>
3167         * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
3169 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3171         * sem_ch4.adb (Operator_Check): Refine previous change.
3173 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3175         * sem_scil.ads: Improve comments.
3176         * sem_ch4.adb (Analyze_Equality_Op): Add support for
3177         Allow_Integer_Address (equality between Address and Integer).
3179 2014-08-04  Yannick Moy  <moy@adacore.com>
3181         * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
3182         notation on untagged objects.
3183         * sem.ads: Update comment.
3184         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
3185         not inline subprograms declared in the visible part of a package.
3187 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3189         * exp_ch5.adb: minor reformatting.
3190         * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
3191         parameters.
3193 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3195         * s-fatgen.adb: Minor reformatting.
3197 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3199         * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
3200         False on .NET.
3202 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3204         * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
3205         the loop parameter for element iterators over containers and
3206         arrays, so that improper uses of it are detected in the loop
3207         body when expansion is disabled.
3208         * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
3209         generated cursor is that of the analyzed loop parameter.
3211 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3213         * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
3214         Flag_Decl. Do not analyze the declaration of the flag as it is
3215         not part of the tree yet, instead add it to the freeze actions
3216         of the C++ type.
3218 2014-08-04  Robert Dewar  <dewar@adacore.com>
3220         * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
3221         case of OUT and IN OUT parameter correctly (where Source_Typ is
3222         set), we were missing one case where a check must be applied.
3224 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3226         * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
3227         the generated code. Instead of hiding the renaming and using the
3228         wrapper as the proper association, have the subprogram renaming
3229         alias the wrapper.
3230         (Build_Spec): The entity of the wrapper is
3231         now derived from the entity of the related primitive.
3233 2014-08-04  Emmanuel Briot  <briot@adacore.com>
3235         * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
3236         using non-capturing groups.
3238 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3240         * inline.adb (Build_Body_To_Inline): Remove Unmodified and
3241         related pragmas before copying the original body, to prevent
3242         spurious errors when the pragmas apply to formals that will not
3243         appear in the inlined body.
3245 2014-08-04  Robert Dewar  <dewar@adacore.com>
3247         * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
3248         exp_ch3.adb: Minor reformatting.
3250 2014-08-04  Robert Dewar  <dewar@adacore.com>
3252         * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
3254 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3256         * aspects.adb Add an entry in table Canonical_Aspect for
3257         Default_Initial_Condition.
3258         * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
3259         Aspect_Names and Aspect_Delay for Default_Initial_Condition.
3260         * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
3261         is now Is_Default_Init_Cond_ Procedure. Flag133 is now
3262         Has_Inherited_Default_Init_Cond.
3263         (Default_Init_Cond_Procedure): New routine.
3264         (Has_Default_Init_Cond): New routine.
3265         (Has_Inherited_Default_Init_Cond): New routine.
3266         (Is_Default_Init_Cond_Procedure): New routine.
3267         (Set_Default_Init_Cond_Procedure): New routine.
3268         (Set_Has_Default_Init_Cond): New routine.
3269         (Set_Has_Inherited_Default_Init_Cond): New routine.
3270         (Set_Is_Default_Init_Cond_Procedure): New routine.
3271         (Write_Entity_Flags): Output all the new flags.
3272         * einfo.ads New attributes Default_Init_Cond_Procedure,
3273         Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
3274         along with usage in nodes.
3275         (Default_Init_Cond_Procedure): New routine.
3276         (Has_Default_Init_Cond): New routine and pragma Inline.
3277         (Has_Inherited_Default_Init_Cond): New routine and
3278         pragma Inline.
3279         (Is_Default_Init_Cond_Procedure): New routine and
3280         pragma Inline.
3281         (Set_Default_Init_Cond_Procedure): New routine.
3282         (Set_Has_Default_Init_Cond): New routine and pragma Inline.
3283         (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
3284         (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
3285         * exp_ch3.adb (Expand_N_Object_Declaration): New constant
3286         Next_N. Generate a call to the default initial condition procedure
3287         if the object's type is subject to the pragma.  (Freeze_Type):
3288         Generate the body of the default initial condition procedure or
3289         inherit the spec from a parent type.
3290         * exp_ch7.adb Add with and use clause for Exp_Prag.
3291         (Expand_Pragma_Initial_Condition): Removed.
3292         * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
3293         routine.
3294         * par-prag.adb (Prag): Pragma Default_Initial_Condition does
3295         not need special treatment by the parser.
3296         * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
3297         attributes related to pragma Default_Initial_Condition to the
3298         derived type.
3299         (Process_Full_View): Propagate the attributes
3300         related to pragma Default_Initial_Condition to the full view.
3301         * sem_ch7.adb (Analyze_Package_Specification): Build the
3302         declaration of the default initial condition procedure for all
3303         types that qualify or inherit the one from the parent type.
3304         * sem_ch13.adb (Analyze_Aspect_Specifications):
3305         Add processing for aspect Default_Initial_Condition.
3306         (Check_Aspect_At_Freeze_Point): Aspect
3307         Default_Initial_Condition does not require delayed analysis.
3308         (Replace_Type_References_Generic): Moved to spec.
3309         * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
3310         * sem_prag.adb Add an entry in table Sif_Glags for
3311         Default_Initial_Condition.
3312         (Analyze_Pragma): Pragma
3313         Default_Initial_Condition is now part of assertion
3314         policy. Add processing for pragma Default_Initial_Condition.
3315         (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
3316         now recognized as a proper assertion policy.
3317         * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
3318         routine.
3319         (Build_Default_Init_Cond_Procedure_Body): New routine.
3320         (Build_Default_Init_Cond_Procedure_Declaration): New routine.
3321         (Inherit_Default_Init_Cond_Procedure): New routine.
3322         * snames.ads-tmpl Add new predefined name and pragma id for
3323         Default_Initial_Condition.
3325 2014-08-04  Vincent Celier  <celier@adacore.com>
3327         * prj-dect.adb (Parse_Case_Construction): It is no longer
3328         an error if the variable for a case construction is not
3329         typed, only if the variable value is not a single string. Call
3330         Parse_Choice_List and End_Case_Construction with the new parameter
3331         to indicate that the variable is typed.
3332         * prj-strt.adb (End_Case_Construction): Only check the labels
3333         if the variable is typed.  If the variable is not typed,
3334         issue a warning when there is no "when others" allternative.
3335         (Parse_Choice_List): Manage the labels only if the variable
3336         is typed.
3337         * prj-strt.ads (End_Case_Construction): New Boolean parameter
3338         String_Type.
3339         (Parse_Choice_List): Ditto.
3341 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3343         * sem_ch5.adb: Additional fix to Check_Predicate_Use.
3345 2014-08-04  Vincent Celier  <celier@adacore.com>
3347         * projects.texi: Update documentation of case constructions with
3348         variables that are not typed.
3350 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3352         * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
3353         an Eliminated pragma, indicate that the wrapper is also to be
3354         eliminated, to prevent spurious errors when using gnatelim on
3355         programs that include box-initialization of equality operators
3356         (consequence of AI05-071)..
3358 2014-08-04  Robert Dewar  <dewar@adacore.com>
3360         * checks.adb (Activate_Overflow_Check): Handle floating-point
3361         case correctly.
3362         * checks.ads (Activate_Overflow_Check): Clarify handling of
3363         floating-point cases.
3364         * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
3365         flag if we generate an explicit overflow check (for
3366         Check_Float_Overflow mode).
3368 2014-08-04  Robert Dewar  <dewar@adacore.com>
3370         * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
3371         prj-attr.adb, prj-attr.ads: Minor reformatting.
3373 2014-08-04  Yannick Moy  <moy@adacore.com>
3375         * expander.adb (Expand): Always perform special
3376         expansion in GNATprove mode, even when doing pre-analysis.
3378 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3380         * repinfo.adb (List_Scalar_Storage_Order): List bit order if
3381         not default. Also list bit order if SSO is specified. Do not
3382         assume that bit order is always equal to scalar storage order.
3384 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3386         * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
3387         order to reverse SSO for a type that has an explicit native
3388         Bit_Order.
3390 2014-08-04  Doug Rupp  <rupp@adacore.com>
3392         * cal.c: Macro check for VxWorks7.
3393         * init.c (getpid): Likewise.
3394         * mkdir.c (__gnat_mkdir): Likewise.
3395         * sysdep.c (__gnat_is_file_not_found_error): Likewise.
3397 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3399         * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
3400         of an invariant check in the case where No_Initialization is set,
3401         since the object is uninitialized.
3403 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3405         * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
3406         name, in addition to a pragma name.
3407         * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
3408         Is_Pragma_Name): Adjust accordingly.
3409         * sem_attr.ads, sem_attr.adb, exp_attr.adb
3410         (Attribute_Default_Scalar_Storage_Order): Add handling of new
3411         attribute.
3412         * gnat_rm.texi: Document the above.
3414 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3416         * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
3417         mode for now, to revert to previous behavior.
3418         * checks.adb: Revert previous change, no longer needed.
3420 2014-08-04  Robert Dewar  <dewar@adacore.com>
3422         * gnat1drv.adb (Adjust_Global_Switches): Don't set
3423         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
3424         * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
3425         set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
3426         * switch-c.adb (Scan_Front_End_Switches): Don't set
3427         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
3429 2014-08-04  Vincent Celier  <celier@adacore.com>
3431         * prj-attr.adb: Add new default indications for
3432         attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
3433         (Attribute_Default_Of): New function (Initialize): Set the
3434         default for those attributes that have one specified.
3435         * prj-attr.ads (Attribute_Data): New component Default.
3436         * prj-proc.adb (Expression): Take into account the new defaults
3437         for attributes Object_Dir, Exec_Dir and Source_Dirs.
3438         * prj-strt.adb (Attribute_Reference): Set the default for
3439         the attribute.
3440         * prj-tree.ads, prj-tree.adb (Default_Of): New function.
3441         (Set_Default_Of): New procedure.
3442         * prj.adb (The_Dot_String): New global Name_Id variable,
3443         initialized in procedure Initialize.
3444         (Dot_String): New function
3445         (Initialize): Initialize The_Dot_String.
3446         (Reset): Create the string list Shared.Dot_String_List.
3447         * prj.ads (Attribute_Default_Value): New enumeration type.
3448         (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
3449         (Dot_String): New function.
3450         (Shared_Project_Tree_Data): New string list component Dot_String_List.
3451         * projects.texi: Document new defaults for attribute Object_Dir,
3452         Exec_Dir and Source_Dirs.
3454 2014-08-04  Robert Dewar  <dewar@adacore.com>
3456         * sem_ch12.adb: Minor reformatting.
3458 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3460         * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
3461         expansion in CodePeer_Mode.
3462         (Selected_Range_Checks): Add handling of overflow checks in
3463         CodePeer_Mode.
3465 2014-08-04  Robert Dewar  <dewar@adacore.com>
3467         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
3468         Remove special test for Float'First, no longer required.
3469         (Expand_N_Attribute_Reference, case Succ): Remove special test
3470         for Float'First, no longer required.
3471         * s-fatgen.adb (Pred): return infinity unchanged.
3472         (Succ): ditto.
3474 2014-08-04  Claire Dross  <dross@adacore.com>
3476         * sem_ch12.adb (Analyze_Associations): Defaults should only be
3477         used if there is no explicit match.
3478         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
3479         Also check for pragma external_axiomatization on generic units.
3481 2014-08-04  Robert Dewar  <dewar@adacore.com>
3483         * checks.adb (Activate_Overflow_Check): Remove
3484         Check_Float_Overflow processing.
3485         (Apply_Scalar_Range_Check): Ditto.
3486         (Generate_Range_Check): Ditto.
3487         * exp_ch4.adb (Expand_N_Op_Add): Add call to
3488         Check_Float_Op_Overflow.
3489         (Expand_N_Op_Divide): ditto.
3490         (Expand_N_Op_Multiply): ditto.
3491         (Expand_N_Op_Subtract): ditto.
3492         * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
3493         * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
3494         Do_Range_Check is set for floating-point case in -gnatc or
3495         GNATprove mode.
3496         (Analyze_Attribute, case Succ): Make sure
3497         Do_Range_Check is set for floating-point case in -gnatc or
3498         GNATprove mode.
3499         * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
3500         flag is set for real to integer conversion in GNATprove or
3501         -gnatc mode.
3503 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3505         * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
3506         the expression of an Import or Export aspect as type Boolean
3507         and require it to be static. Add ??? comment. Also, set the
3508         Is_Exported flag when appropriate.
3510 2014-08-04  Robert Dewar  <dewar@adacore.com>
3512         * exp_ch4.adb: Minor reformatting.
3513         * exp_attr.adb: Minor reformatting.
3515 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3517         * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
3518         (Unaligned_Valid): Remove now unused subprogram.
3519         * exp_attr.adb (Expand_N_Attribute_Reference, case
3520         Attribute_Valid): If the prefix is in reverse SSO or potentially
3521         unaligned, copy it using a byte copy operation to a temporary
3522         variable.
3523         * einfo.adb: Minor comment fix.
3525 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3527         * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
3529 2014-08-04  Robert Dewar  <dewar@adacore.com>
3531         * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
3532         * s-fatgen.adb (Pred): Handle Float'First.
3533         (Succ): Handle Float'Last.
3535 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3537         * sem_util.adb (Is_Potentially_Unevaluated): If the original
3538         node of a parent node in the tree is a short-circuit operation,
3539         the node is potentially unevaluated.
3541 2014-08-04  Robert Dewar  <dewar@adacore.com>
3543         * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
3544         conversion from a real type to an integer type.
3546 2014-08-04  Yannick Moy  <moy@adacore.com>
3548         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
3549         sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
3550         exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
3551         sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
3552         SPARK_05 instead of SPARK.
3554 2014-08-04  Robert Dewar  <dewar@adacore.com>
3556         * sem.ads: Minor reformatting.
3557         * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
3558         reformatting.
3559         (Analyze_Aspect_Specifications, case Convention): Put External_Name
3560         before Link_Name when constructing pragma.
3562 2014-08-04  Yannick Moy  <moy@adacore.com>
3564         * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
3565         to True during analysis of a default component expression.
3566         (Semantics): Save and restore In_Default_Expr around analysis.
3567         * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
3568         Call new wrapper Preanalyze_Default_Expression.
3569         (Preanalyze_Default_Expression): New wrapper on
3570         Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
3571         * sem_res.adb (Resolve_Call): Mark calls inside default
3572         expressions as not inlined in GNATprove mode.
3574 2014-08-04  Robert Dewar  <dewar@adacore.com>
3576         * exp_ch4.adb: Minor reformatting.
3578 2014-08-04  Olivier Hainque  <hainque@adacore.com>
3580         * link.c: remove const on __gnat_objlist_file_supported for AIX
3582 2014-08-04  Robert Dewar  <dewar@adacore.com>
3584         * sem_util.ads: Minor addition of comment.
3586 2014-08-04  Vincent Celier  <celier@adacore.com>
3588         * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
3589         all projects, including aggregate and aggregate library projects.
3591 2014-08-04  Yannick Moy  <moy@adacore.com>
3593         * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
3595 2014-08-04  Robert Dewar  <dewar@adacore.com>
3597         * sem_eval.adb (Test_In_Range): Always in range for
3598         Is_Known_Valid target type, where input type has smaller or
3599         equal size and does not have biased rep.
3601 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3603         * sem_attr.adb (Eval_Attribute): Constrained is not treated as
3604         a static attribute, and the Static flag must not be set on it
3605         during resolution. It may be constant-folded during expansion,
3606         but if expansion is disabled it is not a static expression.
3608 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3610         * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
3611         referenced once resolution has taken place.
3613 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3615         * exp_ch4.adb (Expand_N_Type_Conversion): Don't
3616         compare access levels in the case where the target type is the
3617         anonymous type of an access discriminant, since the level of
3618         such types is defined based on context. Add comment.
3620 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3622         * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
3623         cases related to equality.  Remove the special processing
3624         for dispatching abstract subprograms as it is not needed.
3625         (Interpretation_Error): Add a specialized error message for
3626         predefined operators.
3627         (Is_Intrinsic_Equality): New routine.
3628         (Is_Suitable_Candidate): New routine.
3630 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3632         * checks.adb: Minor comment reformatting.
3634 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3636         * restrict.adb (Check_Restriction): For checked max_parameter
3637         restrictions reset Violated flag, so that subsequent violations
3638         are properly detected.
3640 2014-08-04  Robert Dewar  <dewar@adacore.com>
3642         * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
3643         mode.
3644         (Process_Discriminants): Fix bad test of GNATprove mode
3646 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3648         * sem_ch12.adb (Instantiate_Formal_Subprogram):
3649         Move variable to their own section. Propagate the source
3650         location of a formal parameter to the corresponding formal of
3651         the subprogram renaming declaration. Code reformatting.
3653 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3655         * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
3657 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3659         * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
3660         if error already detected.  We may reach this point in spite of
3661         previous errors when compiling with -gnatq, to force all possible
3662         errors (this is the usual ACATS mode).
3664 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3666         * checks.adb (Generate_Range_Check): For the case of converting
3667         a base type with a larger range to a smaller target subtype, only
3668         use unchecked conversions of bounds in the range check followed
3669         by conversion in the case where both types are discrete. In other
3670         cases, convert to the target base type and save in a temporary
3671         followed by the range check.
3672         (Convert_And_Check_Range): New procedure factoring code to save
3673         conversion to a temporary followed by a range check (called two
3674         places in Generate_Range_Check).
3675         * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
3676         check-in, to generate range checks for conversions between
3677         any floating-point types rather than limiting it to matching
3678         base types.
3680 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3682         * gcc-interface/trans.c: Use hash_set instead of pointer_set.
3684 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3686         * restrict.adb (Update_Restrictions): For restrictions with a
3687         maximum parameter (e.g. number of protected entries in Ravenscar)
3688         do not compute the maximum of the violation over several objects,
3689         because the restriction is per-object.
3690         (Check_Restriction): After possible message, reset the value
3691         of of a checked max_parameter restriction to zero, to prevent
3692         cascaded errors.
3693         * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
3694         (sub)type to determine whether derived type should be on the
3695         list of private dependents of a type whose full view may become
3696         visible subsequently.
3698 2014-08-01  Olivier Hainque  <hainque@adacore.com>
3700         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
3701         $(CXX) instead of ../../xg++ to feed CXX.
3702         (CXX_LFLAGS): Remove. Now unused as the proper flags
3703         are expected to be included in the CXX variable.
3705 2014-08-01  Pierre-Marie Derodat  <derodat@adacore.com>
3707         * gcc-interface/decl.c (elaborate_expression_1): Return the new
3708         variable when debug info is needed and the expression is not
3709         constant.  Tag as external only new variables that are global.
3710         (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
3711         * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
3712         attributes for IN array parameters when their actual subtype
3713         needs debug info.
3714         (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
3715         * gcc-interface/gigi.h (process_deferred_decl_context): New.
3716         * gcc-interface/utils.c (gnat_write_global_declarations): Do not
3717         emit debug info for ignored global declarations.
3718         (struct deferred_decl_context_node,
3719         add_deferred_decl_context, add_deferred_type_context,
3720         compute_deferred_decl_context, defer_or_set_type_context,
3721         deferred_decl_context_queue, get_debug_scope,
3722         get_global_context, process_deferred_decl_context): New.
3723         (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
3724         computation machinery to rely on the GNAT Scope attribute.
3726 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3728         * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
3730 2014-08-01  Robert Dewar  <dewar@adacore.com>
3732         * sem_ch8.adb, opt.ads Minor comment updates.
3734 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3736         * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
3737         from the side effects removal machinery.
3738         * exp_util.adb (Duplicate_Subexpr): Add formal parameter
3739         Renaming_Req. Update the nested call to Remove_Side_Effects.
3740         (Duplicate_Subexpr_No_Checks): Add formal parameter
3741         Renaming_Req. Update the nested call to Remove_Side_Effects.
3742         (Duplicate_Subexpr_Move_Checks): Add formal parameter
3743         Renaming_Req. Update the nested call to Remove_Side_Effects.
3744         (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
3745         an object renaming declaration when the caller requests it.
3746         * exp_util.ads (Duplicate_Subexpr): Add formal
3747         parameter Renaming_Req. Update comment on usage.
3748         (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
3749         (Duplicate_Subexpr_Move_Checks): Add formal parameter
3750         Renaming_Req.
3752 2014-08-01  Bob Duff  <duff@adacore.com>
3754         * gnat_ugn.texi: Minor updates.
3756 2014-08-01  Robert Dewar  <dewar@adacore.com>
3758         * atree.adb: Minor reformatting.
3760 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3762         * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
3763         private extension, get stored constraint, if any, from full view.
3765 2014-08-01  Robert Dewar  <dewar@adacore.com>
3767         * opt.ads (No_Elab_Code_All_Pragma): New global variable.
3768         * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
3769         (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
3770         (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
3771         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
3772         Remove code for checking with's, now in sem_ch10.adb, set
3773         Opt.No_Elab_Code_All_Pragma.
3775 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3777         * sem_ch3.adb (Copy_And_Build): Copy the declaration for
3778         access types as well and adjust the subtype mark if there are
3779         no constraints.
3781 2014-08-01  Robert Dewar  <dewar@adacore.com>
3783         * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
3785 2014-08-01  Robert Dewar  <dewar@adacore.com>
3787         * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
3789 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3791         * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
3792         * exp_ch4.adb (Expand_Composite_Equality): Add conversion
3793         of the actuals in the case of untagged record types too.
3794         * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
3795         full derivation of a derived private type, extracted from...
3796         (Copy_And_Build): In the case of record types and most
3797         enumeration types, copy the original declaration.  Build the
3798         full derivation according to the approach extracted from...
3799         (Build_Derived_Private_Type): ...here.  Call Build_Full_Derivation
3800         to create the full derivation in all existing cases and also
3801         create it in the no-discriminants/discriminants case instead of
3802         deriving directly from the full view.
3803         (Is_Visible_Component): Remove obsolete code.
3804         * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
3806 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3808         * fe.h (GNAT_Mode): New.
3809         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
3810         reverse SSO in GNAT mode.
3812 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3814         * freeze.adb: Minor reformatting.
3816 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3818         * exp_ch3.adb (Default_Initialize_Object): Do not generate
3819         default initialization for an imported object.
3821 2014-08-01  Olivier Hainque  <hainque@adacore.com>
3823         * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
3824         to the expected FARPROC type instead of void *.
3825         * adaint.c (f2t): Expect __time64_t * as second argument, in line with
3826         other datastructures.
3827         (__gnat_file_time_name_attr): Adjust accordingly.
3828         (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
3829         in line with uses.
3830         (__gnat_check_OWNER_ACL): Declare AccessMode
3831         parameter as ACCESS_MODE instead of DWORD, in line with callers
3832         and uses.
3833         (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
3834         unused on win32.  Correct cast of "args" on call to spawnvp.
3835         (add_handle): Cast realloc calls into their destination types.
3836         (win32_wait): Remove declaration and initialization of unused variable.
3837         (__gnat_locate_exec_on_path): Cast alloca calls
3838         into their destination types.
3839         * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
3840         their destination types.
3842 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
3844         * exp_ch4.adb (Expand_N_Type_Conversion): Expand
3845         range checks for conversions between floating-point subtypes
3846         when the target and source types are the same.
3848 2014-08-01  Robert Dewar  <dewar@adacore.com>
3850         * exp_aggr.adb: Minor reformatting.
3852 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3854         * sem_ch13.adb (Check_Indexing_Functions): Initialize
3855         Indexing_Found.
3857 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3859         * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
3860         ALI file before we call the backend (so that gnat2why can append
3861         to it).
3863 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3865         * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
3866         Expand_Packed_Element_Reference): Pass additional Rev_SSO
3867         parameter indicating whether the packed array type has reverse
3868         scalar storage order to the s-pack* Set/Get routines.
3869         * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
3870         indicating reverse scalar storage order.
3872 2014-08-01  Robert Dewar  <dewar@adacore.com>
3874         * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
3875         for initial component value in -gnatc or GNATprove mode.
3876         (Process_Discriminants): Same fix for default discriminant values.
3877         * sem_eval.adb (Test_In_Range): Improve accuracy of results by
3878         checking subtypes.
3880 2014-08-01  Robert Dewar  <dewar@adacore.com>
3882         * sinfo.ads: Minor comment clarification.
3884 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3886         * sem_ch13.adb (Analyze_Aspect_Specifications): Code
3887         reformatting. Store the generated pragma Import in the related
3888         subprogram as routine Wrap_Imported_Subprogram will need it later.
3889         * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
3890         a private type with discriminants is considered to fall in the
3891         category of unconstrained or tagged items.
3893 2014-08-01  Arnaud charlet  <charlet@adacore.com>
3895         * s-os_lib.adb (Open_Append): New functions to open a file for
3896         appending. This binds to the already existing (but not used)
3897         __gnat_open_append.
3898         * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
3899         to open a file for appending.
3900         * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
3901         to open the ALI file for appending.
3903 2014-08-01  Robert Dewar  <dewar@adacore.com>
3905         * sem_ch8.adb: Minor reformatting.
3907 2014-08-01  Yannick Moy  <moy@adacore.com>
3909         * sem_ch13.adb (Insert_Pragma): Add special case for precondition
3910         pragmas from aspects, which need to be inserted in proper order.
3912 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3914         * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
3915         Handle properly a type extension that constrains a discriminated
3916         derived type that renames other discriminants of an ancestor.
3918 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3920         * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
3921         s-pack25.adb: Fix minor inconsistencies and typos.
3923 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3925         * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
3926         globals and move certain variables to the "local
3927         variable" section. Call Build_Class_Wide_Wrapper when
3928         renaming a default actual subprogram with a class-wide actual.
3929         (Build_Class_Wide_Wrapper): New routine.
3930         (Check_Class_Wide_Actual): Removed.
3931         (Find_Renamed_Entity): Code reformatting.
3932         (Has_Class_Wide_Actual): Alphabetize. Change the
3933         logic of the predicate as the renamed name may not necessarely
3934         denote the correct subprogram.
3936 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3938         * sem_ch7.adb: Fix minor oversight in condition.
3940 2014-08-01  Bob Duff  <duff@adacore.com>
3942         * projects.texi: Minor documentation improvements.
3944 2014-08-01  Robert Dewar  <dewar@adacore.com>
3946         * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
3947         * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
3948         * lib-load.adb: Initialize No_Elab_Code_All field.
3949         * lib-writ.adb: Initialize No_Elab_Code_All.
3950         * lib.ads, lib.adb: New field No_Elab_Code_All.
3951         * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
3952         * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
3953         longer exists.
3954         * sem_ch10.adb (Analyze_Context): Processing for
3955         No_Elaboration_Code_All removed.
3956         (Generate_Parent_References): Moved to Sem_Util.
3957         * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
3958         * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
3959         Sem_Ch10.
3960         * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
3961         * targparm.adb: Minor comment updates Add comments on ignoring
3962         pragma No_Elaboration_Code_All.
3964 2014-08-01  Nicolas Roche  <roche@adacore.com>
3966         * adaint.c (__gnat_set_close_on_exec): Ensure that
3967         we can unset "close_on_exec" flag.
3969 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3971         * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
3972         the parameter specs of the wrapper program for a primitive operation
3973         of a synchronized type that implements an interface, copy the
3974         null_exclusion indicator as well.
3976 2014-08-01  Robert Dewar  <dewar@adacore.com>
3978         * sem_eval.ads: Minor reformatting.
3980 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3982         * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
3983         to go down the chain of private derivations.
3984         * freeze.adb (Freeze_Entity): Fix typo in comment.
3986 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3988         * sem_ch3.adb (Access_Type_Declaration): If designated type is
3989         a limited view, create a master entity (as is already done for
3990         class-wide types) in case the full view designates a type that
3991         contains tasks.
3992         * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
3993         and the designated type is a limited view, use the non-limited
3994         view if available.
3996 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3998         * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
3999         (DECL_FUNCTION_STUB): Likewise.
4000         (SET_DECL_FUNCTION_STUB): Likewise.
4001         (DECL_PARM_ALT_TYPE): Likewise.
4002         (SET_DECL_PARM_ALT_TYPE): Likewise.
4003         (TYPE_VAX_FLOATING_POINT_P): Delete.
4004         (TYPE_DIGITS_VALUE): Likewise.
4005         (SET_TYPE_DIGITS_VALUE): Likewise.
4006         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
4007         (malloc32_decl): Delete.
4008         (build_vms_descriptor): Likewise.
4009         (build_vms_descriptor32): Likewise.
4010         (fill_vms_descriptor): Likewise.
4011         (convert_vms_descriptor): Likewise.
4012         (TARGET_ABI_OPEN_VMS): Likewise.
4013         (TARGET_MALLOC64): Likewise.
4014         * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
4015         (gnat_to_gnu_entity): Call it to add the original type as a parallel
4016         type to the implementation type of a packed array type.
4017         <E_Procedure>: Remove now obsolete kludge.
4018         <E_Exception>: Delete obsolete comment.
4019         <object>: Small tweak.
4020         <E_Subprogram_Type>: Remove support for stub subprograms, as well as
4021         for the descriptor passing mechanism.
4022         (gnat_to_gnu_param): Likewise.
4023         * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
4024         (gnat_print_type): Adjust.
4025         * gcc-interface/trans.c (gigi): Remove obsolete initializations.
4026         (vms_builtin_establish_handler_decl): Delete.
4027         (gnat_vms_condition_handler_decl): Likewise.
4028         (establish_gnat_vms_condition_handler): Likewise.
4029         (build_function_stub): Likewise.
4030         (Subprogram_Body_to_gnu): Do not call above functions.
4031         (Call_to_gnu): Remove support for the descriptor passing mechanism.
4032         * gcc-interface/utils.c (make_descriptor_field): Delete.
4033         (build_vms_descriptor32): Likewise.
4034         (build_vms_descriptor): Likewise.
4035         (fill_vms_descriptor): Likewise.
4036         (convert_vms_descriptor64): Likewise.
4037         (convert_vms_descriptor32): Likewise.
4038         (convert_vms_descriptor): Likewise.
4039         * gcc-interface/utils.c (unchecked_convert): Likewise.
4040         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
4042 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4044         * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
4045         type and get_unpadded_type for the longest FP type.
4046         (Attribute_to_gnu) <Machine>: Compare the precision of the types.
4047         (convert_with_check): Adjust formatting and remove FIXME.
4049 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4051         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4052         Do not convert the RM bounds to the base type.
4053         (E_Floating_Point_Subtype): Likewise.
4054         (E_Array_Subtype): Convert the bounds to the base type.
4055         * gcc-interface/trans.c (get_type_length): New function.
4056         (Attribute_to_gnu) <Range_Length>: Call it.
4057         <Length>: Likewise.
4058         (Loop_Statement_to_gnu): Convert the bounds to the base type.
4059         (gnat_to_gnu) <N_In>: Likewise.
4060         * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
4061         bounds to the base type.
4062         (create_range_type): Likewise.
4063         (convert): Convert the bounds to the base type for biased types.
4064         * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
4065         base type.
4067 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4069         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
4070         incorrect implicit type derivation.
4071         * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
4072         to the base type.
4074 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4076         * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
4077         prefix of attribute Loop_Entry.
4078         * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
4079         Loop_Variant with respect to an enclosing loop (if any).
4080         (Contains_Loop_Entry): Update the parameter profile and all
4081         calls to this routine.
4082         * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
4083         for the corresponding body before determining the nature of the
4084         ultimate alias's declarative node.
4086 2014-08-01  Robert Dewar  <dewar@adacore.com>
4088         * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
4090 2014-08-01  Robert Dewar  <dewar@adacore.com>
4092         * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
4093         constraint error node since it is a list member.
4095 2014-08-01  Robert Dewar  <dewar@adacore.com>
4097         * sem_warn.adb: Minor reformatting.
4099 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4101         * einfo.adb (Underlying_Type): Return the underlying full view
4102         of a private type if present.
4103         * freeze.adb (Freeze_Entity):
4104         Build a single freeze node for partial, full and underlying full
4105         views, if any.
4106         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
4107         missing guard before the access to the Underlying_Full_View.
4108         * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
4109         full view if present.
4110         * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
4112 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4114         * sem_res.adb (Resolve_Entry_Call): When an entry has
4115         preconditions, the entry call is wrapped in a procedure call
4116         that incorporates the precondition checks. To prevent a double
4117         expansion, with possible duplication of extra formals, that
4118         procedure call must only be pre-analyzed and resolved. Expansion
4119         takes place upon return to the caller Resolve_Call.
4121 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4123         * sem_res.adb (Resolve_Call): Do not perform
4124         GNATprove-specific inlining while within a generic.
4126 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4128         * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
4129         case expression with incompatible alternatives, when the first
4130         alternative is overloaded.
4132 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4134         * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
4135         to create the name of the parameterless call, rather than
4136         New_Copy, to preserve the tree structure when the name is a
4137         complex expression, e.g. a selected component that denotes a
4138         protected operation, whose prefix is itself a selected component.
4140 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4142         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
4143         Unit_Declaration_Node to retrieve body when inlining, to handle
4144         properly subprogram child units.
4146 2014-08-01  Robert Dewar  <dewar@adacore.com>
4148         * sem_attr.adb: Minor reformatting.
4150 2014-08-01  Vincent Celier  <celier@adacore.com>
4152         * debug.adb: Minor documentation addition for -dn switch.
4154 2014-08-01  Robert Dewar  <dewar@adacore.com>
4156         * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
4157         sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
4158         documentation of Is_Static_Expression vs Is_OK_Static_Expression.
4159         In several places, use the Is_OK version as suggested by the spec.
4161 2014-08-01  Vincent Celier  <celier@adacore.com>
4163         * gnatcmd.adb: Revert last change which was not correct.
4165 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4167         * freeze.adb (Find_Constant): Ensure that the constant being
4168         inspected is still an object declaration (i.e. not a renaming).
4170 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4172         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
4173         An attribute_reference to Loop_Entry denotes an iterator
4174         specification: its prefix is an object, as is the case for 'Old.
4175         b) If the domain of iteration is an expression whose type has
4176         the Iterable aspect defined, this is an iterator specification.
4178 2014-08-01  Robert Dewar  <dewar@adacore.com>
4180         * gnatcmd.adb: Minor reformatting.
4182 2014-08-01  Robert Dewar  <dewar@adacore.com>
4184         * atree.ads (Info_Messages): New counter.
4185         * err_vars.ads: Minor comment update.
4186         * errout.adb (Delete_Warning_And_Continuations): Deal
4187         with new Info_Messages counter.
4188         (Error_Msg_Internal): ditto.
4189         (Delete_Warning): ditto.
4190         (Initialize): ditto.
4191         (Write_Error_Summary): ditto.
4192         (Output_Messages): ditto.
4193         (To_Be_Removed): ditto.
4194         * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
4195         (Compilation_Errors): ditto.
4196         * errutil.adb (Error_Msg): Deal with Info_Messages counter.
4197         (Finalize): ditto.
4198         (Initialize): ditto.
4199         * sem_prag.adb (Analyze_Pragma): Minor comment addition.
4200         * gnat_ugn.texi: Document that -gnatwe does not affect info
4201         messages.
4203 2014-08-01  Robert Dewar  <dewar@adacore.com>
4205         * debug.adb: Document debug switch -gnatd.Z.
4206         * sem.adb (Semantics): Force expansion on in no or configurable
4207         run time mode.
4209 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4211         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
4212         unchecked conversion denotes an iterator specification. Such a
4213         conversion will be inserted in the context of an inlined call
4214         when needed, and its argument is always an object.
4216 2014-08-01  Robert Dewar  <dewar@adacore.com>
4218         * make.adb, makeutl.ads: Minor reformatting.
4219         * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
4220         Back_End_Inlining.
4222 2014-08-01  Tristan Gingold  <gingold@adacore.com>
4224         * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
4226 2014-08-01  Javier Miranda  <miranda@adacore.com>
4228         * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
4229         -gnatd.z.
4230         * debug.adb: Updating documentation.
4231         * exp_ch6.adb (Expand_Call): Remove assertion.
4233 2014-08-01  Robert Dewar  <dewar@adacore.com>
4235         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
4236         sem_res.adb: Minor reformatting.
4238 2014-08-01  Vincent Celier  <celier@adacore.com>
4240         * make.adb (Initialize): Set Keep_Temporary_Files to True when
4241         -dn is specified.
4242         * makeusg.adb: Add line for new switch --keep-temp-files.
4243         * makeutl.ads (Keep_Temp_Files_Option): New constant String.
4244         * opt.ads (Keep_Temporary_Files): Document that it is also used
4245         by gnatmake and gprbuild.
4246         * switch-m.adb: Recognize new switch --keep-temp-files.
4248 2014-08-01  Tristan Gingold  <gingold@adacore.com>
4250         * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
4251         * exp_ch9.adb (Make_Task_Create_Call): ... here.
4253 2014-08-01  Vincent Celier  <celier@adacore.com>
4255         * gnat1drv.adb: Do not try to get the target parameters when
4256         invoked with -gnats.
4258 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4260         * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
4261         declaration subject to No_Initialization.
4263 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4265         * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
4266         is a subtype with dynamic predicates, or a non-static subtype
4267         with predicates.
4268         * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
4269         expression if subtype has a dynamic predicate.
4270         (Constrain_Index): Reject subtype indication if subtype mark
4271         has predicates.
4272         (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
4273         (Make_Index): If index is a subtype indication, itype inhereits
4274         predicate flags for subsequent testing.
4275         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
4276         procedure Check_Predicate_Use, to reject illegal uses of domains
4277         of iteration that have dynamic predicates.
4278         * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
4279         indication to which a predicate applies.
4280         * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
4281         prevent cascaded errors when subtype is invalid.
4283 2014-08-01  Robert Dewar  <dewar@adacore.com>
4285         * sem_ch10.adb: Minor reformatting.
4287 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4289         * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
4290         because either type may be a subtype of the other.
4292 2014-08-01  Vincent Celier  <celier@adacore.com>
4294         * makeusg.adb: Add documentation for debug switch -dn.
4296 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4298         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
4299         expression with standard operator and type, for pretty-printing
4300         use, when in ASIS_Mode. When generating code dimensional analysis
4301         is not involved and dimension expressions are handled statically,
4302         and other operators are resolved in the usual way.
4304 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4306         * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
4307         Parent_Subtype in ASIS mode, leads to several failures.
4308         * sem_ch4.adb (Analyze_Selected_Component): In an instance,
4309         if the prefix is a type extension, check whether component is
4310         declared in the parent type, possibly in a parent unit. Needed
4311         in ASIS mode when Parent_Subtype is not set.
4313 2014-08-01  Robert Dewar  <dewar@adacore.com>
4315         * sem_prag.adb: Minor reformatting.
4316         * s-regpat.adb: Minor reformatting.
4317         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
4318         Treat_As_Volatile on constants.
4320 2014-08-01  Tristan Gingold  <gingold@adacore.com>
4322         * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
4324 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4326         * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
4327         warning on a with_clause created for the renaming of a parent
4328         unit in an explicit with_clause.
4330 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4332         * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
4333         Set Is_Imported flag at once, to simplify subsequent legality
4334         checks. Reject the aspect on an object whose declaration has an
4335         explicit initial value.
4336         * sem_prag.adb (Process_Import_Or_Interface): Use original node
4337         to check legality of an initial value for an imported entity.
4338         Set Is_Imported flag in case of error to prevent cascaded errors.
4339         Do not set the Is_Imported flag if the pragma comes from an
4340         aspect, because it is already done when analyzing the aspect.
4342 2014-08-01  Emmanuel Briot  <briot@adacore.com>
4344         * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
4346 2014-08-01  Robert Dewar  <dewar@adacore.com>
4348         * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
4349         identifier name.
4351 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4353         * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
4354         checks when the related variable comes from source.
4355         * sem_res.adb (Resolve_Actuals): Enable the volatility checks
4356         when the related actual parameter comes from source. Update comment.
4357         * freeze.adb (Freeze_Record_Type): Do not freeze the designated
4358         type of an array of pointers when the designated type is
4359         class-wide and its root type is the record being currently frozen.
4361 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4363         * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
4364         of renaming declaration created for domain of iteration.
4365         * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
4366         for error messages on aggregates whose index subtypes have
4367         predicates. The new placement avoids posting messages on previous
4368         subtype declarations rather than on the aggregate itself.
4369         * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
4370         Add_Dispatching_Operation, to handle properly the overriding of
4371         the predefined operations on controlled types, when the partial
4372         view of a type is not visibly controlled.
4374 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
4376         * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
4377         appendix.
4379 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4381         * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
4382         assertion check as the attribute is defined for all entities.
4383         (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
4384         check as the attribute is defined for all entities.
4385         * einfo.ads Update the documentation of attribute
4386         Is_Hidden_Non_Overridden_Subprogram.
4387         * sem_ch7.adb (Install_Package_Entity): No need to check the
4388         entity kind of the Id.
4389         * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
4390         usage. Ensure that the homographs are of the same entity kind
4391         and not fully conformant.
4392         (Hide_Non_Overridden_Subprograms): Update the comment on usage.
4394 2014-08-01  Robert Dewar  <dewar@adacore.com>
4396         * inline.adb: Minor code reorganization.
4397         * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
4399 2014-08-01  Robert Dewar  <dewar@adacore.com>
4401         * inline.adb, s-os_lib.ads: Minor reformatting.
4403 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4405         * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
4406         * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
4407         hooks.
4409 2014-08-01  Yannick Moy  <moy@adacore.com>
4411         * inline.adb (Cannot_Inline): Issue info message instead of
4412         warning for subprograms not inlined in GNATprove mode.
4413         * sem_res.adb (Resolve_Call): Take body into account for deciding
4414         whether subprogram can be inlined in GNATprove mode or not.
4416 2014-08-01  Claire Dross  <dross@adacore.com>
4418         * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
4419         of Get_First_Parent_With_External_Axiomatization_For_Entity for
4420         shorter.
4421         * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
4422         for parameters of packages with external axiomatization.
4424 2014-08-01  Robert Dewar  <dewar@adacore.com>
4426         * sem_res.adb: Minor comment addition.
4428 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4430         * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
4431         s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
4432         no longer used.
4433         * s-os_lib.ads: Minor reformatting.
4435 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4437         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
4438         completely previous code since only GCC back-ends are prepared
4439         to handle e.g. 'Machine attribute.
4440         * targparm.adb, targparm.ads: Remove remaining refs and
4441         handling of OpenVMS_On_Target, VAX_Float_On_Target and
4442         RTX_RTSS_Kernel_Module_On_Target.
4443         * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
4444         no longer used.
4446 2014-08-01  Robert Dewar  <dewar@adacore.com>
4448         * exp_dist.adb, exp_attr.adb: Minor reformatting.
4449         * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
4450         a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
4451         sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
4452         g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
4453         improper use of shall.
4455 2014-08-01  Robert Dewar  <dewar@adacore.com>
4457         * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
4458         exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
4459         exp_ch3.adb: Minor reformatting & code reorganization.
4461 2014-08-01  Robert Dewar  <dewar@adacore.com>
4463         * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
4464         * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
4465         s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4466         s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
4467         s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
4468         code.
4469         * gcc-interface/decl.c, gcc-interface/Makefile.in,
4470         gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
4472 2014-08-01  Pascal Obry  <obry@adacore.com>
4474         * s-os_lib.ads: Rename File_Size to Large_File_Size.
4476 2014-08-01  Robert Dewar  <dewar@adacore.com>
4478         * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4479         a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
4480         a-numaux-libc-x86.ads: Fix bad package header comments.
4481         * elists.ads, elists.adb (Append_New_Elmt): New procedure.
4482         * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
4483         checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
4484         sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
4485         targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
4486         stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
4487         s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
4488         s-os_lib.adb: Remove VMS-specific code.
4490 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4492         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
4493         previous state in CodePeer_Mode.
4495 2014-08-01  Robert Dewar  <dewar@adacore.com>
4497         * hostparm.ads: Put back definition of OpenVMS as False to aid
4498         the transition process.
4499         * sem_ch7.adb: Minor reformatting.
4500         * prj-env.adb: Minor code fix.
4501         * gnat_rm.texi: Complete previous change.
4502         * sem_ch3.adb: Minor reformatting.
4503         * sem_ch6.adb: Minor reformatting.
4504         * sem_elab.adb: Minor reformatting.
4505         * exp_strm.adb: Complete previous change.
4507 2014-08-01  Vincent Celier  <celier@adacore.com>
4509         * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
4510         warning when a constant is unreferenced and its type has pragma
4511         Unreferenced_Objects.
4513 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4515         * einfo.adb: Flag2 is now known as
4516         Is_Hidden_Non_Overridden_Subprogram.
4517         (Is_Hidden_Non_Overridden_Subprogram): New routine.
4518         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
4519         (Write_Entity_Fields): Output Flag2.
4520         * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
4521         along with occurrences in entities.
4522         (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
4523         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
4524         and pragma Inline.
4525         * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
4526         declared non-overriden homographs into visibility.
4527         * sem_ch13.adb (Freeze_Entity_Checks): Hide all
4528         implicitly declared non-overriden homographs.
4529         (Hide_Non_Overridden_Subprograms): New routine.
4531 2014-08-01  Robert Dewar  <dewar@adacore.com>
4533         * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
4534         VMS-specific code.
4535         * prj-conf.adb: Minor reformatting.
4536         * xr_tabls.adb (Read_File): Restore code which was enabled on
4537         non VMS platforms before.
4538         * prj-env.adb (Initialize_Default_Project_Path): Ditto.
4539         * sem_ch5.adb: Minor reformatting.
4540         * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
4541         sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
4542         Remove VMS-specific code.
4544 2014-08-01  Vincent Celier  <celier@adacore.com>
4546         * make.adb (Await_Compile): Remove loop that was only needed
4547         for VMS.
4549 2014-08-01  Robert Dewar  <dewar@adacore.com>
4551         * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
4552         a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
4553         a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
4554         einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
4555         exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
4556         fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
4557         g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
4558         g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
4559         krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
4560         mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
4561         osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
4562         prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
4563         rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
4564         s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
4565         s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
4566         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
4567         s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
4568         s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
4569         sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
4570         sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
4571         sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
4572         treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
4573         specific code and comments.
4575 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4577         * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
4578         Check_Reverse_Iteration, to verify the legality of the Reverse
4579         indicator on various container types, and to detect illegal
4580         reverse iterations on containers that only supoort forward
4581         iteration.
4583 2014-08-01  Vincent Celier  <celier@adacore.com>
4585         * gnatcmd.adb: Remove the VMS specific stuff.  Integrate in
4586         procedure GNATCmd the relevant declarations from packages VMS_Cmds
4587         and VMS_Conv.
4588         * gnatcmd.ads: Update comments to remove any trace of VMS
4590 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4592         * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
4593         defaulted actual that is an operator, before building wrapper
4594         for it in GNATprove mode. Restrict construction of wrapper to
4595         actuals that are operators.
4597 2014-08-01  Vincent Celier  <celier@adacore.com>
4599         * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
4600         specific packages no longer needed.
4602 2014-08-01  Pascal Obry  <obry@adacore.com>
4604         * s-os_lib.ads (System.CRTL): Move with clause to body.
4605         (File_Size): New type.
4606         (File_Length64): Use it.
4607         (File_Length): Restore previous spec returning a Long_Integer.
4608         * s-os_lib.adb (System.CRTL): Move with clause here.
4610 2014-08-01  Vincent Celier  <celier@adacore.com>
4612         * mlib-prj.adb: Update comments to remove any mention of VMS.
4614 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4616         * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
4617         xgnatugn.adb and ug_words.
4619 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4621         * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
4622         expansion can be avoid for Machine, Model and Rounding.
4623         (Is_Inline_Floating_Point_Attribute): Return true for Machine
4624         & Model, as well as Rounding if wrapped in a conversion to an
4625         integer type.
4626         * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
4627         * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
4628         * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
4629         * gcc-interface/misc.c (enumerate_modes): Compute it.
4630         * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
4631         (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
4632         Machine and Model.
4633         (Attribute_to_gnu) <Attr_Model>: New case.
4634         <Attr_Machine>): Likewise.
4635         (convert_with_check): Test
4636         fp_arith_may_widen variable.
4638 2014-08-01  Pascal Obry  <obry@adacore.com>
4640         * adaint.h (GNAT_FOPEN): New definition for Windows.
4641         (GNAT_OPEN): Likewise.
4642         (GNAT_STAT): Likewise.
4643         (GNAT_FSTAT): Likewise.
4644         (GNAT_LSTAT): Likewise.
4645         (GNAT_STRUCT_STAT): Likewise.
4646         * adaint.c (__gnat_stat): Fix computation of file size for
4647         Windows.
4649 2014-08-01  Vincent Celier  <celier@adacore.com>
4651         * Makefile.rtl: Minor comment update.
4653 2014-08-01  Vincent Celier  <celier@adacore.com>
4655         * Make-generated.in: Remove dependencies for vms-help.
4657 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
4659         * makeutl.ads, opt.ads: Minor grammar fixes.
4660         * makeutl.adb: Minor code reorganization.
4662 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4664         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
4665         gnatsym.adb: Remove gnatsym (VMS only tool).
4667 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
4669         * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
4670         conditionalization from gnat_ugn.texi and projects.texi, and updated
4671         (considerably simplified) xgnatugn.adb, to be removed soon.
4673 2014-08-01  Vincent Celier  <celier@adacore.com>
4675         * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
4676         * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
4677         instead of Debug.Debug_Flag_S.
4678         * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
4679         No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
4680         error messages.
4681         * makeutl.ads (No_Exit_Message_Option): New constant string
4682         for switch --no-exit-message.
4683         * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
4684         * switch-m.adb (Scan_Make_Switches): Recognize new switch
4685         --no-exit-message.
4687 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4689         * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
4690         * gcc-interface/Make-lang.in: Remove exp_vfpt.o
4692 2014-08-01  Javier Miranda  <miranda@adacore.com>
4694         * inline.ads (Inlined_Calls, Backend_Calls,
4695         Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
4696         moved to inline.adb (Cannot_Inline): Update documentation.
4697         (Check_And_Build_Body_To_Inline): Renamed.
4698         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
4699         * inline.adb (Check_Inlining_Restrictions): New local variable.
4700         (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
4701         Backend_Not_Inlined_Subps): Declarations moved here
4702         from inline.ads (Number_Of_Statements): Removed.
4703         (Remove_Pragmas): Avoid duplicated version of this subprogram.
4704         (Build_Body_To_Inline): Code cleanup.
4705         (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
4706         (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
4707         (Check_Body_To_Inline): Removed.
4708         (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
4709         (Has_Excluded_Declaration): No action if not
4710         Check_Inlining_Restrictions.
4711         (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
4712         (Initialize): Initialize the lists of inlined calls and subprograms.
4713         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
4714         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
4715         to Check_And_Build_Body_To_Inline since it has been renamed as
4716         Check_And_Split_Unconstrained_Function
4717         * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
4718         package inline.
4719         * gnat1drv.adb Update call to Inline.List_Inlining_Info.
4721 2014-08-01  Vincent Celier  <celier@adacore.com>
4723         * debug.adb: Add documentation for new debug switch -ds.
4724         * make.adb (List_Bad_Compilations): Do not issue any message
4725         when switch -ds is specified.
4726         * makeutl.adb (Fail_Program): Do not issue any message when
4727         -ds is specified.
4728         (Finish_Program): Ditto.
4730 2014-08-01  Robert Dewar  <dewar@adacore.com>
4732         * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
4733         s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
4734         s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
4735         indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
4736         indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
4737         s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
4738         s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
4739         s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
4740         s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
4741         s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
4742         s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
4743         s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
4744         g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
4745         s-tratas.ads: Minor fix to copyright notices.
4747 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4749         * sinfo.ads: Remove long obsolete comment.
4750 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4752         * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
4753         * sem_ch3.adb: Minor reformatting.
4755 2014-08-01  Pascal Obry  <obry@adacore.com>
4757         * cstreams.c: Only enable large file support on know supported
4758         platforms. Add missing defines/includes.
4760 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4762         * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
4763         No_Dynamic_Predicate_On_Actual, to enforce the generic contract
4764         on generic units that contain constructs that forbid subtypes
4765         with predicates.
4766         * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
4767         Inherit flags indicating the presence of predicates in subtype
4768         declarations with and without constraints.
4769         (Inherit_Predicate_Flags): Utility for the above.
4770         * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
4771         indicate that the actual cannot have predicates, and preserve
4772         warning. In an instance, report error if actual has predicates
4773         and the construct appears in a package declaration.
4774         * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
4775         for an actual with predicates, if the corresponding formal
4776         carries No_Predicate_On_Actual or (in the case of a loop)
4777         No_Dynamic_Predicate_On_Actual.
4778         * sem_ch13.adb (Build_Predicate_Functions); Do not build a
4779         Static_Predicate function if the type is non-static (in the
4780         presence of previous errors),
4781         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
4782         No_Dynamic_Predicate_On_Actual in a generic context, to enforce
4783         generic contract on actuals that cannot have predicates.
4785 2014-08-01  Pascal Obry  <obry@adacore.com>
4787         * a-direct.adb (C_Size): Returns an int64.
4788         * osint.adb (System.CRTL): New with clause.
4789         (File_Length.Internal): Returns an int64.
4790         * s-os_lib.ads (File_Length): Returns an int64.
4792 2014-08-01  Robert Dewar  <dewar@adacore.com>
4794         * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
4795         mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
4796         osint.adb, krunch.adb: Minor reformatting.
4798 2014-08-01  Robert Dewar  <dewar@adacore.com>
4800         * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
4801         sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
4802         sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
4803         Remove VMS-specific code.
4804         * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
4806 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4808         * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
4809         gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
4810         make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
4811         mlib.ads, tempdir.adb: Remove VMS handling.
4813 2014-08-01  Pascal Obry  <obry@adacore.com>
4815         * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
4816         (__gnat_named_file_length): Likewise.
4817         (__gnat_file_length_attr): Likewise.
4818         * a-direct.adb (C_Size): Use size_t as returned type.
4819         * osint.adb (File_Length): Adjust spec for Internal routine
4820         (returns size_t).
4821         * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
4822         (System.CRTL): With claused moved to spec.
4823         * s-os_lib.ads (System.CRTL): With clause moved to here.
4825 2014-08-01  Pascal Obry  <obry@adacore.com>
4827         * adaint.h, adaint.c (__gnat_open): Added.
4828         * s-crtl.ads (open): Import __gnat_open for large file support.
4830 2014-08-01  Robert Dewar  <dewar@adacore.com>
4832         * sem_case.adb (Dup_Choice): Improve message for integer constants.
4834 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4836         * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
4838 2014-08-01  Pascal Obry  <obry@adacore.com>
4840         * adaint.h (GNAT_OPEN): Defines as open64 where supported.
4841         * adaint.c (GNAT_OPEN): Uses new macro where needed.
4843 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4845         * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
4846         extracted from...
4847         (maybe_pad_type): ...here.  Call it to canonicalize the pad type.
4848         * gcc-interface/gigi.h: Update comment.
4850 2014-07-31  Javier Miranda  <miranda@adacore.com>
4852         * debug.adb Remove documentation of -gnatd.k (no longer needed).
4853         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
4854         * inline.ads (Backend_Inlined_Subps): New
4855         Elist.  (Backend_Not_Inlined_Subps): New Elist.
4856         (Has_Excluded_Declaration): Declaration previously located in
4857         * inline.adb (Has_Excluded_Statement): Declaration previously
4858         located in inline.adb
4859         * inline.adb (Has_Single_Return): Moved out of
4860         Build_Body_To_Inline to avoid having duplicated code.
4861         (Number_Of_Statements): New subprogram.
4862         (Register_Backend_Inlined_Subprogram): New subprogram.
4863         (Register_Backend_Not_Inlined_Subprogram): New subprogram.
4864         (Add_Inlined_Subprogram): Register backend inlined subprograms and
4865         also register subprograms that cannot be inlined by the backend.
4866         (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
4867         to avoid having duplicated code.  Replace occurrences of
4868         Debug_Flag_Dot_K by Back_End_Inlining.
4869         * sem_res.adb (Resolve_Call): Code cleanup.
4870         * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
4871         occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
4872         (List_Inlining_Info): Add listing of subprograms passed to the
4873         backend and listing of subprograms that cannot be inlined by
4874         the backend.
4875         * sem_ch12.adb, sem_ch3.adb Replace occurrences of
4876         Debug_Flag_Dot_K by Back_End_Inlining.
4878 2014-07-31  Robert Dewar  <dewar@adacore.com>
4880         * nlists.ads: Minor code fix (remove unwise Inline for
4881         List_Length).
4883 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4885         * einfo.adb: Remove VMS specific code.
4886         * exp_attr.adb: Remove VAX specific code.
4887         * set_targ.adb: Remove handling of VAX_Float.
4888         * sem_vfpt.adb: Remove references to Vax_Native.
4889         * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
4891 2014-07-31  Robert Dewar  <dewar@adacore.com>
4893         * sem_ch4.adb: Minor reformatting.
4895 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4897         * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
4898         to VMS. Misc clean ups.
4899         * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
4901 2014-07-31  Robert Dewar  <dewar@adacore.com>
4903         * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
4904         exp_prag.adb, frontend.adb, interfac.ads,
4905         par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
4906         s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
4907         sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
4908         snames.ads-tmpl: Remove obsolete VMS-specific code.
4910 2014-07-31  Robert Dewar  <dewar@adacore.com>
4912         * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
4914 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4916         * a-intnam-linux.ads: Minor: update obsolete comments.
4917         * s-taasde.adb: Minor: fix comment header.
4919 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4921         * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
4922         s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
4923         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
4924         g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
4925         s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
4926         s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
4927         s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
4928         a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
4929         symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
4930         symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4931         s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
4932         symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
4933         s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
4934         s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
4935         s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
4936         a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
4937         * namet.h (Is_Non_Ada_Error): Remove.
4939 2014-07-31  Robert Dewar  <dewar@adacore.com>
4941         * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
4942         reformatting.
4944 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4946         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
4947         which demonstrates the expansion of while loops subject to
4948         attribute 'Loop_Entry. The condition of a while loop along with
4949         related condition actions is now wrapped in a function.  Instead
4950         of repeating the condition, the expansion now calls the function.
4952 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4954         * sem_case.adb (Check_Against_Predicate): Correct off-by-one
4955         error when reporting of missing values in a case statement for
4956         a type with a static predicate.
4957         (Check_Choices): Reject a choice given by a subtype to which a
4958         Dynamic_Predicate applies.
4959         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
4960         Has_Dynamic_Predicate_Aspect flag from parent.
4962 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4964         * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
4965         cannot apply to a subtype of an incomplete type.
4966         (Is_Static_Choice): Treat an Others_Clause as static. The
4967         staticness of the expression and of the range are checked
4968         elsewhere.
4970 2014-07-31  Pascal Obry  <obry@adacore.com>
4972         * adaint.h (__gnat_ftell64): Added.
4973         (__gnat_fseek64): Added.
4974         (__int64): Added.
4975         * cstreams.c (__int64): Removed.
4977 2014-07-31  Pascal Obry  <obry@adacore.com>
4979         * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
4980         * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
4981         (ftell64): Always returns a 64bit value.
4982         * cstreams.c (int64): New definition.
4983         (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
4984         (__gnat_ftell64): Always returns a 64bit value. The implemenation now
4985         uses ftello() on UNIX.
4986         (__gnat_fseek64): Offset is always a 64bit value. The
4987         implementation now uses fseeko() on UNIX.
4988         * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
4989         always use fseek64 to set the offset.
4990         (Size): Simplify code, always use fseek64/ftell64.
4991         * s-direio.ads (Count): Now an int64.
4992         * g-socket.ads (Vector_Element): Adjust definition for Length
4993         to be a size_t. This matches the C definition and avoid using
4994         a 64bit integer on 32bit platforms now that Count is always 64bit.
4995         * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
4996         (C_Recvmsg): Change some conversion to account for change in
4997         Vector_Element.
4998         (C_Sendmsg): Likewise.
5000 2014-07-31  Robert Dewar  <dewar@adacore.com>
5002         * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
5003         * debug.adb: Remove documentation of -gnatdm flag.
5004         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
5005         -gnatdm flag.
5007 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
5009         * lib-writ.adb (Write_Unit_Information): Fix case where U =
5010         No_Unit.
5012 2014-07-31  Claire Dross  <dross@adacore.com>
5014         * exp_util.adb, exp_util.ads
5015         (Get_First_Parent_With_External_Axiomatization_For_Entity):
5016         New routine to find the first parent of an entity with
5017         a pragma Annotate (GNATprove, External_Axiomatization).
5018         (Has_Annotate_Pragma_For_External_Axiomatization): New function
5019         to check if a package has a pragma Annotate (GNATprove,
5020         External_Axiomatization).
5021         * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
5022         flag on the entity for the declaration created for a formal
5023         subprogram in an instance. This is a renaming declaration,
5024         or in GNATprove_Mode the declaration of an expression function
5025         that captures the axiomatization of the actual.
5026         * sem_ch6.adb (Analyze_Expression_Function): For a
5027         Generic_Actual_Subprogram, place body immediately after the
5028         declaration because it may be used in a subsequent declaration
5029         in the instance.
5030         * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
5031         the actual is a function, not an operator. Handle functions with
5032         one and two parameters and binary and unary operators.
5034 2014-07-31  Pascal Obry  <obry@adacore.com>
5036         * cstreams.c (__gnat_is_regular_file_fd): Removed.
5037         * adaint.c (__gnat_is_regular_file_fd): Added.
5039 2014-07-31  Robert Dewar  <dewar@adacore.com>
5041         * exp_strm.adb: Minor reformatting.
5043 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5045         * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
5046         Analyze_Associations, to create a wrapper around operators that
5047         are actuals to formal subprograms. This is done in GNATProve
5048         mode in order to propagate the contracts of the operators to
5049         the body of the instance.
5051 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5053         * sem_attr.adb (Analyze_Attribute, case 'Old):  The reference is
5054         legal if within an aspect specification for a generic subprogram.
5056 2014-07-31  Javier Miranda  <miranda@adacore.com>
5058         * gnat1drv.adb (Back_End_Inlining): Set to false if
5059         Suppress_All_Inlining is set.
5060         * debug.adb: Adding documentation for -gnatd.z.
5061         * inline.adb (Add_Inlined_Body): Extend the -gnatn2
5062         processing to -gnatn1 for calls to Inline_Always routines.
5063         (Add_Inlined_Subprogram): Remove previous patch.
5065 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5067         * sem_ch13.adb (Check_One_Function): Apply properly the static
5068         semantic rules for indexing aspects and the functions they denote.
5070 2014-07-31  Javier Miranda  <miranda@adacore.com>
5072         * debug.adb: Complete documentation of -gnatd.z.
5074 2014-07-31  Bob Duff  <duff@adacore.com>
5076         * gnat_ugn.texi: Minor doc fixes.
5078 2014-07-31  Robert Dewar  <dewar@adacore.com>
5080         * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
5081         index value.
5083 2014-07-31  Tristan Gingold  <gingold@adacore.com>
5085         * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
5086         (Packed_Bytes1): Make component aliased.
5088 2014-07-31  Robert Dewar  <dewar@adacore.com>
5090         * s-unstyp.ads, s-fileio.adb: Minor reformatting.
5092 2014-07-31  Robert Dewar  <dewar@adacore.com>
5094         * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
5095         reformatting.
5097 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
5099         * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
5100         on array references here, now done more selectively in trans.c.
5102 2014-07-31  Doug Rupp  <rupp@adacore.com>
5104         * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
5106 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5108         * sem_util.adb (Is_Effectively_Volatile): New routine.
5110 2014-07-31  Fedor Rybin  <frybin@adacore.com>
5112         * gnat_ugn.texi: Document --test-duration option for gnattest.
5114 2014-07-31  Javier Miranda  <miranda@adacore.com>
5115             Eric Botcazou  <ebotcazou@adacore.com>
5117         * opt.ads (Back_End_Inlining): New variable which controls
5118         activation of inlining by back-end expansion.
5119         * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
5120         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
5121         the body to be inlined by the frontend if Back_End_Inlining
5122         is enabled.
5123         * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
5124         (Expand_Call): If backend inlining is enabled let the backend to
5125         handle inlined subprograms.
5126         * inline.ads (Register_Backend_Call): Moved here from exp_ch6
5127         * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
5128         (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
5129         (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
5130         enabled.
5131         * debug.adb Document -gnatd.z
5132         * fe.h Import Back_End_Inlining variable.
5133         * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
5134         enabled then declare attribute "always inline"
5135         * gcc-interface/decl.c, gcc-interface/trans.c,
5136         gcc-interface/gigi.h: Add handling of Inline_Always pragma.
5138 2014-07-31  Robert Dewar  <dewar@adacore.com>
5140         * a-ngelfu.ads: Minor comment fix.
5142 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5144         * freeze.adb (Freeze_Record_Type): Replace all calls to
5145         Is_SPARK_Volatile with Is_Effectively_Volatile and update
5146         related comments.
5147         * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
5148         Replace all calls to Is_SPARK_Volatile with
5149         Is_Effectively_Volatile and update related comments.
5150         * sem_ch5.adb (Analyze_Iterator_Specification,
5151         Analyze_Loop_Parameter_Specification): Replace all calls to
5152         Is_SPARK_Volatile with Is_Effectively_Volatile and update
5153         related comments.
5154         * sem_ch6.adb (Process_Formals): Replace all calls to
5155         Is_SPARK_Volatile with Is_Effectively_Volatile and update
5156         related comments.
5157         * sem_ch12.adb (Instantiate_Object): Replace the call to
5158         Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
5159         and update related comment.
5160         * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
5161         Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
5162         with Is_Effectively_Volatile and update related comments.
5163         * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
5164         all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
5165         update related comments.
5166         * sem_util.adb (Has_Enabled_Property,
5167         Variable_Has_Enabled_Property): Replace all calls
5168         to Is_SPARK_Volatile with Is_Effectively_Volatile and
5169         update related comments.
5170         (Is_Effectively_Volatile): New routine.
5171         (Is_Effectively_Volatile_Object): New routine.
5172         (Is_SPARK_Volatile): Removed.
5173         (Is_SPARK_Volatile_Object): Removed.
5174         * sem_util.ads (Is_Effectively_Volatile): New routine.
5175         (Is_Effectively_Volatile_Object): New routine.
5176         (Is_SPARK_Volatile): Removed.
5177         (Is_SPARK_Volatile_Object): Removed.
5179 2014-07-31  Pascal Obry  <obry@adacore.com>
5181         * s-fileio.adb (Open): Make sure a shared file gets inserted into
5182         the global list atomically. This ensures that the file descriptor
5183         won't be freed because another tasks is closing the file.
5185 2014-07-31  Robert Dewar  <dewar@adacore.com>
5187         * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
5188         generation of _FIRST and _LAST variables even in GNATprove_Mode.
5189         * gnat_ugn.texi: Minor editing.
5190         * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
5191         aggregate is marked Comes_From_Source if argument is CFS.
5193 2014-07-31  Pascal Obry  <obry@adacore.com>
5195         * s-fileio.adb: Remove obsolete comment.
5197 2014-07-31  Vincent Celier  <celier@adacore.com>
5199         * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
5200         overriding keyword before function to avoid error when compiler
5201         is called with -gnatyO (check overriding indicators).
5203 2014-07-31  Tucker Taft  <taft@adacore.com>
5205         * gnat_ugn.texi: Add a paragraph pointing the reader
5206         to the "plugins" example.
5208 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5210         * freeze.adb (Freeze_Expression): Document the
5211         purpose of the parent chain traversal.
5213 2014-07-31  Robert Dewar  <dewar@adacore.com>
5215         * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
5216         unconstrained fpt ops.
5218 2014-07-31  Pascal Obry  <obry@adacore.com>
5220         * s-fileio.adb (Open): Make sure a shared file gets inserted into
5221         the global list atomically. This ensures that the file descriptor
5222         won't be freed because another tasks is closing the file.
5224 2014-07-31  Vincent Celier  <celier@adacore.com>
5226         * projects.texi: Minor spelling error fix.
5228 2014-07-31  Robert Dewar  <dewar@adacore.com>
5230         * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
5231         * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
5232         information.
5233         * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
5234         * restrict.adb (Process_Restriction_Synonyms): Add handling
5235         of No_Elaboration_Code_All.
5236         * restrict.ads (Process_Restriction_Synonyms): Now handles
5237         No_Elaboration_Code_All.
5238         * sem_ch10.adb (Analyze_Context): Enforce transitive with for
5239         No_Elaboration_Code_All.
5240         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
5241         Handle setting of No_Elab_Code in unit information. Handle
5242         No_Elaboration_Code_All.
5243         * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
5244         pragma processing.
5245         (Name_No_Elaboration_Code_All): New name for pragma processing.
5247 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
5249         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
5250         types with a null range and use the Esize of the component
5251         instead of its RM_Size to identify appropriate values.
5253 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5255         * freeze.adb Add with and use clause for Aspects.
5256         (Freeze_Expression): Emit an error when a volatile constant lacks
5257         Boolean aspect Import.
5258         (Has_Boolean_Aspect_Import): New routine.
5260 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
5262         * exp_util.adb: Minor reformatting.
5264 2014-07-31  Vincent Celier  <celier@adacore.com>
5266         * errutil.adb (Error_Msg): Make sure that all components of
5267         the error message object are initialized.
5269 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5271         * sem_ch4.adb (Try_Container_Indexing): If the container type is
5272         class-wide, use specific type to locate iteration primitives.
5273         * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
5274         rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
5275         Minor error message reformating.
5276         * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
5277         aspect for a derived type.
5279 2014-07-31  Robert Dewar  <dewar@adacore.com>
5281         * debug.adb: Document debug flag d.X.
5283 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5285         * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
5286         * sem_util.adb (Find_Specific_Type): If type is untagged private,
5287         retrieve full view so that primitive operations can be located.
5288         * exp_disp.adb Move Find_Specific_Type to sem_util.
5289         * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
5290         Find_Specific_Type to locate primitive equality.
5291         * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
5292         type does not require initialization.
5293         * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
5294         body all visibility is established, and the enclosing package
5295         declarations must not be installed.
5297 2014-07-31  Yannick Moy  <moy@adacore.com>
5299         * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
5300         Make subprogram public.
5302 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5304         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
5305         predicate Discriminated_Size, to distinguish between private
5306         components that depend on discriminants from those whose size
5307         depends on some other non-static expression.
5309 2014-07-31  Nicolas Setton  <setton@adacore.com>
5311         * g-exptty.adb (Close): Fix binding to Waitpid: use the
5312         tty version.
5314 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5316         * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
5317         in a discrete range, when 'range was probably intended.
5319 2014-07-31  Robert Dewar  <dewar@adacore.com>
5321         * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
5323 2014-07-31  Robert Dewar  <dewar@adacore.com>
5325         * frontend.adb: Minor reformatting.
5326         * sem.adb: Minor reformatting.
5327         * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
5328         identifiers on rewrite.
5329         * par.adb: Minor comment updates.
5330         * a-ngelfu.adb (Cos): Minor simplification.
5331         * par-ch13.adb (Get_Aspect_Specifications): Improve messages
5332         and recovery for bad aspect.
5333         * exp_ch3.adb: Code clean up.
5334         * sem_util.ads: Minor comment correction.
5335         * sem_ch13.adb (Check_Array_Type): Properly handle large types.
5336         * sem_ch3.adb: Code clean up.
5337         * binderr.ads: Minor comment correction.
5339 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5341         * exp_disp.adb (Expand_Interface_Conversion): A call whose
5342         prefix is a static conversion to an interface type that is not
5343         class-wide is not dispatching.
5345 2014-07-31  Robert Dewar  <dewar@adacore.com>
5347         * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
5348         s-traceb-mastop.adb: Minor reformatting.
5350 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5352         * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
5353         expansion, to handle properly visibility of selected components
5354         in instance bodies.
5356 2014-07-31  Robert Dewar  <dewar@adacore.com>
5358         * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
5359         * par-ch2.adb (P_Pragma): Set Inside_Depends.
5360         * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
5361         Check_Unary_Plus_Or_Minus.
5362         * scans.ads (Inside_Depends): New flag.
5363         * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
5364         * style.ads: Add Inside_Depends parameter to Check_Arrow Add
5365         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
5366         * styleg.adb (Check_Arrow): Handle Inside_Depends case.
5367         (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
5368         * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
5369         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
5371 2014-07-31  Javier Miranda  <miranda@adacore.com>
5373         * s-vaflop.adb Move the body of function T_To_G before
5374         T_To_D. Required for frontend inlining.
5375         * inline.adb (Has_Excluded_Contract): New subprogram used to
5376         check if a subprogram inlined by the frontend has contracts
5377         which cannot be inlined.
5379 2014-07-31  Bob Duff  <duff@adacore.com>
5381         * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
5382         (Call_Chain): Add 1 to number of frames to skip, to account for
5383         the fact that there's one more frame on the stack.
5384         * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
5386 2014-07-31  Robert Dewar  <dewar@adacore.com>
5388         * checks.adb (Enable_Overflow_Check): More precise setting of
5389         Do_Overflow_Check flag for division.
5391 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
5393         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
5394         array types with implementation type.
5396 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5398         * sem_ch10.adb (Process_State): Remove local variable Name. Add
5399         local variable Decl. Partially declare an abstract state by
5400         generating an entity and storing it in the state declaration.
5401         * sem_prag.adb (Create_Abstract_State): Fully declare a
5402         semi-declared abstract state.
5404 2014-07-31  Robert Dewar  <dewar@adacore.com>
5406         * prj-nmsc.adb: Minor reformatting.
5408 2014-07-31  Bob Duff  <duff@adacore.com>
5410         * s-tasdeb.adb (System.Tasking.Debug): Remove
5411         all usage of the secondary stack from this package.
5413 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5415         * freeze.adb (Freeze_Expression): Update the loop in charge
5416         of finding a proper insertion place for freeze nodes to handle
5417         N_Expression_With_Actions nodes.
5419 2014-07-31  Robert Dewar  <dewar@adacore.com>
5421         * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
5422         reformatting.
5424 2014-07-31  Pascal Obry  <obry@adacore.com>
5426         * prj-nmsc.adb: Minor reformatting.
5428 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5430         * sem_util.adb (Has_Preelaborable_Initialization): Check that
5431         type is tagged before checking whether a user-defined Initialize
5432         procedure is present.
5434 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
5436         * a-ngelfu.ads (Sqrt): Augment postcondition.
5438 2014-07-31  Pascal Obry  <obry@adacore.com>
5440         * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
5441         directory and ALI directory must be different than all object
5442         and library directories of aggregated projects.
5444 2014-07-31  Vincent Celier  <celier@adacore.com>
5446         * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
5447         to package body, as it is not called from outside. Remove argument
5448         Project_Tree, no longer used. When runtime cannot be found,
5449         call Raise_Invalid_Config instead of failing the program.
5451 2014-07-31  Robert Dewar  <dewar@adacore.com>
5453         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
5454         (Overflow_Check).
5455         * gnatlink.adb (Process_Args): Remove generation of -gnato0,
5456         no longer needed.
5458 2014-07-31  Robert Dewar  <dewar@adacore.com>
5460         * gnat_ugn.texi: Document new switch -gnato0.
5461         * sem_ch3.ads: Minor reformatting.
5462         * gnatlink.adb (Process_Args): Compile bind file with -gnato0
5463         (we do not want overflow checks when incrementing elaboration
5464         counters).
5465         * einfo.ads: Minor reformatting.
5467 2014-07-31  Robert Dewar  <dewar@adacore.com>
5469         * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
5470         * s-arit64.adb: Minor reformatting.
5472 2014-07-31  Robert Dewar  <dewar@adacore.com>
5474         * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
5475         checking is enabled except in GNAT_Mode.
5476         * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
5477         (suppress overflow checks).
5479 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5481         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
5482         invariant procedure for an internally generated subtype that is
5483         created for an object of a class-wide type.
5485 2014-07-31  Vincent Celier  <celier@adacore.com>
5487         * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
5489 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
5491         * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
5492         exp_disp.adb: Minor reformatting.
5494 2014-07-31  Robert Dewar  <dewar@adacore.com>
5496         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
5497         sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
5498         exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
5499         reformatting.
5501 2014-07-31  Robert Dewar  <dewar@adacore.com>
5503         * sem_ch13.adb: Minor reformatting.
5505 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5507         * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
5508         is an unchecked_union, warn that invariants will not be checked
5509         on components that have them.
5511 2014-07-31  Robert Dewar  <dewar@adacore.com>
5513         * freeze.adb (Freeze_Entity): Check for error of
5514         Type_Invariant'Class applied to a untagged type.
5515         * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
5516         as null body, so that we perform error checks even if expansion
5517         is off.
5519 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5521         * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
5522         is already present, nothing to do.
5523         * exp_ch3.adb (Build_Component_Invariant_Call): For an access
5524         component, check whether the access type has an invariant before
5525         checking the designated type.
5526         (Build_Record_Invariant_Proc): Change suffix of generated
5527         name to prevent ambiguity when record type has invariants
5528         in addition to those of components, and two subprograms are
5529         constructed. Consistent with handling of array types.
5530         (Insert_Component_Invariant_Checks): Build invariant procedure
5531         body when one has not been created yet, in the case of composite
5532         types that are completions and whose full declarations carry
5533         invariants.
5535 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5537         * gnat_rm.texi: Minor doc fixes.
5539 2014-07-30  Robert Dewar  <dewar@adacore.com>
5541         * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
5543 2014-07-30  Vincent Celier  <celier@adacore.com>
5545         * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
5546         of error message.
5547         * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
5548         message to report that a directory cannot be created, to avoid
5549         processing of the directory path that may contains special
5550         insertion characters.
5552 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5554         * a-crdlli.ads: Place declaration of Empty_List after full type
5555         declaration for Curosr, to prevent freezing error.
5557 2014-07-30  Robert Dewar  <dewar@adacore.com>
5559         * get_targ.adb: Minor code reorganization.
5560         * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
5561         reformatting.
5563 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5565         * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
5566         not Program_Error, when attempting to remove an element not in
5567         the set. This is the given semantics for all set containers.
5569 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5571         * a-rbtgbo.adb (Delete_Node_Sans_Free): If
5572         element is not present in tree return rather than violating
5573         an assertion. Constraint_Error will be raised in the caller if
5574         element is not in the container.
5576 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5578         * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
5579         (elab body): Add provision for default target config file.
5580         * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
5582 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5584         * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
5585         when attempting to remove an element not in the set. This is
5586         the given semantics for all set containers.
5587         * a-cborse.adb (Delete): Attempt removal first, to check for
5588         tampering, before checking whether this is an attempt to
5589         delete a  non-existing element, and in fthe latter case raise
5590         Constraint_Error.
5592 2014-07-30  Vincent Celier  <celier@adacore.com>
5594         * prj-proc.adb (Recursive_Process): Do not create a new
5595         Project_Id if the project is already in the list of projects of
5596         the tree.
5598 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5600         * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
5601         whose type is an incomplete formal type.
5602         (Analyze_Return_Type): Reject a return type that is an untagged
5603         imcomplete formal type.
5604         (Process_Formals): Reject a formal parameter whose type is an
5605         untagged formal incomplete type.
5606         * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
5607         an untagged formal incomplete type.
5609 2014-07-30  Robert Dewar  <dewar@adacore.com>
5611         * gnat_ugn.texi: Minor spelling correction.
5612         * makeutl.adb: Minor code reorganization.
5613         * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
5615 2014-07-30  Robert Dewar  <dewar@adacore.com>
5617         * einfo.ads (Has_Unchecked_Union): Document that this is used
5618         to check for illegal Valid_Scalars attribute references.
5619         * exp_attr.adb (Build_Record_VS_Func): New function
5620         (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
5621         function.
5622         * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
5623         Unchecked_Union Add note on 'Valid_Scalars generating a lot
5624         of code.
5625         * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
5626         error on attempt to apply Valid_Scalars to Unchecked_Union type.
5628 2014-07-30  Steve Baird  <baird@adacore.com>
5630         * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
5631         of A(I..J)(K) in CodePeer_Mode.
5633 2014-07-30  Ben Brosgol  <brosgol@adacore.com>
5635         * gnat_ugn.texi: Fix typo.
5637 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5639         * lib-writ.ads: document format change.
5641 2014-07-30  Pascal Obry  <obry@adacore.com>
5643         * prj-util.adb (For_Interface_Sources): Do not
5644         include sources from withed externally built projects.
5646 2014-07-30  Robert Dewar  <dewar@adacore.com>
5648         * lib.adb: Minor reformatting.
5649         * prj-util.adb: Minor reformatting.
5651 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5653         * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
5654         that depends on discriminants, and which is given by an others
5655         clause, create an explicit subtype with the discriminant values
5656         of the enclosing aggregate, because the backend cannot otherwise
5657         retrieve the actual bounds of the array.
5659 2014-07-30  Fedor Rybin  <frybin@adacore.com>
5661         * gnat_ugn.texi: Improve gnattest documentation.
5663 2014-07-30  Pascal Obry  <obry@adacore.com>
5665         * makeutl.adb (Insert_Project_Sources): Properly handle sources
5666         that are aggregated. We want to include sources not only part
5667         of libraries but also if part of an aggregated project from an
5668         aggregate library.
5669         * prj.adb (For_Project_And_Aggregated_Context): Properly check
5670         state of root project.
5672 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5674         * lib-load.ads: Minor reformatting.
5675         * sinfo.ads (Library_Unit): Update comment.
5676         * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
5677         is redundant. Instead used the pragma Node_Id directly as the
5678         element type.
5680 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5682         * lib.adb (Store_Note): Store only notes that do not come from
5683         an instance, and that are in the extended main source unit.
5684         * lib-writ (Write_Unit_Information): Annotations from subunits
5685         must be emitted along with those for the main unit, and they
5686         must carry a specific file name.
5687         * ali.ads (Notes_Record): Use a File_Name_Type instead of a
5688         Unit_Id for the source file containing the pragma, as in the
5689         case of annotations from subunits we might not have a readily
5690         available unit id.
5691         * ali.adb (Scan_ALI): Account for above change in data structure.
5693 2014-07-30  Vincent Celier  <celier@adacore.com>
5695         * makeutl.adb (Insert_Project_Sources): When the library project
5696         is an aggregate Stand-Alone Library, insert in the queue the
5697         Ada interface units, with Closure set to True;
5699 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5701         * sem_util.adb: Fix minor typo.
5702         * makeutl.adb: Minor reformatting.
5704 2014-07-30  Robert Dewar  <dewar@adacore.com>
5706         * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
5708 2014-07-30  Yannick Moy  <moy@adacore.com>
5710         * checks.ads: Fix typo in comment.
5712 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
5714         * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
5715         entities that materialize range bounds, if any.
5717 2014-07-30  Vincent Celier  <celier@adacore.com>
5719         * projects.texi: Minor spelling fix.
5721 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5723         * checks.adb (Make_Bignum_Block): Use the new secondary stack
5724         build routines to manage the mark.
5725         * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
5726         Use the new secodary stack build routines to manage the mark.
5727         (Insert_Actions_In_Scope_Around): Add new formal parameter
5728         Manage_SS along with comment on its usage. Code and comment
5729         reformatting. Mark and release the secondary stack when the
5730         context warrants it.
5731         (Make_Transient_Block): Update the call
5732         to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
5733         (Wrap_Transient_Declaration): Remove local variable
5734         Uses_SS. Ensure that the secondary stack is marked and released
5735         when the related object declaration appears in a library level
5736         package or package body. Code and comment reformatting.
5737         * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
5738         (Build_SS_Release_Call): New routine.
5740 2014-07-30  Steve Baird  <baird@adacore.com>
5742         * exp_attr.adb: Revert previous change, not needed after all.
5744 2014-07-30  Vincent Celier  <celier@adacore.com>
5746         * makeutl.adb (Queue.Insert_Project_Sources): Insert with
5747         Closure => True for interfaces of Stand-Alone Libraries.
5748         * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
5749         Boolean component Closure, defaulted to False.
5751 2014-07-30  Yannick Moy  <moy@adacore.com>
5753         * sem_res.adb: Fix typo in error message.
5755 2014-07-30  Robert Dewar  <dewar@adacore.com>
5757         * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
5758         as name suffixes rather than L/H for subtype bounds.
5759         * tbuild.ads: Minor comment improvements and fixes
5760         (Make_External_Name): Document that suffix can start with an
5761         underscore.
5763 2014-07-30  Bob Duff  <duff@adacore.com>
5765         * gnat_ugn.texi: Document --rep-clauses switch.
5767 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5769         * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
5770         Default_Component_Value can only be specified for scalar type or
5771         arrays of scalar types respectively.  This legality check must
5772         be performed at the point the aspect is analyzed, in order to
5773         reject aspect specifications that apply to a partial view.
5775 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5777         * freeze.adb: Minor reformatting.
5779 2014-07-30  Robert Dewar  <dewar@adacore.com>
5781         * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
5782         codepeer mode.
5784 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5786         * freeze.adb (Check_Expression_Function): At the freeze point
5787         of an expression function, verify that the expression in the
5788         function does not contain references to any deferred constants
5789         that have no completion yet.
5790         (Freeze_Expression, Freeze_Before): call
5791         Check_Expression_Function.
5792         * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
5793         * a-ciorse.adb: Add Adjust and Finalize routines for
5794         Reference_Control_Type. Use it in the construction of Reference
5795         and Constant_Reference values.
5797 2014-07-30  Robert Dewar  <dewar@adacore.com>
5799         * exp_aggr.adb: Update comments.
5800         * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
5801         reformatting.
5803 2014-07-30  Robert Dewar  <dewar@adacore.com>
5805         * cstand.adb (New_Standard_Entity): New version takes name
5806         string to call Make_Name.
5807         (Create_Standard): Use this routine to set name before setting other
5808         fields.
5810 2014-07-30  Robert Dewar  <dewar@adacore.com>
5812         * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
5813         entity reference.
5814         (Expand_Attribute, case Last): Ditto.
5815         * exp_ch3.adb (Constrain_Index): New calling sequence for
5816         Process_Range_Expr_In_Decl.
5817         (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
5818         problematical case.
5819         * sem_ch3.adb (Constrain_Index): New calling sequence for
5820         Process_Range_Expr_In_Decl.
5821         (Set_Scalar_Range_For_Subtype): ditto.
5822         (Process_Range_Expr_In_Decl): Create constants to hold bounds for
5823         subtype.
5824         * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
5825         * sem_eval.adb (Compile_Time_Compare): Make sure we use base
5826         types if we are not assuming no invalid values.
5828 2014-07-30  Robert Dewar  <dewar@adacore.com>
5830         * clean.adb: Minor reformatting.
5831         * opt.ads: Minor fix to incorrect comment.
5833 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5835         * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
5836         subprogram, used by bounded hashed sets, to delete a node at
5837         a given index, whose element may have been improperly updated
5838         through a Reference_Preserving key.
5839         * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
5840         * a-cbhase.adb: Add Adjust and Finalize routines for
5841         Reference_Control_Type.
5842         (Delete, Insert): Raise Program_Error, not Constraint_Error,
5843         when operation is illegal.
5844         (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
5845         * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
5846         private with_clause for Ada.Finalization.
5847         * a-cbmutr.adb: Add Adjust and Finalize routines for
5848         Reference_Control_Type. Use it in the construction of Reference
5849         and Constant_Reference values.
5851 2014-07-30  Robert Dewar  <dewar@adacore.com>
5853         * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
5855 2014-07-30  Pascal Obry  <obry@adacore.com>
5857         * clean.adb (Clean_Project): Properly check for directory
5858         existence before trying to enter it.
5860 2014-07-30  Robert Dewar  <dewar@adacore.com>
5862         * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
5864 2014-07-30  Robert Dewar  <dewar@adacore.com>
5866         * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
5867         missing semicolon after name.
5869 2014-07-30  Pascal Obry  <obry@adacore.com>
5871         * prj.ads (Gprinstall_Flags): New constant.
5872         * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
5873         missing library dir if Directories_Must_Exist_In_Projects
5874         is false.
5876 2014-07-30  Bob Duff  <duff@adacore.com>
5878         * a-except-2005.adb, a-except.adb: Remove obsolete comments.
5879         * s-traceb.ads: Updagte comments.
5881 2014-07-30  Robert Dewar  <dewar@adacore.com>
5883         * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
5884         a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
5885         a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
5886         reformatting.
5888 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5890         * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
5891         subprogram, used by all versions of hashed sets, to delete a node
5892         whose element has been improperly updated through a Reference_
5893         Preserving key.
5894         * a-cohase.adb: Remove Delete_Node, use new common procedure
5895         Delete_Node_At_Index.
5896         * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
5897         * a-cihase.adb: Add Adjust and Finalize routines for
5898         Reference_Control_Type.
5899         (Reference_Preserving_Key): Build aggregate for
5900         Reference_Control_Type
5902 2014-07-30  Yannick Moy  <moy@adacore.com>
5904         * checks.adb, checks.ads (Determine_Range_R): New procedure to
5905         determine the possible range of a floating-point expression.
5907 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5909         * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
5910         * a-cborse.adb: Add Adjust and Finalize routines for
5911         Reference_Control_Type.
5912         (Reference_Preserving_Key): Build aggregate for
5913         Reference_Control_Type.
5914         (Delete): Check for tampering, and raise Program_Error (not
5915         Constraint_Error) when attempting to delete an element not in
5916         the set.
5917         (Insert): Ditto.
5919 2014-07-30  Bob Duff  <duff@adacore.com>
5921         * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
5922         * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
5923         Exception_Information is used to produce useful debugging
5924         information for the programmer. However, it was also used to
5925         implement the stream attributes for type Exception_Occurrence. The
5926         latter requires a stable and portable interface, which meant
5927         that we couldn't include a symbolic traceback. A separate set of
5928         routines was used to provide symbolic tracebacks under program
5929         control (i.e. not automatically). The goal of this ticket is
5930         to provide such automatic tracebacks, so the change here is to
5931         split the two functionalities: Exception_Information gives the
5932         maximally useful information for debugging (i.e. it now includes
5933         a symbolic traceback when a decorator is set, and it can be
5934         improved freely in the future without disturbing streaming).
5935         Untailored_Exception_Information always uses hexadecimal addresses
5936         in the traceback, has a stable and portable output, and is now
5937         used for streaming.
5939 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5941         * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
5942         on the target of the assignment to find out whether it
5943         can be directly done by the back-end.
5944         * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
5946 2014-07-30  Robert Dewar  <dewar@adacore.com>
5948         * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
5949         a-tasatt.adb: Minor reformatting.
5951 2014-07-30  Robert Dewar  <dewar@adacore.com>
5953         * exp_ch4.adb: Minor reformatting.
5955 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5957         * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
5958         Reference_Control_Type to generic package, to keep additional
5959         information for Reference_Types that manipulate keys. Add Adjust and
5960         Finalize procedures for this type.
5961         (Finalize): When finalizing a reference_preserving_key, verify
5962         that the key of the new value is equivalent to the key of the
5963         original element, raise Program_Error otherwise.
5964         (Insert): Detect tampering.
5965         (Reference_Preserving_Key): Build proper Reference_Control_Type,
5966         and update Busy and Lock bits to detect tampering.
5967         * a-cohase.ads: Keep with-clause private.
5969 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5971         * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
5972         of an equality are of an Unchecked_Union type and lack inferable
5973         discriminants.
5975 2014-07-30  Bob Duff  <duff@adacore.com>
5977         * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
5978         g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
5979         GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
5980         hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
5981         we can call them from the runtimes. Leave renamings in place under GNAT.
5983 2014-07-30  Yannick Moy  <moy@adacore.com>
5985         * inline.adb (Check_And_Build_Body_To_Inline): Include code for
5986         inlining in GNATprove mode.
5988 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5990         * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
5991         Reference_Control_Type to generic package, to keep additional
5992         information for Reference_Types that manipulate keys. Add Adjust and
5993         Finalize procedures for this type.
5994         (Delete_Node): New procedure called when finalizing a
5995         Reference_Control_Type, to remove a node whose element has been
5996         improperly updated through a Reference.
5997         (Insert): Detect tampering.
5998         (Reference_Preserving_Key): Build proper Reference_Control_Type,
5999         and update Busy and Lock bits to detect tampering.
6001 2014-07-30  Bob Duff  <duff@adacore.com>
6003         * exp_intr.ads: Minor comment fix.
6005 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
6007         * exp_prag.adb, a-tags.ads: Minor typo fixes.
6009 2014-07-30  Bob Duff  <duff@adacore.com>
6011         * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
6012         a-except.ads, g-traceb.adb, memtrack.adb,
6013         s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
6014         Cleanup: Make the three versions of System.Traceback.Call_Chain
6015         have the same interface. Use an array for the Traceback parameter
6016         instead of an Address.  This will enable reduction in code
6017         duplication.
6019 2014-07-30  Pat Rogers  <rogers@adacore.com>
6021         * gnat_ugn.texi: Corrected minor textual error in description
6022         of switch -gnatwl.
6024 2014-07-30  Bob Duff  <duff@adacore.com>
6026         * Makefile.rtl: Sort file names.
6028 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
6030         * a-tasatt.adb: Complete previous change: kill spurious warning
6031         on e.g. sparc, and make sure we only use the fast path when the
6032         alignment is compatible.
6034 2014-07-30  Yannick Moy  <moy@adacore.com>
6036         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
6037         coming from source.
6039 2014-07-30  Yannick Moy  <moy@adacore.com>
6041         * inline.adb (Build_Body_To_Inline): Issue more precise messages
6042         for declarations that prevent inlining.
6043         (Cannot_Inline): Change usual start of message to refer to contextual
6044         analysis in GNATprove mode.
6045         * sem_res.adb (Resolve_Call): Change usual start of message to
6046         refer to contextual analysis in GNATprove mode, when inlining
6047         not possible.
6049 2014-07-30  Robert Dewar  <dewar@adacore.com>
6051         * sem_res.adb, sem_ch6.adb: Minor code reorganization.
6052         * inline.adb: Minor reformatting.
6054 2014-07-30  Javier Miranda  <miranda@adacore.com>
6056         * a-tags.ads: Add comments.
6058 2014-07-30  Pat Rogers  <rogers@adacore.com>
6060         * gnat_rm.texi: Minor word error.
6062 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6064         * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
6065         created to capture the value of the prefix of 'Old at the
6066         beginning of the current declarative part, to prevent data flow
6067         anomalies in the postcondition procedure that will follow.
6069 2014-07-30  Yannick Moy  <moy@adacore.com>
6071         * debug.adb: Retire debug flag -gnatdQ.
6072         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
6073         on decl, not on body.  Ignore predicate functions.
6074         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
6075         debug flag -gnatdQ.  Correctly analyze SPARK_Mode on decl and
6076         body when generating a decl for a body on which SPARK_Mode aspect
6077         is given.
6078         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
6079         attaching pragma to entity, to account for declaration not coming
6080         from source.
6081         * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
6082         as not always inlined in GNATprove mode, when called in an
6083         assertion context.
6085 2014-07-30  Vincent Celier  <celier@adacore.com>
6087         * debug.adb: Minor comment update.
6089 2014-07-30  Robert Dewar  <dewar@adacore.com>
6091         * s-tasuti.adb, s-tassta.adb: Minor reformatting.
6092         * sprint.adb (Sprint_Node): Handle N_Contract case.
6093         * exp_prag.adb: Minor reformatting.
6094         * freeze.adb (Freeze_Entity): Check useless postcondition for
6095         No_Return subprogram.
6096         * sem_prag.adb: Minor reformatting.
6098 2014-07-30  Javier Miranda  <miranda@adacore.com>
6100         * a-tags.ads: Complete comments about performance.
6102 2014-07-30  Fedor Rybin  <frybin@adacore.com>
6104         * gnat_ugn.texi: Adding description for --exit-status option to
6105         gnattest section.  Fixing index entry of --passed-tests option
6106         in gnattest section.
6108 2014-07-30  Javier Miranda  <miranda@adacore.com>
6110         * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
6111         rtsfind.ads: Remove references to package Interfaces.CPP since this
6112         package is no longer needed.
6114 2014-07-30  Bob Duff  <duff@adacore.com>
6116         * s-taasde.adb (Timer_Queue): Don't use a
6117         build-in-place function call to initialize the Timer_Queue.
6118         * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
6119         Turn off polling in these units, because otherwise we get
6120         elaboration circularities with Ada.Exceptions when the -gnatP
6121         switch is used.
6122         * s-tassta.adb (Create_Task): Make sure independent tasks
6123         are created with Parent = Environment_Task. This was not true,
6124         for example, in s-interr.adb, when Interrupt_Manager does "new
6125         Server_Task"; the Server_Task had Parent = Interrupt_Manager,
6126         which is wrong because the master is determined by the access
6127         type, which is at library level.
6128         * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
6129         now set correctly by Create_Task.
6130         (Make_Passive): Remove the workaround for the race condition in
6131         Make_Independent.
6132         * frontend.adb (Frontend): Revert to previous method of detecting
6133         temporary configuration pragma files, recognizing such files by
6134         ".tmp" in the name. This is more general than detecting pragmas
6135         Source_File_Name_Project, because it allows any tool to use
6136         this naming convention, no matter the content of the file.
6137         * gnat_ugn.texi: Document this naming convention.
6139 2014-07-30  Robert Dewar  <dewar@adacore.com>
6141         * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
6142         inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
6143         s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
6144         s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
6145         * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
6146         conversion.
6148 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6150         * sem_ch5.adb: Improve error recovery.
6151         * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
6152         before analyzing the body, so that in GNATprove mode there is
6153         no light expansion. Whatever expansion is required by SPARK will
6154         be performed when analysing the inlined code.
6156 2014-07-30  Bob Duff  <duff@adacore.com>
6158         * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
6160 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6162         * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
6163         verify that it is not hidden by an inner implicit declaration.
6165 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6167         * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
6168         * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
6169         * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
6170         the call returns an unconstrained type: in this case there is
6171         already a transient scope, and we should not establish a new one.
6172         * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
6173         True, also insert cleanup actions in the tree.
6174         (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
6175         with Clean set True.
6177 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
6179         * s-taskin.ads (Direct_Index, Direct_Index_Range,
6180         Direct_Attribute_Element, Direct_Attribute_Array,
6181         Direct_Index_Vector, Direct_Attributes, Is_Defined,
6182         Indirect_Attributes): Removed.  (Atomic_Address,
6183         Attribute_Array, Attributes): New.
6184         * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
6185         Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
6186         (Finalize_Attributes): Reimplement.
6187         * s-tassta.adb (Create_Task): Remove call to
6188         Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
6189         Replace Finalize_Attributes_Link by Finalize_Attributes.
6190         * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
6191         Reimplement from scratch, using a simpler and more efficient
6192         implementation.
6193         * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
6194         * s-parame.ads, s-parame-hpux.ads,
6195         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
6196         * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
6197         Default_Attribute_Count.
6199 2014-07-30  Olivier Hainque  <hainque@adacore.com>
6201         * vxworks-ppc-link.spec: New file. Extra link
6202         instructions for ppc-vxworks.
6203         * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
6204         * system-vxworks-ppc.ads: Adjust linker options to use spec files.
6205         * system-vxworks-arm.ads: Likewise.
6206         * gcc-interface/Makefile.in: Enable .spec files.
6208 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6210         * sem_aggr.adb: Minor comment reformatting.
6212 2014-07-30  Robert Dewar  <dewar@adacore.com>
6214         * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
6215         * sem_warn.adb (Has_Junk_Name): New function
6216         (Check_References): Use Has_Junk_Name to delete junk warnings
6217         (Check_Unset_Reference): ditto.
6218         (Warn_On_Unreferenced_Entity): ditto.
6219         (Warn_On_Useless_Assignment): ditto.
6221 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6223         * checks.adb (Insert_Valid_Check): Do not check for the packed
6224         array type of a prefix that is an access type.
6226 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6228         * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
6229         Unconstrained_Array even if prefix is not frozen yet, as can
6230         occur with a private subtype used as a generic actual.
6232 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
6234         * sem_attr.adb: Minor reformatting.
6236 2014-07-30  Pat Rogers  <rogers@adacore.com>
6238         * gnat_rm.texi: Corrected minor wording error in description
6239         of No_Exception_Registration.
6241 2014-07-30  Yannick Moy  <moy@adacore.com>
6243         * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
6244         mode. Realphabetize two subprograms.
6245         * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
6246         (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
6247         (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
6248         mode.
6249         (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
6250         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
6251         Is_Inline in GNATprove mode.
6252         (Analyze_Subprogram_Specification):
6253         Set Is_Inlined_Always at subprogram entity creation.
6254         * sem_res.adb (Resolve_Call): Do not deal with inlining during
6255         pre-analysis.  Issue warning on call to possibly inlined
6256         subprogram when body not seen.
6258 2014-07-30  Yannick Moy  <moy@adacore.com>
6260         * lib-xref.adb (Generate_Reference): Add special
6261         case for compiler-generated formals in GNATprove mode.
6263 2014-07-30  Yannick Moy  <moy@adacore.com>
6265         * sem_ch6.adb: Add comments.
6267 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6269         * s-os_lib.ads (GM_Time_Of): Clarify documentation.
6271 2014-07-30  Robert Dewar  <dewar@adacore.com>
6273         * sem_aggr.adb, sem_res.adb: Minor reformatting.
6275 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6277         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
6278         Bit_Order): Set Reverse_Bit_Order on the base type of the
6279         specified first subtype.
6281 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6283         * inline.adb (Expand_Inlined_Call): Use a renaming declaration
6284         to capture the value of actuals of a limited type rather than
6285         an object declaration, to prevent spurious errors when analyzing
6286         the inlined body.
6288 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6290         * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
6291         as an instance, and inhibit semantic checks on already analyzed
6292         code to prevent spurious errors.
6294 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
6296         * a-exctra.ads ("="): New function, to restore compatibility.
6298 2014-07-30  Pascal Obry  <obry@adacore.com>
6300         * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
6301         routine to use the OS dst setting.
6303 2014-07-30  Pat Rogers  <rogers@adacore.com>
6305         * gnat_ugn.texi: Minor correction to description of -gnatw.K.
6307 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6309         * sem_util.adb (Wrong_Type): Disable some checks equally within
6310         instances and within inlined bodies, to suppress spurious type
6311         errors on already analyzed code.
6312         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
6313         is legal in an inlined body, juts as it is in an instance body.
6315 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6317         * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
6318         body the operand of an unchecked conversion may be a literal, in
6319         which case its type is the target type of the conversion. This
6320         is in contrast to conversions in other contexts, where the
6321         operand cannot be a literal and must be resolvable independent
6322         of the context.
6324 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
6326         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
6327         mere scalar constant instead of a reference for a renaming of
6328         scalar literal.
6329         * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
6330         * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
6332 2014-07-30  Robert Dewar  <dewar@adacore.com>
6334         * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
6335         g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
6336         g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
6337         s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
6338         g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
6339         s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
6340         & code reorganization.
6342 2014-07-30  Bob Duff  <duff@adacore.com>
6344         * s-tassta.adb, sem_util.ads: Minor reformatting.
6346 2014-07-30  Yannick Moy  <moy@adacore.com>
6348         * inline.adb (Build_Body_To_Inline): Detect when
6349         subprogram has multiple returns, or not a single last return
6350         statement, in GNATprove mode.
6351         (Cannot_Inline): Simplify logic to handle case of GNATprove
6352         inlining first.
6354 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6356         * sem_ch6.adb: Stubs are not subject to inlining.
6358 2014-07-30  Bob Duff  <duff@adacore.com>
6360         * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
6361         from a procedure to a function, so that it can more easily be
6362         called before the "begin" of a task.
6363         * s-taasde.ads (Delay_Block): Make this type immutably limited,
6364         so we can use a build-in-place function call to initialize
6365         Timer_Queue in the body.
6366         * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
6367         * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
6368         * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
6369         Make_Independent before reaching its "begin", to avoid race
6370         conditions. This causes the activating task to wait until after
6371         Make_Independent is complete before proceeding.  In addition,
6372         we initialize data structures used by independent tasks before
6373         activating those tasks, to avoid possible use of uninitialized data.
6374         * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
6375         Minor comment fixes.
6377 2014-07-30  Bob Duff  <duff@adacore.com>
6379         * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
6380         the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
6381         System.Traceback_Entries (s-traent.ads and s-traent-vms.ads).  Add
6382         subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
6383         * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
6385 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
6387         * a-tasatt.adb: Remove old comments.
6389 2014-07-30  Yannick Moy  <moy@adacore.com>
6391         * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
6392         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
6393         to explain rationale for inlining or not in GNATprove mode.
6394         (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
6395         to False when inlining is not possible.
6396         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
6397         flag to indicate that subprogram is fully inlined. To be reversed
6398         if inlining problem is found.
6399         * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
6400         call in potentially unevaluated context.
6402 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
6404         * s-tarest.adb, s-tarest.ads: Fix comments.
6406 2014-07-30  Robert Dewar  <dewar@adacore.com>
6408         * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
6409         Change No_Scalar_Parts predicate to Scalar_Part_Present and
6410         invert sense of test. This avoids the "not No_xxx" situation
6411         which is always ugly.
6413 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6415         * inline.adb (Expand_Inlined_Call): When generating code for
6416         an internal subprogram the expansion uses the location of the
6417         call, so that gdb can skip over it. In GNATprove mode we want to
6418         preserve slocs of original subprogram when expanding an inlined
6419         call, to obtain better warnings, even though subprogram appears
6420         not to come from source if it is the inlining of a subprogram
6421         body without a previous spec.
6423 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6425         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
6426         types with atomic components.
6428 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6430         * Make-generated.in: Remove now unnecessary targets after s-oscons
6431         reorg.
6433 2014-07-30  Yannick Moy  <moy@adacore.com>
6435         * sem_res.adb (Resolve_Call): Use ultimate alias
6436         of callee when available.
6438 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6440         * sem_ch6.adb (Analyze_Expression_Function): To check whether
6441         an expression function is a completion, use the specification of
6442         the previous declaration, not its entity, which may be internally
6443         generated in an inlined context.
6445 2014-07-30  Doug Rupp  <rupp@adacore.com>
6447         * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
6448         temp files in /cache directory unless overridden by TMPDIR.
6450 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
6452         * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
6453         Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
6454         type CPU, so it can never be greater than CPU_Range'Last.
6456 2014-07-30  Bob Duff  <duff@adacore.com>
6458         * s-taskin.ads: Minor comment fix.
6460 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6462         * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
6463         clauses.
6465 2014-07-30  Yannick Moy  <moy@adacore.com>
6467         * debug.adb: Free debug flag dQ used for frontend inlining in
6468         GNATprove mode..
6469         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
6470         debug flag..
6472 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6474         * Make-generated.in: Remove generation of s-oscons.ads, only
6475         generate the xoscons utility, in runtime-agnostic rules.
6476         * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
6477         no longer supported.
6479 2014-07-30  Bob Duff  <duff@adacore.com>
6481         * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
6482         parameter Chain to be used in the allocator case.
6483         (Make_Build_In_Place_Call_In_Allocator): If the allocated object
6484         has tasks, wrap the code in a block that will activate them,
6485         including the usual finalization code to kill them off in case
6486         of exception or abort.
6488 2014-07-30  Robert Dewar  <dewar@adacore.com>
6490         * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
6491         Remove renamings (don't work for gdb).
6492         (par): New synonym for p (avoid gdb ambiguities).
6493         * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
6495 2014-07-30  Bob Duff  <duff@adacore.com>
6497         * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
6498         fixes.
6499         * treepr.ads, treepr.adb (ppp): Make this debugging routine
6500         accept any type covered by Union_Id.
6502 2014-07-30  Robert Dewar  <dewar@adacore.com>
6504         * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
6505         analyzing branches.
6506         * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
6507         expression case.
6509 2014-07-30  Robert Dewar  <dewar@adacore.com>
6511         * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
6512         of predicate aspect on entity other than a type.
6514 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6516         * sem_ch6.adb (Body_Has_Contract): New predicate to determine
6517         when a subprogram body without a previous spec cannot be inlined
6518         in GNATprove mode, because it includes aspects or pragmas that
6519         generate a SPARK contract clause.
6520         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
6521         instance cannot be inlined.
6523 2014-07-30  Robert Dewar  <dewar@adacore.com>
6525         * debug.adb: Document that d7 suppresses compilation time output.
6526         * errout.adb (Write_Header): Include compilation time in
6527         header output.
6528         * exp_intr.adb (Expand_Intrinsic_Call): Add
6529         Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
6530         Compilation_Date/Compilation_Time.
6531         * g-souinf.ads (Compilation_Date): New function
6532         (Compilation_Time): New function.
6533         * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
6534         * gnat_rm.texi (Compilation_Date): New function
6535         (Compilation_Time): New function.
6536         * opt.ads (Compilation_Time): New variable.
6537         * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
6538         * sem_intr.adb (Compilation_Date): New function.
6539         (Compilation_Time): New function.
6540         * snames.ads-tmpl (Name_Compilation_Date): New entry.
6541         (Name_Compilation_Time): New entry.
6543 2014-07-30  Yannick Moy  <moy@adacore.com>
6545         * inline.adb: Add comment.
6547 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6549         * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
6550         parameterless attribute, and a postondition can mention an
6551         indexed component or a slice whose prefix is an attribute
6552         reference F'Result.
6554 2014-07-30  Robert Dewar  <dewar@adacore.com>
6556         * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
6557         Avoid bomb when printing package Standard.
6559 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6561         * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
6562         entity is created at this point, ensure that the name of the
6563         flag is unique, because the subprogram may be overloaded and
6564         other homonyms may also have elaboration flags created on the fly.
6566 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6568         * sem_attr.adb (Analyze_Array_Component_Update): New routine.
6569         (Analyze_Attribute): Major cleanup of attribute
6570         'Update. The logic is now split into two distinct routines
6571         depending on the type of the prefix. The use of <> is now illegal
6572         in attribute 'Update.
6573         (Analyze_Record_Component_Update): New routine.
6574         (Check_Component_Reference): Removed.
6575         (Resolve_Attribute): Remove the return statement and ??? comment
6576         following the processing for attribute 'Update. As a result,
6577         the attribute now freezes its prefix.
6579 2014-07-30  Javier Miranda  <miranda@adacore.com>
6581         * exp_ch4.adb (Apply_Accessibility_Check): Do
6582         not call Base_Address() in VM targets.
6584 2014-07-30  Yannick Moy  <moy@adacore.com>
6586         * gnat1drv.adb (Adjust_Global_Switches): Set
6587         Ineffective_Inline_Warnings to True in GNATprove mode.
6588         * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
6589         mode of inlining.
6590         * opt.ads (Ineffective_Inline_Warnings): Add comment that
6591         describes use in GNATprove mode.
6592         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
6593         pragma when applied to the special body created for inlining.
6595 2014-07-30  Robert Dewar  <dewar@adacore.com>
6597         * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
6598         Minor reformatting.
6600 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6602         * aspects.ads Add a comment explaining why SPARK 2014 aspects are
6603         not delayed. Update the delay status of most SPARK 2014 aspects.
6604         * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
6605         to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
6606         to Decorate and Insert_Pragma. Add various comments concerning
6607         the delay status of several SPARK 2014 aspects. The insertion
6608         of Refined_State now uses routine Insert_After_SPARK_Mode.
6609         (Decorate): New routine.
6610         (Decorate_Aspect_And_Pragma): Removed.
6611         (Insert_Delayed_Pragma): Removed.
6612         (Insert_Pragma): New routine.
6614 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6616         * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
6617         only a warning, not an error on an attempt to inline a recursive
6618         subprogram.
6620 2014-07-30  Robert Dewar  <dewar@adacore.com>
6622         * g-forstr.adb: Minor code reorganization (use J rather than I
6623         as a variable name).
6624         * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
6625         g-forstr.ads: Minor reformatting.
6627 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6629         * sprint.adb (Set_Debug_Sloc): Also reset the end location if
6630         we are debugging the generated code.
6632 2014-07-30  Yannick Moy  <moy@adacore.com>
6634         * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
6635         returns True for source pointer for an inlined body.
6637 2014-07-30  Javier Miranda  <miranda@adacore.com>
6639         * exp_ch4.adb (Apply_Accessibility_Check): Add
6640         missing calls to Base_Address().
6642 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6644         * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
6645         mode, subprogram bodies without a previous declaration are also
6646         candidates for front-end inlining.
6648 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6650         * aspects.ads Aspects Async_Readers, Async_Writers,
6651         Effective_Reads and Effective_Writes do not need to be delayed.
6652         * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
6653         optional Boolean expression when generating the corresponding
6654         pragma for an external property aspect.
6655         * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
6656         local constant Obj. Add local constant Obj_Id. Reimplement the
6657         check which ensures that the related variable is in fact volatile.
6658         (Analyze_Pragma): Reimplement the analysis of external property pragmas.
6659         * sem_util.adb (Is_Enabled): New routine.
6660         (Variable_Has_Enabled_Property): Reimplement the detection of
6661         an enabled external property.
6663 2014-07-30  Sergey Rybin  <rybin@adacore.com frybin>
6665         * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
6666         for body stubs.
6668 2014-07-30  Pascal Obry  <obry@adacore.com>
6670         * g-forstr.adb, g-forstr.ads: New.
6671         * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
6672         GNAT.Formatted_String.
6674 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6676         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
6677         (Expand_Array_Aggregate): Also enable in-place expansion for
6678         code generated by the compiler.  For an object declaration,
6679         set the kind of the object in addition to its type.  If an
6680         in-place assignment is to be generated and it can be directly
6681         done by the back-end, do not expand the aggregate.
6682         * fe.h (Is_Others_Aggregate): Declare.
6683         * gcc-interface/trans.c
6684         (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
6685         aggregate with a single Others choice on the RHS by means of
6686         __builtin_memset.  Tidy up.
6688 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6690         * gnat_rm.texi: minor reformatting.
6692 2014-07-30  Yannick Moy  <moy@adacore.com>
6694         * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
6695         in SPARK_Mode Off.
6697 2014-07-30  Robert Dewar  <dewar@adacore.com>
6699         * gnat_rm.texi: Document additional implementation-defined use
6700         of Constrained.
6702 2014-07-30  Robert Dewar  <dewar@adacore.com>
6704         * prj-proc.adb, prj-strt.adb: Update comments.
6706 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
6708         * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
6710 2014-07-30  Vincent Celier  <celier@adacore.com>
6712         * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
6713         parameter No_Extending, defaulted to False. When No_Extending
6714         is True, do not look for an extending project.
6715         (Expression): For a variable reference that is not for the current
6716         project, get its Id calling Imported_Or_Extended_Project_From
6717         with No_Extending set to True.
6718         * prj-strt.adb (Parse_Variable_Reference): If a referenced
6719         variable is not found in the current project, check if it is
6720         defined in one of the projects it extends.
6722 2014-07-30  Robert Dewar  <dewar@adacore.com>
6724         * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
6725         some additional cases of internally generated routines.
6727 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6729         * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
6730         if the compilation unit is a subunit, extend optional processing
6731         to all subunits of the current one. This allows gnatstub to
6732         supress generation of spurious bodies.
6734 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6736         * a-cbmutr.adb (Insert_Child): Use local variable First to keep
6737         track of the initial element's index within the tree.
6739 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6741         * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
6742         (Insert_Child): Add local variable First. Capture the index of the
6743         first node being created to ensure correct cursor construction
6744         later on. Use the three parameter version of Allocate_Node
6745         when creating multiple children as this method allows aspect
6746         Default_Value to take effect (if applicable).
6748 2014-07-29  Eric Botcazou  <ebotcazou@adacore.com>
6750         * exp_aggr.adb (Safe_Slice_Assignment): Remove.
6751         (Expand_Array_Aggregate): For a safe slice assignment, just set
6752         the target and use the common code path.
6754 2014-07-29  Robert Dewar  <dewar@adacore.com>
6756         * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
6757         predicate No_Predicate_Test_On_Arguments, new name is
6758         Predicate_Tests_On_Arguments (with the opposite sense).
6760 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6762         * sem_attr.adb (Resolve_Attribute): Clean up the code for
6763         attribute 'Access. Do not generate an elaboration flag for a
6764         stand alone expression function. The expression of an expression
6765         function is now frozen when the expression function appears as
6766         the prefix of attribute 'Access.
6767         * sem_ch6.adb (Analyze_Expression_Function): Remove local
6768         variable New_Decl and update all references to it after the
6769         rewriting has taken place. Establish the linkages between the
6770         generated spec and body.
6772 2014-07-29  Robert Dewar  <dewar@adacore.com>
6774         * sem_prag.adb (ip, rv): Prevent from being optimized away.
6775         * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
6776         * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
6777         reformatting.
6779 2014-07-29  Vincent Celier  <celier@adacore.com>
6781         * prj-pp.adb: Minor comment update.
6782         * frontend.adb: If a target dependency info file has been read
6783         through switch -gnateT= add it to the dependencies of the source
6784         being compiled.
6786 2014-07-29  Robert Dewar  <dewar@adacore.com>
6788         * sem_ch3.adb, prj.adb: Minor reformatting.
6790 2014-07-29  Vincent Celier  <celier@adacore.com>
6792         * prj-pp.adb (Pretty_Print.Output_Project_File): New
6793         procedure to output project file names between quotes without
6794         concatenation, even if the line is too long.
6795         (Pretty_Print): Use Output_Project_File for project being extended and
6796         project imported.
6798 2014-07-29  Vincent Celier  <celier@adacore.com>
6800         * gnat_ugn.texi: Document that configuration pragmas files are
6801         added to the dependencies, unless they contain only pragmas
6802         Source_File_Name_Project.
6804 2014-07-29  Robert Dewar  <dewar@adacore.com>
6806         * frontend.adb: Minor reformatting.
6808 2014-07-29  Robert Dewar  <dewar@adacore.com>
6810         * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
6811         (Expand_Actuals): Make sure predicate checks are properly applied
6812         for the case of OUT or IN OUT parameters.
6813         * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
6814         predicate tests on arguments for Finalize
6815         * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
6816         if predicate tests on subprogram arguments should be skipped.
6817         * sem_util.ads (No_Predicate_Test_On_Arguments): New function
6819 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6821         * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
6822         clause for the object and the expression is an aggregate, defer
6823         resolution and expansion of the aggregate until the freeze point
6824         of the entity.
6825         * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
6826         the parent node is an N_Reference generated during expansion.
6828 2014-07-29  Vincent Celier  <celier@adacore.com>
6830         * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
6832 2014-07-29  Robert Dewar  <dewar@adacore.com>
6834         * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
6835         prepcomp.ads: Minor reformatting and code clean up.
6836         * exp_ch6.adb (Expand_Actuals): Generate predicate test
6837         unconditionally for case of OUT or IN OUT actual (before this
6838         was generated only for certain subcases, which is wrong, the
6839         test is always needed).
6841 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6843         * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
6844         * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
6845         until context type is available.
6846         * sem_res.adb (Resolve_Allocator): In the case of a qualified
6847         expression, complete resolution of expression.
6848         (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
6849         to apply Ada2012 checks on aliased formals, as well as
6850         accesibility checks when the context of the call is an allocator
6851         or a qualified expression.
6852         * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
6853         Moved here from sem_ch3.
6854         (Object_Access_Level): Handle properly aliased formals and
6855         aggregates.
6856         * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
6857         now properly performed in sem_res (Resolve_Actuals,
6858         Check_Aliased_Parameter).
6860 2014-07-29  Yannick Moy  <moy@adacore.com>
6862         * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
6863         * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
6864         function to decide when a subprogram can be inlined in GNATprove mode.
6865         (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
6866         condition for possible inlining.
6867         * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
6868         for Inline_Always in GNATprove mode.
6869         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
6870         body for subprograms in GNATprove mode, under debug flag -gnatdQ.
6871         * sem_prag.adb Minor change in comments.
6872         * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
6873         inside subprograms marked as SPARK_Mode On.
6874         * sinfo.ads: Minor typo fix.
6876 2014-07-29  Vincent Celier  <celier@adacore.com>
6878         * frontend.adb: Add dependency on gnat.adc when taken into account
6879         and on non-temporary configuration pragmas files specified in
6880         switches -gnatec.
6881         * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
6882         dependencies on configuration pragmas files.
6884 2014-07-29  Pat Rogers  <rogers@adacore.com>
6886         * gnat_ugn.texi: Minor clarification to the explanation for the
6887         GNATtest -v switch.
6889 2014-07-29  Robert Dewar  <dewar@adacore.com>
6891         * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
6892         documentation that explains the need for this extended range
6893         (use by C_Pass_By_Copy).
6895 2014-07-29  Robert Dewar  <dewar@adacore.com>
6897         * gnat_rm.texi, sem_prag.adb: Minor reformatting.
6899 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
6901         * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
6902         complexity metrics.
6904 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6906         PR ada/60652
6907         * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
6908         CRTSCTS to be visible.
6910 2014-07-29  Bob Duff  <duff@adacore.com>
6912         * g-trasym.adb, g-trasym.ads: Code cleanup.
6914 2014-07-29  Doug Rupp  <rupp@adacore.com>
6916         * sigtramp-vxworks.c: Minor reformatting.
6918 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6920         * gnat_rm.texi: No doc needed for Ada2012 aspect
6921         Implicit_dereference.
6923 2014-07-29  Robert Dewar  <dewar@adacore.com>
6925         * sem_attr.adb (Attribute_12): New array
6926         (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
6927         (Check_Ada_2012_Attribute): Removed.
6929 2014-07-29  Doug Rupp  <rupp@adacore.com>
6931         * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
6932         PPC, and e500.
6933         * sigtramp-vxworks.c: New file.
6934         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
6936 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6938         * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
6939         derived array type, add information about component type, which
6940         was previously missing in ali file.
6941         * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
6943 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6945         * sem_ch3.adb (Constrain_Corresponding_Record): For the case
6946         of the subtype created for a record component, do not mark
6947         the subtype as frozen. For one thing, this is anomalous (in
6948         particular, the base type might not itself be frozen yet);
6949         furthermore, proper freezing of the subtype must happen in any
6950         case. So, we just mark the subtype as requiring delayed freezing
6951         (and we'll actually freeze it when generating the init_proc of
6952         the enclosing record).
6953         Also change the name of the constrained record subtype (append a
6954         'C' so that it is clearly different from the unconstrained record
6955         type, "related_idV") to make debugging easier.
6956         (Process_Full_View): When creating a full subtype for a pending
6957         private subtype, re-establish the scope of the private subtype
6958         so that we get proper visibility on outer discriminants.
6959         * exp_ch3.adb (Build_Init_Statements): Freeze any component
6960         subtype that is not frozen yet.
6962 2014-07-29  Vincent Celier  <celier@adacore.com>
6964         * prj-proc.adb (Recursive_Process): Always initialize the
6965         environment when the project is an aggregate project, even when
6966         it is not the root tree.
6967 2014-07-29  Robert Dewar  <dewar@adacore.com>
6969         * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
6970         * gnat_rm.texi: Complete list of implementation aspects.
6971         * aspects.ads: Minor comment clarification.
6973 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6975         * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
6976         is a null-excluding access type, do not generate a constraint
6977         check if Suppress_Assignment_Checks is set on assignment node.
6978         * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
6979         parameter of a null-excluding access type, there is access check
6980         on entry, so set Suppress_Assignment_Checks on generated statement
6981         that assigns actual to parameter block.
6982         * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
6984 2014-07-29  Robert Dewar  <dewar@adacore.com>
6986         * gnat_rm.texi: Change theta to @ in documentation of aspect
6987         Dimension_System.
6989 2014-07-29  Robert Dewar  <dewar@adacore.com>
6991         * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
6992         are now on pragma.
6993         * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
6994         of Uneval_Old_*
6995         * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
6996         * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
6998 2014-07-29  Javier Miranda  <miranda@adacore.com>
7000         * types.ads Update documentation on how to add new reason codes
7001         for exceptions.
7002         (RT_Exception_Code): Keep values ordered by their
7003         reason code.  Required by the .NET backend.
7004         (RT_CE_Exceptions): Subtype declaration removed.
7005         (RT_PE_Exceptions): Subtype declaration removed.
7006         (RT_SE_Exceptions): Subtype declaration removed.
7007         (Kind): New mapping table of RT_Exception_Codes.
7008         * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
7009         new mapping table.
7010         * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
7011         mapping table.  (Make_Raise_Program_Error): Updated to use the
7012         new mapping table.
7013         (Make_Raise_Storage_Error): Updated to use the new mapping table.
7014         * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
7015         their reason code.
7017 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7019         * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
7020         distributed stubs generation.
7021         * exp_ch3.adb: Minor reformatting.
7023 2014-07-29  Yannick Moy  <moy@adacore.com>
7025         * sinfo.ads: Document constraint between frontend and GNATprove.
7027 2014-07-29  Robert Dewar  <dewar@adacore.com>
7029         * a-except.adb: Minor comment clarification.
7031 2014-07-29  Robert Dewar  <dewar@adacore.com>
7033         * gnat_rm.texi: Complete list of implementation attributes.
7034         * snames.ads-tmpl: Clean up list of impl-defined attributes.
7036 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7038         * freeze.adb (Freeze_Record_Type): Perform various
7039         volatility-related checks.
7041 2014-07-29  Robert Dewar  <dewar@adacore.com>
7043         * sem_ch3.adb, sem_eval.adb: Minor reformatting.
7045 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7047         * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
7048         the case where the attribute reference appears in a nested scope
7049         from that of the subprogram prefix.
7050         * sem_attr.adb: Minor reformatting.
7052 2014-07-29  Robert Dewar  <dewar@adacore.com>
7054         * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
7055         initialization options.
7057 2014-07-29  Robert Dewar  <dewar@adacore.com>
7059         * sinfo.ads: Minor comment addition.
7061 2014-07-29  Bob Duff  <duff@adacore.com>
7063         * sem_eval.adb, sem_ch13.adb: Minor reformatting.
7065 2014-07-29  Doug Rupp  <rupp@adacore.com>
7067         * init.c: Complete previous change.
7069 2014-07-29  Robert Dewar  <dewar@adacore.com>
7071         * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
7072         array case.
7074 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7076         * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
7077         and the completion will appear in the same declarative part,
7078         create elaboration flag.
7079         * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
7080         is a completion of a declaration in the same declarative part,
7081         and the subprogram has had its address taken, add elaboration
7082         check inside the subprogram body, to detect elaboration errors
7083         that may occur through indirect calls.
7085 2014-07-29  Doug Rupp  <rupp@adacore.com>
7087         * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
7088         * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
7090 2014-07-29  Vincent Celier  <celier@adacore.com>
7092         * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
7093         runtime directorie specified with two switches --RTS= designate
7094         the same directory, even when there are no literarily the same.
7096 2014-07-29  Robert Dewar  <dewar@adacore.com>
7098         * gnat_ugn.texi: Minor documentation clarification.
7099         * switch-c.adb: Minor reformatting.
7101 2014-07-29  Robert Dewar  <dewar@adacore.com>
7103         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
7104         Fix incorrect RTE call which caused bomb if pragma was in
7105         configuration pragma file.
7107 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
7109         * expect.c (__gnat_expect_poll): Fix typo in previous change.
7110         * g-expect.adb: Update comments.
7112 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
7114         * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
7115         (Default_Attribute_Count): Bump to 16 on native platforms.
7117 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7119         * sem_res.adb: Add guard to front-end inlining for SPARK.
7121 2014-07-29  Robert Dewar  <dewar@adacore.com>
7123         * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
7124         Minor reformatting.
7126 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7128         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
7129         inline in GNATprove mode when subprogran is marked Inline_Always.
7130         * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
7131         mode if body to inline is available.
7132         * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
7133         effective in GNATprove mode.
7134         * sem_ch10.adb (Analyze_Compilation_Unit): Call
7135         Check_Package_Body_For_Inlining in GNATprove mode, so that body
7136         containing subprograms with Inline_Always can be available before
7137         calls to them.
7139 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7141         * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
7142         to Check_Package_Body_For_Inlining, to prevent confusion with other
7143         inlining subprograms.
7145 2014-07-29  Robert Dewar  <dewar@adacore.com>
7147         * opt.ads: Minor comment update.
7148         * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
7149         we want setting of Uneval_Old at time of encountering the aspect.
7150         * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
7151         of Opt.Uneval_Old.
7152         * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
7153         New function (Set_Uneval_Old_Accept): New procedure.
7154         (Set_Uneval_Old_Warn): New procedure.
7155         * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
7157 2014-07-29  Robert Dewar  <dewar@adacore.com>
7159         * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
7160         * snames.ads-tmpl: Minor reformatting.
7161         * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
7162         to give <Error>.  Not clear why this was there, but the compiler
7163         sources do not reference Name_Error, and this interfered with
7164         the circuits for pragma Unevaluated_Use_Of_Old.
7166 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7168         * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
7169         types in SPARK 2014 (again).
7170         * sem_res.adb (Is_OK_Volatile_Context): New routine.
7171         (Resolve_Entity_Name): Ensure that a volatile object with
7172         enabled properties Async_Writers or Effectire_Reads appears in
7173         a non-interfering context.
7175 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7177         * sem_ch6.adb: Move Build_Body_To_Inline,
7178         Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
7179         * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
7180         * inline.ads, inline.adb: Package now contains subprograms that
7181         implement front-end inlining.  No functional changes, no test
7182         needed.
7184 2014-07-29  Robert Dewar  <dewar@adacore.com>
7186         * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
7188 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7190         * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
7191         is a limited view when the context is a package body, because
7192         there is no subsequent place at which the non-limited view may
7193         become visible.
7194         (Process_Formals): Ditto.
7195         * sinfo.ads, par-ch3.adb: Minor reformatting.
7197 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
7199         * expect.c (__gnat_expect_poll): New parameter dead_process
7200         used to return the dead process among the array of file
7201         descriptors. The Windows, VMS and HPUX implementations now
7202         properly report the dead process via this parameter. Other unixes
7203         don't need it.
7204         * g-expect.adb (Poll): Adapt to the C profile.
7205         (Expect_Internal): Use the new parameter to properly close the
7206         File Descriptor.  This then can be properly reported by the
7207         function First_Dead_Process as is expected.
7209 2014-07-29  Robert Dewar  <dewar@adacore.com>
7211         * gnat_ugn.texi: Minor clarification of -gnatQ switch.
7213 2014-07-29  Robert Dewar  <dewar@adacore.com>
7215         * einfo.adb (Derived_Type_Link): New function
7216         (Set_Derived_Type_Link): New procedure.
7217         (Write_Field31_Name): Output Derived_Type_Link.
7218         * einfo.ads: New field Derived_Type_Link.
7219         * exp_ch6.adb (Expand_Call): Warn if change of representation
7220         needed on call.
7221         * sem_ch13.adb: Minor addition of ??? comment.
7222         (Rep_Item_Too_Late): Warn on case that is legal but could cause an
7223         expensive implicit conversion.
7224         * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
7226 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7228         * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
7229         to DF_Id. Add new local variable DF_Call. Do not perform any
7230         elaboration-related checks on the call to the partial finalization
7231         routine within an init proc to avoid generating bogus elaboration
7232         warnings on expansion-related code.
7233         * sem_elab.adb (Check_A_Call): Move constant Access_Case to
7234         the top level of the routine.  Ensure that Output_Calls takes
7235         into account flags -gnatel and -gnatwl when emitting warnings
7236         or info messages.
7237         (Check_Internal_Call_Continue): Update the call to Output_Calls.
7238         (Elab_Warning): Moved to the top level of routine Check_A_Call.
7239         (Emit): New routines.
7240         (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
7241         comment on usage. Output all warnings or info messages only when the
7242         caller context demands it and the proper elaboration flag is set.
7244 2014-07-29  Yannick Moy  <moy@adacore.com>
7246         * sem_attr.adb (Analyze_Attribute/Attribute_Old):
7247         Check rule about Old appearing in potentially unevaluated
7248         expression everywhere, not only in Post.
7250 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
7252         * sem_prag.adb: Update comment.
7253         * a-except.adb, a-except-2005.adb: Minor editing.
7255 2014-07-29  Pierre-Marie Derodat  <derodat@adacore.com>
7257         * exp_dbug.adb (Debug_Renaming_Declaration):
7258         Do not create renaming entities for renamings of non-packed
7259         objects and for exceptions.
7261 2014-07-29  Robert Dewar  <dewar@adacore.com>
7263         * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
7264         sem_ch6.adb, par-ch3.adb: Minor reformatting.
7266 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7268         * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
7269         subtype indication in an extended return statement when the
7270         return value is an ancestor of the return type of the function,
7271         and that return type is a null record extension.
7273 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7275         * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
7276         message produced for the case of a type-related representation
7277         item that is made illegal by 13.10(1).
7278         * gnat_rm.texi (Scalar_Storage_Order): Minor change in
7279         documentation.
7281 2014-07-29  Robert Dewar  <dewar@adacore.com>
7283         * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
7284         * erroutc.adb (Output_Error_Msgs): Take wide characters into
7285         account in computing position of error flags.
7286         * sinput.adb (Get_Column_Number): Take wide characters into
7287         account.
7289 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7291         * par-ch3.adb (P_Access_Type_Definition): The subtype indication
7292         in an access type definition can carry a null_exclusion indicator.
7293         * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
7294         carries a null_exclusion indicator, verify that the subtype
7295         indication denotes an access type, and create a null-excluding
7296         subtype for it.
7297         * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
7298         defined on N_Access_To_Object_Definition to indicate that the
7299         subtype indication carries a null_exclusion indicator.
7301 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7303         * exp_ch6.adb (Add_Extra_Actual): Do not construct
7304         the extra actual by name, generate a reference instead.
7306 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
7308         * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
7309         Allow_Integer_Address if already set.
7310         * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
7311         Fix order, for consistency with Rmsg_xx declarations.
7313 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7315         * sem_ch4.adb (Complete_Object_Operation): If the type of the
7316         candidate subprogram is a limited view, use non-limited view
7317         when available.
7319 2014-07-29  Robert Dewar  <dewar@adacore.com>
7321         * sem_ch13.adb: Minor change in RM reference.
7322         * sem_mech.ads: Minor reformatting.
7323         * einfo.ads: Minor comment fix.
7324         * types.ads: Minor correction to range given for Mechanism_Type.
7325         * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
7326         check predicate on way out for OUT or IN OUT parameters.
7327         * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
7328         better (P_Range_Constraint): Corresponding fix.
7329         * checks.ads: Minor comment clarification.
7331 2014-07-29  Gary Dismukes  <dismukes@adacore.com>
7333         * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
7334         and Treat_As_Volatile flags based on whether the renamed object
7335         is a volatile object.
7337 2014-07-29  Olivier Hainque  <hainque@adacore.com>
7339         * g-debpoo.adb
7340         (Default_Alignment): Rename as Storage_Alignment. This is not
7341         a "default" that can be overriden. Augment comment to clarify
7342         intent and document why we need to manage alignment padding.
7343         (Header_Offset): Set to Header'Object_Size instead of 'Size
7344         rounded up to Storage_Alignment. Storage_Alignment on the
7345         allocation header is not required by our internals so was
7346         overkill. 'Object_Size is enough to ensure proper alignment
7347         of the header address when substracted from a storage address
7348         aligned on Storage_Alignment.
7349         (Minimum_Allocation): Rename as Extra_Allocation, conveying that
7350         this is always added on top of the incoming allocation requests.
7351         (Align): New function, to perform alignment rounding operations.
7352         (Allocate): Add comments on the Storage_Address computation
7353         scheme and adjust so that the alignment padding applies to that
7354         (Storage_Address) only.
7356 2014-07-29  Robert Dewar  <dewar@adacore.com>
7358         * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
7359         pragma Unreferenced.
7360         * cstand.adb (Create_Standard): Use E_Array_Type for standard
7361         string types. Make sure index of Any_String/Any_Array is in a list.
7362         * errout.adb: Minor reformatting.
7364 2014-07-29  Robert Dewar  <dewar@adacore.com>
7366         * gnat_ugn.texi: Clean up and correct documentation of warnings.
7367         * usage.adb: Minor corrections to make sure warnings are properly
7368         documented.
7369         * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
7370         (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
7372 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7374         * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
7375         created to match internal sequence numbers between compilations
7376         with/without abort must have its type properly set.
7378 2014-07-29  Robert Dewar  <dewar@adacore.com>
7380         * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
7381         (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
7382         SSO_Default_Specified.
7383         * ali.ads (ALIs_Record): Add field SSO_Default
7384         (SSO_Default_Specified): New global switch.
7385         * bcheck.adb (Check_Consistent_SSO_Default): New procedure
7386         (Check_Configuration_Consistency): Call this procedure
7387         * einfo.adb (SSO_Set_High_By_Default): New
7388         function (SSO_Set_Low_By_Default): New function
7389         (Set_SSO_Set_High_By_Default): New procedure
7390         (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
7391         List new flags
7392         * einfo.ads (SSO_Set_Low_By_Default): New flag
7393         (SSO_Set_High_By_Default): New flag
7394         * freeze.adb (Set_SSO_From_Default): New procedure
7395         (Freeze_Array_Type): Call Set_SSO_From_Default
7396         (Freeze_Record_Type): Call Set_SSO_From_Default
7397         * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
7398         * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
7399         * lib-writ.ads: Add OL/OH parameters to P line
7400         * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
7401         * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
7402         New global switch
7403         * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
7404         set by default using pragma Default_Scalar_Storage_Order.
7405         * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
7406         * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
7407         Clear SSO defaults when explicit SSO is inherited.
7408         (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
7409         explicit SSO is specified.
7410         (Inherit_Aspects_At_Freeze_Point):
7411         Clear SSO default when inheriting SSO.
7412         * sem_ch3.adb (Set_Default_SSO): New procedure
7413         (Analyze_Private_Extension_Declaration): Set defualt SSO
7414         (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
7415         (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
7416         ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
7417         (Record_Type_Declaration): ditto
7418         * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
7419         Save Default_SSO
7420         * sem_prag.adb (Analyze_Pragma, case
7421         Default_Scalar_Storage_Order): Set Default_SSO
7423 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7425         * sem_ch6.adb (Valid_Operator_Definition): Verify that
7426         all parameter have mode IN. This check must be done here for
7427         subprogram instantiations that have operator names, because their
7428         analysis does not follow the same path as that for subprogram
7429         declarations.
7431 2014-07-29  Robert Dewar  <dewar@adacore.com>
7433         * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
7434         to make sure that the Etype of a component of the corresponding
7435         record type is present before trying to freeze it.
7436         * sem_ch5.adb: Minor reformatting.
7438 2014-07-29  Robert Dewar  <dewar@adacore.com>
7440         * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
7441         a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
7442         and then use it when a stream operation is used from a library generic
7443         when the restriction (No_Streams) is active.
7445 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7447         * projects.texi: Fix minor typo.
7449 2014-07-29  Yannick Moy  <moy@adacore.com>
7451         * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
7453 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
7455         * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
7456         CodePeer mode.
7458 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7460         * exp_ch7.adb (Find_Last_Init): Add local variable
7461         Deep_Init_Found. Check the statement immediately following the
7462         declaration if [Deep_]Initialization was not found.
7464 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7466         * exp_util.adb (Is_Aliased): It appears that
7467         'reference-d and renamed objects still play some role in Boolean
7468         expression with actions and cannot be finalized immediately.
7470 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7472         * exp_dbug.adb (Qualify_Needed):  For debugging purposes,
7473         Loop names are not part of the full qualification of entity names.
7475 2014-07-29  Robert Dewar  <dewar@adacore.com>
7477         * einfo.adb (Has_Protected): Test base type.
7478         * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
7479         that we always properly check No_Protected_Type_Allocators.
7481 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7483         * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
7484         loop declarations as well.
7485         * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
7486         to an iterator loop, because it may contain local renaming
7487         declarations that require debugging information.
7489 2014-07-29  Robert Dewar  <dewar@adacore.com>
7491         * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
7493 2014-07-29  Robert Dewar  <dewar@adacore.com>
7495         * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
7496         (Set_Static_Real_Or_String_Predicate): New procedure
7497         * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
7498         string predicates (Is_Predicate_Static): Handle static string
7499         predicates.
7500         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
7501         New procedure (Check_Expression_Against_Static_Predicate):
7502         Deal with static string predicates, now fully implemented
7503         (Eval_Relational_Op): Allow string equality/inequality as static
7504         if not comes from source.
7506 2014-07-29  Robert Dewar  <dewar@adacore.com>
7508         * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
7509         einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
7510         sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
7511         handling. Change name of Discrete_Predicate to
7512         Discrete_Static_Predicate, and replace testing of the presence of this
7513         field by testing the flag Has_Static_Expression.
7515 2014-07-29  Robert Dewar  <dewar@adacore.com>
7517         * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
7518         * opt.adb: Handle Uneval_Old.
7519         * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
7520         * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
7521         * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
7522         * sem_attr.adb (Uneval_Old_Msg): New procedure.
7523         * sem_ch8.adb (Push_Scope): Save Uneval_Old.
7524         (Pop_Scope): Restore Uneval_Old.
7525         * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
7526         Implemented.
7527         * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
7528         Add entries for Name_Warn, Name_Allow.
7530 2014-07-29  Robert Dewar  <dewar@adacore.com>
7532         * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
7533         to Is_OK_Static_Range.
7534         * sem_attr.adb (Eval_Attribute): Make sure we properly flag
7535         static attributes (Eval_Attribute, case Size): Handle size of
7536         zero properly (Eval_Attribute, case Value_Size): Handle size of
7537         zero properly.
7538         * sem_ch13.adb: Minor reformatting.
7539         * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
7540         Is_Static_Range to Is_OK_Static_Range.
7541         * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
7542         wrong in several ways (Is_Static_Range): Moved here from spec
7543         (Is_Static_Subtype): Moved here from spec Change some incorrect
7544         Is_Static_Subtype calls to Is_OK_Static_Subtype.
7545         * sem_eval.ads: Add comments to section on
7546         Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
7547         Add clarifying comments (Is_Static_Range): Moved to body
7548         (Is_Statically_Unevaluated): New function.
7549         * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
7550         Is_Static_Range to Is_OK_Static_Range.
7551         * sinfo.ads: Additional commments for Is_Static_Expression noting
7552         that clients should almost always use Is_OK_Static_Expression
7553         instead. Many other changes throughout front end units to obey
7554         this rule.
7555         * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
7556         for enumeration literal.
7557         * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
7558         lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
7559         sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
7560         exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
7561         Replace all occurrences of Is_Static_Expression by
7562         Is_OK_Static_Expression.
7564 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7566         * exp_ch4.adb (Process_Transient_Object): Remove constant
7567         In_Cond_Expr, use its initialization expression in place.
7568         * exp_ch7.adb (Process_Declarations): There is no need to check
7569         that a transient object being hooked is controlled as it would
7570         not have been hooked in the first place.
7571         * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
7572         objects are not considered aliased when the related context is
7573         a Boolean expression_with_actions.
7574         (Requires_Cleanup_Actions): There is no need to check that a transient
7575         object being hooked is controlled as it would not have been hooked in
7576         the first place.
7578 2014-07-29  Robert Dewar  <dewar@adacore.com>
7580         * errout.adb: Minor reformatting.
7582 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7584         * exp_ch3.adb (Default_Initialize_Object): Add new variables
7585         Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
7586         not allowed to ensure the symmetrical generation of symbols.
7587         * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
7588         and E_Decl. Add new variables Decl and Dummy. Generate a dummy
7589         temporary when aborts are not allowed to ensure symmertrical
7590         generation of symbols.
7591         * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
7592         Dummy. Generate a dummy temporary when aborts are not allowed
7593         to ensure symmertrical generation of symbols.
7595 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7597         * exp_dbug.adb (Debug_Renaming_Declaration): For an object
7598         renaming, indicate that the renamed entity itself needs debug
7599         information. This is necessary if that entity is a temporary,
7600         e.g. part of the expansion of an explicit dereference in an
7601         iterator.
7603 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7605         * errout.adb (Set_Error_Posted): When propagating flag to
7606         an enclosing named association, also propagate to the parent
7607         of that node, so that named and positional associations are
7608         treated consistently.
7610 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7612         * sem_attr.adb (Resolve_Attribute, case 'Update):  Set
7613         Do_Range_Check properly on array component expressions that
7614         have a scalar type. In GNATprove mode, only checks on scalar
7615         components must be marked by the front-end.
7617 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7619         * sem_res.adb (Resolve_Type_Conversion): If the type of the
7620         expression is a limited view, use the non-limited view when
7621         available.
7623 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7625         * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
7626         case statement as coming from a conditional expression.
7627         (Expand_N_If_Expression): Mark the generated if statement as
7628         coming from a conditional expression.
7629         * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
7630         objects found in case statement alternatives when the case
7631         statement is actually a case expression.
7632         (Expand_N_If_Statement):
7633         Do not process controlled objects found in an if statement when
7634         the if statement is actually an if expression.
7635         * sinfo.adb (From_Conditional_Expression): New routine.
7636         (Set_From_Conditional_Expression): New routine.
7637         * sinfo.ads Add new semantic flag From_Conditional_Expression and
7638         update related nodes.
7639         (From_Conditional_Expression): New routine along with pragma Inline.
7640         (Set_From_Conditional_Expression): New routine along with pragma Inline.
7642 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7644         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
7645         formal parameter Obj_Id and update the comment on usage. Renamed
7646         Obj_Typ to Func_Typ and update all occurrences.
7647         (Find_Last_Init): Remove formal parameter Decl and update the comment
7648         on usage.
7649         Remove local constants Obj_Id and Obj_Typ. Remove local variables
7650         Init_Typ and Is_Conc. Remove the extraction of the initialization type.
7651         (Find_Last_Init_In_Block): Remove formal parameter
7652         Init_Typ and update the comment on usage.
7653         (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
7654         on usage. Check whether the procedure call is an initialization
7655         procedure of either the object type or the initialization type.
7656         (Is_Init_Proc_Of): New routine.
7657         (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
7658         routine. Add new variable Init_Typ. Add circuitry to extract the object
7659         type as well as the initialization type.
7661 2014-07-29  Robert Dewar  <dewar@adacore.com>
7663         * sem_case.adb: Minor reformatting.
7664         * sem_aux.ads: Minor reformatting.
7666 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7668         * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
7669         pointer on these fields, even though they are semantic, because
7670         subsequent analysis and expansion of action nades may require
7671         exploring the tree, for example to locate a node to be wrapped
7672         when a function with controlled result is called.
7674 2014-07-29  Claire Dross  <dross@adacore.com>
7676         * sem_aux.adb (Get_Binary_Nkind): Use case on
7677         Name_Id instead of an intermediate string.
7678         (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
7679         string.
7681 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
7683         * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
7684         about processing sources with preprocessor directives.
7686 2014-07-24  Martin Liska  <mliska@suse.cz>
7688         * gcc-interface/trans.c (finalize_nrv): Adjust function call.
7689         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
7690         (gnat_write_global_declarations): Likewise.
7692 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
7694         * gnat_rm.texi: Clean up for makeinfo 5.2.
7696 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
7698         * gnat_rm.texi (Machine Code Insertions): Clean up.
7700 2014-07-18  Robert Dewar  <dewar@adacore.com>
7702         * exp_ch7.adb: Minor reformatting.
7704 2014-07-18  Claire Dross  <dross@adacore.com>
7706         * sem_aux.ads (Get_Binary_Nkind): New function that returns
7707         the Node_Kind value of an entity defining a binary operator.
7708         (Get_Unary_Nkind): New function that returns the Node_Kind value
7709         of an entity defining a unary operator.
7711 2014-07-18  Pascal Obry  <obry@adacore.com>
7713         * sysdep.c: comment update.
7714         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
7715         platforms where it is known to be supported.
7717 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7719         * sem_dist.adb (Process_Remote_AST_Declaration): Need
7720         to set Fat_Type's Ekind in order to be able to use its
7721         Corresponding_Remote_Type attribute.
7723 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7725         * einfo.adb Last_Aggregate_Assignment is now Node 30.
7726         (Last_Aggregate_Assignment): Include
7727         constants in the assertion. Update the underlying node.
7728         (Set_Last_Aggregate_Assignment): Include constants in the
7729         assertion. Update the underlying node.  (Write_Field11_Name):
7730         Remove the entry for Last_Aggregate_Assignment.
7731         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
7732         * einfo.ads Update the node designation and usage of attribute
7733         Last_Aggregate_Assignment.
7734         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
7735         assignment statement used to initialize a controlled object.
7736         (Late_Expansion): Store the last assignment statement used to
7737         initialize a controlled record or an array of controlled objects.
7738         * exp_ch3.adb (Expand_N_Object_Declaration): Default
7739         initialization of objects is now performed in a separate routine.
7740         (Default_Initialize_Object): New routine.
7741         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
7742         Obj_Id. Update the comment on usage.
7743         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
7744         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
7745         (Is_Init_Call): Add formal parameter Init_Typ. Update the
7746         comment on usage.  Account for the type init proc when trying
7747         to determine whether a statement is an initialization call.
7748         (Make_Adjust_Call): Rename formal parameter For_Parent to
7749         Skip_Self. Update all occurrences of For_Parent. Account for
7750         non-tagged types. Update the call to Make_Call.
7751         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
7752         comment on usage. Update all occurrences of For_Parent.
7753         (Make_Final_Call): Rename formal parameter For_Parent to
7754         Skip_Self. Update all occurrences of For_Parent. Account
7755         for non-tagged types. Update the call to Make_Call.
7756         (Process_Object_Declaration): Most variables and constants are
7757         now local to the routine.
7758         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
7759         For_Parent to Skip_Self. Update the comment on usage.
7760         (Make_Final_Call): Rename formal parameter For_Parent to
7761         Skip_Self. Update the comment on usage.
7763 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7765         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
7766         can be a procedure that is implemented by entry, and have a
7767         formal that is a synchronized interface.  It does not have to
7768         be declared as a protected operation.
7770 2014-07-18  Robert Dewar  <dewar@adacore.com>
7772         * gnat_rm.texi: Remove mention of obsolete attributes
7773         Max[_Interrupt]_Priority, which have never been implemented
7774         (or at the very least were removed long ago if they ever were
7775         implemented.  Add documentation of Max[_Interrupt]_Priority
7776         constants in package System.
7777         * ttypes.ads: Document actual handling of package System,
7778         rather than a historical fantasy version.  Remove mention of
7779         non-existent attributes Max[_Interrupt]_Priority.
7781 2014-07-18  Pascal Obry  <obry@adacore.com>
7783         * a-witeio.adb (Put): No 16-bit character output when text
7784         translation is disabled.
7785         * i-cstrea.ads: Code clean up.
7787 2014-07-18  Robert Dewar  <dewar@adacore.com>
7789         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
7790         static attributes.
7792 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7794         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
7796 2014-07-18  Pascal Obry  <obry@adacore.com>
7798         * adaint.c: Do not include wchar.h on VxWorks.
7799         * mingw32.h: Remove obsolete definition.
7801 2014-07-18  Pascal Obry  <obry@adacore.com>
7803         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
7804         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
7805         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
7806         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
7808 2014-07-18  Pascal Obry  <obry@adacore.com>
7810         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
7811         * a-ztexio.adb: Likewise.
7812         * a-witeio.adb: Likewise.
7813         (Open): Pass file's translation mode to set_text_mode.
7814         * s-ficobl.ads (Content_Encoding): New type.
7815         (Text_Content_Encoding): New subtype.
7816         (AFCB): Rename Is_Text_File to Text_Encoding.
7817         * s-fileio.adb (Open): Handles new text_translation
7818         values. Remove Is_Text_File which is equivalent to Text_Encoding
7819         in Text_Content_Encoding.
7820         * adaint.h (__gnat_set_mode): New routine.
7821         * sysdep.c (__gnat_set_wide_text_mode): Removed.
7822         (__gnat_set_mode): New routine.
7824 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7826         * gcc-interface/decl.c, gcc-interface/trans.c,
7827         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
7828         Is_Packed_Array_Impl_Type.
7830 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7832         * sem_util.adb: Minor typo correction.
7834 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
7836         * gnat_rm.texi: Complete previous change.
7838 2014-07-18  Pascal Obry  <obry@adacore.com>
7840         * s-fileio.adb: Minor style fix.
7842 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7844         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
7845         specification of stream attributes for subtypes that are not
7846         first subtypes, to prevent malformed rep_item chains in the case
7847         of such illegal specifications for discriminated private subtypes.
7848         (Check_Overloaded_Name): Verify that the name is an entity name
7849         before other checks.
7851 2014-07-18  Pascal Obry  <obry@adacore.com>
7853         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
7855 2014-07-18  Robert Dewar  <dewar@adacore.com>
7857         * sem_prag.adb, sem_attr.adb,
7858         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
7860 2014-07-18  Pascal Obry  <obry@adacore.com>
7862         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
7863         * initialize.c (__gnat_wide_text_translation_required): Defined here.
7865 2014-07-18  Pascal Obry  <obry@adacore.com>
7867         * adaint.c (__gnat_fputwc): New routine.
7868         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
7870 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7872         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
7873         (Set_Stores_Attribute_Old_Prefix): New routine.
7874         (Stores_Attribute_Old_Prefix): New routine.
7875         (Write_Entity_Flags):
7876         Output flag Stores_Attribute_Old_Prefix.
7877         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
7878         comment on usage.
7879         (Set_Stores_Attribute_Old_Prefix): New routine
7880         along with pragma Inline.
7881         (Stores_Attribute_Old_Prefix): New
7882         routine along with pragma Inline.
7883         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
7884         constant which captures the result of attribute 'Old's prefix.
7885         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
7886         relocated expression which acted as a prefix of attribute 'Old.
7888 2014-07-18  Bob Duff  <duff@adacore.com>
7890         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
7891         null before dispatching to Deallocate_Subpool.
7892         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
7893         parameter of Default_Subpool_For_Pool to 'in out'.
7894         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
7895         a message to the raise.
7896         * sem_util.adb: Minor reformatting.
7898 2014-07-18  Robert Dewar  <dewar@adacore.com>
7900         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7901         Mark expression as non-static if it fails static predicate check,
7902         and issue additional warning.
7904 2014-07-18  Pascal Obry  <obry@adacore.com>
7906         * a-witeio.adb (Put): Control translation based on
7907         wide_text_translation_required.
7908         * adaint.c (CurrentCCSEncoding): New variable.
7909         * initialize.c (__gnat_initialize): On Windows initialize
7910         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
7911         environment variable.
7912         * mingw32.h (CurrentCCSEncoding): New external.
7913         (__gnat_wide_text_translation_required): Likewise.
7914         * sysdep.c (wide_text_translation_required): New variable.
7915         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
7917 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7919         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
7920         variable Refined_States.  Add global variable Matched_Items.
7921         (Check_Dependency_Clause): Account for dependency
7922         clauses utilizing states with visible null refinements.
7923         (Is_Null_Refined_State): New routine.
7924         (Match_Items): Record each successfully matched item of pragma Depends.
7925         (Record_Item): New routine.
7927 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7929         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
7930         Do_Range_Check flag on a dynamic index expression used in a
7931         component association in the argument of Update.
7933 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7935         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
7937 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7939         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
7940         of enclosing blocks, loops and the enclosing function using a
7941         parent-based traversal.
7942         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
7943         stack reclamation if the iterator loop contains a return statement
7944         that uses the stack.
7945         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
7946         patch up the scope stack as the secondary stack management now
7947         takes into account the enclosing function of the iterator loop.
7949 2014-07-18  Robert Dewar  <dewar@adacore.com>
7951         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
7953 2014-07-18  Robert Dewar  <dewar@adacore.com>
7955         * einfo.adb (Has_Static_Predicate): New function.
7956         (Set_Has_Static_Predicate): New procedure.
7957         * einfo.ads (Has_Static_Predicate): New flag.
7958         * sem_ch13.adb (Is_Predicate_Static): New function
7959         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
7960         (Add_Call): Minor change in Sloc of generated expression
7961         (Add_Predicates): Remove setting of Static_Pred, no longer used.
7962         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
7963         replace by use of the entity flag Has_Static_Predicate_Aspect.
7964         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
7965         and issue warning that predicate is not checked for now.
7966         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
7967         spec.
7968         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7969         Carry out check for any case where there is a static predicate,
7970         and output appropriate message.
7971         * sinfo.ads: Minor comment corrections.
7973 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7975         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
7976         from an untagged private type whose full view is tagged, the type
7977         is marked tagged for layout reasons, but it has no dispatch table,
7978         so Set_All_DT_Position must not be called.
7979         * exp_ch13.adb: If the freeze node is for a type internal to a
7980         record declaration, as is the case for a class-wide subtype
7981         of a parent component, the relevant scope is the scope of the
7982         enclosing record.
7984 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7986         * g-memdum.adb, g-memdum.ads: Code clean ups.
7988 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7990         * sem_prag.adb (Check_Dependency_Clause):
7991         Update the comment on usage. Reimplement the mechanism which
7992         attempts to match a single clause of Depends against one or
7993         more clauses of Refined_Depends.
7994         (Input_Match): Removed.
7995         (Inputs_Match): Removed.
7996         (Is_Self_Referential): Removed.
7997         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
7998         (Normalize_Outputs): Rename variable Split to New_Claue and update
7999         all its occurrences.
8000         (Report_Extra_Clauses): Update the comment on usage.
8001         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
8003 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
8005         * i-cstrea.ads: Minor reformatting.
8007 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
8009         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
8010         secondary stack-related flags to the generated block.
8011         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
8012         once the loop is relocated in a block.
8014 2014-07-18  Robert Dewar  <dewar@adacore.com>
8016         * repinfo.ads: Add documentation on handling of back annotation
8017         for dynamic case.
8019 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8021         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
8022         of full type declaration, denotes previous declaration for
8023         incomplete view of the type.
8024         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
8025         of declaration if one is present.
8026         (Replace_Type): When constructing the signature of an inherited
8027         operation, handle properly the case where the operation has a
8028         formal whose type is an incomplete view.
8029         * sem_util.adb (Collect_Primitive_Operations): Handle properly
8030         the case of an operation declared after an incomplete declaration
8031         for a type T and before the full declaration of T.
8033 2014-07-18  Pascal Obry  <obry@adacore.com>
8035         * i-cstrea.ads: Add documentation for set_wide_text_mode.
8037 2014-07-18  Robert Dewar  <dewar@adacore.com>
8039         * a-witeio.adb: Minor code reorganization.
8040         * i-cstrea.ads: Add comment.
8042 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8044         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
8045         clarifications.
8047 2014-07-18  Robert Dewar  <dewar@adacore.com>
8049         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
8051 2014-07-18  Pascal Obry  <obry@adacore.com>
8053         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
8054         * a-witeio.adb (Put): On platforms where there is translation
8055         done by the OS output the raw text.
8056         (New_Line): Use Put above to properly handle the LM wide characters.
8058 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8060         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
8061         to Absolute_Address.
8063 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
8065         * opt.ads (Suppress_Back_Annotation): Remove as unused.
8066         * fe.h (Back_Annotate_Rep_Info): Likewise.
8067         (Global_Discard_Names): Likewise.
8069 2014-07-18  Robert Dewar  <dewar@adacore.com>
8071         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
8072         parenthesized.
8074 2014-07-18  Vincent Celier  <celier@adacore.com>
8076         * s-osinte-vms.ads: Fix style errors.
8078 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8080         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
8081         NAME_MAX and PATH_MAX.
8083 2014-07-18  Bob Duff  <duff@adacore.com>
8085         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
8086         Build_Record_Or_Elementary_Output_Procedure): For Input and
8087         Output attributes, do not read/write the discriminants if they
8088         have default values; that will be done by Read/Write.
8090 2014-07-18  Robert Dewar  <dewar@adacore.com>
8092         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
8093         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
8094         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
8095         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
8096         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
8098 2014-07-18  Robert Dewar  <dewar@adacore.com>
8100         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
8102 2014-07-18  Vincent Celier  <celier@adacore.com>
8104         * lib-writ.ads: Update documentation about the D lines.
8106 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8108         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
8109         as a parameter, rather than its Chars field, in order to locate
8110         freeze node of type. If the predicate or invariant has references
8111         to types other than the one to which the contract applies, these
8112         types must be frozen, and the corresponding predicate functions
8113         created, before that freeze node.
8115 2014-07-18  Robert Dewar  <dewar@adacore.com>
8117         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
8118         * par_sco.adb: Minor reformatting.
8120 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
8122         * exp_ch4.adb (Real_Range_Check): Turn off
8123         the Do_Range_Check flag on the conversion's current Expression
8124         argument rather than on the originally captured Operand node,
8125         as Expression may reflect a rewriting (as in conversions to a
8126         fixed-point type).
8128 2014-07-18  Vincent Celier  <celier@adacore.com>
8130         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
8131         is not a subunit.
8132         * ali.ads (Sdep_Record): New component Unit_Name.
8133         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
8134         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
8135         dependent unit is in a project and the source file name is not
8136         one of its sources.
8138 2014-07-18  Bob Duff  <duff@adacore.com>
8140         * s-addima.ads: Minor: add comment.
8142 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8144         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
8145         of nesting rules for composites with different SSOs.
8147 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8149         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
8150         a proper logical operator.
8151         (Has_Decision): An If_Expression indicates the presence of a decision
8152         although it is not a logical operator.
8154 2014-07-18  Robert Dewar  <dewar@adacore.com>
8156         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
8157         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
8159 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
8161         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
8162         on the null statement.
8164 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8166         * adaint.c: Minor comment rewording.
8167         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
8168         use of errno in this file is thread safe.
8170 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
8172         * gnat_ugn.texi: Doc clarification.
8173         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
8174         * sem_ch13.ads: Minor comment update.
8176 2014-07-18  Robert Dewar  <dewar@adacore.com>
8178         * repinfo.ads: Minor comment fix.
8180 2014-07-18  Robert Dewar  <dewar@adacore.com>
8182         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
8183         * sem_prag.adb: Add dummy implementation of
8184         Default_Scalar_Storage_Order.
8185         * snames.ads-tmpl: Add dummy entry for
8186         Default_Scalar_Storage_Order pragma.
8188 2014-07-18  Robert Dewar  <dewar@adacore.com>
8190         * opt.adb (Tree_Read): Read Address_Is_Private,
8191         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
8192         (Tree_Write): Corresponding writes
8193         * opt.ads: Minor comment reformatting and fixes.
8194         * tree_io.ads: Increment ASIS_Version_Number.
8196 2014-07-18  Robert Dewar  <dewar@adacore.com>
8198         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
8199         * types.h: Fix typo.
8201 2014-07-18  Robert Dewar  <dewar@adacore.com>
8203         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
8204         functional change).
8205         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
8206         ASIS trees.
8207         * sem_ch13.adb (Kill_Rep_Clause): New procedure
8208         (Analyze_Attribute_Definition_Clause): Use
8209         Kill_Rep_Clause. This is just a cleanup, no functional effect.
8210         (Analyze_Enumeration_Representation_Clause):
8211         Use Kill_Rep_Clause. This means that enum rep
8212         clauses are now properly removed from -gnatct trees.
8213         (Analyze_Record_Representation_Clause): Same change.
8214         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
8216 2014-07-18  Pascal Obry  <obry@adacore.com>
8218         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
8219         OS_Time from time parts.
8220         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
8222 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8224         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
8225         indexing over containers that are derived types: check whether
8226         signature of found operation has the correct first parameter
8227         before retrieving directly a primitive operation.
8229 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8231         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
8232         Do_Range_Check flag on dynamic bounds of a range used in a
8233         component association in the argument of Update.
8235 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8237         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
8238         accesses to errno(3) to be thread safe.
8240 2014-07-18  Vincent Celier  <celier@adacore.com>
8242         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
8243         limited imported project that is an extending project, return
8244         a project being extended if it has the expected name.
8246 2014-07-18  Pascal Obry  <obry@adacore.com>
8248         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
8249         routine to set the last modification time stamp for the given file.
8250         * gnatchop.adb (File_Time_Stamp): Removed.
8251         (Write_Unit): Use
8252         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
8254 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8256         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
8257         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
8258         Moved here, so it can be shared with the resolution of 'Update,
8259         whose argument shares some features with aggregates.
8260         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
8261         Aggregate_Constraint_Checks with the expression of each
8262         association, so that the Do_Range_Check flag is set when needed.
8264 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8266         * sem_ch4.adb (Try_Container_Indexing):  If the container
8267         type is a derived type, the value of the inherited  aspect is
8268         the Reference operation declared for the parent type. However,
8269         Reference is also a primitive operation of the new type, and
8270         the inherited operation has a different signature. We retrieve
8271         the right one from the list of primitive operations of the
8272         derived type.
8274 2014-07-18  Vincent Celier  <celier@adacore.com>
8276         * debug.adb: Update comment.
8278 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
8280         * exp_util.adb (Needs_Finalization): There is no reason why a
8281         C type should not benefit from finalization actions.
8283 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8285         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
8286         (FILENAME_MAX): Remove unneeded definition.
8288 2014-07-18  Robert Dewar  <dewar@adacore.com>
8290         * exp_attr.adb, debug.adb: Update comments.
8292 2014-07-18  Vincent Celier  <celier@adacore.com>
8294         * par-ch4.adb (Simple_Expression): Add missing style check
8295         for binary adding operators.
8296         (Term): Add missing style check for multiplying operators.
8298 2014-07-18  Robert Dewar  <dewar@adacore.com>
8300         * impunit.adb: Minor comment correction.
8301         * widechar.adb, s-wchcon.ads: Minor comment corrections.
8303 2014-07-18  Robert Dewar  <dewar@adacore.com>
8305         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
8306         for Build_Static_Predicate (Build_Predicate_Functions):
8307         Don't try to build discrete predicate for real type.
8308         (Build_Predicate_Functions): Report attempt to use
8309         Static_Predicate function on real type as unimplemented.
8310         * sem_util.adb (Check_Expression_Against_Static_Predicate):
8311         Add guard to prevent blow up on predicate for real type.
8313 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8315         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
8316         properly static predicate on enumeration types and modular types
8317         (not subtypes).
8319 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
8321         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
8322         the corresponding source file index.
8323         * get_scos.ads (Get_SCOs): Add a default value for it.
8324         * par_sco.adb (SCO_Record): Fill the corresponding value.
8325         * scos.h: New.
8327 2014-07-18  Vincent Celier  <celier@adacore.com>
8329         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
8330         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
8331         reformatting.
8332         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
8334 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8336         * g-sercom.ads (Set): document possible data loss.
8338 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8340         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
8341         Output, Read, Write): If the restriction No_Streams is active,
8342         replace each occurrence of a stream attribute by an explicit
8343         Raise statement.
8345 2014-07-18  Robert Dewar  <dewar@adacore.com>
8347         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
8348         reformatting.
8350 2014-07-18  Robert Dewar  <dewar@adacore.com>
8352         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
8353         function.
8354         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
8355         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
8356         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
8357         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
8359 2014-07-18  Robert Dewar  <dewar@adacore.com>
8361         * bcheck.adb (Check_Consistent_Restrictions):
8362         Remove obsolete code checking for violation of
8363         No_Standard_Allocators_After_Elaboration (main program)
8364         * bindgen.adb (Gen_Adainit): Handle
8365         No_Standard_Allocators_After_Elaboration
8366         (Gen_Output_File_Ada): ditto.
8367         * exp_ch4.adb (Expand_N_Allocator): Handle
8368         No_Standard_Allocators_After_Elaboration.
8369         * Makefile.rtl: Add entry for s-elaall
8370         * rtsfind.ads: Add entry for Check_Standard_Allocator.
8371         * s-elaall.ads, s-elaall.adb: New files.
8372         * sem_ch4.adb (Analyze_Allocator): Handle
8373         No_Standard_Allocators_After_Elaboration.
8375 2014-07-18  Robert Dewar  <dewar@adacore.com>
8377         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
8378         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
8379         Remove AB parameter from ali files and all uses.
8380         Remove Allocator_In_Body and all uses.
8382 2014-07-18  Robert Dewar  <dewar@adacore.com>
8384         * g-expect-vms.adb: Add comment.
8386 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8388         * par_sco.adb (Is_Logical_Operation): return True for
8389         N_If_Expression.
8391 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8393         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
8394         analysis and resolution of each choice in the associations within
8395         the argument of Update, because they may be variable names.
8397 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
8399         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
8400         actions before the generated if statement.
8402 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
8404         * gnat_ugn.texi Enhance the documentation of
8405         switches -gnateA and -gnateV.
8407 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8409         * sem_util.adb (Build_Default_Subtype): Add missing condition
8410         so that code matches description: use the full view of the base
8411         only if the base is private and the subtype is not.
8413 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
8415         * exp_disp.adb: Minor reformatting.
8416         * exp_disp.adb: Minor code reorganization.
8418 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8420         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
8421         require an explicit SSO attribute definition clause on a composite type
8422         just because one of its components has one.
8424 2014-07-17  Robert Dewar  <dewar@adacore.com>
8426         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
8427         attribute out of existence if the enclosing pragma is ignored.
8428         * sem_util.adb: Minor reformatting.
8430 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8432         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
8433         array aggregate expanded into assignments when it appears as a
8434         local declaration in an inlined body.
8436 2014-07-17  Doug Rupp  <rupp@adacore.com>
8438         * init.c [__ANDROID__]: Modify for ZCX.
8439         * exp_aggr.adb: Minor reformatting
8440         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
8442 2014-07-17  Robert Dewar  <dewar@adacore.com>
8444         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
8445         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
8446         scng.adb: Remove incorrect usage "allow to" and "allows to".
8448 2014-07-17  Robert Dewar  <dewar@adacore.com>
8450         * exp_dist.adb: Minor reformatting.
8452 2014-07-17  Bob Duff  <duff@adacore.com>
8454         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
8456 2014-07-17  Robert Dewar  <dewar@adacore.com>
8458         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
8459         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
8461 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8463         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
8464         non-bit-packed array, propagate Reverse_Storage_Order to the
8465         packed array type.
8467 2014-07-17  Javier Miranda  <miranda@adacore.com>
8469         * exp_disp.adb: Fix comment.
8470         * exp_pakd.adb: Minor reformatting.
8472 2014-07-17  Robert Dewar  <dewar@adacore.com>
8474         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
8475         entity if none exists (Gen_Elab_Calls): Complain if clash with
8476         No_Multiple_Elaboration.
8477         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
8478         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
8479         if not needed.
8480         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
8481         * sem_ch4.adb: Minor comment updates.
8483 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8485         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
8486         of function call for later use when shared passive objects
8487         are involved.
8489 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8491         * par-ch13.adb (Get_Aspect_Specifications):
8492         Catch a case where the argument of SPARK aspect Refined_State
8493         is not properly parenthesized.
8495 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8497         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
8498         the lifetime of a reference to an Ada 2012 container element.
8499         (Is_Element_Reference): New routine.
8501 2014-07-17  Robert Dewar  <dewar@adacore.com>
8503         * ali.ads: Minor comment fix.
8504         * lib-writ.adb: Minor reformatting.
8506 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8508         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
8509         in ASIS mode, load another subunit only if it a subunit of the
8510         current one, not a sibling that has been reached through the
8511         analysis of an ancestor. This allows the construction of the
8512         ASIS tree for the subunit even when sibling subunits have errors.
8514 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8516         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
8517         prevents the analysis of various contracts when the associated
8518         construct is erroneous.
8519         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
8520         SPARK_Pragma of an illegal or a partially decorated construct.
8522 2014-07-17  Robert Dewar  <dewar@adacore.com>
8524         * s-imguns.ads: Minor reformatting.
8526 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8528         * exp_ch7.adb (Build_Finalization_Master): Move all local
8529         variables to the proper code section. When looking for an existing
8530         finalization master, inspect the ultimate ancestor type of the
8531         full view.
8532         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
8534 2014-07-17  Robert Dewar  <dewar@adacore.com>
8536         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
8537         * gnat_rm.texi: Document Entity argument for pragma Annotate and
8538         Annotate aspect.
8539         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
8540         for Annotate aspect.
8541         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
8542         Entity argument at end.
8543         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
8545 2014-07-17  Tristan Gingold  <gingold@adacore.com>
8547         * s-imguns.ads: Fix minor typo.
8549 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8551         * sprint.adb: Minor reformatting.
8553 2014-07-17  Robert Dewar  <dewar@adacore.com>
8555         * sprint.adb (Write_Itype): Print proper header for string
8556         literal subtype.
8558 2014-07-17  Steve Baird  <baird@adacore.com>
8560         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
8562 2014-07-17  Vincent Celier  <celier@adacore.com>
8564         * gnatbind.adb: Change in message "try ... for more information".
8566 2014-07-17  Robert Dewar  <dewar@adacore.com>
8568         * sprint.adb: Code clean up.
8570 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8572         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
8573         the relevant code section. Add new local constant Obj_Id. When
8574         a limited controlled object is initialized by a function call,
8575         the build-in-place object access function call acts as the last
8576         initialization statement.
8577         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
8578         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
8579         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
8581 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8583         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
8584         propagate intrinsic flag to renamed entity, to allow e.g. renaming
8585         of Unchecked_Conversion.
8586         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
8587         if the declaration has errors.
8589 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8591         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
8592         container is busy before checking whether capacity allows for
8593         a further insertion. Insertion in a busy container that is full
8594         raises Program_Error rather than Capacity_Error. Previous to that
8595         patch which exception was raised varied among container types.
8597 2014-07-17  Robert Dewar  <dewar@adacore.com>
8599         * g-comlin.ads, g-comlin.adb: Minor clean up.
8601 2014-07-17  Bob Duff  <duff@adacore.com>
8603         * gnat_ugn.texi: Update gnatpp doc.
8605 2014-07-17  Robert Dewar  <dewar@adacore.com>
8607         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
8608         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
8609         could do this by actually expanding a real generic.
8610         * a-tags.ads: Add comments about performance.
8611         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
8612         Print Etype of defining identifier, rather than the object
8613         definition. More information.
8615 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8617         * exp_dist.adb: Minor documentation clarification.
8619 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8621         * exp_util.adb (Is_Aliased): Revert previous change.
8623 2014-07-17  Vincent Celier  <celier@adacore.com>
8625         * g-comlin.adb (Try_Help): New procedure.
8626         (Getopt): Use new procedure Try_Help.
8627         * g-comlin.ads (Try_Help): New procedure.
8629 2014-07-17  Bob Duff  <duff@adacore.com>
8631         * gnat_ugn.texi: Minor update.
8633 2014-07-17  Robert Dewar  <dewar@adacore.com>
8635         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
8636         * sinfo.ads: Document restriction on aggregates (must expand to
8637         assignments if one or more assignments needs expansion, e.g. for
8638         controlled types).
8639         * sem_ch13.adb: All warning messages regarding bit order should
8640         be info: messages.
8641         * gnat_ugn.texi: Minor correction of missing @ on @code
8643 2014-07-17  Robert Dewar  <dewar@adacore.com>
8645         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
8646         * s-rident.ads (Partition_Boolean_Restrictions): Add
8647         No_Long_Long_Integer.
8648         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
8649         Long_Integer'Size if restriction No_Long_Long_Integer is active.
8650         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
8651         as the implicit base type for a signed integer type declaration
8652         if restriction No_Long_Long_Integer is active.
8653         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
8654         No_Long_Long_Integer.
8656 2014-07-17  Robert Dewar  <dewar@adacore.com>
8658         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
8659         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
8660         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
8661         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
8662         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
8664 2014-07-17  Robert Dewar  <dewar@adacore.com>
8666         * debug.adb: Remove -gnatdQ.
8667         * exp_disp.adb: Remove -gnatdQ.
8668         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
8669         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
8670         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
8671         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
8672         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
8673         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
8675 2014-07-17  Robert Dewar  <dewar@adacore.com>
8677         * back_end.adb: Minor reformatting and comment additions.
8678         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
8679         function.
8680         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
8681         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
8682         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
8683         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
8684         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
8685         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
8687 2014-07-17  Robert Dewar  <dewar@adacore.com>
8689         * gnat_rm.texi: Minor comment updates.
8691 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8693         * sem_util.adb (Make_Explicit_Dereference): If the expression
8694         being dereferenced is a generalized indexing, reset the overloaded
8695         flag on the generalized indexing call, consistent with the
8696         resetting of the flag on the original indexed component.
8698 2014-07-17  Robert Dewar  <dewar@adacore.com>
8700         * gnat_ugn.texi: Document advise not to mix -gnatV? and
8701         optimization.
8703 2014-07-17  Robert Dewar  <dewar@adacore.com>
8705         * checks.adb (Insert_Valid_Check): Don't insist on a name
8706         for the prefix when we make calls to Force_Evaluation and
8707         Duplicate_Subexpr_No_Checks.
8708         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
8709         (Remove_Side_Effects): Handle all volatile references right
8710         (Side_Effect_Free): Volatile reference is never side effect free
8711         * sinfo.ads (N_Attribute_Reference): Add comments explaining
8712         that in the tree, the prefix can be a general expression.
8714 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8716         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
8717         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
8718         * sem_ch7.adb (Analyze_Package_Body_Contract,
8719         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
8721 2014-07-17  Robert Dewar  <dewar@adacore.com>
8723         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
8724         Store_After_Actions_In_Scope.
8726 2014-07-17  Robert Dewar  <dewar@adacore.com>
8728         * sem_aux.ads: Minor comment addition.
8730 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8732         * sem_res.adb (Make_Call_Into_Operator): If the call is already
8733         a rewriting of an operator node, there are no actuals to be
8734         propagated from original node to rewritten node when in ASIS mode.
8736 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8738         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
8739         Analyze_Subprogram_Contract): Add new local variable Mode. Save
8740         and restore the SPARK mode of the related construct in a
8741         stack-like fashion.
8742         * sem_ch7.adb (Analyze_Package_Body_Contract,
8743         Analyze_Package_Contract): Add new local variable Mode. Save and
8744         restore the SPARK mode of the related construct in a stack-like fashion.
8745         * sem_util.adb Remove with and use clause for Opt.
8746         (Restore_SPARK_Mode): New routine.
8747         (Save_SPARK_Mode_And_Set): New routine.
8748         * sem_util.ads Add with and use clause for Opt.
8749         (Restore_SPARK_Mode): New routine.
8750         (Save_SPARK_Mode_And_Set): New routine.
8752 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8754         * exp_util.adb (Is_Aliased): Transient objects
8755         within an expression with actions cannot be considered aliased.
8757 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8759         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
8760         introduce a new list (cleanup actions) for each (transient) scope.
8761         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
8762         N_Block_Statement
8763         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
8764         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
8765         processing for Store_xxx_Actions_In_Scope.
8766         (Build_Cleanup_Statements): Allow for a list of additional
8767         cleanup statements to be passed by the caller.
8768         (Expand_Cleanup_Actions): Take custom cleanup actions associated
8769         with an N_Block_Statement into account.
8770         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
8771         reorganization (refactoring only, no behaviour change).
8772         (Make_Transient_Block): Add assertion to ensure that the current
8773         scope is indeed a block (namely, the entity for the transient
8774         block being constructed syntactically, which has already been
8775         established as a scope).  If cleanup actions are present in the
8776         transient scope, transfer them now to the transient block.
8777         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
8778         called function while it is still present as the name in a call
8779         in the tree. This may not be the case later on if the call is
8780         rewritten into a transient block.
8781         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
8782         inserted after calling a protected operation on a shared passive
8783         protected must be performed in a block finalizer, not just
8784         inserted in the tree, so that they are executed even in case of
8785         a normal (RETURN) or abnormal (exception) transfer of control
8786         outside of the current scope.
8787         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
8788         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
8789         Scope_Stack_Entry reorganization.
8791 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8793         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
8794         call for types that do not have an explicit attribute definition
8795         clause for External_Tag, as their default tag may clash with an
8796         explicit tag defined for some other type.
8798 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8800         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
8801         controlled function call with multiple actual parameters that
8802         appears in Object.Operation form.
8804 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8806         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
8807         entity flag.
8808         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
8809         External_Tag): No need to set entity flag.
8810         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
8811         Reimplement correctly in terms of Has_Rep_Item.
8813 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8815         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
8816         Start examining the tree at the node passed to
8817         Establish_Transient_Scope (not its parent).
8818         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8819         The access type for the variable storing the reference to
8820         the call must be declared and frozen prior to establishing a
8821         transient scope.
8822         * exp_ch9.adb: Minor reformatting.
8824 2014-07-17  Pascal Obry  <obry@adacore.com>
8826         * s-os_lib.ads: Minor comment update.
8828 2014-07-17  Tristan Gingold  <gingold@adacore.com>
8830         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
8831         indentation.
8832         * socket.c: Remove #warning to avoid warning.
8833         * expect.c: Indent some preprocessor directives to clarify
8834         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
8835         to remove warnings.
8836         * env.c: Fix indentation.  Port to PikeOS.
8837         * gsocket.h: Port to PikeOS.  Remove #warning.
8838         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
8839         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
8840         of stubbed __gnat_setup_parent_communication.
8841         * adaint.c: Port to PikeOS.  Reindent some preprocessor
8842         directives to clarify nested if.  Fix indentation.  Add missing
8843         ATTRIBUTE_UNUSED.
8845 2014-07-17  Robert Dewar  <dewar@adacore.com>
8847         * sem_attr.adb: Minor reformatting.
8849 2014-07-17  Robert Dewar  <dewar@adacore.com>
8851         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
8853 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8855         * sem_case.adb (Check_Choice_Set): If the case expression is the
8856         expression in a predicate, do not recheck coverage against itself,
8857         to prevent spurious errors.
8858         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
8859         expression comes from an aspect specification, to prevent spurious
8860         errors when expression is a case expression in a predicate.
8862 2014-07-17  Pascal Obry  <obry@adacore.com>
8864         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
8865         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
8867 2014-07-17  Vincent Celier  <celier@adacore.com>
8869         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
8870         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
8871         the usage for an erroneous invocation of a gnat tool.
8873 2014-07-16  Vincent Celier  <celier@adacore.com>
8875         * gnatls.adb: Get the target parameters only if -nostdinc was
8876         not specified.
8878 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8880         * checks.adb (Insert_Valid_Check): If the expression is a packed
8881         component of a modular type of the right size the data is always
8882         valid. This os particularly useful if the component is part of
8883         a volatile variable.
8885 2014-07-16  Robert Dewar  <dewar@adacore.com>
8887         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
8889 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8891         * exp_ch7.ads: Minor documentation fix.
8893 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8895         * sem_ch3.adb (Find_Type_Name): Diagnose properly
8896         a private extension completion that is an interface definition
8897         with an interface list.
8899 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
8901         * gnatls.adb (Gnatls): Code clean ups.
8903 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8905         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
8906         * sem.adb (Analyze): Handle N_Compound_Statement.
8907         * sprint.adb (Sprint_Node_Actual): Ditto.
8908         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
8909         procedure to handle N_Compound_Statement.
8910         * exp_aggr.adb (Collect_Initialization_Statements):
8911         Use a proper compound statement node, instead of a bogus
8912         expression-with-actions with a NULL statement as its expression,
8913         to wrap collected initialization statements.
8914         * freeze.ads, freeze.adb
8915         (Explode_Initialization_Compound_Statement): New public procedure,
8916         lifted from Freeze_Entity.
8917         (Freeze_Entity): When freezing
8918         an object with captured initialization statements and without
8919         delayed freezing, explode compount statement.
8920         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
8921         case that used to handle bogus EWAs with NULL statement as
8922         the expression.
8923         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
8924         delayed freezing and captured initialization statements, explode
8925         compound statement.
8927 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
8929         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
8931 2014-07-16  Doug Rupp  <rupp@adacore.com>
8933         * s-interr-hwint.adb: Casing error on parameter.
8935 2014-07-16  Pascal Obry  <obry@adacore.com>
8937         * Makefile.rtl: Add g-rewdat.o dependencies in
8938         GNATRTL_NONTASKING_OBJS.
8940 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8942         * sem_case.adb: Code clean up.
8944 2014-07-16  Vincent Celier  <celier@adacore.com>
8946         * make.adb: Do not read gnat.adc when gnatmake is invoked
8947         with -gnatA.
8949 2014-07-16  Pascal Obry  <obry@adacore.com>
8951         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
8952         implementation of GNAT.Rewrite_Data.
8954 2014-07-16  Vincent Celier  <celier@adacore.com>
8956         * gnatls.adb (Normalize): New function.
8957         (Gnatls): Get the target parameters. On targets other than VMS,
8958         normalize the path names in the source search path, the object search
8959         path and the project search path.
8961 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8963         * sem_case.adb: Avoid self-checking of case expressions in
8964         dynamic predicates.
8966 2014-07-16  Robert Dewar  <dewar@adacore.com>
8968         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
8969         discriminants.
8971 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
8973         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
8975 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
8977         * gnat_ugn.texi: Fix typo.
8979 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8981         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
8982         expression if it is the specification of a subtype predicate:
8983         it will be expanded when the return statement is analyzed, or
8984         when a static predicate is transformed into a static expression
8985         for evaluation by the front-end.
8986         * sem_ch13.adb (Get_RList): If the expression for a static
8987         predicate is a case expression, extract the alternatives of the
8988         branches with a True value to create the required statically
8989         evaluable expression.
8991 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8993         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
8994         expression, not the location of the aspect, for all generated
8995         code, so that in particular the call to raise_assert_failure
8996         gets the sloc of the associated condition.
8997         * exp_ch6.adb
8998         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
8999         Set an explicit End_Label on the handled sequence of statements
9000         for the _Postconditions procedure so that the implicit return
9001         statement does not erroneously get associated with code generated
9002         for the last condition in postconditions.
9004 2014-07-16  Thomas Quinot  <quinot@adacore.com>
9006         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
9007         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
9008         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
9009         -gnatw.Z.
9011 2014-07-16  Robert Dewar  <dewar@adacore.com>
9013         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
9014         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
9015         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
9016         not in Access_Kind.
9017         * par-ch4.adb (At_Start_Of_Attribute): New function
9018         (P_Simple_Expression): Better msg for bad attribute prefix.
9019         * scans.ads: Minor reformatting.
9021 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
9023         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
9024         static constant, check that in belongs to the corresponding index
9025         subtype, to produce the proer warning when expansion is disabled.
9027 2014-07-16  Robert Dewar  <dewar@adacore.com>
9029         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
9030         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
9031         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
9032         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
9033         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
9034         -gnatw.z/-gnatw.Z
9035         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
9036         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
9037         reformatting.
9039 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
9041         * exp_ch7.adb (Process_Declarations): Reinstate the check on
9042         a hook object to ensure that the related transient declaration
9043         is finalizable.
9044         * exp_util.adb (Is_Aliased): Do not consider expresison with
9045         actions as a special context.
9046         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
9047         ensure that the related transient declaration is finalizable.
9049 2014-07-16  Robert Dewar  <dewar@adacore.com>
9051         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
9052         * snames.ads-tmpl: Add Allocation_Check to list of check names.
9053         * types.ads: Add Allocation_Check to list of check names.
9055 2014-07-16  Thomas Quinot  <quinot@adacore.com>
9057         * sem_util.adb (Enter_Name): replace bogus test for presence of
9058         Corresponding_Remote_Type with correct test on Ekind.
9059         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
9060         of calls to Corresponding_ Remote_Type (documentation fix).
9062 2014-07-16  Robert Dewar  <dewar@adacore.com>
9064         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
9065         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
9066         where it applies.
9067         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
9068         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
9070 2014-07-16  Robert Dewar  <dewar@adacore.com>
9072         * gnat_ugn.texi: Document binder switch -Ra.
9073         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
9074         (List_Closure_All).
9075         * opt.ads (List_Closure_All): New switch.
9076         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
9077         List_Closure_All.
9079 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
9081         * gnat_rm.texi: Minor edits, to make case consistent in names
9082         of types and fields.
9084 2014-07-16  Robert Dewar  <dewar@adacore.com>
9086         * gnat_rm.texi: Document erroneous mixing of thin pointers and
9087         unrestricted access
9088         * gnat_ugn.texi: Add note on size of access types about thin
9089         pointers and the use of attribute Unrestricted_Access.
9091 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
9093         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
9094         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
9095         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
9096         machinery to detect tampering on bounded vectors.
9098 2014-07-16  Robert Dewar  <dewar@adacore.com>
9100         * gnat_rm.texi: Document that leading/trailing asterisks are
9101         now implied for the pattern match string for pragma Warnings
9102         and Warning_As_Error.
9103         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
9104         (Analyze_Pragma, case Warning_As_Error): Call
9105         Acquire_Warning_Match_String.
9106         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
9108 2014-07-16  Bob Duff  <duff@adacore.com>
9110         * gnat_ugn.texi: Document need for project file
9111         for --incremental switch for gnat2xml.
9113 2014-07-16  Robert Dewar  <dewar@adacore.com>
9115         * gnat_rm.texi: Fix example of non-packable components in packed
9116         records section.
9118 2014-07-16  Robert Dewar  <dewar@adacore.com>
9120         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
9121         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
9122         upper case in exception messages.
9124 2014-07-16  Robert Dewar  <dewar@adacore.com>
9126         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
9127         is renamed Has_Same_Storage.
9128         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
9129         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
9130         descriptions).
9132 2014-07-16  Robert Dewar  <dewar@adacore.com>
9134         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
9135         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
9137 2014-07-16  Robert Dewar  <dewar@adacore.com>
9139         * gnat_ugn.texi: Add note that integrated
9140         preprocessing cannot be applied to configuration pragma files.
9142 2014-07-16  Yannick Moy  <moy@adacore.com>
9144         * sem_attr.adb (Analyze_Attribute/cases Pred
9145         and Succ): Always enable range check on fixed-point types if
9146         not suppressed for the type.
9148 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
9150         * sem_util.adb (State_Has_Enabled_Property):
9151         Account for an external property denoted by an others choice.
9153 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
9155         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
9156         * exp_ch7.adb (Process_Declarations): There is no need to check
9157         that a transient object being hooked is controlled as it would
9158         not have been hooked in the first place.
9159         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
9160         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
9161         (Is_Aliased): A renaming of a transient controlled object is
9162         not considered aliasing when it occurs within an expression
9163         with actions.
9164         (Requires_Cleanup_Actions): There is no need to
9165         check that a transient object being hooked is controlled as it
9166         would not have been hooked in the first place.
9167         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
9169 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
9171         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
9172         the outer level of routine Analyze_Aspect_Specifications. Ensure
9173         that the corresponding pragmas of aspects Initial_Condition and
9174         Initializes are inserted after pragma SPARK_Mode.
9176 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
9178         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
9179         properly a choice list with more than one choice, where each
9180         is an aggregate denoting a sequence of array indices for a
9181         multidimentional array. For SPARK use.
9183 2014-07-16  Vadim Godunko  <godunko@adacore.com>
9185         * a-coinho-shared.adb (Adjust): Create
9186         copy of internal shared object and element when source container
9187         is locked.
9188         (Copy): Likewise.
9189         (Query_Element): Likewise.
9190         (Update_Element): Likewise.
9191         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
9192         to get reference for empty holder.
9193         (Reference): Likewise.
9195 2014-07-16  Thomas Quinot  <quinot@adacore.com>
9197         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
9198         from Process_Transient_Oject.
9199         * exp_ch4.ads: Ditto.
9200         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
9201         declaration as an action on the topmost enclosing expression,
9202         not on a possibly conditional subexpreession.
9204 2014-07-16  Vadim Godunko  <godunko@adacore.com>
9206         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
9207         Fix parameter mode of Update_Element.
9209 2014-07-16  Robert Dewar  <dewar@adacore.com>
9211         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
9212         reformatting.
9214 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
9216         * a-cohase.ads: Type Iterator must be controlled, so that the
9217         tampering bit is properly set through an iteration.
9218         * a-cohase.adb: Add Finalize operation for type Iterator.
9220 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
9222         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
9223         tampering checks.
9225 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
9227         * a-coinho-shared.adb: Fix spurious accessibility check.
9229 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
9231         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
9233 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9235         PR ada/61505
9236         * gnat_rm.texi: Fix errors with makeinfo 5.1.
9238 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
9240         PR ada/61505
9241         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
9243 2014-06-13  Yannick Moy  <moy@adacore.com>
9245         * exp_attr.adb: Fix typo in comment.
9246         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
9247         checking in GNATprove_Mode.
9249 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9251         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
9253 2014-06-13  Robert Dewar  <dewar@adacore.com>
9255         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
9256         reformatting.
9258 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9260         * sem_prag.adb (Analyze_Pragma): Add local
9261         variable Missing_Parentheses. Emit an error when a state
9262         declaration with options appears without parentheses. Add a
9263         guard to prevent a bogus error when a state declaration may be
9264         interpreted as an option if a previous declaration with options
9265         was not parenthesized.
9267 2014-06-13  Robert Dewar  <dewar@adacore.com>
9269         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
9270         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
9271         * checks.ads (Alignment_Warnings_Record): New type.
9272         (Alignment_Warnings): New table
9273         (Validate_Alignment_Check_Warnings): New procedure.
9274         * errout.adb (Delete_Warning_And_Continuations): New procedure
9275         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
9276         Warnings_Treated_As_Errors (Finalize): Minor reformatting
9277         * errout.ads (Warning_Msg): New variable
9278         (Delete_Warning_And_Continuations): New procedure
9279         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
9280         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
9282 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9284         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
9286 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9288         * errout.adb (SPARK_Msg_N): New routine.
9289         (SPARK_Msg_NE): New routine.
9290         * errout.ads Add a section on SPARK-related error routines.
9291         (SPARK_Msg_N): New routine.
9292         (SPARK_Msg_NE): New routine.
9293         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
9294         pragma Abstract_State is always inserted after SPARK_Mode.
9295         (Insert_After_SPARK_Mode): New routine.
9296         * sem_prag.adb (Analyze_Abstract_State,
9297         Analyze_Constituent, Analyze_External_Property,
9298         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
9299         Analyze_Global_List, Analyze_Initialization_Item,
9300         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
9301         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
9302         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
9303         Analyze_Refined_Global_In_Decl_Part,
9304         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
9305         Check_Aspect_Specification_Order, Check_Constituent_Usage,
9306         Check_Declaration_Order, Check_Dependency_Clause,
9307         Check_Duplicate_Mode, Check_Duplicate_Option,
9308         Check_Duplicate_Property, Check_External_Properties,
9309         Check_External_Property, Check_Function_Return,
9310         Check_Matching_Constituent, Check_Matching_State,
9311         Check_Mode_Restriction_In_Enclosing_Context,
9312         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
9313         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
9314         Has_Extra_Parentheses, Inconsistent_Mode_Error,
9315         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
9316         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
9317         Report_Unrefined_States, Report_Unused_Constituents,
9318         Report_Unused_States, Role_Error, Usage_Error):
9319         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
9320         to report semantic errors only when SPARK_Mode is on.
9321         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
9322         pragma Depends explicitly, this is now done by the analysis.
9323         (Analyze_Global_In_Decl_List): Do not check the syntax of
9324         pragma Global explicitly, this is now done by the analysis.
9325         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
9326         pragma Initializes explicitly, this is now done by the analysis.
9327         (Analyze_Part_Of): Do not check the syntax of the encapsulating
9328         state, this is now done by the analysis.
9329         (Analyze_Pragma): Do
9330         not check the syntax of a state declaration, this is now done
9331         by the analysis.
9332         (Analyze_Refined_Depends_In_Decl_Part): Do not
9333         check the syntax of pragma Refined_Depends explicitly, this is now
9334         done by the analysis.
9335         (Analyze_Refined_Global_In_Decl_Part): Do
9336         not check the syntax of pragma Refined_Global explicitly, this is
9337         now done by the analysis.
9338         (Analyze_Refined_State_In_Decl_Part):
9339         Do not check the syntax of pragma Refined_State explicitly, this
9340         is now done by the analysis.
9341         (Check_Dependence_List_Syntax): Removed.
9342         (Check_Global_List_Syntax): Removed.
9343         (Check_Initialization_List_Syntax): Removed.
9344         (Check_Item_Syntax): Removed.
9345         (Check_Missing_Part_Of): Do not consider items from an instance.
9346         (Check_Refinement_List_Syntax): Removed.
9347         (Check_State_Declaration_Syntax): Removed.
9348         (Collect_Global_List): Do not raise Program_Error when the input is
9349         malformed.
9350         (Process_Global_List): Do not raise Program_Error when the input
9351         is malformed.
9352         * sem_ch13.adb: Minor reformatting.
9354 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9356         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
9357         that is an interface definition with an interface list.
9358         (Process_Full_View): Move error message on missmatched interfaces
9359         between views to the declaration of full view, for clarity.
9360         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
9361         for clarity.
9363 2014-06-13  Robert Dewar  <dewar@adacore.com>
9365         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
9366         reason to Overflow.
9368 2014-06-13  Robert Dewar  <dewar@adacore.com>
9370         * makeutl.adb: Minor reformatting.
9372 2014-06-13  Gail Schenker  <schenker@adacore.com>
9374         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
9375         associated flag (d.z), no longer needed.
9377 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9379         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
9380         Export aspects, do not check whether a corresponding Convention
9381         aspect has been specified. Convention is optional in Ada2012,
9382         and defaults to Convention_Ada.
9384 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9386         * checks.adb (Apply_Address_Clause_Check): Only issue the new
9387         warning if the propagation warning is issued.
9389 2014-06-13  Thomas Quinot  <quinot@adacore.com>
9391         * exp_ch4.adb: Minor reformatting.
9393 2014-06-13  Robert Dewar  <dewar@adacore.com>
9395         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
9396         Handle float range check case (Expand_N_Attribute_Reference,
9397         case Succ): Handle float range check case.
9398         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
9399         range check case.
9401 2014-06-13  Vincent Celier  <celier@adacore.com>
9403         * makeutl.ads (Compute_Builder_Switches): Change name of
9404         parameter Root_Environment to Env.
9405         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
9406         Env parameter of procedure Get_Or_Create_Configuration_File.
9407         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
9408         of new parameter Env.
9409         * prj-conf.ads (Locate_Runtime): New parameter Env of type
9410         Prj.Tree.Environment.
9412 2014-06-13  Robert Dewar  <dewar@adacore.com>
9414         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
9416 2014-06-13  Robert Dewar  <dewar@adacore.com>
9418         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
9419         reformatting.
9420         * sem_attr.adb: Minor code reformatting and simplification.
9421         * checks.adb: Fix minor typo.
9423 2014-06-13  Emmanuel Briot  <briot@adacore.com>
9425         * g-comlin.adb (Get_Argument): fix expansion
9426         of command line arguments (e.g. "*.adb") when using a custom
9427         parser. The parser was not passed to the recursive call, and
9428         thus we were trying to do the expansion on the default command
9429         line parser.
9431 2014-06-13  Thomas Quinot  <quinot@adacore.com>
9433         * exp_ch9.adb: Minor reformatting.
9435 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9437         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
9438         To determine whether the attribute should be expanded, examine
9439         whether the enclosing postcondition pragma is to be checked,
9440         rather than using the internal flag Assertions_Enabled.
9442 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
9444         * gnat_rm.texi: Minor fixes.
9445         * gnat_ugn.texi: Added a missing "@itemize".
9447 2014-06-13  Robert Dewar  <dewar@adacore.com>
9449         * debug.adb: Remove -gnatd.1 flag documentation.
9450         * layout.adb (Layout_Type): Remove special handling of size
9451         for anonymous access type.
9452         * sem_ch3.adb (Replace_Type): Remove special handling of size
9453         for anonymous access type.
9455 2014-06-13  Robert Dewar  <dewar@adacore.com>
9457         * debug.adb: Document debug flag -gnatd.1.
9458         * layout.adb (Layout_Type): Size change for anonymous access
9459         types under -gnatd.1.
9460         * sem_ch3.adb (Replace_Type): Size change for anonymous access
9461         types under -gnatd.1.
9463 2014-06-13  Robert Dewar  <dewar@adacore.com>
9465         * layout.adb (Layout_Type): Anonymous access types designating
9466         unconstrained arrays are always thin pointers.
9467         * sem_ch3.adb (Replace_Type): Anonymous access types designating
9468         unconstrained arrays are always thin pointers.
9470 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9472         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
9473         to resolve the prefix of an attribute that is an entity name
9474         and may be a parameterless call.  Minor code reorganization.
9476 2014-06-13  Robert Dewar  <dewar@adacore.com>
9478         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
9479         Removed.
9480         * opt.ads (Compiler_Unit): New flag.
9481         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
9482         for null statement sequence (not allowed in compiler unit).
9483         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
9484         parsing.
9485         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
9486         calling sequence.
9487         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
9488         Check_Compiler_Unit.
9489         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
9490         Check_Compiler_Unit (this construct is not allowed in compiler
9491         units).
9492         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
9493         Set Opt.Compiler_Unit.
9495 2014-06-13  Geert Bosch  <bosch@adacore.com>
9497         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
9498         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
9499         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
9501 2014-06-13  Robert Dewar  <dewar@adacore.com>
9503         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
9505 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9507         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
9508         types in SPARK as it is poorly placed and poorly formulated. The
9509         check was flagging ALL volatile entities as illegal in SPARK.
9510         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
9511         types as illegal in SPARK.
9513 2014-06-13  Robert Dewar  <dewar@adacore.com>
9515         * sem_cat.adb: Minor reformatting.
9517 2014-06-13  Yannick Moy  <moy@adacore.com>
9519         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
9521 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
9523         * gnat_rm.texi: Add detail on SPARK_05 restriction.
9525 2014-06-13  Bob Duff  <duff@adacore.com>
9527         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
9528         Add assertions requiring the secondary stack to be initialized.
9529         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
9530         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
9531         secondary stack is initialized before calling Init_Tasking_Soft_Links,
9532         by adding pragmas Elaborate_Body.
9534 2014-06-13  Thomas Quinot  <quinot@adacore.com>
9536         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
9537         kludge disabling new legality check.
9539 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9541         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
9542         volatile types.
9543         (Freeze_Type): Volatile types are now illegal in SPARK.
9545 2014-06-13  Robert Dewar  <dewar@adacore.com>
9547         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
9548         * gnat_rm.texi: Document aspect Thread_Local_Storage.
9550 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9552         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
9553         value is a temporary that renames an aggregate is legal in a
9554         preelaborated unit. Illegalities, if any will be detected in
9555         the aggregate components.
9557 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9559         * einfo.ads: Minor reformatting an comment expansion.
9561 2014-06-13  Robert Dewar  <dewar@adacore.com>
9563         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
9564         Tbuild.
9565         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
9566         Back_End.
9567         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
9568         * sem_warn.adb: Minor reformatting.
9570 2014-06-13  Doug Rupp  <rupp@adacore.com>
9572         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
9573         files with rfm=udf.
9575 2014-06-13  Yannick Moy  <moy@adacore.com>
9577         * sem_warn.adb (Check_Unset_References): Take
9578         case of Refined_Post into account in Within_Postcondition check.
9580 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9582         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
9583         SPARK.
9585 2014-06-13  Yannick Moy  <moy@adacore.com>
9587         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
9588         Aspect_Export): Consider that variables may be set outside the program.
9590 2014-06-13  Robert Dewar  <dewar@adacore.com>
9592         * back_end.adb (Make_Id): New function.
9593         (Make_SC): New function.
9594         (Set_RND): New procedure.
9595         * back_end.ads (Make_Id): New function.
9596         (Make_SC): New function.
9597         (Set_RND): New procedure.
9598         * einfo.ads: Minor comment updates.
9599         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
9600         * gnat1drv.adb (Gnat1drv): New calling sequence for
9601         Get_Target_Parameters.
9602         (Gnat1drv): Move Atree.Initialize here from Frontend.
9603         * targparm.adb (Get_Target_Parameters): New calling
9604         sequence (Get_Target_Parameters): Handle pragma Restriction
9605         (No_Dependence,..)
9606         * targparm.ads (Get_Target_Parameters): New calling sequence.
9608 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
9610         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
9611         loop if the pragma does not come from source, so that an implicit
9612         pragma Import only applies to the first declaration, avoiding
9613         possible conflicts with earlier explicit and implicit declarations
9614         due to multiple Provide_Shift_Operators pragmas.
9615         (Set_Imported): Remove previous fix that bypassed pragma duplication
9616         error.
9617         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
9618         of Provide_Shift_Operators.
9620 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
9622         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
9623         string pointer directly to set_decl_section_name.
9625 2014-06-11  Robert Dewar  <dewar@adacore.com>
9627         * sem_ch13.adb: Minor reformatting.
9629 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9631         * sem_prag.adb (Check_Clause_Syntax): Add new
9632         local variable Outputs. Account for the case where multiple
9633         output items appear as an aggregate.
9635 2014-06-11  Robert Dewar  <dewar@adacore.com>
9637         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
9638         with ?j? not ??.
9640 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9642         * einfo.ads: Minor reformatting.
9644 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9646         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
9647         new variable First_Node. Update the position after all insertions have
9648         taken place to First_Node.
9650 2014-06-11  Robert Dewar  <dewar@adacore.com>
9652         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
9653         * layout.adb (Layout_Type): Remove test of -gnatd.1.
9655 2014-06-11  Robert Dewar  <dewar@adacore.com>
9657         * sem_ch13.adb: Minor reformatting.
9659 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9661         * sem_prag.adb (Check_Clause_Syntax): Add new
9662         local variable Outputs. Account for the case where multiple
9663         output items appear as an aggregate.
9665 2014-06-11  Robert Dewar  <dewar@adacore.com>
9667         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
9668         with ?j? not ??.
9670 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9672         * einfo.ads: Minor reformatting.
9674 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9676         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
9677         new variable First_Node. Update the position after all insertions have
9678         taken place to First_Node.
9680 2014-06-11  Robert Dewar  <dewar@adacore.com>
9682         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
9683         * layout.adb (Layout_Type): Remove test of -gnatd.1.
9685 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9687         * freeze.ads: Minor reformatting.
9688         * checks.adb (Determine_Range): Do not attempt to determine
9689         the range of a deferred constant whose full view has not been
9690         seen yet.
9691         * sem_res.adb (Resolve): Remove undesirable guard against
9692         resolving expressions from expression functions.
9694 2014-06-11  Robert Dewar  <dewar@adacore.com>
9696         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
9697         access types.
9698         * layout.adb (Layout_Type): Make anonymous access types for
9699         subprogram formal types and return types always thin. For now
9700         only enabled if -gnatd.1 set.
9702 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9704         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
9705         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
9706         subprogram must be a null procedure.
9708 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9710         * sem_prag.adb (Analyze_Input_Item): Allow formal
9711         parameters to appear as input_items in an initialization_list
9712         of pragma Initializes. Encapsulation now applies to states and
9713         variables only (as it should). Add RM references to key errors.
9714         * sem_prag.adb (Set_Imported): Suppress errors
9715         about preceding Imports when the pragma does not come from source,
9716         which can happen through use of pragma Provide_Shift_Operators.
9718 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9720         * sem_ch3.adb: Minor reformatting.
9721         * einfo.ads (Full_View): Minor comment update.
9723 2014-06-11  Robert Dewar  <dewar@adacore.com>
9725         * einfo.adb (Is_Independent): New flag.
9726         * einfo.ads (Is_Independent): New flag.
9727         (Has_Independent_Components): Clean up and fix comments.
9728         * sem_prag.adb (Fix_Error): Deal with changing argument
9729         [of] to entity [for].
9730         (Analyze_Pragma, case Independent): Set Is_Independent flag
9731         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
9732         in all components of specified record.
9734 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9736         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
9737         Set proper Etype on bounds of dummy type created for analysis
9738         of the generic.
9740 2014-06-11  Robert Dewar  <dewar@adacore.com>
9742         * debug.adb: Minor comment fix (add missing section of dot
9743         numeric flags).
9745 2014-06-11  Robert Dewar  <dewar@adacore.com>
9747         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
9748         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
9749         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
9750         * errout.adb (Output_Messages): Avoid duplicate output for
9751         library level instance.
9752         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
9753         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
9754         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
9755         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
9756         accomodate largest modulus value.
9757         * gnat_ugn.texi: Minor updates.
9759 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9761         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
9762         load body of generic package or its parent, if body is optional
9763         and the unit does not require a body.
9765 2014-06-11  Robert Dewar  <dewar@adacore.com>
9767         * gnat_rm.texi: Document System.Unsigned_Types.
9768         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
9769         * s-unstyp.ads: Update comments (this is now user available unit).
9771 2014-06-11  Robert Dewar  <dewar@adacore.com>
9773         * make.adb, sem_res.adb: Minor reformatting.
9775 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9777         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
9778         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
9779         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
9780         Preelaborate_05 to just Preelaborate in runtime units, and similarly
9781         change Pure_05 to just Pure.
9783 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9785         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
9786         analysis if error has been posted on subprogram body.
9788 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9790         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
9791         rule given in RM 13.1 (8/1) for operational attributes to stream
9792         attributes: the attribute must apply to a first subtype. Fixes
9793         missing errors in ACATS test bdd2004.
9795 2014-06-11  Robert Dewar  <dewar@adacore.com>
9797         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
9798         record type if restriction No_Implicit_Conditionals is active.
9799         (Expand_N_Object_Declaration): Don't allow default initialization
9800         for variant record type if restriction No_Implicit_Condition is active.
9801         (Build_Variant_Record_Equality): Don't build for variant
9802         record type if restriction No_Implicit_Conditionals is active.
9803         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
9804         No_Implicit_Conditionals.
9805         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
9807 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
9809         * i-cstrin.ads: Update comments.
9811 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9813         * sem_res.adb (Resolve_Selected_Component): Handle properly a
9814         selected component whose prefix is overloaded, when none of the
9815         interpretations matches the expected type.
9817 2014-06-11  Bob Duff  <duff@adacore.com>
9819         * make.adb (Wait_For_Available_Slot): Give a more
9820         informative error message; if the ALI file is not found, print
9821         the full path of what it's looking for.
9823 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
9825         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
9826         option to specify the result file encoding.
9828 2014-06-11  Robert Dewar  <dewar@adacore.com>
9830         * errout.ads, sem_ch12.adb: Minor reformatting.
9831         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
9832         * lib-xref.adb: Minor reformatting.
9833         * restrict.adb: Minor code reorganization (put routines in
9834         alpha order).
9836 2014-06-11  Yannick Moy  <moy@adacore.com>
9838         * einfo.ads: Minor typo in comment
9840 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9842         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
9843         formal private types and private type extensions, to indicate
9844         variable in a generic unit whose uninitialized use suggest that
9845         actual type should be fully initialized.
9846         Needs_Initialized_Actual:  removed, functionaity replaced by
9847         the above.
9848         * lib-xref.adb (Generate_Reference): Generate a reference for
9849         variables of a formal type when the unit is not the main unit,
9850         to enable appropriate warnings in an instance.
9851         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
9852         of variable in a generic unit that suggests that actual type
9853         should be full initialized.
9854         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
9855         and do not emot warning, which now only appears in an instance.
9857 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
9859         * gnat_ugn.texi: Fix minor typo.
9861 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9863         * sem_ch3.adb Add with and use clause for Sem_Ch10.
9864         (Analyze_Declarations): Code reformatting. Analyze the contract
9865         of a subprogram body stub at the end of the declarative region.
9866         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
9867         now a variable. Do not process the body if its contract is not
9868         available. Account for subprogram body stubs when extracting
9869         the corresponding spec.
9870         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
9871         on usage.
9872         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
9873         New routine.
9874         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
9875         Account for subprogram body stubs when extracting the
9876         corresponding spec.
9877         (Analyze_Global_In_Decl_List):
9878         Account for subprogram body stubs when extracting the
9879         corresponding spec.
9880         (Analyze_Refined_Depends_In_Decl_Part):
9881         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
9882         of the related body. Spec_Is now a variable. Account for
9883         subprogram body stubs when extracting the corresponding spec.
9884         (Analyze_Refined_Global_In_Decl_Part): Use
9885         Find_Related_Subprogram_Or_Body to retrieve the declaration
9886         of the related body. Spec_Is now a variable. Account for
9887         subprogram body stubs when extracting the corresponding spec.
9888         (Collect_Subprogram_Inputs_Output): Account for subprogram body
9889         stubs when extracting the corresponding spec.
9891 2014-06-11  Vincent Celier  <celier@adacore.com>
9893         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
9894         -lgnarl or -lgnat.
9896 2014-06-11  Robert Dewar  <dewar@adacore.com>
9898         * debug.adb: Add debug flag -gnatd.q.
9899         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
9900         -gnatd.q set.
9901         * styleg.adb (Check_Xtra_Parens): Message should be a style
9902         message.
9903         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
9904         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
9905         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
9906         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
9908 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
9910         * gnat_rm.texi: Revised chapter on Implementation Defined
9911         Characteristics.
9913 2014-06-11  Geert Bosch  <bosch@adacore.com>
9915         * s-exctab.adb: avoid race conditions in exception registration.
9917 2014-06-11  Robert Dewar  <dewar@adacore.com>
9919         * errout.adb (Warn_Insertion): New function.
9920         (Error_Msg): Use Warn_Insertion and Prescan_Message.
9921         (Error_Msg_Internal): Set Info field of error object.
9922         (Error_Msg_NEL): Use Prescan_Message.
9923         (Set_Msg_Text): Don't store info: at start of message.
9924         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
9925         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
9926         * errout.ads: Document new ?$? and >$> insertion sequences
9927         Document use of "(style)" and "info: "
9928         * erroutc.adb (dmsg): Print several missing fields
9929         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
9930         Deal with new tagging of info messages
9931         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
9932         Add field Info (Prescan_Message): New procedure, this procedure
9933         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
9934         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
9935         sem_elab.adb: Follow new rules for info message (info belongs
9936         only at the start of a message, and only in the first message,
9937         not in any of the continuations).
9938         * gnat_ugn.texi: Document full set of warning tags.
9940 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
9942         * sem_util.adb: Minor typo fix.
9944 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9946         * sem_warn.adb (Check_References): Do not emit spurious warnings
9947         on uninitialzed variable of a formal private type if variable
9948         is not read.
9950 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
9952         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
9953         set_decl_section_name accessor.
9955 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
9957         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
9958         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
9959         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
9961 2014-05-21  Robert Dewar  <dewar@adacore.com>
9963         * layout.adb: Minor reformatting.
9964         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
9965         dummy procedure ip.
9967 2014-05-21  Robert Dewar  <dewar@adacore.com>
9969         * restrict.ads (Implementation_Restriction): Add entry for
9970         No_Fixed_IO.
9971         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
9972         Ada.[Wide_[Wide_]Text_IO.
9973         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
9974         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
9975         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
9976         Wide_Wide_Value if restriction No_Fixed_IO is set.
9977         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
9979 2014-05-21  Robert Dewar  <dewar@adacore.com>
9981         * gnatcmd.adb: Minor error msg changes (no upper case letter
9982         at start).
9983         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
9984         reformatting.
9986 2014-05-21  Robert Dewar  <dewar@adacore.com>
9988         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
9989         via generic formals.
9990         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
9991         -gnatd.G is set.
9993 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9995         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
9996         more accurately describe that this subprogram needs to come into
9997         play also in cases where no byte swapping is involved, because
9998         it also takes care of some required shifts (left-justification
9999         of values).
10001 2014-05-21  Thomas Quinot  <quinot@adacore.com>
10003         * freeze.adb (Check_Component_Storage_Order): Indicate whether
10004         a Scalar_Storage_Order attribute definition is present for the
10005         component's type.
10006         (Freeze_Record_Type): Suppress junk warnings
10007         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
10008         definitions.
10010 2014-05-21  Robert Dewar  <dewar@adacore.com>
10012         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
10013         to Kill_Elaboration_Checks.
10015 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
10017         * layout.adb (Assoc_Add): Suppress the optimization of the (E
10018         - C1) + C2 case, when the expression type is unsigned and C1 <
10019         C2, to avoid creating a negative literal when folding.
10021 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
10023         * freeze.adb (Freeze_Record_Type): Update the use of
10024         Is_SPARK_Volatile.
10025         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
10026         Is_SPARK_Volatile.
10027         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
10028         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
10029         of Is_SPARK_Volatile.
10030         (Analyze_Loop_Parameter_Specification):
10031         Update the use of Is_SPARK_Volatile.
10032         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
10033         formal parameter when its type is volatile.
10034         * sem_prag.adb (Analyze_Global_Item): Update the use of
10035         Is_SPARK_Volatile.
10036         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
10037         determines whether an entity is a volatile source SPARK object.
10038         * sem_util.adb (Has_Enabled_Property): Accout for external
10039         properties being set on objects other than abstract states
10040         and variables. An example would be a formal parameter.
10041         (Is_SPARK_Volatile): New routine.
10042         (Is_SPARK_Volatile_Object):
10043         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
10044         when checking entities and/or types.
10045         * sem_util.ads (Is_SPARK_Volatile): New routine.
10047 2014-05-21  Robert Dewar  <dewar@adacore.com>
10049         * sem_warn.adb: Minor fix to warning messages (use ?? instead
10050         of ?).
10052 2014-05-21  Vincent Celier  <celier@adacore.com>
10054         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
10055         switch --version and --help.
10057 2014-05-21  Robert Dewar  <dewar@adacore.com>
10059         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
10061 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10063         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
10064         iterator variable when the domain of iteration is a formal
10065         container and this is an element iterator.
10067 2014-05-21  Bob Duff  <duff@adacore.com>
10069         * sem_ch12.adb: Minor reformatting.
10071 2014-05-21  Robert Dewar  <dewar@adacore.com>
10073         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
10075 2014-05-21  Robert Dewar  <dewar@adacore.com>
10077         * sem_elab.adb: Minor reformatting.
10078         * s-taprop.ads: Minor comment fix.
10079         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
10080         Kill_Elaboration_Checks.
10081         * errout.adb, erroutc.adb: Minor reformatting.
10083 2014-05-21  Thomas Quinot  <quinot@adacore.com>
10085         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
10086         component. No byte swapping occurs, but this procedure also takes
10087         care of appropriately justifying the argument.
10089 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
10091         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
10092         New routine.
10093         (Analyze_Subprogram_Body_Helper): Move the
10094         analysis of aspect specifications and the processing of the
10095         subprogram body contract after inlining has taken place.
10096         (Diagnose_Misplaced_Aspect_Specifications): Removed.
10098 2014-05-21  Javier Miranda  <miranda@adacore.com>
10100         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
10102 2014-05-21  Robert Dewar  <dewar@adacore.com>
10104         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
10105         continuations any more.
10107 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10109         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
10110         present in formal_Private_Definitions and on private extension
10111         declarations of a formal derived type. Set when the use of the
10112         formal type in a generic suggests that the actual should be a
10113         fully initialized type.
10114         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
10115         to indicate that an entity of a generic type has default
10116         initialization, and that the corresponing actual type in any
10117         subsequent instantiation should be fully initialized.
10118         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
10119         to emit a warning if the actual for a generic type on which
10120         Needs_Initialized_Actual is set is not a fully initialized type.
10122 2014-05-21  Robert Dewar  <dewar@adacore.com>
10124         * sem_elab.adb, prj-dect.adb: Minor reformatting.
10126 2014-05-21  Robert Dewar  <dewar@adacore.com>
10128         * erroutc.ads: Minor comment addition.
10130 2014-05-21  Robert Dewar  <dewar@adacore.com>
10132         * errout.ads: Add documentation for use of >*> tag.
10133         * restrict.adb: Make sure we use >*> tag for restriction warnings.
10135 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
10137         * debug.adb: Add case of illegal overriding_indicator for a
10138         protected subprogram body to description of -gnatd.E switch.
10139         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
10140         for cases of giving overriding_indicators on protected subprogram
10141         bodies, but change this to a warning if -gnatd.E is enabled. No
10142         longer give a style warning about missing indicators on protected
10143         subprogram bodies.
10145 2014-05-21  Robert Dewar  <dewar@adacore.com>
10147         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
10148         sem_elab.ads: Minor reformatting.
10149         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
10150         parameter optional.
10152 2014-05-21  Pascal Obry  <obry@adacore.com>
10154         * prj-dect.adb: Allow package Install in aggregate project.
10156 2014-05-21  Robert Dewar  <dewar@adacore.com>
10158         * sem_ch13.adb (Analyze_Aspect_Specifications):
10159         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
10160         * sem_prag.adb: Minor comment improvements.
10162 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10164         * sem_ch12.adb (Install_Body): When checking whether freezing of
10165         instantiation must be delayed, verify that the common enclosing
10166         subprogram to generic and instance is in fact an overloadable
10167         entity.
10169 2014-05-21  Vincent Celier  <celier@adacore.com>
10171         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
10172         mains with the same name and fail if there is more than one.
10173         * prj.ads, prj.adb (Find_All_Sources): New function
10175 2014-05-21  Robert Dewar  <dewar@adacore.com>
10177         * sem_ch13.adb: Minor reformatting.
10178         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
10179         * sem_prag.adb: Minor error message improvement.
10181 2014-05-21  Yannick Moy  <moy@adacore.com>
10183         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
10184         (Enclosing_Subprogram_Or_Package): Only return a library-level
10185         package.
10187 2014-05-21  Javier Miranda  <miranda@adacore.com>
10189         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
10190         to the full view of the parent type when processing a derived type
10191         which is the full view of a private type not defined in a generic
10192         unit which is derived from a private type with discriminants
10193         whose full view is a non-tagged record type.
10195 2014-05-21  Javier Miranda  <miranda@adacore.com>
10197         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
10198         Complete previous patch.
10200 2014-05-21  Thomas Quinot  <quinot@adacore.com>
10202         PR ada/9535
10203         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
10204         Provide a behaviour more consistent with underlying datagram
10205         socket: do not attempt to loop over Send_Socket/Receive_Socket
10206         iterating along the buffer.
10208 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
10210         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
10211         or a tagged type is not labelled as volatile. Ensure that a
10212         non-volatile type has no volatile components.
10213         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
10214         Obj_Typ. Code reformatting.  Ensure that a discriminated or
10215         tagged object is not labelled as volatile.
10216         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
10217         pragma Volatile applies to a full type declaration or an object
10218         declaration when SPARK mode is on.
10220 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
10222         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
10223         providing options needed for compiling the argument source for
10224         the situation when a project file can be used as a tool parameter.
10226 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
10228         * gnat_rm.texi: Minor typo fix.
10230 2014-05-21  Robert Dewar  <dewar@adacore.com>
10232         * stand.adb (Tree_Read): Read missing entities.
10233         (Tree_Write): Write missing entities.
10235 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
10237         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
10238         section in gnatmetric chapter.
10240 2014-05-21  Robert Dewar  <dewar@adacore.com>
10242         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
10243         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
10244         post-call copy write back (see detailed comment in code).
10245         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
10246         Exp_Ch6.
10247         * tbuild.ads: Minor reformatting.
10249 2014-05-21  Robert Dewar  <dewar@adacore.com>
10251         * stand.ads: Add warning about adding new entities and
10252         Tree_Read/Tree_Write.
10254 2014-05-21  Robert Dewar  <dewar@adacore.com>
10256         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
10257         references to restricted entities within the units in which they
10258         are declared.
10260 2014-05-21  Robert Dewar  <dewar@adacore.com>
10262         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
10263         simplify the needed test, and also deal with failure to catch
10264         situations with non-standard names.
10265         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
10266         (Source_File_Is_Subunit): Removed, no longer used.
10268 2014-05-21  Javier Miranda  <miranda@adacore.com>
10270         * exp_ch4.adb
10271         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
10272         renaming of an access to interface object there is no need to
10273         generate extra code to reference the tag.
10275 2014-05-21  Robert Dewar  <dewar@adacore.com>
10277         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
10278         Warnings (Off, string).
10280 2014-05-21  Robert Dewar  <dewar@adacore.com>
10282         * osint.adb: Fix three error messages to say invalid instead
10283         of erroneous.
10284         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
10285         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
10286         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
10288 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10290         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
10291         sem_ch9.ads: Move discriminant manipulation routines for analysis of
10292         aspect specifications from sem_ch9 to sem_ch13, where they belong.
10294 2014-05-21  Robert Dewar  <dewar@adacore.com>
10296         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
10297         Clearly document -gnatyg (GNAT style switches).
10298         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
10299         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
10300         available for VMS after all.
10301         * warnsw.adb: Reorganize to eliminate duplicated code
10302         (Restore_Warnings): Add a couple of missing entries
10303         (Save_Warnings): Add a couple of missing entries.
10304         * warnsw.ads: Add missing entries to Warning_Record (not clear
10305         what the impact is).
10307 2014-05-21  Robert Dewar  <dewar@adacore.com>
10309         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
10310         warning) case.
10311         * errout.ads: Document ?*? (restriction warning) insertion.
10312         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
10313         warning) case.
10314         * erroutc.ads: Document use of * for restriction warning tag.
10315         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
10317 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10319         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
10320         make discriminants immediately visible when analyzing an aspect
10321         of a subtype declaration.
10322         (Uninstall_Discriminants): Do not apply to the entity in a
10323         subtype declaration.
10325 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10327         * sem_util.adb: Code clean up.
10329 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
10331         * gnat_ugn.texi: Document -Werror.
10333 2014-05-21  Bob Duff  <duff@adacore.com>
10335         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
10336         This was returning False if the Object is a constant view. Fix
10337         it to return True in that case, because it might be a view of
10338         a variable.
10339         (Has_Discriminant_Dependent_Constraint): Fix latent
10340         bug; this function was crashing when passed a discriminant.
10342 2014-05-21  Robert Dewar  <dewar@adacore.com>
10344         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
10345         * s-arit64.adb: Minor code reorganization.
10346         * sem_prag.adb: Minor comment fix (remove erroneous use of the
10347         term erroneous).
10349 2014-05-21  Robert Dewar  <dewar@adacore.com>
10351         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
10352         computing new table size.
10354 2014-05-21  Robert Dewar  <dewar@adacore.com>
10356         * einfo.ads: Minor reformatting.
10357         * ceinfo.adb: Deal with slight format change of einfo.ads.
10359 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10361         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
10362         implementation of the SPARK 2014 rule concerning private child
10363         units (LRM 7.2.6).
10365 2014-05-21  Vincent Celier  <celier@adacore.com>
10367         * makeusg.adb: Add switch -d to usage.
10369 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10371         * sem_util.adb (Find_Actual): If an actual that is the prefix
10372         of an enclosing prefixed call has been rewritten, use Nkind
10373         and Sloc to identify the corresponding formal, when handling
10374         deferred references.
10376 2014-05-21  Robert Dewar  <dewar@adacore.com>
10378         * debug.adb: Document -gnatd.z switch.
10379         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
10381 2014-05-21  Robert Dewar  <dewar@adacore.com>
10383         * einfo.ads (Can_Never_Be_Null): Minor comment update.
10384         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
10385         error message change.
10386         * s-arit64.adb ("abs"): New function. Use expression functions
10387         for the simple conversions and arithmetic.
10389 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10391         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
10392         set function_start_locus.
10394 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10396         * utils.c (gnat_write_global_declarations): Adjust the flags put on
10397         dummy_global.
10399 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10401         * gcc-interface/decl.c (change_qualified_type): New static function.
10402         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
10403         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
10404         <E_Array_Subtype>: Likewise.
10405         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
10406         (gnat_to_gnu_component_type): Likewise.
10407         (gnat_to_gnu_param): Likewise.
10409 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10411         * fe.h (Set_Present_Expr): Move around.
10412         (End_Location): New macro.
10413         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
10415 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10417         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
10418         lieu of more verbose construct.
10419         * gcc-interface/trans.c (Call_to_gnu): Likewise.
10420         (gnat_to_gnu): Likewise.  Remove obsolete code.
10422 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10424         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
10425         consider that regular packed arrays can never be superflat.
10427 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
10429         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
10430         annotation.
10431         * gcc-interface/decl.c (annotate_value): Adjust.
10432         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
10433         (push_range_check_info): Likewise.
10434         (Loop_Statement_to_gnu): Likewise.
10435         (Subprogram_Body_to_gnu): Likewise.
10436         (Compilation_Unit_to_gnu): Likewise.
10437         (start_stmt_group): Likewise.
10438         * gcc-interface/utils.c (init_gnat_utils): Likewise.
10439         (gnat_pushlevel): Likewise.
10440         (maybe_pad_type): Likewise.
10442 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
10444         * seh_init.c: Fix copyright year.
10446 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10448         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
10449         are defined.  Move include windows.h before system.h.
10450         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
10451         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
10453 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
10455         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
10456         to the appropriate type.
10457         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
10458         (pos_to_constructor): Likewise.
10460 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10462         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
10464 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
10465             Mike Stump  <mikestump@comcast.net>
10466             Richard Sandiford  <rdsandiford@googlemail.com>
10468         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
10469         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
10470         (annotate_value): Use wide-int interfaces.
10471         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
10473 2014-04-28  Richard Henderson  <rth@redhat.com>
10475         * gcc-interface/Makefile.in: Support aarch64-linux.
10477 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10479         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
10480         add 'Suffix' parameter and adjust comment.
10481         (Get_External_Name_With_Suffix): Delete.
10482         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
10483         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
10484         'Suffix' parameter.
10485         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
10486         Call Get_External_Name instead of Get_External_Name_With_Suffix.
10487         (Get_Secondary_DT_External_Name): Likewise.
10488         * exp_cg.adb (Write_Call_Info): Likewise.
10489         * exp_disp.adb (Export_DT): Likewise.
10490         (Import_DT): Likewise.
10491         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
10492         parameter with False default.
10493         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
10494         * types.h (Fat_Pointer): Rename into...
10495         (String_Pointer): ...this.  Add comment on interfacing rules.
10496         * fe.h (Compiler_Abort): Adjust for above renaming.
10497         (Error_Msg_N): Likewise.
10498         (Error_Msg_NE): Likewise.
10499         (Get_External_Name): Likewise.  Add third parameter.
10500         (Get_External_Name_With_Suffix): Delete.
10501         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
10502         (create_concat_name): Adjust call to Get_External_Name, remove call to
10503         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
10504         * gcc-interface/trans.c (post_error): Likewise.
10505         (post_error_ne): Likewise.
10506         * gcc-interface/misc.c (internal_error_function): Likewise.
10508 2014-04-28  Richard Biener  <rguenther@suse.de>
10510         PR middle-end/60092
10511         * gcc-interface/utils.c: Define flag_isoc11.
10513 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10515         * gnatvsn.ads (Library_Version): Bump to 4.10.
10517 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
10519         Revert
10520         2014-04-22  Richard Henderson  <rth@redhat.com>
10522         * gcc-interface/Makefile.in: Support aarch64-linux.
10524         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
10526         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
10527         (Error_Msg_N): Likewise.
10528         (Error_Msg_NE): Likewise.
10529         (Get_External_Name_With_Suffix): Likewise.
10530         * types.h (Fat_Pointer): Delete.
10531         (String_Pointer): New type.
10532         (DECLARE_STRING_POINTER): New macro.
10533         * gcc-interface/decl.c (create_concat_name): Adjust.
10534         * gcc-interface/trans.c (post_error): Likewise.
10535         (post_error_ne): Likewise.
10536         * gcc-interface/misc.c (internal_error_function): Likewise.
10538 2014-04-22  Richard Henderson  <rth@redhat.com>
10540         * gcc-interface/Makefile.in: Support aarch64-linux.
10542         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
10543         (__gnat_alternate_stack): Enable for all linux except ia64.
10545 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
10547         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
10548         (Error_Msg_N): Likewise.
10549         (Error_Msg_NE): Likewise.
10550         (Get_External_Name_With_Suffix): Likewise.
10551         * types.h (Fat_Pointer): Delete.
10552         (String_Pointer): New type.
10553         (DECLARE_STRING_POINTER): New macro.
10554         * gcc-interface/decl.c (create_concat_name): Adjust.
10555         * gcc-interface/trans.c (post_error): Likewise.
10556         (post_error_ne): Likewise.
10557         * gcc-interface/misc.c (internal_error_function): Likewise.
10559 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10560             Pierre-Marie de Rodat  <derodat@adacore.com>
10562         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
10563         scalar constant instead of a reference for renaming of scalar literal.
10564         Do not create a new object for constant renaming except for a function
10565         call.  Make sure a VAR_DECL is created for the renaming pointer.
10566         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
10567         (fold_constant_decl_in_expr): New function.
10568         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
10569         For a constant renaming, try to fold a constant DECL in the result.
10570         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
10571         (Identifier_to_gnu): Reference the renamed object of constant renaming
10572         pointers directly.
10573         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
10574         invalidate constant renaming pointers.
10576 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10578         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
10579         (build_vector_type_for_size): New function.
10580         (build_vector_type_for_array): Likewise.
10581         (unchecked_convert): Build an intermediate vector type to convert
10582         from a generic array type to a vector type.
10583         (handle_vector_size_attribute): Reimplement.
10584         (handle_vector_type_attribute): Likewise.
10586 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10588         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
10589         Is_OK_Static_Expression in lieu of Is_Static_Expression to
10590         detect valid arguments.
10592 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10594         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
10596 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
10598         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
10599         (components_to_record): Likewise.
10600         * gcc-interface/utils.c (make_aligning_type): Likewise.
10601         (maybe_pad_type): Likewise.
10602         (finish_record_type): Likewise.
10603         (rest_of_record_type_compilation): Likewise.
10605 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10607         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
10608         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
10609         for Ivdep hint.
10610         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
10611         hint for Loop_Optimize.
10612         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
10613         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
10614         with new Ivdep hint.
10615         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
10616         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
10617         with new Ivdep hint.
10618         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
10620 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10621             Robert Dewar  <dewar@adacore.com>
10623         * opt.ads (Suppress_Back_Annotation): Remove as unused.
10624         * fe.h (Back_Annotate_Rep_Info): Likewise.
10625         (Global_Discard_Names): Likewise.
10626         (List_Representation_Info): Declare.
10627         * types.h (Uint_Minus_1): Likewise.
10628         * repinfo.ads: Document back-annotation change.
10629         * gcc-interface/gigi.h (init_gnat_decl): Declare.
10630         (destroy_gnat_decl): Likewise.
10631         * gcc-interface/decl.c (annotate_value): Do not create the cache of
10632         annotated values here but...
10633         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
10634         in ASIS mode.
10635         (init_gnat_decl): ...here instead.  New function.
10636         (destroy_gnat_decl): Likewise.
10637         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
10638         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
10640 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10642         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
10643         offset for the field, if any.
10645 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10646             Svante Signell  <svante.signell@gmail.com>
10648         PR ada/54040
10649         PR ada/59346
10650         * s-osinte-x32.adb: New file.
10651         * s-linux.ads (Time): New section.
10652         * s-linux-alpha.ads (Time): Likewise.
10653         * s-linux-android.ads (Time: Likewise.
10654         * s-linux-hppa.ads (Time): Likewise.
10655         * s-linux-mipsel.ads (Time): Likewise.
10656         * s-linux-sparc.ads (Time): Likewise.
10657         * s-linux-x32.ads (Time): Likewise.
10658         * s-osprim-x32.ads (timespec): Adjust.
10659         (Clock): Likewise.
10660         (To_Timespec): Likewise.
10661         * s-osinte-linux.ads (Time): Define local subtypes for those defined
10662         in System.Linux.
10663         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
10664         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
10665         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
10666         * s-osinte-solaris-posix.ads (timespec): Likewise.
10667         * s-osinte-posix.adb (To_Timespec): Likewise.
10668         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
10670 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10672         PR ada/60411
10673         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
10674         * s-linux-android.ads: New file.
10675         * s-intman-android.adb: Likewise.
10676         * s-osinte-android.ads: Adjust.
10677         * sigtramp-armdroid.c: Likewise.
10678         * sigtramp.h: Add Android support.
10680 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10682         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
10684 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10686         PR ada/60703
10687         * system-linux-alpha.ads: Adjust for Ada 2005.
10688         * system-linux-mips.ads: Likewise.
10689         * system-linux-mips64el.ads: Likewise.
10690         * system-linux-mipsel.ads: Likewise.
10691         * system-linux-s390.ads: Likewise.
10692         * system-linux-s390x.ads: Likewise.
10693         * system-linux-sparc.ads: Likewise.
10694         * system-linux-sparcv9.ads: Likewise.
10695         * system-rtems.ads: Likewise.
10696         * system-vxworks-arm.ads: Likewise.
10698 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
10700         PR ada/39172
10701         * gcc-interface/Makefile.in (target_cpu_default): Revert
10702         2013-10-11 change.
10704 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
10706         PR ada/51483
10707         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
10708         it to set the RM size.  Use directly 'size' for the Esize.
10709         (Create_Back_End_Float_Types): Adjust call to above.
10710         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
10711         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
10712         (Write_Target_Dependent_Values): Adjust comment.
10713         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
10714         deal with it.
10715         (Write_Target_Dependent_Values): Write the precision in lieu of size.
10716         (Initialization): Read the precision in lieu of size and compute the
10717         size from the precision and the alignment.
10718         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
10719         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
10720         types for vector modes, pass the size in addition to the precision.
10722 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
10724         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
10726 2014-03-07  Doug Rupp  <rupp@adacore.com>
10728         PR ada/60411
10729         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
10730         (Support_64_Bit_Divides): Removed, no longer used.
10731         (ZCX_By_Default): Enabled.
10733 2014-02-25  Doug Rupp  <rupp@adacore.com>
10735         * gcc-interface/Makefile.in (arm-linux):
10736         (EH_MECHANISM): Use ARM unwinder (-arm)
10737         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
10738         s-excmac-arm.ads.
10739         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
10740         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
10741         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
10742         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
10743         Add dependencies for sigtramp-armvxw.o.
10745 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10747         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
10749 2014-02-25  Robert Dewar  <dewar@adacore.com>
10751         * rtsfind.adb (Is_RTE): Protect against entity with no scope
10752         field (previously this call blew up on the Standard entity).
10753         * sem_attr.adb (Analyze_Attribute, case Access): Remove
10754         test for No_Abort_Statements, this is now handled in
10755         Set_Entity_With_Checks.
10756         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
10757         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
10758         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
10759         Set_Entity_With_Checks.
10760         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
10761         Add checks for No_Abort_Statements.
10763 2014-02-25  Robert Dewar  <dewar@adacore.com>
10765         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
10766         Check_Restriction is OK.
10768 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10770         * sem_ch3.adb (Process_Full_View): Better error message when
10771         the full view of  a private type without discriminants is an
10772         unconstrained type.
10773         * sem_ch7.adb (Uninstall_Declarations): Ditto.
10775 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10777         * sigtramp-armvxw.c: Also restore r0.
10779 2014-02-25  Robert Dewar  <dewar@adacore.com>
10781         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
10782         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
10783         set unconditionally.
10784         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
10785         any more (Output_Msg_Text): Rewritten with new convention on
10786         output of warnings that are treated as errors.
10787         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
10788         if Warn is False.
10789         * gnat_rm.texi: Updates to documentation on pragma
10790         Warning_As_Error.
10791         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
10792         set Warning_Doc_Switch.
10793         * lib-writ.ads: Add documentation note on ALI file generation
10794         for C.
10795         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
10796         (belongs in Sem).
10797         * sem_attr.adb (Resolve_Attribute, case Access):
10798         Abort_Task'Access violates the No_Abort_Statements restriction.
10799         * sem_res.adb (Resolve_Call): Check restriction
10800         No_Abort_Statements for call to Abort_Task or a renaming of it.
10802 2014-02-25  Robert Dewar  <dewar@adacore.com>
10804         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
10805         type name as index.
10806         * lib.ads: Minor reformatting.
10807         * einfo.ads: Minor reformatting.
10809 2014-02-25  Doug Rupp  <rupp@adacore.com>
10811         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
10812         use Short_Descriptor(S) as the argument passing mechanism.
10814 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10816         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
10818 2014-02-25  Robert Dewar  <dewar@adacore.com>
10820         * atree.ads (Warnings_Treated_As_Errors): New variable.
10821         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
10822         error object (Initialize): Initialize Warnings_As_Errors_Count
10823         (Write_Error_Summary): Include count of warnings treated as errors.
10824         * erroutc.adb (Warning_Treated_As_Error): New function.
10825         (Matches): Function moved to outer level of package.
10826         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
10827         (Warning_Treated_As_Error): New function.
10828         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
10829         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
10830         * opt.ads (Config_Switches_Type): Add entry for
10831         Warnings_As_Errors_Count.
10832         (Warnings_As_Errors_Count): New variable.
10833         (Warnings_As_Errors): New array.
10834         * par-prag.adb: Add dummy entry for Warning_As_Error.
10835         * sem_prag.adb (Analyze_Pragma): Implement new pragma
10836         Warning_As_Error.
10837         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
10839 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10841         * sigtramp.h: Fix minor inaccuracy.
10843 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
10845         * gnat_ugn.texi: Added description of kill command.
10847 2014-02-25  Robert Dewar  <dewar@adacore.com>
10849         * gnat_rm.texi (Address_Clauses): Add a section discussing the
10850         problem of address clauses causing unexpected initialization,
10851         including the effect of Initialize_Scalars.
10853 2014-02-25  Robert Dewar  <dewar@adacore.com>
10855         * errout.adb: Various changes for better msgs for anonmous access
10856         subprogram types.
10857         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
10858         argument.
10859         (Buffer_Remove): Version with character argument.
10860         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
10861         of mismatching conventions for access-to-subprogram case.
10862         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
10863         access types in record.
10864         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
10865         types, including in records.
10867 2014-02-25  Doug Rupp  <rupp@adacore.com>
10869         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
10870         enhancements and corrections.
10872 2014-02-25  Robert Dewar  <dewar@adacore.com>
10874         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
10876 2014-02-25  Robert Dewar  <dewar@adacore.com>
10878         * gnat_rm.texi: First set of documentation additions for
10879         predefined RM units.
10880         * checks.adb: Minor reformatting.
10881         * sem_elab.adb (Check_Task_Activation): Minor fix to error
10882         message.
10883         * sem_util.adb: Minor reformatting.
10885 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
10887         * usage.adb (Usage): Add help on -gnateC.
10888         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
10889         * opt.ads (Generate_CodePeer_Messages): New flag.
10890         * gnat_ugn.texi: Document new switch -gnateC.
10892 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
10894         * gnat_rm.texi: Corrected minor typos in Implementation Defined
10895         Aspects.
10896         * opt.ads: Minor reformatting.
10898 2014-02-25  Robert Dewar  <dewar@adacore.com>
10900         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
10901         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
10902         of -gnatel/-gnateL.
10903         * opt.ads (Warn_Info_Messages): New flag.
10904         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
10905         messages.
10906         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
10907         messages.
10908         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
10909         * usage.adb: Add documentation of -gnatel/-gnateL Update
10910         documentation of -gnatwl/-gnatwL.
10911         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
10912         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
10914 2014-02-25  Robert Dewar  <dewar@adacore.com>
10916         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
10917         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
10918         * interfac.ads: Minor code reorganization (add pragma
10919         Compiler_Unit_Warning).
10920         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
10921         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
10922         Has_Shift_Operator flag.
10923         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
10924         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
10925         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
10926         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
10927         Add entry for Name_Amount.
10928         * checks.adb (Selected_Range_Checks): When checking for a null
10929         range, make sure we use the base type, and not the subtype for
10930         deciding a range is null.
10931         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
10932         for suspicious loop bound which is outside the range of the
10933         loop subtype.
10934         * gnat_ugn.texi: Add documentation section "Determining the
10935         Chosen Elaboration Order"
10936         * sem_ch13.adb (UC_Entry): Add field Act_Unit
10937         (Validate_Unchecked_Conversion): Store Act_Unit
10938         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
10939         * treepr.adb: Minor reformatting.
10941 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
10943         * usage.adb: Minor: fix typo.
10945 2014-02-25  Robert Dewar  <dewar@adacore.com>
10947         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
10948         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
10949         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
10950         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
10951         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
10952         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
10953         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
10954         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
10955         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
10956         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
10957         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
10958         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
10959         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
10960         Compiler_Unit_Warning, change Compiler_Unit everywhere to
10961         Compiler_Unit_Warning.
10963 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
10965         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
10966         in ASIS mode aggregates that are used as aspect definitions.
10968 2014-02-25  Robert Dewar  <dewar@adacore.com>
10970         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
10971         reformatting.
10973 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10975         * freeze.adb (Freeze_Entity): If the return type of a function
10976         is a limited view, and the non-limited view has not been seen yet,
10977         defer freezing to some later point.
10979 2014-02-25  Robert Dewar  <dewar@adacore.com>
10981         * sem_ch3.adb: Minor reformatting.
10983 2014-02-25  Robert Dewar  <dewar@adacore.com>
10985         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
10986         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
10987         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
10988         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
10989         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
10990         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
10991         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
10992         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
10993         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
10994         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
10995         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
10996         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
10997         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
10998         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
10999         snames.ads-tmpl: Change Compiler_Unit everywhere to
11000         Compiler_Unit_Warning.
11002 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
11004         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
11005         (Collect_Body_Postconditions_In_Decls): New routine.
11006         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
11007         postcondition aspects or pragmas that appear on a subprogram
11008         body stub.
11009         (Collect_Spec_Preconditions): Factor out code. Handle
11010         precondition aspects or pragmas that appear on a subprogram
11011         body stub.
11012         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
11013         aspects that apply to a subprogram body stub is no longer delayed,
11014         the aspects are analyzed on the spot.
11015         (SPARK_Aspect_Error):
11016         Aspects that apply to a subprogram declaration cannot appear in
11017         a subunit.
11018         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
11019         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
11020         is now a local variable. Code cleanup. Analysis related to
11021         the aspects of a subprogram body stub is now carried out by
11022         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
11023         and/or pragmas of a subprogram body stub to the proper body
11024         as this is no longer needed. Do not analyze the aspects of a
11025         subprogram stub when the corresponding source unit is missing.
11026         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
11027         on a stub.
11028         (Analyze_Task_Body_Stub): Flag the illegal use of
11029         aspects on a stub.
11030         (Optional_Subunit): Add local variable Unum.
11031         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
11032         pragma when it applies to a subprogram body stub.
11033         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
11034         Depends and Global can now apply to a subprogram body stub as
11035         long as it acts as its own spec.
11036         (Analyze_Refined_Pragma):
11037         Code reformatting. Refinement pragmas cannot apply to a subunit.
11039 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
11041         * einfo.ads Update the usage of flag
11042         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
11043         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
11044         now starts with the letter 'C'. This makes reading expanded
11045         code easier.
11046         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
11047         Iter_Loop. Signal that an Ada 2012 iterator loop requires
11048         secondary stack management when creating a transient scope for
11049         an element reference.
11050         * exp_util.adb (Process_Statements_For_Controlled_Objects):
11051         When wrapping the statements of a loop, pass the E_Loop entity
11052         to the wrapping machinery.
11053         (Wrap_Statements_In_Block): Add
11054         formal parameter Scop along with comment on usage. Add local
11055         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
11056         block as requiring secondary stack management when the block is
11057         created inside an Ada 2012 iterator loop. This ensures that any
11058         reference objects are reclaimed on each iteration of the loop.
11059         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
11060         tasked with the handling of container iterators as requiring
11061         secondary stack management. This ensures that iterators are
11062         reclaimed when the loop terminates or is exited in any fashion.
11063         * sem_util.adb (Add_Block_Identifier): New routine.
11064         (Find_Enclosing_Iterator_Loop): New routine.
11065         * sem_util.ads (Add_Block_Identifier): New routine.
11066         (Find_Enclosing_Iterator_Loop): New routine.
11068 2014-02-25  Robert Dewar  <dewar@adacore.com>
11070         * sinfo.ads: Minor reformatting.
11072 2014-02-25  Tristan Gingold  <gingold@adacore.com>
11074         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
11076 2014-02-25  Pascal Obry  <obry@adacore.com>
11078         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
11080 2014-02-25  Tristan Gingold  <gingold@adacore.com>
11082         * sem_ch10.adb: Minor comment fix.
11084 2014-02-25  Bob Duff  <duff@adacore.com>
11086         * s-tasdeb.adb: Misc cleanup of this package,
11087         including printing addresses in hexadecimal.
11088         (Write): Fix minor bug when taking 'Address of an empty string.
11090 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
11092         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
11093         public child unit when it does not refer to the abstract state
11094         of a public ancestor.
11096 2014-02-25  Yannick Moy  <moy@adacore.com>
11098         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
11099         Validity_Checks in GNATprove and CodePeer modes.
11101 2014-02-25  Pascal Obry  <obry@adacore.com>
11103         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
11104         Artifacts attribute.
11106 2014-02-25  Yannick Moy  <moy@adacore.com>
11108         * sem_prag.adb: Minor reformatting to get consistent messages.
11110 2014-02-25  Robert Dewar  <dewar@adacore.com>
11112         * checks.adb: Minor reformatting.
11113         * sinfo.ads (Do_Range_Check): Document that this flag is never
11114         passed to the back end.
11116 2014-02-25  Yannick Moy  <moy@adacore.com>
11118         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
11119         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
11121 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
11123         * sem_res.adb (Appears_In_Check): New routine.
11124         (Resolve_Entity_Name): Remove local variables Prev and
11125         Usage_OK. Par is now a constant. Remove the parent chain traversal
11126         as the placement of a volatile object with enabled property
11127         Async_Writers and/or Effective_Reads must appear immediately
11128         within a legal construct.
11130 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
11132         * checks.adb (Apply_Selected_Range_Checks):
11133         Alphabetize local constants and variables. Add comments.
11134         Always insert a range check that requires runtime evaluation into
11135         the tree.
11137 2014-02-25  Robert Dewar  <dewar@adacore.com>
11139         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
11141 2014-02-25  Bob Duff  <duff@adacore.com>
11143         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
11144         iterations while waiting for independent tasks to terminate;
11145         if an independent task does not terminate, we do not want to
11146         hang here. In that case, the thread will be terminated when the
11147         process exits.
11148         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
11150 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
11152         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
11153         used to perform pre-analysis of the expression for SPARK
11154         aspects that have a non-standard syntax, such as GLobal and
11155         Initializes. The procedure applies to the original expression
11156         in an aspect specification, prior to the analysis of the
11157         corresponding pragma, in order to provide semantic information
11158         for ASIS navigation purposes.
11159         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
11160         Call new subprogram.
11162 2014-02-25  Yannick Moy  <moy@adacore.com>
11164         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
11166 2014-02-25  Doug Rupp  <rupp@adacore.com>
11168         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
11169         (__gnat_adjust_context_for_raise): Bump the PC by 2.
11171 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
11173         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
11174         misplaced IS, add a statement sequence to improper body only if
11175         one has not been parsed already.
11177 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
11179         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
11180         mismatch when multidimensional array is updated with a single
11181         index.
11183 2014-02-25  Yannick Moy  <moy@adacore.com>
11185         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
11186         sem_ch6.adb: Mark most references to SPARK RM in error messages
11187         for removal.
11189 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11191         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
11192         appears in a list of basic declarations, complete the tree with
11193         an empty statement list, to prevent cascaded errors and crashes
11194         if semantic analysis is attempted.
11196 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11198         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
11199         value.
11200         * erroutc.adb: Minor reformatting.
11202 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11204         * sem_prag.adb (Check_Clause_Syntax): Account
11205         for a solitary input item in a dependency list.
11207 2014-02-24  Yannick Moy  <moy@adacore.com>
11209         * gnat1drv.adb (Adjust_Global_Switches): Do not
11210         use validity checks at all in GNATprove_Mode.
11212 2014-02-24  Robert Dewar  <dewar@adacore.com>
11214         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
11215         atree.adb, atree.ads: Minor reformatting.
11217 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11219         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
11220         global and dependence refinement when SPARK_Mode is off.
11221         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
11222         state refinement when SPARK_Mode is off.
11223         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
11224         variable Decl. Insert the generated pragma for Refined_State
11225         after a potential pragma SPARK_Mode.
11226         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
11227         constant Deps. Remove local variable Expr. Check the syntax
11228         of pragma Depends when SPARK_Mode is off. Factor out the
11229         processing for extra parenthesis around individual clauses.
11230         (Analyze_Global_In_Decl_List): Items is now a constant. Check
11231         the syntax of pragma Global when SPARK_Mode is off.
11232         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
11233         Initializes when SPARK_Mode is off.
11234         (Analyze_Part_Of): Check
11235         the syntax of the encapsulating state when SPARK_Mode is off.
11236         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
11237         SPARK_Mode is off. Move the declaration order check with respect
11238         to pragma Initializes to the end of the processing. Do not verify
11239         the declaration order for pragma Initial_Condition when SPARK_Mode
11240         is off. Do not complain about a useless package refinement when
11241         SPARK_Mode is off.
11242         (Analyze_Refined_Depends_In_Decl_Part): Refs
11243         is now a constant. Check the syntax of pragma Refined_Depends
11244         when SPARK_Mode is off.
11245         (Analyze_Refined_Global_In_Decl_Part):
11246         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
11247         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
11248         Refined_State when SPARK_Mode is off.
11249         (Check_Dependence_List_Syntax): New routine.
11250         (Check_Global_List_Syntax): New routine.
11251         (Check_Initialization_List_Syntax): New routine.
11252         (Check_Item_Syntax): New routine.
11253         (Check_State_Declaration_Syntax): New routine.
11254         (Check_Refinement_List_Syntax): New routine.
11255         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
11257 2014-02-24  Robert Dewar  <dewar@adacore.com>
11259         * a-tags.adb, s-os_lib.adb: Minor reformatting.
11261 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11263         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
11264         strerror message, not just numeric errno value.
11266 2014-02-24  Doug Rupp  <rupp@adacore.com>
11268         * raise-gcc.c (exception_class_eq): Make endian neutral.
11270 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11272         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
11273         flag, and reset Etype and Analyzed attributes unconditionally
11274         when copying a tree that may be partly analyzed.
11275         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
11276         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
11277         within a subprogram body and applies to it, remove it from the
11278         body before making a copy of it, to prevent spurious errors when
11279         analyzing the copied body.
11281 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11283         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
11284         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
11285         vxWorks.h has been included.  Also ensure that file attributes
11286         related definitions are output even in cases where socket support
11287         is not enabled.
11288         * a-tags.adb: Code clean up.
11289         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
11290         instead of -I to add the main ada source directory to the header
11291         search path, in order to avoid conflict between our own "types.h"
11292         and VxWork's <types.h>.
11294 2014-02-24  Robert Dewar  <dewar@adacore.com>
11296         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
11297         * debug.adb: Remove documentation of -gnatd.X, no longer used.
11298         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
11300 2014-02-24  Bob Duff  <duff@adacore.com>
11302         * gnat_ugn.texi: Improve documentation of gnatpp.
11304 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11306         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
11307         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
11308         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
11309         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
11310         a chars_ptr, because on Windows this is a renaming of
11311         Socket_Error_Message.
11313 2014-02-24  Robert Dewar  <dewar@adacore.com>
11315         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
11316         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
11317         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
11318         reorganization.
11320 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11322         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
11323         that the source directory containing s-oscons-tmplt.c is on the
11324         include path, so that all internal header files are available.
11326 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11328         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
11329         domain of iteration is an attribute reference 'Old, this is an
11330         Ada 2012 iterator and the loop must be rewritten as such.
11332 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11334         * s-fileio.adb (Errno_Message): Remove, use shared version from
11335         s-os_lib instead.
11336         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
11337         * g-stseme (Socket_Error_Message): Reimplement in terms of new
11338         s-os_lib function.
11339         * g-socthi.ads, g-socthi.adb: Change profile of
11340         Socket_Error_Message to return String to allow the above.
11341         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
11342         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11343         * g-socthi-vxworks.ads: Update to account for the above profile
11344         change.
11345         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
11346         * s-crtl.ads (strncpy): New procedure.
11347         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
11348         Use import from s-crtl.
11349         * a-envvar.adb, osint.adb: Use imports of C runtime functions
11350         from s-crtl instead of re-importing locally.
11352 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11354         * sem_prag.adb (Analyze_Global_Item): Emit the
11355         variable related checks concerning volatile objects only when
11356         SPARK_Mode is on.
11358 2014-02-24  Robert Dewar  <dewar@adacore.com>
11360         * sem_ch5.adb (Analyze_Iterator_Specification): use
11361         Error_Msg_Ada_2012_Feature.
11363 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
11365         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
11366         No_Local_Timing_Events and No_Specific_Termination_Handlers
11367         must be set, according to the Ravenscar profile definition
11368         in D.13(6/3).
11370 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11372         * sem_ch6.adb (Analyze_Expression_Function): If this is a
11373         completion, freeze return type and its designated type if needed.
11375 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11377         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
11378         'Address): When moving initialization statements to a freeze
11379         entity, keep them under a single node (i.e. do not unwrap
11380         expressions with actions), and set the Initialization_Statements
11381         attribute again so that processing of a later pragma Import can
11382         still remove them.
11384 2014-02-24  Claire Dross  <dross@adacore.com>
11386         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
11387         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
11388         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
11389         Left/Right to First_To_Previous/Current_To_Last.
11391 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11393         * adaint.h (struct file_attributes): New component "error"
11394         (__gnat_error_attributes): Accessor for the above.
11395         * adaint.c (__gnat_error_attributes): New subprogram
11396         (__gnat_stat): Fix returned value (expect errno value)
11397         (__gnat_stat_to_attr): Add management of error component (set to
11398         stat errno value, except for missing files where it is set to 0,
11399         and exists is set to 0).
11400         * osint.ads (File_Attributes_Size): Update per change above,
11401         also clarify documentation.
11402         * s-filatt.ads: New file, binding to file attributes related
11403         functions.
11404         * Makefile.rtl (s-filatt): New runtime unit.
11405         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
11406         to library function if not available on target).
11407         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
11408         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
11409         SIZEOF_struct_dirent_alloc): New constants.
11410         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
11411         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
11412         Perform appropriate error checking if stat fails (do not just
11413         ignore existing files if stat fails)
11414         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
11415         dependencies.
11417 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11419         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
11420         the use of volatile objects as global items in a function to
11421         the variable related checks section.
11422         * sem_util.adb (Async_Readers_Enabled): Directly call
11423         Has_Enabled_Property.
11424         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
11425         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
11426         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
11427         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
11428         Update the comment on usage. State_Has_Enabled_Property how handles
11429         the original logic of the routine. Add processing for variables.
11430         (State_Has_Enabled_Property): New routine.
11431         (Variable_Has_Enabled_Property): New routine.
11433 2014-02-24  Robert Dewar  <dewar@adacore.com>
11435         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
11436         Minor reformatting.
11437         * atree.ads, atree.adb (Node35): New function.
11438         (Set_Node35): New procedure.
11439         * debug.adb: Define new debug flag -gnatd.X.
11440         * einfo.ads, einfo.adb (Import_Pragma): New field.
11441         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
11442         really active yet, has to be activated with -gnatd.X.
11443         * sem_prag.adb (Set_Imported): Set new Import_Pragma
11444         field (Set_Imported): Don't set Is_Public (see
11445         Freeze.Wrap_Imported_Subprogram)
11446         * par-ch3.adb (P_Component_List): Handle unexpected null component.
11448 2014-02-24  Yannick Moy  <moy@adacore.com>
11450         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
11451         * gnat_rm.texi: Correct documentation of attribute Update.
11453 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11455         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
11456         iterator in older versions of Ada.
11458 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11460         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
11461         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
11463 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11465         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
11466         indexed_components that are instances of Ada 2012 container
11467         indexing operations. Analysis and resolution of such nodes
11468         is performed on the attribute, and the original source is
11469         preserved for ASIS operations. If expansion is enabled, the
11470         indexed component is replaced by the value of this attribute,
11471         which is in a call to an Indexing aspect, in most case wrapped
11472         in a dereference operation.
11473         * sem_ch4.adb (Analyze_Indexed_Component): Create
11474         Generalized_Indexing attribute when appropriate.
11475         (Analyze_Call): If prefix is not overloadable and has an indexing
11476         aspect, transform into an indexed component so it can be analyzed
11477         as a potential container indexing.
11478         (Analyze_Expression): If node is an indexed component with a
11479         Generalized_ Indexing, do not re-analyze.
11480         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
11481         of an indexed_component that has been transformed into a container
11482         indexing operation.
11483         (Resolve_Indexed_Component): Call the above when required.
11484         (Resolve): Do not insert an explicit dereference operation on
11485         an indexed_component whose type has an implicit dereference:
11486         the operation is inserted when resolving the related
11487         Generalized_Indexing.
11489 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
11491         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
11492         Environment.
11494 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11496         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
11497         error messages.
11498         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
11499         Merge the expected and available mode errors.
11500         (Report_Unused_Constituents): Remove leading spaces in error messages.
11501         (Report_Unused_States): Remove leading spaces in error messages.
11503 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11505         * par_sco.adb (Traverse_One): Refine categorization of statement
11506         SCOs.
11508 2014-02-24  Robert Dewar  <dewar@adacore.com>
11510         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
11511         Pure_05, Pure_12 and Preelaborate_05.
11512         * gnat_rm.texi: Update accordingly.
11513         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
11514         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
11515         Recognize one argument form of these pragmas only in GNAT mode
11516         (-gnatg).
11518 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11520         * s-dimmks.ads: Replace symbol for temperature, previously the
11521         Greek letter Theta, by the ASCII @ sign.
11522         * s-diflio.ads: ditto.
11524 2014-02-24  Robert Dewar  <dewar@adacore.com>
11526         * exp_ch4.adb: Minor code reorganization (use OR for boolean
11527         variables).
11528         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
11530 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
11532         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
11533         so that references to gnatmem and ASIS tools do not appear in the FSF
11534         edition of the GNAT User's Guide.
11536 2014-02-24  Yannick Moy  <moy@adacore.com>
11538         * freeze.adb (Freeze_Entity): Do not issue warning
11539         for pre/post being ignored on imported subprogram in GNATprove
11540         mode.
11542 2014-02-24  Robert Dewar  <dewar@adacore.com>
11544         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
11545         stand.ads, sem_eval.adb: Minor reformatting.
11547 2014-02-24  Yannick Moy  <moy@adacore.com>
11549         * sem_prag.adb: Minor rewording in error message.
11551 2014-02-24  Johannes Kanig  <kanig@adacore.com>
11553         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
11554         GNATprove_mode, gnat2why doesn't need nor use these types.
11556 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11558         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
11559         target, in the case of signed integer exponentiation that uses a
11560         run-time routine, always select the Exp_* versions, since overflow
11561         checking is automatically done by AAMP arithmetic instructions.
11563 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11565         * sem_ch13.adb (Analyze_Aspect_Specifications):
11566         When the related context is a package instace, insert pragma
11567         Abstract_State after all internally-generated renamings related
11568         to the instance "header".
11570 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11572         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
11573         subprograms.
11574         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
11575         call to an abstract subprogram is legal if it appears in a
11576         pre/postcondition of another abstract operation.
11578 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
11580         * gnat_ugn.texi: Misc updates.
11582 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11584         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
11586 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11588         * layout.adb (Layout_Variant_Record): Instantiate
11589         Generic_Check_Choices and call Check_Choices before calling
11590         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
11591         set to prevent generating incorrect discriminant-checking
11592         functions for 'others' variants (functions that unconditionally
11593         return True rather than accounting for the values covered by the
11594         'others' choice).
11595         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
11596         Formal_Derived_Matching.
11597         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
11598         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
11599         Formal_Derived_Matching formal to Subtypes_Statically_Match.
11600         (Subtypes_Statically_Match): Suppress the Object_Size matching
11601         test in the case where Formal_Derived_Matching is True.
11602         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
11603         True for Formal_Derived_Matching_Formal on the call to
11604         Subtypes_Statically_Compatible.
11606 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11608         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
11610 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11612         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
11613         Look through a conversion between original and packable version to get
11614         the base object.
11615         (build_component_ref): Rework comment and fix formatting.
11617 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
11619         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
11620         project-specific options.
11622 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11624         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
11625         not Constraint_Error.
11626         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
11627         * sem_ch5.adb: Code clean up.
11629 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11631         * sem_prag.adb (Usage_Error): Remove local
11632         constant Typ. Remove the specialized diagnostics for unconstrained
11633         or tagged items as those are not part of the explicit input set
11634         of the related subprogram and should not be flagged.
11636 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11638         * sem_attr.adb: Add guard to preserve all errors.
11640 2014-02-20  Vincent Celier  <celier@adacore.com>
11642         * switch-m.adb (Normalize_Compiler_Switches): Take into account
11643         switches that are recorded in ALI files: -gnateA, -gnateE,
11644         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
11646 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11648         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
11649         of an element iterator form over a formal container with an
11650         Iterable aspect.
11651         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
11652         to create declaration and loop statements for both forms of
11653         container iterators.
11654         (Expand_Formal_Container_Element_Iterator): New procedure
11655         to handle loops of the form  "for E of C" when C is a formal
11656         container.
11657         (Expand_Formal_Container_Iterator): Code cleanup.
11659 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11661         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
11662         (Analyze_Contract_Case): Remove the use of
11663         "may". Replace "aspect Contract_Cases" to avoid categorization
11664         of aspect vs pragma.
11665         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
11666         (Analyze_Global_Item): Remove
11667         the use of "formal", specify the subprogram.  Split the
11668         error message about a state with visible refinement into
11669         two. Remove the use of "global" from "volatile global item".
11670         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
11671         is on one line.
11672         (Analyze_Input_Output): Update the call to
11673         Check_Mode. Specify the duplicated item. Reword the error
11674         message concerning an input of a null output list. Use "\"
11675         for error message continuation.
11676         (Analyze_Part_Of): Remove
11677         the use of "may". Use "\" for error message continuation.
11678         (Analyze_Refined_Depends_In_Decl_Part): Update the error
11679         message concerning a useless refinement to match the format
11680         of Refined_Global.
11681         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
11682         concerning a useless refinement.
11683         (Analyze_Refinement_Clause): Use "\" for error message continuation.
11684         (Check_Constituent_Usage): Use "\" for error message continuation.
11685         (Check_Dependency_Clause): Use "\" for error message continuation.
11686         (Check_Matching_Constituent): Use "\" for error message continuation.
11687         (Check_Missing_Part_Of): Use "\" for error message continuation.
11688         (Check_Mode): Renamed to
11689         Check_Role. Update the comment on usage. Redo the error reporting
11690         to use Role_Error.
11691         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
11692         message continuation.
11693         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
11694         with comment on usage. Update all occurrences of Is_Input and Is_Output.
11695         (Inconsistent_Mode_Error): Use "\" for error message continuation.
11696         (Input_Match): Use "\" for error message continuation.
11697         (Role_Error): New routine.
11698         (Set_Convention_From_Pragma): Use "\" for error message continuation.
11699         (Usage_Error): Add local variable Error_Msg. Build specialized error
11700         message showcasing the offending item kind. Redo the diagnostics for
11701         unconstrained types.
11703 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11705         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
11706         to determine whether a type is a container type, rather than
11707         examining only its type declaration, so that subtypes and derived
11708         types are handled properly.
11710 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
11712         * gnat_ugn.texi: gnatmetric: add description of project-specific
11713         options.
11715 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11717         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
11718         all choices in an association for a record type have the same
11719         type, as is done for record aggregates.
11721 2014-02-20  Robert Dewar  <dewar@adacore.com>
11723         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
11724         Unmodified rather than Warnings (Off). Make comments
11725         uniform in the four affected units.
11727 2014-02-20  Robert Dewar  <dewar@adacore.com>
11729         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
11730         Object_Size): For non-scalar types allow any value that is a
11731         multiple of 8.
11732         * gnat_rm.texi: Document Object_Size for composites more clearly.
11734 2014-02-20  Yannick Moy  <moy@adacore.com>
11736         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
11738 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11740         * stand.ads: Raise_Type: new predefined entity, used as the type
11741         of a Raise_Expression prior to resolution.
11742         * cstand.adb: Build entity for Raise_Type.
11743         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
11744         initial type of the node.
11745         * sem_type.adb (Covers): Raise_Type is compatible with all
11746         other types.
11747         * sem_res.adb (Resolve): Remove special handling of Any_Type on
11748         Raise_Expression nodes.
11749         (Resolve_Raise_Expression): Signal ambiguity if the type of the
11750         context is still Raise_Type.
11752 2014-02-20  Robert Dewar  <dewar@adacore.com>
11754         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
11755         mismatching predicates.
11756         * sem_ch6.adb (Check_Conformance): Give better messages on
11757         predicate mismatch.
11758         * sem_eval.adb (Predicates_Match): Move to spec.
11759         * sem_eval.ads (Predicates_Match): Moved here from body.
11761 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11763         * a-cbmutr.adb: Use default value in Insert_Child.
11765 2014-02-20  Vincent Celier  <celier@adacore.com>
11767         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
11768         Stringt.Initialize in all project aware tools.
11770 2014-02-20  Doug Rupp  <rupp@adacore.com>
11772         * gnat_ugn.texi: Document gnatbind -X option.
11773         * vms_data.ads: Minor warnings documentation reformatting.
11775 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11777         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
11778         procedure for a base type.
11780 2014-02-20  Robert Dewar  <dewar@adacore.com>
11782         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
11783         expression with type info.
11784         * sem_ch13.adb: Minor reformatting.
11785         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
11786         False if predicates do not match on the two types.
11788 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
11790         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
11791         In Relaxed_RM_Semantics mode, allow any static integer value,
11792         for compatibility with other compilers.
11794 2014-02-20  Vincent Celier  <celier@adacore.com>
11796         * errutil.adb (Initialize): Properly initialize entry in table
11797         Warnings when warnings are suppressed.
11799 2014-02-20  Robert Dewar  <dewar@adacore.com>
11801         * s-os_lib.ads: Add warning about non-portability of Rename_File.
11802         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
11803         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
11804         * gnat_ugn.texi: Document no warnings on junk variable names.
11805         * layout.adb: Minor code reorganization (use Ekind_In).
11806         * stringt.adb: Move initialization of Null_String_Id to Initialize
11807         routine.
11809 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11811         * sem_ch13.adb: Initialize optional Element_Id.
11813 2014-02-20  Robert Dewar  <dewar@adacore.com>
11815         * s-os_lib.ads (Rename_File): Minor commment addition.
11817 2014-02-20  Thomas Quinot  <quinot@adacore.com>
11819         * einfo.ads: Minor reformatting.
11821 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11823         * aspects.adb (Exchange_Aspects): New routine.
11824         * aspects.ads (Exchange_Aspects): New routine.
11825         * atree.adb (Rewrite): Do not check whether the save node has
11826         aspects as it never will, instead check the node about to be clobbered.
11827         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
11828         entities of generic packages.
11829         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
11830         pointer of an aspect specification list after rewriting takes place.
11831         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
11832         specifications of the generic template and the copy used for analysis.
11833         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
11834         the aspect specifications of the generic template and the
11835         copy used for analysis.
11836         (Analyze_Package_Instantiation): Propagate the aspect specifications
11837         from the generic template to the instantiation.
11838         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
11839         specifications from the generic template to the instantiation.
11840         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
11841         Abstract_State, Initializes and Initial_Condition when they
11842         apply to a package instantiation.
11844 2014-02-20  Robert Dewar  <dewar@adacore.com>
11846         * stringt.adb: Add call to Initialize in package initialization.
11848 2014-02-20  Robert Dewar  <dewar@adacore.com>
11850         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
11851         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
11852         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
11853         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
11854         reformatting.
11856 2014-02-20  Bob Duff  <duff@adacore.com>
11858         * s-os_lib.ads: Minor: Remove incorrect comment.
11860 2014-02-20  Robert Dewar  <dewar@adacore.com>
11862         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
11864 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11866         * a-cborma.adb (Assign): When creating a node without a specified
11867         element, insert an uninitialized element in the map, because
11868         the instance may provide an element type with a default
11869         initialization, e.g a scalar with a Default_Value aspect.
11870         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
11871         (Insert): In the version without explicit element, provide an
11872         uninitialized element, as above.
11873         * a-cbdlli.adb (Append): In the version without explicit element,
11874         provide an uninitalized element, as above.
11875         (Allocate): Remove unused version.
11877 2014-02-20  Robert Dewar  <dewar@adacore.com>
11879         * sem_elab.adb: Minor code reorganization (use Nkind_In).
11880         * stringt.adb: Remove temporary pragma Warnings (Off).
11881         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
11882         of Null_String_Id.
11884 2014-02-20  Matthew Heaney  <heaney@adacore.com>
11886         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
11887         index.
11889 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11891         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
11892         properly the cursor type for subsequent volatile testing in SPARK
11893         mode, when domain is a formal container with an Iterabe aspect.
11895 2014-02-20  Robert Dewar  <dewar@adacore.com>
11897         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
11898         (Set_Specific_Warning_Off): Add Reason argument.
11899         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
11900         (Set_Specific_Warning_Off): Add Reason argument.
11901         * erroutc.adb (Warnings_Entry): Add Reason field
11902         (Specific_Warning_Entry): Add Reason field.
11903         (Warnings_Suppressed): return String_Id for Reason.
11904         (Warning_Specifically_Suppressed): return String_Id for Reason.
11905         * erroutc.ads (Warnings_Entry): Add Reason field.
11906         (Specific_Warning_Entry): Add Reason field.
11907         (Set_Specific_Warning_Off): Add Reason argument.
11908         (Set_Warnings_Mode_Off): Add Reason argument.
11909         (Warnings_Suppressed): return String_Id for Reason.
11910         (Warning_Specifically_Suppressed): return String_Id for Reason.
11911         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
11912         (Warning_Specifically_Suppressed): returns String_Id for Reason
11913         * gnat_rm.texi: Document that Warning parameter is string literal
11914         or a concatenation of string literals.
11915         * par-prag.adb: New handling for Reason argument.
11916         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
11917         for Reason argument.
11918         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
11919         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
11920         * stringt.adb: Set Null_String_Id.
11921         * stringt.ads (Null_String_Id): New constant.
11923 2014-02-20  Robert Dewar  <dewar@adacore.com>
11925         * einfo.ads: Minor comment addition: Etype of package is
11926         Standard_Void_Type.
11927         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
11928         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
11929         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
11930         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
11931         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
11932         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11933         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
11934         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
11935         Replace all calls with calls to New_Occurrence_Of.
11937 2014-02-20  Robert Dewar  <dewar@adacore.com>
11939         * par-util.adb (Ignore, case of right paren): Make this a
11940         serious error.
11942 2014-02-19  Robert Dewar  <dewar@adacore.com>
11944         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
11945         * debug.adb: Remove -gnatd.X switch, no longer used.
11946         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
11947         now always made.
11949 2014-02-19  Bob Duff  <duff@adacore.com>
11951         * g-socket.ads: Minor: Correct some comments.
11953 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11955         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
11957 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
11959         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
11960         an error on out of range priorities if Relaxed_RM_Semantics.
11961         * sem_prag.adb (Analyze_Pragma): Ditto.
11963 2014-02-19  Bob Duff  <duff@adacore.com>
11965         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
11966         where F denotes the renaming of an enumeration literal, and
11967         issue a specialized error message.
11969 2014-02-19  Matthew Heaney  <heaney@adacore.com>
11971         * a-chtgop.ads (Checked_Index): New operation.
11972         (Next): Changed mode of hash table.
11973         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
11974         (Generic_Read, Reserve_Capacity): Ditto.
11975         (Generic_Equal): Detect tampering.
11976         (Next): Changed mode of hash table, detect tampering.
11977         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
11978         operation.
11979         (Find): Changed mode of hash table.
11980         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
11981         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
11982         tampering.
11983         (Find): Changed mode of hash table, check for tampering.
11984         (Generic_Replace_Element): Check for tampering.
11985         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
11986         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
11987         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
11988         Detect tampering.
11989         (Find, Generic_Replace_Element): Check for tampering.
11990         * a-chtgbo.ads (Checked_Index): New operation.
11991         * a-chtgbo.adb (Checked_Index): New operation
11992         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
11993         (Generic_Read, Next): Ditto.
11994         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
11995         table (Difference, Intersection): Use variable view of
11996         source, detect tampering (Find, Is_Subset, Overlap): Use
11997         variable view of container (Symmetric_Difference, Union):
11998         Detect tampering (Vet): Use Checked_Index to detect tampering
11999         (Constant_Reference, Element, Find): Use variable view of
12000         container.
12001         (Update_Element_Preserving_Key): Detect tampering.
12002         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
12003         of container.
12004         (Is_Subset): Ditto.
12005         (Equivalent_Sets, Overlap): Use Node's Next component.
12006         (Vet): Use Checked_Index to detect tampering.
12007         (Constant_Reference, Element, Find): Use variable view of container.
12008         (Update_Element_Preserving_Key): Detect tampering.
12009         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
12010         Element, Find): Use variable view of container.
12011         (Reference): Rename hash table component.
12012         (Vet): Use Checked_Index to detect tampering.
12014 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
12016         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
12017         of -nostdinc.
12019 2014-02-19  Thomas Quinot  <quinot@adacore.com>
12021         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
12022         against calls without Def_Id.
12024 2014-02-19  Claire Dross  <dross@adacore.com>
12026         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
12027         a-cofove.ads: Add global annotations to subprograms.
12029 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12031         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
12032         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
12033         Initial_Condition no longer requires the presence of pragma
12034         Initialized. Do not try to diagnose whether all variables mentioned in
12035         pragma Initializes also appear in Initial_Condition.
12036         (Collect_Variables): Removed.
12037         (Match_Variable): Removed.
12038         (Match_Variables): Removed.
12039         (Report_Unused_Variables): Removed.
12041 2014-02-19  Thomas Quinot  <quinot@adacore.com>
12043         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
12045 2014-02-19  Robert Dewar  <dewar@adacore.com>
12047         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
12048         reformatting.
12050 2014-02-19  Vincent Celier  <celier@adacore.com>
12052         * prj-part.adb (Parse_Single_Project): Use the fully resolved
12053         project path, with all symbolic links resolved, to check if the
12054         same project is imported with a different unresolved path.
12055         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
12056         changed to Resolved_Path to reflect that all symbolic links
12057         are resolved.
12059 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12061         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
12062         from sem_ch13, for use elsewhere.
12063         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
12064         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
12065         cursor type on the loop variable when the iteration is over o
12066         formal container.
12068 2014-02-19  Vincent Celier  <celier@adacore.com>
12070         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
12071         for an empty Target (Check_Target): Never fail when an empty
12072         target is declared in the configuration project.
12074 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12076         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
12077         the pragma comes fron a predicate aspect and the context is a
12078         record declaration within the scope that declares the type.
12080 2014-02-19  Robert Dewar  <dewar@adacore.com>
12082         * gnat_rm.texi: Minor clarifications.
12083         * expander.adb, sem_aggr.adb: Add comments.
12085 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12087         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
12088         applies to a subprogram body, the name is the current scope,
12089         rather than being declared in the current scope.
12090         (Analyze_Pragma, case No_Return): Handle properly a No_Return
12091         aspect applied to a subprogram body.
12093 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12095         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
12096         of overloaded subprograms, and fix bug in handling of primitive
12097         operation Element.
12099 2014-02-19  Pascal Obry  <obry@adacore.com>
12101         * s-os_lib.adb: Minor reformatting.
12103 2014-02-19  Yannick Moy  <moy@adacore.com>
12105         * expander.adb (Expand): Do nothing inside generics.
12106         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
12107         generics.
12109 2014-02-19  Yannick Moy  <moy@adacore.com>
12111         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
12113 2014-02-19  Robert Dewar  <dewar@adacore.com>
12115         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
12116         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
12117         longer needed).
12119 2014-02-19  Claire Dross  <dross@adacore.com>
12121         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
12122         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
12124 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12126         * sem_ch3.adb (Analyze_Declarations): Analyze
12127         a package contract at the end of the private declarations (if
12128         applicable), otherwise analyze it and the end of the visible
12129         declarations.
12131 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12133         * style.adb (Missing_Overriding): If subprogram is an
12134         instantiation, place warning on the instance node itself,
12135         without mention of the original generic. Do not emit message
12136         if explicit Ada version is older than the introduction of the
12137         overriding indicator.
12139 2014-02-19  Yannick Moy  <moy@adacore.com>
12141         * gnat_rm.texi: Doc clarifications.
12143 2014-02-19  Yannick Moy  <moy@adacore.com>
12145         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
12146         inside a generic.
12148 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12150         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
12151         specified First primitive, rather than by name.
12152         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
12153         and extend error checking for missing primitives and incorrect
12154         signatures.
12156 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12158         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
12159         errors when a Synchronization aspect on an overriding protected
12160         operation does not match the given aspect on the overridden
12161         operation of an ancestor interface.
12163 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12165         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
12166         (Check_Loop_Pragma_Placement): Update
12167         comment on usage. Remove local variables Orig_Stmt and
12168         Within_Same_Sequence. Check that the current Loop_Invariant or
12169         Loop_Variant pragma is grouped together with other such pragmas.
12170         (Is_Loop_Pragma): New routine.
12171         (Prev_In_Loop): Removed.
12173 2014-02-19  Robert Dewar  <dewar@adacore.com>
12175         * par-ch6.adb (P_Return): For extended return, end column lines
12176         up with RETURN.
12177         * par.adb: Minor documentation clarification.
12179 2014-02-19  Yannick Moy  <moy@adacore.com>
12181         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
12182         that Loop_Invariant and Loop_Variant appear consecutively.
12183         * gnat_rm.texi Update documentation of Loop_Invariant and
12184         Loop_Variant pragmas.
12186 2014-02-19  Robert Dewar  <dewar@adacore.com>
12188         * debug.adb: Document -gnatd.X.
12189         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
12190         first token
12191         (Check_Then_Column): Ditto.
12192         * styleg.adb (Check_Then): Allow THEN on line after IF.
12193         (Check_Then): Check THEN placement under control of -gnatd.X
12194         * styleg.ads (Check_Then): Now called even if THEN is not first
12195         token on line.
12196         * stylesw.ads (Style_Check_If_Then_Layout): Document new
12197         relaxed rules.
12198         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
12200 2014-02-19  Robert Dewar  <dewar@adacore.com>
12202         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
12203         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
12204         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
12205         vms_conv.adb: Fix bad layout of IF statements
12207 2014-02-19  Robert Dewar  <dewar@adacore.com>
12209         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
12211 2014-02-19  Robert Dewar  <dewar@adacore.com>
12213         * exp_util.adb: Update comments.
12215 2014-02-19  Doug Rupp  <rupp@adacore.com>
12217         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
12218         * init.c (__gl_float_format): [VMS] New global.
12219         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
12220         representation in effect.
12222 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12224         * exp_ch6.adb Add with and use clause for Exp_Prag.
12225         (Expand_Contract_Cases): Relocated to Exp_Prag.
12226         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
12227         * exp_prag.adb Add with and use clauses for Checks and Validsw.
12228         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
12229         structure of the expanded code to showcase the evaluation of
12230         attribute 'Old prefixes. Add local variable Old_Evals. Expand
12231         any attribute 'Old references found within a consequence. Add
12232         circuitry to evaluate the prefixes of attribute 'Old that
12233         belong to a selected consequence.
12234         (Expand_Old_In_Consequence): New routine.
12235         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
12236         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
12237         potentially unevaluated prefix is always evaluated.
12239 2014-02-19  Robert Dewar  <dewar@adacore.com>
12241         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
12242         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
12243         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
12244         handling for the case of Modify_Tree_For_C, this approach did
12245         not work.
12246         * exp_util.adb (Matching_Standard_Type): New function
12247         (Side_Effect_Free): New top level functions (from
12248         Remove_Side_Effects).
12249         * exp_util.ads (Side_Effect_Free): New top level functions
12250         (moved from body).
12251         * sinfo.ads: Minor comment updates.
12253 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12255         * exp_ch6.adb (Expand_Simple_Function_Return): If return
12256         type is unconstrained and uses the secondary stack, mark the
12257         enclosing function accordingly, to ensure that the value is not
12258         prematurely removed.
12260 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12262         * par.adb Alphabetize the routines in Par.Sync.
12263         (Resync_Past_Malformed_Aspect): New routine.
12264         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
12265         variables. Code and comment reformatting. Detect missing
12266         parentheses on aspects [Refined_]Global and [Refined_]Depends
12267         with a non-null definition.
12268         * par-sync.adb: Alphabetize all routines in this separate unit.
12269         (Resync_Past_Malformed_Aspect): New routine.
12271 2014-02-19  Robert Dewar  <dewar@adacore.com>
12273         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
12274         if Esize values do not match.
12276 2014-02-19  Yannick Moy  <moy@adacore.com>
12278         * sinfo.ads: Minor comment update.
12280 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12282         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
12284 2014-02-19  Thomas Quinot  <quinot@adacore.com>
12286         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
12287         that has the No_Ctrl_Actions flag is a suitable node to be
12288         wrapped if the assigned expression has no finalization actions.
12289         * sem_eval.adb (Eval_Entity_Name): For a compile time known
12290         boolean value, mark the corresponding condition SCO as constant.
12292 2014-02-19  Robert Dewar  <dewar@adacore.com>
12294         * exp_util.adb: Minor reformatting.
12295         * exp_util.ads (Matching_Standard_Type): New function.
12296         * exp_ch7.adb: Minor reformatting.
12298 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12300         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
12301         to find declaration for Cursor, to handle properly the case of
12302         a discriminated iterable type.
12304 2014-02-19  Vincent Celier  <celier@adacore.com>
12306         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
12307         imported library projects with the library ALI dirs, when setting
12308         the object paths.
12309         * prj-env.ads (Ada_Objects_Path): Correct comments about
12310         argument Including_Libraries.
12312 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
12314         * gnat_rm.texi: Minor spelling fixes.
12316 2014-02-19  Doug Rupp  <rupp@adacore.com>
12318         * init.c: Remove unneeded code.
12319         * fe.h (Float_Format): New macro
12320         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
12322 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12324         * sem_prag.adb (Check_Refined_Global_Item):
12325         A state or variable acts as a constituent only it is part of an
12326         encapsulating state and the state has visible refinement.
12328 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12330         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
12331         postcondition for a function when the expression does not mention
12332         'Result but the function has in-out parameters.
12334 2014-02-19  Robert Dewar  <dewar@adacore.com>
12336         * gnat_rm.texi: Add documentation on Value_Size forcing biased
12337         representation.
12339 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12341         * lib-xref.ads Remove the small table of letter and symbol usage as we
12342         already have one.
12344 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12346         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
12347         messages depending on the offending misplaced aspect specifications.
12348         (Diagnose_Misplaced_Aspect_Specifications): New routine.
12350 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12352         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
12353         for iterable aspect primitives.
12354         (Resolve_Iterable_Operation): Use expected signature of iterable
12355         aspect to resolve primitive when overloading is present.
12356         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
12357         (Check_Signature): Removed.
12359 2014-02-19  Yannick Moy  <moy@adacore.com>
12361         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
12362         subunit in GNATprove_Mode.
12363         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
12365 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12367         * lib-xref.ads Alphabetize the contents of table
12368         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
12369         for E_Abstract_State. List all letters and symbols in use.
12370         * sem_prag.adb (Analyze_Abstract_State): Update all calls
12371         to Create_Abstract_State to reflect the new signature.
12372         (Create_Abstract_State): Change subprogram profile and update
12373         the comment on usage. Use the proper location of the state
12374         declaration when creating a new abstract state entity. Do not
12375         generate an external name, but simply reuse the name coming from
12376         the state declaration.
12378 2014-02-19  Robert Dewar  <dewar@adacore.com>
12380         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
12381         declarations get properly inserted in Modify_Tree_For_C mode.
12382         * sinfo.ads: Minor comment addition.
12384 2014-02-19  Robert Dewar  <dewar@adacore.com>
12386         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
12387         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
12389 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12391         * style.adb (Missing_Overriding): Warning does not apply in
12392         language versions prior to Ada 2005.
12393         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
12394         * sem_attr.adb: Add Attribute_Iterable where needed.
12395         * exp_attr.adb: ditto.
12396         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
12397         handle loops and quantified expressions over types that have an
12398         iterable aspect.  Called from Expand_Iterator_Loop.
12399         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
12400         with Iterable aspect.
12401         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
12402         subprograms specified in the Iterable aspect have the proper
12403         signature involving container and cursor.
12404         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
12405         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
12406         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
12407         New procedure to retrieve one of the primitives First, Last,
12408         or Has_Element, from the value of the iterable aspect of a
12409         formal container.
12410         (Is_Container_Element): Predicate to recognize expressions
12411         that denote an element of one of the predefined containers,
12412         for possible optimization.  This subprogram is not currently
12413         used, pending ARG discussions on the legality of the proposed
12414         optimization. Worth preserving for eventual use.
12415         (Is_Iterator): Recognize formal container types.
12416         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
12418 2014-02-19  Robert Dewar  <dewar@adacore.com>
12420         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
12421         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
12422         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
12423         declarations from list of actions.
12424         * output.ads, output.adb (Delete_Last_Char): New procedure.
12425         * sinfo.ads: Document handling of Mod and expression with actions
12426         in Modify_Tree_For_C mode.
12428 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12430         * par-ch9.adb (P_Task): Add a null statement to produce a
12431         well-formed task body when due to a previous syntax error the
12432         statement list is empty.
12434 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12436         * sem_prag.adb (Check_Dependency_Clause): Account
12437         for the case where a state with a non-null refinement matches a
12438         null output list. Comment reformatting.
12439         (Inputs_Match): Copy a solitary input to avoid an assertion failure
12440         when trying to match the same input in multiple clauses.
12442 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
12444         * sem_attr.adb: Minor typo fix.
12446 2014-02-18  Robert Dewar  <dewar@adacore.com>
12448         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
12449         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
12450         (Create_Standard): Create new unsigned types.
12451         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
12452         mode (Expand_N_Reference): Removed, problematic and not needed
12453         for now.
12454         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
12455         not needed for now.
12456         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
12457         * expander.adb: Remove call to Expand_N_Reference (problematic,
12458         and not needed now).
12459         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
12460         * stand.adb: Read and write unsigned type entities.
12461         * stand.ads: Add new unsigned types.
12463 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
12465         * sem_ch4.adb (Analyze_Call): Do not mark a function call
12466         as being inside an assertion expression as the flag is now removed.
12467         (Check_Ghost_Subprogram_Call): Do not query the
12468         In_Assertion_Expression flag as it is now removed, instead use
12469         a predicate function.
12470         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
12471         In_Assertion_Expression flag as it is now removed, instead use
12472         a predicate function.
12473         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
12474         * sem_util.adb Add with and use clause for Sem_Prag.
12475         (In_Assertion_Expression_Pragma): New routine.
12476         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
12477         * sinfo.adb (In_Assertion_Expression): Removed.
12478         (Set_In_Assertion_Expression): Removed.
12479         * sinfo.ads Remove flag In_Assertion_Expression along with its
12480         use in nodes.
12481         (In_Assertion_Expression): Removed along with
12482         pragma Inline.  (Set_In_Assertion_Expression): Removed along
12483         with pragma Inline.
12485 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
12487         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
12488         used together with '-r', '-rf' or '-rnb' options.
12490 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
12492         * sem_attr.adb (Analyze_Attribute): Comment
12493         and code reformatting. Use separate routines to check the
12494         legality of attribute 'Old in certain pragmas. Verify
12495         the use of 'Old, 'Result and locally declared entities
12496         within the prefix of 'Old.
12497         (Check_References_In_Prefix): New routine.
12498         (Check_Use_In_Contract_Cases): New routine.
12499         (Check_Use_In_Test_Case): New routine.
12501 2014-02-18  Vincent Celier  <celier@adacore.com>
12503         * sem_aux.adb (Is_By_Reference_Type): For each components of
12504         a record type, check also if the component is volatile as it
12505         may have an aspect that makes it volatile. If it is, then the
12506         record type is a by reference type.
12508 2014-02-18  Robert Dewar  <dewar@adacore.com>
12510         * exp_attr.adb: Minor reformatting.
12511         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
12512         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
12513         as another case where we don't generate N_Reference nodes for
12514         primitive types.
12515         * expander.adb (Expand): Add call to Expand_N_Reference.
12517 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12519         * sem_prag.adb (Analyze_Refined_Pragma): Remove
12520         local variable Pack_Spec. Refinement pragmas may now apply to
12521         bodies of both visible and private subprograms.
12523 2014-02-06  Robert Dewar  <dewar@adacore.com>
12525         * exp_attr.adb (Expand_Loop_Entry_Attribute):
12526         Minor change (Attr => N) (Expand_Pred_Succ): New name
12527         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
12528         Max): Expand into if expression if Modify_Tree_For_C mode.
12529         (Expand_N_Attribute_Reference, case Min): ditto
12530         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
12531         Max attributes.
12533 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12535         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
12536         predicate check if this is an internal declaration with
12537         No_Initialization set, as for an expanded aggregate component.
12539 2014-02-06  Doug Rupp  <rupp@adacore.com>
12541         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
12542         conditions with severity of "SUCCESS" or "INFORMATIONAL".
12544 2014-02-06  Yannick Moy  <moy@adacore.com>
12546         * sem_prag.adb (Analyze_Pragma): Analyze pragma
12547         Debug rewritten node before rewriting it as a null statement in
12548         GNATprove mode.
12550 2014-02-06  Robert Dewar  <dewar@adacore.com>
12552         * sem_attr.adb (Min_Max): New procedure.
12553         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
12554         procedure.
12556 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12558         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
12559         gnatmetric/gnatpp.
12561 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12563         * sem_prag.adb (Analyze_Abstract_State): Update
12564         all calls to Create_Abstract_State to pass the proper state
12565         "declaration".
12566         (Create_Abstract_State): Add new formal parameter
12567         State_Decl along with comment on usage. Establish a link between
12568         the abstract state entity and the state declaration.
12570 2014-02-06  Robert Dewar  <dewar@adacore.com>
12572         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
12573         comparison of unordered enumeration type.
12574         (Analyze_Attribute, case Max): Check for improper comparison of
12575         unordered enumeration type.
12576         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
12577         sem_util.adb.
12578         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
12579         Moved here from Sem_Res.
12581 2014-02-06  Robert Dewar  <dewar@adacore.com>
12583         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
12584         reformatting.
12586 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12588         * sem_ch6.adb (Process_Formals): Error message reformatting.
12590 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12592         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
12593         variable Spec. Do not inherit the null indicator from the
12594         subprogram body when generating the spec.
12596 2014-02-06  Robert Dewar  <dewar@adacore.com>
12598         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
12599         mixed case.
12601 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12603         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
12604         when the function has a foreign convention, but not if only the
12605         limited return type has such a convention.
12607 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12609         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
12610         variable Spec. Comment reformatting. Use Copy_Separate_Tree
12611         rather than New_Copy_Tree when building the corresponding
12612         subprogram declaration.
12614 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12616         * sem_prag.adb (Analyze_Global_Item): Remove
12617         the mode-related checks on abstract states with enabled external
12618         properties.
12619         (Property_Error): Removed.
12621 2014-02-06  Javier Miranda  <miranda@adacore.com>
12623         * lib-xref.adb (Generate_Reference): When
12624         generating the reference to the first private entity take care
12625         of handling swapped entities.
12627 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12629         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
12630         gnatmetric.
12632 2014-02-06  Robert Dewar  <dewar@adacore.com>
12634         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
12635         than the word size when operating in Modify_Tree_For_C mode.
12636         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
12638 2014-02-06  Robert Dewar  <dewar@adacore.com>
12640         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
12641         compare is case insensitive.
12642         * gnat_rm.texi: Document that string compare for Warnings Off
12643         is now case insensitive.
12645 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12647         * gnat_rm.texi: Small wording tweak.
12649 2014-02-06  Pascal Obry  <obry@adacore.com>
12651         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
12652         and Included_Artifact_Patterns attribute definitions.
12654 2014-02-06  Yannick Moy  <moy@adacore.com>
12656         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
12657         SPARK_Mode pragma component for all subprograms, including stubs.
12659 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12661         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
12662         the configuration options of the enclosing context in a
12663         stack-like fasion.
12664         (Analyze_Subprogram_Body_Stub): Maintain the
12665         configuration options of the enclosing context in a stack-like
12666         fashion.
12668 2014-02-06  Robert Dewar  <dewar@adacore.com>
12670         * debug.adb: -gnatd.u sets Modify_Tree_For C
12671         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
12672         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
12673         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
12674         * exp_intr.adb (Expand_Shift): Call expander so we do
12675         Modify_Tree_For_C expansions.
12676         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
12677         if -gnatd.u set.
12679 2014-02-06  Fedor Rybin  <frybin@adacore.com>
12681         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
12682         after the phase 1 of the processing of each aggregated project
12683         to get access to project trees of aggregated projects.
12684         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
12685         If specified, On_New_Tree_Loaded is called after each aggregated
12686         project has been processed succesfully.
12687         (Process): new parameter On_New_Tree_Loaded.
12688         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
12689         callback added after processing of each aggregated project.
12690         (Recursive_Process): new parameter On_New_Tree_Loaded.
12691         (Process): new parameter On_New_Tree_Loaded.
12692         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
12693         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
12694         On_New_Tree_Loaded.
12695         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
12696         On_New_Tree_Loaded.
12698 2014-02-06  Bob Duff  <duff@adacore.com>
12700         * gnat_ugn.texi: Implement --insert-blank-lines and
12701         --preserve-blank-lines switches.
12703 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12705         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
12706         gnatelim.
12708 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12710         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
12711         of the pragma on individual objects.
12713 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12715         * einfo.adb Node29 is now used as BIP_Initialization_Call.
12716         (BIP_Initialization_Call): New routine.
12717         (Set_BIP_Initialization_Call): New routine.
12718         (Write_Field29_Name): Add an entry for constants and variables.
12719         * einfo.ads Add new attribute BIP_Initialization_Call and update
12720         its usage in nodes.
12721         (BIP_Initialization_Call): New routine along with pragma Inline.
12722         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
12723         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
12724         Add local declaration Res_Decl. Capture the build-in-place
12725         initialization call when the related object declaration has
12726         created a transient block.
12727         * exp_ch7.adb (Process_Transient_Objects): Add local variable
12728         Fin_Insrt. Recognize a scenario where an object declaration acts
12729         as a transient context and is initialized by a build-in-place
12730         function call.
12732 2014-02-06  Pascal Obry  <obry@adacore.com>
12734         * prj-util.adb (For_Interface_Sources): Fix handling of required
12735         bodies for aggregate libs.
12737 2014-02-06  Robert Dewar  <dewar@adacore.com>
12739         * nlists.ads: Minor comment clarifications.
12741 2014-02-06  Robert Dewar  <dewar@adacore.com>
12743         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
12744         if gnatd.V set.
12745         * opt.ads (Modify_Tree_For_C): New flag.
12746         * output.ads, output.adb (Last_Char): New function.
12748 2014-02-06  Pascal Obry  <obry@adacore.com>
12750         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
12751         share/gpr for cross-builds.
12753 2014-02-06  Robert Dewar  <dewar@adacore.com>
12755         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
12756         Minor reformatting and code clean ups.
12758 2014-02-06  Pascal Obry  <obry@adacore.com>
12760         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
12761         * prj.ads: Minor typo fix in comment.
12763 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12765         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
12766         local variable Expr. Flag clauses with extra parenthesis as this
12767         is not allowed by the syntax of the pragma. Code reformatting.
12769 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12771         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
12772         variables. Rename variabme Tnn to Temp. Do not create a temporary
12773         if assertions are disabled. Find enclosing routine _Postconditions
12774         and insert the temporary that captures the value of the prefix
12775         before the routine.
12776         * exp_ch6.adb (Build_Postconditions_Procedure):
12777         Insert the generated _Postconditions routine
12778         before the first source declaration of the related
12779         subprogram.
12780         (Insert_After_Last_Declaration): Removed.
12781         (Insert_Before_First_Source_Declaration): New routine.
12783 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12785         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
12786         Utility to determine whether current expansion is for the body
12787         of a predefined primitive operation.
12788         (Make_Predicate_Check): Use Within_Internal_Subpgram
12789         * checks.adb (Apply_Predicate_Check): Use
12790         Within_Internal_Subprogram
12791         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
12793 2014-02-06  Pascal Obry  <obry@adacore.com>
12795         * prj.ads, prj-util.adb: Minor reformatting.
12797 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12799         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
12800         Take into account the Split_PPC flag to ensure that conjuncts
12801         in a composite postcondition aspect are tested in source order.
12803 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12805         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
12806         use of SPARK_Mode.
12807         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
12808         illegal use of SPARK_Mode.
12809         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
12810         * sem_prag.adb (Analyze_Pragma): Code reformatting.
12811         * sem_util.adb Add with and use clause for Aspects.
12812         (Check_SPARK_Mode_In_Generic): New routine.
12813         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
12815 2014-02-06  Thomas Quinot  <quinot@adacore.com>
12817         * a-calend.adb (Formatting_Operations.Split): Ensure that
12818         Time_Error is raised for invalid time values.
12820 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
12822         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
12823         in GNATprove_Mode.
12825 2014-02-06  Robert Dewar  <dewar@adacore.com>
12827         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
12828         * exp_ch3.adb (Build_Dcheck_Function): Set
12829         Is_Discriminant_Check_Function.
12831 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12833         * exp_ch7.adb (Is_Subprogram_Call): Inspect
12834         the original tree in certain cases where a construct has been
12835         factored out and replaced by a reference to a temporary.
12837 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12839         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
12840         parameters when propagating predicate function to full view.
12841         (Find_Type_Of_Object): Freeze base type of object type to catch
12842         premature use of discriminated private type without a full view.
12844 2014-02-06  Robert Dewar  <dewar@adacore.com>
12846         * sprint.adb: Minor reformatting.
12848 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12850         * exp_ch4.adb (Process_Transient_Object): Add local variable
12851         Temp_Ins. When the transient object is initialized by an
12852         aggregate, the hook must capture the object after the last
12853         component assignment takes place.
12854         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
12855         routine Is_Subprogram_Call.
12856         (Is_Subprogram_Call): Inspect an
12857         aggregate that has been heavily expanded for subprogram calls.
12858         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
12859         and Temp_Ins.  Remove the nested declare block and adjust the
12860         indentation. When the transient object is initialized by an
12861         aggregate, the hook must capture the object after the last
12862         component assignment takes place.
12864 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12866         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
12867         external states with enabled properties that do not match the
12868         global mode.
12869         (Property_Error): New routine.
12870         * sem_res.adb (Property_Error): New routine.
12871         (Resolve_Actuals): Detect illegal uses of external variables with
12872         enabled properties in procedure calls that do not match the mode of
12873         the corresponding formal parameter.
12875 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12877         * sem_util.adb (Has_Enabled_Property): Rename
12878         formal parameter Prop_Nam to Property. Update the comment on usage
12879         and all occurrences in the body. Add local variable Prop_Nam. When
12880         inspecting a property with an expression, the property name
12881         appears as the first choice of the component association.
12883 2014-02-04  Robert Dewar  <dewar@adacore.com>
12885         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
12887 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12889         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
12890         for consistency with other messages.
12892 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12894         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
12895         iterator, indicate that the element is a constant if the container
12896         type does not have a variable indexing aspect.
12897         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
12898         marked as constant, do not reset its Ekind, to ensure that
12899         container elements in an element loop are not modified if the
12900         container (e.g. a hashed set) only has a constant indexing aspect.
12902 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
12904         * g-souinf.ads: Subprograms in this unit are actually not pure.
12905         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
12906         * einfo.ads (Is_Pure): Update doc to match implementation.
12908 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12910         * exp_ch13.adb: Minor spelling fix.
12912 2014-02-04  Robert Dewar  <dewar@adacore.com>
12914         * opt.ads: Minor comment update.
12916 2014-02-04  Robert Dewar  <dewar@adacore.com>
12918         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
12919         instead of Replace.
12921 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12923         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
12924         on null expressions if component type is non-null, when the
12925         corresponding association covers an empty range of index values.
12927 2014-02-04  Robert Dewar  <dewar@adacore.com>
12929         * sinfo.ads: Further comments on N_Expression_With_Actions node.
12931 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
12933         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
12934         variables Out_Items and Ref_Global. Remove local constant
12935         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
12936         and D8. Remove the useless collection of global items as this
12937         was a leftover from an earlier version of the routine. Move
12938         several routines out to avoid deep nesting and indentation.
12939         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
12940         parameter Do_Checks to Post_Errors. Update the comment on usage.
12941         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
12942         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
12943         to Post_Errors. Update the comment on usage. Account for the
12944         case where a self referential state may have a null input_list.
12945         (Is_Self_Referential): New routine.
12947 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12949         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
12950         entity renames an expression, as in the case of an object of
12951         an unconstrained type initialized by a function call, defer the
12952         rewriting of the expression to the expander.
12953         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
12954         'Alignment): If the entity renames an expression, introduce
12955         temporary to capture value, and rewrite original declaration to
12956         use temporary.
12958 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12960         * g-comlin.adb: Minor typo fix.
12962 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12964         * freeze.adb (Freeze_All): Types derived from a formal
12965         access_to_classwide type do not have a finalization master.
12967 2014-02-04  Robert Dewar  <dewar@adacore.com>
12969         * sprint.adb: Minor reformatting.
12971 2014-02-04  Robert Dewar  <dewar@adacore.com>
12973         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
12974         cases where Actions is a null list.
12975         * sinfo.ads (N_Expression_With_Actions): Actions can be
12976         temporarily empty during semantic analysis, but must be non-empty
12977         in the final expanded tree.
12979 2014-01-31  Robert Dewar  <dewar@adacore.com>
12981         * exp_ch9.adb: Minor reformatting.
12983 2014-01-31  Emmanuel Briot  <briot@adacore.com>
12985         * g-comlin.adb (Set_Command_Line): Take the switches
12986         configuration from the Command_Line_Config.
12988 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
12990         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
12991         refinement clause.
12993 2014-01-31  Vincent Celier  <celier@adacore.com>
12995         * projects.texi: Add more documentation about others used as an
12996         index in indexed attributes.
12998 2014-01-31  Robert Dewar  <dewar@adacore.com>
13000         * gnat_ugn.texi: Minor update.
13001         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
13002         * exp_util.adb: Minor reformatting.
13004 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
13006         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
13007         depends on data that is not private to the protected object,
13008         and potentially modifiable in unsynchronized fashion.
13010 2014-01-31  Yannick Moy  <moy@adacore.com>
13012         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
13013         GNATprove_Mode.
13015 2014-01-31  Robert Dewar  <dewar@adacore.com>
13017         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
13018         for Unknown_Package.
13019         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
13021 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
13023         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
13024         the logic that generates a runtime check to determine the
13025         controlled status of the object about to be allocated or
13026         deallocated. Class-wide types now always use a runtime check
13027         even if they appear as generic actuals.
13028         (Find_Object): Detect
13029         a special case that involves interface class-wide types because
13030         the object appears as a complex expression.
13032 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
13034         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
13035         subprogram with an incomplete untagged formals on the list of
13036         private dependents, to verify that the type is properly completed
13037         in the private part.
13038         * sem_attr.adb: Code clean up.
13040 2014-01-31  Robert Dewar  <dewar@adacore.com>
13042         * exp_ch6.adb: Minor reformatting.
13044 2014-01-31  Vincent Celier  <celier@adacore.com>
13046         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
13047         when Pkg is unknown.
13049 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
13051         * sem_res.adb (Resolve_Entity_Name): Comment
13052         reformatting. Allow volatile objects in various generated checks.
13054 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
13056         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
13057         component association, set the etype of the identifier, for
13058         SPARK use.
13060 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
13062         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
13063         declared in a package, not checks can apply to the subprogram.
13065 2014-01-31  Robert Dewar  <dewar@adacore.com>
13067         * erroutc.adb (Validate_Specific_Warnings): Warnings are
13068         controlled -gnatw.W.
13069         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
13070         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
13072 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
13074         * exp_disp.adb: Update comments.
13076 2014-01-31  Yannick Moy  <moy@adacore.com>
13078         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
13079         Save_Global_References): Guard access to expression in aspect.
13081 2014-01-31  Yannick Moy  <moy@adacore.com>
13083         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
13084         Issue an error when the pragma is applied to a generic unit,
13085         a generic declaration, or inside a generic.
13087 2014-01-31  Yannick Moy  <moy@adacore.com>
13089         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
13090         entity.
13092 2014-01-31  Robert Dewar  <dewar@adacore.com>
13094         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
13095         reformatting.
13097 2014-01-31  Tristan Gingold  <gingold@adacore.com>
13099         * exp_disp.adb: Add a historic note.
13101 2014-01-31  Robert Dewar  <dewar@adacore.com>
13103         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
13104         Process_Deferred_References.
13106 2014-01-31  Yannick Moy  <moy@adacore.com>
13108         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
13109         ineffective pragma Warnings(Off) in GNATprove_Mode.
13111 2014-01-31  Bob Duff  <duff@adacore.com>
13113         * s-taskin.ads: Minor comment fix.
13114         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
13115         just direct dependents. If this is actually an abort, each task
13116         will take care of aborting its dependents, so all dependents will
13117         get aborted, as before. However, when this is called the second
13118         time from Vulnerable_Complete_Master "for convenience" (i.e. to
13119         kill off tasks waiting at terminate alternatives), aborting
13120         indirect dependents is wrong, because it causes some unrelated
13121         tasks to get aborted.
13123 2014-01-31  Robert Dewar  <dewar@adacore.com>
13125         * sem_ch4.adb: Minor reformatting.
13127 2014-01-31  Robert Dewar  <dewar@adacore.com>
13129         * exp_ch2.adb: New calling sequence for Is_LHS.
13130         * frontend.adb: Add call to Process_Deferred_References.
13131         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
13132         (Deferred_References): New table.
13133         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
13134         entries.
13135         (Find_Expanded_Name): Ditto.
13136         * sem_res.adb: New calling sequence for Is_LHS.
13137         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
13138         * sem_warn.adb: Call Process_Deferred_References before issuing
13139         warnings.
13141 2014-01-31  Tristan Gingold  <gingold@adacore.com>
13143         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
13144         use of System_Tasking_Protected_Objects_Single_Entry.
13145         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
13146         of Protected_Single_Entry_Call.
13147         (Expand_N_Timed_Entry_Call): Remove single_entry case.
13148         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
13149         single_entry case.
13150         (Make_Disp_Timed_Select_Body): Likewise.
13151         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
13152         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
13153         Self_Id parameter.
13154         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
13155         (Wait_For_Completion_With_Timeout): Remove.
13156         (Protected_Single_Entry_Call): Remove Mode parameter
13157         (always Simple_Call).
13158         (Service_Entry): Remove Self_Id constant (not used anymore).
13159         (Timed_Protected_Single_Entry_Call): Remove.
13160         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
13161         (Protected_Single_Entry_Call): Remove Mode parameter.
13163 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13165         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
13166         * einfo.ads (Get_Pragma): Update the comment on special pragmas
13167         handled by this routine.
13168         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
13169         to the contract of the related subprogram body.
13170         * sem_util.adb (Add_Contract_Item): Handle the insertion of
13171         pragma Refined_Post into the contract of a subprogram body.
13172         * sinfo.ads Update the documentation of node N_Contract.
13173         * sem_res.adb (Resolve_Entity_Name): Add a guard
13174         to detect abstract states and variables only when checking the
13175         SPARK 2014 rules concerning volatile object placement.
13177 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13179         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
13180         null is compatible with any access type.
13182 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13184         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
13185         placement is not in a package.
13187 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13189         * sem_util.adb (Has_Enabled_Property): Compare the character field of
13190         the sole property.
13192 2014-01-29  Robert Dewar  <dewar@adacore.com>
13194         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
13195         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
13196         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
13198 2014-01-29  Robert Dewar  <dewar@adacore.com>
13200         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
13201         * sem_warn.adb (Check_References): Suppress warnings if inside
13202         Initial_Condition pragma.
13204 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13206         * sem_prag.adb (Check_Missing_Part_Of): List all values of
13207         State_Space_Kind for readability reasons. Do not emit an error on
13208         a private item when the enclosing package lacks aspect/pragma
13209         Abstract_State. Do not emit an error on a private package
13210         instantiation when the corresponding generic template lacks
13211         visible state.
13212         (Has_Visible_State): New routine.
13213         * sem_util.adb (Find_Placement_In_State_Space): The visible
13214         declarations of any kind of child units in general act as proper
13215         placement location.
13217 2014-01-29  Robert Dewar  <dewar@adacore.com>
13219         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
13220         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
13221         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
13222         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
13223         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
13224         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
13225         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
13226         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
13227         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
13228         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
13229         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
13230         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
13231         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
13232         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
13233         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
13234         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
13235         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
13236         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
13237         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
13238         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
13239         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
13240         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
13241         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
13242         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
13243         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
13244         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
13245         s-regpat.adb, s-secsta.adb, s-stalib.ads,
13246         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
13247         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
13248         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
13249         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
13250         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
13252 2014-01-29  Robert Dewar  <dewar@adacore.com>
13254         * expander.adb: Minor reformatting.
13256 2014-01-29  Javier Miranda  <miranda@adacore.com>
13258         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
13259         previous patch.
13261 2014-01-29  Javier Miranda  <miranda@adacore.com>
13263         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
13264         that checks if an interface types defines the predefined "="
13265         function because the compiler was erroneously not generating the
13266         predefined "=" primitive as soon as the name of some interface
13267         primitive is "=" (formals were not checked).
13269 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13271         * expander.adb (Expander): In GNATprove mode, do not process
13272         transient scopes: they are in general not created in this mode,
13273         and an attempt to examine them will lead to constraint errors when
13274         processing configuration pragmas that have analyzable expressions.
13276 2014-01-29  Vincent Celier  <celier@adacore.com>
13278         * clean.adb (Gnatclean): Fail if main project is an aggregate
13279         project or if there is an aggregate library project in the
13280         project tree.
13281         * gnatcmd.adb: Fail if the main project is an aggregate project
13282         or if there is an aggegate library project in the project tree.
13283         * make.adb (Initialize): : Fail if main project is an aggregate
13284         project or if there is an aggregate library project in the
13285         project tree.
13286         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
13287         * prj-makr.adb (Initialize): Fail if the main project is an
13288         aggregate project or an aggregate library project.
13290 2014-01-29  Vincent Celier  <celier@adacore.com>
13292         * prj-part.adb (Check_Import_Aggregate): New procedure
13293         to check if an imported project is an aggregate project.
13294         (Parse_Single_Project): Call Check_Import_Aggregate
13295         * projects.texi: Document that aggregate projects cannot be
13296         extended or imported.
13298 2014-01-29  Robert Dewar  <dewar@adacore.com>
13300         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
13301         reformatting and code clean up.
13302         * gnat_ugn.texi: Add documentation section on Atomic Variables
13303         and Optimization.
13305 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13307         * einfo.adb Flag264 is now unused.
13308         (Has_Body_References): Removed.
13309         (Set_Has_Body_References): Removed.
13310         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
13311         * einfo.ads Update the comment on usage of attribute
13312         Body_References. Remove attribute Has_Body_References and its
13313         usage in nodes.
13314         (Has_Body_References): Removed along with pragma Inline.
13315         (Set_Has_Body_References): Removed along with pragma Inline.
13316         * sem_prag.adb (Analyze_Global_Item): Move the call to
13317         Record_Possible_Body_Reference in the state related checks
13318         section. Add a comment intended function.
13319         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
13320         in the state related checks section. Add a comment intended function.
13321         (Analyze_Refinement_Clause): Cleanup the illegal body reference
13322         reporting. Add a comment on timing of error reporting.
13323         (Record_Possible_Body_Reference): Reimplement the routine.
13325 2014-01-29  Vincent Celier  <celier@adacore.com>
13327         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
13328         unit-based languages.
13329         (Mains.Complete_Mains.Do_Complete): Use the source file project
13330         tree when calling Find_File_Add_Extension. Use the correct
13331         project name when reporting an error.
13333 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13335         * aspects.adb Add an entry for aspect Part_Of in table
13336         Canonical_Aspect.
13337         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
13338         Aspect_Argument, Aspect_Names and Aspect_Delay.
13339         * atree.h Define Elist9.
13340         * atree.adb (Elist9): New routine.
13341         (Set_Elist9): New routine.
13342         * atree.ads (Elist9): New routine.
13343         (Set_Elist9): New routine.
13344         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
13345         the list of node usage.  Remove Refined_State from the list of
13346         node usage.
13347         (Encapsulating_State): New routine.
13348         (Get_Pragma):
13349         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
13350         (Refined_State): Removed.
13351         (Set_Encapsulating_State): New routine.
13352         (Set_Part_Of_Constituents): New routine.
13353         (Set_Refined_State): Removed.
13354         (Write_Field9_Name): Add an entry
13355         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
13356         Encapsulating_State. Remove the entry for Refined_State.
13357         * einfo.ads Add new attributes Encapsulating_State
13358         and Part_Of_Constituents alond with their usage in
13359         entities. Remove attribute Refined_State along with its
13360         usage in entities.
13361         (Encapsulating_State): New routine and
13362         pragma Inline.  (Get_Pragma): Update the comment on usage.
13363         (Part_Of_Constituents): New routine and pragma Inline.
13364         (Refined_State): Removed along with pragma Inline.
13365         (Set_Encapsulating_State): New routine and pragma Inline.
13366         (Set_Part_Of_Constituents): New routine and pragma Inline.
13367         (Set_Refined_State): Removed along with pragma Inline.
13368         * par-prag.adb Pragma Part_Of does not need any special processing
13369         by the parser.
13370         * sem_ch3.adb (Analyze_Declarations): Remove local variables
13371         Body_Id and Prag. Call separate routines to analyze the
13372         contract of a package [body].
13373         (Analyze_Object_Contract):
13374         Update the comment on usage. Remove local variables
13375         Items and Nam. Use Get_Pragma rather than traversing the
13376         classification list.  Verify whether the lack of indicator
13377         Part_Of agrees with the placement of the variable in state space.
13378         (Analyze_Object_Declaration): Initialize the encapsulating state
13379         of a variable.  (Requires_State_Refinement): Moved to sem_util.
13380         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
13381         (Analyze_Package_Contract): New routine.
13382         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
13383         (Analyze_Package_Contract): New routine.
13384         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
13385         state and Part_Of constituents.
13386         * sem_ch13.adb (Analyze_Aspect_Specifications):
13387         Add processing for aspect Part_Of. Update all
13388         calls to Decorate_Delayed_Aspect_And_Pragma.
13389         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
13390         not need any special processing at freeze time.
13391         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
13392         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
13393         update the associated comment.
13394         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
13395         (Analyze_Abstract_State): Add new global variable State_Id. Remove
13396         local constants Errors and Loc. Remove local variables Is_Null
13397         and State_Nam. Create the entity of the abstract state on the
13398         spot, before all remaining checks are performed. Verify that a
13399         missing Part_Of option agrees with the placement of the abstract
13400         state within the state space.
13401         (Analyze_Depends_In_Decl_Part):
13402         Add new global variables Constits_Seen and States_Seen. Check
13403         that a state and a corresponding constituent do not appear
13404         in pragma [Refined_]Depends.
13405         (Analyze_Global_In_Decl_Part):
13406         Add new global variables Constits_Seen and States_Seen. Check
13407         that a state and a corresponding constituent do not appear
13408         in pragma [Refined_]Global.
13409         (Analyze_Global_Item):
13410         Remove the now obsolete code that deals with Part_Of.
13411         Add the entity of the global item to the list of processed
13412         items.  (Analyze_Initializes_In_Decl_Part): Add new global
13413         variables Constits_Seen and States_Seen. Check that a state
13414         and a corresponding constituent do not appear in pragma
13415         Initializes.
13416         (Analyze_Initialization_Item): Add the entity
13417         of the initialization item to the list of processed items.
13418         (Analyze_Input_Item): Add the entity of the initialization
13419         item to the list of processed items.
13420         (Analyze_Input_Output):
13421         Remove the now obsolete code that deals with Part_Of.  Add the
13422         entity of the input/output to the list of processed items.
13423         (Analyze_Part_Of): New routine.
13424         (Analyze_Part_Of_Option): Remove
13425         local constant Par_State. Add local constant Encaps and local
13426         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
13427         the option. Turn the related state into a Part_Of constituent
13428         if the option is legal.
13429         (Analyze_Pragma): Add processing
13430         for pragma Part_Of.
13431         (Analyze_Refined_State_In_Decl_Part):
13432         Remove global constants Pack_Body and Spec_Id. Remove
13433         global variables Abstr_States and Hidden_States. Add new
13434         global variables Available_States, Body_Id, Body_States and
13435         Spec_Id. Add new local constant Body_Decl. Reimplement the
13436         logic that extracts the states available for refinement from
13437         the related package and the body hidden states of the said
13438         package.
13439         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
13440         (Check_Applicable_Policy): Alphabetize body.
13441         (Check_Dependency_Clause): Replace Refined_State
13442         with Encapsulating_State.
13443         (Check_Matching_Constituent):
13444         Reimplement the logic that determines whether an item is a valid
13445         / invalid constituent of the current refined state. Return when
13446         a construct does not denote a valid abstract state. Extract the
13447         list of Part_Of constituents for further analysis. Check that all
13448         Part_Of constituents of a state have been used in its refinement.
13449         (Check_Matching_State): Update the comment on usage. Operate
13450         on the list of available states.
13451         (Check_Missing_Part_Of): New routine.
13452         (Check_Refined_Global_Item): Replace Refined_State
13453         with Encapsulating_State.
13454         (Check_State_And_Constituent_Use): New routine.
13455         (Create_Abstract_State): New routine.
13456         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
13457         (Is_Part_Of): Removed.
13458         (Collect_Body_States): New routine.
13459         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
13460         (Collect_Hidden_States): Removed.
13461         (Report_Unrefined_States): Change the profile of the procedure along
13462         with the comment on usage.
13463         (Report_Unused_Constituents): New routine.
13464         (Report_Unused_Hidden_States): Removed.
13465         (Report_Unused_States): New routine.
13466         * sem_prag.ads (Check_Missing_Part_Of): New routine.
13467         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
13468         appear in the classification pragmas of a package instantiation
13469         or a variable.
13470         (Find_Placement_In_State_Space): New routine.
13471         (Is_Child): Removed.
13472         (Is_Child_Or_Sibling): Remove formal
13473         parameter Private_Child. Remove the private child checks.
13474         (Requires_State_Refinement): Moved from sem_ch3.
13475         * sem_util.ads Add new type State_Space_Kind along with
13476         comment on its usage and values.
13477         (Add_Contract_Item): Update the comment on usage.
13478         (Find_Body_Discriminal): Alphabetize spec.
13479         (Find_Placement_In_State_Space): New routine.
13480         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
13481         and update the comment on usage.
13482         (Requires_State_Refinement): Moved from sem_ch3.
13483         * sinfo.ads: Update the documentation of N_Contract.
13484         * snames.ads-tmpl The predefined name for Part_Of is now used
13485         to denote a pragma. Add Pragma_Id for Part_Of.
13487 2014-01-29  Emmanuel Briot  <briot@adacore.com>
13489         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
13490         machine as needed.
13491         (Dump): New subprogram.
13493 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13495         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
13496         Expand_Entry_Declaration to factorize code.
13498 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13500         * checks.adb: minor clarification.
13501         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
13502         search for primitive operations to the entities that immediately
13503         follow the type declaration.
13505 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13507         * exp_ch9.adb (Build_Protected_Entry): Do not call
13508         Complete_Entry_Body anymore.
13509         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
13510         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
13512 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
13514         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
13515         string when the Name input bigger than allowed. Adapt the function
13516         specification.
13518 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13520         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
13521         if expression is within a case_expression of if_expression.
13523 2014-01-29  Robert Dewar  <dewar@adacore.com>
13525         * exp_ch9.adb, inline.ads: Minor reformatting.
13527 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13529         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
13531 2014-01-29  Yannick Moy  <moy@adacore.com>
13533         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
13534         SPARK_Mode_Pragma components to be able to analyze generic
13535         instance.
13536         * sem_ch12.adb (Analyze_Package_Instantiation,
13537         Inline_Instance_Body, Need_Subprogram_Instance_Body,
13538         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
13539         for future analysis of the instance.
13540         (Instantiate_Package_Body,
13541         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
13542         from instantiation to analyze the instance.
13544 2014-01-29  Robert Dewar  <dewar@adacore.com>
13546         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
13547         reorganization.
13549 2014-01-29  Yannick Moy  <moy@adacore.com>
13551         * gnat_rm.texi: Update description of SPARK_Mode pragma.
13553 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13555         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
13557 2014-01-29  Thomas Quinot  <quinot@adacore.com>
13559         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
13561 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13563         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
13564         resulting string is an internal entity. and thus requires no
13565         initialization. This is relevant when Initialize_ Scalars is
13566         enabled, because the resultant spurious initialization may lead to
13567         secondary stack anomalies that produce a mangled name for a task.
13569 2014-01-29  Yannick Moy  <moy@adacore.com>
13571         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
13572         not inherited from spec anymore. Check consistency
13573         rules after processing of declarations.
13574         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
13575         from spec anymore. Check consistency rules after processing of
13576         declarations.
13577         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
13578         packages.
13579         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
13580         consistency rules.
13582 2014-01-27  Robert Dewar  <dewar@adacore.com>
13584         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
13585         to unordered msg.
13586         (Resolve_Range): Add type name/location to unordered msg.
13588 2014-01-27  Claire Dross  <dross@adacore.com>
13590         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
13591         Capacity) is only called with Capacity >= Length (Source) and
13592         Capacity in Capacity_Range.
13593         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
13594         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
13595         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
13596         in the code is this is not the case.
13598 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13600         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
13601         selected component in an instance where the component of the
13602         actual is not visibile at instantiation.
13604 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13606         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
13607         has a dynamic predicate, generate freeze node for Actual_Subtype
13608         at once, because the declaration of the corresponding predicate
13609         function will make reference to it.
13611 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13613         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
13615 2014-01-27  Robert Dewar  <dewar@adacore.com>
13617         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
13618         for 2**X optimization.
13620 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13622         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
13623         explicitly whether value is in range of Character, because the
13624         library is typically compiled with range checks disabled, and
13625         we cannot rely on the implicit check on the argument of 'Val.
13627 2014-01-27  Vincent Celier  <celier@adacore.com>
13629         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
13630         not the Target to itself.
13632 2014-01-27  Robert Dewar  <dewar@adacore.com>
13634         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
13635         changes to avoid incorrect use of unordered enum types.
13637 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13639         * sem_ch4.adb: Minor reformatting.
13641 2014-01-27  Robert Dewar  <dewar@adacore.com>
13643         * scn.adb (Check_End_Of_Line): Removed.
13644         (Error_Long_Line): Removed.
13645         (Determine_License): Use versions of above routines from Scanner.
13646         * scng.adb (Check_End_Of_Line): Moved to spec.
13647         (Error_Long_Line): Removed, no longer used.
13648         * scng.ads (Check_End_Of_Line): Moved here from body.
13650 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13652         * exp_ch7.adb (Build_Cleanup_Statements): Call
13653         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
13654         for protected body.
13655         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
13656          Remove Service_Name variable.
13657         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
13658         factorize code from the above subprograms.
13659         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
13661 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
13663         * einfo.adb (Has_Option): Reimplemented.
13664         * sem_prag.adb (Analyze_Refinement_Clause): Add global
13665         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
13666         External_Constit_Seen and State. Add local variables Body_Ref,
13667         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
13668         avoid a cumbersome while pool. Verify the legality of an external
13669         state and relevant properties.
13670         (Check_External_Property): New routine.
13671         (Check_Matching_State): Remove parameter profile
13672         and update comment on usage.
13673         (Collect_Constituent): Store the
13674         relevant external property of a constituent.
13675         * sem_util.adb (Async_Readers_Enabled): Update the call to
13676         Has_Enabled_Property.
13677         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
13678         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
13679         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
13680         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
13681         Update comment on usage. Reimplement the logic to recognize the various
13682         formats of properties.
13684 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13686         * par-ch5.adb: Minor reformatting.
13688 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13690         * s-tposen.ads: Harmonize style and comments.
13692 2014-01-27  Vincent Celier  <celier@adacore.com>
13694         * projects.texi: Document that shared library projects, by
13695         default, cannot import projects that are not shared library
13696         projects.
13698 2014-01-27  Robert Dewar  <dewar@adacore.com>
13700         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
13701         of Rewrite.
13703 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13705         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
13706         any other exception is raised.
13707         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
13708         still necessary to perform a conversion in order to remove overlong
13709         encodings.
13711 2014-01-27  Robert Dewar  <dewar@adacore.com>
13713         * exp_smem.adb: Minor reformatting.
13715 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13717         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
13719 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13721         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
13722         nodes for operands to the original node for the call, to preserve
13723         Original_Node pointers within the resolved operands, given that
13724         they may have been rewritten as well. Previous approach copied
13725         the operands into a new tree and lost those pointers.
13727 2014-01-27  Claire Dross  <dross@adacore.com>
13730         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
13732 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13734         * sem_util.adb (Check_Internal_Protected_Use): A call through
13735         an anonymous access parameter of the current protected function
13736         is not a potential modification of the current object.
13738 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13740         * a-cobove.adb (Reserve_Capacity): Procedure raises
13741         Capacity_Error, not Constraint_Error, when request cannot be
13742         satisfied.
13744 2014-01-27  Vincent Celier  <celier@adacore.com>
13746         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
13747         not the Target to itself.
13749 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13751         * exp_ch4.adb (Expand_Concatenate): If the target of the
13752         concatenation is a library-level entity, always use the off-line
13753         version of concatenation, regardless of optimization level. This
13754         is space-efficient, and prevents linking problems when some
13755         units are compiled with different optimization levels.
13757 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13759         * sem_ch5.adb: Code clean up.
13761 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13763         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
13764         when an array or container iterator includes a subtype indication,
13765         which is only legal in an element iterator.
13767 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13769         * exp_ch7.adb: Minor reformatting.
13771 2014-01-27  Robert Dewar  <dewar@adacore.com>
13773         * opt.adb (SPARK_Mode): Default for library units is None rather
13774         than Off.
13775         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
13776         no longer ordered.
13777         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
13778         possibility.
13779         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
13781 2014-01-27  Robert Dewar  <dewar@adacore.com>
13783         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
13784         Suspicious_Labels table if we have identifier; followed by loop
13785         or block.
13786         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
13787         * par.adb (Suspicious_Labels): New table.
13789 2014-01-27  Robert Dewar  <dewar@adacore.com>
13791         * exp_aggr.adb (Check_Bounds): Reason is range check, not
13792         length check.
13794 2014-01-27  Yannick Moy  <moy@adacore.com>
13796         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
13797         reference.
13798         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
13799         function now.
13800         (Add_SPARK_Xrefs): Include references to constants.
13801         * spark_xrefs.ads Document new character 'c' for references to
13802         constants.
13804 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13806         * exp_smem.adb (Add_Write_After): For a function call, insert write as
13807         an after action in a transient scope.
13809 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13811         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
13812         to a shared variable as an OUT formal in a call to an init proc,
13813         the 'Read call must be emitted after, not before, the call.
13815 2014-01-27  Robert Dewar  <dewar@adacore.com>
13817         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
13819 2014-01-27  Robert Dewar  <dewar@adacore.com>
13821         * a-wichha.adb (Character_Set_Version): Change to output proper
13822         value.
13824 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
13826         * einfo.adb (Is_Input_Only_State): Removed.
13827         (Is_Non_Volatile_State): Removed.
13828         (Is_Output_State): Removed.
13829         * einfo.ads (Is_Input_Only_State): Remove attribute and
13830         subprogram. Update related entity.
13831         (Is_Non_Volatile_State):
13832         Remove attribute and subprogram. Update related entity.
13833         (Is_Output_State): Removed attribute and subprogram. Update
13834         related entity.
13835         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
13836         generated code.
13837         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
13838         an object, not just variables.
13839         (Analyze_Object_Contract): New routine.
13840         (Analyze_Variable_Contract): Removed.
13841         (Process_Discriminants): Detect an illegal use of volatile
13842         discriminant in SPARK mode.
13843         * sem_ch5.adb (Analyze_Iterator_Specification):
13844         Detect an illegal use of volatile loop variable.
13845         (Analyze_Loop_Parameter_Specification): Detect an illegal use
13846         of volatile loop variable.
13847         * sem_ch6.adb (Process_Formals): Update the volatile object
13848         detection. Detect an illegal formal of mode IN OUT or OUT in
13849         SPARK mode. Enhance the error messages with references.
13850         * sem_ch12.adb (Instantiate_Object): Update the volatile object
13851         detection. Enhance the error messages with references.
13852         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
13853         messages with references.
13854         (Analyze_Contract_Case): Enhance the error messages with references.
13855         (Analyze_External_Property): Call Check_Duplicate_Property to process
13856         an external property.
13857         (Analyze_External_Property_In_Decl_Part): New routine.
13858         (Analyze_External_State_In_Decl_Part): Removed.
13859         (Analyze_Global_Item): Detect an illegal
13860         use of a volatile constant. Detect an illegal use
13861         of a variable with enabled Effective_Reads. Enhance
13862         the error messages with references. Remove obsolete
13863         checks concerning Input_Only and Output_Only states.
13864         (Analyze_Initialization_Item): Enhance the error messages
13865         with references.
13866         (Analyze_Initializes_In_Decl_Part): Do not
13867         collect the states and variables when the initialization list
13868         is null.
13869         (Analyze_Input_Item): Enhance the error messages with references.
13870         (Analyze_Input_Output): Enhance the error messages with references.
13871         (Analyze_Pragma): Enhance the error messages with references.
13872         (Analyze_Refinement_Clause): Code reformatting.
13873         (Analyze_Refined_Depends_In_Decl_Part):
13874         Rename global variable Global to Reg_Global and update all
13875         occurrences. Add local variables D7 and D8. Update the error
13876         messages with references. Update the call to Collect_Global_Items.
13877         (Analyze_Refined_Global_In_Decl_Part): Add local variables
13878         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
13879         the call to Collect_Global_Items.  Account for a Proof_In state
13880         in null / useless refinement checks. Verify the coverage of
13881         Proof_In states.
13882         (Check_Dependency_Clause): Remove local variable
13883         Out_Constits. Remove the retrieval and removal of constituents
13884         for an Output_Only state. Remove the reporting of unused
13885         Output_Only state constituents.
13886         (Check_Duplicate_Mode): Enhance
13887         the error message with a reference.
13888         (Check_Duplicate_Property): New routine.
13889         (Check_Duplicate_Option): Enhance the error message with a reference.
13890         (Check_External_Properties): Enhance the error message with a reference.
13891         (Check_Function_Return): Enhance the error message with a reference.
13892         (Check_In_Out_States): Update
13893         comment on usage. Add a specialized error message for Proof_In
13894         constituents. Enhance the error message with a reference.
13895         (Check_Input_States): Update comment on usage. Account for
13896         possible Proof_In constituents. Enhance the error message
13897         with a areference.
13898         (Check_Matching_Constituent): Enhance the error message with a
13899         reference.
13900         (Check_Matching_State): Enchance the error message with a reference.
13901         (Check_Mode): Add local variable From_Global. Update the call to
13902         Find_Mode.  Emit more precise error messages concerning extra items
13903         (Check_Mode_Restriction_In_Enclosing_Context): Consider
13904         pragma Refined_Global.  Enhance the error message with a
13905         reference.
13906         (Check_Mode_Restriction_In_Function): Enhance the error message with
13907         a reference.
13908         (Check_Output_States): Update comment on usage. Add local variable
13909         Posted.  Account for possible Proof_In constituents. Produce a detailed
13910         list of missing constituents.
13911         (Check_Proof_In_States): New routine.
13912         (Check_Refined_Global_Item): Handle Proof_In
13913         constituents. Enchance the error message with a reference.
13914         (Collect_Global_Items): Add formal parameters Proof_In_Items
13915         and Has_Proof_In_State. Update the comment on usage. Account
13916         for Proof_In items.
13917         (Create_Or_Modify_Clause): Enchance
13918         the error message with a reference.
13919         (Find_Mode): Add
13920         formal parameter From_Global. Update the comment on usage.
13921         Detect when the mode is governed by pragma [Refined_]Global.
13922         (Output_Constituents): Removed.
13923         (Report_Extra_Constituents):
13924         Report extra Proof_In constituents.
13925         (Report_Unused_Constituents): Removed.
13926         (Usage_Error): Code reformatting. Enhance the error
13927         messages with reference.
13928         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
13929         (Analyze_External_State_In_Decl_Part): Removed.
13930         * sem_res.adb (Resolve_Actuals): Update the volatile object
13931         detection. Enhance the error message with a reference.
13932         (Resolve_Entity_Name): Update the volatile object
13933         detection. Enhance the error message with a reference.
13934         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
13935         (Is_SPARK_Volatile_Object): New routine.
13936         (Has_Volatile_Component): New routine.
13937         * sem_util.ads (Is_Delegate): Alphabetized.
13938         (Is_SPARK_Volatile_Object): New routine.
13939         (Has_Volatile_Component): New routine.
13940         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
13942 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13944         * sem_attr.adb: Resolve fully prefix of 'Update.
13946 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
13948         * gnat_rm.texi: Minor clarifications.
13950 2014-01-27  Robert Dewar  <dewar@adacore.com>
13952         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
13953         about call that is generated as part of an Initial_Condition
13954         check.
13955         * sem_prag.adb: Minor spelling correction.
13957 2014-01-27  Robert Dewar  <dewar@adacore.com>
13959         * sem_prag.adb (Set_Convention_From_Pragma): Check that
13960         convention Ghost can only apply to functions.
13961         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
13963 2014-01-27  Robert Dewar  <dewar@adacore.com>
13965         * gnat_ugn.texi: Add Short_Enums to documentation of
13966         -gnatet/-gnateT.
13968 2014-01-27  Robert Dewar  <dewar@adacore.com>
13970         * sem_prag.adb (Analyze_Input_Item): Correct check for input
13971         item in same package.
13972         * sem_util.ads, sem_util.adb (Within_Scope): New function.
13974 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
13976         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
13977         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
13978         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
13979         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
13980         maintained.
13982 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13984         * gcc-interface/Makefile.in: Fix oversight.
13986 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13988         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
13989         conversion from a thin pointer with a shifted value.
13990         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
13991         read-only flag from the values onto the result.
13992         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
13994 2014-01-25  Tristan Gingold  <gingold@adacore.com>
13996         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
13997         for E_Variable with a pragma Linker_Section.
13999 2014-01-25  Robert Dewar  <dewar@adacore.com>
14001         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
14002         with Default_Value aspect is passed in by copy.
14004 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
14006         * set_targ.adb: Set Short_Enums.
14007         * gcc-interface/lang.opt (fshort-enums): New option.
14008         * gcc-interface/misc.c (gnat_handle_option): Handle it.
14009         (gnat_post_options): Do not modify the global settings.
14011 2014-01-24  Robert Dewar  <dewar@adacore.com>
14013         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
14014         function.
14015         (Random_Decimal_Fixed): New generic function.
14016         * s-rannum.ads: Minor comment clarifications.
14018 2014-01-24  Robert Dewar  <dewar@adacore.com>
14020         * back_end.adb: Remove Short_Enums handling (handled in
14021         Ttypes/Get_Targ now) Minor added comments.
14022         * freeze.adb: Change name Short_Enums_On_Target to
14023         Target_Short_Enums.
14024         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
14025         * opt.ads: Minor comment updates.
14026         * sem_ch13.adb: Change name Short_Enums_On_Target to
14027         Target_Short_Enums.
14028         * set_targ.adb: Set Short_Enums from gcc back end.
14029         * set_targ.ads (Short_Enums): New variable.
14030         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
14031         Ttypes/Get_Targ now).
14032         * ttypes.ads (Target_Short_Enums): New constant boolean switch
14034 2014-01-24  Pascal Obry  <obry@adacore.com>
14036         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
14038 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
14040         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
14041         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
14042         stripped off.
14044 2014-01-24  Robert Dewar  <dewar@adacore.com>
14046         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
14048 2014-01-24  Vincent Celier  <celier@adacore.com>
14050         * prj.adb (Add_Aggregated_Project): Do not add a project in
14051         the list if it is already there.
14053 2014-01-24  Yannick Moy  <moy@adacore.com>
14055         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
14056         Correct the search for a subrogram declaration to which a pragma is
14057         attached.
14059 2014-01-24  Bob Duff  <duff@adacore.com>
14061         * gnat_ugn.texi: Document --decimal-grouping and
14062         --based-grouping switches in gnatpp.
14064 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14066         * sinfo.ads: Documentation update.
14068 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14070         * sem_ch3.adb (Constant_Redeclaration): New declaration is
14071         illegal if previous one has an initial expression that is an
14072         aggregate expanded into assignments.
14074 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14076         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
14077         code reorganization to remove spurious warning on a loop with
14078         an array element iterator that has a null range.
14080 2014-01-24  Vincent Celier  <celier@adacore.com>
14082         * make.adb (Binding_Phase): When setting the Ada paths, use
14083         the library ALI dir, not the object dir in libraries.
14085 2014-01-24  Yannick Moy  <moy@adacore.com>
14087         * sinfo.ads: Add documentation of check flag fields.
14089 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14091         * sem_res.adb (Resolve_Actuals): If an actual is a view
14092         conversion of a discriminated object, and the formal type is
14093         discriminated and constrained, apply a discriminant check to
14094         the object itself.
14096 2014-01-24  Robert Dewar  <dewar@adacore.com>
14098         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
14100 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14102         * sem_ch3.adb (Analyze_Declarations): At the end of an
14103         appropriate declarative part, call Freeze_All from the first
14104         declaration in the scope, not from the first unfrozen one. This
14105         is necessary to apply visibility checks to entities with delayed
14106         aspects. Otherwise, in the presence of instantiations and cleanups
14107         that they may generate, the delayed aspects may be analyzed too
14108         late and produce spurious visibility errors.
14109         * sem_attr.adb: Place etype on range.
14110         * sem_ch6.adb: Documentation expression functions.
14112 2014-01-24  Robert Dewar  <dewar@adacore.com>
14114         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
14115         terminology in compiler).
14117 2014-01-24  Robert Dewar  <dewar@adacore.com>
14119         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
14120         categories, now that Ada 95 supports raise expressions.
14122 2014-01-24  Robert Dewar  <dewar@adacore.com>
14124         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
14125         Short_Enums_On_Target.
14126         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
14127         into account.
14128         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
14130 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14132         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
14133         indication is given explicity, check that it matches the array
14134         component type or the container element type of the domain
14135         of iteration.
14137 2014-01-24  Tristan Gingold  <gingold@adacore.com>
14139         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
14140         * gcc-interface/misc.c (flag_short_enums): Declare.
14141         (gnat_post_options): Set it.
14143 2014-01-24  Vincent Celier  <celier@adacore.com>
14145         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
14146         to cache the result when Including_Libraries is False.
14147         * prj-env.ads (Ada_Objects_Path): Update documentation
14148         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
14149         (Get_Object_Directory): Return the Library_Ali_Dir only when
14150         when Including_Libraries is True.
14151         * prj.ads (Get_Object_Directory): Fix and complete documentation
14152         (Project_Data): New component Ada_Objects_Path_No_Libs
14154 2014-01-24  Robert Dewar  <dewar@adacore.com>
14156         * checks.adb (Expr_Known_Valid): Result of fpt operator never
14157         considered valid.
14159 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
14161         * back_end.adb: Minor fix in comment.
14163 2014-01-24  Javier Miranda  <miranda@adacore.com>
14165         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
14166         required to report the error in case of task types.
14168 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14170         * sem_attr.adb: Additional index checking.
14172 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14174         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
14175         expressions in each component association, and for records note
14176         the entity in each association choice, for subsequent resolution.
14177         (Resolve_Attribute, case 'Update): Complete resolution of
14178         expressions in each component association.
14180 2014-01-24  Robert Dewar  <dewar@adacore.com>
14182         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
14183         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
14184         leading to wrong handling of SPARK_Mode for library units).
14186 2014-01-24  Robert Dewar  <dewar@adacore.com>
14188         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
14189         on generic instances (do not consider them to be internally
14190         generated)
14192 2014-01-24  Doug Rupp  <rupp@adacore.com>
14194         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
14195         vice pthread_sigmask.
14197 2014-01-24  Vincent Celier  <celier@adacore.com>
14199         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
14200         not default.
14202 2014-01-24  Vincent Celier  <celier@adacore.com>
14204         * prj-ext.adb (Add): Do not output anything when Silent is True,
14205         whatever the verbosity. When Source is From_External_Attribute,
14206         set the corresponding environment variable if it is not already set.
14207         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
14208         to False
14209         * prj-proc.adb (Process_Expression_For_Associative_Array):
14210         For attribute External, call Prj.Ext.Add with Silent set to
14211         True for the child environment, to avoid useless output in non
14212         default verbosity.
14214 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14216         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
14217         range given by a subtype indication, and force evaluation of
14218         the bounds, as for a simple range.
14219         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
14220         of bounds of slice for various kinds of discrete ranges.
14221         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
14222         Evaluate_Slice_Bounds.
14224 2014-01-24  Bob Duff  <duff@adacore.com>
14226         * s-taskin.ads (Activator): Make this Atomic, because
14227         Activation_Is_Complete reads it, and that can be called
14228         from any task. Previously, this component was only
14229         modified by the activator before activation, and by
14230         Self after activation.
14231         * a-taside.ads, a-taside.adb (Environment_Task,
14232         Activation_Is_Complete): Implement these missing functions.
14234 2014-01-24  Doug Rupp  <rupp@adacore.com>
14236         * init.c: Add a handler section for Android.
14238 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
14240         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
14242 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14244         * sem_ch4.adb (Operator_Check): If one operand is a
14245         Raise_Expression, set its type to that of the other operand.
14246         * sem_res.adb (Resolve_Raise_Expression): new procedure.
14247         (Resolve_Actuals): For an actual that is a Raise_Expression,
14248         set the type to that of the formal.
14249         * sem_type.adb (Find_Unique_Type): If one of the operands is a
14250         Raise_Expression, return type of the other operand.
14252 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14254         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
14255         component of the record has a type with a default aspect, and
14256         the corresponding aggregate component is initiaized with a box,
14257         use the default value in the rewritten aggregate.
14259 2014-01-24  Tristan Gingold  <gingold@adacore.com>
14261         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
14262         s-interr-sigaction.adb,
14263         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
14264         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
14265         to the call to Install_Restricted_Handlers.
14267 2014-01-24  Emmanuel Briot  <briot@adacore.com>
14269         * prj-nmsc.adb (Check_File): Add protection when the source is
14270         not fully initialized.
14272 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14274         * sem_util.adb (Is_Post_State): In a postcondition, a selected
14275         component that denotes an implicit dereference is a reference
14276         to the post state of the subprogram.
14278 2014-01-24  Robert Dewar  <dewar@adacore.com>
14280         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
14281         for generated subprograms.
14282         (Analyze_Subprogram_Specification): Ditto.
14284 2014-01-24  Vincent Celier  <celier@adacore.com>
14286         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
14287         attributes in package Builder of aggregate and aggregate library
14288         projects.
14289         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
14290         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
14291         Remove parameters.  Change error message from "... externally
14292         build library ..." to "... externally built project ...".
14293         (Process_Naming_Scheme.Check): Do not do any check in aggregate
14294         project, as attribute Library_Dir and Library_Name have already
14295         been detected as forbidden.
14297 2014-01-24  Vincent Celier  <celier@adacore.com>
14299         * prj-env.adb (Find_Project): If cached project path is not in
14300         project directory, look in current directory first and use cached
14301         project path only if project is not found in project directory.
14303 2014-01-24  Robert Dewar  <dewar@adacore.com>
14305         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
14307 2014-01-24  Vincent Celier  <celier@adacore.com>
14309         * projects.texi: Document that aggregate projects are only
14310         supported by gprbuild, but not by gnatmake.  Document that the
14311         only attribute Switches in package Binder of aggregate projects
14312         will be ignored if its index is not others.  Document that
14313         attribute Global_Config_File is allowed in package Binder of
14314         aggregate projects.
14316 2014-01-24  Robert Dewar  <dewar@adacore.com>
14318         * sem_prag.adb: Minor code reorganization.
14319         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
14321 2014-01-24  Pascal Obry  <obry@adacore.com>
14323         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
14324         attribute definition.
14326 2014-01-24  Vincent Celier  <celier@adacore.com>
14328         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
14329         in the Queue the same source (same path, same multi-source index)
14330         from the same project file, to avoid compiling several times
14331         the same source.
14333 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
14335         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
14336         (Has_Gigi_Rep_Item): Likewise.
14337         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
14338         Has_Gigi_Rep_Item for objects.
14339         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
14340         (prepend_one_attribute): ...this.
14341         (prepend_one_attribute_pragma): New function extracted from...
14342         (prepend_attributes): ...here.  Swap the parameters for consistency.
14343         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
14344         prepend_attributes.
14345         <object>: Deal with a pragma Linker_Section on a constant
14346         or variable.  <E_Function>: Deal with a pragma Linker_Section
14347         on a subprogram.
14348         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
14350 2014-01-24  Vincent Celier  <celier@adacore.com>
14352         * opt.ads: Minor comment update.
14354 2014-01-24  Robert Dewar  <dewar@adacore.com>
14356         * sem_prag.adb (Analyze_Input_Output): Add missing error check
14357         for junk operand.
14358         * sem_util.adb (Is_Refined_State): Add defense against junk
14359         tree from error.
14361 2014-01-24  Pascal Obry  <obry@adacore.com>
14363         * projects.texi: Removes Build_Slaves attribute documentation.
14365 2014-01-23  Robert Dewar  <dewar@adacore.com>
14367         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
14368         setting.
14370 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14372         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
14373         applies to expressions that come from source.
14374         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
14375         message.
14376         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
14377         rule regarding potentially unevaluated expressions, to prefix
14378         of attribute.
14380 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14382         * exp_util.adb (Make_Invqriant_Call): If type of expression is
14383         a private extension, get invariant from base type.
14385 2014-01-23  Robert Dewar  <dewar@adacore.com>
14387         * sem_util.adb, sem_attr.adb: Minor reformatting.
14389 2014-01-23  Robert Dewar  <dewar@adacore.com>
14391         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
14392         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
14393         * sem.adb (Semantics): Remove save/restore of
14394         SPARK_Mode[_Pragma]. Not needed since already done in
14395         Save/Restore_Opt_Config_Switches.
14397 2014-01-23  Robert Dewar  <dewar@adacore.com>
14399         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
14400         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
14401         Linker_Section enhancements.
14403 2014-01-23  Tristan Gingold  <gingold@adacore.com>
14405         * gnat_rm.texi: Minor editing.
14407 2014-01-23  Robert Dewar  <dewar@adacore.com>
14409         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
14410         with'ed internal units.
14411         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
14413 2014-01-23  Javier Miranda  <miranda@adacore.com>
14415         * lib-xref.adb (Generate_Reference): As part of processing the
14416         "end-of-spec" reference generate an extra reference to the first
14417         private entity of the package.
14418         * xr_tabls.adb (Add_Reference): No action needed for the extra
14419         'E' reference associated; similar to the processing of the
14420         'e' reference.
14422 2014-01-23  Bob Duff  <duff@adacore.com>
14424         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
14426 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14428         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
14429         predicate to implement rule given in 6.1.1 (20/3).
14430         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
14431         'Old in a postcondition, if it is potentially unevaluated and
14432         it is not an entity name.
14434 2014-01-23  Bob Duff  <duff@adacore.com>
14436         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
14438 2014-01-23  Robert Dewar  <dewar@adacore.com>
14440         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
14441         msg on VMS.
14443 2014-01-23  Bob Duff  <duff@adacore.com>
14445         * g-dynhta.ads: Minor comment fix.
14447 2014-01-23  Yannick Moy  <moy@adacore.com>
14449         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
14450         from spec on body only when not already inherited on spec. Set
14451         SPARK_Mode from context on body without previous spec.  *
14452         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
14453         library-level entities.  Correct retrieval of entity from
14454         declaration, for cases where the declaration is not a unit.
14455         * sem_ch12.adb (Instantiate_Object): Avoid
14456         calling Is_Volatile_Object on an empty node.
14458 2014-01-23  Robert Dewar  <dewar@adacore.com>
14460         * gnatlink.adb (Gnatlink): Check for suspicious executable file
14461         names on windows.
14463 2014-01-23  Robert Dewar  <dewar@adacore.com>
14465         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
14466         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
14467         style errors in instances.
14468         * g-dynhta.ads (Static_HTable): Comment updates.
14470 2014-01-23  Vincent Celier  <celier@adacore.com>
14472         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
14473         to find a configuration project file when Config_File_Name is
14474         No_Configuration_File.
14475         * prj-conf.ads (No_Configuration_File): New constant String.
14476         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
14477         with Config_File_Name set to No_Configuration_File, so that
14478         no existing configuration project file will be used, and the
14479         configuration project will be only created in memory when
14480         Add_Default_GNAT_Naming_Scheme is called.
14481         * projects.texi: Minor reformatting.
14483 2014-01-23  Vincent Celier  <celier@adacore.com>
14485         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
14486         a config project file if On_Load_Config is not null.
14487         * prj-pars.adb: Minor comment changes.
14489 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14491         * lib-xref.adb (Output_References): Output progenitors of
14492         synchronized tagged types, for source navigation.
14494 2014-01-23  Robert Dewar  <dewar@adacore.com>
14496         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
14497         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
14498         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
14500 2014-01-23  Emmanuel Briot  <briot@adacore.com>
14502         * prj-conf.adb (Get_Or_Create_Configuration_File): call
14503         On_Load_Config later.
14505 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
14507         * sem_ch3.adb (Analyze_Declarations): Do not
14508         generate the spec of the late primitive in ASIS mode. Add two
14509         comments to explain the special cases when the expansion is
14510         not performed.
14512 2014-01-23  Robert Dewar  <dewar@adacore.com>
14514         * sem_util.adb (Note_Possible_Modification): Fix error of
14515         misbehaving for implicit dereference cases in -gnatc mode.
14517 2014-01-23  Emmanuel Briot  <briot@adacore.com>
14519         * prj-pars.adb: Minor reformatting.
14521 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14523         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
14524         body generated for an expression function within a protected body
14525         needs a set of renaming declarations if the expression function
14526         comes from source.
14528 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14530         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
14531         list interface progenitor of a tagged concurrent type, for better
14532         source navigation.
14534 2014-01-22  Robert Dewar  <dewar@adacore.com>
14536         * lib.adb (In_Extended_Main_Code_Unit): Return False for
14537         Standard_Location.
14538         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
14539         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
14540         treatment of Slocs No_Location and Standard_Location.
14541         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
14542         check for entity with Standard_Location Sloc, rather than relying
14543         on Lib routines to do that.
14544         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
14545         that a call cannot occur before a later occuring body within
14546         the same unit.
14548 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14550         * rtsfind.adb: Update comment.
14552 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
14554         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
14555         * sem_ch3.adb (Analyze_Declarations): Add local variable
14556         Body_Seen. Generate the spec of a late controlled
14557         primitive body that is about to freeze its related type.
14558         (Handle_Late_Controlled_Primitive): New routine.
14560 2014-01-22  Robert Dewar  <dewar@adacore.com>
14562         * a-stream.adb: Minor reformatting.
14564 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14566         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
14567         sub-procedure Declared_In_Actual to handle properly the visibility
14568         of actuals in actual packages, that are themselves actuals to a
14569         actual package of the current instance. This mimics properly the
14570         visibility of formals of formal packages declared with a box,
14571         within the corresponding generic unit.
14573 2014-01-22  Robert Dewar  <dewar@adacore.com>
14575         * checks.adb: Do not assume that a volatile variable is valid.
14577 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14579         * g-catiio.ads (Image, Value): Clarify that these functions
14580         operate in the local time zone.  Minor documentation update.
14582 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14584         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
14586 2014-01-22  Robert Dewar  <dewar@adacore.com>
14588         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
14589         Moved to sem_aux.adb.
14591 2014-01-22  Robert Dewar  <dewar@adacore.com>
14593         * vms_data.ads: Minor reformatting.
14595 2014-01-22  Robert Dewar  <dewar@adacore.com>
14597         * debug.adb: Document messages affected by -gnatd.E including
14598         the new ones that relate to late definition of equality.
14599         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
14600         debug flag -gnatd.E is set, then generate warnings rather than
14601         errors.
14602         (Check_Untagged_Equality): In earlier versions of Ada,
14603         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
14605 2014-01-22  Robert Dewar  <dewar@adacore.com>
14607         * sem_prag.adb (Usage_Error): Output additional messages for
14608         unconstrained OUT parameters lacking an input dependency.
14610 2014-01-22  Robert Dewar  <dewar@adacore.com>
14612         * sem_ch4.adb: Minor reformatting.
14614 2014-01-22  Robert Dewar  <dewar@adacore.com>
14616         * restrict.ads: Minor reformatting.
14617         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
14618         forbids a call from within a subprogram to the same subprogram.
14620 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14622         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
14623         stream attributes for Stream_Element_Array.
14624         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
14625         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
14626         defined in the current scope.
14628 2014-01-22  Robert Dewar  <dewar@adacore.com>
14630         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
14632 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14634         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
14636 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14638         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
14639         declaration initialized with a function call, whose type
14640         has variable size, need to remove side effects so that the
14641         initialization expression becomes a dereference of a temporary
14642         reference to the function result.
14644 2014-01-22  Yannick Moy  <moy@adacore.com>
14646         * errout.adb (Initialize): Remove trick to add dummy entry
14647         in Warnings table.
14648         * erroutc.adb (Set_Warnings_Mode_Off,
14649         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
14650         command line switch.
14651         * opt.ads (Warning_Mode): Document behavior
14652         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
14654 2014-01-22  Robert Dewar  <dewar@adacore.com>
14656         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
14658 2014-01-22  Robert Dewar  <dewar@adacore.com>
14660         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
14661         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
14662         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
14663         case Storage_Size): call Check_Pool_Size_Clash.
14665 2014-01-22  Robert Dewar  <dewar@adacore.com>
14667         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
14668         sem_eval.ads: Minor reformatting.
14670 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14672         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
14673         Any_Composite to prevent cascaded errors.
14675 2014-01-22  Yannick Moy  <moy@adacore.com>
14677         * errout.adb (Initialize): Do not insert special entry in Warnings
14678         table in GNATprove_Mode.
14679         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
14680         GNATprove_Mode.
14681         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
14682         warnings anymore.
14684 2014-01-22  Robert Dewar  <dewar@adacore.com>
14686         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
14687         initializes case.
14689 2014-01-22  Robert Dewar  <dewar@adacore.com>
14691         * snames.ads-tmpl: Update header.
14693 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14695         * exp_util.adb (Insert_Actions): When inserting actions on a
14696         short circuit operator that has already been analyzed, do not park
14697         actions in node; instead introduce an N_Expression_With_Actions
14698         and insert actions immediately.
14699         Add guard for unexpected case of climbing up through statement
14700         in Actions list of an N_Expression_With_Actions.
14701         * sem_elab.adb (Insert_Elab_Check): Remove complex
14702         specialized circuitry for the case where the context is already
14703         analyzed, as it is not needed and introduces irregularities in
14704         finalization. Instead rely on the above change to Insert_Actions
14705         to ensure that late insertion on short circuit operators works
14706         as expected.
14708 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14710         * sem_ch4.adb (Operator_Check): Improve error message when an
14711         operand of concatenation is an access type.
14713 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14715         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
14716         cascaded error.
14718 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14720         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
14721         of an expanded name in a proper body, whose prefix is a package
14722         in the context of the proper body, when there is a homonym of
14723         the package declared in the parent unit.
14725 2014-01-22  Robert Dewar  <dewar@adacore.com>
14727         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
14728         msg if errors found.
14729         (Check_One_Unit): Same change.
14731 2014-01-22  Robert Dewar  <dewar@adacore.com>
14733         * ug_words: Add missing/wrong entries for VMS warning switches.
14734         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
14736 2014-01-22  Jerome Guitton  <guitton@adacore.com>
14738         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
14739         arm.
14741 2014-01-22  Robert Dewar  <dewar@adacore.com>
14743         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
14745 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14747         * gcc-interface/Makefile.in: Minor fixes.
14749 2014-01-21  Robert Dewar  <dewar@adacore.com>
14751         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
14752         * par-ch5.adb (P_Condition): New version with expression prescanned.
14753         * par.adb (P_Condition): New version with expression prescanned.
14755 2014-01-21  Robert Dewar  <dewar@adacore.com>
14757         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
14758         if Address is not a private type.
14759         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
14760         Ignore pragma if System.Address is not a private type.
14762 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14764         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
14765         uninitialized value.
14767 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14769         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
14771 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14773         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
14774         the value of Assertions_Enabled flag when compiling an instance of
14775         an internal unit. This facilitates the use of pre/postconditions
14776         in generic internal units, such as the new elementary function
14777         libraries.
14779 2014-01-21  Robert Dewar  <dewar@adacore.com>
14781         * exp_aggr.adb: Minor reformatting.
14782         * sem_attr.adb: Minor reformatting.
14783         * sem_res.adb: Minor comment addition.
14784         * einfo.adb: Minor comment updates.
14785         * freeze.adb: Minor reformatting and code reorganization.
14787 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14789         * par-ch4.adb (P_If_Expression): Handle more gracefully an
14790         elsif clause that does not have an else part.
14792 2014-01-21  Robert Dewar  <dewar@adacore.com>
14794         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
14795         * gcc-interface/Makefile.in: clean up target pairs.
14797 2014-01-21  Pascal Obry  <obry@adacore.com>
14799         * projects.texi: Minor typo fix.
14801 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14803         * freeze.adb (Check_Component_Storage_Order): If a record type
14804         has an explicit Scalar_Storage_Order attribute definition clause,
14805         reject any component that itself is of a composite type and does
14806         not have one.
14808 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14810         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
14811         can be used to generate proper cross-reference information for
14812         the parent units of proper bodies.
14814 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14816         * exp_pakd.adb (Expand_Packed_Element_Set,
14817         Expand_Packed_Element_Reference): No byte swapping required in
14818         the front-end for the case of a reverse storage order array,
14819         as this is now handled uniformly in the back-end.  However we
14820         still need to swap back an extracted element if it is itself a
14821         nested composite with reverse storage order.
14823 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14825         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
14826         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
14827         include "others".
14829 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14831         * gnat_ugn.texi: Minor updates.
14833 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14835         * exp_pakd.adb: Update comment, minor reformatting.
14837 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14839         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
14840         object check when SPARK_Mode is on.
14841         * sem_ch6.adb (Process_Formals): Trigger the volatile object
14842         check when SPARK_Mode is on.
14843         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
14844         check when SPARK_Mode is on.
14845         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
14846         corresponding pragma of aspect SPARK_Mode in the visible
14847         declarations of a package declaration.
14848         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
14849         check when SPARK_Mode is on.
14850         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
14851         check when SPARK_Mode is on.
14852         (Resolve_Entity_Name): Trigger
14853         the volatile object check when SPARK_Mode is on.
14855 2014-01-21  Robert Dewar  <dewar@adacore.com>
14857         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
14858         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
14860 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14862         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
14863         object is declared, it is rewritten as a renaming of an dynamic
14864         expression that wraps the initial value.  The renaming declaration
14865         is first given an internal name, to prevent collisions with the
14866         entity already declared, and then the name is modified to reflect
14867         the original one. the modification of the name must preserve
14868         the source location of the original, to prevent spurious errors
14869         when compiling with style checks if the declaration involves
14870         more than one entity.
14872 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14874         * aspects.adb Add entries for Async_Readers, Async_Writers,
14875         Effective_Reads and Effective_Writes in table Canonical_Aspect.
14876         * aspects.ads Add entries for Async_Readers, Async_Writers,
14877         Effective_Reads and Effective_Writes in tables Aspect_Id,
14878         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
14879         * atree.adb (Ekind_In): New version with 8 parameters.
14880         (Node34): New routine.
14881         (Set_Node34): New routine.
14882         * atree.ads (Ekind_In): New version with 8 parameters.
14883         (Node34): New routine.
14884         (Set_Node34): New routine.
14885         * einfo.adb Contract is now Node34.
14886         (Contract): Update the assertion and node usage.
14887         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
14888         Effective_Reads and Effective_Writes.
14889         (Set_Contract): Update the assertion and node usage.
14890         (Write_Field24_Name): Remove the output for a contract.
14891         (Write_Field34_Name): Add output for a contract.
14892         * einfo.ads Contract is now Node34. Update the comment on
14893         attribute usage and related node structures.
14894         (Get_Pragma): Update the comment on usage.
14895         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
14896         Effective_Reads and Effective_Writes do not require special
14897         processing by the parser.
14898         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
14899         (Analyze_Declarations): Analyze the contract of a variable at
14900         the end of the declarative region.
14901         (Analyze_Object_Declaration): Create a contract for a variable.
14902         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
14903         of classification pragmas.
14904         (Process_Formals): Detect an illegal
14905         use of a volatile object as a formal in a function.
14906         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
14907         a volatile object as an actual in generic instantiation.
14908         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
14909         Effective_Reads and Effective_Writes in table Sig_Flags.
14910         (Analyze_External_State_In_Decl_Part): New routine.
14911         (Analyze_Global_Item): Detect an illegal use of a volatile object
14912         as a global item of a function.
14913         (Analyze_Pragma): Reimplement
14914         pragma Abstract_State. Add support for pragmas Async_Readers,
14915         Async_Writers, Effective_Reads and Effective_Writes.
14916         (Check_External_Properties): New routine.
14917         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
14918         (Check_External_Properties): New routine.
14919         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
14920         volatile object as an actual in a call.
14921         (Resolve_Entity_Name):
14922         Add local variables Par, Prev and Usage_OK. Detect illegal
14923         contexts of volatile objects.
14924         * sem_util.adb (Add_Contract_Item): Add support for
14925         pragmas associated with the contract of a variable.
14926         (Async_Readers_Enabled): New routine.
14927         (Async_Writers_Enabled): New routine.
14928         (Effective_Reads_Enabled): New routine.
14929         (Effective_Writes_Enabled): New routine.
14930         (Has_Enabled_Property):
14931         New routine.
14932         (Is_Unchecked_Conversion_Instance): New routine.
14933         (Is_Volatile_Object): Add support for entities that may denote
14934         a volatile object.
14935         * sem_util.ads (Add_Contract_Item): Update the
14936         comment on usage.
14937         (Async_Readers_Enabled): New routine.
14938         (Async_Writers_Enabled): New routine.
14939         (Effective_Reads_Enabled): New routine.
14940         (Effective_Writes_Enabled): New routine.
14941         (Is_Unchecked_Conversion_Instance): New routine.
14942         * sinfo.ads Update the comment on the structure of N_Contract.
14943         * snames.ads-tmpl Add predefined names for Async_Readers,
14944         Async_Writers, Effective_Reads and Effective_Writes. Add
14945         pragma ids for Async_Readers, Async_Writers, Effective_Reads
14946         and Effective_Writes.
14948 2014-01-21  Robert Dewar  <dewar@adacore.com>
14950         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
14951         * sem_eval.adb (Compile_Time_Known_Value): Remove special
14952         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
14953         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
14954         (Test_Foldable): Add CRT_Safe parameter
14955         * sem_eval.ads (Compile_Time_Known_Value): Remove special
14956         handling of CRT mode.
14957         (CRT_Safe_Compile_Time_Known_Value): New function.
14959 2014-01-21  Robert Dewar  <dewar@adacore.com>
14961         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
14962         with pragma or aspect that applies to package spec or subprogram
14963         spec.
14965 2014-01-21  Robert Dewar  <dewar@adacore.com>
14967         * exp_aggr.adb: Minor reformatting.
14969 2014-01-21  Johannes Kanig  <kanig@adacore.com>
14971         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
14973 2014-01-21  Bob Duff  <duff@adacore.com>
14975         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
14977 2014-01-21  Steve Baird  <baird@adacore.com>
14979         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
14981 2014-01-21  Vincent Celier  <celier@adacore.com>
14983         * prj-part.adb (Parse_Single_Project): Accept to extend a project
14984         if it has only be imported by an project being extended. When a
14985         project that has only been imported by a project being extended
14986         is imported by another project that is not being extended,
14987         reset the previous indication, so that it will be an error if
14988         this project is extended later.
14989         * prj-tree.adb (Create_Project): Include component From_Extended
14990         in table Projects_HT
14991         * prj-tree.ads (Project_Name_And_Node): New Boolean component
14992         From_Extended
14994 2014-01-21  Robert Dewar  <dewar@adacore.com>
14996         * atree.ads, atree.adb: Add Node33 and Set_Node33.
14997         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
14998         New field (SPARK_Pragma_Inherited): New flag
14999         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
15000         Removed.
15001         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
15002         * opt.ads (SPARK_Mode_Pragma): New global variable.
15003         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
15004         * sem_ch3.adb: Use new SPARK_Mode data structures.
15005         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
15006         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
15007         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
15008         (Pop_Scope): Restore SPARK_Mode_Pragma.
15009         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
15010         new data structures.
15012 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
15014         * back_end.adb: Undo previous change, not needed. Minor reformatting.
15016 2014-01-21  Thomas Quinot  <quinot@adacore.com>
15018         * exp_ch5.adb: Fix comment.
15019         * switch-c.adb: Minor comment update.
15020         * exp_ch3.adb: Minor reformatting.
15022 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
15024         * back_end.adb (Scan_Compiler_Arguments): Do not store object
15025         filename in gnatprove mode.
15027 2014-01-21  Thomas Quinot  <quinot@adacore.com>
15029         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
15030         suppresses usage of primitive _assign for tagged types).
15031         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
15032         No_Ctrl_Actions for a tagged type that does not require
15033         finalization, as we want to disable usage of _assign (which
15034         may cause undesirable discriminant checks on an uninitialized,
15035         invalid target).
15037 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
15039         * sem_prag.adb: Reject invariant'class on completion.
15041 2014-01-21  Javier Miranda  <miranda@adacore.com>
15043         * exp_ch3.adb (Build_Init_Procedure): For
15044         derivations of interfaces, do not move the the initialization
15045         of the _parent field since such assignment is not generated.
15047 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
15049         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
15050         with the operator it renames if we are within an expression of
15051         a pre/postcondition, because the expression will be reanalyzed
15052         at a later point, and the analysis of the renaming may affect
15053         the visibility of the operator when in an instance.
15055 2014-01-21  Robert Dewar  <dewar@adacore.com>
15057         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
15058         Add this flag to type conversion nodes and assignment nodes.
15059         * treepr.adb: Deal properly with Flag 1,2,3.
15060         * treeprs.adt: Minor comment update.
15062 2014-01-21  Robert Dewar  <dewar@adacore.com>
15064         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
15065         parameter.
15066         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
15067         parameter, completely rewrite spec.
15069 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
15071         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
15072         instance that is inlined, it may have been rewritten as a wrapper
15073         package. In that case the unit that must be made visible is the
15074         related instance of the package.
15076 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
15078         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
15079         previous change in codepeer mode.
15081 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
15083         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
15084         call to Abort_Undefer, as expected by the runtime.
15085         * s-tasren.adb (Local_Complete_Rendezvous): Replace
15086         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
15087         deferred at this point. Update comments.
15089 2014-01-21  Thomas Quinot  <quinot@adacore.com>
15091         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
15093 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
15095         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
15096         remove from doc.
15098 2014-01-21  Robert Dewar  <dewar@adacore.com>
15100         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
15102 2014-01-21  Thomas Quinot  <quinot@adacore.com>
15104         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
15105         this is value is used in Node_Id arithmetic operations.
15106         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
15107         instead of hard-coded unrolled code.
15109 2014-01-21  Yannick Moy  <moy@adacore.com>
15111         * gnat1drv.adb: Minor code cleanup, removing useless code.
15113 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
15115         * opt.ads (SPARK_Switches_File_Name): New.
15116         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
15117         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
15118         * gnat_ugn.texi: Document -gnates.
15120 2014-01-21  Yannick Moy  <moy@adacore.com>
15122         * errout.adb (Special_Msg_Delete): Update comment. Remove
15123         special case for GNATprove which should not ignore mismatch
15124         in sizes for representation clauses.
15125         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
15126         which should not ignore pragma Pack.
15128 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
15130         * sem_ch4.adb: Code clean up.
15132 2014-01-21  Steve Baird  <baird@adacore.com>
15134         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
15136 2014-01-21  Robert Dewar  <dewar@adacore.com>
15138         * gcc-interface/gigi.h: Get Flags array address.
15139         * gcc-interface/trans.c: Acquire Flags array address.
15140         * atree.adb: Add support for Flags array and Flag0,1,2,3.
15141         * atree.ads: Add support for Flags array and Flag0,1,2,3.
15142         * atree.h: Add support for Flags array and Flag0,1,2,3.
15143         * back_end.adb: Pass Flags array address to gigi.
15145 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
15147         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
15148         reference to generated body so that legality checks on stream
15149         attributes are properly applied. If type is tagged and already
15150         frozen, insert generated body at the point of the renaming
15151         declaration.
15153 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
15155         * sem_ch12.adb: Code clean up.
15156         * sem_ch8.adb: Minor reformatting
15158 2014-01-20  Robert Dewar  <dewar@adacore.com>
15160         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
15161         converting warnings on inevitable exceptions to errors.
15162         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
15163         converting warnings on inevitable exceptions to errors.
15164         * opt.adb (SPARK_Mode_Config): Handled like other config flags
15165         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
15166         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
15167         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
15168         New flag (Config_Switches_Type): Add SPARK_Mode field
15169         * sem.adb: Minor code reorganization (remove unnecessary with)
15170         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
15171         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
15172         converting warnings on inevitable exceptions to errors.
15173         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
15174         converting warnings on inevitable exceptions to errors.
15175         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
15176         converting warnings on inevitable exceptions to errors.
15177         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
15178         converting warnings on inevitable exceptions to errors.
15179         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
15180         from spec if needed
15181         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
15182         from spec if needed
15183         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
15184         Restore SPARK_Mode
15185         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
15186         converting warnings on inevitable exceptions to errors.
15187         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
15188         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
15189         of Get_SPARK_Mode_Id
15190         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
15191         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
15192         converting warnings on inevitable exceptions to errors.
15193         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
15194         converting warnings on inevitable exceptions to errors.
15195         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
15196         SPARK_Mode_Type
15198 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15200         * sem_ch13.adb: Add semantic information to rewritten type
15201         reference.
15203 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15205         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
15206         are of a type with unknown discriminants, convert both to the
15207         underlying view of the type, so that the proper constraint check
15208         can be applied to the right-hand side.
15210 2014-01-20  Robert Dewar  <dewar@adacore.com>
15212         * atree.adb (Copy_Node): Fix failure to copy last component
15213         (Exchange_Entities): Fix failure to exchange last entity
15215 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15217         * sem_ch12.adb: Code clean up.
15219 2014-01-20  Robert Dewar  <dewar@adacore.com>
15221         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
15223 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15225         * sem_ch4.adb (Analyze_Quantified_Expression): If after
15226         pre-analysis  the loop parameter specification has been
15227         rewritten as a iterator specification, propagate the change to
15228         the quantified expression, for ASIS navigtion needs.
15230 2014-01-20  Vincent Celier  <celier@adacore.com>
15232         * par-ch10.adb: Minor error message change: escape [ and ].
15234 2014-01-20  Robert Dewar  <dewar@adacore.com>
15236         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
15237         * errout.adb: Implement [ and ] insertion characters.
15238         * errout.ads: Document new [ and ] insertion characters.
15239         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
15240         addition of ??? comment.
15241         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
15242         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
15243         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
15244         Make warnings on exceptions into errors in GNATprove mode.
15245         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
15246         in error messages.
15248 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15250         * sem_ch13.adb: Code clean up.
15252 2014-01-20  Robert Dewar  <dewar@adacore.com>
15254         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
15255         messages.
15256         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
15257         error in GNATprove mode.
15259 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15261         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
15262         reference 'Old takes no parameters, and thus can appear as a
15263         prefix of a slice.
15265 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15267         * exp_aggr.adb: Fix minor typos.
15269 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15271         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
15272         instance the attribute is legal, and its value is determined
15273         statically if the type has no discriminants. This choice is
15274         more useful than rechecking the legality rule in the instance,
15275         is consistent with older usage, and is also consistent with all
15276         existing tests.
15278 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15280         * sem_cat.adb (Validate_Static_Object_Name): Change error into
15281         warning in Relaxed_Semantic_Mode.
15283 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15285         * sem_attr.adb: Code and comments cleanup.
15287 2014-01-20  Yannick Moy  <moy@adacore.com>
15289         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
15290         * errout.adb (Compilation_Errors): Remove special handling in
15291         GNATprove mode.
15292         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
15293         removed debug flags.
15294         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
15295         Global, Initial_Condition, Initializes and Refined_State pragmas and
15296         aspects.
15297         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
15298         SPARK_Strict_Mode): Remove global flags.
15299         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
15300         always performed now, on packages declaring a null state.
15301         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
15302         at providing pedantic mode for bounds of integer types.
15303         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
15304         "some" quantified expression now issued under control of -gnatw.t,
15305         like the other warning on unused bound variable.
15306         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
15307         on removed flag.
15308         (Analyze_Pragma): Remove tests for SPARK 2014
15309         pragmas, not officially allowed by GNAT.
15311 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15313         * sem_prag.adb (Analyze_Pragma): Ensure that
15314         the sole argument of pragmas Abstract_State, Contract_Cases,
15315         Depends, Global and Initializes in in aggregate form.
15316         (Analyze_Refined_Pragma): Ensure that the sole argument of
15317         pragmas Refined_Depends, Refined_Global and Refined_State is in
15318         aggregate form.
15319         (Ensure_Aggregate_Form): New routine.
15321 2014-01-20  Doug Rupp  <rupp@adacore.com>
15323         * sem_attr.adb (Analyze_Attribute): case
15324         Attribute_Constrained => treat all prefixes as legal for Declib
15325         compatibility.
15327 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15329         * sem_prag.adb (Check_Mode): Reimplement the routine.
15330         (Find_Mode): New routine.
15332 2014-01-20  Robert Dewar  <dewar@adacore.com>
15334         * sem_ch4.adb (Operator_Check): Handle additional
15335         Allow_Integer_Address cases.
15337 2014-01-20  Robert Dewar  <dewar@adacore.com>
15339         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
15340         allowed if address is non-private, no longer true.
15341         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
15342         Remove check for address being private, causes difficulty when
15343         pragma used in gnat.adc file and is not needed, since we guard
15344         this in Address_Integer_Convert_OK.
15345         * exp_ch7.adb: Minor reformatting.
15346         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
15348 2014-01-20  Robert Dewar  <dewar@adacore.com>
15350         * checks.adb (Apply_Range_Check): Remove gnatprove special
15351         casing of exponentiation.
15352         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
15353         operand for integer case to check range against Natural.
15355 2014-01-20  Robert Dewar  <dewar@adacore.com>
15357         * s-tataat.adb: Minor reformatting.
15359 2014-01-20  Robert Dewar  <dewar@adacore.com>
15361         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
15362         entities, and also fix documentation to remove mention of visible
15363         integer type, since this is not what the implementation does.
15364         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
15365         entities, and also fix documentation to remove mention of visible
15366         integer type, since this is not what the implementation does.
15367         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
15368         function.
15369         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
15370         case for parameter type check.
15371         * sem_res.adb (Resolve): Use new function
15372         Address_Integer_Convert_OK.
15373         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
15374         reformatting throughout.
15375         * sem_util.adb (Address_Integer_Convert_OK): New function.
15376         * sem_util.ads: Minor reformatting (put specs in alpha order)
15377         (Address_Integer_Convert_OK): New function.
15379 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15381         * exp_ch7.adb (Wrap_Transient_Expression):
15382         Insertion extra conditional expression only if
15383         Opt.Suppress_Control_Flow_Optimizations is set.
15385 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15387         * s-tataat.adb (Initialize_Attributes): Abort might already be
15388         deferred in Create_Task.
15390 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15392         * checks.adb (Apply_Scalar_Range_Check): Flag
15393         the exponent as requiring a range check when the expression is
15394         an exponentiation.
15396 2014-01-20  Fedor Rybin  <frybin@adacore.com>
15398         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
15400 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15402         * sem_util.adb (Default_Initialization): New routine.
15403         * sem_util.ads: Add new type Default_Initialization_Kind.
15404         (Default_Initialization): New routine.
15406 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15408         * sem_prag.adb (Check_Mode): Correct all error
15409         message logic dealing with in/in out parameters that may appear
15410         as inputs or have a self reference.
15412 2014-01-20  Robert Dewar  <dewar@adacore.com>
15414         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
15415         * sem_res.adb (Resolve): Fix error causing infinite loop for
15416         integer used as address. Allow addresses as integers.
15418 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15420         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
15422 2014-01-20  Bob Duff  <duff@adacore.com>
15424         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
15425         error when "use all" is not followed by "type".
15427 2014-01-20  Bob Duff  <duff@adacore.com>
15429         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
15430         followed by free.
15432 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15434         * checks.adb (Apply_Address_Clause_Check): If there is an
15435         alignment check on the expression in an address clause, and there
15436         is no local exception propagation, add an additional explanatory
15437         message to clarify the cause of previous warning.
15439 2014-01-20  Robert Dewar  <dewar@adacore.com>
15441         * exp_ch7.adb: Minor reformatting.
15442         * opt.ads: Minor comment updates.
15443         * sem.adb: Minor name change Is_Main_Unit =>
15444         Is_Main_Unit_Or_Main_Unit_Spec.
15445         * sem_ch6.adb: Minor reformatting and code reorganization.
15447 2014-01-20  Bob Duff  <duff@adacore.com>
15449         * gnat_ugn.texi: Update gnatpp switches.
15451 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15453         * exp_ch9.adb: Minor comment edit.
15455 2014-01-20  Robert Dewar  <dewar@adacore.com>
15457         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
15458         only if System.Address is a private type.
15459         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
15460         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
15461         Allowed only if type System.Address is private, since otherwise
15462         it makes no sense.
15463         * sem_res.adb: Fix failure to properly Analyze unchecked
15464         conversions that were introduced by Allow_Integer_Address.
15465         * switch-c.adb: Remove -gnates switch.
15466         * usage.adb: Remove -gnates switch.
15467         * gnat_ugn.texi: Remove documentation of -gnates flag.
15469 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15471         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
15472         resolve expression to perform proper name capture.
15474 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15476         * sem.adb (Semantics): When saving/restoring configuration
15477         switches, the spec of a pre- defined unit that is the main unit
15478         must be treated as a predefined unit as well.
15480 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15482         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
15483         expression, insert an extra conditional expression when saving
15484         the value of the expression, for the benefit of control flow
15485         graph based coverage analysis.
15486         * exp_ch3.adb: Minor reformatting.
15488 2014-01-20  Robert Dewar  <dewar@adacore.com>
15490         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
15491         * gnat_rm.texi: Document pragma Allow_Integer_Address.
15492         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
15493         * opt.ads: New flag Allow_Integer_Address.
15494         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
15495         * sem_ch5.adb: Minor reformatting.
15496         * sem_prag.adb: Implement pragma Allow_Integer_Address.
15497         * sem_res.adb (Resolve): Allow integer address value if
15498         switch set.
15499         * sem_util.adb: Minor reformatting.
15500         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
15501         * switch-c.adb: Recognize flag -gnates.
15502         * usage.adb: Document flag -gnates.
15504 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15506         * s-tadeca.adb: Fix minor typos in comment.
15508 2014-01-20  Pascal Obry  <obry@adacore.com>
15510         * s-win32.ads (FreeLibrary): New import.
15512 2014-01-20  Robert Dewar  <dewar@adacore.com>
15514         * sem_res.adb, sem_cat.adb: Minor reformatting.
15515         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
15516         assigning to OUT parameters for the current subprogram scope.
15517         * exp_ch4.adb: Minor reformatting.
15519 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15521         * exp_ch4.adb (Process_Transient_Object,
15522         Find_Enclosing_Contexts): If the top-level if-expression that
15523         generated the transient object is an actual in a call, the proper
15524         Hook_Context is a construct enclosing the call.
15525         * einfo.ads: Indicate that Related_Expression is used to link a
15526         loop variable to the container expression over which the loop
15527         takes place.
15528         (Analyze_Iterator_Specification): Set the Related_Expression of
15529         the loop variable in a container element iterator.
15530         (Note_Possible_Modification): If the variable is the loop
15531         variable in a container element iterator, indicate that the
15532         enclosing container is also modified.
15534 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15536         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
15538 2014-01-20  Robert Dewar  <dewar@adacore.com>
15540         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
15541         Minor reformatting and code clean up.
15543 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15545         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
15546         of objects of private type if Relaxed_RM_Semantics.
15548 2014-01-20  Claire Dross  <dross@adacore.com>
15550         * a-cofove.ads (Vector): Capacity discriminant
15551         should be in range of the index.
15553 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15555         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
15556         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
15557         possible difference between epoch of Ada.Calendar clock and Ada
15558         real-time/tasking clock.
15559         * s-taprop-posix.adb: Minor comment fix.
15561 2014-01-20  Doug Rupp  <rupp@adacore.com>
15563         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
15565 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15567         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
15568         checks on the prefix of attribute 'Old.
15569         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
15570         generation of validity checks on a range that belongs to the
15571         iteration scheme of a quantified expression.
15572         * sem_ch5.adb (One_Bound): Suppress the generation of validity
15573         checks on a bound that belongs to the iteration scheme of a
15574         quantified expression, generate the check in all other cases.
15576 2014-01-20  Bob Duff  <duff@adacore.com>
15578         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
15580 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15582         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
15583         interpretations that do not come from other predefined units,
15584         to prevent spurious ambiguities in the presence of user-defined
15585         operators in the context of (an instance of) a predefined unit.
15587 2014-01-20  Robert Dewar  <dewar@adacore.com>
15589         * gnat_rm.texi: Document that Loop_Variant is included in
15590         Statement_Assertions.
15591         * sem_prag.adb (Check_Kind): Add Loop_Variant to
15592         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
15593         to Statement_Assertions.
15595 2014-01-20  Doug Rupp  <rupp@adacore.com>
15597         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
15598         for errno ENOENT from RTP on NFS mounted file system.
15600 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15602         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
15603         examine code that does not come from source. The check does not
15604         apply to code generated for constraint checks, and such code may
15605         generate spurious error messages when compiled with expansion
15606         disabled (as in a generic unit) because side effects may not
15607         have been removed.
15608         2) Make error messages more explicit: indicate the component
15609         of the  construct whose value is indeterminate because of a
15610         call to a function with in-out parameter in another component,
15611         when there is no mandated order of execution between the two
15612         components (actuals, aggregate components, alternatives).
15614 2014-01-20  Robert Dewar  <dewar@adacore.com>
15616         * gnat_rm.texi: Minor cleanup.
15618 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15620         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
15621         can now apply to a refined postcondition.
15622         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
15623         variable Result_Seen. Add variables Case_Prag, Post_Prag,
15624         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
15625         whether postconditions and/or constract-cases mention attribute
15626         'Result and introduce a post-state when applied to functions.
15627         (Check_Result_And_Post_State): Removed.
15628         * sem_prag.adb (Analyze_Pragma): Add local variable
15629         Result_Seen. Verify that the expression of pragma Refined_Post
15630         mentions attribute 'Result and introduces a post-state.
15631         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
15633 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15635         * exp_ch7.adb (Is_Subprogram_Call): New routine.
15636         (Process_Transient_Objects): Make variable Must_Hook global with
15637         respect to all locally declared subprograms. Search the context
15638         for at least one subprogram call.
15639         (Requires_Hooking): Removed.
15641 2014-01-20  Claire Dross  <dross@adacore.com>
15643         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
15644         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
15645         External_Axiomatization);
15647 2014-01-20  Robert Dewar  <dewar@adacore.com>
15649         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
15650         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
15651         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
15652         Allow Loop_Entry to be used in these pragmas if they appear in
15653         an appropriate context.
15654         (Placement_Error): Specialize error
15655         message for pragma Assert[_And_Cut] or pragma Assume containing
15656         Loop_Entry attribute.
15657         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
15658         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
15659         and code clean ups.
15661 2014-01-20  Robert Dewar  <dewar@adacore.com>
15663         * gnat1drv.adb: Minor comment update.
15665 2014-01-20  Tristan Gingold  <gingold@adacore.com>
15667         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
15668         variables, comment out unused code.
15669         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
15670         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
15671         * s-excmac-arm.ads: New file.
15673 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15675         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
15676         Drange and Index_Typ. Remove the circuitry which creates a
15677         range check to compare the index type of the array against the
15678         discrete_range.
15679         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
15680         the circuitry which creates a range check to handle a
15681         discrete_range denoted by a subtype indication.
15683 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
15685         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
15686         nodes to get the original sloc range.
15688 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15690         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
15691         entity of a [library level] package.
15693 2014-01-20  Tristan Gingold  <gingold@adacore.com>
15695         * raise-gcc.c (exception_class_eq): New function.
15696         (is_handled_by): Use it to compare exception classes.
15697         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
15698         be called to return URC_CONTINUE_UNWIND.
15699         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
15700         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
15702 2014-01-20  Robert Dewar  <dewar@adacore.com>
15704         * opt.ads: Minor comment update.
15706 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15708         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
15709         constants to the "Local variables" area. Add new constant D. Add
15710         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
15711         to Pref_Typ and update all occurrences. Add circuitry to extract
15712         the discrete_range and the index type and build a range check.
15714 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15716         * gnat1drv.adb (Adjust_Global_Switches): Enable
15717         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
15718         is set.
15720 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15722         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
15724 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15726         * sem_ch13.adb (Analyze_Aspect_Specifications):
15727         When aspect SPARK_Mode appears on a package body, insert the
15728         generated pragma at the top of the body declarations.
15730 2014-01-20  Robert Dewar  <dewar@adacore.com>
15732         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
15733         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
15734         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
15735         sem_ch8.adb, exp_dist.adb: Minor reformatting.
15737 2014-01-20  Yannick Moy  <moy@adacore.com>
15739         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
15740         mode.
15742 2014-01-20  Pascal Obry  <obry@adacore.com>
15744         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
15745         write scheme).
15746         * g-arrspl.adb: Adapt all routine to this new implementation.
15747         (Set): Copy the Slice_Set definition before reusing it.
15749 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15751         * sem_prag.adb (Process_Import_Or_Interface): In
15752         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
15753         (Analyze_Pragma): Ditto for pragma Export.
15754         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
15755         Import style.
15757 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15759         * einfo.ads: E_Abstract_State is now part of the entities that
15760         can be overloaded. Update type Overloadable_Kind to reflect the
15761         inclusion of abstract states.
15762         * sem_ch6.adb (New_Overloaded_Entity): A function can now
15763         overload an abstract state.
15764         * sem_prag.adb (Analyze_Constituent): Handle the overloading
15765         of states by functions. Use Entity_Of to obtain the entity of
15766         a constituent.  (Analyze_Global_Item): Handle the overloading of
15767         states by functions.
15768         (Analyze_Initialization_Item): Handle the
15769         overloading of states by functions.  Use Entity_Of to obtain the
15770         entity of an item.
15771         (Analyze_Input_Item): Handle the overloading
15772         of states by functions. Use Entity_Of to obtain the entity of an item.
15773         (Analyze_Input_Output): Handle the overloading of states by functions.
15774         (Analyze_Refinement_Clause): Handle the overloading
15775         of states by functions.  Use Entity_Of to obtain the entity of an item.
15776         (Appears_In): Use Entity_Of to obtain the entity of an element.
15777         (Check_Usage): Use Entity_Of to obtain the entity of
15778         an item. Add a guard to prevent a crash due to a previous error.
15779         (Resolve_State): New routine.
15781 2014-01-20  Yannick Moy  <moy@adacore.com>
15783         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
15784         opt.ads: Minor comments updates.
15786 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15788         * einfo.adb (Non_Limited_View): Applies to abstract states.
15789         (Set_From_Limited_With): Applies to abstract states.
15790         (Set_Non_Limited_View): Applies to abstract states.
15791         (Write_Field17): Output the non-limited view of an abstract state.
15792         * einfo.ads: Update the comment on usage and occurrences in
15793         nodes for attributes From_Limited_With and Non_Limited_View.
15794         * sem_aux.adb (Available_View): This routine can now handle
15795         abstract states.
15796         * sem_aux.ads (Available_View): This routine can now handle
15797         abstract states. Update the comment on usage.
15798         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
15799         of states and variables.
15800         (In_Pragmas_Depends_Or_Global): New routine.
15801         * sem_ch10.adb (Build_Limited_Views): Implement
15802         abstract (limited) views of variables and states.
15803         (Build_Shadow_Entity): This routine is now a procedure. Add
15804         formal parameter Shadow. Update the comment on usage. Add
15805         context-specific decoration for states and variables.
15806         (Decorate_State): New routine.  (Decorate_Variable): New routine.
15807         (Find_And_Process_States): New routine.
15808         (Process_Declarations): Renamed to Process_Declarations_And_States.
15809         (Process_Declarations_And_States): Add formal parameters
15810         Pack and Create_Abstract_Views. Update the comment on usage.
15811         (Process_States): New routine.
15812         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
15813         views of states and variables. Match the abstract view of a state
15814         against its corresponding non-abstract view.
15815         (Is_Matching_Input):
15816         Handle abstract views of states and variables. Match the abstract
15817         view of a state against its corresponding non-abstract view.
15818         (Process_Global_Item): Handle abstract views of states and
15819         variables.
15821 2014-01-20  Bob Duff  <duff@adacore.com>
15823         * sem_ch10.adb (Expand_With_Clause): Don't
15824         recurse on the prefix if the current with-ed name refers to a
15825         package that renames its own parent, eg "package P.Q renames P;".
15827 2014-01-20  Yannick Moy  <moy@adacore.com>
15829         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
15830         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
15831         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
15832         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
15833         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
15834         Expander_Active.
15836 2014-01-20  Yannick Moy  <moy@adacore.com>
15838         * sinfo.ads Update documentation of GNATprove mode.
15840 2014-01-20  Yannick Moy  <moy@adacore.com>
15842         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
15843         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
15844         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
15845         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
15846         GNATprove_Mode.
15847         * sem_ch13.adb: Remove blank.
15848         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
15849         subprograms by alias for renamings, not for inherited primitive
15850         operations.
15851         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
15852         in GNATprove mode.
15853         (Remove_Side_Effects): Apply the removal in
15854         GNATprove mode, for the full analysis of expressions.
15855         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
15856         mode.
15857         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
15858         save/restore actions for Expander_Active flag in GNATprove mode,
15859         similar to what is done in ASIS mode.
15860         * frontend.adb (Frontend): Generic bodies are instantiated in
15861         GNATprove mode.
15862         * gnat1drv.adb (Adjust_Global_Switches): Set operating
15863         mode to Check_Semantics in GNATprove mode, although a light
15864         expansion is still performed.
15865         (Gnat1drv): Set Back_End_Mode to
15866         Declarations_Only in GNATprove mode, and later on special case
15867         the GNATprove mode to continue analysis anyway.
15868         * lib-writ.adb (Write_ALI): Always generate ALI files in
15869         GNATprove mode.
15870         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
15871         Expander_Active.
15872         (SPARK_Mode): Renamed as GNATprove_Mode.
15873         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
15874         tree in GNATprove_Mode.
15875         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
15876         body in GNATprove mode.
15877         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
15878         mode.
15879         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
15880         Make sure side effects are removed in GNATprove mode.
15882 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15884         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
15885         for aliased objects with an unconstrained nominal subtype.
15886         * gcc-interface/trans.c (Call_to_gnu): Likewise.
15887         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
15888         <case N_Op_Minus>: Remove useless code.
15889         (Exception_Handler_to_gnu_zcx): Minor tweaks.
15891 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15893         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
15894         Tidy up.  For a subtype with discriminants and variant part, if a
15895         variant is statically selected and the fields all have a constant
15896         position, put them in order of increasing position.  Likewise if
15897         no variant part but representation clause is present.
15898         * gcc-interface/utils.c (make_packable_type): Robustify.
15899         (maybe_pad_type): Use local variable and tidy up condition.  If no
15900         alignment is specified, use the original one.
15901         (create_type_stub_decl): Minor tweak.
15902         (convert) <case VECTOR_CST>: Fix typo.
15903         <case CONSTRUCTOR>: Deal with padding types around the same type.
15904         Do not punt on missing fields.
15905         (unchecked_convert): Call finish_record_type to lay out the special
15906         record types made for conversions from/to problematic integer types.
15907         Bump the alignment of CONSTRUCTORs before converting them to a more
15908         aligned type.
15910 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15912         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
15913         obsolete code for type_annotate_only mode, simplify code and slightly
15914         improve wording of comments.
15916 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
15918         PR ada/59772
15919         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
15920         as intermediate type.
15921         (UI_To_gnu): Likewise.
15923 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15925         * gnatvsn.ads (Current_Year): Bump to 2014.
15927 2014-01-02  Tobias Burnus  <burnus@net-b.de>
15929         * gnat_ugn.texi: Bump @copying's copyright year.
15931 Copyright (C) 2014 Free Software Foundation, Inc.
15933 Copying and distribution of this file, with or without modification,
15934 are permitted in any medium without royalty provided the copyright
15935 notice and this notice are preserved.