2014-11-20 Thomas Quinot <quinot@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blobc01298c750edf98d5c417eb343aa11959731a5fb
1 2014-11-20  Thomas Quinot  <quinot@adacore.com>
3         * freeze.adb, sem_ch13.adb: Minor editing.
5 2014-11-20  Vincent Celier  <celier@adacore.com>
7         * gnatcmd.adb: Remove any special processing for the ASIS tools
8         (gnatpp, gnatmetric, gnatcheck, gnatelim and gnatstup) and simply
9         invoke the tool with the provided switches and arguments.
11 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
13         * sem_ch6.adb (Analyze_Expression_Function): Reject declaration
14         of expression function with identical profile as previous
15         expression function.
17 2014-11-20  Thomas Quinot  <quinot@adacore.com>
19         * sem_ch13.adb: Complete previous change.
20         * exp_dist.adb, exp_dist.ads: Rework PolyORB/DSA arguments processing
21         circuitry to correctly handle the case of non-private limited
22         unconstrained formals.
24 2014-11-20  Robert Dewar  <dewar@adacore.com>
26         * freeze.adb, exp_dbug.adb, sem_ch13.adb: Minor reformatting.
28 2014-11-20  Thomas Quinot  <quinot@adacore.com>
30         * einfo.ads: Fix minor typo in comment.
32 2014-11-20  Robert Dewar  <dewar@adacore.com>
34         * inline.adb, sem_util.adb: Minor reformatting.
36 2014-11-20  Pierre-Marie Derodat  <derodat@adacore.com>
38         * uintp.h (UI_Eq): Declare.
39         * urealp.h (Norm_Den): Declare.
40         (Norm_Num): Declare.
41         * exp_dbug.adb (Is_Handled_Scale_Factor): New.
42         (Get_Encoded_Name): Do not output ___XF GNAT encodings
43         for fixed-point types when these can be handled by GCC's DWARF
44         back-end.
46 2014-11-20  Thomas Quinot  <quinot@adacore.com>
48         * sem_ch13.db (Inherit_Aspects_At_Freeze_Point): Inherit parent
49         SSO even if set through a pragma Default_Scalar_Storage_Order.
50         * freeze.adb (Set_SSO_From_Default): For a type extension,
51         do not let the default SSO override the parent SSO.
52         * gnat_rm.texi: document the above
54 2014-11-20  Robert Dewar  <dewar@adacore.com>
56         * a-stream.ads, a-reatim.ads, a-calend.ads, sinfo.ads, s-crtl.ads,
57         interfac.ads, s-taskin.ads: Minor reformatting.
59 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
61         * sem_prag.adb (Analyze_Pragma): Extensions_Visible can now
62         apply to an expression function.
63         * sem_util.adb (Extensions_Visible_Status): Add special processing
64         for expression functions.
66 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
68         * inline.adb (Build_Body_To_Inline): Remove meaningless aspects
69         and pragmas.
70         (Generate_Subprogram_Body): Remove meaningless aspects and pragmas.
71         (Remove_Aspects_And_Pragmas): New routine.
72         (Remove_Pragmas): Removed.
73         * namet.ads, namet.adb (Nam_In): New versions of the routine.
75 2014-11-20  Thomas Quinot  <quinot@adacore.com>
77         * sem_util.adb: Minor reformatting.
79 2014-11-20  Robert Dewar  <dewar@adacore.com>
81         * sem_prag.adb (Analyze_Pragma, case Linker_Section): Detect
82         duplicate Linker_Section.
84 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
86         * exp_ch4.adb: Add guard for build-in-place boolean op.
88 2014-11-20  Yannick Moy  <moy@adacore.com>
90         * checks.adb (Apply_Scalar_Range_Check): In GNATprove mode,
91         put a range check when an empty range is used, instead of an
92         error message.
93         * sinfo.ads Update comment on GNATprove mode.
95 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
97         * a-stream.ads, s-osinte-linux.ads, a-reatim.ads, a-calend.ads,
98         s-crtl.ads, interfac.ads, s-taskin.ads: Replace uses of 2 ** 63 and
99         2 ** 64 by references to Long_Long_Integer instead, to allow these
100         units to be analyzed by codepeer or spark when using a target
101         configuration file with long_long_size set to 32.
103 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
105         * sem_util.adb (Extensions_Visible_Status): Modify the logic to account
106         for non-SPARK code.
107         (Object_Access_Level): In ASIS mode, recognize
108         a selected component with an implicit dereference so that it
109         yields the same value with and without expansion.
111 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
113         * sem_prag.adb (Analyze_Pragma, case Implemented): In ASIS
114         (compile-only) mode, use original type declaration to determine
115         whether protected type implements an interface.
117 2014-11-20  Yannick Moy  <moy@adacore.com>
119         * a-cfdlli.adb, a-cfdlli.ads, a-cfinve.adb, a-cfinve.ads,
120         * a-cofove.adb, a-cofove.ads: Mark spec as SPARK_Mode, and private
121         part/body as SPARK_Mode Off.
122         * a-cfhama.adb, a-cfhama.ads, a-cfhase.adb, a-cfhase.ads,
123         * a-cforma.adb, a-cforma.ads, a-cforse.adb, a-cforse.ads: Use
124         aspect instead of pragma for uniformity.
126 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
128         * sem_util.adb (Is_EVF_Expression): Include
129         attributes 'Loop_Entry, 'Old and 'Update to the logic.
131 2014-11-20  Bob Duff  <duff@adacore.com>
133         * sem_res.adb (Make_Call_Into_Operator): Don't
134         call Left_Opnd in the case of unary operators, because they only
135         have Right.
137 2014-11-20  Pascal Obry  <obry@adacore.com>
139         * initialize.c (ProcListCS): New extern variable (critical section).
140         (ProcListEvt): New extern variable (handle).
141         (__gnat_initialize)[Win32]: Initialize the ProcListCS critical
142         section object and the ProcListEvt event.
143         * final.c (__gnat_finalize)[Win32]: Properly finalize the
144         ProcListCS critical section and the ProcListEvt event.
145         * adaint.c (ProcListEvt): New Win32 event handle.
146         (EnterCS): New routine to enter the critical section when dealing with
147         child processes chain list.
148         (LeaveCS): As above to exit from the critical section.
149         (SignalListChanged): Routine to signal that the chain process list has
150         been updated.
151         (add_handle): Use EnterCS/LeaveCS, also call SignalListChanged when the
152         handle has been added.
153         (__gnat_win32_remove_handle): Use EnterCS/LeaveCS,
154         also call SignalListChanged if the handle has been found and removed.
155         (remove_handle): Routine removed, implementation merged with the above.
156         (win32_wait): Use EnterCS/LeaveCS for the critical section. Properly
157         copy the PID list locally to ensure that even if the list is updated
158         the local copy remains valid. Add into the hl (handle list) the
159         ProcListEvt handle. This handle is used to signal that a change has
160         been made into the process chain list. This is to ensure that a waiting
161         call can be resumed to take into account new processes. We also make
162         sure that if the handle was not found into the list we start over
163         the wait call. Indeed another concurrent call to win32_wait()
164         could already have handled this process.
166 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
168         * sem_res.adb (Resolve_Actuals): The legality rule concerning
169         the use of class-wide actuals for a non-controlling formal are
170         not rechecked in an instance.
172 2014-11-20  Pascal Obry  <obry@adacore.com>
174         * g-dirope.ads: Minor typo fix.
176 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
178         * exp_attr.adb (Expand_N_Attribute_Reference,
179         Expand_Update_Attribute): Preserve the tag of a prefix by offering
180         a specific view of the class-wide version of the prefix.
182 2014-11-20  Javier Miranda  <miranda@adacore.com>
184         * sem_ch6.adb (Analyze_Function_Return): For functions returning
185         an access to an interface add an implicit conversion to the target
186         type to force the displacement of the pointer to the object to
187         reference the secondary dispatch table.
188         (Check_Anonymous_Return): Skip internally built functions which handle
189         the case of null access when locating the master of a task.
190         * sem_res.adb (Valid_Conversion): Return true for internally
191         generated conversions of access to interface types added to force
192         the displacement of the pointer to reference the corresponding
193         dispatch table.
195 2014-11-20  Pascal Obry  <obry@adacore.com>
197         * adaint.c (add_handle): realloc with a size of +100.
199 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
201         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
202         back the resolved operands to the original call node, taking
203         into account that the original call may have named associations.
205 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
207         * inline.adb (Has_Some_Contract): Change the
208         guard to test the Ekind of the entity rather than the Analyzed
209         flag. This handles partially analyzed contexts.
211 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
213         * sem_ch8.adb (Analyze_Object_Renaming): In Ada 83 mode, do
214         not reject the renaming of a function result if the renaming
215         does not come for source.
217 2014-11-20  Robert Dewar  <dewar@adacore.com>
219         * exp_util.ads: Minor addition of ??? clause.
221 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
223         * sem_util.adb (Is_Variable): For an Ada 2012 implicit
224         dereference introduced for an indexing opertion, check that the
225         type of the corresponding access discriminant is not an access
226         to constant.
228 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
230         * sem_ch6.adb (Find_Corresponding_Spec): Inherit
231         the ghostness of the matching spec, the same way convention
232         is inherited.
234 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
236         * sem_ch3.adb (Analyze_Object_Declaration): Swap a couple of
237         tests in a condition so Following_Address_Clause is invoked
238         only if need be.
239         * exp_util.ads (Following_Address_Clause): Add small note.
241 2014-11-20  Pascal Obry  <obry@adacore.com>
243         * adaint.c (remove_handle): New local routine without a lock.
244         (win32_wait): fix the critical section to properly protect needed
245         code, use new remove_handle.
246         (__gnat_win32_remove_handle): refactor code with remove_handle.
248 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
250         * inline.adb (Analyze_Inlined_Bodies): Iterate between loading
251         of the inlined bodies and instantiation of the generic bodies
252         until no more bodies need to be loaded.
254 2014-11-20  Vincent Celier  <celier@adacore.com>
256         * prj.adb, prj.ads, prj-conf.adb: Minor change of procedure name:
257         Update_Ignore_Missing_With becomes Set_Ignore_Missing_With.
259 2014-11-20  Robert Dewar  <dewar@adacore.com>
261         * exp_ch7.adb, sem_ch5.adb, sem_ch7.adb, sem_util.adb,
262         sem_ch6.adb: Minor reformatting.
264 2014-11-20  Javier Miranda  <miranda@adacore.com>
266         * exp_ch4.adb (Expand_N_Type_Conversion): Add missing implicit
267         conversion to force the displacement of the pointer to the object
268         to reference the secondary dispatch table.
270 2014-11-11  Simon Wright  <simon@pushface.org>
272         PR ada/42978
273         * mlib-utl.adb (ar): Output the options passed to ranlib.
275 2014-11-07  Arnaud Charlet  <charlet@adacore.com>
277         * debug.adb, snames.adb-tmpl (Is_Keyword_Name): Consider 'overriding'
278         a keyword in Ada 95 mode when -gnatd.D is used.
279         * gnat_ugn.texi: Document -gnatd.D.
281 2014-11-07  Vasiliy Fofanov  <fofanov@adacore.com>
283         * gnatls.adb: Lower severity of the program's return value in
284         some common cases.
286 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
288         * sem_ch10.adb (Decorate_Type): The limited view of a tagged
289         type has an empty list of primitive operations.
291 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
293         * sem_ch3.adb (Analyze_Object_Declaration): Update references to SPARK
294         RM.
295         (Process_Full_View): Update references to SPARK RM.
296         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Update references
297         to SPARK RM.
298         (Analyze_Subprogram_Body_Helper): Update references
299         to SPARK RM.
300         * sem_ch7.adb (Analyze_Package_Body_Helper): Update references
301         to SPARK RM.
302         * sem_prag.adb (Check_Ghost_Constituent): Update references to
303         SPARK RM.
304         * sem_res.adb (Check_Ghost_Policy): Update references to SPARK RM.
305         (Resolve_Actuals): Ensure that the actual parameter of a Ghost
306         subprogram whose formal is of mode IN OUT or OUT is Ghost.
307         * sem_util.adb (Check_Ghost_Completion): Update references to
308         SPARK RM.
310 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
312         * exp_ch7.adb (Make_Final_Call): If type of designated object is
313         derived from that of the formal of the Deep_Finalize procedure,
314         add an unchecked conversion to prevent spurious type error.
316 2014-11-07  Robert Dewar  <dewar@adacore.com>
318         * table.adb, inline.adb, einfo.adb, gnat1drv.adb, exp_ch13.adb,
319         exp_fixd.adb, prj-conf.adb, exp_strm.adb, a-cofove.adb, exp_ch3.ads:
320         Minor reformatting.
322 2014-11-07  Robert Dewar  <dewar@adacore.com>
324         * sem_ch12.adb, sem_ch13.adb, prj-tree.adb: Minor reformatting.
326 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
328         * einfo.adb (Set_Is_Checked_Ghost_Entity,
329         Set_Is_Ignored_Ghost_Entity): Add exceptions to the assertion
330         check.
331         * sem_ch6.adb (Check_Conformance): Consider only
332         source subprograms when checking for Ghost conformance.
333         * sem_prag.adb (Analyze_Pragma): Handle the case
334         where pragma Ghost applies to a stand alone subprogram body that
335         acts as a compilation unit.
336         * sem_res.adb: Minor reformatting (merge if statements).
338 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
340         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
341         Check whether underlying type is constrained before generating
342         the object declaration for the result object of the function.
344 2014-11-07  Robert Dewar  <dewar@adacore.com>
346         * freeze.adb: Code clean up.
348 2014-11-07  Yannick Moy  <moy@adacore.com>
350         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cfinve.ads,
351         * a-cforma.ads, a-cforse.ads, a-cofove.ads: Mark First_To_Previous,
352         Current_To_Last and Strict_Equal as Ghost.
354 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
356         * sem_ch3.adb: Code clean up.
358 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
360         * freeze.adb (Freeze_Entity): Issue an error regardless of the
361         SPARK_Mode when a ghost type is effectively volatile.
362         * sem_ch3.adb (Analyze_Object_Contract): Decouple the checks
363         related to Ghost from SPARK_Mode.
364         * sem_res.adb (Check_Ghost_Policy): Issue an error regardless
365         of the SPARK_Mode when the Ghost policies do not match.
366         * sem_util.adb (Check_Ghost_Completion): Issue an error regardless
367         of the SPARK_Mode when the Ghost policies do not match.
369 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
371         * sem_ch5.adb (Analyze_Iterator_Specification): return if name
372         in iterator does not have any usable aspect for iteration.
374 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
376         * sem_ch6.adb (Analyze_Null_Procedure): Reject a null procedure
377         that there is a previous null procedure in scope with a matching
378         profile.
380 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
382         * atree.adb (Copy_Separate_Tree): Copy the aspect specifications.
383         * inline.adb (Has_Some_Contract): Do the check only when the
384         related entity has been analyzed.
386 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
388         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Integer):
389         If the restriction No_Floating_Point is in effect, and the
390         operands have the same type, introduce a temporary to hold
391         the fixed point result, to prevent the use of floating-point
392         operations at run-time.
394 2014-11-07  Robert Dewar  <dewar@adacore.com>
396         * freeze.adb (Check_Address_Clause): Minor reformatting
397         (Find_Constant): Minor reformatting.
398         (Freeze_Array_Type): Modify check for packed declarations.
399         (Freeze_Entity): Minor reformatting.
401 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
403         * gnatvsn.ads (Library_Version): Bump to 5.0.
405 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
407         * gcc-interface/trans.c (Subprogram_Body_to_gnu): For a function with
408         copy-in/copy-out parameters and which returns by invisible reference,
409         do not create the variable for the return value; instead, manually
410         generate the indirect copy out statements on exit.
411         (gnat_to_gnu) <N_Simple_Return_Statement>: Adjust accordingly and build
412         a simple indirect assignment for the return value.
414 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
416         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: For a
417         derived untagged type that renames discriminants, be prepared for
418         a type derived from a private discriminated type when changing the
419         type of the stored discriminants.
421 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
423         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): Set
424         the SLOC of the node on the call to set_jmpbuf_address_soft emitted
425         on block entry with SJLJ.
427 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
429         * gcc-interface/utils.c (create_subprog_decl): Move code dealing with
430         conflicting inlining status of nested subprograms to...
431         * gcc-interface/trans.c (check_inlining_for_nested_subprog): ...here.
432         (Attribute_to_gnu) <Attr_Access>: Call it.
433         (Call_to_gnu): Likewise.
434         (Subprogram_Body_to_gnu): Drop the body if it is an inlined external
435         function that has been marked uninlinable.
437 2014-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
439         * aspects.adb Add an entry for aspect Ghost in table
440         Canonical_Aspect.
441         * aspects.ads Add an entry for aspect Ghost in tables
442         Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names and
443         Implementation_Defined_Aspect.
444         * einfo.adb: Flags 277 and 278 are now in use.
445         (Is_Checked_Ghost_Entity): New routine.
446         (Is_Ghost_Entity): Removed.
447         (Is_Ghost_Subprogram): Removed.
448         (Is_Ignored_Ghost_Entity): New routine.
449         (Set_Is_Checked_Ghost_Entity): New routine.
450         (Set_Is_Ignored_Ghost_Entity): New routine.
451         (Write_Entity_Flags): Output flags Is_Checked_Ghost_Entity and
452         Is_Ignored_Ghost_Entity.
453         * einfo.ads: Add new flags Is_Checked_Ghost_Entity
454         and Is_Ignored_Ghost_Entity along with usage in nodes.
455         (Is_Checked_Ghost_Entity): New routine and pragma Inline.
456         (Is_Ghost_Entity): Removed along with synthesized flag
457         description and usage in nodes.
458         (Is_Ghost_Subprogram): Removed along with synthesized flag description
459         and usage in nodes.
460         (Is_Ignored_Ghost_Entity): New routine and pragma Inline.
461         (Set_Is_Checked_Ghost_Entity): New routine and pragma Inline.
462         (Set_Is_Ignored_Ghost_Entity): New routine and pragma Inline.
463         * freeze.adb (Freeze_Entity): A Ghost type cannot be effectively
464         volatile.
465         * par-prag.adb Pragma Ghost does not need special handling by
466         the parser.
467         * repinfo.adb (List_Mechanisms): Remove the entry for convention Ghost.
468         * sem_attr.adb (Analyze_Access_Attribute): Remove obsolete check.
469         * sem_ch3.adb (Analyze_Full_Type_Declaration): Mark
470         the type as Ghost when its enclosing context is Ghost.
471         (Analyze_Incomplete_Type_Decl): Mark the type as Ghost when
472         its enclosing context is Ghost.
473         (Analyze_Number_Declaration): Mark the number as Ghost when its
474         enclosing context is Ghost.
475         (Analyze_Object_Declaration): Mark the object as Ghost when its
476         enclosing context is Ghost. Verify the Ghost policy between
477         initial declaration and completion of a deferred constant.
478         (Analyze_Object_Contract): A Ghost variable cannot be effectively
479         volatile, imported or exported.
480         (Build_Derived_Record_Type): Mark a type extension as Ghost when it
481         implements a Ghost interface.
482         (Build_Record_Type): Inherit volatility and "ghostness" from
483         the parent type.
484         (Check_Completion): A Ghost entity declared
485         in a non-Ghost package does not require completion in a body.
486         (Implements_Ghost_Interface): New routine.
487         (Process_Full_View): Inherit "ghostness" from the partial view. Verify
488         the Ghost policy between the partial and full views. Verify the
489         completion of a Ghost type extension.
490         * sem_ch4.adb (Check_Ghost_Subprogram_Call): Removed.
491         * sem_ch5.adb (Analyze_Assignment): Analyze the left hand side first.
492         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Mark
493         the subprogram as Ghost when its enclosing context is Ghost.
494         (Analyze_Generic_Subprogram_Body): Mark the generic body as Ghost
495         when its enclosing context is Ghost. Verify the Ghost policy
496         between the spec and body.
497         (Analyze_Subprogram_Body_Helper): Mark the body as Ghost when its
498         enclosing context is Ghost. Verify the Ghost policy between the spec
499         and body.
500         (Check_Conformance): A Ghost subprogram profile and a non-Ghost
501         subprogram profile are not subtype conformant.
502         (Convention_Of): Removed.
503         * sem_ch7.adb (Analyze_Package_Body_Helper): Inherit the
504         "ghostness" from the spec. Verify the Ghost policy between
505         the spec and body.
506         (Analyze_Private_Type_Declaration): Mark the type as Ghost when its
507         enclosing context is Ghost.
508         (Requires_Completion_In_Body): New routine.
509         (Unit_Requires_Body): Use Requires_Completion_In_Body.
510         (Unit_Requires_Body_Info): Rename formal parameter P to Pack_Id, update
511         comment on usage and all uses of P in the body. Use
512         Requires_Completion_In_Body.
513         * sem_ch7.ads (Unit_Requires_Body): Rename formal parameter P
514         to Pack_Id, update comment on usage and all uses of P in the body.
515         * sem_ch8.adb (Analyze_Exception_Renaming): Inherit the "ghostness"
516         from the renamed excention.
517         (Analyze_Generic_Renaming): Inherit the "ghostness" from the
518         renamed generic subprogram.
519         (Analyze_Object_Renaming): Inherit the "ghostness" from the renamed
520         object.
521         (Analyze_Package_Renaming): Inherit the "ghostness" from the
522         renamed package.
523         (Analyze_Subprogram_Renaming): Inherit the "ghostness" from the
524         renamed subprogram.
525         * sem_ch11.adb (Analyze_Exception_Declaration): Mark an exception
526         as Ghost when its enclosing context is Ghost.
527         * sem_ch12.adb (Analyze_Generic_Package_Declaration,
528         Analyze_Generic_Subprogram_Declaration): Mark an exception as
529         Ghost when its enclosing context is Ghost.
530         (Preanalyze_Actuals): Remove obsolete check.
531         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
532         for aspect Ghost.
533         (Check_Aspect_At_Freeze_Point): Aspects
534         Depends and Global do no need special checking at freeze point.
535         (Insert_After_SPARK_Mode): Update comment on usage.
536         * sem_mech.adb (Set_Mechanisms): Remove the entry for convention Ghost.
537         * sem_prag.adb Add an entry for pragma Ghost in table Sig_Flags.
538         (Analyze_Abstract_State): Update the grammar of the pragma. Add
539         formal parameter Pack_Id along with comment on usage. Mark an
540         abstract state as Ghost when its enclosing context is Ghost. Add
541         processing for option Ghost.
542         (Analyze_Constituent): Verify
543         that a Ghost abstract state is refined by Ghost constituents.
544         (Analyze_Pragma): "Ghost" is now a valid policy. Add checks
545         related to the use and placement of Check_Policy Ghost. Add
546         processing for pragma Ghost.
547         (Check_Ghost_Constituent): New routine.
548         (Is_Valid_Assertion_Kind): "Ghost" is now a valid assertion.
549         (Process_Convention): Remove obsolete check.
550         (Set_Convention_From_Pragma): Remove the processing for convention
551         Ghost.
552         * sem_res.adb (Check_Ghost_Context): New routine.
553         (Resolve_Call): Verify that a reference to a Ghost entity appears in a
554         suitable context. Verify the Ghost polity between point of declaration
555         and point of use.
556         (Resolve_Entity_Name): Verify that a reference to
557         a Ghost entity appears in a suitable context. Verify the Ghost
558         polity between point of declaration and point of use.
559         * sem_util.adb (Check_Ghost_Completion): New routine.
560         (Check_Ghost_Derivation): New routine.
561         (Incomplete_Or_Partial_View): New routine.
562         (Incomplete_Or_Private_View): Removed.
563         (Is_Ghost_Entity): New routine.
564         (Is_Ghost_Statement_Or_Pragma): New routine.
565         (Is_Subject_To_Ghost): New routine.
566         (Policy_In_Effect): New routine.
567         (Set_Is_Ghost_Entity): New routine.
568         (Within_Ghost_Scope): New routine.
569         * sem_util.ads (Check_Ghost_Completion): New routine.
570         (Check_Ghost_Derivation): New routine.
571         (Incomplete_Or_Partial_View): New routine.
572         (Incomplete_Or_Private_View): Removed.
573         (Is_Ghost_Entity): New routine.
574         (Is_Ghost_Statement_Or_Pragma): New routine.
575         (Is_Subject_To_Ghost): New routine.
576         (Policy_In_Effect): New routine.
577         (Set_Is_Ghost_Entity): New routine.
578         (Within_Ghost_Scope): New routine.
579         * snames.adb-tmpl (Get_Convention_Id): Remove the entry for
580         convention Ghost.
581         (Get_Convention_Name): Remove the entry for convention Ghost.
582         * snames.ads-tmpl Remove the convention id for Ghost. Add a
583         pragma id for Ghost.
585 2014-10-31  Sergey Rybin  <rybin@adacore.com frybin>
587         * gnat_ugn.texi: Add description of --RTS option for ASIS tools.
589 2014-10-31  Olivier Hainque  <hainque@adacore.com>
591         * gcc-interface/Makefile.in (arm-vxworks): Update target pairs.
593 2014-10-31  Vincent Celier  <celier@adacore.com>
595         * prj-part.adb (Parse_Single_Project): Call Set_Display_Name_Of.
596         * prj-proc.adb (Recursive_Process): Call Display_Name_Of to
597         get the project Display_Name.
598         * prj-tree.adb (Display_Name_Of): New function
599         (Set_Display_Name_Of): New procedure.
600         (Create_Project): Call Set_Display_Name_Of.
601         * prj-tree.ads (Display_Name_Of): New function.
602         (Set_Display_Name_Of): New procedure.
603         (Project_Node_Record): New component Display_Name.
604         (Project_Name_And_Node): Remove component Display_Name.
605         * prj-conf.adb (Parse_Project_And_Apply_Config): Use the full
606         Config_File_Path as the Config_File_Name, not just its simple
607         name.
609 2014-10-31  Thomas Quinot  <quinot@adacore.com>
611         * get_scos.adb: Minor reformatting.
613 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
615         * exp_ch5.adb (Expand_Formal_Container_Loop): Create block to
616         capture declaration for cursor to prevent spurious errors when
617         several formal iterators that use the same cursoe name appear
618         in the same context.
620 2014-10-31  Vincent Celier  <celier@adacore.com>
622         * prj-proc.adb (Recursive_Process): Make sure that the project
623         display name is never No_Name.
625 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
627         * sem_attr.adb (Analyze_Access_Attribute): Do not emit error
628         message if reference does not come from source, as in the case
629         for the controlling argument of a dispatching call. Error is
630         diagnosed when call is resolved.
631         * sem_ch4.adb (Complete_Object_Operation); Fix incorrect RM
632         reference in error message.
633         * sem_res.adb (Check_Prefixed_Call): ditto.
635 2014-10-31  Yannick Moy  <moy@adacore.com>
637         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Do not
638         suppress checks when pragma Restrictions (No_Exception) is used in
639         CodePeer or GNATprove mode.
641 2014-10-31  Yannick Moy  <moy@adacore.com>
643         * gnat1drv.adb (Adjust_Global_Switches): Explicitly mark language
644         checks as not suppressed in GNATprove mode.
646 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
648         * sem_elab.adb (Check_Elab_Call): Nothing to check if call is
649         being pre-analyzed.
650         * sem_ch3.adb (Complete_Private_Subtype): If all rep items of full
651         view are those of the base, use rep_item chain of partial view,
652         which may include aspects.
653         * sem_cat.adb (Is_non_Remote_Access_Type): Use underlying type
654         of base type, to handle properly declared subtypes.
656 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
658         * sem_ch12.adb (Analyze_Generic_Package_Declaration): If there
659         is a default storage pool, add a corresponding aspect to the
660         generic unit, to be used at the point of instantiation.
661         (Analyze_Package_Instantiation): If generic unit has aspect
662         specifications, propagate them to instance. If instance has a
663         Default_Storage_Pool aspect, make sure that it overrides the
664         one that may be inherited from the generic.
666 2014-10-31  Vincent Celier  <celier@adacore.com>
668         * prj-attr.adb: Minor removal of attributes of package Linker
669         that have never been used and never been documented.
670         * projects.texi: Add documentation for attribute Runtime.
671         * prj-nmsc.adb (Check_Configuration): Do not report a warning
672         for unknown compilers when the project is externally built.
674 2014-10-31  Vasiliy Fofanov  <fofanov@adacore.com>
676         * prj-conf.adb (Do_Autoconf): Refactor the code so that empty
677         Normalized_Pathname doesn't inhibit the custom Selected_Target
678         value.
679         * prj-conf.adb (Parse_Project_And_Apply_Config): Make sure that
680         Automatically_Generated is correctly set after the first call
681         to Process_Project_And_Apply_Config and not modified after the
682         second call, if any.
684 2014-10-31  Yannick Moy  <moy@adacore.com>
686         * Makefile.rtl, gnat_rm.texi, impunit.adb: Add mention of new library
687         files.
688         * a-cfinve.adb, a-cfinve.ads: New unit for formal indefinite
689         vectors, suitable for use in client SPARK code, also more
690         efficient than the standard vectors.
691         * a-coboho.adb, a-coboho.ads New unit for bounded holders, that
692         are used to define formal indefinite vectors in terms of formal
693         definite ones.
694         * a-cofove.adb, a-cofove.ads: Simplification of the API of formal
695         definite vectors, similar to the API of the new indefinite ones. A
696         new formal parameter of the generic unit called Bounded allows
697         to define growable vectors that use dynamic allocation.
699 2014-10-31  Vincent Celier  <celier@adacore.com>
701         * prj-conf.adb (Look_For_Project_Paths): New procedure
702         (Parse_Project_And_Apply_Config): Initially, parse the project
703         files ignoring missing withs. If there are missing withs, extend
704         the project path with directories rooted at the compiler roots,
705         including directories rooted at the runtime roots, if there are
706         non default runtimes, in the PATH orser.
707         * prj-env.adb (Initialize_Default_Project_Path): Do not add
708         any directory from the prefix if the target is "-".
709         * prj-part.adb (Parse): Initialize the tables, as Parse may be
710         call several times by gprbuild.
711         * prj.adb (Update_Ignore_Missing_With): New procedure.
713 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
715         * sem_aux.adb (First_Stored_Discriminant,
716         Has_Completely_Hidden_Discriminant): When scanning the list of
717         discriminants to locate possibly hidden (inherited) discriminants,
718         ignore itypes that may appear in the entity list, when an access
719         discriminants is constrained by an access attribute reference.
721 2014-10-31  Javier Miranda  <miranda@adacore.com>
723         * freeze.adb (Freeze_Record_Type): Add missing
724         check to verify that all the primitives of an interface type
725         are abstract or null procedures.
727 2014-10-31  Vincent Celier  <celier@adacore.com>
729         * s-os_lib.adb, s-os_lib.ads: New function Non_Blocking_Spawn that
730         redirects standard output and standard error to two different files.
732 2014-10-31  Bob Duff  <duff@adacore.com>
734         * makeutl.ads: Minor comment fix.
736 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
738         * system-linux-x86_64.ads, system-mingw-x86_64.ads (Word_Size,
739         Memory_Size): Use Standard'Word_Size so that the value can be changed
740         via a target configuration file.
742 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
744         * exp_ch4.adb: Minor tweak.
746 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
748         * sem_ch12.adb (Analyze_Package_Instantiation): Do not inline with
749         back-end inlining.
750         (Must_Inline_Subp): Delete.
751         * sem_util.ads, sem_util.adb (Must_Inline): Likewise.
753 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
755         * freeze.adb (Freeze_Entity): A default_pool does not apply to
756         internal access types generated for 'access references.
757         * sem_prag (Analyze_Pragma, case Default_Pool): If the name is
758         not null it must designate a variable.
760 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
762         * inline.adb: Minor reformatting.
764 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
766         * sem_ch3.adb (Build_Derived_Private_Type): If the derived
767         type has access discriminants, create itype references for their
768         anonymous types, so that they are elaborated before the generated
769         bodies for the primitive operations of the type.
771 2014-10-31  Tristan Gingold  <gingold@adacore.com>
773         * prj-conf.adb (Locate_Runtime): Remove procedure.
775 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
777         * inline.adb (Has_Excluded_Declaration): With back-end inlining,
778         only return true for nested packages.
779         (Cannot_Inline): Issue errors/warnings whatever the optimization level
780         for back-end inlining and remove assertion.
782 2014-10-31  Sergey Rybin  <rybin@adacore.com frybin>
784         * table.adb (Tree_Read, Tree_Write): Use parentheses to specify
785         the desired order of '*' and '/' operations to avoid overflow.
787 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
789         * exp_ch6.adb (Do_Inline): Remove unreachable code.
790         (Do_Inline_Always): Likewise.
792 2014-10-31  Vincent Celier  <celier@adacore.com>
794         * prj-nmsc.adb (Check_Stand_Alone_Library): Change error message
795         when library has no Ada interfaces and Library_Standalone is
796         declared.
798 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
800         * sem_ch13.adb (Check_Constant_Address_Clause): Disable checks
801         on address clauses in CodePeer mode.
803 2014-10-31  Javier Miranda  <miranda@adacore.com>
805         * inline.adb (Expand_Inlined_Call): Do not skip
806         inlining of calls to subprogram renamings.
808 2014-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
810         * sem_res.adb (Resolve_Entity_Name): Account for
811         the case where the immediate parent of a reference to an entity
812         is a parameter association.
814 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
816         * inline.adb (Check_And_Split_Unconstrained_Function): Do not
817         test for the presence of nested subprograms.
819 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
821         * aspects.ads, aspects.adb: Add aspect Default_Storage_Pool.
822         * sem_ch13.adb (Analyze_One_Aspect): Generate pragma for aspect
823         Default_Storage_Pool.
825 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
827         * sem_ch6.adb: Remove obsolete comment.
829 2014-10-31  Olivier Hainque  <hainque@adacore.com>
831         * g-allein.ads: bind vec_sld for pixels to 8hi vsldoi instead
832         of 4si, as pixels are short.
834 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
836         * sem_res.adb (Resolve_Call): Do not reject a call to a protected
837         operation in the spec of a protected type, when the call appears
838         in a pre/postcondition for another protected operation.
840 2014-10-31  Tristan Gingold  <gingold@adacore.com>
842         * prj-conf.adb: Locate_Runtime: Always search the runtime in
843         project path.
845 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
847         * inline.adb (Check_Package_Body_For_Inlining): Adjust previous
848         change to use correct idiom for back-end inlining.
850 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
852         * freeze.adb (Freeze_Record_Type): Do not check component size
853         if its type is generic.
855 2014-10-31  Bob Duff  <duff@adacore.com>
857         * gnat_rm.texi: Fix documentation w.r.t -gnatw.w.
859 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
861         * sem_ch4.adb (Try_Container_Indexing): Use Check_Implicit_Dereference.
862         * sem_util.adb (Check_Implicit_Dereference): a) Handle generalized
863         indexing as well as function calls.  b)  If the context is a
864         selected component and whe are in an instance, remove entity from
865         selector name to force resolution of the node, so that explicit
866         dereferences can be generated in the instance if they were in
867         the generic unit.
869 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
871         * inline.adb (Back_End_Cannot_Inline): Delete.
872         (Add_Inlined_Subprogram): Do not call it.
874 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
876         * exp_ch3.ads (Make_Tag_Assignment): New function, used to
877         re-initialize the tag in a tagged object declaration with
878         initial value.
879         * exp_ch3.adb (Expand_N_Object_Declaration): Use
880         Make_Tag_Assignment to simplify code for a tagged object
881         declaration.
882         * exp_ch13.adb (Expand_Freeze_Entity): Analyze freeze actions
883         for the freeze node of an object.
884         * freeze.adb (Check_Address_Clause): Use Make_Tag_Assignment when
885         needed to extend Freeze_Actions for a tagged object declaration.
887 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
889         * gnat_ugn.texi: Further minor improvement to -flto entry.
891 2014-10-31  Gary Dismukes  <dismukes@adacore.com>
893         * g-dynhta.adb, g-dynhta.ads: Minor typo fixes and reformatting.
895 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
897         * exp_ch3.adb (Expand_N_Object_Declaration): Code cleanup.
899 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
901         * sem_ch5.adb (Analyze_Iterator_Specification): If a subtype
902         indication is provided, check properly that it covers the element
903         type of of the container type.
905 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
907         * g-dynhta.ads, g-dynhta.adb: Add the implementation of a load facto
908         -based hash table.
910 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
912         * exp_util.ads, exp_util.adb (Following_Address_Clause): Modify
913         Has_Following_Address_Clause so that it returns the address
914         clause if present, rather than a boolean value.
915         * sem_ch3.adb (Analyze_Object_Declaration): use
916         Following_Address_Clause.
917         * exp_ch3.adb (Expand_N_Object_Declaration): When a tagged object
918         is initialized, insert tag assignment after object is frozen,
919         which may be after an address clause that follows the declaration.
921 2014-10-30  Tristan Gingold  <gingold@adacore.com>
923         * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
924         system-vxworks-arm.ads, system-freebsd-x86_64.ads,
925         system-linux-hppa.ads, system-linux-s390.ads,
926         system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
927         system-vxworks-sparcv9.ads, system-linux-ppc.ads, system-aix64.ads,
928         system-linux-sh4.ads, system-solaris-x86.ads, system-linux-x86_64.ads,
929         system-linux-x86.ads, system-vxworks-ppc.ads, system-hpux.ads,
930         system-linux-armel.ads, system-darwin-ppc.ads, system-solaris-sparc.ads,
931         system-vxworks-m68k.ads, system-hpux-ia64.ads, system.ads,
932         system-solaris-x86_64.ads, system-mingw-x86_64.ads,
933         system-vxworks-mips.ads, system-linux-sparc.ads, system-freebsd-x86.ads,
934         system-aix.ads, system-darwin-x86_64.ads, system-vxworks-x86.ads: Add
935         pragma No_Elaboration_Code_All.
937 2014-10-30  Eric Botcazou  <ebotcazou@adacore.com>
939         * gnat_ugn.texi: Minor improvement to -flto entry.
941 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
943         * sem_util.adb (Inherit_Subprogram_Contract):
944         Add a guard to protect against enumeration literal overriding.
945         * sem_ch3.adb, sem_ch4.adb, sem_res.adb, sem_util.adb:
946         Minor reformatting (add SPARK RM references).
948 2014-10-30  Robert Dewar  <dewar@adacore.com>
950         * exp_dbug.adb, opt.ads: Minor reformatting.
952 2014-10-30  Yannick Moy  <moy@adacore.com>
954         * inline.adb (Has_Single_Return_In_GNATprove_Mode):
955         Return False when return statement is inside one or more blocks.
957 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
959         * exp_ch7.adb (Is_Subprogram_Call): Account for the case where an
960         object declaration initialized by a function call that returns
961         an unconstrained result may be rewritted as a renaming of the
962         secondary stack result.
964 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
966         * aspects.adb: Add an entry for aspect Extensions_Visible in
967         table Canonical_Aspect.
968         * aspects.ads: Add entry for aspect Extensions_Visible in
969         tables Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names,
970         Implementation_Defined_Aspect.
971         * einfo.adb (Get_Pragma): Include pragma Extensions_Visible in
972         the list of contract pragmas.
973         * par-prag.adb Pragma Extensions_Visible does not require special
974         processing from the parser.
975         * sem_ch3.adb (Analyze_Object_Declaration): Prevent an
976         implicit class-wide conversion of a formal parameter
977         of a specific tagged type whose related subprogram is
978         subject to pragma Extensions_Visible with value "False".
979         (Check_Abstract_Overriding): Add various overriding checks
980         related to pragma Extensions_Visible.
981         (Derive_Subprogram):
982         A subprogram subject to pragma Extensions_Visible with value
983         False requires overriding if the subprogram has at least one
984         controlling OUT parameter.
985         (Is_EVF_Procedure): New routine.
986         * sem_ch4.adb (Analyze_Type_Conversion): A formal parameter of
987         a specific tagged type whose related subprogram is subject to
988         pragma Extensions_Visible with value "False" cannot appear in
989         a class-wide conversion.
990         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove
991         the assertion to account for pragma Extensions_Visible.
992         (Check_Overriding_Indicator): An overriding subprogram
993         inherits the contact of the overridden subprogram.
994         (New_Overloaded_Entity): An overriding subprogram inherits the
995         contact of the overridden subprogram.
996         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
997         for aspect Extensions_Visible.
998         (Check_Aspect_At_Freeze_Point): Aspect Extensions_Visible does not
999         require special processing at the freeze point.
1000         * sem_prag.adb Add an entry for pragma Extensions_Visible in
1001         table Sig_Flags.
1002         (Analyze_Pragma): Ensure that various SPARK
1003         pragmas lack identifiers in their arguments. Add processing for
1004         pragma Extensions_Visible.
1005         (Chain_CTC): Code reformatting.
1006         * sem_res.adb (Resolve_Actuals): A formal parameter of a
1007         specific tagged type whose related subprogram is subject to
1008         pragma Extensions_Visible with value "False" cannot act as an
1009         actual in a subprogram with value "True".
1010         * sem_util.adb (Add_Classification): New routine.
1011         (Add_Contract_Item): Account for pragma Extensions_Visible. Code
1012         reformatting.
1013         (Add_Contract_Test_Case): New routine.
1014         (Add_Pre_Post_Condition): New routine.
1015         (Extensions_Visible_Status): New routine.
1016         (Inherit_Subprogram_Contract): New routine.
1017         (Is_EVF_Expression): New routine.
1018         (Is_Specific_Tagged_Type): New routine.
1019         * sem_util.ads Add type Extensions_Visible_Mode and document all values.
1020         (Add_Contract_Item): Add pragma Extensions_Visible to the
1021         comment on usage.
1022         (Inherit_Subprogram_Contract): New routine.
1023         (Is_EVF_Expression): New routine.
1024         (Is_Specific_Tagged_Type): New routine.
1025         * sinfo.adb (Is_Inherited): New routine.
1026         (Set_Is_Inherited): New routine.
1027         * sinfo.ads Add flag Is_Inherited along with its usage in
1028         nodes.
1029         (Is_Inherited): New routine along with pragma Inline.
1030         (Set_Is_Inherited): New routine along with pragma Inline.
1031         * snames.ads-tmpl: Add predefined name "Extensions_Visible"
1032         and a new Pragma_Id for the pragma.
1034 2014-10-30  Vincent Celier  <celier@adacore.com>
1036         * prj-proc.adb (Process_Case_Construction): Do not look for
1037         the ultimate extending project for a case variable.
1039 2014-10-30  Pierre-Marie Derodat  <derodat@adacore.com>
1041         * exp_dbug.adb, opt.ads (GNAT_Encodings): Import from C. Define
1042         enumerators.
1043         (gnat_encodings): Define a dummy variable for the AAMP back-end.
1044         (Get_Encoded_Name): When -fgnat-encodings=all|gdb, encode names
1045         for all discrete types whose bounds do not match size and do so
1046         only for biased types when -fgnat-encodings=minimal.
1047         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not create ___XA
1048         parallel types when array bounds are constant while the lower bound is
1049         not 1.  Also stop generating them because the bound type is
1050         larger than sizetype.
1051         * gcc-interface/misc.c (gnat_encodings): New.
1053 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1055         * opt.adb (Set_Opt_Config_Switches): For an internal unit,
1056         always reset Default_SSO to ' '.
1058 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1060         * freeze.adb (Freeze_Record_Type): Set SSO from default before
1061         checking SSO consistency.
1063 2014-10-30  Javier Miranda  <miranda@adacore.com>
1065         * inline.adb (Check_Package_Body_For_Inlining):
1066         Cleanup this subprogram to implement exactly the behavior
1067         documented in the spec.
1069 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1071         * a-comutr.adb, a-cimutr.adb (Insert_Child): Add new variable First.
1072         Update the position after all insertions have taken place.
1074 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1076         * sem_prag.adb (Analyze_Pragma, case License): Do not perform
1077         analysis of pragma arguments when in CodePeer mode, pragma has
1078         different format on other compilers.
1080 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1082         * s-os_lib.adb: Minor reformatting.
1084 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1086         * gcc-interface/decl.c, gcc-interface/gigi.h, gcc-interface/misc.c,
1087         gcc-interface/trans.c, gcc-interface/utils.c, gcc-interface/utils2.c:
1088         Remove redundant enum from machine_mode.
1090 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
1092         * gcc-interface/trans.c: Adjust include files.
1093         * gcc-interface/utils.c: Ditto.
1095 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1097         * gcc-interface/utils.c (create_subprog_decl): Adjust condition.
1099 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1101         * gcc-interface/misc.c (gnat_init_options_struct): Parameterize errno
1102         support here instead of...
1103         Do not set flag_delete_dead_exceptions to 1 unconditionally.
1104         (gnat_init_gcc_eh): Set flag_delete_dead_exceptions to 1.
1105         (gnat_init_gcc_fp): ...here.
1107 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1109         * gcc-interface/trans.c (gnat_to_gnu) <N_Real_Literal>: Minor tweaks.
1111 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1113         * gcc-interface/utils.c (create_var_decl_1): For a variable declared
1114         in the unit, set TREE_PUBLIC only if it has static storage duration.
1116 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1118         * gcc-interface/decl.c (gnat_to_gnu_entity): Apply special treatment
1119         of derived packed array types to constrained subtypes only.
1121 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1123         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove
1124         superfluous computation for the max size.
1125         <E_Array_Subtype>: Likewise.  Make sure that the max size calculation
1126         does not overflow at compile time.
1128 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1130         * sem_eval.adb (Check_Non_Static_Context): Do not set
1131         Is_Machine_Number on a literal of a fixed-point type.
1133 2014-10-23  Robert Dewar  <dewar@adacore.com>
1135         * mlib-prj.adb, sem_ch4.adb, exp_ch3.adb: Minor reformatting.
1137 2014-10-23  Pierre-Marie Derodat  <derodat@adacore.com>
1139         * exp_dbug.ads: Update ___XA parallel type specification.
1141 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1143         * sem_ch3.adb (Copy_Array_Subtype_Attributes): Inherit the rep
1144         chain of the source type.
1145         * sem_ch13.adb (Analyze_Aspect_Specifications): Minor
1146         reformatting of an error message.
1147         * sem_util.adb (Inherit_Rep_Item_Chain): Do not inherit a rep
1148         chain that has been inherited already.
1150 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1152         * sem_ch6.adb (Analyze_Expression_Function): Simplify analysis
1153         in generic context, and generate body in this case as well,
1154         to simplify ASIS traversals on the construct.
1156 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1158         * sem_ch4.adb (Complete_Object_Operation): Indicate that the
1159         scope of the operation (s) is referenced, to prevent spurious
1160         warnings about unused units.
1162 2014-10-23  Johannes Kanig  <kanig@adacore.com>
1164         * errout.adb (Error_Msg_Internal): Copy check flag, increment
1165         check msg count.
1166         * erroutc.adb (Delete_Msg) adjust check msg count.
1167         (Output_Msg_Text) handle check msg case (do nothing).
1168         (Prescan_Message) recognize check messages with severity prefixes.
1169         * errutil.adb (Error_Msg) handle check flag, adjust counter.
1171 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1173         * sem_eval.adb (Subtypes_Statically_Match): For a generic actual
1174         type, check for the presence of discriminants in its parent type,
1175         against the presence of discriminants in the context type.
1177 2014-10-23  Tristan Gingold  <gingold@adacore.com>
1179         * adaint.c: __gnat_get_file_names_case_sensitive: Default is
1180         true on arm-darwin.
1182 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1184         * pprint.adb (Expression_Image): Add handling of quantifiers.
1186 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1188         * exp_pakd.adb (Expand_Packed_Element_Reference): If the
1189         prefix is a source entity, generate a reference to it before
1190         transformation, because rewritten node might not generate a
1191         proper reference, leading to spurious warnings.
1193 2014-10-23  Tristan Gingold  <gingold@adacore.com>
1195         * init.c: Fix thinko in previous patch.
1197 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1199         * sem_ch3.adb (Decimal_Fixed_Point_Type_Declaration):
1200         Inherit the rep chain of the implicit base type.
1201         (Floating_Point_Type_Declaration): Inherit the rep chain of the
1202         implicit base type.
1203         (Ordinary_Fixed_Point_Type_Declaration): Inherit the rep chain of the
1204         implicit base type.
1205         (Signed_Integer_Type_Declaration): Inherit the rep chain of the
1206         implicit base type.
1207         * sem_util.ads, sem_util.adb (Inherit_Rep_Item_Chain): New routine.
1209 2014-10-23  Pascal Obry  <obry@adacore.com>
1211         * g-regist.adb, g-regist.ads: Add support for reading 32bit or 64bit
1212         view of the registry.
1214 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1216         * exp_ch3.adb (Expand_N_Object_Declaration): If type is abstract,
1217         return without expanding expression, to prevent subsequent crash.
1218         * freeze.adb: better error message for illegal declaration.
1220 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1222         * sysdep.c (__gnat_localtime_tzoff): Properly delimit the
1223         substring which represents the time zone on VxWorks.
1225 2014-10-23  Vincent Celier  <celier@adacore.com>
1227         * gnatls.adb: If --RTS= was not used, check if there is a default
1228         runtime. If there is none, in verbose mode, indicate that the
1229         default runtime is not available and show only the current
1230         directory in the source and the object search paths.
1232 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1234         * sem_ch6.adb (Process_Formals): A thunk procedure with a
1235         parameter of a limited view does not need a freeze node.
1237 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1239         * sem_ch7.adb (Analyze_Package_Body_Helper):
1240         The logic which hides local entities from external
1241         visibility is now contained in routine Hide_Public_Entities.
1242         (Hide_Public_Entities): New routine. Object and subprogram
1243         renamings are now hidden from external visibility the same way
1244         objects are.
1246 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1248         * sem_attr.adb (Analyze_Attribute): The prefix of attribute Elaborated
1249         does not require freezing, in particular if it denotes a generic
1250         function.
1252 2014-10-23  Yannick Moy  <moy@adacore.com>
1254         * sem_prag.adb (Analyze_Pragma/Pragma_Inline & Pragma_Inline_Always):
1255         Disable analysis in GNATprove mode.
1257 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1259         * mlib-prj.adb: Remove obsolete references to libdecgnat (VMS only).
1261 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1263         * gnat1drv.adb (Adjust_Global_Switches): Ignore style check
1264         pragmas in codepeer mode.
1266 2014-10-23  Gary Dismukes  <dismukes@adacore.com>
1268         * gnat_rm.texi: Minor syntax fix for pragma Annotate (missing ',').
1270 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1272         * sem_ch12.adb (Inline_Instance_Body): Alphabetize
1273         local variables and constants. Add constants Save_SM and Save_SMP
1274         to capture SPARK_Mode-related attributes.  Compile the inlined
1275         body with the SPARK_Mode of the enclosing context.
1277 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1279         * sinfo.adb (Elaboration_Boolean): Removed.
1280         (Set_Elaboration_Boolean): Removed.
1281         * sinfo.ads Remove attribute Elaboration_Boolean along with its
1282         occurrence in nodes.
1283         (Elaboration_Boolean): Removed along with pragma Inline.
1284         (Set_Elaboration_Boolean): Removed along with pragma Inline.
1286 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1288         * sem_ch3.adb (Constant_Redeclaration): Make error message more
1289         explicit on a deferred constant whose object_definition is an
1290         anonymous array.
1292 2014-10-23  Vincent Celier  <celier@adacore.com>
1294         * gnatls.adb: Never call Targparm.Get_Target_Parameters.
1296 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1298         * sem_ch6.adb (Analyze_Expression_Function): In a generic
1299         context do not create a body, and only pre-analyze the expression,
1300         which may include incomplete views.
1302 2014-10-23  Robert Dewar  <dewar@adacore.com>
1304         * sem_type.adb: Minor code reorganization (use Nkind_In, Ekind_In).
1305         * sem_ch3.adb: Minor reformatting.
1307 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1309         * sem_ch12.adb (Analyze_Associations): If an actual for a formal
1310         object is a call to a parameterless expression function, add
1311         the function to the list of actuals to freeze.
1312         * freeze.adb (Check_Expression_Function): Create freeze nodes of
1313         outer types that may be references in the body of the expression.
1315 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1317         * exp_util.ads, checks.ads: Minor comment reformatting.
1319 2014-10-23  Javier Miranda  <miranda@adacore.com>
1321         * sem_eval (Test_In_Range): Disable removal of range_check for
1322         VM targets.
1324 2014-10-23  Robert Dewar  <dewar@adacore.com>
1326         * erroutc.adb (Validate_Specific_Warnings): Fix test for -W
1327         messages, which got disabled when we unconditionally added an
1328         asterisk at the start of the string.
1330 2014-10-23  Vincent Celier  <celier@adacore.com>
1332         * gnatls.adb: Ensure that "gnatls -l" works even when there is
1333         no default runtime.
1335 2014-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1337         * sem_ch3.adb (Build_Derived_Private_Type): When the parent is
1338         untagged and has discriminants, build the implicit full view after
1339         building the derived type. Capture original declaration and type
1340         here instead of...
1341         (Copy_And_Build): ...here.
1342         * sem_type.adb (Full_View_Covers): Handle the Underlying_Full_View.
1344 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1346         * checks.adb (Ensure_Valid): Update the subprogram
1347         profile. Propagate the contex attributes to Insert_Valid_Check.
1348         (Insert_Valid_Check): Update the subprogram profile. Propagate
1349         the attributes of the context to Duplicate_Subexpr_No_Checks.
1350         (Validity_Check_Range): Update the subprogram profile. Propagate
1351         the context attribute to Ensure_Valid.
1352         * checks.ads (Ensure_Valid): Update the subprogram profile
1353         along with the comment on usage.
1354         (Insert_Valid_Check): Update the subprogram profile along with the
1355         comment on usage.
1356         (Validity_Check_Range): Update the subprogram profile along with
1357         the comment on usage.
1358         * exp_util.adb (Build_Temporary): New routine.
1359         (Duplicate_Subexpr_No_Checks): Update the subprogram
1360         profile. Propagate the attributes of the context to Remove_Side_Effects.
1361         (Remove_Side_Effects): Update the subprogram profile. Update all calls
1362         to Make_Temporary to invoke Build_Temporary.
1363         * exp_util.ads (Duplicate_Subexpr_No_Checks): Update
1364         the subprogram profile along with the comment on usage.
1365         (Remove_Side_Effects): Update the subprogram profile along with
1366         the comment on usage.
1367         * sem_ch3.adb (Process_Range_Expr_In_Decl): Pass the subtype
1368         to the validity check machinery.  Explain the reason for this
1369         propagation.
1371 2014-10-23  Robert Dewar  <dewar@adacore.com>
1373         * a-strsea.adb: Minor reformatting.
1375 2014-10-23  Thomas Quinot  <quinot@adacore.com>
1377         * bcheck.adb (Check_Consistent_SSO_Default): Exclude internal
1378         units from consistency check.
1379         * gnat_rm.texi (Default_Scalar_Storage_Order): Document that
1380         consistency check excludes run-time units.
1382 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1384         * a-strsea.adb (Find_Token): Enable constraint checking in this
1385         procedure, so that even when compiling with checks suppressed, as is
1386         the case for the run-time, an exception is raised in this routine when
1387         the input meets the conditions described in RM 2005 A.4.3 (68/1).
1389 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1391         * sem_ch3.adb (Build_Derived_Private_Type): When the parent
1392         is untagged and has discriminants, build the implicit full
1393         view even if the derived type is a completion, and make it
1394         the Underlying_Full_View of the type.
1395         (Copy_And_Build): Fix Is_Completion actual parameter in the calls to
1396         Build_Derived_Type.
1397         (Build_Derived_Record_Type): Likewise.
1399 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1401         * sem_ch13.adb: Add guard to convention setting.
1403 2014-10-20  Robert Dewar  <dewar@adacore.com>
1405         * sem_ch3.adb, prj-proc.adb, prj-proc.ads, prj-conf.adb: Minor
1406         reformatting.
1408 2014-10-20  Robert Dewar  <dewar@adacore.com>
1410         * par-prag.adb (Add_List_Pragma_Entry): New procedure.
1411         * par.adb (P_Pragma): Document requirement to handle multiple calls.
1413 2014-10-20  Robert Dewar  <dewar@adacore.com>
1415         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1416         Fix error of bad inheritance of this pragma from with'ed unit.
1418 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1420         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a subtype,
1421         inherit convention from parent type, because the subtype may
1422         have been declared on a partial view, prior to the pragma on
1423         the parent.
1425 2014-10-20  Olivier Hainque  <hainque@adacore.com>
1426             Tristan Gingold  <gingold@adacore.com>
1428         * gcc-interface/Makefile.in: Handle arm-darwin and VxWorks 7.
1429         Misc clean ups.
1431 2014-10-20  Nicolas Roche  <roche@adacore.com>
1433         * gcc-interface/Make-lang.in: ensure that automatically generated
1434         dependency are referencing generated gnatvsn rather than original
1435         one.
1437 2014-10-20  Gary Dismukes  <dismukes@adacore.com>
1439         * gnat_ugn.texi: Minor reformatting.
1440         * sem_ch3.adb: Minor reformatting.
1442 2014-10-20  Vincent Celier  <celier@adacore.com>
1444         * prj-attr.adb: New project level attribute Runtime.
1445         * prj-conf.adb (Get_Project_Runtimes): New procedure to get
1446         the attributes Runtime declared in the main project, to use
1447         in auto-configuration.
1448         (Get_Or_Create_Configuration_File): Call Get_Project_Runtimes.
1449         * prj-proc.adb (Runtime_Defaults): New table to store
1450         the default values of attributes Runtime (<language>).
1451         (Set_Default_Runtime_For): New procedure to store the default
1452         value of a Runtime (<language>) in table Runtime_Defaults.
1453         (Expression): Use the value stored in table Runtime_Defaults as
1454         the default for Runtime (<language>).
1455         * prj-proc.ads (Set_Default_Runtime_For): New procedure.
1456         * prj.ads (Attribute_Default_Value): New enumerated value
1457         Runtime_Value.
1459 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1461         * sem_ch3.adb (Analyze_Object_Declaration): If the type is
1462         an unconstrained unchecked_union type, rewrite declaration
1463         as a renaming to prevent attempt to retrieve non- existent
1464         discriminants from expression.
1466 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1468         * gnat_ugn.texi: Minor reformatting.
1470 2014-10-20  Tristan Gingold  <gingold@adacore.com>
1472         * init.c (__gnat_is_stack_guard): Don't use mach_vm_region_recurse on
1473         arm-darwin.
1474         * raise-gcc.c: Add ATTRIBUTE_UNUSED to remove warnings for
1475         unused arguments.
1477 2014-10-20  Hristian Kirtchev  <kirtchev@adacore.com>
1479         * sem_attr.adb (Analyze_Attribute): Replace
1480         variables CS and PS with Proc_Id and Subp_Id to better illustrate
1481         their purpose. Account for the case where _Postconditions
1482         has not been generated yet and the context is aspect/pragma
1483         Refined_Post. In that scenario the expected prefix of attribute
1484         'Result is the current scope.
1486 2014-10-20  Robert Dewar  <dewar@adacore.com>
1488         * par-ch4.adb (P_Expression): Handle extraneous comma/semicolon
1489         in middle of expression with logical operators.
1491 2014-10-20  Robert Dewar  <dewar@adacore.com>
1493         * par-ch13.adb (Possible_Misspelled_Aspect): New function.
1495 2014-10-20  Steve Baird  <baird@adacore.com>
1497         * pprint.adb: Improve Expression_Image function.
1499 2014-10-20  Robert Dewar  <dewar@adacore.com>
1501         * gnat_rm.texi: Document No_Tagged_Streams pragma and aspect.
1502         * snames.ads-tmpl: Add entry for pragma No_Tagged_Streams.
1503         * aspects.ads, aspects.adb: Add aspect No_Tagged_Streams.
1504         * einfo.adb (No_Tagged_Streams_Pragma): New field.
1505         * einfo.ads: Minor reformatting (reorder entries).
1506         (No_Tagged_Streams_Pragma): New field.
1507         * exp_ch3.adb: Minor comment update.
1508         * opt.ads (No_Tagged_Streams): New variable.
1509         * par-prag.adb: Add dummy entry for pragma No_Tagged_Streams.
1510         * sem.ads (Save_No_Tagged_Streams): New field in scope record.
1511         * sem_attr.adb (Check_Stream_Attribute): Check stream ops
1512         prohibited by No_Tagged_Streams.
1513         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set
1514         No_Tagged_Streams_Pragma.
1515         (Analyze_Subtype_Declaration): ditto.
1516         (Build_Derived_Record_Type): ditto.
1517         (Record_Type_Declaration): ditto.
1518         * sem_ch8.adb (Pop_Scope): Restore No_Tagged_Streams.
1519         (Push_Scope): Save No_Tagged_Streams.
1520         * sem_prag.adb (Analyze_Pragma, case No_Tagged_Streams): Implement new
1521         pragma.
1523 2014-10-20  Robert Dewar  <dewar@adacore.com>
1525         * sem_ch3.adb, prj-proc.adb, sem_ch4.adb, prj-env.adb, lib.ads,
1526         sem_ch13.adb: Minor reformatting.
1528 2014-10-20  Javier Miranda  <miranda@adacore.com>
1530         * exp_ch3.adb (Expand_N_Object_Declaration): Expand the
1531         declaration of a class-wide limited object containing an
1532         initializing expression into a renaming declaration.  Required to
1533         avoid passing such declaration to the backend and also to avoid
1534         generating an extra copy.
1536 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1538         * inline.adb (List_Inlining_Info): Minor tweaks.
1539         (Add_Inlined_Body): Inline the enclosing package
1540         if it is not internally generated, even if it doesn't come
1541         from source.
1543 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1545         * sem_ch4.adb (Process_Function_Call): If the first actual
1546         denotes a discrete type, the mode must be interpreted as a slice
1547         of an array returned by a parameterless call.
1549 2014-10-20  Vasiliy Fofanov  <fofanov@adacore.com>
1551         * prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit
1552         searching for runtime referenced by a simple name on a project path.
1554 2014-10-20  Olivier Hainque  <hainque@adacore.com>
1556         * vxworks-x86-link.spec: New file.
1557         * system-vxworks-x86.ads: Add pragma Linker_Options to link with
1558         vxworks-x86-link.spec.
1560 2014-10-20  Vincent Celier  <celier@adacore.com>
1562         * opt.ads (Origin_Of_Target): New type.
1563         (Target_Origin): New variable.
1564         * prj-conf.adb (Parse_Project_And_Apply_Config): Record
1565         Target_Value and Target_Origin.  If target was not specified
1566         on the command line with --target=, check if attribute Target
1567         is declared in the main project. If it is and it is not the
1568         native target, parse again the projects so that 'Target get
1569         the new value. Fail if the target has changed again.  Invoke
1570         Process_Project_And_Apply_Config with Do_Phase_1 set to False
1571         is Process_Project_Tree_Phase_1 has already been invoked.
1572         * prj-conf.ads (Process_Project_And_Apply_Config): New Boolean
1573         parameter Do_Phase_1, defaulted to True.
1574         * prj-proc.adb (Expression): Check the special values and
1575         defaults for attribute Target.
1577 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1579         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze
1580         the subprogram spec of the body in full, because it will be
1581         reanalyzed when the declaration itself is analyzed;  otherwise. a
1582         formal may end up duplicated in the list of formals leading to
1583         spurious conformance errors with an existing declaration.
1585 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1587         * sem_ch13.adb: Improve error recovery on illegal aspect.
1589 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
1591         * set_targ.adb (Write_Target_Dependent_Values, Write_Line):
1592         Fix calling C APIs with no trailing NUL char by calling better
1593         wrappers instead.
1595 2014-10-20  Tristan Gingold  <gingold@adacore.com>
1597         * gnat_ugn.texi: Document that gdb users must be in group
1598         _developer on mac os.
1600 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
1602         * a-tgdico.ads: Fix typo.
1604 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1606         * exp_aggr.adb (Convert_To_Assignments): Do not create a
1607         transient scope for a component whose type requires it, if the
1608         context is an initialization procedure, because the target of
1609         the assignment must be visible outside of the block.
1611 2014-10-20  Tristan Gingold  <gingold@adacore.com>
1613         * tracebak.c: Define PC_ADJUST for arm-darwin.
1614         * env.c: Remove darwin specific code.
1615         * raise-gcc.c (__gnat_Unwind_ForcedUnwind): Error on arm-darwin.
1617 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1619         * sem_ch3.adb (Analyze_Full_Type_Declaration): If previous view
1620         is incomplete rather than private, and full type declaration
1621         has aspects, analyze aspects on the full view rather than
1622         the incomplete view, to prevent freezing anomalies with the
1623         class-wide type.
1625 2014-10-17  Robert Dewar  <dewar@adacore.com>
1627         * exp_ch9.adb (Expand_N_Task_Body): Add defense against
1628         previous errors.
1629         * freeze.adb (Freeze_Entity): Add defense against checking null
1630         scope for generic.
1631         * restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode.
1632         * sem_ch13.adb (Freeze_Entity_Checks): Add defense against
1633         previous errors.
1634         * sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if
1635         in No_Run_Time mode.
1637 2014-10-17  Robert Dewar  <dewar@adacore.com>
1639         * prj-makr.adb: Minor reformatting.
1641 2014-10-17  Robert Dewar  <dewar@adacore.com>
1643         * gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb,
1644         prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible.
1646 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1648         * exp_prag.adb (Undo_Initialization): If Initialize_Scalars
1649         is enabled, code will be generated for some composite types
1650         to initialize an object after its declaration. If there is
1651         a subsequent Import pragma for the object, that code must be
1652         removed as specified byw the semantics of the pragma, and to
1653         prevent out-of-order elaboration issues in the back-end.
1655 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1657         * exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator
1658         wrapping mechanism under debug flag -gnatd.h.
1659         * debug.adb: Claim debug switch -gnatd.h.
1661 2014-10-17  Doug Rupp  <rupp@adacore.com>
1663         * gcc-interface/Makefile.in: Enable the socket runtime bits
1664         for Android.
1666 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1668         * sem_ch13.adb (Add_Invariants, Replace_Type_References): Do
1669         not perform the replacement on the expression for an inherited
1670         class-wide invariant if in ASIS_Mode and the type reference is
1671         already the prefix of a 'Class attribute reference: the expression
1672         has already been preanalyzed and the replacement performed when
1673         first encountered on the declaration of the parent type.
1675 2014-10-17  Robert Dewar  <dewar@adacore.com>
1677         * sem_ch5.adb, sem_ch7.adb, prj-nmsc.adb, sem_ch13.adb, exp_ch3.adb:
1678         Minor reformatting.
1680 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1682         * exp_ch3.adb (Build_Component_Invariant_Call): Retrieve Invariant
1683         subprogram from base type.
1684         * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1685         subprogram for private type, not any of its subtypes.
1686         * sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set type
1687         of procedure entity, because a call to it may be generated in
1688         a client unit before the corresponding subprogram declaration
1689         is analyzed.
1691 2014-10-17  Vincent Celier  <celier@adacore.com>
1693         * prj-nmsc.adb (Get_Directories): Do not create directories
1694         when a project is abstract.
1696 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1698         * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
1699         of iteration is given by an expression that is not an array type,
1700         verify that its type implements an iterator iterface.
1702 2014-10-17  Robert Dewar  <dewar@adacore.com>
1704         * sem_attr.adb (Eval_Attribute): Ensure that attribute
1705         reference is not marked as being a static expression if the
1706         prefix evaluation raises CE.
1708 2014-10-17  Robert Dewar  <dewar@adacore.com>
1710         * exp_pakd.adb: Move bit packed entity tables to spec.
1711         * exp_pakd.ads: Move bit packed entity tables here from body.
1712         * freeze.adb (Freeze_Array_Type): Check that packed array type
1713         is supported.
1714         * rtsfind.adb (PRE_Id_Table): New table (Entity_Not_Defined):
1715         Specialize messages using PRE_Id_Table.
1716         * uintp.ads, uintp.adb (UI_Image): New functional form.
1718 2014-10-17  Robert Dewar  <dewar@adacore.com>
1720         * aspects.ads, aspects.adb: Add Suppress_Initialization aspect.
1721         * einfo.ads, einfo.adb (Suppress_Initialization): Now applies to
1722         E_Variable.
1723         * exp_ch3.adb (Default_Initialize_Object): Handle
1724         Suppress_Initialization.
1725         * exp_prag.adb (Expand_Pragma_Suppress_Initialization): New
1726         procedure (Expand_N_Pragma): Handle Suppress_Initialization
1727         (Expand_Pragma_Import_Or_Interface): Use Undo_Initialization
1728         (Undo_Initialization): New procedure.
1729         * sem_prag.adb (Analyze_Pragma, case Suppress_Initialization):
1730         This is now allowed for E_Variable case.
1731         * gnat_rm.texi: Document new aspect Suppress_Initialization
1732         Suppress_Initialization aspect/pragma can apply to variable.
1733         * einfo.ads: Minor reformatting.
1735 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
1737         * spark_xrefs.ads: Add documentation pointer to Flow_Computed_Globals.
1739 2014-10-17  Robert Dewar  <dewar@adacore.com>
1741         * cstand.adb (Create_Standard): Mark Short_Integer as
1742         implementation defined.
1743         * sem_util.adb (Set_Entity_With_Checks): Avoid blow up for
1744         compiler built with assertions for No_Implementation_Identifiers test.
1746 2014-10-17  Robert Dewar  <dewar@adacore.com>
1748         * aspects.ads: Documentation fix, aspect Lock_Free does have a
1749         corresponding pragma.
1750         * gnat_rm.texi: Document implementation defined boolean aspects
1751         as boolean.
1753 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1755         * sem_ch13.adb (Add_Invariants): For a class-wide type invariant,
1756         preserve semantic information on the invariant expression
1757         (typically a function call) because it may be inherited by a
1758         type extension in a different unit, and it cannot be resolved
1759         by visibility elsewhere because it may refer to local entities.
1761 2014-10-17  Robert Dewar  <dewar@adacore.com>
1763         * gnat_rm.texi: Document that string literal can be used for
1764         pragma Warnings when operating in Ada 83 mode.
1766 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1768         * freeze.adb (Find_Aggregate_Component_Desig_Type): New
1769         subsidiary function to Freeze_ Expression, used to determine
1770         whether an aggregate for an array of access types also freezes the
1771         designated type, when some aggregate components are allocators.
1773 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1775         * a-strsea.adb (Find_Token): AI05-031 indicates that the
1776         procedure must raise Index_Error when Source is not empty and
1777         the From parameter is not within the range of the Source string.
1779 2014-10-17  Robert Dewar  <dewar@adacore.com>
1781         * sem_prag.adb (Is_Static_String_Expression): Allow string
1782         literal in Ada 83 mode.
1784 2014-10-17  Vincent Celier  <celier@adacore.com>
1786         * prj-conf.adb (Get_Config_Switches): In CodePeer mode, do
1787         not take into account any compiler command from package IDE.
1789 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1791         * sem_ch12.adb (Build_Function_Wrapper): The formals of the
1792         wrapper must have the same identifiers as those of the formal
1793         subprogram, because calls within the generic may use named
1794         associations.
1796 2014-10-17  Robert Dewar  <dewar@adacore.com>
1798         * sem_ch3.adb, a-strsea.adb: Minor reformatting.
1799         * par-ch6.adb (P_Subprogram): Fix bad handling of null procedures.
1801 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1803         * sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect
1804         specfications from original type declaration to declaration of
1805         implicit base, because original node is rewritten as a subtype
1806         declaration on which type aspects do not belong.
1808 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1810         * sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type
1811         inherits the attributes related to pragma Default_Initial_Condition
1812         from its parent type.
1814 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1816         * a-strsea.adb (Index - versions with a From parameter):
1817         According to AI05-056, the Index functions with a From parameter
1818         return 0 if the source is an empty string.
1820 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1822         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable
1823         the consistency checks in ASIS mode.
1825 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
1827         * s-expmod.ads: Minor typo fix.
1829 2014-10-17  Robert Dewar  <dewar@adacore.com>
1831         * sem_util.adb: Minor reformatting.
1833 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1835         * sem_ch12.adb (Build_Function_Wrapper): Build wrappers for
1836         actuals that are defaulted subprograms of the formal subprogram
1837         declaration.
1839 2014-10-17  Robert Dewar  <dewar@adacore.com>
1841         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the
1842         implementation base type.
1843         * sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record
1844         operands are always expanded out into component comparisons.
1846 2014-10-17  Robert Dewar  <dewar@adacore.com>
1848         * s-vallli.adb: Minor comment correction.
1849         * s-valuti.ads: Minor comment reformatting.
1851 2014-10-17  Robert Dewar  <dewar@adacore.com>
1853         * gnat_rm.texi: Document System.Atomic_Counters.
1854         * impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the
1855         list of user- accessible units added as children of System.
1856         * s-atocou.ads: Update comment.
1858 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
1860         * s-expmod.ads: Add comments.
1862 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1864         * sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation
1865         of all attributes related to pragma Default_Initial_Condition.
1866         (Build_Derived_Type): Propagation of all attributes related
1867         to pragma Default_Initial_Condition.
1868         (Process_Full_View): Account for the case where the full view derives
1869         from another private type and propagate the attributes related
1870         to pragma Default_Initial_Condition to the private view.
1871         (Propagate_Default_Init_Cond_Attributes): New routine.
1872         * sem_util.adb: Alphabetize various routines.
1873         (Build_Default_Init_Cond_Call): Use an unchecked type conversion
1874         when calling the default initial condition procedure of a private type.
1875         (Build_Default_Init_Cond_Procedure_Declaration): Prevent
1876         the generation of multiple default initial condition procedures.
1878 2014-10-17  Robert Dewar  <dewar@adacore.com>
1880         * prj-conf.adb: Revert previous change.
1882 2014-10-17  Robert Dewar  <dewar@adacore.com>
1884         * lib-writ.ads, s-valdec.ads: Minor reformatting.
1886 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1888         * sem_ch12.adb: Additional work on function wrappers.
1890 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1892         * exp_util.adb (Possible_Bit_Aligned_Component): Also recurse
1893         on the renamed object of renamings.
1895 2014-10-17  Vincent Celier  <celier@adacore.com>
1897         * prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer
1898         mode, always use the native target.
1900 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1902         * gcc-interface/misc.c: Adjust include files.
1904 2014-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1905             Alan Modra  <amodra@gmail.com>
1907         PR ada/63225
1908         * uintp.adb (Vector_To_Uint): Move from here to...
1909         * uintp.ads (UI_Vector): Make public.
1910         (Vector_To_Uint): ...here.
1912 2014-10-10  Robert Dewar  <dewar@adacore.com>
1914         * freeze.adb, sem_attr.adb: Minor reformatting.
1916 2014-10-10  Johannes Kanig  <kanig@adacore.com>
1918         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
1919         a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
1920         to container type.
1922 2014-10-10  Vincent Celier  <celier@adacore.com>
1924         * prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
1925         any configuration switches from the project file.
1927 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1929         * sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
1930         (Build_Function_Wrapper): New function, to construct a wrapper
1931         function for actuals that are functions with an arbitrary
1932         number of parameters. Used in GNATProve mode to simplify proof
1933         propagation in instantiations.
1935 2014-10-10  Robert Dewar  <dewar@adacore.com>
1937         * freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
1938         code clean up.
1940 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1942         * sem_res.adb (Is_OK_Volatile_Context): Allow
1943         a volatile object reference to appear as the expression of a
1944         type conversion.
1946 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1948         * sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
1949         Aspect specification is legal on a local instantiation of a
1950         library-level generic unit.
1952 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
1954         * gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
1955         if inlining has been enabled via -gnatn and the target is not GCC.
1957 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1959         * freeze.adb (Freeze_Entity): Freezing a subprogram does
1960         not always freeze its profile.  In particular, an attribute
1961         reference that takes the access type does not freeze the types
1962         of the formals.
1964 2014-10-10  Robert Dewar  <dewar@adacore.com>
1966         * errout.adb (Adjust_Name_Case): New procedure.
1967         (Set_Msg_Node): Use Adjust_Name_Case.
1968         * errout.ads (Adjust_Name_Case): New procedure.
1969         * exp_intr.adb (Add_Source_Info): Minor code reorganization
1970         (use Ekind_In).
1971         (Write_Entity_Name): Use Errout.Adjust_Name_Case.
1972         * sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
1973         and fix up entries in Sig_Flags, and correct logical errors in
1974         function itself.
1975         * sprint.adb (Sprint_Node_Actual): Properly print string for
1976         raise statement.
1978 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1980         * sem_ch3.adb (Analyze_Object_Declaration): For an object of an
1981         anonymous array type with delayed aspects, defer freezing of
1982         type until object itself is frozen.
1983         * freeze.adb (Freeze_Entity): When freezing an object of an
1984         anonymous array type with delayed aspects, remove freeze node of
1985         object after freezing type, to prevent out-of-order elaboration
1986         in the back-end. The initialization call for the object has
1987         already been constructed when expanding the object declaration.
1989 2014-10-10  Robert Dewar  <dewar@adacore.com>
1991         * exp_intr.adb (Write_Entity_Name): Moved to outer level
1992         (Write_Entity_Name): Properly handle operator names
1993         (Expand_Source_Info): New procedure.
1994         * exp_intr.ads (Add_Source_Info): New procedure.
1996 2014-10-10  Robert Dewar  <dewar@adacore.com>
1998         * butil.ads: Minor reformatting.
1999         * sem_ch5.adb: Code clean up.
2001 2014-10-10  Robert Dewar  <dewar@adacore.com>
2003         * exp_ch11.adb (Expand_N_Raise_Statement): Handle
2004         Prefix_Exception_Messages.
2005         * opt.adb: Handle new flags Prefix_Exception_Message[_Config].
2006         * opt.ads: New flags Prefix_Exception_Message[_Config].
2007         * par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
2008         * snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
2009         * sem_prag.adb: Implement new pragma Prefix_Exception_Messages
2010         * gnat_rm.texi: Document pragma Prefix_Exception_Messages.
2012 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2014         * sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
2015         raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).
2017 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2019         * sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
2020         contain pragmas generated for loop invariants and type predicates.
2021         Clarify use of this subprogram.
2023 2014-10-10  Yannick Moy  <moy@adacore.com>
2025         * sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
2026         contracts.
2027         * errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
2028         SPARK_Mode is Off.
2030 2014-10-10  Vadim Godunko  <godunko@adacore.com>
2032         * a-stwima.adb (To_Sequence): Compute size of result array.
2034 2014-10-10  Javier Miranda  <miranda@adacore.com>
2036         * gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
2037         sources of the example to avoid a warning when the Ada files are
2038         automatically generated by the binding generator.
2040 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2042         * sem_attr.adb (Resolve_Attribute, case 'Update): Set
2043         Do_Range_Check on the expression of a record component
2044         association when needed, as is done for array components, when
2045         the corresponding type is a scalar type.
2047 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2049         * a-coinho-shared.adb: Minor typo fix.
2050         * prj-env.ads: Minor reformatting.
2052 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2054         * sem_res.adb (Resolve_String_Literal): Do not
2055         generate a string literal subtype for the default expression of
2056         a formal parameter in GNATprove mode.
2058 2014-10-10  Yannick Moy  <moy@adacore.com>
2060         * errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.
2062 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2064         * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
2065         declaration for loop parameter before rest of loop, and set
2066         entity kind to prevent assignments to it in the user code.
2067         * sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
2068         loop parameter in an element iteration over o formal container.
2070 2014-10-10  Robert Dewar  <dewar@adacore.com>
2072         * gnat_ugn.texi: Document use of user-level routines to handle
2073         e.g. col major arrays.
2075 2014-10-10  Doug Rupp  <rupp@adacore.com>
2077         * s-osinte-android.adb: Fix misspelling.
2078         * gsocket.h: Tweak the Android quirks.
2080 2014-10-10  Robert Dewar  <dewar@adacore.com>
2082         * errout.ads (SPARK_Msg_N): Fix spec to match change in body.
2084 2014-10-10  Robert Dewar  <dewar@adacore.com>
2086         * sem_ch13.adb: Minor code reorganization.
2088 2014-10-10  Pat Rogers  <rogers@adacore.com>
2090         * gnat_rm.texi: Text now indicates pragma No_Run_Time is not
2091         for users.
2093 2014-10-10  Vadim Godunko  <godunko@adacore.com>
2095         * a-coinho-shared.adb: Add minor comment.
2096         * a-stzmap.adb (To_Sequence): Compute size of result array.
2098 2014-10-10  Javier Miranda  <miranda@adacore.com>
2100         * exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
2101         if-stmt to match its current documentation.
2103 2014-10-10  Robert Dewar  <dewar@adacore.com>
2105         * sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
2106         freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
2107         sem_ch6.adb, sem_cat.adb, sem_disp.adb
2108         (Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
2109         throughout where appropriate.
2111 2014-10-10  Bob Duff  <duff@adacore.com>
2113         * a-coinho-shared.ads: Minor reformatting.
2114         * s-traceb.adb: Minor clean up.
2116 2014-10-10  Robert Dewar  <dewar@adacore.com>
2118         * ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
2119         * ali.ads (GNATprove_Mode): New component in ALI table.
2120         (GNATprove_Mode_Specified): New global.
2121         * gnatbind.adb (Gnatbind): Give fatal error if any file compiled
2122         in GNATProve mode.
2123         * lib-writ.ads, lib-writ.adb (GP): New flag on P line for
2124         GNATProve_Mode.
2126 2014-10-10  Javier Miranda  <miranda@adacore.com>
2128         * exp_ch3.adb (Build_Init_Procedure): Adding assertion.
2129         (Build_Init_Statement): Ensure that statements
2130         associated with the parent components are located at the beginning
2131         of the returned list of statements.
2133 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2135         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
2136         view of a private type T that has a type invariant is a scalar
2137         or constrained array type, the base type created for the full
2138         view has the same type invariant.
2140 2014-10-10  Robert Dewar  <dewar@adacore.com>
2142         * exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
2143         reorganization.
2145 2014-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2147         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
2148         * gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
2150 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
2152         * gcc-interface/Make-lang.in (check_acats_numbers0,
2153         check_acats_numbers1, check_acats_numbers2, check_acats_numbers3,
2154         check_acats_numbers4, check_acats_numbers5, check_acats_numbers6,
2155         check_acats_numbers, check_acats_subdirs): New variables.
2156         (check_acats_targets): Use $(check_acats_subdirs).
2157         (check-acats, check-acats%): Rewritten so that for parallelized
2158         testing each job runs all the chapters files, with
2159         GCC_RUNTEST_PARALLELIZE_DIR set in environment.  Prepare the support
2160         directory sequentially and share it.
2161         (check-acats-subtargets): Always print just check-acats.
2163 2014-08-25  Martin Liska  <mliska@suse.cz>
2165         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to
2166         new cgraph interface.
2167         (gnat_write_global_declarations): Likewise.
2169 2014-08-13  Sylvestre Ledru  <sylvestre@debian.org>
2171         * 9drpc.adb: Fix a typo
2172         * s-interr.ads: Likewise
2173         * s-taskin.ads: Likewise
2174         * s-traces.ads: Likewise
2175         * sysdep.c: Likewise
2177 2014-08-12  Joel Sherrill <joel.sherrill@oarcorp.com>
2179         * socket.c: For RTEMS, use correct prototype of gethostbyname_r().
2180         * gsocket.h Add include of <unistd.h> on RTEMS.
2182 2014-08-11  Joel Sherrill <joel.sherrill@oarcorp.com>
2184         * s-osinte-rtems.adb: Correct formatting of line in license block.
2186 2014-08-04  Claire Dross  <dross@adacore.com>
2188         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
2189         For an instance, look at the scope before the generic parent.
2191 2014-08-04  Yannick Moy  <moy@adacore.com>
2193         * lib-writ.ads: Update comments.
2194         * sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add
2195         parameters to filter inherited subprograms.
2197 2014-08-04  Robert Dewar  <dewar@adacore.com>
2199         * gnat_rm.texi: Add section on use of address clause for memory
2200         mapped I/O.
2202 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2204         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in
2205         particular the subtype created for a generic actual, inherits
2206         invariant information from the base type.
2208 2014-08-04  Robert Dewar  <dewar@adacore.com>
2210         * aspects.ads, aspects.adb: Add entries for aspect Obsolescent.
2211         * gnat_rm.texi: Add documentation for aspect Obsolescent.
2212         * sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect
2213         Obsolescent.
2214         (Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent.
2215         * s-osprim-mingw.adb: Minor reformatting.
2216         * sem_res.adb (Is_Atomic_Ref_With_Address): New function
2217         (Resolve_Indexed_Component): Rework warnings for non-atomic access
2218         (Resolve_Selected_Component): Add warnings for non-atomic access.
2220 2014-08-04  Doug Rupp  <rupp@adacore.com>
2222         * g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec
2223         formal to long_long.
2224         * g-calend.ads (timeval): Bump up size to accomodate sec type.
2225         * s-taprop-linux.adb (timeval_to_duration): Change sec formal to
2226         long_long
2227         * s-osprim-posix.adb (timeval): Bump up size to accomodate
2228         new sec type.
2229         (timeval_to_duration): Change sec formal to Long_Long_Integer
2230         * s-osinte-darwin.adb (timeval): Bump up
2231         size to accomodate new sec type.
2232         (timeval_to_duration): Change sec formal to long_long
2233         * s-osinte-android.adb: Likewise.
2234         * cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change
2235         sec formal from long to long long.
2237 2014-08-04  Robert Dewar  <dewar@adacore.com>
2239         * sem_res.adb (Resolve_Qualified_Expression): Make sure
2240         Do_Range_Check flag gets set.
2242 2014-08-04  Robert Dewar  <dewar@adacore.com>
2244         * einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
2245         * exp_ch3.adb (Build_Array_Init_Proc): Use
2246         Is_Standard_String_Type.
2247         (Expand_Freeze_Array_Type): ditto.
2248         (Get_Simple_Init_Val): ditto.
2249         (Needs_Simple_Initialization): ditto.
2250         * sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
2251         * sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
2253 2014-08-04  Pascal Obry  <obry@adacore.com>
2255         * adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
2256         _stprintf which insert garbage into the wfull_path buffer.
2258 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2260         * cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
2261         code.
2262         * fe.h: Minor reformatting.
2264 2014-08-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2266         * cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
2268 2014-08-04  Robert Dewar  <dewar@adacore.com>
2270         * par-ch13.adb (Get_Aspect_Specifications): Improve error
2271         recovery, fixing a -gnatQ bomb.
2273 2014-08-04  Yannick Moy  <moy@adacore.com>
2275         * sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode,
2276         do not generate two Itypes with the same name for an array
2277         definition.
2278         * sinfo.ads: Expand doc on GNATprove mode.
2280 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2282         * exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization
2283         master and storage pool attributes on the root type of an
2284         anonymous access type.
2285         * exp_ch4.adb (Expand_N_Allocator): Set the finalization master
2286         and storage pool attributes on the root type of an anonymous
2287         access type.
2289 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2291         * exp_ch3.adb: Minor reformatting.
2292         * tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed.
2293         * tracebak.c: Remove use of above files.
2294         * gcc-interface/Makefile.in: Update dependencies.
2296 2014-08-04  Pierre-Marie Derodat  <derodat@adacore.com>
2298         * gcc-interface/utils.c (gnat_set_type_context): Also set the
2299         context for parallel types' TYPE_STUB_DECL.  Do not change
2300         anything if the context is already set for them.
2301         (gnat_pushdecl): Update the comment for calls to
2302         gnat_set_type_context to mention parallel types.
2303         (add_parallel_type): When adding a context-less parallel type to
2304         a type that has a context, propagate the context from the latter
2305         type to the former.
2306         (process_deferred_decl_context): Call gnat_set_type_context
2307         rather than manually setting the type context.
2308         (build_unc_object_type): Call gnat_set_type_context on the
2309         template type.
2311 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2313         * exp_ch5.adb (Expand_N_Case_Statement): If a choice is a
2314         subtype indication and the case statement has only two choices,
2315         replace subtype indication with its range, because the resulting
2316         membership test cannot have a subtype indication as an operand.
2318 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2320         * exp_ch3.adb: Update comments, minor reformatting.
2322 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2324         * sem_ch3.adb (Analyze_Declarations): Explain why the bodies of
2325         the default initial condition procedures are build here.
2326         * sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the
2327         analyzed argument of pragma Default_Initial_Condition in some
2328         dummy code as GNATprove mode disables assertions, but still
2329         needs to see the argument.
2331 2014-08-04  Robert Dewar  <dewar@adacore.com>
2333         * exp_ch6.adb, sem_util.adb: Minor reformatting.
2335 2014-08-04  Olivier Hainque  <hainque@adacore.com>
2337         * a-comutr.ads: Set Root_Node_Type'Alignment to
2338         Standard'Maximum_Alignment, so that it is at least as large as
2339         the max default for Tree_Node_Type'Alignment.
2341 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2343         * exp_ch3.adb (Freeze_Type): Remove the generation and inheritance
2344         of the default initial condition procedure [body].
2345         * sem_ch3.adb (Analyze_Declarations): Create the bodies of
2346         all default initial condition procedures at the end of private
2347         declaration analysis.
2348         * sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New
2349         routine.
2350         (Build_Default_Init_Cond_Procedure_Body): Merged in the
2351         processing of routine Build_Default_Init_Cond_Procedure_Bodies.
2352         * sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies):
2353         New routine.
2354         (Build_Default_Init_Cond_Procedure_Body): Removed.
2356 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2358         * sem_elab.adb (Check_Elab_Call): Do not check a call to a
2359         postcondtion.
2360         * exp_ch6.adb (Expand_Call): Clarify handling of inserted
2361         postcondition call.
2363 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2365         * sem_prag.adb (Analyze_Pragma): Ensure that an
2366         internally generated spec for a stand alone body is recognized
2367         as a proper context for pragma SPARK_Mode.
2369 2014-08-04  Robert Dewar  <dewar@adacore.com>
2371         * erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors.
2373 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2375         * adabkend.adb (Scan_Back_End_Switches): Ignore extra -o
2376         when -gnatO has already been specified, for compatibility
2377         with gcc driver.
2378         (Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in
2379         codepeer mode.
2380         * g-expect.ads: Fix typo.
2382 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2384         * exp_ch4.adb (Insert_Dereference_Action): the actual Size
2385         must account for the bounds template if the designated type is
2386         an unconstrained array.
2388 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2390         * a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add
2391         SPARK_Mode in the body.
2392         * sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original
2393         way to verify the consistency of SPARK_Mode between a spec and
2394         a body.
2395         * sem_ch12.adb (Analyze_Package_Instantiation): Remove the call
2396         to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
2397         manually.
2398         (Analyze_Subprogram_Instantiation): Remove the call to
2399         Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
2400         manually.
2401         * sem_prag.adb (Analyze_Pragma): Remove local variable
2402         Inst_Id. SPARK_Mode can no longer be applied to a package or
2403         subprogram instantiation.
2404         * sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode):
2405         Removed.
2407 2014-08-04  Robert Dewar  <dewar@adacore.com>
2409         * sem_prag.adb, osint.adb, osint.ads: Minor reformatting.
2411 2014-08-04  Yannick Moy  <moy@adacore.com>
2413         * sem_ch3.adb (Derive_Type_Declaration,
2414         Process_Discriminants): Remove SPARK-specific legality checks.
2416 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2418         * g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram.
2419         * gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support
2420         for HMAC.
2422 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2424         * sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the
2425         compatibility of SPARK_Mode between a spec and a body, use the
2426         SPARK_Mode of the public part.
2427         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use
2428         the already available routine to exchange the aspects between
2429         the template and its copy. Analyze the aspects of copy to
2430         ensure that the corresponding pragmas perform their semantic
2431         effects.  The partial analysis of aspects is no longer needed.
2432         (Analyze_Package_Instantiation): Save and restore the SPARK_Mode
2433         of the context.
2434         (Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of
2435         the context.
2436         * sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram
2437         instantiation which does not come from source.
2439 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2441         * a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add
2442         SPARK_Mode pragmas to the public and private part of the unit.
2443         * sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived
2444         type cannot have discriminants if the parent type already has
2445         discriminants.
2446         (Process_Discriminants): Ensure that the type of a discriminant is
2447         discrete.
2448         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on
2449         SPARK_Mode compatibility between a spec and a body can now be
2450         safely performed while processing a generic.
2451         * sem_ch7.adb (Analyze_Package_Body_Helper): The check on
2452         SPARK_Mode compatibility between a spec and a body can now be
2453         safely performed while processing a generic.
2454         * sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be
2455         safely analyzed when processing a generic.
2457 2014-08-04  Nicolas Roche  <roche@adacore.com>
2459         * g-dirope.adb: Minor reformating.
2461 2014-08-04  Robert Dewar  <dewar@adacore.com>
2463         * sem_ch6.adb: Minor reformatting.
2465 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2467         * sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
2468         Before normalizing these pragmas into a pragma Check, preanalyze
2469         the optional Message argument, (which is subsequently copied)
2470         so that it has the proper semantic information for ASIS use.
2471         * sem_case.adb: Initialize flag earlier.
2472         * osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
2473         the full source path of a configuration file is requested.
2474         (Read_Source_File): Use Full_Name parameter..
2476 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2478         * opt.ads Alphabetize various global flags. New flag
2479         Ignore_Pragma_SPARK_Mode along with a comment on usage.
2480         * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
2481         Pragma SPARK_Mode is now allowed in generic units.
2482         (Analyze_Subprogram_Body_Helper): Do not verify the compatibility
2483         between the SPARK_Mode of a spec and that of a body when inside
2484         a generic.
2485         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the
2486         compatibility between the SPARK_Mode of a spec and that of a
2487         body when inside a generic.
2488         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
2489         Pragma SPARK_Mode is now allowed in generic units.
2490         (Analyze_Package_Instantiation): Save and restore the value of
2491         flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
2492         the governing SPARK_Mode before analyzing the instance.
2493         (Analyze_Subprogram_Instantiation): Save and restore the value
2494         of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
2495         the governing SPARK_Mode before analyzing the instance.
2496         * sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the
2497         placement of a source pragma when inserting the generated pragma
2498         for aspect SPARK_Mode.
2499         * sem_prag.adb (Analyze_Pragma): Reimplement the handling of
2500         pragma SPARK_Mode to allow for generics and their respective
2501         instantiations.
2502         * sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed.
2503         (Set_Ignore_Pragma_SPARK_Mode): New routine.
2505 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
2507         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with
2508         renaming discriminants in tagged types first.
2509         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test
2510         the underlying type of the prefix.
2511         (Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..."
2512         (process_freeze_entity): Reset the nodes of all the view of a type,
2513         if any.
2515 2014-08-04  Doug Rupp  <rupp@adacore.com>
2516             Olivier Hainque  <hainque@adacore.com>
2518         * gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7
2519         and remove incorrect EH_MECHANISM macros.
2520         Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to
2521         EXTRA_LIBGNAT_OBJS.
2523 2014-08-04  Robert Dewar  <dewar@adacore.com>
2525         * exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix
2526         of constructed 'Valid attribute in -gnatVa mode does not appear
2527         to come from source.
2528         * sem_attr.adb (Analyze_Access_Attribute): Don't set
2529         Never_Set_In_Source for non-source reference.
2530         * sem_util.adb: Minor reformatting.
2531         * sem_warn.adb (Check_References): Don't check Address_Taken,
2532         not necessary, see comment.
2534 2014-08-04  Robert Dewar  <dewar@adacore.com>
2536         * sem_util.adb, sem_case.adb: Minor reformatting.
2538 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2540         * exp_ch9.adb (Extract_Entry): If the synchronized object is a
2541         limited view, replace with non-limited view, which is available
2542         at the point of an entry call.
2544 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2546         * exp_ch6.adb (Expand_Call): If the call is to a function in
2547         a run-time unit that is marked Inline_Always, we must suppress
2548         debugging information on it, so that the code that is eventually
2549         inlined will not affect debugging of the user program.
2551 2014-08-04  Robert Dewar  <dewar@adacore.com>
2553         * inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
2554         fixes.
2556 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2558         * sem_prag.adb (Process_Import_Or_Interface): Handle properly
2559         an aspect Import that specifies a False value.
2561 2014-08-04  Robert Dewar  <dewar@adacore.com>
2563         * gnat_rm.texi: Add section on aspect Invariant'Class.
2565 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2567         * sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
2568         for better control of cascaded error messages when some choice
2569         in a case statement over a predicated type violates the given
2570         static predicate.
2572 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2574         * sem_ch3.adb (Build_Derived_Type): Modify the
2575         inheritance of the rep chain to ensure that a non-tagged type's
2576         items are not clobbered during the inheritance.
2578 2014-08-04  Robert Dewar  <dewar@adacore.com>
2580         * sem_ch3.adb, einfo.ads: Minor reformatting.
2582 2014-08-04  Yannick Moy  <moy@adacore.com>
2584         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix
2585         detection of subprograms that cannot be inlined in GNATprove mode.
2587 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2589         * einfo.adb: Add guard to Returns_Limited_View.
2591 2014-08-04  Jose Ruiz  <ruiz@adacore.com>
2593         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of
2594         the secondary stack to respect the alignments of the returned objects.
2596 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2598         * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
2599         on function entities whose return type is a limited view.
2600         * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
2601         where to place the freeze node for a function that returns the
2602         limited view of a type, when the function is called and frozen
2603         in a different unit.
2605 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
2607         * sem_ch3.adb (Build_Derived_Private_Type): Minor code
2608         refactoring.
2610 2014-08-04  Robert Dewar  <dewar@adacore.com>
2612         * gnat_ugn.texi: Clarify documentation on assertions.
2614 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2616         * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
2617         if a component association has a box initialization when the
2618         component type has no default initialization, either through an
2619         initial value, an aspect, or an implicit initialization procedure.
2621 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2623         * freeze.adb: Code clean up.
2625 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2627         * sem_ch5.adb: Minor reformatting.
2629 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2631         * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
2632         a function can return a limited view of a type declared
2633         elsewhere. In that case the function cannot be frozen at the end
2634         of its enclosing package. If its first use is in a different unit,
2635         it cannot be frozen there, but if the call is legal the full view
2636         of the return type is available and the subprogram can now be
2637         frozen. However the freeze node cannot be inserted at the point
2638         of call, but rather must go in the package holding the function,
2639         so that the backend can process it in the proper context.
2641 2014-08-04  Robert Dewar  <dewar@adacore.com>
2643         * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
2645 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2647         * sem_ch4.adb (Operator_Check): Refine previous change.
2649 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2651         * sem_scil.ads: Improve comments.
2652         * sem_ch4.adb (Analyze_Equality_Op): Add support for
2653         Allow_Integer_Address (equality between Address and Integer).
2655 2014-08-04  Yannick Moy  <moy@adacore.com>
2657         * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
2658         notation on untagged objects.
2659         * sem.ads: Update comment.
2660         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
2661         not inline subprograms declared in the visible part of a package.
2663 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2665         * exp_ch5.adb: minor reformatting.
2666         * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
2667         parameters.
2669 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2671         * s-fatgen.adb: Minor reformatting.
2673 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2675         * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
2676         False on .NET.
2678 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2680         * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
2681         the loop parameter for element iterators over containers and
2682         arrays, so that improper uses of it are detected in the loop
2683         body when expansion is disabled.
2684         * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
2685         generated cursor is that of the analyzed loop parameter.
2687 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2689         * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
2690         Flag_Decl. Do not analyze the declaration of the flag as it is
2691         not part of the tree yet, instead add it to the freeze actions
2692         of the C++ type.
2694 2014-08-04  Robert Dewar  <dewar@adacore.com>
2696         * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
2697         case of OUT and IN OUT parameter correctly (where Source_Typ is
2698         set), we were missing one case where a check must be applied.
2700 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2702         * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
2703         the generated code. Instead of hiding the renaming and using the
2704         wrapper as the proper association, have the subprogram renaming
2705         alias the wrapper.
2706         (Build_Spec): The entity of the wrapper is
2707         now derived from the entity of the related primitive.
2709 2014-08-04  Emmanuel Briot  <briot@adacore.com>
2711         * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
2712         using non-capturing groups.
2714 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2716         * inline.adb (Build_Body_To_Inline): Remove Unmodified and
2717         related pragmas before copying the original body, to prevent
2718         spurious errors when the pragmas apply to formals that will not
2719         appear in the inlined body.
2721 2014-08-04  Robert Dewar  <dewar@adacore.com>
2723         * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
2724         exp_ch3.adb: Minor reformatting.
2726 2014-08-04  Robert Dewar  <dewar@adacore.com>
2728         * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
2730 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2732         * aspects.adb Add an entry in table Canonical_Aspect for
2733         Default_Initial_Condition.
2734         * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
2735         Aspect_Names and Aspect_Delay for Default_Initial_Condition.
2736         * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
2737         is now Is_Default_Init_Cond_ Procedure. Flag133 is now
2738         Has_Inherited_Default_Init_Cond.
2739         (Default_Init_Cond_Procedure): New routine.
2740         (Has_Default_Init_Cond): New routine.
2741         (Has_Inherited_Default_Init_Cond): New routine.
2742         (Is_Default_Init_Cond_Procedure): New routine.
2743         (Set_Default_Init_Cond_Procedure): New routine.
2744         (Set_Has_Default_Init_Cond): New routine.
2745         (Set_Has_Inherited_Default_Init_Cond): New routine.
2746         (Set_Is_Default_Init_Cond_Procedure): New routine.
2747         (Write_Entity_Flags): Output all the new flags.
2748         * einfo.ads New attributes Default_Init_Cond_Procedure,
2749         Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
2750         along with usage in nodes.
2751         (Default_Init_Cond_Procedure): New routine.
2752         (Has_Default_Init_Cond): New routine and pragma Inline.
2753         (Has_Inherited_Default_Init_Cond): New routine and
2754         pragma Inline.
2755         (Is_Default_Init_Cond_Procedure): New routine and
2756         pragma Inline.
2757         (Set_Default_Init_Cond_Procedure): New routine.
2758         (Set_Has_Default_Init_Cond): New routine and pragma Inline.
2759         (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
2760         (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
2761         * exp_ch3.adb (Expand_N_Object_Declaration): New constant
2762         Next_N. Generate a call to the default initial condition procedure
2763         if the object's type is subject to the pragma.  (Freeze_Type):
2764         Generate the body of the default initial condition procedure or
2765         inherit the spec from a parent type.
2766         * exp_ch7.adb Add with and use clause for Exp_Prag.
2767         (Expand_Pragma_Initial_Condition): Removed.
2768         * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
2769         routine.
2770         * par-prag.adb (Prag): Pragma Default_Initial_Condition does
2771         not need special treatment by the parser.
2772         * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
2773         attributes related to pragma Default_Initial_Condition to the
2774         derived type.
2775         (Process_Full_View): Propagate the attributes
2776         related to pragma Default_Initial_Condition to the full view.
2777         * sem_ch7.adb (Analyze_Package_Specification): Build the
2778         declaration of the default initial condition procedure for all
2779         types that qualify or inherit the one from the parent type.
2780         * sem_ch13.adb (Analyze_Aspect_Specifications):
2781         Add processing for aspect Default_Initial_Condition.
2782         (Check_Aspect_At_Freeze_Point): Aspect
2783         Default_Initial_Condition does not require delayed analysis.
2784         (Replace_Type_References_Generic): Moved to spec.
2785         * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
2786         * sem_prag.adb Add an entry in table Sif_Glags for
2787         Default_Initial_Condition.
2788         (Analyze_Pragma): Pragma
2789         Default_Initial_Condition is now part of assertion
2790         policy. Add processing for pragma Default_Initial_Condition.
2791         (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
2792         now recognized as a proper assertion policy.
2793         * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
2794         routine.
2795         (Build_Default_Init_Cond_Procedure_Body): New routine.
2796         (Build_Default_Init_Cond_Procedure_Declaration): New routine.
2797         (Inherit_Default_Init_Cond_Procedure): New routine.
2798         * snames.ads-tmpl Add new predefined name and pragma id for
2799         Default_Initial_Condition.
2801 2014-08-04  Vincent Celier  <celier@adacore.com>
2803         * prj-dect.adb (Parse_Case_Construction): It is no longer
2804         an error if the variable for a case construction is not
2805         typed, only if the variable value is not a single string. Call
2806         Parse_Choice_List and End_Case_Construction with the new parameter
2807         to indicate that the variable is typed.
2808         * prj-strt.adb (End_Case_Construction): Only check the labels
2809         if the variable is typed.  If the variable is not typed,
2810         issue a warning when there is no "when others" allternative.
2811         (Parse_Choice_List): Manage the labels only if the variable
2812         is typed.
2813         * prj-strt.ads (End_Case_Construction): New Boolean parameter
2814         String_Type.
2815         (Parse_Choice_List): Ditto.
2817 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2819         * sem_ch5.adb: Additional fix to Check_Predicate_Use.
2821 2014-08-04  Vincent Celier  <celier@adacore.com>
2823         * projects.texi: Update documentation of case constructions with
2824         variables that are not typed.
2826 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2828         * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
2829         an Eliminated pragma, indicate that the wrapper is also to be
2830         eliminated, to prevent spurious errors when using gnatelim on
2831         programs that include box-initialization of equality operators
2832         (consequence of AI05-071)..
2834 2014-08-04  Robert Dewar  <dewar@adacore.com>
2836         * checks.adb (Activate_Overflow_Check): Handle floating-point
2837         case correctly.
2838         * checks.ads (Activate_Overflow_Check): Clarify handling of
2839         floating-point cases.
2840         * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
2841         flag if we generate an explicit overflow check (for
2842         Check_Float_Overflow mode).
2844 2014-08-04  Robert Dewar  <dewar@adacore.com>
2846         * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
2847         prj-attr.adb, prj-attr.ads: Minor reformatting.
2849 2014-08-04  Yannick Moy  <moy@adacore.com>
2851         * expander.adb (Expand): Always perform special
2852         expansion in GNATprove mode, even when doing pre-analysis.
2854 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2856         * repinfo.adb (List_Scalar_Storage_Order): List bit order if
2857         not default. Also list bit order if SSO is specified. Do not
2858         assume that bit order is always equal to scalar storage order.
2860 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2862         * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
2863         order to reverse SSO for a type that has an explicit native
2864         Bit_Order.
2866 2014-08-04  Doug Rupp  <rupp@adacore.com>
2868         * cal.c: Macro check for VxWorks7.
2869         * init.c (getpid): Likewise.
2870         * mkdir.c (__gnat_mkdir): Likewise.
2871         * sysdep.c (__gnat_is_file_not_found_error): Likewise.
2873 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2875         * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
2876         of an invariant check in the case where No_Initialization is set,
2877         since the object is uninitialized.
2879 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2881         * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
2882         name, in addition to a pragma name.
2883         * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
2884         Is_Pragma_Name): Adjust accordingly.
2885         * sem_attr.ads, sem_attr.adb, exp_attr.adb
2886         (Attribute_Default_Scalar_Storage_Order): Add handling of new
2887         attribute.
2888         * gnat_rm.texi: Document the above.
2890 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2892         * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
2893         mode for now, to revert to previous behavior.
2894         * checks.adb: Revert previous change, no longer needed.
2896 2014-08-04  Robert Dewar  <dewar@adacore.com>
2898         * gnat1drv.adb (Adjust_Global_Switches): Don't set
2899         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
2900         * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
2901         set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
2902         * switch-c.adb (Scan_Front_End_Switches): Don't set
2903         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
2905 2014-08-04  Vincent Celier  <celier@adacore.com>
2907         * prj-attr.adb: Add new default indications for
2908         attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
2909         (Attribute_Default_Of): New function (Initialize): Set the
2910         default for those attributes that have one specified.
2911         * prj-attr.ads (Attribute_Data): New component Default.
2912         * prj-proc.adb (Expression): Take into account the new defaults
2913         for attributes Object_Dir, Exec_Dir and Source_Dirs.
2914         * prj-strt.adb (Attribute_Reference): Set the default for
2915         the attribute.
2916         * prj-tree.ads, prj-tree.adb (Default_Of): New function.
2917         (Set_Default_Of): New procedure.
2918         * prj.adb (The_Dot_String): New global Name_Id variable,
2919         initialized in procedure Initialize.
2920         (Dot_String): New function
2921         (Initialize): Initialize The_Dot_String.
2922         (Reset): Create the string list Shared.Dot_String_List.
2923         * prj.ads (Attribute_Default_Value): New enumeration type.
2924         (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
2925         (Dot_String): New function.
2926         (Shared_Project_Tree_Data): New string list component Dot_String_List.
2927         * projects.texi: Document new defaults for attribute Object_Dir,
2928         Exec_Dir and Source_Dirs.
2930 2014-08-04  Robert Dewar  <dewar@adacore.com>
2932         * sem_ch12.adb: Minor reformatting.
2934 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2936         * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
2937         expansion in CodePeer_Mode.
2938         (Selected_Range_Checks): Add handling of overflow checks in
2939         CodePeer_Mode.
2941 2014-08-04  Robert Dewar  <dewar@adacore.com>
2943         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
2944         Remove special test for Float'First, no longer required.
2945         (Expand_N_Attribute_Reference, case Succ): Remove special test
2946         for Float'First, no longer required.
2947         * s-fatgen.adb (Pred): return infinity unchanged.
2948         (Succ): ditto.
2950 2014-08-04  Claire Dross  <dross@adacore.com>
2952         * sem_ch12.adb (Analyze_Associations): Defaults should only be
2953         used if there is no explicit match.
2954         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
2955         Also check for pragma external_axiomatization on generic units.
2957 2014-08-04  Robert Dewar  <dewar@adacore.com>
2959         * checks.adb (Activate_Overflow_Check): Remove
2960         Check_Float_Overflow processing.
2961         (Apply_Scalar_Range_Check): Ditto.
2962         (Generate_Range_Check): Ditto.
2963         * exp_ch4.adb (Expand_N_Op_Add): Add call to
2964         Check_Float_Op_Overflow.
2965         (Expand_N_Op_Divide): ditto.
2966         (Expand_N_Op_Multiply): ditto.
2967         (Expand_N_Op_Subtract): ditto.
2968         * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
2969         * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
2970         Do_Range_Check is set for floating-point case in -gnatc or
2971         GNATprove mode.
2972         (Analyze_Attribute, case Succ): Make sure
2973         Do_Range_Check is set for floating-point case in -gnatc or
2974         GNATprove mode.
2975         * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
2976         flag is set for real to integer conversion in GNATprove or
2977         -gnatc mode.
2979 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2981         * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
2982         the expression of an Import or Export aspect as type Boolean
2983         and require it to be static. Add ??? comment. Also, set the
2984         Is_Exported flag when appropriate.
2986 2014-08-04  Robert Dewar  <dewar@adacore.com>
2988         * exp_ch4.adb: Minor reformatting.
2989         * exp_attr.adb: Minor reformatting.
2991 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2993         * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
2994         (Unaligned_Valid): Remove now unused subprogram.
2995         * exp_attr.adb (Expand_N_Attribute_Reference, case
2996         Attribute_Valid): If the prefix is in reverse SSO or potentially
2997         unaligned, copy it using a byte copy operation to a temporary
2998         variable.
2999         * einfo.adb: Minor comment fix.
3001 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3003         * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
3005 2014-08-04  Robert Dewar  <dewar@adacore.com>
3007         * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
3008         * s-fatgen.adb (Pred): Handle Float'First.
3009         (Succ): Handle Float'Last.
3011 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3013         * sem_util.adb (Is_Potentially_Unevaluated): If the original
3014         node of a parent node in the tree is a short-circuit operation,
3015         the node is potentially unevaluated.
3017 2014-08-04  Robert Dewar  <dewar@adacore.com>
3019         * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
3020         conversion from a real type to an integer type.
3022 2014-08-04  Yannick Moy  <moy@adacore.com>
3024         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
3025         sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
3026         exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
3027         sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
3028         SPARK_05 instead of SPARK.
3030 2014-08-04  Robert Dewar  <dewar@adacore.com>
3032         * sem.ads: Minor reformatting.
3033         * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
3034         reformatting.
3035         (Analyze_Aspect_Specifications, case Convention): Put External_Name
3036         before Link_Name when constructing pragma.
3038 2014-08-04  Yannick Moy  <moy@adacore.com>
3040         * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
3041         to True during analysis of a default component expression.
3042         (Semantics): Save and restore In_Default_Expr around analysis.
3043         * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
3044         Call new wrapper Preanalyze_Default_Expression.
3045         (Preanalyze_Default_Expression): New wrapper on
3046         Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
3047         * sem_res.adb (Resolve_Call): Mark calls inside default
3048         expressions as not inlined in GNATprove mode.
3050 2014-08-04  Robert Dewar  <dewar@adacore.com>
3052         * exp_ch4.adb: Minor reformatting.
3054 2014-08-04  Olivier Hainque  <hainque@adacore.com>
3056         * link.c: remove const on __gnat_objlist_file_supported for AIX
3058 2014-08-04  Robert Dewar  <dewar@adacore.com>
3060         * sem_util.ads: Minor addition of comment.
3062 2014-08-04  Vincent Celier  <celier@adacore.com>
3064         * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
3065         all projects, including aggregate and aggregate library projects.
3067 2014-08-04  Yannick Moy  <moy@adacore.com>
3069         * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
3071 2014-08-04  Robert Dewar  <dewar@adacore.com>
3073         * sem_eval.adb (Test_In_Range): Always in range for
3074         Is_Known_Valid target type, where input type has smaller or
3075         equal size and does not have biased rep.
3077 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3079         * sem_attr.adb (Eval_Attribute): Constrained is not treated as
3080         a static attribute, and the Static flag must not be set on it
3081         during resolution. It may be constant-folded during expansion,
3082         but if expansion is disabled it is not a static expression.
3084 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3086         * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
3087         referenced once resolution has taken place.
3089 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3091         * exp_ch4.adb (Expand_N_Type_Conversion): Don't
3092         compare access levels in the case where the target type is the
3093         anonymous type of an access discriminant, since the level of
3094         such types is defined based on context. Add comment.
3096 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3098         * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
3099         cases related to equality.  Remove the special processing
3100         for dispatching abstract subprograms as it is not needed.
3101         (Interpretation_Error): Add a specialized error message for
3102         predefined operators.
3103         (Is_Intrinsic_Equality): New routine.
3104         (Is_Suitable_Candidate): New routine.
3106 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3108         * checks.adb: Minor comment reformatting.
3110 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3112         * restrict.adb (Check_Restriction): For checked max_parameter
3113         restrictions reset Violated flag, so that subsequent violations
3114         are properly detected.
3116 2014-08-04  Robert Dewar  <dewar@adacore.com>
3118         * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
3119         mode.
3120         (Process_Discriminants): Fix bad test of GNATprove mode
3122 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3124         * sem_ch12.adb (Instantiate_Formal_Subprogram):
3125         Move variable to their own section. Propagate the source
3126         location of a formal parameter to the corresponding formal of
3127         the subprogram renaming declaration. Code reformatting.
3129 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3131         * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
3133 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3135         * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
3136         if error already detected.  We may reach this point in spite of
3137         previous errors when compiling with -gnatq, to force all possible
3138         errors (this is the usual ACATS mode).
3140 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3142         * checks.adb (Generate_Range_Check): For the case of converting
3143         a base type with a larger range to a smaller target subtype, only
3144         use unchecked conversions of bounds in the range check followed
3145         by conversion in the case where both types are discrete. In other
3146         cases, convert to the target base type and save in a temporary
3147         followed by the range check.
3148         (Convert_And_Check_Range): New procedure factoring code to save
3149         conversion to a temporary followed by a range check (called two
3150         places in Generate_Range_Check).
3151         * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
3152         check-in, to generate range checks for conversions between
3153         any floating-point types rather than limiting it to matching
3154         base types.
3156 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3158         * gcc-interface/trans.c: Use hash_set instead of pointer_set.
3160 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3162         * restrict.adb (Update_Restrictions): For restrictions with a
3163         maximum parameter (e.g. number of protected entries in Ravenscar)
3164         do not compute the maximum of the violation over several objects,
3165         because the restriction is per-object.
3166         (Check_Restriction): After possible message, reset the value
3167         of of a checked max_parameter restriction to zero, to prevent
3168         cascaded errors.
3169         * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
3170         (sub)type to determine whether derived type should be on the
3171         list of private dependents of a type whose full view may become
3172         visible subsequently.
3174 2014-08-01  Olivier Hainque  <hainque@adacore.com>
3176         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
3177         $(CXX) instead of ../../xg++ to feed CXX.
3178         (CXX_LFLAGS): Remove. Now unused as the proper flags
3179         are expected to be included in the CXX variable.
3181 2014-08-01  Pierre-Marie Derodat  <derodat@adacore.com>
3183         * gcc-interface/decl.c (elaborate_expression_1): Return the new
3184         variable when debug info is needed and the expression is not
3185         constant.  Tag as external only new variables that are global.
3186         (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
3187         * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
3188         attributes for IN array parameters when their actual subtype
3189         needs debug info.
3190         (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
3191         * gcc-interface/gigi.h (process_deferred_decl_context): New.
3192         * gcc-interface/utils.c (gnat_write_global_declarations): Do not
3193         emit debug info for ignored global declarations.
3194         (struct deferred_decl_context_node,
3195         add_deferred_decl_context, add_deferred_type_context,
3196         compute_deferred_decl_context, defer_or_set_type_context,
3197         deferred_decl_context_queue, get_debug_scope,
3198         get_global_context, process_deferred_decl_context): New.
3199         (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
3200         computation machinery to rely on the GNAT Scope attribute.
3202 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3204         * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
3206 2014-08-01  Robert Dewar  <dewar@adacore.com>
3208         * sem_ch8.adb, opt.ads Minor comment updates.
3210 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3212         * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
3213         from the side effects removal machinery.
3214         * exp_util.adb (Duplicate_Subexpr): Add formal parameter
3215         Renaming_Req. Update the nested call to Remove_Side_Effects.
3216         (Duplicate_Subexpr_No_Checks): Add formal parameter
3217         Renaming_Req. Update the nested call to Remove_Side_Effects.
3218         (Duplicate_Subexpr_Move_Checks): Add formal parameter
3219         Renaming_Req. Update the nested call to Remove_Side_Effects.
3220         (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
3221         an object renaming declaration when the caller requests it.
3222         * exp_util.ads (Duplicate_Subexpr): Add formal
3223         parameter Renaming_Req. Update comment on usage.
3224         (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
3225         (Duplicate_Subexpr_Move_Checks): Add formal parameter
3226         Renaming_Req.
3228 2014-08-01  Bob Duff  <duff@adacore.com>
3230         * gnat_ugn.texi: Minor updates.
3232 2014-08-01  Robert Dewar  <dewar@adacore.com>
3234         * atree.adb: Minor reformatting.
3236 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3238         * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
3239         private extension, get stored constraint, if any, from full view.
3241 2014-08-01  Robert Dewar  <dewar@adacore.com>
3243         * opt.ads (No_Elab_Code_All_Pragma): New global variable.
3244         * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
3245         (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
3246         (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
3247         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
3248         Remove code for checking with's, now in sem_ch10.adb, set
3249         Opt.No_Elab_Code_All_Pragma.
3251 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3253         * sem_ch3.adb (Copy_And_Build): Copy the declaration for
3254         access types as well and adjust the subtype mark if there are
3255         no constraints.
3257 2014-08-01  Robert Dewar  <dewar@adacore.com>
3259         * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
3261 2014-08-01  Robert Dewar  <dewar@adacore.com>
3263         * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
3265 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3267         * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
3268         * exp_ch4.adb (Expand_Composite_Equality): Add conversion
3269         of the actuals in the case of untagged record types too.
3270         * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
3271         full derivation of a derived private type, extracted from...
3272         (Copy_And_Build): In the case of record types and most
3273         enumeration types, copy the original declaration.  Build the
3274         full derivation according to the approach extracted from...
3275         (Build_Derived_Private_Type): ...here.  Call Build_Full_Derivation
3276         to create the full derivation in all existing cases and also
3277         create it in the no-discriminants/discriminants case instead of
3278         deriving directly from the full view.
3279         (Is_Visible_Component): Remove obsolete code.
3280         * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
3282 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3284         * fe.h (GNAT_Mode): New.
3285         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
3286         reverse SSO in GNAT mode.
3288 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3290         * freeze.adb: Minor reformatting.
3292 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3294         * exp_ch3.adb (Default_Initialize_Object): Do not generate
3295         default initialization for an imported object.
3297 2014-08-01  Olivier Hainque  <hainque@adacore.com>
3299         * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
3300         to the expected FARPROC type instead of void *.
3301         * adaint.c (f2t): Expect __time64_t * as second argument, in line with
3302         other datastructures.
3303         (__gnat_file_time_name_attr): Adjust accordingly.
3304         (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
3305         in line with uses.
3306         (__gnat_check_OWNER_ACL): Declare AccessMode
3307         parameter as ACCESS_MODE instead of DWORD, in line with callers
3308         and uses.
3309         (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
3310         unused on win32.  Correct cast of "args" on call to spawnvp.
3311         (add_handle): Cast realloc calls into their destination types.
3312         (win32_wait): Remove declaration and initialization of unused variable.
3313         (__gnat_locate_exec_on_path): Cast alloca calls
3314         into their destination types.
3315         * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
3316         their destination types.
3318 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
3320         * exp_ch4.adb (Expand_N_Type_Conversion): Expand
3321         range checks for conversions between floating-point subtypes
3322         when the target and source types are the same.
3324 2014-08-01  Robert Dewar  <dewar@adacore.com>
3326         * exp_aggr.adb: Minor reformatting.
3328 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3330         * sem_ch13.adb (Check_Indexing_Functions): Initialize
3331         Indexing_Found.
3333 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3335         * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
3336         ALI file before we call the backend (so that gnat2why can append
3337         to it).
3339 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3341         * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
3342         Expand_Packed_Element_Reference): Pass additional Rev_SSO
3343         parameter indicating whether the packed array type has reverse
3344         scalar storage order to the s-pack* Set/Get routines.
3345         * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
3346         indicating reverse scalar storage order.
3348 2014-08-01  Robert Dewar  <dewar@adacore.com>
3350         * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
3351         for initial component value in -gnatc or GNATprove mode.
3352         (Process_Discriminants): Same fix for default discriminant values.
3353         * sem_eval.adb (Test_In_Range): Improve accuracy of results by
3354         checking subtypes.
3356 2014-08-01  Robert Dewar  <dewar@adacore.com>
3358         * sinfo.ads: Minor comment clarification.
3360 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3362         * sem_ch13.adb (Analyze_Aspect_Specifications): Code
3363         reformatting. Store the generated pragma Import in the related
3364         subprogram as routine Wrap_Imported_Subprogram will need it later.
3365         * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
3366         a private type with discriminants is considered to fall in the
3367         category of unconstrained or tagged items.
3369 2014-08-01  Arnaud charlet  <charlet@adacore.com>
3371         * s-os_lib.adb (Open_Append): New functions to open a file for
3372         appending. This binds to the already existing (but not used)
3373         __gnat_open_append.
3374         * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
3375         to open a file for appending.
3376         * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
3377         to open the ALI file for appending.
3379 2014-08-01  Robert Dewar  <dewar@adacore.com>
3381         * sem_ch8.adb: Minor reformatting.
3383 2014-08-01  Yannick Moy  <moy@adacore.com>
3385         * sem_ch13.adb (Insert_Pragma): Add special case for precondition
3386         pragmas from aspects, which need to be inserted in proper order.
3388 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3390         * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
3391         Handle properly a type extension that constrains a discriminated
3392         derived type that renames other discriminants of an ancestor.
3394 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3396         * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
3397         s-pack25.adb: Fix minor inconsistencies and typos.
3399 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3401         * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
3402         globals and move certain variables to the "local
3403         variable" section. Call Build_Class_Wide_Wrapper when
3404         renaming a default actual subprogram with a class-wide actual.
3405         (Build_Class_Wide_Wrapper): New routine.
3406         (Check_Class_Wide_Actual): Removed.
3407         (Find_Renamed_Entity): Code reformatting.
3408         (Has_Class_Wide_Actual): Alphabetize. Change the
3409         logic of the predicate as the renamed name may not necessarely
3410         denote the correct subprogram.
3412 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3414         * sem_ch7.adb: Fix minor oversight in condition.
3416 2014-08-01  Bob Duff  <duff@adacore.com>
3418         * projects.texi: Minor documentation improvements.
3420 2014-08-01  Robert Dewar  <dewar@adacore.com>
3422         * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
3423         * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
3424         * lib-load.adb: Initialize No_Elab_Code_All field.
3425         * lib-writ.adb: Initialize No_Elab_Code_All.
3426         * lib.ads, lib.adb: New field No_Elab_Code_All.
3427         * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
3428         * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
3429         longer exists.
3430         * sem_ch10.adb (Analyze_Context): Processing for
3431         No_Elaboration_Code_All removed.
3432         (Generate_Parent_References): Moved to Sem_Util.
3433         * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
3434         * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
3435         Sem_Ch10.
3436         * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
3437         * targparm.adb: Minor comment updates Add comments on ignoring
3438         pragma No_Elaboration_Code_All.
3440 2014-08-01  Nicolas Roche  <roche@adacore.com>
3442         * adaint.c (__gnat_set_close_on_exec): Ensure that
3443         we can unset "close_on_exec" flag.
3445 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3447         * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
3448         the parameter specs of the wrapper program for a primitive operation
3449         of a synchronized type that implements an interface, copy the
3450         null_exclusion indicator as well.
3452 2014-08-01  Robert Dewar  <dewar@adacore.com>
3454         * sem_eval.ads: Minor reformatting.
3456 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3458         * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
3459         to go down the chain of private derivations.
3460         * freeze.adb (Freeze_Entity): Fix typo in comment.
3462 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3464         * sem_ch3.adb (Access_Type_Declaration): If designated type is
3465         a limited view, create a master entity (as is already done for
3466         class-wide types) in case the full view designates a type that
3467         contains tasks.
3468         * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
3469         and the designated type is a limited view, use the non-limited
3470         view if available.
3472 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3474         * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
3475         (DECL_FUNCTION_STUB): Likewise.
3476         (SET_DECL_FUNCTION_STUB): Likewise.
3477         (DECL_PARM_ALT_TYPE): Likewise.
3478         (SET_DECL_PARM_ALT_TYPE): Likewise.
3479         (TYPE_VAX_FLOATING_POINT_P): Delete.
3480         (TYPE_DIGITS_VALUE): Likewise.
3481         (SET_TYPE_DIGITS_VALUE): Likewise.
3482         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
3483         (malloc32_decl): Delete.
3484         (build_vms_descriptor): Likewise.
3485         (build_vms_descriptor32): Likewise.
3486         (fill_vms_descriptor): Likewise.
3487         (convert_vms_descriptor): Likewise.
3488         (TARGET_ABI_OPEN_VMS): Likewise.
3489         (TARGET_MALLOC64): Likewise.
3490         * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
3491         (gnat_to_gnu_entity): Call it to add the original type as a parallel
3492         type to the implementation type of a packed array type.
3493         <E_Procedure>: Remove now obsolete kludge.
3494         <E_Exception>: Delete obsolete comment.
3495         <object>: Small tweak.
3496         <E_Subprogram_Type>: Remove support for stub subprograms, as well as
3497         for the descriptor passing mechanism.
3498         (gnat_to_gnu_param): Likewise.
3499         * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
3500         (gnat_print_type): Adjust.
3501         * gcc-interface/trans.c (gigi): Remove obsolete initializations.
3502         (vms_builtin_establish_handler_decl): Delete.
3503         (gnat_vms_condition_handler_decl): Likewise.
3504         (establish_gnat_vms_condition_handler): Likewise.
3505         (build_function_stub): Likewise.
3506         (Subprogram_Body_to_gnu): Do not call above functions.
3507         (Call_to_gnu): Remove support for the descriptor passing mechanism.
3508         * gcc-interface/utils.c (make_descriptor_field): Delete.
3509         (build_vms_descriptor32): Likewise.
3510         (build_vms_descriptor): Likewise.
3511         (fill_vms_descriptor): Likewise.
3512         (convert_vms_descriptor64): Likewise.
3513         (convert_vms_descriptor32): Likewise.
3514         (convert_vms_descriptor): Likewise.
3515         * gcc-interface/utils.c (unchecked_convert): Likewise.
3516         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
3518 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3520         * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
3521         type and get_unpadded_type for the longest FP type.
3522         (Attribute_to_gnu) <Machine>: Compare the precision of the types.
3523         (convert_with_check): Adjust formatting and remove FIXME.
3525 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3527         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3528         Do not convert the RM bounds to the base type.
3529         (E_Floating_Point_Subtype): Likewise.
3530         (E_Array_Subtype): Convert the bounds to the base type.
3531         * gcc-interface/trans.c (get_type_length): New function.
3532         (Attribute_to_gnu) <Range_Length>: Call it.
3533         <Length>: Likewise.
3534         (Loop_Statement_to_gnu): Convert the bounds to the base type.
3535         (gnat_to_gnu) <N_In>: Likewise.
3536         * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
3537         bounds to the base type.
3538         (create_range_type): Likewise.
3539         (convert): Convert the bounds to the base type for biased types.
3540         * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
3541         base type.
3543 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3545         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
3546         incorrect implicit type derivation.
3547         * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
3548         to the base type.
3550 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3552         * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
3553         prefix of attribute Loop_Entry.
3554         * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
3555         Loop_Variant with respect to an enclosing loop (if any).
3556         (Contains_Loop_Entry): Update the parameter profile and all
3557         calls to this routine.
3558         * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
3559         for the corresponding body before determining the nature of the
3560         ultimate alias's declarative node.
3562 2014-08-01  Robert Dewar  <dewar@adacore.com>
3564         * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
3566 2014-08-01  Robert Dewar  <dewar@adacore.com>
3568         * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
3569         constraint error node since it is a list member.
3571 2014-08-01  Robert Dewar  <dewar@adacore.com>
3573         * sem_warn.adb: Minor reformatting.
3575 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3577         * einfo.adb (Underlying_Type): Return the underlying full view
3578         of a private type if present.
3579         * freeze.adb (Freeze_Entity):
3580         Build a single freeze node for partial, full and underlying full
3581         views, if any.
3582         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
3583         missing guard before the access to the Underlying_Full_View.
3584         * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
3585         full view if present.
3586         * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
3588 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3590         * sem_res.adb (Resolve_Entry_Call): When an entry has
3591         preconditions, the entry call is wrapped in a procedure call
3592         that incorporates the precondition checks. To prevent a double
3593         expansion, with possible duplication of extra formals, that
3594         procedure call must only be pre-analyzed and resolved. Expansion
3595         takes place upon return to the caller Resolve_Call.
3597 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3599         * sem_res.adb (Resolve_Call): Do not perform
3600         GNATprove-specific inlining while within a generic.
3602 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3604         * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
3605         case expression with incompatible alternatives, when the first
3606         alternative is overloaded.
3608 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3610         * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
3611         to create the name of the parameterless call, rather than
3612         New_Copy, to preserve the tree structure when the name is a
3613         complex expression, e.g. a selected component that denotes a
3614         protected operation, whose prefix is itself a selected component.
3616 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3618         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
3619         Unit_Declaration_Node to retrieve body when inlining, to handle
3620         properly subprogram child units.
3622 2014-08-01  Robert Dewar  <dewar@adacore.com>
3624         * sem_attr.adb: Minor reformatting.
3626 2014-08-01  Vincent Celier  <celier@adacore.com>
3628         * debug.adb: Minor documentation addition for -dn switch.
3630 2014-08-01  Robert Dewar  <dewar@adacore.com>
3632         * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
3633         sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
3634         documentation of Is_Static_Expression vs Is_OK_Static_Expression.
3635         In several places, use the Is_OK version as suggested by the spec.
3637 2014-08-01  Vincent Celier  <celier@adacore.com>
3639         * gnatcmd.adb: Revert last change which was not correct.
3641 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3643         * freeze.adb (Find_Constant): Ensure that the constant being
3644         inspected is still an object declaration (i.e. not a renaming).
3646 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3648         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
3649         An attribute_reference to Loop_Entry denotes an iterator
3650         specification: its prefix is an object, as is the case for 'Old.
3651         b) If the domain of iteration is an expression whose type has
3652         the Iterable aspect defined, this is an iterator specification.
3654 2014-08-01  Robert Dewar  <dewar@adacore.com>
3656         * gnatcmd.adb: Minor reformatting.
3658 2014-08-01  Robert Dewar  <dewar@adacore.com>
3660         * atree.ads (Info_Messages): New counter.
3661         * err_vars.ads: Minor comment update.
3662         * errout.adb (Delete_Warning_And_Continuations): Deal
3663         with new Info_Messages counter.
3664         (Error_Msg_Internal): ditto.
3665         (Delete_Warning): ditto.
3666         (Initialize): ditto.
3667         (Write_Error_Summary): ditto.
3668         (Output_Messages): ditto.
3669         (To_Be_Removed): ditto.
3670         * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
3671         (Compilation_Errors): ditto.
3672         * errutil.adb (Error_Msg): Deal with Info_Messages counter.
3673         (Finalize): ditto.
3674         (Initialize): ditto.
3675         * sem_prag.adb (Analyze_Pragma): Minor comment addition.
3676         * gnat_ugn.texi: Document that -gnatwe does not affect info
3677         messages.
3679 2014-08-01  Robert Dewar  <dewar@adacore.com>
3681         * debug.adb: Document debug switch -gnatd.Z.
3682         * sem.adb (Semantics): Force expansion on in no or configurable
3683         run time mode.
3685 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3687         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
3688         unchecked conversion denotes an iterator specification. Such a
3689         conversion will be inserted in the context of an inlined call
3690         when needed, and its argument is always an object.
3692 2014-08-01  Robert Dewar  <dewar@adacore.com>
3694         * make.adb, makeutl.ads: Minor reformatting.
3695         * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
3696         Back_End_Inlining.
3698 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3700         * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
3702 2014-08-01  Javier Miranda  <miranda@adacore.com>
3704         * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
3705         -gnatd.z.
3706         * debug.adb: Updating documentation.
3707         * exp_ch6.adb (Expand_Call): Remove assertion.
3709 2014-08-01  Robert Dewar  <dewar@adacore.com>
3711         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
3712         sem_res.adb: Minor reformatting.
3714 2014-08-01  Vincent Celier  <celier@adacore.com>
3716         * make.adb (Initialize): Set Keep_Temporary_Files to True when
3717         -dn is specified.
3718         * makeusg.adb: Add line for new switch --keep-temp-files.
3719         * makeutl.ads (Keep_Temp_Files_Option): New constant String.
3720         * opt.ads (Keep_Temporary_Files): Document that it is also used
3721         by gnatmake and gprbuild.
3722         * switch-m.adb: Recognize new switch --keep-temp-files.
3724 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3726         * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
3727         * exp_ch9.adb (Make_Task_Create_Call): ... here.
3729 2014-08-01  Vincent Celier  <celier@adacore.com>
3731         * gnat1drv.adb: Do not try to get the target parameters when
3732         invoked with -gnats.
3734 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3736         * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
3737         declaration subject to No_Initialization.
3739 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3741         * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
3742         is a subtype with dynamic predicates, or a non-static subtype
3743         with predicates.
3744         * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
3745         expression if subtype has a dynamic predicate.
3746         (Constrain_Index): Reject subtype indication if subtype mark
3747         has predicates.
3748         (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
3749         (Make_Index): If index is a subtype indication, itype inhereits
3750         predicate flags for subsequent testing.
3751         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
3752         procedure Check_Predicate_Use, to reject illegal uses of domains
3753         of iteration that have dynamic predicates.
3754         * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
3755         indication to which a predicate applies.
3756         * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
3757         prevent cascaded errors when subtype is invalid.
3759 2014-08-01  Robert Dewar  <dewar@adacore.com>
3761         * sem_ch10.adb: Minor reformatting.
3763 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3765         * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
3766         because either type may be a subtype of the other.
3768 2014-08-01  Vincent Celier  <celier@adacore.com>
3770         * makeusg.adb: Add documentation for debug switch -dn.
3772 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3774         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
3775         expression with standard operator and type, for pretty-printing
3776         use, when in ASIS_Mode. When generating code dimensional analysis
3777         is not involved and dimension expressions are handled statically,
3778         and other operators are resolved in the usual way.
3780 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3782         * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
3783         Parent_Subtype in ASIS mode, leads to several failures.
3784         * sem_ch4.adb (Analyze_Selected_Component): In an instance,
3785         if the prefix is a type extension, check whether component is
3786         declared in the parent type, possibly in a parent unit. Needed
3787         in ASIS mode when Parent_Subtype is not set.
3789 2014-08-01  Robert Dewar  <dewar@adacore.com>
3791         * sem_prag.adb: Minor reformatting.
3792         * s-regpat.adb: Minor reformatting.
3793         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
3794         Treat_As_Volatile on constants.
3796 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3798         * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
3800 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3802         * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
3803         warning on a with_clause created for the renaming of a parent
3804         unit in an explicit with_clause.
3806 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3808         * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
3809         Set Is_Imported flag at once, to simplify subsequent legality
3810         checks. Reject the aspect on an object whose declaration has an
3811         explicit initial value.
3812         * sem_prag.adb (Process_Import_Or_Interface): Use original node
3813         to check legality of an initial value for an imported entity.
3814         Set Is_Imported flag in case of error to prevent cascaded errors.
3815         Do not set the Is_Imported flag if the pragma comes from an
3816         aspect, because it is already done when analyzing the aspect.
3818 2014-08-01  Emmanuel Briot  <briot@adacore.com>
3820         * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
3822 2014-08-01  Robert Dewar  <dewar@adacore.com>
3824         * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
3825         identifier name.
3827 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3829         * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
3830         checks when the related variable comes from source.
3831         * sem_res.adb (Resolve_Actuals): Enable the volatility checks
3832         when the related actual parameter comes from source. Update comment.
3833         * freeze.adb (Freeze_Record_Type): Do not freeze the designated
3834         type of an array of pointers when the designated type is
3835         class-wide and its root type is the record being currently frozen.
3837 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3839         * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
3840         of renaming declaration created for domain of iteration.
3841         * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
3842         for error messages on aggregates whose index subtypes have
3843         predicates. The new placement avoids posting messages on previous
3844         subtype declarations rather than on the aggregate itself.
3845         * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
3846         Add_Dispatching_Operation, to handle properly the overriding of
3847         the predefined operations on controlled types, when the partial
3848         view of a type is not visibly controlled.
3850 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
3852         * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
3853         appendix.
3855 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3857         * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
3858         assertion check as the attribute is defined for all entities.
3859         (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
3860         check as the attribute is defined for all entities.
3861         * einfo.ads Update the documentation of attribute
3862         Is_Hidden_Non_Overridden_Subprogram.
3863         * sem_ch7.adb (Install_Package_Entity): No need to check the
3864         entity kind of the Id.
3865         * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
3866         usage. Ensure that the homographs are of the same entity kind
3867         and not fully conformant.
3868         (Hide_Non_Overridden_Subprograms): Update the comment on usage.
3870 2014-08-01  Robert Dewar  <dewar@adacore.com>
3872         * inline.adb: Minor code reorganization.
3873         * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
3875 2014-08-01  Robert Dewar  <dewar@adacore.com>
3877         * inline.adb, s-os_lib.ads: Minor reformatting.
3879 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3881         * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
3882         * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
3883         hooks.
3885 2014-08-01  Yannick Moy  <moy@adacore.com>
3887         * inline.adb (Cannot_Inline): Issue info message instead of
3888         warning for subprograms not inlined in GNATprove mode.
3889         * sem_res.adb (Resolve_Call): Take body into account for deciding
3890         whether subprogram can be inlined in GNATprove mode or not.
3892 2014-08-01  Claire Dross  <dross@adacore.com>
3894         * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
3895         of Get_First_Parent_With_External_Axiomatization_For_Entity for
3896         shorter.
3897         * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
3898         for parameters of packages with external axiomatization.
3900 2014-08-01  Robert Dewar  <dewar@adacore.com>
3902         * sem_res.adb: Minor comment addition.
3904 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3906         * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
3907         s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
3908         no longer used.
3909         * s-os_lib.ads: Minor reformatting.
3911 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3913         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
3914         completely previous code since only GCC back-ends are prepared
3915         to handle e.g. 'Machine attribute.
3916         * targparm.adb, targparm.ads: Remove remaining refs and
3917         handling of OpenVMS_On_Target, VAX_Float_On_Target and
3918         RTX_RTSS_Kernel_Module_On_Target.
3919         * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
3920         no longer used.
3922 2014-08-01  Robert Dewar  <dewar@adacore.com>
3924         * exp_dist.adb, exp_attr.adb: Minor reformatting.
3925         * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
3926         a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
3927         sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
3928         g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
3929         improper use of shall.
3931 2014-08-01  Robert Dewar  <dewar@adacore.com>
3933         * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
3934         exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
3935         exp_ch3.adb: Minor reformatting & code reorganization.
3937 2014-08-01  Robert Dewar  <dewar@adacore.com>
3939         * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
3940         * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
3941         s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3942         s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
3943         s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
3944         code.
3945         * gcc-interface/decl.c, gcc-interface/Makefile.in,
3946         gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
3948 2014-08-01  Pascal Obry  <obry@adacore.com>
3950         * s-os_lib.ads: Rename File_Size to Large_File_Size.
3952 2014-08-01  Robert Dewar  <dewar@adacore.com>
3954         * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3955         a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
3956         a-numaux-libc-x86.ads: Fix bad package header comments.
3957         * elists.ads, elists.adb (Append_New_Elmt): New procedure.
3958         * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
3959         checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
3960         sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
3961         targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
3962         stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
3963         s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
3964         s-os_lib.adb: Remove VMS-specific code.
3966 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3968         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
3969         previous state in CodePeer_Mode.
3971 2014-08-01  Robert Dewar  <dewar@adacore.com>
3973         * hostparm.ads: Put back definition of OpenVMS as False to aid
3974         the transition process.
3975         * sem_ch7.adb: Minor reformatting.
3976         * prj-env.adb: Minor code fix.
3977         * gnat_rm.texi: Complete previous change.
3978         * sem_ch3.adb: Minor reformatting.
3979         * sem_ch6.adb: Minor reformatting.
3980         * sem_elab.adb: Minor reformatting.
3981         * exp_strm.adb: Complete previous change.
3983 2014-08-01  Vincent Celier  <celier@adacore.com>
3985         * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
3986         warning when a constant is unreferenced and its type has pragma
3987         Unreferenced_Objects.
3989 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3991         * einfo.adb: Flag2 is now known as
3992         Is_Hidden_Non_Overridden_Subprogram.
3993         (Is_Hidden_Non_Overridden_Subprogram): New routine.
3994         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
3995         (Write_Entity_Fields): Output Flag2.
3996         * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
3997         along with occurrences in entities.
3998         (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
3999         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
4000         and pragma Inline.
4001         * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
4002         declared non-overriden homographs into visibility.
4003         * sem_ch13.adb (Freeze_Entity_Checks): Hide all
4004         implicitly declared non-overriden homographs.
4005         (Hide_Non_Overridden_Subprograms): New routine.
4007 2014-08-01  Robert Dewar  <dewar@adacore.com>
4009         * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
4010         VMS-specific code.
4011         * prj-conf.adb: Minor reformatting.
4012         * xr_tabls.adb (Read_File): Restore code which was enabled on
4013         non VMS platforms before.
4014         * prj-env.adb (Initialize_Default_Project_Path): Ditto.
4015         * sem_ch5.adb: Minor reformatting.
4016         * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
4017         sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
4018         Remove VMS-specific code.
4020 2014-08-01  Vincent Celier  <celier@adacore.com>
4022         * make.adb (Await_Compile): Remove loop that was only needed
4023         for VMS.
4025 2014-08-01  Robert Dewar  <dewar@adacore.com>
4027         * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
4028         a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
4029         a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
4030         einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
4031         exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
4032         fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
4033         g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
4034         g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
4035         krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
4036         mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
4037         osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
4038         prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
4039         rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
4040         s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
4041         s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
4042         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
4043         s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
4044         s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
4045         sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
4046         sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
4047         sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
4048         treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
4049         specific code and comments.
4051 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4053         * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
4054         Check_Reverse_Iteration, to verify the legality of the Reverse
4055         indicator on various container types, and to detect illegal
4056         reverse iterations on containers that only supoort forward
4057         iteration.
4059 2014-08-01  Vincent Celier  <celier@adacore.com>
4061         * gnatcmd.adb: Remove the VMS specific stuff.  Integrate in
4062         procedure GNATCmd the relevant declarations from packages VMS_Cmds
4063         and VMS_Conv.
4064         * gnatcmd.ads: Update comments to remove any trace of VMS
4066 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4068         * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
4069         defaulted actual that is an operator, before building wrapper
4070         for it in GNATprove mode. Restrict construction of wrapper to
4071         actuals that are operators.
4073 2014-08-01  Vincent Celier  <celier@adacore.com>
4075         * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
4076         specific packages no longer needed.
4078 2014-08-01  Pascal Obry  <obry@adacore.com>
4080         * s-os_lib.ads (System.CRTL): Move with clause to body.
4081         (File_Size): New type.
4082         (File_Length64): Use it.
4083         (File_Length): Restore previous spec returning a Long_Integer.
4084         * s-os_lib.adb (System.CRTL): Move with clause here.
4086 2014-08-01  Vincent Celier  <celier@adacore.com>
4088         * mlib-prj.adb: Update comments to remove any mention of VMS.
4090 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4092         * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
4093         xgnatugn.adb and ug_words.
4095 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4097         * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
4098         expansion can be avoid for Machine, Model and Rounding.
4099         (Is_Inline_Floating_Point_Attribute): Return true for Machine
4100         & Model, as well as Rounding if wrapped in a conversion to an
4101         integer type.
4102         * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
4103         * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
4104         * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
4105         * gcc-interface/misc.c (enumerate_modes): Compute it.
4106         * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
4107         (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
4108         Machine and Model.
4109         (Attribute_to_gnu) <Attr_Model>: New case.
4110         <Attr_Machine>): Likewise.
4111         (convert_with_check): Test
4112         fp_arith_may_widen variable.
4114 2014-08-01  Pascal Obry  <obry@adacore.com>
4116         * adaint.h (GNAT_FOPEN): New definition for Windows.
4117         (GNAT_OPEN): Likewise.
4118         (GNAT_STAT): Likewise.
4119         (GNAT_FSTAT): Likewise.
4120         (GNAT_LSTAT): Likewise.
4121         (GNAT_STRUCT_STAT): Likewise.
4122         * adaint.c (__gnat_stat): Fix computation of file size for
4123         Windows.
4125 2014-08-01  Vincent Celier  <celier@adacore.com>
4127         * Makefile.rtl: Minor comment update.
4129 2014-08-01  Vincent Celier  <celier@adacore.com>
4131         * Make-generated.in: Remove dependencies for vms-help.
4133 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
4135         * makeutl.ads, opt.ads: Minor grammar fixes.
4136         * makeutl.adb: Minor code reorganization.
4138 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4140         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
4141         gnatsym.adb: Remove gnatsym (VMS only tool).
4143 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
4145         * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
4146         conditionalization from gnat_ugn.texi and projects.texi, and updated
4147         (considerably simplified) xgnatugn.adb, to be removed soon.
4149 2014-08-01  Vincent Celier  <celier@adacore.com>
4151         * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
4152         * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
4153         instead of Debug.Debug_Flag_S.
4154         * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
4155         No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
4156         error messages.
4157         * makeutl.ads (No_Exit_Message_Option): New constant string
4158         for switch --no-exit-message.
4159         * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
4160         * switch-m.adb (Scan_Make_Switches): Recognize new switch
4161         --no-exit-message.
4163 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4165         * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
4166         * gcc-interface/Make-lang.in: Remove exp_vfpt.o
4168 2014-08-01  Javier Miranda  <miranda@adacore.com>
4170         * inline.ads (Inlined_Calls, Backend_Calls,
4171         Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
4172         moved to inline.adb (Cannot_Inline): Update documentation.
4173         (Check_And_Build_Body_To_Inline): Renamed.
4174         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
4175         * inline.adb (Check_Inlining_Restrictions): New local variable.
4176         (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
4177         Backend_Not_Inlined_Subps): Declarations moved here
4178         from inline.ads (Number_Of_Statements): Removed.
4179         (Remove_Pragmas): Avoid duplicated version of this subprogram.
4180         (Build_Body_To_Inline): Code cleanup.
4181         (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
4182         (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
4183         (Check_Body_To_Inline): Removed.
4184         (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
4185         (Has_Excluded_Declaration): No action if not
4186         Check_Inlining_Restrictions.
4187         (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
4188         (Initialize): Initialize the lists of inlined calls and subprograms.
4189         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
4190         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
4191         to Check_And_Build_Body_To_Inline since it has been renamed as
4192         Check_And_Split_Unconstrained_Function
4193         * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
4194         package inline.
4195         * gnat1drv.adb Update call to Inline.List_Inlining_Info.
4197 2014-08-01  Vincent Celier  <celier@adacore.com>
4199         * debug.adb: Add documentation for new debug switch -ds.
4200         * make.adb (List_Bad_Compilations): Do not issue any message
4201         when switch -ds is specified.
4202         * makeutl.adb (Fail_Program): Do not issue any message when
4203         -ds is specified.
4204         (Finish_Program): Ditto.
4206 2014-08-01  Robert Dewar  <dewar@adacore.com>
4208         * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
4209         s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
4210         s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
4211         indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
4212         indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
4213         s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
4214         s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
4215         s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
4216         s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
4217         s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
4218         s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
4219         s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
4220         g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
4221         s-tratas.ads: Minor fix to copyright notices.
4223 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4225         * sinfo.ads: Remove long obsolete comment.
4226 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4228         * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
4229         * sem_ch3.adb: Minor reformatting.
4231 2014-08-01  Pascal Obry  <obry@adacore.com>
4233         * cstreams.c: Only enable large file support on know supported
4234         platforms. Add missing defines/includes.
4236 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4238         * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
4239         No_Dynamic_Predicate_On_Actual, to enforce the generic contract
4240         on generic units that contain constructs that forbid subtypes
4241         with predicates.
4242         * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
4243         Inherit flags indicating the presence of predicates in subtype
4244         declarations with and without constraints.
4245         (Inherit_Predicate_Flags): Utility for the above.
4246         * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
4247         indicate that the actual cannot have predicates, and preserve
4248         warning. In an instance, report error if actual has predicates
4249         and the construct appears in a package declaration.
4250         * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
4251         for an actual with predicates, if the corresponding formal
4252         carries No_Predicate_On_Actual or (in the case of a loop)
4253         No_Dynamic_Predicate_On_Actual.
4254         * sem_ch13.adb (Build_Predicate_Functions); Do not build a
4255         Static_Predicate function if the type is non-static (in the
4256         presence of previous errors),
4257         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
4258         No_Dynamic_Predicate_On_Actual in a generic context, to enforce
4259         generic contract on actuals that cannot have predicates.
4261 2014-08-01  Pascal Obry  <obry@adacore.com>
4263         * a-direct.adb (C_Size): Returns an int64.
4264         * osint.adb (System.CRTL): New with clause.
4265         (File_Length.Internal): Returns an int64.
4266         * s-os_lib.ads (File_Length): Returns an int64.
4268 2014-08-01  Robert Dewar  <dewar@adacore.com>
4270         * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
4271         mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
4272         osint.adb, krunch.adb: Minor reformatting.
4274 2014-08-01  Robert Dewar  <dewar@adacore.com>
4276         * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
4277         sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
4278         sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
4279         Remove VMS-specific code.
4280         * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
4282 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4284         * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
4285         gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
4286         make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
4287         mlib.ads, tempdir.adb: Remove VMS handling.
4289 2014-08-01  Pascal Obry  <obry@adacore.com>
4291         * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
4292         (__gnat_named_file_length): Likewise.
4293         (__gnat_file_length_attr): Likewise.
4294         * a-direct.adb (C_Size): Use size_t as returned type.
4295         * osint.adb (File_Length): Adjust spec for Internal routine
4296         (returns size_t).
4297         * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
4298         (System.CRTL): With claused moved to spec.
4299         * s-os_lib.ads (System.CRTL): With clause moved to here.
4301 2014-08-01  Pascal Obry  <obry@adacore.com>
4303         * adaint.h, adaint.c (__gnat_open): Added.
4304         * s-crtl.ads (open): Import __gnat_open for large file support.
4306 2014-08-01  Robert Dewar  <dewar@adacore.com>
4308         * sem_case.adb (Dup_Choice): Improve message for integer constants.
4310 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4312         * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
4314 2014-08-01  Pascal Obry  <obry@adacore.com>
4316         * adaint.h (GNAT_OPEN): Defines as open64 where supported.
4317         * adaint.c (GNAT_OPEN): Uses new macro where needed.
4319 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4321         * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
4322         extracted from...
4323         (maybe_pad_type): ...here.  Call it to canonicalize the pad type.
4324         * gcc-interface/gigi.h: Update comment.
4326 2014-07-31  Javier Miranda  <miranda@adacore.com>
4328         * debug.adb Remove documentation of -gnatd.k (no longer needed).
4329         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
4330         * inline.ads (Backend_Inlined_Subps): New
4331         Elist.  (Backend_Not_Inlined_Subps): New Elist.
4332         (Has_Excluded_Declaration): Declaration previously located in
4333         * inline.adb (Has_Excluded_Statement): Declaration previously
4334         located in inline.adb
4335         * inline.adb (Has_Single_Return): Moved out of
4336         Build_Body_To_Inline to avoid having duplicated code.
4337         (Number_Of_Statements): New subprogram.
4338         (Register_Backend_Inlined_Subprogram): New subprogram.
4339         (Register_Backend_Not_Inlined_Subprogram): New subprogram.
4340         (Add_Inlined_Subprogram): Register backend inlined subprograms and
4341         also register subprograms that cannot be inlined by the backend.
4342         (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
4343         to avoid having duplicated code.  Replace occurrences of
4344         Debug_Flag_Dot_K by Back_End_Inlining.
4345         * sem_res.adb (Resolve_Call): Code cleanup.
4346         * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
4347         occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
4348         (List_Inlining_Info): Add listing of subprograms passed to the
4349         backend and listing of subprograms that cannot be inlined by
4350         the backend.
4351         * sem_ch12.adb, sem_ch3.adb Replace occurrences of
4352         Debug_Flag_Dot_K by Back_End_Inlining.
4354 2014-07-31  Robert Dewar  <dewar@adacore.com>
4356         * nlists.ads: Minor code fix (remove unwise Inline for
4357         List_Length).
4359 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4361         * einfo.adb: Remove VMS specific code.
4362         * exp_attr.adb: Remove VAX specific code.
4363         * set_targ.adb: Remove handling of VAX_Float.
4364         * sem_vfpt.adb: Remove references to Vax_Native.
4365         * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
4367 2014-07-31  Robert Dewar  <dewar@adacore.com>
4369         * sem_ch4.adb: Minor reformatting.
4371 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4373         * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
4374         to VMS. Misc clean ups.
4375         * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
4377 2014-07-31  Robert Dewar  <dewar@adacore.com>
4379         * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
4380         exp_prag.adb, frontend.adb, interfac.ads,
4381         par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
4382         s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
4383         sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
4384         snames.ads-tmpl: Remove obsolete VMS-specific code.
4386 2014-07-31  Robert Dewar  <dewar@adacore.com>
4388         * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
4390 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4392         * a-intnam-linux.ads: Minor: update obsolete comments.
4393         * s-taasde.adb: Minor: fix comment header.
4395 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4397         * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
4398         s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
4399         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
4400         g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
4401         s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
4402         s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
4403         s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
4404         a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
4405         symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
4406         symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4407         s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
4408         symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
4409         s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
4410         s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
4411         s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
4412         a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
4413         * namet.h (Is_Non_Ada_Error): Remove.
4415 2014-07-31  Robert Dewar  <dewar@adacore.com>
4417         * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
4418         reformatting.
4420 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4422         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
4423         which demonstrates the expansion of while loops subject to
4424         attribute 'Loop_Entry. The condition of a while loop along with
4425         related condition actions is now wrapped in a function.  Instead
4426         of repeating the condition, the expansion now calls the function.
4428 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4430         * sem_case.adb (Check_Against_Predicate): Correct off-by-one
4431         error when reporting of missing values in a case statement for
4432         a type with a static predicate.
4433         (Check_Choices): Reject a choice given by a subtype to which a
4434         Dynamic_Predicate applies.
4435         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
4436         Has_Dynamic_Predicate_Aspect flag from parent.
4438 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4440         * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
4441         cannot apply to a subtype of an incomplete type.
4442         (Is_Static_Choice): Treat an Others_Clause as static. The
4443         staticness of the expression and of the range are checked
4444         elsewhere.
4446 2014-07-31  Pascal Obry  <obry@adacore.com>
4448         * adaint.h (__gnat_ftell64): Added.
4449         (__gnat_fseek64): Added.
4450         (__int64): Added.
4451         * cstreams.c (__int64): Removed.
4453 2014-07-31  Pascal Obry  <obry@adacore.com>
4455         * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
4456         * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
4457         (ftell64): Always returns a 64bit value.
4458         * cstreams.c (int64): New definition.
4459         (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
4460         (__gnat_ftell64): Always returns a 64bit value. The implemenation now
4461         uses ftello() on UNIX.
4462         (__gnat_fseek64): Offset is always a 64bit value. The
4463         implementation now uses fseeko() on UNIX.
4464         * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
4465         always use fseek64 to set the offset.
4466         (Size): Simplify code, always use fseek64/ftell64.
4467         * s-direio.ads (Count): Now an int64.
4468         * g-socket.ads (Vector_Element): Adjust definition for Length
4469         to be a size_t. This matches the C definition and avoid using
4470         a 64bit integer on 32bit platforms now that Count is always 64bit.
4471         * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
4472         (C_Recvmsg): Change some conversion to account for change in
4473         Vector_Element.
4474         (C_Sendmsg): Likewise.
4476 2014-07-31  Robert Dewar  <dewar@adacore.com>
4478         * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
4479         * debug.adb: Remove documentation of -gnatdm flag.
4480         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
4481         -gnatdm flag.
4483 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4485         * lib-writ.adb (Write_Unit_Information): Fix case where U =
4486         No_Unit.
4488 2014-07-31  Claire Dross  <dross@adacore.com>
4490         * exp_util.adb, exp_util.ads
4491         (Get_First_Parent_With_External_Axiomatization_For_Entity):
4492         New routine to find the first parent of an entity with
4493         a pragma Annotate (GNATprove, External_Axiomatization).
4494         (Has_Annotate_Pragma_For_External_Axiomatization): New function
4495         to check if a package has a pragma Annotate (GNATprove,
4496         External_Axiomatization).
4497         * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
4498         flag on the entity for the declaration created for a formal
4499         subprogram in an instance. This is a renaming declaration,
4500         or in GNATprove_Mode the declaration of an expression function
4501         that captures the axiomatization of the actual.
4502         * sem_ch6.adb (Analyze_Expression_Function): For a
4503         Generic_Actual_Subprogram, place body immediately after the
4504         declaration because it may be used in a subsequent declaration
4505         in the instance.
4506         * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
4507         the actual is a function, not an operator. Handle functions with
4508         one and two parameters and binary and unary operators.
4510 2014-07-31  Pascal Obry  <obry@adacore.com>
4512         * cstreams.c (__gnat_is_regular_file_fd): Removed.
4513         * adaint.c (__gnat_is_regular_file_fd): Added.
4515 2014-07-31  Robert Dewar  <dewar@adacore.com>
4517         * exp_strm.adb: Minor reformatting.
4519 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4521         * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
4522         Analyze_Associations, to create a wrapper around operators that
4523         are actuals to formal subprograms. This is done in GNATProve
4524         mode in order to propagate the contracts of the operators to
4525         the body of the instance.
4527 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4529         * sem_attr.adb (Analyze_Attribute, case 'Old):  The reference is
4530         legal if within an aspect specification for a generic subprogram.
4532 2014-07-31  Javier Miranda  <miranda@adacore.com>
4534         * gnat1drv.adb (Back_End_Inlining): Set to false if
4535         Suppress_All_Inlining is set.
4536         * debug.adb: Adding documentation for -gnatd.z.
4537         * inline.adb (Add_Inlined_Body): Extend the -gnatn2
4538         processing to -gnatn1 for calls to Inline_Always routines.
4539         (Add_Inlined_Subprogram): Remove previous patch.
4541 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4543         * sem_ch13.adb (Check_One_Function): Apply properly the static
4544         semantic rules for indexing aspects and the functions they denote.
4546 2014-07-31  Javier Miranda  <miranda@adacore.com>
4548         * debug.adb: Complete documentation of -gnatd.z.
4550 2014-07-31  Bob Duff  <duff@adacore.com>
4552         * gnat_ugn.texi: Minor doc fixes.
4554 2014-07-31  Robert Dewar  <dewar@adacore.com>
4556         * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
4557         index value.
4559 2014-07-31  Tristan Gingold  <gingold@adacore.com>
4561         * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
4562         (Packed_Bytes1): Make component aliased.
4564 2014-07-31  Robert Dewar  <dewar@adacore.com>
4566         * s-unstyp.ads, s-fileio.adb: Minor reformatting.
4568 2014-07-31  Robert Dewar  <dewar@adacore.com>
4570         * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
4571         reformatting.
4573 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4575         * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
4576         on array references here, now done more selectively in trans.c.
4578 2014-07-31  Doug Rupp  <rupp@adacore.com>
4580         * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
4582 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4584         * sem_util.adb (Is_Effectively_Volatile): New routine.
4586 2014-07-31  Fedor Rybin  <frybin@adacore.com>
4588         * gnat_ugn.texi: Document --test-duration option for gnattest.
4590 2014-07-31  Javier Miranda  <miranda@adacore.com>
4591             Eric Botcazou  <ebotcazou@adacore.com>
4593         * opt.ads (Back_End_Inlining): New variable which controls
4594         activation of inlining by back-end expansion.
4595         * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
4596         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
4597         the body to be inlined by the frontend if Back_End_Inlining
4598         is enabled.
4599         * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
4600         (Expand_Call): If backend inlining is enabled let the backend to
4601         handle inlined subprograms.
4602         * inline.ads (Register_Backend_Call): Moved here from exp_ch6
4603         * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
4604         (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
4605         (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
4606         enabled.
4607         * debug.adb Document -gnatd.z
4608         * fe.h Import Back_End_Inlining variable.
4609         * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
4610         enabled then declare attribute "always inline"
4611         * gcc-interface/decl.c, gcc-interface/trans.c,
4612         gcc-interface/gigi.h: Add handling of Inline_Always pragma.
4614 2014-07-31  Robert Dewar  <dewar@adacore.com>
4616         * a-ngelfu.ads: Minor comment fix.
4618 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4620         * freeze.adb (Freeze_Record_Type): Replace all calls to
4621         Is_SPARK_Volatile with Is_Effectively_Volatile and update
4622         related comments.
4623         * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
4624         Replace all calls to Is_SPARK_Volatile with
4625         Is_Effectively_Volatile and update related comments.
4626         * sem_ch5.adb (Analyze_Iterator_Specification,
4627         Analyze_Loop_Parameter_Specification): Replace all calls to
4628         Is_SPARK_Volatile with Is_Effectively_Volatile and update
4629         related comments.
4630         * sem_ch6.adb (Process_Formals): Replace all calls to
4631         Is_SPARK_Volatile with Is_Effectively_Volatile and update
4632         related comments.
4633         * sem_ch12.adb (Instantiate_Object): Replace the call to
4634         Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
4635         and update related comment.
4636         * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
4637         Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
4638         with Is_Effectively_Volatile and update related comments.
4639         * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
4640         all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
4641         update related comments.
4642         * sem_util.adb (Has_Enabled_Property,
4643         Variable_Has_Enabled_Property): Replace all calls
4644         to Is_SPARK_Volatile with Is_Effectively_Volatile and
4645         update related comments.
4646         (Is_Effectively_Volatile): New routine.
4647         (Is_Effectively_Volatile_Object): New routine.
4648         (Is_SPARK_Volatile): Removed.
4649         (Is_SPARK_Volatile_Object): Removed.
4650         * sem_util.ads (Is_Effectively_Volatile): New routine.
4651         (Is_Effectively_Volatile_Object): New routine.
4652         (Is_SPARK_Volatile): Removed.
4653         (Is_SPARK_Volatile_Object): Removed.
4655 2014-07-31  Pascal Obry  <obry@adacore.com>
4657         * s-fileio.adb (Open): Make sure a shared file gets inserted into
4658         the global list atomically. This ensures that the file descriptor
4659         won't be freed because another tasks is closing the file.
4661 2014-07-31  Robert Dewar  <dewar@adacore.com>
4663         * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
4664         generation of _FIRST and _LAST variables even in GNATprove_Mode.
4665         * gnat_ugn.texi: Minor editing.
4666         * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
4667         aggregate is marked Comes_From_Source if argument is CFS.
4669 2014-07-31  Pascal Obry  <obry@adacore.com>
4671         * s-fileio.adb: Remove obsolete comment.
4673 2014-07-31  Vincent Celier  <celier@adacore.com>
4675         * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
4676         overriding keyword before function to avoid error when compiler
4677         is called with -gnatyO (check overriding indicators).
4679 2014-07-31  Tucker Taft  <taft@adacore.com>
4681         * gnat_ugn.texi: Add a paragraph pointing the reader
4682         to the "plugins" example.
4684 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4686         * freeze.adb (Freeze_Expression): Document the
4687         purpose of the parent chain traversal.
4689 2014-07-31  Robert Dewar  <dewar@adacore.com>
4691         * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
4692         unconstrained fpt ops.
4694 2014-07-31  Pascal Obry  <obry@adacore.com>
4696         * s-fileio.adb (Open): Make sure a shared file gets inserted into
4697         the global list atomically. This ensures that the file descriptor
4698         won't be freed because another tasks is closing the file.
4700 2014-07-31  Vincent Celier  <celier@adacore.com>
4702         * projects.texi: Minor spelling error fix.
4704 2014-07-31  Robert Dewar  <dewar@adacore.com>
4706         * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
4707         * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
4708         information.
4709         * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
4710         * restrict.adb (Process_Restriction_Synonyms): Add handling
4711         of No_Elaboration_Code_All.
4712         * restrict.ads (Process_Restriction_Synonyms): Now handles
4713         No_Elaboration_Code_All.
4714         * sem_ch10.adb (Analyze_Context): Enforce transitive with for
4715         No_Elaboration_Code_All.
4716         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
4717         Handle setting of No_Elab_Code in unit information. Handle
4718         No_Elaboration_Code_All.
4719         * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
4720         pragma processing.
4721         (Name_No_Elaboration_Code_All): New name for pragma processing.
4723 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4725         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
4726         types with a null range and use the Esize of the component
4727         instead of its RM_Size to identify appropriate values.
4729 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4731         * freeze.adb Add with and use clause for Aspects.
4732         (Freeze_Expression): Emit an error when a volatile constant lacks
4733         Boolean aspect Import.
4734         (Has_Boolean_Aspect_Import): New routine.
4736 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
4738         * exp_util.adb: Minor reformatting.
4740 2014-07-31  Vincent Celier  <celier@adacore.com>
4742         * errutil.adb (Error_Msg): Make sure that all components of
4743         the error message object are initialized.
4745 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4747         * sem_ch4.adb (Try_Container_Indexing): If the container type is
4748         class-wide, use specific type to locate iteration primitives.
4749         * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
4750         rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
4751         Minor error message reformating.
4752         * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
4753         aspect for a derived type.
4755 2014-07-31  Robert Dewar  <dewar@adacore.com>
4757         * debug.adb: Document debug flag d.X.
4759 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4761         * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
4762         * sem_util.adb (Find_Specific_Type): If type is untagged private,
4763         retrieve full view so that primitive operations can be located.
4764         * exp_disp.adb Move Find_Specific_Type to sem_util.
4765         * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
4766         Find_Specific_Type to locate primitive equality.
4767         * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
4768         type does not require initialization.
4769         * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
4770         body all visibility is established, and the enclosing package
4771         declarations must not be installed.
4773 2014-07-31  Yannick Moy  <moy@adacore.com>
4775         * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
4776         Make subprogram public.
4778 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4780         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
4781         predicate Discriminated_Size, to distinguish between private
4782         components that depend on discriminants from those whose size
4783         depends on some other non-static expression.
4785 2014-07-31  Nicolas Setton  <setton@adacore.com>
4787         * g-exptty.adb (Close): Fix binding to Waitpid: use the
4788         tty version.
4790 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4792         * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
4793         in a discrete range, when 'range was probably intended.
4795 2014-07-31  Robert Dewar  <dewar@adacore.com>
4797         * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
4799 2014-07-31  Robert Dewar  <dewar@adacore.com>
4801         * frontend.adb: Minor reformatting.
4802         * sem.adb: Minor reformatting.
4803         * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
4804         identifiers on rewrite.
4805         * par.adb: Minor comment updates.
4806         * a-ngelfu.adb (Cos): Minor simplification.
4807         * par-ch13.adb (Get_Aspect_Specifications): Improve messages
4808         and recovery for bad aspect.
4809         * exp_ch3.adb: Code clean up.
4810         * sem_util.ads: Minor comment correction.
4811         * sem_ch13.adb (Check_Array_Type): Properly handle large types.
4812         * sem_ch3.adb: Code clean up.
4813         * binderr.ads: Minor comment correction.
4815 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4817         * exp_disp.adb (Expand_Interface_Conversion): A call whose
4818         prefix is a static conversion to an interface type that is not
4819         class-wide is not dispatching.
4821 2014-07-31  Robert Dewar  <dewar@adacore.com>
4823         * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
4824         s-traceb-mastop.adb: Minor reformatting.
4826 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4828         * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
4829         expansion, to handle properly visibility of selected components
4830         in instance bodies.
4832 2014-07-31  Robert Dewar  <dewar@adacore.com>
4834         * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
4835         * par-ch2.adb (P_Pragma): Set Inside_Depends.
4836         * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
4837         Check_Unary_Plus_Or_Minus.
4838         * scans.ads (Inside_Depends): New flag.
4839         * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
4840         * style.ads: Add Inside_Depends parameter to Check_Arrow Add
4841         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
4842         * styleg.adb (Check_Arrow): Handle Inside_Depends case.
4843         (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
4844         * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
4845         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
4847 2014-07-31  Javier Miranda  <miranda@adacore.com>
4849         * s-vaflop.adb Move the body of function T_To_G before
4850         T_To_D. Required for frontend inlining.
4851         * inline.adb (Has_Excluded_Contract): New subprogram used to
4852         check if a subprogram inlined by the frontend has contracts
4853         which cannot be inlined.
4855 2014-07-31  Bob Duff  <duff@adacore.com>
4857         * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
4858         (Call_Chain): Add 1 to number of frames to skip, to account for
4859         the fact that there's one more frame on the stack.
4860         * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
4862 2014-07-31  Robert Dewar  <dewar@adacore.com>
4864         * checks.adb (Enable_Overflow_Check): More precise setting of
4865         Do_Overflow_Check flag for division.
4867 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4869         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
4870         array types with implementation type.
4872 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4874         * sem_ch10.adb (Process_State): Remove local variable Name. Add
4875         local variable Decl. Partially declare an abstract state by
4876         generating an entity and storing it in the state declaration.
4877         * sem_prag.adb (Create_Abstract_State): Fully declare a
4878         semi-declared abstract state.
4880 2014-07-31  Robert Dewar  <dewar@adacore.com>
4882         * prj-nmsc.adb: Minor reformatting.
4884 2014-07-31  Bob Duff  <duff@adacore.com>
4886         * s-tasdeb.adb (System.Tasking.Debug): Remove
4887         all usage of the secondary stack from this package.
4889 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4891         * freeze.adb (Freeze_Expression): Update the loop in charge
4892         of finding a proper insertion place for freeze nodes to handle
4893         N_Expression_With_Actions nodes.
4895 2014-07-31  Robert Dewar  <dewar@adacore.com>
4897         * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
4898         reformatting.
4900 2014-07-31  Pascal Obry  <obry@adacore.com>
4902         * prj-nmsc.adb: Minor reformatting.
4904 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4906         * sem_util.adb (Has_Preelaborable_Initialization): Check that
4907         type is tagged before checking whether a user-defined Initialize
4908         procedure is present.
4910 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
4912         * a-ngelfu.ads (Sqrt): Augment postcondition.
4914 2014-07-31  Pascal Obry  <obry@adacore.com>
4916         * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
4917         directory and ALI directory must be different than all object
4918         and library directories of aggregated projects.
4920 2014-07-31  Vincent Celier  <celier@adacore.com>
4922         * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
4923         to package body, as it is not called from outside. Remove argument
4924         Project_Tree, no longer used. When runtime cannot be found,
4925         call Raise_Invalid_Config instead of failing the program.
4927 2014-07-31  Robert Dewar  <dewar@adacore.com>
4929         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
4930         (Overflow_Check).
4931         * gnatlink.adb (Process_Args): Remove generation of -gnato0,
4932         no longer needed.
4934 2014-07-31  Robert Dewar  <dewar@adacore.com>
4936         * gnat_ugn.texi: Document new switch -gnato0.
4937         * sem_ch3.ads: Minor reformatting.
4938         * gnatlink.adb (Process_Args): Compile bind file with -gnato0
4939         (we do not want overflow checks when incrementing elaboration
4940         counters).
4941         * einfo.ads: Minor reformatting.
4943 2014-07-31  Robert Dewar  <dewar@adacore.com>
4945         * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
4946         * s-arit64.adb: Minor reformatting.
4948 2014-07-31  Robert Dewar  <dewar@adacore.com>
4950         * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
4951         checking is enabled except in GNAT_Mode.
4952         * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
4953         (suppress overflow checks).
4955 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4957         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
4958         invariant procedure for an internally generated subtype that is
4959         created for an object of a class-wide type.
4961 2014-07-31  Vincent Celier  <celier@adacore.com>
4963         * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
4965 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
4967         * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
4968         exp_disp.adb: Minor reformatting.
4970 2014-07-31  Robert Dewar  <dewar@adacore.com>
4972         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
4973         sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
4974         exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
4975         reformatting.
4977 2014-07-31  Robert Dewar  <dewar@adacore.com>
4979         * sem_ch13.adb: Minor reformatting.
4981 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4983         * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
4984         is an unchecked_union, warn that invariants will not be checked
4985         on components that have them.
4987 2014-07-31  Robert Dewar  <dewar@adacore.com>
4989         * freeze.adb (Freeze_Entity): Check for error of
4990         Type_Invariant'Class applied to a untagged type.
4991         * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
4992         as null body, so that we perform error checks even if expansion
4993         is off.
4995 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4997         * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
4998         is already present, nothing to do.
4999         * exp_ch3.adb (Build_Component_Invariant_Call): For an access
5000         component, check whether the access type has an invariant before
5001         checking the designated type.
5002         (Build_Record_Invariant_Proc): Change suffix of generated
5003         name to prevent ambiguity when record type has invariants
5004         in addition to those of components, and two subprograms are
5005         constructed. Consistent with handling of array types.
5006         (Insert_Component_Invariant_Checks): Build invariant procedure
5007         body when one has not been created yet, in the case of composite
5008         types that are completions and whose full declarations carry
5009         invariants.
5011 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5013         * gnat_rm.texi: Minor doc fixes.
5015 2014-07-30  Robert Dewar  <dewar@adacore.com>
5017         * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
5019 2014-07-30  Vincent Celier  <celier@adacore.com>
5021         * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
5022         of error message.
5023         * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
5024         message to report that a directory cannot be created, to avoid
5025         processing of the directory path that may contains special
5026         insertion characters.
5028 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5030         * a-crdlli.ads: Place declaration of Empty_List after full type
5031         declaration for Curosr, to prevent freezing error.
5033 2014-07-30  Robert Dewar  <dewar@adacore.com>
5035         * get_targ.adb: Minor code reorganization.
5036         * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
5037         reformatting.
5039 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5041         * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
5042         not Program_Error, when attempting to remove an element not in
5043         the set. This is the given semantics for all set containers.
5045 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5047         * a-rbtgbo.adb (Delete_Node_Sans_Free): If
5048         element is not present in tree return rather than violating
5049         an assertion. Constraint_Error will be raised in the caller if
5050         element is not in the container.
5052 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5054         * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
5055         (elab body): Add provision for default target config file.
5056         * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
5058 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5060         * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
5061         when attempting to remove an element not in the set. This is
5062         the given semantics for all set containers.
5063         * a-cborse.adb (Delete): Attempt removal first, to check for
5064         tampering, before checking whether this is an attempt to
5065         delete a  non-existing element, and in fthe latter case raise
5066         Constraint_Error.
5068 2014-07-30  Vincent Celier  <celier@adacore.com>
5070         * prj-proc.adb (Recursive_Process): Do not create a new
5071         Project_Id if the project is already in the list of projects of
5072         the tree.
5074 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5076         * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
5077         whose type is an incomplete formal type.
5078         (Analyze_Return_Type): Reject a return type that is an untagged
5079         imcomplete formal type.
5080         (Process_Formals): Reject a formal parameter whose type is an
5081         untagged formal incomplete type.
5082         * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
5083         an untagged formal incomplete type.
5085 2014-07-30  Robert Dewar  <dewar@adacore.com>
5087         * gnat_ugn.texi: Minor spelling correction.
5088         * makeutl.adb: Minor code reorganization.
5089         * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
5091 2014-07-30  Robert Dewar  <dewar@adacore.com>
5093         * einfo.ads (Has_Unchecked_Union): Document that this is used
5094         to check for illegal Valid_Scalars attribute references.
5095         * exp_attr.adb (Build_Record_VS_Func): New function
5096         (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
5097         function.
5098         * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
5099         Unchecked_Union Add note on 'Valid_Scalars generating a lot
5100         of code.
5101         * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
5102         error on attempt to apply Valid_Scalars to Unchecked_Union type.
5104 2014-07-30  Steve Baird  <baird@adacore.com>
5106         * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
5107         of A(I..J)(K) in CodePeer_Mode.
5109 2014-07-30  Ben Brosgol  <brosgol@adacore.com>
5111         * gnat_ugn.texi: Fix typo.
5113 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5115         * lib-writ.ads: document format change.
5117 2014-07-30  Pascal Obry  <obry@adacore.com>
5119         * prj-util.adb (For_Interface_Sources): Do not
5120         include sources from withed externally built projects.
5122 2014-07-30  Robert Dewar  <dewar@adacore.com>
5124         * lib.adb: Minor reformatting.
5125         * prj-util.adb: Minor reformatting.
5127 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5129         * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
5130         that depends on discriminants, and which is given by an others
5131         clause, create an explicit subtype with the discriminant values
5132         of the enclosing aggregate, because the backend cannot otherwise
5133         retrieve the actual bounds of the array.
5135 2014-07-30  Fedor Rybin  <frybin@adacore.com>
5137         * gnat_ugn.texi: Improve gnattest documentation.
5139 2014-07-30  Pascal Obry  <obry@adacore.com>
5141         * makeutl.adb (Insert_Project_Sources): Properly handle sources
5142         that are aggregated. We want to include sources not only part
5143         of libraries but also if part of an aggregated project from an
5144         aggregate library.
5145         * prj.adb (For_Project_And_Aggregated_Context): Properly check
5146         state of root project.
5148 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5150         * lib-load.ads: Minor reformatting.
5151         * sinfo.ads (Library_Unit): Update comment.
5152         * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
5153         is redundant. Instead used the pragma Node_Id directly as the
5154         element type.
5156 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5158         * lib.adb (Store_Note): Store only notes that do not come from
5159         an instance, and that are in the extended main source unit.
5160         * lib-writ (Write_Unit_Information): Annotations from subunits
5161         must be emitted along with those for the main unit, and they
5162         must carry a specific file name.
5163         * ali.ads (Notes_Record): Use a File_Name_Type instead of a
5164         Unit_Id for the source file containing the pragma, as in the
5165         case of annotations from subunits we might not have a readily
5166         available unit id.
5167         * ali.adb (Scan_ALI): Account for above change in data structure.
5169 2014-07-30  Vincent Celier  <celier@adacore.com>
5171         * makeutl.adb (Insert_Project_Sources): When the library project
5172         is an aggregate Stand-Alone Library, insert in the queue the
5173         Ada interface units, with Closure set to True;
5175 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5177         * sem_util.adb: Fix minor typo.
5178         * makeutl.adb: Minor reformatting.
5180 2014-07-30  Robert Dewar  <dewar@adacore.com>
5182         * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
5184 2014-07-30  Yannick Moy  <moy@adacore.com>
5186         * checks.ads: Fix typo in comment.
5188 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
5190         * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
5191         entities that materialize range bounds, if any.
5193 2014-07-30  Vincent Celier  <celier@adacore.com>
5195         * projects.texi: Minor spelling fix.
5197 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5199         * checks.adb (Make_Bignum_Block): Use the new secondary stack
5200         build routines to manage the mark.
5201         * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
5202         Use the new secodary stack build routines to manage the mark.
5203         (Insert_Actions_In_Scope_Around): Add new formal parameter
5204         Manage_SS along with comment on its usage. Code and comment
5205         reformatting. Mark and release the secondary stack when the
5206         context warrants it.
5207         (Make_Transient_Block): Update the call
5208         to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
5209         (Wrap_Transient_Declaration): Remove local variable
5210         Uses_SS. Ensure that the secondary stack is marked and released
5211         when the related object declaration appears in a library level
5212         package or package body. Code and comment reformatting.
5213         * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
5214         (Build_SS_Release_Call): New routine.
5216 2014-07-30  Steve Baird  <baird@adacore.com>
5218         * exp_attr.adb: Revert previous change, not needed after all.
5220 2014-07-30  Vincent Celier  <celier@adacore.com>
5222         * makeutl.adb (Queue.Insert_Project_Sources): Insert with
5223         Closure => True for interfaces of Stand-Alone Libraries.
5224         * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
5225         Boolean component Closure, defaulted to False.
5227 2014-07-30  Yannick Moy  <moy@adacore.com>
5229         * sem_res.adb: Fix typo in error message.
5231 2014-07-30  Robert Dewar  <dewar@adacore.com>
5233         * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
5234         as name suffixes rather than L/H for subtype bounds.
5235         * tbuild.ads: Minor comment improvements and fixes
5236         (Make_External_Name): Document that suffix can start with an
5237         underscore.
5239 2014-07-30  Bob Duff  <duff@adacore.com>
5241         * gnat_ugn.texi: Document --rep-clauses switch.
5243 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5245         * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
5246         Default_Component_Value can only be specified for scalar type or
5247         arrays of scalar types respectively.  This legality check must
5248         be performed at the point the aspect is analyzed, in order to
5249         reject aspect specifications that apply to a partial view.
5251 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5253         * freeze.adb: Minor reformatting.
5255 2014-07-30  Robert Dewar  <dewar@adacore.com>
5257         * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
5258         codepeer mode.
5260 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5262         * freeze.adb (Check_Expression_Function): At the freeze point
5263         of an expression function, verify that the expression in the
5264         function does not contain references to any deferred constants
5265         that have no completion yet.
5266         (Freeze_Expression, Freeze_Before): call
5267         Check_Expression_Function.
5268         * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
5269         * a-ciorse.adb: Add Adjust and Finalize routines for
5270         Reference_Control_Type. Use it in the construction of Reference
5271         and Constant_Reference values.
5273 2014-07-30  Robert Dewar  <dewar@adacore.com>
5275         * exp_aggr.adb: Update comments.
5276         * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
5277         reformatting.
5279 2014-07-30  Robert Dewar  <dewar@adacore.com>
5281         * cstand.adb (New_Standard_Entity): New version takes name
5282         string to call Make_Name.
5283         (Create_Standard): Use this routine to set name before setting other
5284         fields.
5286 2014-07-30  Robert Dewar  <dewar@adacore.com>
5288         * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
5289         entity reference.
5290         (Expand_Attribute, case Last): Ditto.
5291         * exp_ch3.adb (Constrain_Index): New calling sequence for
5292         Process_Range_Expr_In_Decl.
5293         (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
5294         problematical case.
5295         * sem_ch3.adb (Constrain_Index): New calling sequence for
5296         Process_Range_Expr_In_Decl.
5297         (Set_Scalar_Range_For_Subtype): ditto.
5298         (Process_Range_Expr_In_Decl): Create constants to hold bounds for
5299         subtype.
5300         * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
5301         * sem_eval.adb (Compile_Time_Compare): Make sure we use base
5302         types if we are not assuming no invalid values.
5304 2014-07-30  Robert Dewar  <dewar@adacore.com>
5306         * clean.adb: Minor reformatting.
5307         * opt.ads: Minor fix to incorrect comment.
5309 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5311         * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
5312         subprogram, used by bounded hashed sets, to delete a node at
5313         a given index, whose element may have been improperly updated
5314         through a Reference_Preserving key.
5315         * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
5316         * a-cbhase.adb: Add Adjust and Finalize routines for
5317         Reference_Control_Type.
5318         (Delete, Insert): Raise Program_Error, not Constraint_Error,
5319         when operation is illegal.
5320         (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
5321         * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
5322         private with_clause for Ada.Finalization.
5323         * a-cbmutr.adb: Add Adjust and Finalize routines for
5324         Reference_Control_Type. Use it in the construction of Reference
5325         and Constant_Reference values.
5327 2014-07-30  Robert Dewar  <dewar@adacore.com>
5329         * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
5331 2014-07-30  Pascal Obry  <obry@adacore.com>
5333         * clean.adb (Clean_Project): Properly check for directory
5334         existence before trying to enter it.
5336 2014-07-30  Robert Dewar  <dewar@adacore.com>
5338         * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
5340 2014-07-30  Robert Dewar  <dewar@adacore.com>
5342         * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
5343         missing semicolon after name.
5345 2014-07-30  Pascal Obry  <obry@adacore.com>
5347         * prj.ads (Gprinstall_Flags): New constant.
5348         * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
5349         missing library dir if Directories_Must_Exist_In_Projects
5350         is false.
5352 2014-07-30  Bob Duff  <duff@adacore.com>
5354         * a-except-2005.adb, a-except.adb: Remove obsolete comments.
5355         * s-traceb.ads: Updagte comments.
5357 2014-07-30  Robert Dewar  <dewar@adacore.com>
5359         * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
5360         a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
5361         a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
5362         reformatting.
5364 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5366         * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
5367         subprogram, used by all versions of hashed sets, to delete a node
5368         whose element has been improperly updated through a Reference_
5369         Preserving key.
5370         * a-cohase.adb: Remove Delete_Node, use new common procedure
5371         Delete_Node_At_Index.
5372         * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
5373         * a-cihase.adb: Add Adjust and Finalize routines for
5374         Reference_Control_Type.
5375         (Reference_Preserving_Key): Build aggregate for
5376         Reference_Control_Type
5378 2014-07-30  Yannick Moy  <moy@adacore.com>
5380         * checks.adb, checks.ads (Determine_Range_R): New procedure to
5381         determine the possible range of a floating-point expression.
5383 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5385         * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
5386         * a-cborse.adb: Add Adjust and Finalize routines for
5387         Reference_Control_Type.
5388         (Reference_Preserving_Key): Build aggregate for
5389         Reference_Control_Type.
5390         (Delete): Check for tampering, and raise Program_Error (not
5391         Constraint_Error) when attempting to delete an element not in
5392         the set.
5393         (Insert): Ditto.
5395 2014-07-30  Bob Duff  <duff@adacore.com>
5397         * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
5398         * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
5399         Exception_Information is used to produce useful debugging
5400         information for the programmer. However, it was also used to
5401         implement the stream attributes for type Exception_Occurrence. The
5402         latter requires a stable and portable interface, which meant
5403         that we couldn't include a symbolic traceback. A separate set of
5404         routines was used to provide symbolic tracebacks under program
5405         control (i.e. not automatically). The goal of this ticket is
5406         to provide such automatic tracebacks, so the change here is to
5407         split the two functionalities: Exception_Information gives the
5408         maximally useful information for debugging (i.e. it now includes
5409         a symbolic traceback when a decorator is set, and it can be
5410         improved freely in the future without disturbing streaming).
5411         Untailored_Exception_Information always uses hexadecimal addresses
5412         in the traceback, has a stable and portable output, and is now
5413         used for streaming.
5415 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5417         * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
5418         on the target of the assignment to find out whether it
5419         can be directly done by the back-end.
5420         * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
5422 2014-07-30  Robert Dewar  <dewar@adacore.com>
5424         * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
5425         a-tasatt.adb: Minor reformatting.
5427 2014-07-30  Robert Dewar  <dewar@adacore.com>
5429         * exp_ch4.adb: Minor reformatting.
5431 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5433         * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
5434         Reference_Control_Type to generic package, to keep additional
5435         information for Reference_Types that manipulate keys. Add Adjust and
5436         Finalize procedures for this type.
5437         (Finalize): When finalizing a reference_preserving_key, verify
5438         that the key of the new value is equivalent to the key of the
5439         original element, raise Program_Error otherwise.
5440         (Insert): Detect tampering.
5441         (Reference_Preserving_Key): Build proper Reference_Control_Type,
5442         and update Busy and Lock bits to detect tampering.
5443         * a-cohase.ads: Keep with-clause private.
5445 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5447         * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
5448         of an equality are of an Unchecked_Union type and lack inferable
5449         discriminants.
5451 2014-07-30  Bob Duff  <duff@adacore.com>
5453         * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
5454         g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
5455         GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
5456         hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
5457         we can call them from the runtimes. Leave renamings in place under GNAT.
5459 2014-07-30  Yannick Moy  <moy@adacore.com>
5461         * inline.adb (Check_And_Build_Body_To_Inline): Include code for
5462         inlining in GNATprove mode.
5464 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5466         * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
5467         Reference_Control_Type to generic package, to keep additional
5468         information for Reference_Types that manipulate keys. Add Adjust and
5469         Finalize procedures for this type.
5470         (Delete_Node): New procedure called when finalizing a
5471         Reference_Control_Type, to remove a node whose element has been
5472         improperly updated through a Reference.
5473         (Insert): Detect tampering.
5474         (Reference_Preserving_Key): Build proper Reference_Control_Type,
5475         and update Busy and Lock bits to detect tampering.
5477 2014-07-30  Bob Duff  <duff@adacore.com>
5479         * exp_intr.ads: Minor comment fix.
5481 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
5483         * exp_prag.adb, a-tags.ads: Minor typo fixes.
5485 2014-07-30  Bob Duff  <duff@adacore.com>
5487         * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
5488         a-except.ads, g-traceb.adb, memtrack.adb,
5489         s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
5490         Cleanup: Make the three versions of System.Traceback.Call_Chain
5491         have the same interface. Use an array for the Traceback parameter
5492         instead of an Address.  This will enable reduction in code
5493         duplication.
5495 2014-07-30  Pat Rogers  <rogers@adacore.com>
5497         * gnat_ugn.texi: Corrected minor textual error in description
5498         of switch -gnatwl.
5500 2014-07-30  Bob Duff  <duff@adacore.com>
5502         * Makefile.rtl: Sort file names.
5504 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5506         * a-tasatt.adb: Complete previous change: kill spurious warning
5507         on e.g. sparc, and make sure we only use the fast path when the
5508         alignment is compatible.
5510 2014-07-30  Yannick Moy  <moy@adacore.com>
5512         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
5513         coming from source.
5515 2014-07-30  Yannick Moy  <moy@adacore.com>
5517         * inline.adb (Build_Body_To_Inline): Issue more precise messages
5518         for declarations that prevent inlining.
5519         (Cannot_Inline): Change usual start of message to refer to contextual
5520         analysis in GNATprove mode.
5521         * sem_res.adb (Resolve_Call): Change usual start of message to
5522         refer to contextual analysis in GNATprove mode, when inlining
5523         not possible.
5525 2014-07-30  Robert Dewar  <dewar@adacore.com>
5527         * sem_res.adb, sem_ch6.adb: Minor code reorganization.
5528         * inline.adb: Minor reformatting.
5530 2014-07-30  Javier Miranda  <miranda@adacore.com>
5532         * a-tags.ads: Add comments.
5534 2014-07-30  Pat Rogers  <rogers@adacore.com>
5536         * gnat_rm.texi: Minor word error.
5538 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5540         * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
5541         created to capture the value of the prefix of 'Old at the
5542         beginning of the current declarative part, to prevent data flow
5543         anomalies in the postcondition procedure that will follow.
5545 2014-07-30  Yannick Moy  <moy@adacore.com>
5547         * debug.adb: Retire debug flag -gnatdQ.
5548         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
5549         on decl, not on body.  Ignore predicate functions.
5550         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
5551         debug flag -gnatdQ.  Correctly analyze SPARK_Mode on decl and
5552         body when generating a decl for a body on which SPARK_Mode aspect
5553         is given.
5554         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
5555         attaching pragma to entity, to account for declaration not coming
5556         from source.
5557         * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
5558         as not always inlined in GNATprove mode, when called in an
5559         assertion context.
5561 2014-07-30  Vincent Celier  <celier@adacore.com>
5563         * debug.adb: Minor comment update.
5565 2014-07-30  Robert Dewar  <dewar@adacore.com>
5567         * s-tasuti.adb, s-tassta.adb: Minor reformatting.
5568         * sprint.adb (Sprint_Node): Handle N_Contract case.
5569         * exp_prag.adb: Minor reformatting.
5570         * freeze.adb (Freeze_Entity): Check useless postcondition for
5571         No_Return subprogram.
5572         * sem_prag.adb: Minor reformatting.
5574 2014-07-30  Javier Miranda  <miranda@adacore.com>
5576         * a-tags.ads: Complete comments about performance.
5578 2014-07-30  Fedor Rybin  <frybin@adacore.com>
5580         * gnat_ugn.texi: Adding description for --exit-status option to
5581         gnattest section.  Fixing index entry of --passed-tests option
5582         in gnattest section.
5584 2014-07-30  Javier Miranda  <miranda@adacore.com>
5586         * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
5587         rtsfind.ads: Remove references to package Interfaces.CPP since this
5588         package is no longer needed.
5590 2014-07-30  Bob Duff  <duff@adacore.com>
5592         * s-taasde.adb (Timer_Queue): Don't use a
5593         build-in-place function call to initialize the Timer_Queue.
5594         * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
5595         Turn off polling in these units, because otherwise we get
5596         elaboration circularities with Ada.Exceptions when the -gnatP
5597         switch is used.
5598         * s-tassta.adb (Create_Task): Make sure independent tasks
5599         are created with Parent = Environment_Task. This was not true,
5600         for example, in s-interr.adb, when Interrupt_Manager does "new
5601         Server_Task"; the Server_Task had Parent = Interrupt_Manager,
5602         which is wrong because the master is determined by the access
5603         type, which is at library level.
5604         * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
5605         now set correctly by Create_Task.
5606         (Make_Passive): Remove the workaround for the race condition in
5607         Make_Independent.
5608         * frontend.adb (Frontend): Revert to previous method of detecting
5609         temporary configuration pragma files, recognizing such files by
5610         ".tmp" in the name. This is more general than detecting pragmas
5611         Source_File_Name_Project, because it allows any tool to use
5612         this naming convention, no matter the content of the file.
5613         * gnat_ugn.texi: Document this naming convention.
5615 2014-07-30  Robert Dewar  <dewar@adacore.com>
5617         * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
5618         inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
5619         s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
5620         s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
5621         * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
5622         conversion.
5624 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5626         * sem_ch5.adb: Improve error recovery.
5627         * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
5628         before analyzing the body, so that in GNATprove mode there is
5629         no light expansion. Whatever expansion is required by SPARK will
5630         be performed when analysing the inlined code.
5632 2014-07-30  Bob Duff  <duff@adacore.com>
5634         * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
5636 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5638         * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
5639         verify that it is not hidden by an inner implicit declaration.
5641 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5643         * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
5644         * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
5645         * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
5646         the call returns an unconstrained type: in this case there is
5647         already a transient scope, and we should not establish a new one.
5648         * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
5649         True, also insert cleanup actions in the tree.
5650         (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
5651         with Clean set True.
5653 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5655         * s-taskin.ads (Direct_Index, Direct_Index_Range,
5656         Direct_Attribute_Element, Direct_Attribute_Array,
5657         Direct_Index_Vector, Direct_Attributes, Is_Defined,
5658         Indirect_Attributes): Removed.  (Atomic_Address,
5659         Attribute_Array, Attributes): New.
5660         * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
5661         Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
5662         (Finalize_Attributes): Reimplement.
5663         * s-tassta.adb (Create_Task): Remove call to
5664         Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
5665         Replace Finalize_Attributes_Link by Finalize_Attributes.
5666         * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
5667         Reimplement from scratch, using a simpler and more efficient
5668         implementation.
5669         * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
5670         * s-parame.ads, s-parame-hpux.ads,
5671         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
5672         * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
5673         Default_Attribute_Count.
5675 2014-07-30  Olivier Hainque  <hainque@adacore.com>
5677         * vxworks-ppc-link.spec: New file. Extra link
5678         instructions for ppc-vxworks.
5679         * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
5680         * system-vxworks-ppc.ads: Adjust linker options to use spec files.
5681         * system-vxworks-arm.ads: Likewise.
5682         * gcc-interface/Makefile.in: Enable .spec files.
5684 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5686         * sem_aggr.adb: Minor comment reformatting.
5688 2014-07-30  Robert Dewar  <dewar@adacore.com>
5690         * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
5691         * sem_warn.adb (Has_Junk_Name): New function
5692         (Check_References): Use Has_Junk_Name to delete junk warnings
5693         (Check_Unset_Reference): ditto.
5694         (Warn_On_Unreferenced_Entity): ditto.
5695         (Warn_On_Useless_Assignment): ditto.
5697 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5699         * checks.adb (Insert_Valid_Check): Do not check for the packed
5700         array type of a prefix that is an access type.
5702 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5704         * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
5705         Unconstrained_Array even if prefix is not frozen yet, as can
5706         occur with a private subtype used as a generic actual.
5708 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
5710         * sem_attr.adb: Minor reformatting.
5712 2014-07-30  Pat Rogers  <rogers@adacore.com>
5714         * gnat_rm.texi: Corrected minor wording error in description
5715         of No_Exception_Registration.
5717 2014-07-30  Yannick Moy  <moy@adacore.com>
5719         * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
5720         mode. Realphabetize two subprograms.
5721         * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
5722         (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
5723         (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
5724         mode.
5725         (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
5726         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
5727         Is_Inline in GNATprove mode.
5728         (Analyze_Subprogram_Specification):
5729         Set Is_Inlined_Always at subprogram entity creation.
5730         * sem_res.adb (Resolve_Call): Do not deal with inlining during
5731         pre-analysis.  Issue warning on call to possibly inlined
5732         subprogram when body not seen.
5734 2014-07-30  Yannick Moy  <moy@adacore.com>
5736         * lib-xref.adb (Generate_Reference): Add special
5737         case for compiler-generated formals in GNATprove mode.
5739 2014-07-30  Yannick Moy  <moy@adacore.com>
5741         * sem_ch6.adb: Add comments.
5743 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5745         * s-os_lib.ads (GM_Time_Of): Clarify documentation.
5747 2014-07-30  Robert Dewar  <dewar@adacore.com>
5749         * sem_aggr.adb, sem_res.adb: Minor reformatting.
5751 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5753         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
5754         Bit_Order): Set Reverse_Bit_Order on the base type of the
5755         specified first subtype.
5757 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5759         * inline.adb (Expand_Inlined_Call): Use a renaming declaration
5760         to capture the value of actuals of a limited type rather than
5761         an object declaration, to prevent spurious errors when analyzing
5762         the inlined body.
5764 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5766         * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
5767         as an instance, and inhibit semantic checks on already analyzed
5768         code to prevent spurious errors.
5770 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5772         * a-exctra.ads ("="): New function, to restore compatibility.
5774 2014-07-30  Pascal Obry  <obry@adacore.com>
5776         * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
5777         routine to use the OS dst setting.
5779 2014-07-30  Pat Rogers  <rogers@adacore.com>
5781         * gnat_ugn.texi: Minor correction to description of -gnatw.K.
5783 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5785         * sem_util.adb (Wrong_Type): Disable some checks equally within
5786         instances and within inlined bodies, to suppress spurious type
5787         errors on already analyzed code.
5788         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
5789         is legal in an inlined body, juts as it is in an instance body.
5791 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5793         * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
5794         body the operand of an unchecked conversion may be a literal, in
5795         which case its type is the target type of the conversion. This
5796         is in contrast to conversions in other contexts, where the
5797         operand cannot be a literal and must be resolvable independent
5798         of the context.
5800 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
5802         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
5803         mere scalar constant instead of a reference for a renaming of
5804         scalar literal.
5805         * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
5806         * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
5808 2014-07-30  Robert Dewar  <dewar@adacore.com>
5810         * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
5811         g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
5812         g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
5813         s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
5814         g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
5815         s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
5816         & code reorganization.
5818 2014-07-30  Bob Duff  <duff@adacore.com>
5820         * s-tassta.adb, sem_util.ads: Minor reformatting.
5822 2014-07-30  Yannick Moy  <moy@adacore.com>
5824         * inline.adb (Build_Body_To_Inline): Detect when
5825         subprogram has multiple returns, or not a single last return
5826         statement, in GNATprove mode.
5827         (Cannot_Inline): Simplify logic to handle case of GNATprove
5828         inlining first.
5830 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5832         * sem_ch6.adb: Stubs are not subject to inlining.
5834 2014-07-30  Bob Duff  <duff@adacore.com>
5836         * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
5837         from a procedure to a function, so that it can more easily be
5838         called before the "begin" of a task.
5839         * s-taasde.ads (Delay_Block): Make this type immutably limited,
5840         so we can use a build-in-place function call to initialize
5841         Timer_Queue in the body.
5842         * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
5843         * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
5844         * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
5845         Make_Independent before reaching its "begin", to avoid race
5846         conditions. This causes the activating task to wait until after
5847         Make_Independent is complete before proceeding.  In addition,
5848         we initialize data structures used by independent tasks before
5849         activating those tasks, to avoid possible use of uninitialized data.
5850         * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
5851         Minor comment fixes.
5853 2014-07-30  Bob Duff  <duff@adacore.com>
5855         * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
5856         the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
5857         System.Traceback_Entries (s-traent.ads and s-traent-vms.ads).  Add
5858         subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
5859         * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
5861 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5863         * a-tasatt.adb: Remove old comments.
5865 2014-07-30  Yannick Moy  <moy@adacore.com>
5867         * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
5868         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
5869         to explain rationale for inlining or not in GNATprove mode.
5870         (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
5871         to False when inlining is not possible.
5872         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
5873         flag to indicate that subprogram is fully inlined. To be reversed
5874         if inlining problem is found.
5875         * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
5876         call in potentially unevaluated context.
5878 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
5880         * s-tarest.adb, s-tarest.ads: Fix comments.
5882 2014-07-30  Robert Dewar  <dewar@adacore.com>
5884         * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
5885         Change No_Scalar_Parts predicate to Scalar_Part_Present and
5886         invert sense of test. This avoids the "not No_xxx" situation
5887         which is always ugly.
5889 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5891         * inline.adb (Expand_Inlined_Call): When generating code for
5892         an internal subprogram the expansion uses the location of the
5893         call, so that gdb can skip over it. In GNATprove mode we want to
5894         preserve slocs of original subprogram when expanding an inlined
5895         call, to obtain better warnings, even though subprogram appears
5896         not to come from source if it is the inlining of a subprogram
5897         body without a previous spec.
5899 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5901         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
5902         types with atomic components.
5904 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5906         * Make-generated.in: Remove now unnecessary targets after s-oscons
5907         reorg.
5909 2014-07-30  Yannick Moy  <moy@adacore.com>
5911         * sem_res.adb (Resolve_Call): Use ultimate alias
5912         of callee when available.
5914 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5916         * sem_ch6.adb (Analyze_Expression_Function): To check whether
5917         an expression function is a completion, use the specification of
5918         the previous declaration, not its entity, which may be internally
5919         generated in an inlined context.
5921 2014-07-30  Doug Rupp  <rupp@adacore.com>
5923         * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
5924         temp files in /cache directory unless overridden by TMPDIR.
5926 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
5928         * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
5929         Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
5930         type CPU, so it can never be greater than CPU_Range'Last.
5932 2014-07-30  Bob Duff  <duff@adacore.com>
5934         * s-taskin.ads: Minor comment fix.
5936 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5938         * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
5939         clauses.
5941 2014-07-30  Yannick Moy  <moy@adacore.com>
5943         * debug.adb: Free debug flag dQ used for frontend inlining in
5944         GNATprove mode..
5945         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
5946         debug flag..
5948 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5950         * Make-generated.in: Remove generation of s-oscons.ads, only
5951         generate the xoscons utility, in runtime-agnostic rules.
5952         * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
5953         no longer supported.
5955 2014-07-30  Bob Duff  <duff@adacore.com>
5957         * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
5958         parameter Chain to be used in the allocator case.
5959         (Make_Build_In_Place_Call_In_Allocator): If the allocated object
5960         has tasks, wrap the code in a block that will activate them,
5961         including the usual finalization code to kill them off in case
5962         of exception or abort.
5964 2014-07-30  Robert Dewar  <dewar@adacore.com>
5966         * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
5967         Remove renamings (don't work for gdb).
5968         (par): New synonym for p (avoid gdb ambiguities).
5969         * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
5971 2014-07-30  Bob Duff  <duff@adacore.com>
5973         * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
5974         fixes.
5975         * treepr.ads, treepr.adb (ppp): Make this debugging routine
5976         accept any type covered by Union_Id.
5978 2014-07-30  Robert Dewar  <dewar@adacore.com>
5980         * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
5981         analyzing branches.
5982         * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
5983         expression case.
5985 2014-07-30  Robert Dewar  <dewar@adacore.com>
5987         * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
5988         of predicate aspect on entity other than a type.
5990 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5992         * sem_ch6.adb (Body_Has_Contract): New predicate to determine
5993         when a subprogram body without a previous spec cannot be inlined
5994         in GNATprove mode, because it includes aspects or pragmas that
5995         generate a SPARK contract clause.
5996         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
5997         instance cannot be inlined.
5999 2014-07-30  Robert Dewar  <dewar@adacore.com>
6001         * debug.adb: Document that d7 suppresses compilation time output.
6002         * errout.adb (Write_Header): Include compilation time in
6003         header output.
6004         * exp_intr.adb (Expand_Intrinsic_Call): Add
6005         Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
6006         Compilation_Date/Compilation_Time.
6007         * g-souinf.ads (Compilation_Date): New function
6008         (Compilation_Time): New function.
6009         * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
6010         * gnat_rm.texi (Compilation_Date): New function
6011         (Compilation_Time): New function.
6012         * opt.ads (Compilation_Time): New variable.
6013         * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
6014         * sem_intr.adb (Compilation_Date): New function.
6015         (Compilation_Time): New function.
6016         * snames.ads-tmpl (Name_Compilation_Date): New entry.
6017         (Name_Compilation_Time): New entry.
6019 2014-07-30  Yannick Moy  <moy@adacore.com>
6021         * inline.adb: Add comment.
6023 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6025         * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
6026         parameterless attribute, and a postondition can mention an
6027         indexed component or a slice whose prefix is an attribute
6028         reference F'Result.
6030 2014-07-30  Robert Dewar  <dewar@adacore.com>
6032         * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
6033         Avoid bomb when printing package Standard.
6035 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6037         * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
6038         entity is created at this point, ensure that the name of the
6039         flag is unique, because the subprogram may be overloaded and
6040         other homonyms may also have elaboration flags created on the fly.
6042 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6044         * sem_attr.adb (Analyze_Array_Component_Update): New routine.
6045         (Analyze_Attribute): Major cleanup of attribute
6046         'Update. The logic is now split into two distinct routines
6047         depending on the type of the prefix. The use of <> is now illegal
6048         in attribute 'Update.
6049         (Analyze_Record_Component_Update): New routine.
6050         (Check_Component_Reference): Removed.
6051         (Resolve_Attribute): Remove the return statement and ??? comment
6052         following the processing for attribute 'Update. As a result,
6053         the attribute now freezes its prefix.
6055 2014-07-30  Javier Miranda  <miranda@adacore.com>
6057         * exp_ch4.adb (Apply_Accessibility_Check): Do
6058         not call Base_Address() in VM targets.
6060 2014-07-30  Yannick Moy  <moy@adacore.com>
6062         * gnat1drv.adb (Adjust_Global_Switches): Set
6063         Ineffective_Inline_Warnings to True in GNATprove mode.
6064         * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
6065         mode of inlining.
6066         * opt.ads (Ineffective_Inline_Warnings): Add comment that
6067         describes use in GNATprove mode.
6068         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
6069         pragma when applied to the special body created for inlining.
6071 2014-07-30  Robert Dewar  <dewar@adacore.com>
6073         * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
6074         Minor reformatting.
6076 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6078         * aspects.ads Add a comment explaining why SPARK 2014 aspects are
6079         not delayed. Update the delay status of most SPARK 2014 aspects.
6080         * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
6081         to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
6082         to Decorate and Insert_Pragma. Add various comments concerning
6083         the delay status of several SPARK 2014 aspects. The insertion
6084         of Refined_State now uses routine Insert_After_SPARK_Mode.
6085         (Decorate): New routine.
6086         (Decorate_Aspect_And_Pragma): Removed.
6087         (Insert_Delayed_Pragma): Removed.
6088         (Insert_Pragma): New routine.
6090 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6092         * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
6093         only a warning, not an error on an attempt to inline a recursive
6094         subprogram.
6096 2014-07-30  Robert Dewar  <dewar@adacore.com>
6098         * g-forstr.adb: Minor code reorganization (use J rather than I
6099         as a variable name).
6100         * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
6101         g-forstr.ads: Minor reformatting.
6103 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6105         * sprint.adb (Set_Debug_Sloc): Also reset the end location if
6106         we are debugging the generated code.
6108 2014-07-30  Yannick Moy  <moy@adacore.com>
6110         * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
6111         returns True for source pointer for an inlined body.
6113 2014-07-30  Javier Miranda  <miranda@adacore.com>
6115         * exp_ch4.adb (Apply_Accessibility_Check): Add
6116         missing calls to Base_Address().
6118 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6120         * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
6121         mode, subprogram bodies without a previous declaration are also
6122         candidates for front-end inlining.
6124 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6126         * aspects.ads Aspects Async_Readers, Async_Writers,
6127         Effective_Reads and Effective_Writes do not need to be delayed.
6128         * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
6129         optional Boolean expression when generating the corresponding
6130         pragma for an external property aspect.
6131         * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
6132         local constant Obj. Add local constant Obj_Id. Reimplement the
6133         check which ensures that the related variable is in fact volatile.
6134         (Analyze_Pragma): Reimplement the analysis of external property pragmas.
6135         * sem_util.adb (Is_Enabled): New routine.
6136         (Variable_Has_Enabled_Property): Reimplement the detection of
6137         an enabled external property.
6139 2014-07-30  Sergey Rybin  <rybin@adacore.com frybin>
6141         * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
6142         for body stubs.
6144 2014-07-30  Pascal Obry  <obry@adacore.com>
6146         * g-forstr.adb, g-forstr.ads: New.
6147         * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
6148         GNAT.Formatted_String.
6150 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6152         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
6153         (Expand_Array_Aggregate): Also enable in-place expansion for
6154         code generated by the compiler.  For an object declaration,
6155         set the kind of the object in addition to its type.  If an
6156         in-place assignment is to be generated and it can be directly
6157         done by the back-end, do not expand the aggregate.
6158         * fe.h (Is_Others_Aggregate): Declare.
6159         * gcc-interface/trans.c
6160         (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
6161         aggregate with a single Others choice on the RHS by means of
6162         __builtin_memset.  Tidy up.
6164 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6166         * gnat_rm.texi: minor reformatting.
6168 2014-07-30  Yannick Moy  <moy@adacore.com>
6170         * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
6171         in SPARK_Mode Off.
6173 2014-07-30  Robert Dewar  <dewar@adacore.com>
6175         * gnat_rm.texi: Document additional implementation-defined use
6176         of Constrained.
6178 2014-07-30  Robert Dewar  <dewar@adacore.com>
6180         * prj-proc.adb, prj-strt.adb: Update comments.
6182 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
6184         * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
6186 2014-07-30  Vincent Celier  <celier@adacore.com>
6188         * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
6189         parameter No_Extending, defaulted to False. When No_Extending
6190         is True, do not look for an extending project.
6191         (Expression): For a variable reference that is not for the current
6192         project, get its Id calling Imported_Or_Extended_Project_From
6193         with No_Extending set to True.
6194         * prj-strt.adb (Parse_Variable_Reference): If a referenced
6195         variable is not found in the current project, check if it is
6196         defined in one of the projects it extends.
6198 2014-07-30  Robert Dewar  <dewar@adacore.com>
6200         * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
6201         some additional cases of internally generated routines.
6203 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6205         * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
6206         if the compilation unit is a subunit, extend optional processing
6207         to all subunits of the current one. This allows gnatstub to
6208         supress generation of spurious bodies.
6210 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6212         * a-cbmutr.adb (Insert_Child): Use local variable First to keep
6213         track of the initial element's index within the tree.
6215 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6217         * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
6218         (Insert_Child): Add local variable First. Capture the index of the
6219         first node being created to ensure correct cursor construction
6220         later on. Use the three parameter version of Allocate_Node
6221         when creating multiple children as this method allows aspect
6222         Default_Value to take effect (if applicable).
6224 2014-07-29  Eric Botcazou  <ebotcazou@adacore.com>
6226         * exp_aggr.adb (Safe_Slice_Assignment): Remove.
6227         (Expand_Array_Aggregate): For a safe slice assignment, just set
6228         the target and use the common code path.
6230 2014-07-29  Robert Dewar  <dewar@adacore.com>
6232         * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
6233         predicate No_Predicate_Test_On_Arguments, new name is
6234         Predicate_Tests_On_Arguments (with the opposite sense).
6236 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6238         * sem_attr.adb (Resolve_Attribute): Clean up the code for
6239         attribute 'Access. Do not generate an elaboration flag for a
6240         stand alone expression function. The expression of an expression
6241         function is now frozen when the expression function appears as
6242         the prefix of attribute 'Access.
6243         * sem_ch6.adb (Analyze_Expression_Function): Remove local
6244         variable New_Decl and update all references to it after the
6245         rewriting has taken place. Establish the linkages between the
6246         generated spec and body.
6248 2014-07-29  Robert Dewar  <dewar@adacore.com>
6250         * sem_prag.adb (ip, rv): Prevent from being optimized away.
6251         * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
6252         * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
6253         reformatting.
6255 2014-07-29  Vincent Celier  <celier@adacore.com>
6257         * prj-pp.adb: Minor comment update.
6258         * frontend.adb: If a target dependency info file has been read
6259         through switch -gnateT= add it to the dependencies of the source
6260         being compiled.
6262 2014-07-29  Robert Dewar  <dewar@adacore.com>
6264         * sem_ch3.adb, prj.adb: Minor reformatting.
6266 2014-07-29  Vincent Celier  <celier@adacore.com>
6268         * prj-pp.adb (Pretty_Print.Output_Project_File): New
6269         procedure to output project file names between quotes without
6270         concatenation, even if the line is too long.
6271         (Pretty_Print): Use Output_Project_File for project being extended and
6272         project imported.
6274 2014-07-29  Vincent Celier  <celier@adacore.com>
6276         * gnat_ugn.texi: Document that configuration pragmas files are
6277         added to the dependencies, unless they contain only pragmas
6278         Source_File_Name_Project.
6280 2014-07-29  Robert Dewar  <dewar@adacore.com>
6282         * frontend.adb: Minor reformatting.
6284 2014-07-29  Robert Dewar  <dewar@adacore.com>
6286         * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
6287         (Expand_Actuals): Make sure predicate checks are properly applied
6288         for the case of OUT or IN OUT parameters.
6289         * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
6290         predicate tests on arguments for Finalize
6291         * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
6292         if predicate tests on subprogram arguments should be skipped.
6293         * sem_util.ads (No_Predicate_Test_On_Arguments): New function
6295 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6297         * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
6298         clause for the object and the expression is an aggregate, defer
6299         resolution and expansion of the aggregate until the freeze point
6300         of the entity.
6301         * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
6302         the parent node is an N_Reference generated during expansion.
6304 2014-07-29  Vincent Celier  <celier@adacore.com>
6306         * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
6308 2014-07-29  Robert Dewar  <dewar@adacore.com>
6310         * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
6311         prepcomp.ads: Minor reformatting and code clean up.
6312         * exp_ch6.adb (Expand_Actuals): Generate predicate test
6313         unconditionally for case of OUT or IN OUT actual (before this
6314         was generated only for certain subcases, which is wrong, the
6315         test is always needed).
6317 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6319         * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
6320         * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
6321         until context type is available.
6322         * sem_res.adb (Resolve_Allocator): In the case of a qualified
6323         expression, complete resolution of expression.
6324         (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
6325         to apply Ada2012 checks on aliased formals, as well as
6326         accesibility checks when the context of the call is an allocator
6327         or a qualified expression.
6328         * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
6329         Moved here from sem_ch3.
6330         (Object_Access_Level): Handle properly aliased formals and
6331         aggregates.
6332         * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
6333         now properly performed in sem_res (Resolve_Actuals,
6334         Check_Aliased_Parameter).
6336 2014-07-29  Yannick Moy  <moy@adacore.com>
6338         * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
6339         * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
6340         function to decide when a subprogram can be inlined in GNATprove mode.
6341         (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
6342         condition for possible inlining.
6343         * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
6344         for Inline_Always in GNATprove mode.
6345         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
6346         body for subprograms in GNATprove mode, under debug flag -gnatdQ.
6347         * sem_prag.adb Minor change in comments.
6348         * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
6349         inside subprograms marked as SPARK_Mode On.
6350         * sinfo.ads: Minor typo fix.
6352 2014-07-29  Vincent Celier  <celier@adacore.com>
6354         * frontend.adb: Add dependency on gnat.adc when taken into account
6355         and on non-temporary configuration pragmas files specified in
6356         switches -gnatec.
6357         * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
6358         dependencies on configuration pragmas files.
6360 2014-07-29  Pat Rogers  <rogers@adacore.com>
6362         * gnat_ugn.texi: Minor clarification to the explanation for the
6363         GNATtest -v switch.
6365 2014-07-29  Robert Dewar  <dewar@adacore.com>
6367         * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
6368         documentation that explains the need for this extended range
6369         (use by C_Pass_By_Copy).
6371 2014-07-29  Robert Dewar  <dewar@adacore.com>
6373         * gnat_rm.texi, sem_prag.adb: Minor reformatting.
6375 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
6377         * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
6378         complexity metrics.
6380 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6382         PR ada/60652
6383         * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
6384         CRTSCTS to be visible.
6386 2014-07-29  Bob Duff  <duff@adacore.com>
6388         * g-trasym.adb, g-trasym.ads: Code cleanup.
6390 2014-07-29  Doug Rupp  <rupp@adacore.com>
6392         * sigtramp-vxworks.c: Minor reformatting.
6394 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6396         * gnat_rm.texi: No doc needed for Ada2012 aspect
6397         Implicit_dereference.
6399 2014-07-29  Robert Dewar  <dewar@adacore.com>
6401         * sem_attr.adb (Attribute_12): New array
6402         (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
6403         (Check_Ada_2012_Attribute): Removed.
6405 2014-07-29  Doug Rupp  <rupp@adacore.com>
6407         * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
6408         PPC, and e500.
6409         * sigtramp-vxworks.c: New file.
6410         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
6412 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6414         * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
6415         derived array type, add information about component type, which
6416         was previously missing in ali file.
6417         * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
6419 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6421         * sem_ch3.adb (Constrain_Corresponding_Record): For the case
6422         of the subtype created for a record component, do not mark
6423         the subtype as frozen. For one thing, this is anomalous (in
6424         particular, the base type might not itself be frozen yet);
6425         furthermore, proper freezing of the subtype must happen in any
6426         case. So, we just mark the subtype as requiring delayed freezing
6427         (and we'll actually freeze it when generating the init_proc of
6428         the enclosing record).
6429         Also change the name of the constrained record subtype (append a
6430         'C' so that it is clearly different from the unconstrained record
6431         type, "related_idV") to make debugging easier.
6432         (Process_Full_View): When creating a full subtype for a pending
6433         private subtype, re-establish the scope of the private subtype
6434         so that we get proper visibility on outer discriminants.
6435         * exp_ch3.adb (Build_Init_Statements): Freeze any component
6436         subtype that is not frozen yet.
6438 2014-07-29  Vincent Celier  <celier@adacore.com>
6440         * prj-proc.adb (Recursive_Process): Always initialize the
6441         environment when the project is an aggregate project, even when
6442         it is not the root tree.
6443 2014-07-29  Robert Dewar  <dewar@adacore.com>
6445         * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
6446         * gnat_rm.texi: Complete list of implementation aspects.
6447         * aspects.ads: Minor comment clarification.
6449 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6451         * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
6452         is a null-excluding access type, do not generate a constraint
6453         check if Suppress_Assignment_Checks is set on assignment node.
6454         * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
6455         parameter of a null-excluding access type, there is access check
6456         on entry, so set Suppress_Assignment_Checks on generated statement
6457         that assigns actual to parameter block.
6458         * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
6460 2014-07-29  Robert Dewar  <dewar@adacore.com>
6462         * gnat_rm.texi: Change theta to @ in documentation of aspect
6463         Dimension_System.
6465 2014-07-29  Robert Dewar  <dewar@adacore.com>
6467         * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
6468         are now on pragma.
6469         * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
6470         of Uneval_Old_*
6471         * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
6472         * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
6474 2014-07-29  Javier Miranda  <miranda@adacore.com>
6476         * types.ads Update documentation on how to add new reason codes
6477         for exceptions.
6478         (RT_Exception_Code): Keep values ordered by their
6479         reason code.  Required by the .NET backend.
6480         (RT_CE_Exceptions): Subtype declaration removed.
6481         (RT_PE_Exceptions): Subtype declaration removed.
6482         (RT_SE_Exceptions): Subtype declaration removed.
6483         (Kind): New mapping table of RT_Exception_Codes.
6484         * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
6485         new mapping table.
6486         * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
6487         mapping table.  (Make_Raise_Program_Error): Updated to use the
6488         new mapping table.
6489         (Make_Raise_Storage_Error): Updated to use the new mapping table.
6490         * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
6491         their reason code.
6493 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6495         * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
6496         distributed stubs generation.
6497         * exp_ch3.adb: Minor reformatting.
6499 2014-07-29  Yannick Moy  <moy@adacore.com>
6501         * sinfo.ads: Document constraint between frontend and GNATprove.
6503 2014-07-29  Robert Dewar  <dewar@adacore.com>
6505         * a-except.adb: Minor comment clarification.
6507 2014-07-29  Robert Dewar  <dewar@adacore.com>
6509         * gnat_rm.texi: Complete list of implementation attributes.
6510         * snames.ads-tmpl: Clean up list of impl-defined attributes.
6512 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6514         * freeze.adb (Freeze_Record_Type): Perform various
6515         volatility-related checks.
6517 2014-07-29  Robert Dewar  <dewar@adacore.com>
6519         * sem_ch3.adb, sem_eval.adb: Minor reformatting.
6521 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6523         * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
6524         the case where the attribute reference appears in a nested scope
6525         from that of the subprogram prefix.
6526         * sem_attr.adb: Minor reformatting.
6528 2014-07-29  Robert Dewar  <dewar@adacore.com>
6530         * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
6531         initialization options.
6533 2014-07-29  Robert Dewar  <dewar@adacore.com>
6535         * sinfo.ads: Minor comment addition.
6537 2014-07-29  Bob Duff  <duff@adacore.com>
6539         * sem_eval.adb, sem_ch13.adb: Minor reformatting.
6541 2014-07-29  Doug Rupp  <rupp@adacore.com>
6543         * init.c: Complete previous change.
6545 2014-07-29  Robert Dewar  <dewar@adacore.com>
6547         * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
6548         array case.
6550 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6552         * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
6553         and the completion will appear in the same declarative part,
6554         create elaboration flag.
6555         * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
6556         is a completion of a declaration in the same declarative part,
6557         and the subprogram has had its address taken, add elaboration
6558         check inside the subprogram body, to detect elaboration errors
6559         that may occur through indirect calls.
6561 2014-07-29  Doug Rupp  <rupp@adacore.com>
6563         * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
6564         * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
6566 2014-07-29  Vincent Celier  <celier@adacore.com>
6568         * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
6569         runtime directorie specified with two switches --RTS= designate
6570         the same directory, even when there are no literarily the same.
6572 2014-07-29  Robert Dewar  <dewar@adacore.com>
6574         * gnat_ugn.texi: Minor documentation clarification.
6575         * switch-c.adb: Minor reformatting.
6577 2014-07-29  Robert Dewar  <dewar@adacore.com>
6579         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
6580         Fix incorrect RTE call which caused bomb if pragma was in
6581         configuration pragma file.
6583 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
6585         * expect.c (__gnat_expect_poll): Fix typo in previous change.
6586         * g-expect.adb: Update comments.
6588 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6590         * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
6591         (Default_Attribute_Count): Bump to 16 on native platforms.
6593 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6595         * sem_res.adb: Add guard to front-end inlining for SPARK.
6597 2014-07-29  Robert Dewar  <dewar@adacore.com>
6599         * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
6600         Minor reformatting.
6602 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6604         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
6605         inline in GNATprove mode when subprogran is marked Inline_Always.
6606         * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
6607         mode if body to inline is available.
6608         * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
6609         effective in GNATprove mode.
6610         * sem_ch10.adb (Analyze_Compilation_Unit): Call
6611         Check_Package_Body_For_Inlining in GNATprove mode, so that body
6612         containing subprograms with Inline_Always can be available before
6613         calls to them.
6615 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6617         * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
6618         to Check_Package_Body_For_Inlining, to prevent confusion with other
6619         inlining subprograms.
6621 2014-07-29  Robert Dewar  <dewar@adacore.com>
6623         * opt.ads: Minor comment update.
6624         * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
6625         we want setting of Uneval_Old at time of encountering the aspect.
6626         * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
6627         of Opt.Uneval_Old.
6628         * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
6629         New function (Set_Uneval_Old_Accept): New procedure.
6630         (Set_Uneval_Old_Warn): New procedure.
6631         * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
6633 2014-07-29  Robert Dewar  <dewar@adacore.com>
6635         * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
6636         * snames.ads-tmpl: Minor reformatting.
6637         * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
6638         to give <Error>.  Not clear why this was there, but the compiler
6639         sources do not reference Name_Error, and this interfered with
6640         the circuits for pragma Unevaluated_Use_Of_Old.
6642 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6644         * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
6645         types in SPARK 2014 (again).
6646         * sem_res.adb (Is_OK_Volatile_Context): New routine.
6647         (Resolve_Entity_Name): Ensure that a volatile object with
6648         enabled properties Async_Writers or Effectire_Reads appears in
6649         a non-interfering context.
6651 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6653         * sem_ch6.adb: Move Build_Body_To_Inline,
6654         Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
6655         * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
6656         * inline.ads, inline.adb: Package now contains subprograms that
6657         implement front-end inlining.  No functional changes, no test
6658         needed.
6660 2014-07-29  Robert Dewar  <dewar@adacore.com>
6662         * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
6664 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6666         * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
6667         is a limited view when the context is a package body, because
6668         there is no subsequent place at which the non-limited view may
6669         become visible.
6670         (Process_Formals): Ditto.
6671         * sinfo.ads, par-ch3.adb: Minor reformatting.
6673 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
6675         * expect.c (__gnat_expect_poll): New parameter dead_process
6676         used to return the dead process among the array of file
6677         descriptors. The Windows, VMS and HPUX implementations now
6678         properly report the dead process via this parameter. Other unixes
6679         don't need it.
6680         * g-expect.adb (Poll): Adapt to the C profile.
6681         (Expect_Internal): Use the new parameter to properly close the
6682         File Descriptor.  This then can be properly reported by the
6683         function First_Dead_Process as is expected.
6685 2014-07-29  Robert Dewar  <dewar@adacore.com>
6687         * gnat_ugn.texi: Minor clarification of -gnatQ switch.
6689 2014-07-29  Robert Dewar  <dewar@adacore.com>
6691         * einfo.adb (Derived_Type_Link): New function
6692         (Set_Derived_Type_Link): New procedure.
6693         (Write_Field31_Name): Output Derived_Type_Link.
6694         * einfo.ads: New field Derived_Type_Link.
6695         * exp_ch6.adb (Expand_Call): Warn if change of representation
6696         needed on call.
6697         * sem_ch13.adb: Minor addition of ??? comment.
6698         (Rep_Item_Too_Late): Warn on case that is legal but could cause an
6699         expensive implicit conversion.
6700         * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
6702 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6704         * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
6705         to DF_Id. Add new local variable DF_Call. Do not perform any
6706         elaboration-related checks on the call to the partial finalization
6707         routine within an init proc to avoid generating bogus elaboration
6708         warnings on expansion-related code.
6709         * sem_elab.adb (Check_A_Call): Move constant Access_Case to
6710         the top level of the routine.  Ensure that Output_Calls takes
6711         into account flags -gnatel and -gnatwl when emitting warnings
6712         or info messages.
6713         (Check_Internal_Call_Continue): Update the call to Output_Calls.
6714         (Elab_Warning): Moved to the top level of routine Check_A_Call.
6715         (Emit): New routines.
6716         (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
6717         comment on usage. Output all warnings or info messages only when the
6718         caller context demands it and the proper elaboration flag is set.
6720 2014-07-29  Yannick Moy  <moy@adacore.com>
6722         * sem_attr.adb (Analyze_Attribute/Attribute_Old):
6723         Check rule about Old appearing in potentially unevaluated
6724         expression everywhere, not only in Post.
6726 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6728         * sem_prag.adb: Update comment.
6729         * a-except.adb, a-except-2005.adb: Minor editing.
6731 2014-07-29  Pierre-Marie Derodat  <derodat@adacore.com>
6733         * exp_dbug.adb (Debug_Renaming_Declaration):
6734         Do not create renaming entities for renamings of non-packed
6735         objects and for exceptions.
6737 2014-07-29  Robert Dewar  <dewar@adacore.com>
6739         * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
6740         sem_ch6.adb, par-ch3.adb: Minor reformatting.
6742 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6744         * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
6745         subtype indication in an extended return statement when the
6746         return value is an ancestor of the return type of the function,
6747         and that return type is a null record extension.
6749 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6751         * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
6752         message produced for the case of a type-related representation
6753         item that is made illegal by 13.10(1).
6754         * gnat_rm.texi (Scalar_Storage_Order): Minor change in
6755         documentation.
6757 2014-07-29  Robert Dewar  <dewar@adacore.com>
6759         * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
6760         * erroutc.adb (Output_Error_Msgs): Take wide characters into
6761         account in computing position of error flags.
6762         * sinput.adb (Get_Column_Number): Take wide characters into
6763         account.
6765 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6767         * par-ch3.adb (P_Access_Type_Definition): The subtype indication
6768         in an access type definition can carry a null_exclusion indicator.
6769         * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
6770         carries a null_exclusion indicator, verify that the subtype
6771         indication denotes an access type, and create a null-excluding
6772         subtype for it.
6773         * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
6774         defined on N_Access_To_Object_Definition to indicate that the
6775         subtype indication carries a null_exclusion indicator.
6777 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6779         * exp_ch6.adb (Add_Extra_Actual): Do not construct
6780         the extra actual by name, generate a reference instead.
6782 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6784         * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
6785         Allow_Integer_Address if already set.
6786         * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
6787         Fix order, for consistency with Rmsg_xx declarations.
6789 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6791         * sem_ch4.adb (Complete_Object_Operation): If the type of the
6792         candidate subprogram is a limited view, use non-limited view
6793         when available.
6795 2014-07-29  Robert Dewar  <dewar@adacore.com>
6797         * sem_ch13.adb: Minor change in RM reference.
6798         * sem_mech.ads: Minor reformatting.
6799         * einfo.ads: Minor comment fix.
6800         * types.ads: Minor correction to range given for Mechanism_Type.
6801         * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
6802         check predicate on way out for OUT or IN OUT parameters.
6803         * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
6804         better (P_Range_Constraint): Corresponding fix.
6805         * checks.ads: Minor comment clarification.
6807 2014-07-29  Gary Dismukes  <dismukes@adacore.com>
6809         * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
6810         and Treat_As_Volatile flags based on whether the renamed object
6811         is a volatile object.
6813 2014-07-29  Olivier Hainque  <hainque@adacore.com>
6815         * g-debpoo.adb
6816         (Default_Alignment): Rename as Storage_Alignment. This is not
6817         a "default" that can be overriden. Augment comment to clarify
6818         intent and document why we need to manage alignment padding.
6819         (Header_Offset): Set to Header'Object_Size instead of 'Size
6820         rounded up to Storage_Alignment. Storage_Alignment on the
6821         allocation header is not required by our internals so was
6822         overkill. 'Object_Size is enough to ensure proper alignment
6823         of the header address when substracted from a storage address
6824         aligned on Storage_Alignment.
6825         (Minimum_Allocation): Rename as Extra_Allocation, conveying that
6826         this is always added on top of the incoming allocation requests.
6827         (Align): New function, to perform alignment rounding operations.
6828         (Allocate): Add comments on the Storage_Address computation
6829         scheme and adjust so that the alignment padding applies to that
6830         (Storage_Address) only.
6832 2014-07-29  Robert Dewar  <dewar@adacore.com>
6834         * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
6835         pragma Unreferenced.
6836         * cstand.adb (Create_Standard): Use E_Array_Type for standard
6837         string types. Make sure index of Any_String/Any_Array is in a list.
6838         * errout.adb: Minor reformatting.
6840 2014-07-29  Robert Dewar  <dewar@adacore.com>
6842         * gnat_ugn.texi: Clean up and correct documentation of warnings.
6843         * usage.adb: Minor corrections to make sure warnings are properly
6844         documented.
6845         * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
6846         (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
6848 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6850         * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
6851         created to match internal sequence numbers between compilations
6852         with/without abort must have its type properly set.
6854 2014-07-29  Robert Dewar  <dewar@adacore.com>
6856         * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
6857         (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
6858         SSO_Default_Specified.
6859         * ali.ads (ALIs_Record): Add field SSO_Default
6860         (SSO_Default_Specified): New global switch.
6861         * bcheck.adb (Check_Consistent_SSO_Default): New procedure
6862         (Check_Configuration_Consistency): Call this procedure
6863         * einfo.adb (SSO_Set_High_By_Default): New
6864         function (SSO_Set_Low_By_Default): New function
6865         (Set_SSO_Set_High_By_Default): New procedure
6866         (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
6867         List new flags
6868         * einfo.ads (SSO_Set_Low_By_Default): New flag
6869         (SSO_Set_High_By_Default): New flag
6870         * freeze.adb (Set_SSO_From_Default): New procedure
6871         (Freeze_Array_Type): Call Set_SSO_From_Default
6872         (Freeze_Record_Type): Call Set_SSO_From_Default
6873         * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
6874         * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
6875         * lib-writ.ads: Add OL/OH parameters to P line
6876         * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
6877         * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
6878         New global switch
6879         * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
6880         set by default using pragma Default_Scalar_Storage_Order.
6881         * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
6882         * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
6883         Clear SSO defaults when explicit SSO is inherited.
6884         (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
6885         explicit SSO is specified.
6886         (Inherit_Aspects_At_Freeze_Point):
6887         Clear SSO default when inheriting SSO.
6888         * sem_ch3.adb (Set_Default_SSO): New procedure
6889         (Analyze_Private_Extension_Declaration): Set defualt SSO
6890         (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
6891         (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
6892         ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
6893         (Record_Type_Declaration): ditto
6894         * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
6895         Save Default_SSO
6896         * sem_prag.adb (Analyze_Pragma, case
6897         Default_Scalar_Storage_Order): Set Default_SSO
6899 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6901         * sem_ch6.adb (Valid_Operator_Definition): Verify that
6902         all parameter have mode IN. This check must be done here for
6903         subprogram instantiations that have operator names, because their
6904         analysis does not follow the same path as that for subprogram
6905         declarations.
6907 2014-07-29  Robert Dewar  <dewar@adacore.com>
6909         * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
6910         to make sure that the Etype of a component of the corresponding
6911         record type is present before trying to freeze it.
6912         * sem_ch5.adb: Minor reformatting.
6914 2014-07-29  Robert Dewar  <dewar@adacore.com>
6916         * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
6917         a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
6918         and then use it when a stream operation is used from a library generic
6919         when the restriction (No_Streams) is active.
6921 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6923         * projects.texi: Fix minor typo.
6925 2014-07-29  Yannick Moy  <moy@adacore.com>
6927         * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
6929 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6931         * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
6932         CodePeer mode.
6934 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6936         * exp_ch7.adb (Find_Last_Init): Add local variable
6937         Deep_Init_Found. Check the statement immediately following the
6938         declaration if [Deep_]Initialization was not found.
6940 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6942         * exp_util.adb (Is_Aliased): It appears that
6943         'reference-d and renamed objects still play some role in Boolean
6944         expression with actions and cannot be finalized immediately.
6946 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6948         * exp_dbug.adb (Qualify_Needed):  For debugging purposes,
6949         Loop names are not part of the full qualification of entity names.
6951 2014-07-29  Robert Dewar  <dewar@adacore.com>
6953         * einfo.adb (Has_Protected): Test base type.
6954         * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
6955         that we always properly check No_Protected_Type_Allocators.
6957 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6959         * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
6960         loop declarations as well.
6961         * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
6962         to an iterator loop, because it may contain local renaming
6963         declarations that require debugging information.
6965 2014-07-29  Robert Dewar  <dewar@adacore.com>
6967         * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
6969 2014-07-29  Robert Dewar  <dewar@adacore.com>
6971         * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
6972         (Set_Static_Real_Or_String_Predicate): New procedure
6973         * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
6974         string predicates (Is_Predicate_Static): Handle static string
6975         predicates.
6976         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
6977         New procedure (Check_Expression_Against_Static_Predicate):
6978         Deal with static string predicates, now fully implemented
6979         (Eval_Relational_Op): Allow string equality/inequality as static
6980         if not comes from source.
6982 2014-07-29  Robert Dewar  <dewar@adacore.com>
6984         * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
6985         einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
6986         sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
6987         handling. Change name of Discrete_Predicate to
6988         Discrete_Static_Predicate, and replace testing of the presence of this
6989         field by testing the flag Has_Static_Expression.
6991 2014-07-29  Robert Dewar  <dewar@adacore.com>
6993         * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
6994         * opt.adb: Handle Uneval_Old.
6995         * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
6996         * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
6997         * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
6998         * sem_attr.adb (Uneval_Old_Msg): New procedure.
6999         * sem_ch8.adb (Push_Scope): Save Uneval_Old.
7000         (Pop_Scope): Restore Uneval_Old.
7001         * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
7002         Implemented.
7003         * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
7004         Add entries for Name_Warn, Name_Allow.
7006 2014-07-29  Robert Dewar  <dewar@adacore.com>
7008         * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
7009         to Is_OK_Static_Range.
7010         * sem_attr.adb (Eval_Attribute): Make sure we properly flag
7011         static attributes (Eval_Attribute, case Size): Handle size of
7012         zero properly (Eval_Attribute, case Value_Size): Handle size of
7013         zero properly.
7014         * sem_ch13.adb: Minor reformatting.
7015         * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
7016         Is_Static_Range to Is_OK_Static_Range.
7017         * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
7018         wrong in several ways (Is_Static_Range): Moved here from spec
7019         (Is_Static_Subtype): Moved here from spec Change some incorrect
7020         Is_Static_Subtype calls to Is_OK_Static_Subtype.
7021         * sem_eval.ads: Add comments to section on
7022         Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
7023         Add clarifying comments (Is_Static_Range): Moved to body
7024         (Is_Statically_Unevaluated): New function.
7025         * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
7026         Is_Static_Range to Is_OK_Static_Range.
7027         * sinfo.ads: Additional commments for Is_Static_Expression noting
7028         that clients should almost always use Is_OK_Static_Expression
7029         instead. Many other changes throughout front end units to obey
7030         this rule.
7031         * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
7032         for enumeration literal.
7033         * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
7034         lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
7035         sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
7036         exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
7037         Replace all occurrences of Is_Static_Expression by
7038         Is_OK_Static_Expression.
7040 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7042         * exp_ch4.adb (Process_Transient_Object): Remove constant
7043         In_Cond_Expr, use its initialization expression in place.
7044         * exp_ch7.adb (Process_Declarations): There is no need to check
7045         that a transient object being hooked is controlled as it would
7046         not have been hooked in the first place.
7047         * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
7048         objects are not considered aliased when the related context is
7049         a Boolean expression_with_actions.
7050         (Requires_Cleanup_Actions): There is no need to check that a transient
7051         object being hooked is controlled as it would not have been hooked in
7052         the first place.
7054 2014-07-29  Robert Dewar  <dewar@adacore.com>
7056         * errout.adb: Minor reformatting.
7058 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7060         * exp_ch3.adb (Default_Initialize_Object): Add new variables
7061         Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
7062         not allowed to ensure the symmetrical generation of symbols.
7063         * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
7064         and E_Decl. Add new variables Decl and Dummy. Generate a dummy
7065         temporary when aborts are not allowed to ensure symmertrical
7066         generation of symbols.
7067         * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
7068         Dummy. Generate a dummy temporary when aborts are not allowed
7069         to ensure symmertrical generation of symbols.
7071 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7073         * exp_dbug.adb (Debug_Renaming_Declaration): For an object
7074         renaming, indicate that the renamed entity itself needs debug
7075         information. This is necessary if that entity is a temporary,
7076         e.g. part of the expansion of an explicit dereference in an
7077         iterator.
7079 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7081         * errout.adb (Set_Error_Posted): When propagating flag to
7082         an enclosing named association, also propagate to the parent
7083         of that node, so that named and positional associations are
7084         treated consistently.
7086 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7088         * sem_attr.adb (Resolve_Attribute, case 'Update):  Set
7089         Do_Range_Check properly on array component expressions that
7090         have a scalar type. In GNATprove mode, only checks on scalar
7091         components must be marked by the front-end.
7093 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7095         * sem_res.adb (Resolve_Type_Conversion): If the type of the
7096         expression is a limited view, use the non-limited view when
7097         available.
7099 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7101         * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
7102         case statement as coming from a conditional expression.
7103         (Expand_N_If_Expression): Mark the generated if statement as
7104         coming from a conditional expression.
7105         * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
7106         objects found in case statement alternatives when the case
7107         statement is actually a case expression.
7108         (Expand_N_If_Statement):
7109         Do not process controlled objects found in an if statement when
7110         the if statement is actually an if expression.
7111         * sinfo.adb (From_Conditional_Expression): New routine.
7112         (Set_From_Conditional_Expression): New routine.
7113         * sinfo.ads Add new semantic flag From_Conditional_Expression and
7114         update related nodes.
7115         (From_Conditional_Expression): New routine along with pragma Inline.
7116         (Set_From_Conditional_Expression): New routine along with pragma Inline.
7118 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7120         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
7121         formal parameter Obj_Id and update the comment on usage. Renamed
7122         Obj_Typ to Func_Typ and update all occurrences.
7123         (Find_Last_Init): Remove formal parameter Decl and update the comment
7124         on usage.
7125         Remove local constants Obj_Id and Obj_Typ. Remove local variables
7126         Init_Typ and Is_Conc. Remove the extraction of the initialization type.
7127         (Find_Last_Init_In_Block): Remove formal parameter
7128         Init_Typ and update the comment on usage.
7129         (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
7130         on usage. Check whether the procedure call is an initialization
7131         procedure of either the object type or the initialization type.
7132         (Is_Init_Proc_Of): New routine.
7133         (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
7134         routine. Add new variable Init_Typ. Add circuitry to extract the object
7135         type as well as the initialization type.
7137 2014-07-29  Robert Dewar  <dewar@adacore.com>
7139         * sem_case.adb: Minor reformatting.
7140         * sem_aux.ads: Minor reformatting.
7142 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7144         * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
7145         pointer on these fields, even though they are semantic, because
7146         subsequent analysis and expansion of action nades may require
7147         exploring the tree, for example to locate a node to be wrapped
7148         when a function with controlled result is called.
7150 2014-07-29  Claire Dross  <dross@adacore.com>
7152         * sem_aux.adb (Get_Binary_Nkind): Use case on
7153         Name_Id instead of an intermediate string.
7154         (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
7155         string.
7157 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
7159         * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
7160         about processing sources with preprocessor directives.
7162 2014-07-24  Martin Liska  <mliska@suse.cz>
7164         * gcc-interface/trans.c (finalize_nrv): Adjust function call.
7165         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
7166         (gnat_write_global_declarations): Likewise.
7168 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
7170         * gnat_rm.texi: Clean up for makeinfo 5.2.
7172 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
7174         * gnat_rm.texi (Machine Code Insertions): Clean up.
7176 2014-07-18  Robert Dewar  <dewar@adacore.com>
7178         * exp_ch7.adb: Minor reformatting.
7180 2014-07-18  Claire Dross  <dross@adacore.com>
7182         * sem_aux.ads (Get_Binary_Nkind): New function that returns
7183         the Node_Kind value of an entity defining a binary operator.
7184         (Get_Unary_Nkind): New function that returns the Node_Kind value
7185         of an entity defining a unary operator.
7187 2014-07-18  Pascal Obry  <obry@adacore.com>
7189         * sysdep.c: comment update.
7190         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
7191         platforms where it is known to be supported.
7193 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7195         * sem_dist.adb (Process_Remote_AST_Declaration): Need
7196         to set Fat_Type's Ekind in order to be able to use its
7197         Corresponding_Remote_Type attribute.
7199 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7201         * einfo.adb Last_Aggregate_Assignment is now Node 30.
7202         (Last_Aggregate_Assignment): Include
7203         constants in the assertion. Update the underlying node.
7204         (Set_Last_Aggregate_Assignment): Include constants in the
7205         assertion. Update the underlying node.  (Write_Field11_Name):
7206         Remove the entry for Last_Aggregate_Assignment.
7207         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
7208         * einfo.ads Update the node designation and usage of attribute
7209         Last_Aggregate_Assignment.
7210         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
7211         assignment statement used to initialize a controlled object.
7212         (Late_Expansion): Store the last assignment statement used to
7213         initialize a controlled record or an array of controlled objects.
7214         * exp_ch3.adb (Expand_N_Object_Declaration): Default
7215         initialization of objects is now performed in a separate routine.
7216         (Default_Initialize_Object): New routine.
7217         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
7218         Obj_Id. Update the comment on usage.
7219         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
7220         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
7221         (Is_Init_Call): Add formal parameter Init_Typ. Update the
7222         comment on usage.  Account for the type init proc when trying
7223         to determine whether a statement is an initialization call.
7224         (Make_Adjust_Call): Rename formal parameter For_Parent to
7225         Skip_Self. Update all occurrences of For_Parent. Account for
7226         non-tagged types. Update the call to Make_Call.
7227         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
7228         comment on usage. Update all occurrences of For_Parent.
7229         (Make_Final_Call): Rename formal parameter For_Parent to
7230         Skip_Self. Update all occurrences of For_Parent. Account
7231         for non-tagged types. Update the call to Make_Call.
7232         (Process_Object_Declaration): Most variables and constants are
7233         now local to the routine.
7234         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
7235         For_Parent to Skip_Self. Update the comment on usage.
7236         (Make_Final_Call): Rename formal parameter For_Parent to
7237         Skip_Self. Update the comment on usage.
7239 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7241         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
7242         can be a procedure that is implemented by entry, and have a
7243         formal that is a synchronized interface.  It does not have to
7244         be declared as a protected operation.
7246 2014-07-18  Robert Dewar  <dewar@adacore.com>
7248         * gnat_rm.texi: Remove mention of obsolete attributes
7249         Max[_Interrupt]_Priority, which have never been implemented
7250         (or at the very least were removed long ago if they ever were
7251         implemented.  Add documentation of Max[_Interrupt]_Priority
7252         constants in package System.
7253         * ttypes.ads: Document actual handling of package System,
7254         rather than a historical fantasy version.  Remove mention of
7255         non-existent attributes Max[_Interrupt]_Priority.
7257 2014-07-18  Pascal Obry  <obry@adacore.com>
7259         * a-witeio.adb (Put): No 16-bit character output when text
7260         translation is disabled.
7261         * i-cstrea.ads: Code clean up.
7263 2014-07-18  Robert Dewar  <dewar@adacore.com>
7265         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
7266         static attributes.
7268 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7270         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
7272 2014-07-18  Pascal Obry  <obry@adacore.com>
7274         * adaint.c: Do not include wchar.h on VxWorks.
7275         * mingw32.h: Remove obsolete definition.
7277 2014-07-18  Pascal Obry  <obry@adacore.com>
7279         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
7280         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
7281         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
7282         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
7284 2014-07-18  Pascal Obry  <obry@adacore.com>
7286         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
7287         * a-ztexio.adb: Likewise.
7288         * a-witeio.adb: Likewise.
7289         (Open): Pass file's translation mode to set_text_mode.
7290         * s-ficobl.ads (Content_Encoding): New type.
7291         (Text_Content_Encoding): New subtype.
7292         (AFCB): Rename Is_Text_File to Text_Encoding.
7293         * s-fileio.adb (Open): Handles new text_translation
7294         values. Remove Is_Text_File which is equivalent to Text_Encoding
7295         in Text_Content_Encoding.
7296         * adaint.h (__gnat_set_mode): New routine.
7297         * sysdep.c (__gnat_set_wide_text_mode): Removed.
7298         (__gnat_set_mode): New routine.
7300 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7302         * gcc-interface/decl.c, gcc-interface/trans.c,
7303         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
7304         Is_Packed_Array_Impl_Type.
7306 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7308         * sem_util.adb: Minor typo correction.
7310 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
7312         * gnat_rm.texi: Complete previous change.
7314 2014-07-18  Pascal Obry  <obry@adacore.com>
7316         * s-fileio.adb: Minor style fix.
7318 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7320         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
7321         specification of stream attributes for subtypes that are not
7322         first subtypes, to prevent malformed rep_item chains in the case
7323         of such illegal specifications for discriminated private subtypes.
7324         (Check_Overloaded_Name): Verify that the name is an entity name
7325         before other checks.
7327 2014-07-18  Pascal Obry  <obry@adacore.com>
7329         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
7331 2014-07-18  Robert Dewar  <dewar@adacore.com>
7333         * sem_prag.adb, sem_attr.adb,
7334         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
7336 2014-07-18  Pascal Obry  <obry@adacore.com>
7338         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
7339         * initialize.c (__gnat_wide_text_translation_required): Defined here.
7341 2014-07-18  Pascal Obry  <obry@adacore.com>
7343         * adaint.c (__gnat_fputwc): New routine.
7344         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
7346 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7348         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
7349         (Set_Stores_Attribute_Old_Prefix): New routine.
7350         (Stores_Attribute_Old_Prefix): New routine.
7351         (Write_Entity_Flags):
7352         Output flag Stores_Attribute_Old_Prefix.
7353         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
7354         comment on usage.
7355         (Set_Stores_Attribute_Old_Prefix): New routine
7356         along with pragma Inline.
7357         (Stores_Attribute_Old_Prefix): New
7358         routine along with pragma Inline.
7359         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
7360         constant which captures the result of attribute 'Old's prefix.
7361         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
7362         relocated expression which acted as a prefix of attribute 'Old.
7364 2014-07-18  Bob Duff  <duff@adacore.com>
7366         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
7367         null before dispatching to Deallocate_Subpool.
7368         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
7369         parameter of Default_Subpool_For_Pool to 'in out'.
7370         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
7371         a message to the raise.
7372         * sem_util.adb: Minor reformatting.
7374 2014-07-18  Robert Dewar  <dewar@adacore.com>
7376         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7377         Mark expression as non-static if it fails static predicate check,
7378         and issue additional warning.
7380 2014-07-18  Pascal Obry  <obry@adacore.com>
7382         * a-witeio.adb (Put): Control translation based on
7383         wide_text_translation_required.
7384         * adaint.c (CurrentCCSEncoding): New variable.
7385         * initialize.c (__gnat_initialize): On Windows initialize
7386         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
7387         environment variable.
7388         * mingw32.h (CurrentCCSEncoding): New external.
7389         (__gnat_wide_text_translation_required): Likewise.
7390         * sysdep.c (wide_text_translation_required): New variable.
7391         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
7393 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7395         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
7396         variable Refined_States.  Add global variable Matched_Items.
7397         (Check_Dependency_Clause): Account for dependency
7398         clauses utilizing states with visible null refinements.
7399         (Is_Null_Refined_State): New routine.
7400         (Match_Items): Record each successfully matched item of pragma Depends.
7401         (Record_Item): New routine.
7403 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7405         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
7406         Do_Range_Check flag on a dynamic index expression used in a
7407         component association in the argument of Update.
7409 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7411         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
7413 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7415         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
7416         of enclosing blocks, loops and the enclosing function using a
7417         parent-based traversal.
7418         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
7419         stack reclamation if the iterator loop contains a return statement
7420         that uses the stack.
7421         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
7422         patch up the scope stack as the secondary stack management now
7423         takes into account the enclosing function of the iterator loop.
7425 2014-07-18  Robert Dewar  <dewar@adacore.com>
7427         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
7429 2014-07-18  Robert Dewar  <dewar@adacore.com>
7431         * einfo.adb (Has_Static_Predicate): New function.
7432         (Set_Has_Static_Predicate): New procedure.
7433         * einfo.ads (Has_Static_Predicate): New flag.
7434         * sem_ch13.adb (Is_Predicate_Static): New function
7435         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
7436         (Add_Call): Minor change in Sloc of generated expression
7437         (Add_Predicates): Remove setting of Static_Pred, no longer used.
7438         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
7439         replace by use of the entity flag Has_Static_Predicate_Aspect.
7440         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
7441         and issue warning that predicate is not checked for now.
7442         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
7443         spec.
7444         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7445         Carry out check for any case where there is a static predicate,
7446         and output appropriate message.
7447         * sinfo.ads: Minor comment corrections.
7449 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7451         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
7452         from an untagged private type whose full view is tagged, the type
7453         is marked tagged for layout reasons, but it has no dispatch table,
7454         so Set_All_DT_Position must not be called.
7455         * exp_ch13.adb: If the freeze node is for a type internal to a
7456         record declaration, as is the case for a class-wide subtype
7457         of a parent component, the relevant scope is the scope of the
7458         enclosing record.
7460 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7462         * g-memdum.adb, g-memdum.ads: Code clean ups.
7464 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7466         * sem_prag.adb (Check_Dependency_Clause):
7467         Update the comment on usage. Reimplement the mechanism which
7468         attempts to match a single clause of Depends against one or
7469         more clauses of Refined_Depends.
7470         (Input_Match): Removed.
7471         (Inputs_Match): Removed.
7472         (Is_Self_Referential): Removed.
7473         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
7474         (Normalize_Outputs): Rename variable Split to New_Claue and update
7475         all its occurrences.
7476         (Report_Extra_Clauses): Update the comment on usage.
7477         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
7479 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7481         * i-cstrea.ads: Minor reformatting.
7483 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7485         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
7486         secondary stack-related flags to the generated block.
7487         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
7488         once the loop is relocated in a block.
7490 2014-07-18  Robert Dewar  <dewar@adacore.com>
7492         * repinfo.ads: Add documentation on handling of back annotation
7493         for dynamic case.
7495 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7497         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
7498         of full type declaration, denotes previous declaration for
7499         incomplete view of the type.
7500         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
7501         of declaration if one is present.
7502         (Replace_Type): When constructing the signature of an inherited
7503         operation, handle properly the case where the operation has a
7504         formal whose type is an incomplete view.
7505         * sem_util.adb (Collect_Primitive_Operations): Handle properly
7506         the case of an operation declared after an incomplete declaration
7507         for a type T and before the full declaration of T.
7509 2014-07-18  Pascal Obry  <obry@adacore.com>
7511         * i-cstrea.ads: Add documentation for set_wide_text_mode.
7513 2014-07-18  Robert Dewar  <dewar@adacore.com>
7515         * a-witeio.adb: Minor code reorganization.
7516         * i-cstrea.ads: Add comment.
7518 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7520         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
7521         clarifications.
7523 2014-07-18  Robert Dewar  <dewar@adacore.com>
7525         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
7527 2014-07-18  Pascal Obry  <obry@adacore.com>
7529         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
7530         * a-witeio.adb (Put): On platforms where there is translation
7531         done by the OS output the raw text.
7532         (New_Line): Use Put above to properly handle the LM wide characters.
7534 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7536         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
7537         to Absolute_Address.
7539 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
7541         * opt.ads (Suppress_Back_Annotation): Remove as unused.
7542         * fe.h (Back_Annotate_Rep_Info): Likewise.
7543         (Global_Discard_Names): Likewise.
7545 2014-07-18  Robert Dewar  <dewar@adacore.com>
7547         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
7548         parenthesized.
7550 2014-07-18  Vincent Celier  <celier@adacore.com>
7552         * s-osinte-vms.ads: Fix style errors.
7554 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7556         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
7557         NAME_MAX and PATH_MAX.
7559 2014-07-18  Bob Duff  <duff@adacore.com>
7561         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
7562         Build_Record_Or_Elementary_Output_Procedure): For Input and
7563         Output attributes, do not read/write the discriminants if they
7564         have default values; that will be done by Read/Write.
7566 2014-07-18  Robert Dewar  <dewar@adacore.com>
7568         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
7569         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
7570         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
7571         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
7572         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
7574 2014-07-18  Robert Dewar  <dewar@adacore.com>
7576         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
7578 2014-07-18  Vincent Celier  <celier@adacore.com>
7580         * lib-writ.ads: Update documentation about the D lines.
7582 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7584         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
7585         as a parameter, rather than its Chars field, in order to locate
7586         freeze node of type. If the predicate or invariant has references
7587         to types other than the one to which the contract applies, these
7588         types must be frozen, and the corresponding predicate functions
7589         created, before that freeze node.
7591 2014-07-18  Robert Dewar  <dewar@adacore.com>
7593         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
7594         * par_sco.adb: Minor reformatting.
7596 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7598         * exp_ch4.adb (Real_Range_Check): Turn off
7599         the Do_Range_Check flag on the conversion's current Expression
7600         argument rather than on the originally captured Operand node,
7601         as Expression may reflect a rewriting (as in conversions to a
7602         fixed-point type).
7604 2014-07-18  Vincent Celier  <celier@adacore.com>
7606         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
7607         is not a subunit.
7608         * ali.ads (Sdep_Record): New component Unit_Name.
7609         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
7610         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
7611         dependent unit is in a project and the source file name is not
7612         one of its sources.
7614 2014-07-18  Bob Duff  <duff@adacore.com>
7616         * s-addima.ads: Minor: add comment.
7618 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7620         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
7621         of nesting rules for composites with different SSOs.
7623 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7625         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
7626         a proper logical operator.
7627         (Has_Decision): An If_Expression indicates the presence of a decision
7628         although it is not a logical operator.
7630 2014-07-18  Robert Dewar  <dewar@adacore.com>
7632         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
7633         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
7635 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
7637         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
7638         on the null statement.
7640 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7642         * adaint.c: Minor comment rewording.
7643         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
7644         use of errno in this file is thread safe.
7646 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7648         * gnat_ugn.texi: Doc clarification.
7649         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
7650         * sem_ch13.ads: Minor comment update.
7652 2014-07-18  Robert Dewar  <dewar@adacore.com>
7654         * repinfo.ads: Minor comment fix.
7656 2014-07-18  Robert Dewar  <dewar@adacore.com>
7658         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
7659         * sem_prag.adb: Add dummy implementation of
7660         Default_Scalar_Storage_Order.
7661         * snames.ads-tmpl: Add dummy entry for
7662         Default_Scalar_Storage_Order pragma.
7664 2014-07-18  Robert Dewar  <dewar@adacore.com>
7666         * opt.adb (Tree_Read): Read Address_Is_Private,
7667         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
7668         (Tree_Write): Corresponding writes
7669         * opt.ads: Minor comment reformatting and fixes.
7670         * tree_io.ads: Increment ASIS_Version_Number.
7672 2014-07-18  Robert Dewar  <dewar@adacore.com>
7674         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
7675         * types.h: Fix typo.
7677 2014-07-18  Robert Dewar  <dewar@adacore.com>
7679         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
7680         functional change).
7681         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
7682         ASIS trees.
7683         * sem_ch13.adb (Kill_Rep_Clause): New procedure
7684         (Analyze_Attribute_Definition_Clause): Use
7685         Kill_Rep_Clause. This is just a cleanup, no functional effect.
7686         (Analyze_Enumeration_Representation_Clause):
7687         Use Kill_Rep_Clause. This means that enum rep
7688         clauses are now properly removed from -gnatct trees.
7689         (Analyze_Record_Representation_Clause): Same change.
7690         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
7692 2014-07-18  Pascal Obry  <obry@adacore.com>
7694         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
7695         OS_Time from time parts.
7696         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
7698 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7700         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
7701         indexing over containers that are derived types: check whether
7702         signature of found operation has the correct first parameter
7703         before retrieving directly a primitive operation.
7705 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7707         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
7708         Do_Range_Check flag on dynamic bounds of a range used in a
7709         component association in the argument of Update.
7711 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7713         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
7714         accesses to errno(3) to be thread safe.
7716 2014-07-18  Vincent Celier  <celier@adacore.com>
7718         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
7719         limited imported project that is an extending project, return
7720         a project being extended if it has the expected name.
7722 2014-07-18  Pascal Obry  <obry@adacore.com>
7724         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
7725         routine to set the last modification time stamp for the given file.
7726         * gnatchop.adb (File_Time_Stamp): Removed.
7727         (Write_Unit): Use
7728         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
7730 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7732         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
7733         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
7734         Moved here, so it can be shared with the resolution of 'Update,
7735         whose argument shares some features with aggregates.
7736         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
7737         Aggregate_Constraint_Checks with the expression of each
7738         association, so that the Do_Range_Check flag is set when needed.
7740 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7742         * sem_ch4.adb (Try_Container_Indexing):  If the container
7743         type is a derived type, the value of the inherited  aspect is
7744         the Reference operation declared for the parent type. However,
7745         Reference is also a primitive operation of the new type, and
7746         the inherited operation has a different signature. We retrieve
7747         the right one from the list of primitive operations of the
7748         derived type.
7750 2014-07-18  Vincent Celier  <celier@adacore.com>
7752         * debug.adb: Update comment.
7754 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7756         * exp_util.adb (Needs_Finalization): There is no reason why a
7757         C type should not benefit from finalization actions.
7759 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7761         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
7762         (FILENAME_MAX): Remove unneeded definition.
7764 2014-07-18  Robert Dewar  <dewar@adacore.com>
7766         * exp_attr.adb, debug.adb: Update comments.
7768 2014-07-18  Vincent Celier  <celier@adacore.com>
7770         * par-ch4.adb (Simple_Expression): Add missing style check
7771         for binary adding operators.
7772         (Term): Add missing style check for multiplying operators.
7774 2014-07-18  Robert Dewar  <dewar@adacore.com>
7776         * impunit.adb: Minor comment correction.
7777         * widechar.adb, s-wchcon.ads: Minor comment corrections.
7779 2014-07-18  Robert Dewar  <dewar@adacore.com>
7781         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
7782         for Build_Static_Predicate (Build_Predicate_Functions):
7783         Don't try to build discrete predicate for real type.
7784         (Build_Predicate_Functions): Report attempt to use
7785         Static_Predicate function on real type as unimplemented.
7786         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7787         Add guard to prevent blow up on predicate for real type.
7789 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7791         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
7792         properly static predicate on enumeration types and modular types
7793         (not subtypes).
7795 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
7797         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
7798         the corresponding source file index.
7799         * get_scos.ads (Get_SCOs): Add a default value for it.
7800         * par_sco.adb (SCO_Record): Fill the corresponding value.
7801         * scos.h: New.
7803 2014-07-18  Vincent Celier  <celier@adacore.com>
7805         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
7806         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
7807         reformatting.
7808         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
7810 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7812         * g-sercom.ads (Set): document possible data loss.
7814 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7816         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
7817         Output, Read, Write): If the restriction No_Streams is active,
7818         replace each occurrence of a stream attribute by an explicit
7819         Raise statement.
7821 2014-07-18  Robert Dewar  <dewar@adacore.com>
7823         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
7824         reformatting.
7826 2014-07-18  Robert Dewar  <dewar@adacore.com>
7828         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
7829         function.
7830         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
7831         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
7832         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
7833         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
7835 2014-07-18  Robert Dewar  <dewar@adacore.com>
7837         * bcheck.adb (Check_Consistent_Restrictions):
7838         Remove obsolete code checking for violation of
7839         No_Standard_Allocators_After_Elaboration (main program)
7840         * bindgen.adb (Gen_Adainit): Handle
7841         No_Standard_Allocators_After_Elaboration
7842         (Gen_Output_File_Ada): ditto.
7843         * exp_ch4.adb (Expand_N_Allocator): Handle
7844         No_Standard_Allocators_After_Elaboration.
7845         * Makefile.rtl: Add entry for s-elaall
7846         * rtsfind.ads: Add entry for Check_Standard_Allocator.
7847         * s-elaall.ads, s-elaall.adb: New files.
7848         * sem_ch4.adb (Analyze_Allocator): Handle
7849         No_Standard_Allocators_After_Elaboration.
7851 2014-07-18  Robert Dewar  <dewar@adacore.com>
7853         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
7854         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
7855         Remove AB parameter from ali files and all uses.
7856         Remove Allocator_In_Body and all uses.
7858 2014-07-18  Robert Dewar  <dewar@adacore.com>
7860         * g-expect-vms.adb: Add comment.
7862 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7864         * par_sco.adb (Is_Logical_Operation): return True for
7865         N_If_Expression.
7867 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7869         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
7870         analysis and resolution of each choice in the associations within
7871         the argument of Update, because they may be variable names.
7873 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7875         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
7876         actions before the generated if statement.
7878 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7880         * gnat_ugn.texi Enhance the documentation of
7881         switches -gnateA and -gnateV.
7883 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7885         * sem_util.adb (Build_Default_Subtype): Add missing condition
7886         so that code matches description: use the full view of the base
7887         only if the base is private and the subtype is not.
7889 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
7891         * exp_disp.adb: Minor reformatting.
7892         * exp_disp.adb: Minor code reorganization.
7894 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7896         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
7897         require an explicit SSO attribute definition clause on a composite type
7898         just because one of its components has one.
7900 2014-07-17  Robert Dewar  <dewar@adacore.com>
7902         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
7903         attribute out of existence if the enclosing pragma is ignored.
7904         * sem_util.adb: Minor reformatting.
7906 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7908         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
7909         array aggregate expanded into assignments when it appears as a
7910         local declaration in an inlined body.
7912 2014-07-17  Doug Rupp  <rupp@adacore.com>
7914         * init.c [__ANDROID__]: Modify for ZCX.
7915         * exp_aggr.adb: Minor reformatting
7916         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
7918 2014-07-17  Robert Dewar  <dewar@adacore.com>
7920         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
7921         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
7922         scng.adb: Remove incorrect usage "allow to" and "allows to".
7924 2014-07-17  Robert Dewar  <dewar@adacore.com>
7926         * exp_dist.adb: Minor reformatting.
7928 2014-07-17  Bob Duff  <duff@adacore.com>
7930         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
7932 2014-07-17  Robert Dewar  <dewar@adacore.com>
7934         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
7935         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
7937 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7939         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
7940         non-bit-packed array, propagate Reverse_Storage_Order to the
7941         packed array type.
7943 2014-07-17  Javier Miranda  <miranda@adacore.com>
7945         * exp_disp.adb: Fix comment.
7946         * exp_pakd.adb: Minor reformatting.
7948 2014-07-17  Robert Dewar  <dewar@adacore.com>
7950         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
7951         entity if none exists (Gen_Elab_Calls): Complain if clash with
7952         No_Multiple_Elaboration.
7953         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
7954         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
7955         if not needed.
7956         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
7957         * sem_ch4.adb: Minor comment updates.
7959 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7961         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
7962         of function call for later use when shared passive objects
7963         are involved.
7965 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7967         * par-ch13.adb (Get_Aspect_Specifications):
7968         Catch a case where the argument of SPARK aspect Refined_State
7969         is not properly parenthesized.
7971 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7973         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
7974         the lifetime of a reference to an Ada 2012 container element.
7975         (Is_Element_Reference): New routine.
7977 2014-07-17  Robert Dewar  <dewar@adacore.com>
7979         * ali.ads: Minor comment fix.
7980         * lib-writ.adb: Minor reformatting.
7982 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7984         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
7985         in ASIS mode, load another subunit only if it a subunit of the
7986         current one, not a sibling that has been reached through the
7987         analysis of an ancestor. This allows the construction of the
7988         ASIS tree for the subunit even when sibling subunits have errors.
7990 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7992         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
7993         prevents the analysis of various contracts when the associated
7994         construct is erroneous.
7995         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
7996         SPARK_Pragma of an illegal or a partially decorated construct.
7998 2014-07-17  Robert Dewar  <dewar@adacore.com>
8000         * s-imguns.ads: Minor reformatting.
8002 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8004         * exp_ch7.adb (Build_Finalization_Master): Move all local
8005         variables to the proper code section. When looking for an existing
8006         finalization master, inspect the ultimate ancestor type of the
8007         full view.
8008         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
8010 2014-07-17  Robert Dewar  <dewar@adacore.com>
8012         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
8013         * gnat_rm.texi: Document Entity argument for pragma Annotate and
8014         Annotate aspect.
8015         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
8016         for Annotate aspect.
8017         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
8018         Entity argument at end.
8019         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
8021 2014-07-17  Tristan Gingold  <gingold@adacore.com>
8023         * s-imguns.ads: Fix minor typo.
8025 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8027         * sprint.adb: Minor reformatting.
8029 2014-07-17  Robert Dewar  <dewar@adacore.com>
8031         * sprint.adb (Write_Itype): Print proper header for string
8032         literal subtype.
8034 2014-07-17  Steve Baird  <baird@adacore.com>
8036         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
8038 2014-07-17  Vincent Celier  <celier@adacore.com>
8040         * gnatbind.adb: Change in message "try ... for more information".
8042 2014-07-17  Robert Dewar  <dewar@adacore.com>
8044         * sprint.adb: Code clean up.
8046 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8048         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
8049         the relevant code section. Add new local constant Obj_Id. When
8050         a limited controlled object is initialized by a function call,
8051         the build-in-place object access function call acts as the last
8052         initialization statement.
8053         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
8054         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
8055         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
8057 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8059         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
8060         propagate intrinsic flag to renamed entity, to allow e.g. renaming
8061         of Unchecked_Conversion.
8062         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
8063         if the declaration has errors.
8065 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8067         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
8068         container is busy before checking whether capacity allows for
8069         a further insertion. Insertion in a busy container that is full
8070         raises Program_Error rather than Capacity_Error. Previous to that
8071         patch which exception was raised varied among container types.
8073 2014-07-17  Robert Dewar  <dewar@adacore.com>
8075         * g-comlin.ads, g-comlin.adb: Minor clean up.
8077 2014-07-17  Bob Duff  <duff@adacore.com>
8079         * gnat_ugn.texi: Update gnatpp doc.
8081 2014-07-17  Robert Dewar  <dewar@adacore.com>
8083         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
8084         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
8085         could do this by actually expanding a real generic.
8086         * a-tags.ads: Add comments about performance.
8087         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
8088         Print Etype of defining identifier, rather than the object
8089         definition. More information.
8091 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8093         * exp_dist.adb: Minor documentation clarification.
8095 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8097         * exp_util.adb (Is_Aliased): Revert previous change.
8099 2014-07-17  Vincent Celier  <celier@adacore.com>
8101         * g-comlin.adb (Try_Help): New procedure.
8102         (Getopt): Use new procedure Try_Help.
8103         * g-comlin.ads (Try_Help): New procedure.
8105 2014-07-17  Bob Duff  <duff@adacore.com>
8107         * gnat_ugn.texi: Minor update.
8109 2014-07-17  Robert Dewar  <dewar@adacore.com>
8111         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
8112         * sinfo.ads: Document restriction on aggregates (must expand to
8113         assignments if one or more assignments needs expansion, e.g. for
8114         controlled types).
8115         * sem_ch13.adb: All warning messages regarding bit order should
8116         be info: messages.
8117         * gnat_ugn.texi: Minor correction of missing @ on @code
8119 2014-07-17  Robert Dewar  <dewar@adacore.com>
8121         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
8122         * s-rident.ads (Partition_Boolean_Restrictions): Add
8123         No_Long_Long_Integer.
8124         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
8125         Long_Integer'Size if restriction No_Long_Long_Integer is active.
8126         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
8127         as the implicit base type for a signed integer type declaration
8128         if restriction No_Long_Long_Integer is active.
8129         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
8130         No_Long_Long_Integer.
8132 2014-07-17  Robert Dewar  <dewar@adacore.com>
8134         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
8135         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
8136         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
8137         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
8138         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
8140 2014-07-17  Robert Dewar  <dewar@adacore.com>
8142         * debug.adb: Remove -gnatdQ.
8143         * exp_disp.adb: Remove -gnatdQ.
8144         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
8145         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
8146         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
8147         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
8148         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
8149         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
8151 2014-07-17  Robert Dewar  <dewar@adacore.com>
8153         * back_end.adb: Minor reformatting and comment additions.
8154         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
8155         function.
8156         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
8157         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
8158         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
8159         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
8160         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
8161         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
8163 2014-07-17  Robert Dewar  <dewar@adacore.com>
8165         * gnat_rm.texi: Minor comment updates.
8167 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8169         * sem_util.adb (Make_Explicit_Dereference): If the expression
8170         being dereferenced is a generalized indexing, reset the overloaded
8171         flag on the generalized indexing call, consistent with the
8172         resetting of the flag on the original indexed component.
8174 2014-07-17  Robert Dewar  <dewar@adacore.com>
8176         * gnat_ugn.texi: Document advise not to mix -gnatV? and
8177         optimization.
8179 2014-07-17  Robert Dewar  <dewar@adacore.com>
8181         * checks.adb (Insert_Valid_Check): Don't insist on a name
8182         for the prefix when we make calls to Force_Evaluation and
8183         Duplicate_Subexpr_No_Checks.
8184         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
8185         (Remove_Side_Effects): Handle all volatile references right
8186         (Side_Effect_Free): Volatile reference is never side effect free
8187         * sinfo.ads (N_Attribute_Reference): Add comments explaining
8188         that in the tree, the prefix can be a general expression.
8190 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8192         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
8193         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
8194         * sem_ch7.adb (Analyze_Package_Body_Contract,
8195         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
8197 2014-07-17  Robert Dewar  <dewar@adacore.com>
8199         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
8200         Store_After_Actions_In_Scope.
8202 2014-07-17  Robert Dewar  <dewar@adacore.com>
8204         * sem_aux.ads: Minor comment addition.
8206 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8208         * sem_res.adb (Make_Call_Into_Operator): If the call is already
8209         a rewriting of an operator node, there are no actuals to be
8210         propagated from original node to rewritten node when in ASIS mode.
8212 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8214         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
8215         Analyze_Subprogram_Contract): Add new local variable Mode. Save
8216         and restore the SPARK mode of the related construct in a
8217         stack-like fashion.
8218         * sem_ch7.adb (Analyze_Package_Body_Contract,
8219         Analyze_Package_Contract): Add new local variable Mode. Save and
8220         restore the SPARK mode of the related construct in a stack-like fashion.
8221         * sem_util.adb Remove with and use clause for Opt.
8222         (Restore_SPARK_Mode): New routine.
8223         (Save_SPARK_Mode_And_Set): New routine.
8224         * sem_util.ads Add with and use clause for Opt.
8225         (Restore_SPARK_Mode): New routine.
8226         (Save_SPARK_Mode_And_Set): New routine.
8228 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8230         * exp_util.adb (Is_Aliased): Transient objects
8231         within an expression with actions cannot be considered aliased.
8233 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8235         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
8236         introduce a new list (cleanup actions) for each (transient) scope.
8237         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
8238         N_Block_Statement
8239         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
8240         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
8241         processing for Store_xxx_Actions_In_Scope.
8242         (Build_Cleanup_Statements): Allow for a list of additional
8243         cleanup statements to be passed by the caller.
8244         (Expand_Cleanup_Actions): Take custom cleanup actions associated
8245         with an N_Block_Statement into account.
8246         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
8247         reorganization (refactoring only, no behaviour change).
8248         (Make_Transient_Block): Add assertion to ensure that the current
8249         scope is indeed a block (namely, the entity for the transient
8250         block being constructed syntactically, which has already been
8251         established as a scope).  If cleanup actions are present in the
8252         transient scope, transfer them now to the transient block.
8253         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
8254         called function while it is still present as the name in a call
8255         in the tree. This may not be the case later on if the call is
8256         rewritten into a transient block.
8257         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
8258         inserted after calling a protected operation on a shared passive
8259         protected must be performed in a block finalizer, not just
8260         inserted in the tree, so that they are executed even in case of
8261         a normal (RETURN) or abnormal (exception) transfer of control
8262         outside of the current scope.
8263         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
8264         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
8265         Scope_Stack_Entry reorganization.
8267 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8269         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
8270         call for types that do not have an explicit attribute definition
8271         clause for External_Tag, as their default tag may clash with an
8272         explicit tag defined for some other type.
8274 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8276         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
8277         controlled function call with multiple actual parameters that
8278         appears in Object.Operation form.
8280 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8282         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
8283         entity flag.
8284         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
8285         External_Tag): No need to set entity flag.
8286         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
8287         Reimplement correctly in terms of Has_Rep_Item.
8289 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8291         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
8292         Start examining the tree at the node passed to
8293         Establish_Transient_Scope (not its parent).
8294         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8295         The access type for the variable storing the reference to
8296         the call must be declared and frozen prior to establishing a
8297         transient scope.
8298         * exp_ch9.adb: Minor reformatting.
8300 2014-07-17  Pascal Obry  <obry@adacore.com>
8302         * s-os_lib.ads: Minor comment update.
8304 2014-07-17  Tristan Gingold  <gingold@adacore.com>
8306         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
8307         indentation.
8308         * socket.c: Remove #warning to avoid warning.
8309         * expect.c: Indent some preprocessor directives to clarify
8310         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
8311         to remove warnings.
8312         * env.c: Fix indentation.  Port to PikeOS.
8313         * gsocket.h: Port to PikeOS.  Remove #warning.
8314         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
8315         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
8316         of stubbed __gnat_setup_parent_communication.
8317         * adaint.c: Port to PikeOS.  Reindent some preprocessor
8318         directives to clarify nested if.  Fix indentation.  Add missing
8319         ATTRIBUTE_UNUSED.
8321 2014-07-17  Robert Dewar  <dewar@adacore.com>
8323         * sem_attr.adb: Minor reformatting.
8325 2014-07-17  Robert Dewar  <dewar@adacore.com>
8327         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
8329 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8331         * sem_case.adb (Check_Choice_Set): If the case expression is the
8332         expression in a predicate, do not recheck coverage against itself,
8333         to prevent spurious errors.
8334         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
8335         expression comes from an aspect specification, to prevent spurious
8336         errors when expression is a case expression in a predicate.
8338 2014-07-17  Pascal Obry  <obry@adacore.com>
8340         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
8341         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
8343 2014-07-17  Vincent Celier  <celier@adacore.com>
8345         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
8346         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
8347         the usage for an erroneous invocation of a gnat tool.
8349 2014-07-16  Vincent Celier  <celier@adacore.com>
8351         * gnatls.adb: Get the target parameters only if -nostdinc was
8352         not specified.
8354 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8356         * checks.adb (Insert_Valid_Check): If the expression is a packed
8357         component of a modular type of the right size the data is always
8358         valid. This os particularly useful if the component is part of
8359         a volatile variable.
8361 2014-07-16  Robert Dewar  <dewar@adacore.com>
8363         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
8365 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8367         * exp_ch7.ads: Minor documentation fix.
8369 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8371         * sem_ch3.adb (Find_Type_Name): Diagnose properly
8372         a private extension completion that is an interface definition
8373         with an interface list.
8375 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
8377         * gnatls.adb (Gnatls): Code clean ups.
8379 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8381         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
8382         * sem.adb (Analyze): Handle N_Compound_Statement.
8383         * sprint.adb (Sprint_Node_Actual): Ditto.
8384         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
8385         procedure to handle N_Compound_Statement.
8386         * exp_aggr.adb (Collect_Initialization_Statements):
8387         Use a proper compound statement node, instead of a bogus
8388         expression-with-actions with a NULL statement as its expression,
8389         to wrap collected initialization statements.
8390         * freeze.ads, freeze.adb
8391         (Explode_Initialization_Compound_Statement): New public procedure,
8392         lifted from Freeze_Entity.
8393         (Freeze_Entity): When freezing
8394         an object with captured initialization statements and without
8395         delayed freezing, explode compount statement.
8396         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
8397         case that used to handle bogus EWAs with NULL statement as
8398         the expression.
8399         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
8400         delayed freezing and captured initialization statements, explode
8401         compound statement.
8403 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
8405         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
8407 2014-07-16  Doug Rupp  <rupp@adacore.com>
8409         * s-interr-hwint.adb: Casing error on parameter.
8411 2014-07-16  Pascal Obry  <obry@adacore.com>
8413         * Makefile.rtl: Add g-rewdat.o dependencies in
8414         GNATRTL_NONTASKING_OBJS.
8416 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8418         * sem_case.adb: Code clean up.
8420 2014-07-16  Vincent Celier  <celier@adacore.com>
8422         * make.adb: Do not read gnat.adc when gnatmake is invoked
8423         with -gnatA.
8425 2014-07-16  Pascal Obry  <obry@adacore.com>
8427         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
8428         implementation of GNAT.Rewrite_Data.
8430 2014-07-16  Vincent Celier  <celier@adacore.com>
8432         * gnatls.adb (Normalize): New function.
8433         (Gnatls): Get the target parameters. On targets other than VMS,
8434         normalize the path names in the source search path, the object search
8435         path and the project search path.
8437 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8439         * sem_case.adb: Avoid self-checking of case expressions in
8440         dynamic predicates.
8442 2014-07-16  Robert Dewar  <dewar@adacore.com>
8444         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
8445         discriminants.
8447 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
8449         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
8451 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
8453         * gnat_ugn.texi: Fix typo.
8455 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8457         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
8458         expression if it is the specification of a subtype predicate:
8459         it will be expanded when the return statement is analyzed, or
8460         when a static predicate is transformed into a static expression
8461         for evaluation by the front-end.
8462         * sem_ch13.adb (Get_RList): If the expression for a static
8463         predicate is a case expression, extract the alternatives of the
8464         branches with a True value to create the required statically
8465         evaluable expression.
8467 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8469         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
8470         expression, not the location of the aspect, for all generated
8471         code, so that in particular the call to raise_assert_failure
8472         gets the sloc of the associated condition.
8473         * exp_ch6.adb
8474         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
8475         Set an explicit End_Label on the handled sequence of statements
8476         for the _Postconditions procedure so that the implicit return
8477         statement does not erroneously get associated with code generated
8478         for the last condition in postconditions.
8480 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8482         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
8483         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
8484         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
8485         -gnatw.Z.
8487 2014-07-16  Robert Dewar  <dewar@adacore.com>
8489         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
8490         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
8491         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
8492         not in Access_Kind.
8493         * par-ch4.adb (At_Start_Of_Attribute): New function
8494         (P_Simple_Expression): Better msg for bad attribute prefix.
8495         * scans.ads: Minor reformatting.
8497 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8499         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
8500         static constant, check that in belongs to the corresponding index
8501         subtype, to produce the proer warning when expansion is disabled.
8503 2014-07-16  Robert Dewar  <dewar@adacore.com>
8505         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
8506         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
8507         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
8508         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
8509         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
8510         -gnatw.z/-gnatw.Z
8511         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
8512         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
8513         reformatting.
8515 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8517         * exp_ch7.adb (Process_Declarations): Reinstate the check on
8518         a hook object to ensure that the related transient declaration
8519         is finalizable.
8520         * exp_util.adb (Is_Aliased): Do not consider expresison with
8521         actions as a special context.
8522         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
8523         ensure that the related transient declaration is finalizable.
8525 2014-07-16  Robert Dewar  <dewar@adacore.com>
8527         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
8528         * snames.ads-tmpl: Add Allocation_Check to list of check names.
8529         * types.ads: Add Allocation_Check to list of check names.
8531 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8533         * sem_util.adb (Enter_Name): replace bogus test for presence of
8534         Corresponding_Remote_Type with correct test on Ekind.
8535         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
8536         of calls to Corresponding_ Remote_Type (documentation fix).
8538 2014-07-16  Robert Dewar  <dewar@adacore.com>
8540         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
8541         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
8542         where it applies.
8543         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
8544         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
8546 2014-07-16  Robert Dewar  <dewar@adacore.com>
8548         * gnat_ugn.texi: Document binder switch -Ra.
8549         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
8550         (List_Closure_All).
8551         * opt.ads (List_Closure_All): New switch.
8552         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
8553         List_Closure_All.
8555 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
8557         * gnat_rm.texi: Minor edits, to make case consistent in names
8558         of types and fields.
8560 2014-07-16  Robert Dewar  <dewar@adacore.com>
8562         * gnat_rm.texi: Document erroneous mixing of thin pointers and
8563         unrestricted access
8564         * gnat_ugn.texi: Add note on size of access types about thin
8565         pointers and the use of attribute Unrestricted_Access.
8567 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8569         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
8570         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
8571         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
8572         machinery to detect tampering on bounded vectors.
8574 2014-07-16  Robert Dewar  <dewar@adacore.com>
8576         * gnat_rm.texi: Document that leading/trailing asterisks are
8577         now implied for the pattern match string for pragma Warnings
8578         and Warning_As_Error.
8579         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
8580         (Analyze_Pragma, case Warning_As_Error): Call
8581         Acquire_Warning_Match_String.
8582         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
8584 2014-07-16  Bob Duff  <duff@adacore.com>
8586         * gnat_ugn.texi: Document need for project file
8587         for --incremental switch for gnat2xml.
8589 2014-07-16  Robert Dewar  <dewar@adacore.com>
8591         * gnat_rm.texi: Fix example of non-packable components in packed
8592         records section.
8594 2014-07-16  Robert Dewar  <dewar@adacore.com>
8596         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
8597         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
8598         upper case in exception messages.
8600 2014-07-16  Robert Dewar  <dewar@adacore.com>
8602         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
8603         is renamed Has_Same_Storage.
8604         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
8605         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
8606         descriptions).
8608 2014-07-16  Robert Dewar  <dewar@adacore.com>
8610         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
8611         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
8613 2014-07-16  Robert Dewar  <dewar@adacore.com>
8615         * gnat_ugn.texi: Add note that integrated
8616         preprocessing cannot be applied to configuration pragma files.
8618 2014-07-16  Yannick Moy  <moy@adacore.com>
8620         * sem_attr.adb (Analyze_Attribute/cases Pred
8621         and Succ): Always enable range check on fixed-point types if
8622         not suppressed for the type.
8624 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8626         * sem_util.adb (State_Has_Enabled_Property):
8627         Account for an external property denoted by an others choice.
8629 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8631         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
8632         * exp_ch7.adb (Process_Declarations): There is no need to check
8633         that a transient object being hooked is controlled as it would
8634         not have been hooked in the first place.
8635         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
8636         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
8637         (Is_Aliased): A renaming of a transient controlled object is
8638         not considered aliasing when it occurs within an expression
8639         with actions.
8640         (Requires_Cleanup_Actions): There is no need to
8641         check that a transient object being hooked is controlled as it
8642         would not have been hooked in the first place.
8643         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
8645 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8647         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
8648         the outer level of routine Analyze_Aspect_Specifications. Ensure
8649         that the corresponding pragmas of aspects Initial_Condition and
8650         Initializes are inserted after pragma SPARK_Mode.
8652 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8654         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
8655         properly a choice list with more than one choice, where each
8656         is an aggregate denoting a sequence of array indices for a
8657         multidimentional array. For SPARK use.
8659 2014-07-16  Vadim Godunko  <godunko@adacore.com>
8661         * a-coinho-shared.adb (Adjust): Create
8662         copy of internal shared object and element when source container
8663         is locked.
8664         (Copy): Likewise.
8665         (Query_Element): Likewise.
8666         (Update_Element): Likewise.
8667         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
8668         to get reference for empty holder.
8669         (Reference): Likewise.
8671 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8673         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
8674         from Process_Transient_Oject.
8675         * exp_ch4.ads: Ditto.
8676         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
8677         declaration as an action on the topmost enclosing expression,
8678         not on a possibly conditional subexpreession.
8680 2014-07-16  Vadim Godunko  <godunko@adacore.com>
8682         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
8683         Fix parameter mode of Update_Element.
8685 2014-07-16  Robert Dewar  <dewar@adacore.com>
8687         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
8688         reformatting.
8690 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8692         * a-cohase.ads: Type Iterator must be controlled, so that the
8693         tampering bit is properly set through an iteration.
8694         * a-cohase.adb: Add Finalize operation for type Iterator.
8696 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8698         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
8699         tampering checks.
8701 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8703         * a-coinho-shared.adb: Fix spurious accessibility check.
8705 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
8707         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
8709 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8711         PR ada/61505
8712         * gnat_rm.texi: Fix errors with makeinfo 5.1.
8714 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
8716         PR ada/61505
8717         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
8719 2014-06-13  Yannick Moy  <moy@adacore.com>
8721         * exp_attr.adb: Fix typo in comment.
8722         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
8723         checking in GNATprove_Mode.
8725 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8727         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
8729 2014-06-13  Robert Dewar  <dewar@adacore.com>
8731         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
8732         reformatting.
8734 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8736         * sem_prag.adb (Analyze_Pragma): Add local
8737         variable Missing_Parentheses. Emit an error when a state
8738         declaration with options appears without parentheses. Add a
8739         guard to prevent a bogus error when a state declaration may be
8740         interpreted as an option if a previous declaration with options
8741         was not parenthesized.
8743 2014-06-13  Robert Dewar  <dewar@adacore.com>
8745         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
8746         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
8747         * checks.ads (Alignment_Warnings_Record): New type.
8748         (Alignment_Warnings): New table
8749         (Validate_Alignment_Check_Warnings): New procedure.
8750         * errout.adb (Delete_Warning_And_Continuations): New procedure
8751         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
8752         Warnings_Treated_As_Errors (Finalize): Minor reformatting
8753         * errout.ads (Warning_Msg): New variable
8754         (Delete_Warning_And_Continuations): New procedure
8755         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
8756         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
8758 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8760         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
8762 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8764         * errout.adb (SPARK_Msg_N): New routine.
8765         (SPARK_Msg_NE): New routine.
8766         * errout.ads Add a section on SPARK-related error routines.
8767         (SPARK_Msg_N): New routine.
8768         (SPARK_Msg_NE): New routine.
8769         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
8770         pragma Abstract_State is always inserted after SPARK_Mode.
8771         (Insert_After_SPARK_Mode): New routine.
8772         * sem_prag.adb (Analyze_Abstract_State,
8773         Analyze_Constituent, Analyze_External_Property,
8774         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
8775         Analyze_Global_List, Analyze_Initialization_Item,
8776         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
8777         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
8778         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
8779         Analyze_Refined_Global_In_Decl_Part,
8780         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
8781         Check_Aspect_Specification_Order, Check_Constituent_Usage,
8782         Check_Declaration_Order, Check_Dependency_Clause,
8783         Check_Duplicate_Mode, Check_Duplicate_Option,
8784         Check_Duplicate_Property, Check_External_Properties,
8785         Check_External_Property, Check_Function_Return,
8786         Check_Matching_Constituent, Check_Matching_State,
8787         Check_Mode_Restriction_In_Enclosing_Context,
8788         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
8789         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
8790         Has_Extra_Parentheses, Inconsistent_Mode_Error,
8791         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
8792         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
8793         Report_Unrefined_States, Report_Unused_Constituents,
8794         Report_Unused_States, Role_Error, Usage_Error):
8795         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
8796         to report semantic errors only when SPARK_Mode is on.
8797         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
8798         pragma Depends explicitly, this is now done by the analysis.
8799         (Analyze_Global_In_Decl_List): Do not check the syntax of
8800         pragma Global explicitly, this is now done by the analysis.
8801         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
8802         pragma Initializes explicitly, this is now done by the analysis.
8803         (Analyze_Part_Of): Do not check the syntax of the encapsulating
8804         state, this is now done by the analysis.
8805         (Analyze_Pragma): Do
8806         not check the syntax of a state declaration, this is now done
8807         by the analysis.
8808         (Analyze_Refined_Depends_In_Decl_Part): Do not
8809         check the syntax of pragma Refined_Depends explicitly, this is now
8810         done by the analysis.
8811         (Analyze_Refined_Global_In_Decl_Part): Do
8812         not check the syntax of pragma Refined_Global explicitly, this is
8813         now done by the analysis.
8814         (Analyze_Refined_State_In_Decl_Part):
8815         Do not check the syntax of pragma Refined_State explicitly, this
8816         is now done by the analysis.
8817         (Check_Dependence_List_Syntax): Removed.
8818         (Check_Global_List_Syntax): Removed.
8819         (Check_Initialization_List_Syntax): Removed.
8820         (Check_Item_Syntax): Removed.
8821         (Check_Missing_Part_Of): Do not consider items from an instance.
8822         (Check_Refinement_List_Syntax): Removed.
8823         (Check_State_Declaration_Syntax): Removed.
8824         (Collect_Global_List): Do not raise Program_Error when the input is
8825         malformed.
8826         (Process_Global_List): Do not raise Program_Error when the input
8827         is malformed.
8828         * sem_ch13.adb: Minor reformatting.
8830 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8832         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
8833         that is an interface definition with an interface list.
8834         (Process_Full_View): Move error message on missmatched interfaces
8835         between views to the declaration of full view, for clarity.
8836         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
8837         for clarity.
8839 2014-06-13  Robert Dewar  <dewar@adacore.com>
8841         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
8842         reason to Overflow.
8844 2014-06-13  Robert Dewar  <dewar@adacore.com>
8846         * makeutl.adb: Minor reformatting.
8848 2014-06-13  Gail Schenker  <schenker@adacore.com>
8850         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
8851         associated flag (d.z), no longer needed.
8853 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8855         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
8856         Export aspects, do not check whether a corresponding Convention
8857         aspect has been specified. Convention is optional in Ada2012,
8858         and defaults to Convention_Ada.
8860 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
8862         * checks.adb (Apply_Address_Clause_Check): Only issue the new
8863         warning if the propagation warning is issued.
8865 2014-06-13  Thomas Quinot  <quinot@adacore.com>
8867         * exp_ch4.adb: Minor reformatting.
8869 2014-06-13  Robert Dewar  <dewar@adacore.com>
8871         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
8872         Handle float range check case (Expand_N_Attribute_Reference,
8873         case Succ): Handle float range check case.
8874         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
8875         range check case.
8877 2014-06-13  Vincent Celier  <celier@adacore.com>
8879         * makeutl.ads (Compute_Builder_Switches): Change name of
8880         parameter Root_Environment to Env.
8881         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
8882         Env parameter of procedure Get_Or_Create_Configuration_File.
8883         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
8884         of new parameter Env.
8885         * prj-conf.ads (Locate_Runtime): New parameter Env of type
8886         Prj.Tree.Environment.
8888 2014-06-13  Robert Dewar  <dewar@adacore.com>
8890         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
8892 2014-06-13  Robert Dewar  <dewar@adacore.com>
8894         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
8895         reformatting.
8896         * sem_attr.adb: Minor code reformatting and simplification.
8897         * checks.adb: Fix minor typo.
8899 2014-06-13  Emmanuel Briot  <briot@adacore.com>
8901         * g-comlin.adb (Get_Argument): fix expansion
8902         of command line arguments (e.g. "*.adb") when using a custom
8903         parser. The parser was not passed to the recursive call, and
8904         thus we were trying to do the expansion on the default command
8905         line parser.
8907 2014-06-13  Thomas Quinot  <quinot@adacore.com>
8909         * exp_ch9.adb: Minor reformatting.
8911 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8913         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
8914         To determine whether the attribute should be expanded, examine
8915         whether the enclosing postcondition pragma is to be checked,
8916         rather than using the internal flag Assertions_Enabled.
8918 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
8920         * gnat_rm.texi: Minor fixes.
8921         * gnat_ugn.texi: Added a missing "@itemize".
8923 2014-06-13  Robert Dewar  <dewar@adacore.com>
8925         * debug.adb: Remove -gnatd.1 flag documentation.
8926         * layout.adb (Layout_Type): Remove special handling of size
8927         for anonymous access type.
8928         * sem_ch3.adb (Replace_Type): Remove special handling of size
8929         for anonymous access type.
8931 2014-06-13  Robert Dewar  <dewar@adacore.com>
8933         * debug.adb: Document debug flag -gnatd.1.
8934         * layout.adb (Layout_Type): Size change for anonymous access
8935         types under -gnatd.1.
8936         * sem_ch3.adb (Replace_Type): Size change for anonymous access
8937         types under -gnatd.1.
8939 2014-06-13  Robert Dewar  <dewar@adacore.com>
8941         * layout.adb (Layout_Type): Anonymous access types designating
8942         unconstrained arrays are always thin pointers.
8943         * sem_ch3.adb (Replace_Type): Anonymous access types designating
8944         unconstrained arrays are always thin pointers.
8946 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8948         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
8949         to resolve the prefix of an attribute that is an entity name
8950         and may be a parameterless call.  Minor code reorganization.
8952 2014-06-13  Robert Dewar  <dewar@adacore.com>
8954         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
8955         Removed.
8956         * opt.ads (Compiler_Unit): New flag.
8957         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
8958         for null statement sequence (not allowed in compiler unit).
8959         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
8960         parsing.
8961         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
8962         calling sequence.
8963         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
8964         Check_Compiler_Unit.
8965         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
8966         Check_Compiler_Unit (this construct is not allowed in compiler
8967         units).
8968         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
8969         Set Opt.Compiler_Unit.
8971 2014-06-13  Geert Bosch  <bosch@adacore.com>
8973         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
8974         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
8975         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
8977 2014-06-13  Robert Dewar  <dewar@adacore.com>
8979         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
8981 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8983         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
8984         types in SPARK as it is poorly placed and poorly formulated. The
8985         check was flagging ALL volatile entities as illegal in SPARK.
8986         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
8987         types as illegal in SPARK.
8989 2014-06-13  Robert Dewar  <dewar@adacore.com>
8991         * sem_cat.adb: Minor reformatting.
8993 2014-06-13  Yannick Moy  <moy@adacore.com>
8995         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
8997 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
8999         * gnat_rm.texi: Add detail on SPARK_05 restriction.
9001 2014-06-13  Bob Duff  <duff@adacore.com>
9003         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
9004         Add assertions requiring the secondary stack to be initialized.
9005         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
9006         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
9007         secondary stack is initialized before calling Init_Tasking_Soft_Links,
9008         by adding pragmas Elaborate_Body.
9010 2014-06-13  Thomas Quinot  <quinot@adacore.com>
9012         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
9013         kludge disabling new legality check.
9015 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9017         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
9018         volatile types.
9019         (Freeze_Type): Volatile types are now illegal in SPARK.
9021 2014-06-13  Robert Dewar  <dewar@adacore.com>
9023         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
9024         * gnat_rm.texi: Document aspect Thread_Local_Storage.
9026 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9028         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
9029         value is a temporary that renames an aggregate is legal in a
9030         preelaborated unit. Illegalities, if any will be detected in
9031         the aggregate components.
9033 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9035         * einfo.ads: Minor reformatting an comment expansion.
9037 2014-06-13  Robert Dewar  <dewar@adacore.com>
9039         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
9040         Tbuild.
9041         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
9042         Back_End.
9043         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
9044         * sem_warn.adb: Minor reformatting.
9046 2014-06-13  Doug Rupp  <rupp@adacore.com>
9048         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
9049         files with rfm=udf.
9051 2014-06-13  Yannick Moy  <moy@adacore.com>
9053         * sem_warn.adb (Check_Unset_References): Take
9054         case of Refined_Post into account in Within_Postcondition check.
9056 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9058         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
9059         SPARK.
9061 2014-06-13  Yannick Moy  <moy@adacore.com>
9063         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
9064         Aspect_Export): Consider that variables may be set outside the program.
9066 2014-06-13  Robert Dewar  <dewar@adacore.com>
9068         * back_end.adb (Make_Id): New function.
9069         (Make_SC): New function.
9070         (Set_RND): New procedure.
9071         * back_end.ads (Make_Id): New function.
9072         (Make_SC): New function.
9073         (Set_RND): New procedure.
9074         * einfo.ads: Minor comment updates.
9075         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
9076         * gnat1drv.adb (Gnat1drv): New calling sequence for
9077         Get_Target_Parameters.
9078         (Gnat1drv): Move Atree.Initialize here from Frontend.
9079         * targparm.adb (Get_Target_Parameters): New calling
9080         sequence (Get_Target_Parameters): Handle pragma Restriction
9081         (No_Dependence,..)
9082         * targparm.ads (Get_Target_Parameters): New calling sequence.
9084 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
9086         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
9087         loop if the pragma does not come from source, so that an implicit
9088         pragma Import only applies to the first declaration, avoiding
9089         possible conflicts with earlier explicit and implicit declarations
9090         due to multiple Provide_Shift_Operators pragmas.
9091         (Set_Imported): Remove previous fix that bypassed pragma duplication
9092         error.
9093         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
9094         of Provide_Shift_Operators.
9096 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
9098         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
9099         string pointer directly to set_decl_section_name.
9101 2014-06-11  Robert Dewar  <dewar@adacore.com>
9103         * sem_ch13.adb: Minor reformatting.
9105 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9107         * sem_prag.adb (Check_Clause_Syntax): Add new
9108         local variable Outputs. Account for the case where multiple
9109         output items appear as an aggregate.
9111 2014-06-11  Robert Dewar  <dewar@adacore.com>
9113         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
9114         with ?j? not ??.
9116 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9118         * einfo.ads: Minor reformatting.
9120 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9122         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
9123         new variable First_Node. Update the position after all insertions have
9124         taken place to First_Node.
9126 2014-06-11  Robert Dewar  <dewar@adacore.com>
9128         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
9129         * layout.adb (Layout_Type): Remove test of -gnatd.1.
9131 2014-06-11  Robert Dewar  <dewar@adacore.com>
9133         * sem_ch13.adb: Minor reformatting.
9135 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9137         * sem_prag.adb (Check_Clause_Syntax): Add new
9138         local variable Outputs. Account for the case where multiple
9139         output items appear as an aggregate.
9141 2014-06-11  Robert Dewar  <dewar@adacore.com>
9143         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
9144         with ?j? not ??.
9146 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9148         * einfo.ads: Minor reformatting.
9150 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9152         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
9153         new variable First_Node. Update the position after all insertions have
9154         taken place to First_Node.
9156 2014-06-11  Robert Dewar  <dewar@adacore.com>
9158         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
9159         * layout.adb (Layout_Type): Remove test of -gnatd.1.
9161 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9163         * freeze.ads: Minor reformatting.
9164         * checks.adb (Determine_Range): Do not attempt to determine
9165         the range of a deferred constant whose full view has not been
9166         seen yet.
9167         * sem_res.adb (Resolve): Remove undesirable guard against
9168         resolving expressions from expression functions.
9170 2014-06-11  Robert Dewar  <dewar@adacore.com>
9172         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
9173         access types.
9174         * layout.adb (Layout_Type): Make anonymous access types for
9175         subprogram formal types and return types always thin. For now
9176         only enabled if -gnatd.1 set.
9178 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9180         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
9181         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
9182         subprogram must be a null procedure.
9184 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9186         * sem_prag.adb (Analyze_Input_Item): Allow formal
9187         parameters to appear as input_items in an initialization_list
9188         of pragma Initializes. Encapsulation now applies to states and
9189         variables only (as it should). Add RM references to key errors.
9190         * sem_prag.adb (Set_Imported): Suppress errors
9191         about preceding Imports when the pragma does not come from source,
9192         which can happen through use of pragma Provide_Shift_Operators.
9194 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9196         * sem_ch3.adb: Minor reformatting.
9197         * einfo.ads (Full_View): Minor comment update.
9199 2014-06-11  Robert Dewar  <dewar@adacore.com>
9201         * einfo.adb (Is_Independent): New flag.
9202         * einfo.ads (Is_Independent): New flag.
9203         (Has_Independent_Components): Clean up and fix comments.
9204         * sem_prag.adb (Fix_Error): Deal with changing argument
9205         [of] to entity [for].
9206         (Analyze_Pragma, case Independent): Set Is_Independent flag
9207         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
9208         in all components of specified record.
9210 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9212         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
9213         Set proper Etype on bounds of dummy type created for analysis
9214         of the generic.
9216 2014-06-11  Robert Dewar  <dewar@adacore.com>
9218         * debug.adb: Minor comment fix (add missing section of dot
9219         numeric flags).
9221 2014-06-11  Robert Dewar  <dewar@adacore.com>
9223         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
9224         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
9225         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
9226         * errout.adb (Output_Messages): Avoid duplicate output for
9227         library level instance.
9228         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
9229         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
9230         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
9231         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
9232         accomodate largest modulus value.
9233         * gnat_ugn.texi: Minor updates.
9235 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9237         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
9238         load body of generic package or its parent, if body is optional
9239         and the unit does not require a body.
9241 2014-06-11  Robert Dewar  <dewar@adacore.com>
9243         * gnat_rm.texi: Document System.Unsigned_Types.
9244         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
9245         * s-unstyp.ads: Update comments (this is now user available unit).
9247 2014-06-11  Robert Dewar  <dewar@adacore.com>
9249         * make.adb, sem_res.adb: Minor reformatting.
9251 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9253         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
9254         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
9255         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
9256         Preelaborate_05 to just Preelaborate in runtime units, and similarly
9257         change Pure_05 to just Pure.
9259 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9261         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
9262         analysis if error has been posted on subprogram body.
9264 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9266         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
9267         rule given in RM 13.1 (8/1) for operational attributes to stream
9268         attributes: the attribute must apply to a first subtype. Fixes
9269         missing errors in ACATS test bdd2004.
9271 2014-06-11  Robert Dewar  <dewar@adacore.com>
9273         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
9274         record type if restriction No_Implicit_Conditionals is active.
9275         (Expand_N_Object_Declaration): Don't allow default initialization
9276         for variant record type if restriction No_Implicit_Condition is active.
9277         (Build_Variant_Record_Equality): Don't build for variant
9278         record type if restriction No_Implicit_Conditionals is active.
9279         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
9280         No_Implicit_Conditionals.
9281         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
9283 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
9285         * i-cstrin.ads: Update comments.
9287 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9289         * sem_res.adb (Resolve_Selected_Component): Handle properly a
9290         selected component whose prefix is overloaded, when none of the
9291         interpretations matches the expected type.
9293 2014-06-11  Bob Duff  <duff@adacore.com>
9295         * make.adb (Wait_For_Available_Slot): Give a more
9296         informative error message; if the ALI file is not found, print
9297         the full path of what it's looking for.
9299 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
9301         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
9302         option to specify the result file encoding.
9304 2014-06-11  Robert Dewar  <dewar@adacore.com>
9306         * errout.ads, sem_ch12.adb: Minor reformatting.
9307         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
9308         * lib-xref.adb: Minor reformatting.
9309         * restrict.adb: Minor code reorganization (put routines in
9310         alpha order).
9312 2014-06-11  Yannick Moy  <moy@adacore.com>
9314         * einfo.ads: Minor typo in comment
9316 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9318         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
9319         formal private types and private type extensions, to indicate
9320         variable in a generic unit whose uninitialized use suggest that
9321         actual type should be fully initialized.
9322         Needs_Initialized_Actual:  removed, functionaity replaced by
9323         the above.
9324         * lib-xref.adb (Generate_Reference): Generate a reference for
9325         variables of a formal type when the unit is not the main unit,
9326         to enable appropriate warnings in an instance.
9327         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
9328         of variable in a generic unit that suggests that actual type
9329         should be full initialized.
9330         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
9331         and do not emot warning, which now only appears in an instance.
9333 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
9335         * gnat_ugn.texi: Fix minor typo.
9337 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9339         * sem_ch3.adb Add with and use clause for Sem_Ch10.
9340         (Analyze_Declarations): Code reformatting. Analyze the contract
9341         of a subprogram body stub at the end of the declarative region.
9342         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
9343         now a variable. Do not process the body if its contract is not
9344         available. Account for subprogram body stubs when extracting
9345         the corresponding spec.
9346         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
9347         on usage.
9348         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
9349         New routine.
9350         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
9351         Account for subprogram body stubs when extracting the
9352         corresponding spec.
9353         (Analyze_Global_In_Decl_List):
9354         Account for subprogram body stubs when extracting the
9355         corresponding spec.
9356         (Analyze_Refined_Depends_In_Decl_Part):
9357         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
9358         of the related body. Spec_Is now a variable. Account for
9359         subprogram body stubs when extracting the corresponding spec.
9360         (Analyze_Refined_Global_In_Decl_Part): Use
9361         Find_Related_Subprogram_Or_Body to retrieve the declaration
9362         of the related body. Spec_Is now a variable. Account for
9363         subprogram body stubs when extracting the corresponding spec.
9364         (Collect_Subprogram_Inputs_Output): Account for subprogram body
9365         stubs when extracting the corresponding spec.
9367 2014-06-11  Vincent Celier  <celier@adacore.com>
9369         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
9370         -lgnarl or -lgnat.
9372 2014-06-11  Robert Dewar  <dewar@adacore.com>
9374         * debug.adb: Add debug flag -gnatd.q.
9375         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
9376         -gnatd.q set.
9377         * styleg.adb (Check_Xtra_Parens): Message should be a style
9378         message.
9379         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
9380         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
9381         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
9382         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
9384 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
9386         * gnat_rm.texi: Revised chapter on Implementation Defined
9387         Characteristics.
9389 2014-06-11  Geert Bosch  <bosch@adacore.com>
9391         * s-exctab.adb: avoid race conditions in exception registration.
9393 2014-06-11  Robert Dewar  <dewar@adacore.com>
9395         * errout.adb (Warn_Insertion): New function.
9396         (Error_Msg): Use Warn_Insertion and Prescan_Message.
9397         (Error_Msg_Internal): Set Info field of error object.
9398         (Error_Msg_NEL): Use Prescan_Message.
9399         (Set_Msg_Text): Don't store info: at start of message.
9400         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
9401         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
9402         * errout.ads: Document new ?$? and >$> insertion sequences
9403         Document use of "(style)" and "info: "
9404         * erroutc.adb (dmsg): Print several missing fields
9405         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
9406         Deal with new tagging of info messages
9407         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
9408         Add field Info (Prescan_Message): New procedure, this procedure
9409         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
9410         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
9411         sem_elab.adb: Follow new rules for info message (info belongs
9412         only at the start of a message, and only in the first message,
9413         not in any of the continuations).
9414         * gnat_ugn.texi: Document full set of warning tags.
9416 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
9418         * sem_util.adb: Minor typo fix.
9420 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9422         * sem_warn.adb (Check_References): Do not emit spurious warnings
9423         on uninitialzed variable of a formal private type if variable
9424         is not read.
9426 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
9428         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
9429         set_decl_section_name accessor.
9431 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
9433         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
9434         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
9435         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
9437 2014-05-21  Robert Dewar  <dewar@adacore.com>
9439         * layout.adb: Minor reformatting.
9440         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
9441         dummy procedure ip.
9443 2014-05-21  Robert Dewar  <dewar@adacore.com>
9445         * restrict.ads (Implementation_Restriction): Add entry for
9446         No_Fixed_IO.
9447         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
9448         Ada.[Wide_[Wide_]Text_IO.
9449         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
9450         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
9451         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
9452         Wide_Wide_Value if restriction No_Fixed_IO is set.
9453         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
9455 2014-05-21  Robert Dewar  <dewar@adacore.com>
9457         * gnatcmd.adb: Minor error msg changes (no upper case letter
9458         at start).
9459         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
9460         reformatting.
9462 2014-05-21  Robert Dewar  <dewar@adacore.com>
9464         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
9465         via generic formals.
9466         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
9467         -gnatd.G is set.
9469 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9471         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
9472         more accurately describe that this subprogram needs to come into
9473         play also in cases where no byte swapping is involved, because
9474         it also takes care of some required shifts (left-justification
9475         of values).
9477 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9479         * freeze.adb (Check_Component_Storage_Order): Indicate whether
9480         a Scalar_Storage_Order attribute definition is present for the
9481         component's type.
9482         (Freeze_Record_Type): Suppress junk warnings
9483         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
9484         definitions.
9486 2014-05-21  Robert Dewar  <dewar@adacore.com>
9488         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
9489         to Kill_Elaboration_Checks.
9491 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
9493         * layout.adb (Assoc_Add): Suppress the optimization of the (E
9494         - C1) + C2 case, when the expression type is unsigned and C1 <
9495         C2, to avoid creating a negative literal when folding.
9497 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
9499         * freeze.adb (Freeze_Record_Type): Update the use of
9500         Is_SPARK_Volatile.
9501         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
9502         Is_SPARK_Volatile.
9503         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
9504         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
9505         of Is_SPARK_Volatile.
9506         (Analyze_Loop_Parameter_Specification):
9507         Update the use of Is_SPARK_Volatile.
9508         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
9509         formal parameter when its type is volatile.
9510         * sem_prag.adb (Analyze_Global_Item): Update the use of
9511         Is_SPARK_Volatile.
9512         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
9513         determines whether an entity is a volatile source SPARK object.
9514         * sem_util.adb (Has_Enabled_Property): Accout for external
9515         properties being set on objects other than abstract states
9516         and variables. An example would be a formal parameter.
9517         (Is_SPARK_Volatile): New routine.
9518         (Is_SPARK_Volatile_Object):
9519         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
9520         when checking entities and/or types.
9521         * sem_util.ads (Is_SPARK_Volatile): New routine.
9523 2014-05-21  Robert Dewar  <dewar@adacore.com>
9525         * sem_warn.adb: Minor fix to warning messages (use ?? instead
9526         of ?).
9528 2014-05-21  Vincent Celier  <celier@adacore.com>
9530         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
9531         switch --version and --help.
9533 2014-05-21  Robert Dewar  <dewar@adacore.com>
9535         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
9537 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9539         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
9540         iterator variable when the domain of iteration is a formal
9541         container and this is an element iterator.
9543 2014-05-21  Bob Duff  <duff@adacore.com>
9545         * sem_ch12.adb: Minor reformatting.
9547 2014-05-21  Robert Dewar  <dewar@adacore.com>
9549         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
9551 2014-05-21  Robert Dewar  <dewar@adacore.com>
9553         * sem_elab.adb: Minor reformatting.
9554         * s-taprop.ads: Minor comment fix.
9555         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
9556         Kill_Elaboration_Checks.
9557         * errout.adb, erroutc.adb: Minor reformatting.
9559 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9561         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
9562         component. No byte swapping occurs, but this procedure also takes
9563         care of appropriately justifying the argument.
9565 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
9567         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
9568         New routine.
9569         (Analyze_Subprogram_Body_Helper): Move the
9570         analysis of aspect specifications and the processing of the
9571         subprogram body contract after inlining has taken place.
9572         (Diagnose_Misplaced_Aspect_Specifications): Removed.
9574 2014-05-21  Javier Miranda  <miranda@adacore.com>
9576         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
9578 2014-05-21  Robert Dewar  <dewar@adacore.com>
9580         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
9581         continuations any more.
9583 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9585         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
9586         present in formal_Private_Definitions and on private extension
9587         declarations of a formal derived type. Set when the use of the
9588         formal type in a generic suggests that the actual should be a
9589         fully initialized type.
9590         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
9591         to indicate that an entity of a generic type has default
9592         initialization, and that the corresponing actual type in any
9593         subsequent instantiation should be fully initialized.
9594         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
9595         to emit a warning if the actual for a generic type on which
9596         Needs_Initialized_Actual is set is not a fully initialized type.
9598 2014-05-21  Robert Dewar  <dewar@adacore.com>
9600         * sem_elab.adb, prj-dect.adb: Minor reformatting.
9602 2014-05-21  Robert Dewar  <dewar@adacore.com>
9604         * erroutc.ads: Minor comment addition.
9606 2014-05-21  Robert Dewar  <dewar@adacore.com>
9608         * errout.ads: Add documentation for use of >*> tag.
9609         * restrict.adb: Make sure we use >*> tag for restriction warnings.
9611 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
9613         * debug.adb: Add case of illegal overriding_indicator for a
9614         protected subprogram body to description of -gnatd.E switch.
9615         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
9616         for cases of giving overriding_indicators on protected subprogram
9617         bodies, but change this to a warning if -gnatd.E is enabled. No
9618         longer give a style warning about missing indicators on protected
9619         subprogram bodies.
9621 2014-05-21  Robert Dewar  <dewar@adacore.com>
9623         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
9624         sem_elab.ads: Minor reformatting.
9625         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
9626         parameter optional.
9628 2014-05-21  Pascal Obry  <obry@adacore.com>
9630         * prj-dect.adb: Allow package Install in aggregate project.
9632 2014-05-21  Robert Dewar  <dewar@adacore.com>
9634         * sem_ch13.adb (Analyze_Aspect_Specifications):
9635         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
9636         * sem_prag.adb: Minor comment improvements.
9638 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9640         * sem_ch12.adb (Install_Body): When checking whether freezing of
9641         instantiation must be delayed, verify that the common enclosing
9642         subprogram to generic and instance is in fact an overloadable
9643         entity.
9645 2014-05-21  Vincent Celier  <celier@adacore.com>
9647         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
9648         mains with the same name and fail if there is more than one.
9649         * prj.ads, prj.adb (Find_All_Sources): New function
9651 2014-05-21  Robert Dewar  <dewar@adacore.com>
9653         * sem_ch13.adb: Minor reformatting.
9654         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
9655         * sem_prag.adb: Minor error message improvement.
9657 2014-05-21  Yannick Moy  <moy@adacore.com>
9659         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
9660         (Enclosing_Subprogram_Or_Package): Only return a library-level
9661         package.
9663 2014-05-21  Javier Miranda  <miranda@adacore.com>
9665         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
9666         to the full view of the parent type when processing a derived type
9667         which is the full view of a private type not defined in a generic
9668         unit which is derived from a private type with discriminants
9669         whose full view is a non-tagged record type.
9671 2014-05-21  Javier Miranda  <miranda@adacore.com>
9673         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
9674         Complete previous patch.
9676 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9678         PR ada/9535
9679         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
9680         Provide a behaviour more consistent with underlying datagram
9681         socket: do not attempt to loop over Send_Socket/Receive_Socket
9682         iterating along the buffer.
9684 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
9686         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
9687         or a tagged type is not labelled as volatile. Ensure that a
9688         non-volatile type has no volatile components.
9689         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
9690         Obj_Typ. Code reformatting.  Ensure that a discriminated or
9691         tagged object is not labelled as volatile.
9692         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
9693         pragma Volatile applies to a full type declaration or an object
9694         declaration when SPARK mode is on.
9696 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
9698         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
9699         providing options needed for compiling the argument source for
9700         the situation when a project file can be used as a tool parameter.
9702 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
9704         * gnat_rm.texi: Minor typo fix.
9706 2014-05-21  Robert Dewar  <dewar@adacore.com>
9708         * stand.adb (Tree_Read): Read missing entities.
9709         (Tree_Write): Write missing entities.
9711 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
9713         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
9714         section in gnatmetric chapter.
9716 2014-05-21  Robert Dewar  <dewar@adacore.com>
9718         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
9719         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
9720         post-call copy write back (see detailed comment in code).
9721         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
9722         Exp_Ch6.
9723         * tbuild.ads: Minor reformatting.
9725 2014-05-21  Robert Dewar  <dewar@adacore.com>
9727         * stand.ads: Add warning about adding new entities and
9728         Tree_Read/Tree_Write.
9730 2014-05-21  Robert Dewar  <dewar@adacore.com>
9732         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
9733         references to restricted entities within the units in which they
9734         are declared.
9736 2014-05-21  Robert Dewar  <dewar@adacore.com>
9738         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
9739         simplify the needed test, and also deal with failure to catch
9740         situations with non-standard names.
9741         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
9742         (Source_File_Is_Subunit): Removed, no longer used.
9744 2014-05-21  Javier Miranda  <miranda@adacore.com>
9746         * exp_ch4.adb
9747         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
9748         renaming of an access to interface object there is no need to
9749         generate extra code to reference the tag.
9751 2014-05-21  Robert Dewar  <dewar@adacore.com>
9753         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
9754         Warnings (Off, string).
9756 2014-05-21  Robert Dewar  <dewar@adacore.com>
9758         * osint.adb: Fix three error messages to say invalid instead
9759         of erroneous.
9760         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
9761         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
9762         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
9764 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9766         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
9767         sem_ch9.ads: Move discriminant manipulation routines for analysis of
9768         aspect specifications from sem_ch9 to sem_ch13, where they belong.
9770 2014-05-21  Robert Dewar  <dewar@adacore.com>
9772         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
9773         Clearly document -gnatyg (GNAT style switches).
9774         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
9775         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
9776         available for VMS after all.
9777         * warnsw.adb: Reorganize to eliminate duplicated code
9778         (Restore_Warnings): Add a couple of missing entries
9779         (Save_Warnings): Add a couple of missing entries.
9780         * warnsw.ads: Add missing entries to Warning_Record (not clear
9781         what the impact is).
9783 2014-05-21  Robert Dewar  <dewar@adacore.com>
9785         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
9786         warning) case.
9787         * errout.ads: Document ?*? (restriction warning) insertion.
9788         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
9789         warning) case.
9790         * erroutc.ads: Document use of * for restriction warning tag.
9791         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
9793 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9795         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
9796         make discriminants immediately visible when analyzing an aspect
9797         of a subtype declaration.
9798         (Uninstall_Discriminants): Do not apply to the entity in a
9799         subtype declaration.
9801 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9803         * sem_util.adb: Code clean up.
9805 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9807         * gnat_ugn.texi: Document -Werror.
9809 2014-05-21  Bob Duff  <duff@adacore.com>
9811         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
9812         This was returning False if the Object is a constant view. Fix
9813         it to return True in that case, because it might be a view of
9814         a variable.
9815         (Has_Discriminant_Dependent_Constraint): Fix latent
9816         bug; this function was crashing when passed a discriminant.
9818 2014-05-21  Robert Dewar  <dewar@adacore.com>
9820         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
9821         * s-arit64.adb: Minor code reorganization.
9822         * sem_prag.adb: Minor comment fix (remove erroneous use of the
9823         term erroneous).
9825 2014-05-21  Robert Dewar  <dewar@adacore.com>
9827         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
9828         computing new table size.
9830 2014-05-21  Robert Dewar  <dewar@adacore.com>
9832         * einfo.ads: Minor reformatting.
9833         * ceinfo.adb: Deal with slight format change of einfo.ads.
9835 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9837         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
9838         implementation of the SPARK 2014 rule concerning private child
9839         units (LRM 7.2.6).
9841 2014-05-21  Vincent Celier  <celier@adacore.com>
9843         * makeusg.adb: Add switch -d to usage.
9845 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9847         * sem_util.adb (Find_Actual): If an actual that is the prefix
9848         of an enclosing prefixed call has been rewritten, use Nkind
9849         and Sloc to identify the corresponding formal, when handling
9850         deferred references.
9852 2014-05-21  Robert Dewar  <dewar@adacore.com>
9854         * debug.adb: Document -gnatd.z switch.
9855         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
9857 2014-05-21  Robert Dewar  <dewar@adacore.com>
9859         * einfo.ads (Can_Never_Be_Null): Minor comment update.
9860         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
9861         error message change.
9862         * s-arit64.adb ("abs"): New function. Use expression functions
9863         for the simple conversions and arithmetic.
9865 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9867         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
9868         set function_start_locus.
9870 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9872         * utils.c (gnat_write_global_declarations): Adjust the flags put on
9873         dummy_global.
9875 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9877         * gcc-interface/decl.c (change_qualified_type): New static function.
9878         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
9879         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
9880         <E_Array_Subtype>: Likewise.
9881         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
9882         (gnat_to_gnu_component_type): Likewise.
9883         (gnat_to_gnu_param): Likewise.
9885 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9887         * fe.h (Set_Present_Expr): Move around.
9888         (End_Location): New macro.
9889         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
9891 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9893         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
9894         lieu of more verbose construct.
9895         * gcc-interface/trans.c (Call_to_gnu): Likewise.
9896         (gnat_to_gnu): Likewise.  Remove obsolete code.
9898 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9900         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
9901         consider that regular packed arrays can never be superflat.
9903 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
9905         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
9906         annotation.
9907         * gcc-interface/decl.c (annotate_value): Adjust.
9908         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9909         (push_range_check_info): Likewise.
9910         (Loop_Statement_to_gnu): Likewise.
9911         (Subprogram_Body_to_gnu): Likewise.
9912         (Compilation_Unit_to_gnu): Likewise.
9913         (start_stmt_group): Likewise.
9914         * gcc-interface/utils.c (init_gnat_utils): Likewise.
9915         (gnat_pushlevel): Likewise.
9916         (maybe_pad_type): Likewise.
9918 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9920         * seh_init.c: Fix copyright year.
9922 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9924         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
9925         are defined.  Move include windows.h before system.h.
9926         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
9927         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
9929 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
9931         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
9932         to the appropriate type.
9933         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
9934         (pos_to_constructor): Likewise.
9936 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
9938         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
9940 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
9941             Mike Stump  <mikestump@comcast.net>
9942             Richard Sandiford  <rdsandiford@googlemail.com>
9944         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
9945         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
9946         (annotate_value): Use wide-int interfaces.
9947         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
9949 2014-04-28  Richard Henderson  <rth@redhat.com>
9951         * gcc-interface/Makefile.in: Support aarch64-linux.
9953 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9955         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
9956         add 'Suffix' parameter and adjust comment.
9957         (Get_External_Name_With_Suffix): Delete.
9958         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
9959         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
9960         'Suffix' parameter.
9961         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
9962         Call Get_External_Name instead of Get_External_Name_With_Suffix.
9963         (Get_Secondary_DT_External_Name): Likewise.
9964         * exp_cg.adb (Write_Call_Info): Likewise.
9965         * exp_disp.adb (Export_DT): Likewise.
9966         (Import_DT): Likewise.
9967         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
9968         parameter with False default.
9969         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
9970         * types.h (Fat_Pointer): Rename into...
9971         (String_Pointer): ...this.  Add comment on interfacing rules.
9972         * fe.h (Compiler_Abort): Adjust for above renaming.
9973         (Error_Msg_N): Likewise.
9974         (Error_Msg_NE): Likewise.
9975         (Get_External_Name): Likewise.  Add third parameter.
9976         (Get_External_Name_With_Suffix): Delete.
9977         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
9978         (create_concat_name): Adjust call to Get_External_Name, remove call to
9979         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
9980         * gcc-interface/trans.c (post_error): Likewise.
9981         (post_error_ne): Likewise.
9982         * gcc-interface/misc.c (internal_error_function): Likewise.
9984 2014-04-28  Richard Biener  <rguenther@suse.de>
9986         PR middle-end/60092
9987         * gcc-interface/utils.c: Define flag_isoc11.
9989 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
9991         * gnatvsn.ads (Library_Version): Bump to 4.10.
9993 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
9995         Revert
9996         2014-04-22  Richard Henderson  <rth@redhat.com>
9998         * gcc-interface/Makefile.in: Support aarch64-linux.
10000         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
10002         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
10003         (Error_Msg_N): Likewise.
10004         (Error_Msg_NE): Likewise.
10005         (Get_External_Name_With_Suffix): Likewise.
10006         * types.h (Fat_Pointer): Delete.
10007         (String_Pointer): New type.
10008         (DECLARE_STRING_POINTER): New macro.
10009         * gcc-interface/decl.c (create_concat_name): Adjust.
10010         * gcc-interface/trans.c (post_error): Likewise.
10011         (post_error_ne): Likewise.
10012         * gcc-interface/misc.c (internal_error_function): Likewise.
10014 2014-04-22  Richard Henderson  <rth@redhat.com>
10016         * gcc-interface/Makefile.in: Support aarch64-linux.
10018         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
10019         (__gnat_alternate_stack): Enable for all linux except ia64.
10021 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
10023         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
10024         (Error_Msg_N): Likewise.
10025         (Error_Msg_NE): Likewise.
10026         (Get_External_Name_With_Suffix): Likewise.
10027         * types.h (Fat_Pointer): Delete.
10028         (String_Pointer): New type.
10029         (DECLARE_STRING_POINTER): New macro.
10030         * gcc-interface/decl.c (create_concat_name): Adjust.
10031         * gcc-interface/trans.c (post_error): Likewise.
10032         (post_error_ne): Likewise.
10033         * gcc-interface/misc.c (internal_error_function): Likewise.
10035 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10036             Pierre-Marie de Rodat  <derodat@adacore.com>
10038         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
10039         scalar constant instead of a reference for renaming of scalar literal.
10040         Do not create a new object for constant renaming except for a function
10041         call.  Make sure a VAR_DECL is created for the renaming pointer.
10042         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
10043         (fold_constant_decl_in_expr): New function.
10044         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
10045         For a constant renaming, try to fold a constant DECL in the result.
10046         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
10047         (Identifier_to_gnu): Reference the renamed object of constant renaming
10048         pointers directly.
10049         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
10050         invalidate constant renaming pointers.
10052 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10054         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
10055         (build_vector_type_for_size): New function.
10056         (build_vector_type_for_array): Likewise.
10057         (unchecked_convert): Build an intermediate vector type to convert
10058         from a generic array type to a vector type.
10059         (handle_vector_size_attribute): Reimplement.
10060         (handle_vector_type_attribute): Likewise.
10062 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10064         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
10065         Is_OK_Static_Expression in lieu of Is_Static_Expression to
10066         detect valid arguments.
10068 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10070         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
10072 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
10074         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
10075         (components_to_record): Likewise.
10076         * gcc-interface/utils.c (make_aligning_type): Likewise.
10077         (maybe_pad_type): Likewise.
10078         (finish_record_type): Likewise.
10079         (rest_of_record_type_compilation): Likewise.
10081 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10083         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
10084         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
10085         for Ivdep hint.
10086         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
10087         hint for Loop_Optimize.
10088         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
10089         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
10090         with new Ivdep hint.
10091         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
10092         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
10093         with new Ivdep hint.
10094         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
10096 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10097             Robert Dewar  <dewar@adacore.com>
10099         * opt.ads (Suppress_Back_Annotation): Remove as unused.
10100         * fe.h (Back_Annotate_Rep_Info): Likewise.
10101         (Global_Discard_Names): Likewise.
10102         (List_Representation_Info): Declare.
10103         * types.h (Uint_Minus_1): Likewise.
10104         * repinfo.ads: Document back-annotation change.
10105         * gcc-interface/gigi.h (init_gnat_decl): Declare.
10106         (destroy_gnat_decl): Likewise.
10107         * gcc-interface/decl.c (annotate_value): Do not create the cache of
10108         annotated values here but...
10109         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
10110         in ASIS mode.
10111         (init_gnat_decl): ...here instead.  New function.
10112         (destroy_gnat_decl): Likewise.
10113         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
10114         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
10116 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10118         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
10119         offset for the field, if any.
10121 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10122             Svante Signell  <svante.signell@gmail.com>
10124         PR ada/54040
10125         PR ada/59346
10126         * s-osinte-x32.adb: New file.
10127         * s-linux.ads (Time): New section.
10128         * s-linux-alpha.ads (Time): Likewise.
10129         * s-linux-android.ads (Time: Likewise.
10130         * s-linux-hppa.ads (Time): Likewise.
10131         * s-linux-mipsel.ads (Time): Likewise.
10132         * s-linux-sparc.ads (Time): Likewise.
10133         * s-linux-x32.ads (Time): Likewise.
10134         * s-osprim-x32.ads (timespec): Adjust.
10135         (Clock): Likewise.
10136         (To_Timespec): Likewise.
10137         * s-osinte-linux.ads (Time): Define local subtypes for those defined
10138         in System.Linux.
10139         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
10140         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
10141         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
10142         * s-osinte-solaris-posix.ads (timespec): Likewise.
10143         * s-osinte-posix.adb (To_Timespec): Likewise.
10144         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
10146 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10148         PR ada/60411
10149         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
10150         * s-linux-android.ads: New file.
10151         * s-intman-android.adb: Likewise.
10152         * s-osinte-android.ads: Adjust.
10153         * sigtramp-armdroid.c: Likewise.
10154         * sigtramp.h: Add Android support.
10156 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10158         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
10160 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10162         PR ada/60703
10163         * system-linux-alpha.ads: Adjust for Ada 2005.
10164         * system-linux-mips.ads: Likewise.
10165         * system-linux-mips64el.ads: Likewise.
10166         * system-linux-mipsel.ads: Likewise.
10167         * system-linux-s390.ads: Likewise.
10168         * system-linux-s390x.ads: Likewise.
10169         * system-linux-sparc.ads: Likewise.
10170         * system-linux-sparcv9.ads: Likewise.
10171         * system-rtems.ads: Likewise.
10172         * system-vxworks-arm.ads: Likewise.
10174 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
10176         PR ada/39172
10177         * gcc-interface/Makefile.in (target_cpu_default): Revert
10178         2013-10-11 change.
10180 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
10182         PR ada/51483
10183         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
10184         it to set the RM size.  Use directly 'size' for the Esize.
10185         (Create_Back_End_Float_Types): Adjust call to above.
10186         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
10187         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
10188         (Write_Target_Dependent_Values): Adjust comment.
10189         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
10190         deal with it.
10191         (Write_Target_Dependent_Values): Write the precision in lieu of size.
10192         (Initialization): Read the precision in lieu of size and compute the
10193         size from the precision and the alignment.
10194         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
10195         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
10196         types for vector modes, pass the size in addition to the precision.
10198 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
10200         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
10202 2014-03-07  Doug Rupp  <rupp@adacore.com>
10204         PR ada/60411
10205         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
10206         (Support_64_Bit_Divides): Removed, no longer used.
10207         (ZCX_By_Default): Enabled.
10209 2014-02-25  Doug Rupp  <rupp@adacore.com>
10211         * gcc-interface/Makefile.in (arm-linux):
10212         (EH_MECHANISM): Use ARM unwinder (-arm)
10213         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
10214         s-excmac-arm.ads.
10215         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
10216         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
10217         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
10218         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
10219         Add dependencies for sigtramp-armvxw.o.
10221 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10223         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
10225 2014-02-25  Robert Dewar  <dewar@adacore.com>
10227         * rtsfind.adb (Is_RTE): Protect against entity with no scope
10228         field (previously this call blew up on the Standard entity).
10229         * sem_attr.adb (Analyze_Attribute, case Access): Remove
10230         test for No_Abort_Statements, this is now handled in
10231         Set_Entity_With_Checks.
10232         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
10233         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
10234         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
10235         Set_Entity_With_Checks.
10236         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
10237         Add checks for No_Abort_Statements.
10239 2014-02-25  Robert Dewar  <dewar@adacore.com>
10241         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
10242         Check_Restriction is OK.
10244 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10246         * sem_ch3.adb (Process_Full_View): Better error message when
10247         the full view of  a private type without discriminants is an
10248         unconstrained type.
10249         * sem_ch7.adb (Uninstall_Declarations): Ditto.
10251 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10253         * sigtramp-armvxw.c: Also restore r0.
10255 2014-02-25  Robert Dewar  <dewar@adacore.com>
10257         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
10258         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
10259         set unconditionally.
10260         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
10261         any more (Output_Msg_Text): Rewritten with new convention on
10262         output of warnings that are treated as errors.
10263         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
10264         if Warn is False.
10265         * gnat_rm.texi: Updates to documentation on pragma
10266         Warning_As_Error.
10267         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
10268         set Warning_Doc_Switch.
10269         * lib-writ.ads: Add documentation note on ALI file generation
10270         for C.
10271         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
10272         (belongs in Sem).
10273         * sem_attr.adb (Resolve_Attribute, case Access):
10274         Abort_Task'Access violates the No_Abort_Statements restriction.
10275         * sem_res.adb (Resolve_Call): Check restriction
10276         No_Abort_Statements for call to Abort_Task or a renaming of it.
10278 2014-02-25  Robert Dewar  <dewar@adacore.com>
10280         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
10281         type name as index.
10282         * lib.ads: Minor reformatting.
10283         * einfo.ads: Minor reformatting.
10285 2014-02-25  Doug Rupp  <rupp@adacore.com>
10287         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
10288         use Short_Descriptor(S) as the argument passing mechanism.
10290 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10292         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
10294 2014-02-25  Robert Dewar  <dewar@adacore.com>
10296         * atree.ads (Warnings_Treated_As_Errors): New variable.
10297         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
10298         error object (Initialize): Initialize Warnings_As_Errors_Count
10299         (Write_Error_Summary): Include count of warnings treated as errors.
10300         * erroutc.adb (Warning_Treated_As_Error): New function.
10301         (Matches): Function moved to outer level of package.
10302         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
10303         (Warning_Treated_As_Error): New function.
10304         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
10305         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
10306         * opt.ads (Config_Switches_Type): Add entry for
10307         Warnings_As_Errors_Count.
10308         (Warnings_As_Errors_Count): New variable.
10309         (Warnings_As_Errors): New array.
10310         * par-prag.adb: Add dummy entry for Warning_As_Error.
10311         * sem_prag.adb (Analyze_Pragma): Implement new pragma
10312         Warning_As_Error.
10313         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
10315 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10317         * sigtramp.h: Fix minor inaccuracy.
10319 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
10321         * gnat_ugn.texi: Added description of kill command.
10323 2014-02-25  Robert Dewar  <dewar@adacore.com>
10325         * gnat_rm.texi (Address_Clauses): Add a section discussing the
10326         problem of address clauses causing unexpected initialization,
10327         including the effect of Initialize_Scalars.
10329 2014-02-25  Robert Dewar  <dewar@adacore.com>
10331         * errout.adb: Various changes for better msgs for anonmous access
10332         subprogram types.
10333         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
10334         argument.
10335         (Buffer_Remove): Version with character argument.
10336         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
10337         of mismatching conventions for access-to-subprogram case.
10338         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
10339         access types in record.
10340         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
10341         types, including in records.
10343 2014-02-25  Doug Rupp  <rupp@adacore.com>
10345         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
10346         enhancements and corrections.
10348 2014-02-25  Robert Dewar  <dewar@adacore.com>
10350         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
10352 2014-02-25  Robert Dewar  <dewar@adacore.com>
10354         * gnat_rm.texi: First set of documentation additions for
10355         predefined RM units.
10356         * checks.adb: Minor reformatting.
10357         * sem_elab.adb (Check_Task_Activation): Minor fix to error
10358         message.
10359         * sem_util.adb: Minor reformatting.
10361 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
10363         * usage.adb (Usage): Add help on -gnateC.
10364         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
10365         * opt.ads (Generate_CodePeer_Messages): New flag.
10366         * gnat_ugn.texi: Document new switch -gnateC.
10368 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
10370         * gnat_rm.texi: Corrected minor typos in Implementation Defined
10371         Aspects.
10372         * opt.ads: Minor reformatting.
10374 2014-02-25  Robert Dewar  <dewar@adacore.com>
10376         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
10377         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
10378         of -gnatel/-gnateL.
10379         * opt.ads (Warn_Info_Messages): New flag.
10380         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
10381         messages.
10382         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
10383         messages.
10384         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
10385         * usage.adb: Add documentation of -gnatel/-gnateL Update
10386         documentation of -gnatwl/-gnatwL.
10387         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
10388         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
10390 2014-02-25  Robert Dewar  <dewar@adacore.com>
10392         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
10393         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
10394         * interfac.ads: Minor code reorganization (add pragma
10395         Compiler_Unit_Warning).
10396         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
10397         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
10398         Has_Shift_Operator flag.
10399         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
10400         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
10401         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
10402         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
10403         Add entry for Name_Amount.
10404         * checks.adb (Selected_Range_Checks): When checking for a null
10405         range, make sure we use the base type, and not the subtype for
10406         deciding a range is null.
10407         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
10408         for suspicious loop bound which is outside the range of the
10409         loop subtype.
10410         * gnat_ugn.texi: Add documentation section "Determining the
10411         Chosen Elaboration Order"
10412         * sem_ch13.adb (UC_Entry): Add field Act_Unit
10413         (Validate_Unchecked_Conversion): Store Act_Unit
10414         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
10415         * treepr.adb: Minor reformatting.
10417 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
10419         * usage.adb: Minor: fix typo.
10421 2014-02-25  Robert Dewar  <dewar@adacore.com>
10423         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
10424         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
10425         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
10426         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
10427         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
10428         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
10429         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
10430         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
10431         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
10432         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
10433         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
10434         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
10435         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
10436         Compiler_Unit_Warning, change Compiler_Unit everywhere to
10437         Compiler_Unit_Warning.
10439 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
10441         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
10442         in ASIS mode aggregates that are used as aspect definitions.
10444 2014-02-25  Robert Dewar  <dewar@adacore.com>
10446         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
10447         reformatting.
10449 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10451         * freeze.adb (Freeze_Entity): If the return type of a function
10452         is a limited view, and the non-limited view has not been seen yet,
10453         defer freezing to some later point.
10455 2014-02-25  Robert Dewar  <dewar@adacore.com>
10457         * sem_ch3.adb: Minor reformatting.
10459 2014-02-25  Robert Dewar  <dewar@adacore.com>
10461         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
10462         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
10463         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
10464         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
10465         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
10466         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
10467         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
10468         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
10469         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
10470         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
10471         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
10472         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
10473         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
10474         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
10475         snames.ads-tmpl: Change Compiler_Unit everywhere to
10476         Compiler_Unit_Warning.
10478 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10480         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
10481         (Collect_Body_Postconditions_In_Decls): New routine.
10482         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
10483         postcondition aspects or pragmas that appear on a subprogram
10484         body stub.
10485         (Collect_Spec_Preconditions): Factor out code. Handle
10486         precondition aspects or pragmas that appear on a subprogram
10487         body stub.
10488         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
10489         aspects that apply to a subprogram body stub is no longer delayed,
10490         the aspects are analyzed on the spot.
10491         (SPARK_Aspect_Error):
10492         Aspects that apply to a subprogram declaration cannot appear in
10493         a subunit.
10494         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
10495         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
10496         is now a local variable. Code cleanup. Analysis related to
10497         the aspects of a subprogram body stub is now carried out by
10498         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
10499         and/or pragmas of a subprogram body stub to the proper body
10500         as this is no longer needed. Do not analyze the aspects of a
10501         subprogram stub when the corresponding source unit is missing.
10502         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
10503         on a stub.
10504         (Analyze_Task_Body_Stub): Flag the illegal use of
10505         aspects on a stub.
10506         (Optional_Subunit): Add local variable Unum.
10507         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
10508         pragma when it applies to a subprogram body stub.
10509         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
10510         Depends and Global can now apply to a subprogram body stub as
10511         long as it acts as its own spec.
10512         (Analyze_Refined_Pragma):
10513         Code reformatting. Refinement pragmas cannot apply to a subunit.
10515 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10517         * einfo.ads Update the usage of flag
10518         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
10519         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
10520         now starts with the letter 'C'. This makes reading expanded
10521         code easier.
10522         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
10523         Iter_Loop. Signal that an Ada 2012 iterator loop requires
10524         secondary stack management when creating a transient scope for
10525         an element reference.
10526         * exp_util.adb (Process_Statements_For_Controlled_Objects):
10527         When wrapping the statements of a loop, pass the E_Loop entity
10528         to the wrapping machinery.
10529         (Wrap_Statements_In_Block): Add
10530         formal parameter Scop along with comment on usage. Add local
10531         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
10532         block as requiring secondary stack management when the block is
10533         created inside an Ada 2012 iterator loop. This ensures that any
10534         reference objects are reclaimed on each iteration of the loop.
10535         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
10536         tasked with the handling of container iterators as requiring
10537         secondary stack management. This ensures that iterators are
10538         reclaimed when the loop terminates or is exited in any fashion.
10539         * sem_util.adb (Add_Block_Identifier): New routine.
10540         (Find_Enclosing_Iterator_Loop): New routine.
10541         * sem_util.ads (Add_Block_Identifier): New routine.
10542         (Find_Enclosing_Iterator_Loop): New routine.
10544 2014-02-25  Robert Dewar  <dewar@adacore.com>
10546         * sinfo.ads: Minor reformatting.
10548 2014-02-25  Tristan Gingold  <gingold@adacore.com>
10550         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
10552 2014-02-25  Pascal Obry  <obry@adacore.com>
10554         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
10556 2014-02-25  Tristan Gingold  <gingold@adacore.com>
10558         * sem_ch10.adb: Minor comment fix.
10560 2014-02-25  Bob Duff  <duff@adacore.com>
10562         * s-tasdeb.adb: Misc cleanup of this package,
10563         including printing addresses in hexadecimal.
10564         (Write): Fix minor bug when taking 'Address of an empty string.
10566 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10568         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
10569         public child unit when it does not refer to the abstract state
10570         of a public ancestor.
10572 2014-02-25  Yannick Moy  <moy@adacore.com>
10574         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
10575         Validity_Checks in GNATprove and CodePeer modes.
10577 2014-02-25  Pascal Obry  <obry@adacore.com>
10579         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
10580         Artifacts attribute.
10582 2014-02-25  Yannick Moy  <moy@adacore.com>
10584         * sem_prag.adb: Minor reformatting to get consistent messages.
10586 2014-02-25  Robert Dewar  <dewar@adacore.com>
10588         * checks.adb: Minor reformatting.
10589         * sinfo.ads (Do_Range_Check): Document that this flag is never
10590         passed to the back end.
10592 2014-02-25  Yannick Moy  <moy@adacore.com>
10594         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
10595         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
10597 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10599         * sem_res.adb (Appears_In_Check): New routine.
10600         (Resolve_Entity_Name): Remove local variables Prev and
10601         Usage_OK. Par is now a constant. Remove the parent chain traversal
10602         as the placement of a volatile object with enabled property
10603         Async_Writers and/or Effective_Reads must appear immediately
10604         within a legal construct.
10606 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10608         * checks.adb (Apply_Selected_Range_Checks):
10609         Alphabetize local constants and variables. Add comments.
10610         Always insert a range check that requires runtime evaluation into
10611         the tree.
10613 2014-02-25  Robert Dewar  <dewar@adacore.com>
10615         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
10617 2014-02-25  Bob Duff  <duff@adacore.com>
10619         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
10620         iterations while waiting for independent tasks to terminate;
10621         if an independent task does not terminate, we do not want to
10622         hang here. In that case, the thread will be terminated when the
10623         process exits.
10624         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
10626 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10628         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
10629         used to perform pre-analysis of the expression for SPARK
10630         aspects that have a non-standard syntax, such as GLobal and
10631         Initializes. The procedure applies to the original expression
10632         in an aspect specification, prior to the analysis of the
10633         corresponding pragma, in order to provide semantic information
10634         for ASIS navigation purposes.
10635         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
10636         Call new subprogram.
10638 2014-02-25  Yannick Moy  <moy@adacore.com>
10640         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
10642 2014-02-25  Doug Rupp  <rupp@adacore.com>
10644         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
10645         (__gnat_adjust_context_for_raise): Bump the PC by 2.
10647 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10649         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
10650         misplaced IS, add a statement sequence to improper body only if
10651         one has not been parsed already.
10653 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10655         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
10656         mismatch when multidimensional array is updated with a single
10657         index.
10659 2014-02-25  Yannick Moy  <moy@adacore.com>
10661         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
10662         sem_ch6.adb: Mark most references to SPARK RM in error messages
10663         for removal.
10665 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10667         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
10668         appears in a list of basic declarations, complete the tree with
10669         an empty statement list, to prevent cascaded errors and crashes
10670         if semantic analysis is attempted.
10672 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10674         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
10675         value.
10676         * erroutc.adb: Minor reformatting.
10678 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10680         * sem_prag.adb (Check_Clause_Syntax): Account
10681         for a solitary input item in a dependency list.
10683 2014-02-24  Yannick Moy  <moy@adacore.com>
10685         * gnat1drv.adb (Adjust_Global_Switches): Do not
10686         use validity checks at all in GNATprove_Mode.
10688 2014-02-24  Robert Dewar  <dewar@adacore.com>
10690         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
10691         atree.adb, atree.ads: Minor reformatting.
10693 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10695         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
10696         global and dependence refinement when SPARK_Mode is off.
10697         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
10698         state refinement when SPARK_Mode is off.
10699         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
10700         variable Decl. Insert the generated pragma for Refined_State
10701         after a potential pragma SPARK_Mode.
10702         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
10703         constant Deps. Remove local variable Expr. Check the syntax
10704         of pragma Depends when SPARK_Mode is off. Factor out the
10705         processing for extra parenthesis around individual clauses.
10706         (Analyze_Global_In_Decl_List): Items is now a constant. Check
10707         the syntax of pragma Global when SPARK_Mode is off.
10708         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
10709         Initializes when SPARK_Mode is off.
10710         (Analyze_Part_Of): Check
10711         the syntax of the encapsulating state when SPARK_Mode is off.
10712         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
10713         SPARK_Mode is off. Move the declaration order check with respect
10714         to pragma Initializes to the end of the processing. Do not verify
10715         the declaration order for pragma Initial_Condition when SPARK_Mode
10716         is off. Do not complain about a useless package refinement when
10717         SPARK_Mode is off.
10718         (Analyze_Refined_Depends_In_Decl_Part): Refs
10719         is now a constant. Check the syntax of pragma Refined_Depends
10720         when SPARK_Mode is off.
10721         (Analyze_Refined_Global_In_Decl_Part):
10722         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
10723         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
10724         Refined_State when SPARK_Mode is off.
10725         (Check_Dependence_List_Syntax): New routine.
10726         (Check_Global_List_Syntax): New routine.
10727         (Check_Initialization_List_Syntax): New routine.
10728         (Check_Item_Syntax): New routine.
10729         (Check_State_Declaration_Syntax): New routine.
10730         (Check_Refinement_List_Syntax): New routine.
10731         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
10733 2014-02-24  Robert Dewar  <dewar@adacore.com>
10735         * a-tags.adb, s-os_lib.adb: Minor reformatting.
10737 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10739         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
10740         strerror message, not just numeric errno value.
10742 2014-02-24  Doug Rupp  <rupp@adacore.com>
10744         * raise-gcc.c (exception_class_eq): Make endian neutral.
10746 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10748         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
10749         flag, and reset Etype and Analyzed attributes unconditionally
10750         when copying a tree that may be partly analyzed.
10751         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
10752         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
10753         within a subprogram body and applies to it, remove it from the
10754         body before making a copy of it, to prevent spurious errors when
10755         analyzing the copied body.
10757 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10759         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
10760         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
10761         vxWorks.h has been included.  Also ensure that file attributes
10762         related definitions are output even in cases where socket support
10763         is not enabled.
10764         * a-tags.adb: Code clean up.
10765         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
10766         instead of -I to add the main ada source directory to the header
10767         search path, in order to avoid conflict between our own "types.h"
10768         and VxWork's <types.h>.
10770 2014-02-24  Robert Dewar  <dewar@adacore.com>
10772         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
10773         * debug.adb: Remove documentation of -gnatd.X, no longer used.
10774         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
10776 2014-02-24  Bob Duff  <duff@adacore.com>
10778         * gnat_ugn.texi: Improve documentation of gnatpp.
10780 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10782         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
10783         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
10784         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
10785         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
10786         a chars_ptr, because on Windows this is a renaming of
10787         Socket_Error_Message.
10789 2014-02-24  Robert Dewar  <dewar@adacore.com>
10791         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
10792         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
10793         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
10794         reorganization.
10796 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10798         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
10799         that the source directory containing s-oscons-tmplt.c is on the
10800         include path, so that all internal header files are available.
10802 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10804         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
10805         domain of iteration is an attribute reference 'Old, this is an
10806         Ada 2012 iterator and the loop must be rewritten as such.
10808 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10810         * s-fileio.adb (Errno_Message): Remove, use shared version from
10811         s-os_lib instead.
10812         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
10813         * g-stseme (Socket_Error_Message): Reimplement in terms of new
10814         s-os_lib function.
10815         * g-socthi.ads, g-socthi.adb: Change profile of
10816         Socket_Error_Message to return String to allow the above.
10817         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
10818         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10819         * g-socthi-vxworks.ads: Update to account for the above profile
10820         change.
10821         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
10822         * s-crtl.ads (strncpy): New procedure.
10823         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
10824         Use import from s-crtl.
10825         * a-envvar.adb, osint.adb: Use imports of C runtime functions
10826         from s-crtl instead of re-importing locally.
10828 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10830         * sem_prag.adb (Analyze_Global_Item): Emit the
10831         variable related checks concerning volatile objects only when
10832         SPARK_Mode is on.
10834 2014-02-24  Robert Dewar  <dewar@adacore.com>
10836         * sem_ch5.adb (Analyze_Iterator_Specification): use
10837         Error_Msg_Ada_2012_Feature.
10839 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
10841         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
10842         No_Local_Timing_Events and No_Specific_Termination_Handlers
10843         must be set, according to the Ravenscar profile definition
10844         in D.13(6/3).
10846 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10848         * sem_ch6.adb (Analyze_Expression_Function): If this is a
10849         completion, freeze return type and its designated type if needed.
10851 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10853         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
10854         'Address): When moving initialization statements to a freeze
10855         entity, keep them under a single node (i.e. do not unwrap
10856         expressions with actions), and set the Initialization_Statements
10857         attribute again so that processing of a later pragma Import can
10858         still remove them.
10860 2014-02-24  Claire Dross  <dross@adacore.com>
10862         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
10863         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
10864         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
10865         Left/Right to First_To_Previous/Current_To_Last.
10867 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10869         * adaint.h (struct file_attributes): New component "error"
10870         (__gnat_error_attributes): Accessor for the above.
10871         * adaint.c (__gnat_error_attributes): New subprogram
10872         (__gnat_stat): Fix returned value (expect errno value)
10873         (__gnat_stat_to_attr): Add management of error component (set to
10874         stat errno value, except for missing files where it is set to 0,
10875         and exists is set to 0).
10876         * osint.ads (File_Attributes_Size): Update per change above,
10877         also clarify documentation.
10878         * s-filatt.ads: New file, binding to file attributes related
10879         functions.
10880         * Makefile.rtl (s-filatt): New runtime unit.
10881         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
10882         to library function if not available on target).
10883         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
10884         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
10885         SIZEOF_struct_dirent_alloc): New constants.
10886         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
10887         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
10888         Perform appropriate error checking if stat fails (do not just
10889         ignore existing files if stat fails)
10890         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
10891         dependencies.
10893 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10895         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
10896         the use of volatile objects as global items in a function to
10897         the variable related checks section.
10898         * sem_util.adb (Async_Readers_Enabled): Directly call
10899         Has_Enabled_Property.
10900         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
10901         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
10902         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
10903         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
10904         Update the comment on usage. State_Has_Enabled_Property how handles
10905         the original logic of the routine. Add processing for variables.
10906         (State_Has_Enabled_Property): New routine.
10907         (Variable_Has_Enabled_Property): New routine.
10909 2014-02-24  Robert Dewar  <dewar@adacore.com>
10911         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
10912         Minor reformatting.
10913         * atree.ads, atree.adb (Node35): New function.
10914         (Set_Node35): New procedure.
10915         * debug.adb: Define new debug flag -gnatd.X.
10916         * einfo.ads, einfo.adb (Import_Pragma): New field.
10917         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
10918         really active yet, has to be activated with -gnatd.X.
10919         * sem_prag.adb (Set_Imported): Set new Import_Pragma
10920         field (Set_Imported): Don't set Is_Public (see
10921         Freeze.Wrap_Imported_Subprogram)
10922         * par-ch3.adb (P_Component_List): Handle unexpected null component.
10924 2014-02-24  Yannick Moy  <moy@adacore.com>
10926         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
10927         * gnat_rm.texi: Correct documentation of attribute Update.
10929 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10931         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
10932         iterator in older versions of Ada.
10934 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
10936         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
10937         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
10939 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10941         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
10942         indexed_components that are instances of Ada 2012 container
10943         indexing operations. Analysis and resolution of such nodes
10944         is performed on the attribute, and the original source is
10945         preserved for ASIS operations. If expansion is enabled, the
10946         indexed component is replaced by the value of this attribute,
10947         which is in a call to an Indexing aspect, in most case wrapped
10948         in a dereference operation.
10949         * sem_ch4.adb (Analyze_Indexed_Component): Create
10950         Generalized_Indexing attribute when appropriate.
10951         (Analyze_Call): If prefix is not overloadable and has an indexing
10952         aspect, transform into an indexed component so it can be analyzed
10953         as a potential container indexing.
10954         (Analyze_Expression): If node is an indexed component with a
10955         Generalized_ Indexing, do not re-analyze.
10956         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
10957         of an indexed_component that has been transformed into a container
10958         indexing operation.
10959         (Resolve_Indexed_Component): Call the above when required.
10960         (Resolve): Do not insert an explicit dereference operation on
10961         an indexed_component whose type has an implicit dereference:
10962         the operation is inserted when resolving the related
10963         Generalized_Indexing.
10965 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
10967         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
10968         Environment.
10970 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10972         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
10973         error messages.
10974         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
10975         Merge the expected and available mode errors.
10976         (Report_Unused_Constituents): Remove leading spaces in error messages.
10977         (Report_Unused_States): Remove leading spaces in error messages.
10979 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10981         * par_sco.adb (Traverse_One): Refine categorization of statement
10982         SCOs.
10984 2014-02-24  Robert Dewar  <dewar@adacore.com>
10986         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
10987         Pure_05, Pure_12 and Preelaborate_05.
10988         * gnat_rm.texi: Update accordingly.
10989         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
10990         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
10991         Recognize one argument form of these pragmas only in GNAT mode
10992         (-gnatg).
10994 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10996         * s-dimmks.ads: Replace symbol for temperature, previously the
10997         Greek letter Theta, by the ASCII @ sign.
10998         * s-diflio.ads: ditto.
11000 2014-02-24  Robert Dewar  <dewar@adacore.com>
11002         * exp_ch4.adb: Minor code reorganization (use OR for boolean
11003         variables).
11004         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
11006 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
11008         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
11009         so that references to gnatmem and ASIS tools do not appear in the FSF
11010         edition of the GNAT User's Guide.
11012 2014-02-24  Yannick Moy  <moy@adacore.com>
11014         * freeze.adb (Freeze_Entity): Do not issue warning
11015         for pre/post being ignored on imported subprogram in GNATprove
11016         mode.
11018 2014-02-24  Robert Dewar  <dewar@adacore.com>
11020         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
11021         stand.ads, sem_eval.adb: Minor reformatting.
11023 2014-02-24  Yannick Moy  <moy@adacore.com>
11025         * sem_prag.adb: Minor rewording in error message.
11027 2014-02-24  Johannes Kanig  <kanig@adacore.com>
11029         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
11030         GNATprove_mode, gnat2why doesn't need nor use these types.
11032 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11034         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
11035         target, in the case of signed integer exponentiation that uses a
11036         run-time routine, always select the Exp_* versions, since overflow
11037         checking is automatically done by AAMP arithmetic instructions.
11039 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11041         * sem_ch13.adb (Analyze_Aspect_Specifications):
11042         When the related context is a package instace, insert pragma
11043         Abstract_State after all internally-generated renamings related
11044         to the instance "header".
11046 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11048         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
11049         subprograms.
11050         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
11051         call to an abstract subprogram is legal if it appears in a
11052         pre/postcondition of another abstract operation.
11054 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
11056         * gnat_ugn.texi: Misc updates.
11058 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11060         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
11062 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11064         * layout.adb (Layout_Variant_Record): Instantiate
11065         Generic_Check_Choices and call Check_Choices before calling
11066         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
11067         set to prevent generating incorrect discriminant-checking
11068         functions for 'others' variants (functions that unconditionally
11069         return True rather than accounting for the values covered by the
11070         'others' choice).
11071         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
11072         Formal_Derived_Matching.
11073         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
11074         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
11075         Formal_Derived_Matching formal to Subtypes_Statically_Match.
11076         (Subtypes_Statically_Match): Suppress the Object_Size matching
11077         test in the case where Formal_Derived_Matching is True.
11078         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
11079         True for Formal_Derived_Matching_Formal on the call to
11080         Subtypes_Statically_Compatible.
11082 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11084         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
11086 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11088         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
11089         Look through a conversion between original and packable version to get
11090         the base object.
11091         (build_component_ref): Rework comment and fix formatting.
11093 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
11095         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
11096         project-specific options.
11098 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11100         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
11101         not Constraint_Error.
11102         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
11103         * sem_ch5.adb: Code clean up.
11105 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11107         * sem_prag.adb (Usage_Error): Remove local
11108         constant Typ. Remove the specialized diagnostics for unconstrained
11109         or tagged items as those are not part of the explicit input set
11110         of the related subprogram and should not be flagged.
11112 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11114         * sem_attr.adb: Add guard to preserve all errors.
11116 2014-02-20  Vincent Celier  <celier@adacore.com>
11118         * switch-m.adb (Normalize_Compiler_Switches): Take into account
11119         switches that are recorded in ALI files: -gnateA, -gnateE,
11120         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
11122 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11124         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
11125         of an element iterator form over a formal container with an
11126         Iterable aspect.
11127         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
11128         to create declaration and loop statements for both forms of
11129         container iterators.
11130         (Expand_Formal_Container_Element_Iterator): New procedure
11131         to handle loops of the form  "for E of C" when C is a formal
11132         container.
11133         (Expand_Formal_Container_Iterator): Code cleanup.
11135 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11137         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
11138         (Analyze_Contract_Case): Remove the use of
11139         "may". Replace "aspect Contract_Cases" to avoid categorization
11140         of aspect vs pragma.
11141         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
11142         (Analyze_Global_Item): Remove
11143         the use of "formal", specify the subprogram.  Split the
11144         error message about a state with visible refinement into
11145         two. Remove the use of "global" from "volatile global item".
11146         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
11147         is on one line.
11148         (Analyze_Input_Output): Update the call to
11149         Check_Mode. Specify the duplicated item. Reword the error
11150         message concerning an input of a null output list. Use "\"
11151         for error message continuation.
11152         (Analyze_Part_Of): Remove
11153         the use of "may". Use "\" for error message continuation.
11154         (Analyze_Refined_Depends_In_Decl_Part): Update the error
11155         message concerning a useless refinement to match the format
11156         of Refined_Global.
11157         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
11158         concerning a useless refinement.
11159         (Analyze_Refinement_Clause): Use "\" for error message continuation.
11160         (Check_Constituent_Usage): Use "\" for error message continuation.
11161         (Check_Dependency_Clause): Use "\" for error message continuation.
11162         (Check_Matching_Constituent): Use "\" for error message continuation.
11163         (Check_Missing_Part_Of): Use "\" for error message continuation.
11164         (Check_Mode): Renamed to
11165         Check_Role. Update the comment on usage. Redo the error reporting
11166         to use Role_Error.
11167         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
11168         message continuation.
11169         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
11170         with comment on usage. Update all occurrences of Is_Input and Is_Output.
11171         (Inconsistent_Mode_Error): Use "\" for error message continuation.
11172         (Input_Match): Use "\" for error message continuation.
11173         (Role_Error): New routine.
11174         (Set_Convention_From_Pragma): Use "\" for error message continuation.
11175         (Usage_Error): Add local variable Error_Msg. Build specialized error
11176         message showcasing the offending item kind. Redo the diagnostics for
11177         unconstrained types.
11179 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11181         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
11182         to determine whether a type is a container type, rather than
11183         examining only its type declaration, so that subtypes and derived
11184         types are handled properly.
11186 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
11188         * gnat_ugn.texi: gnatmetric: add description of project-specific
11189         options.
11191 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11193         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
11194         all choices in an association for a record type have the same
11195         type, as is done for record aggregates.
11197 2014-02-20  Robert Dewar  <dewar@adacore.com>
11199         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
11200         Unmodified rather than Warnings (Off). Make comments
11201         uniform in the four affected units.
11203 2014-02-20  Robert Dewar  <dewar@adacore.com>
11205         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
11206         Object_Size): For non-scalar types allow any value that is a
11207         multiple of 8.
11208         * gnat_rm.texi: Document Object_Size for composites more clearly.
11210 2014-02-20  Yannick Moy  <moy@adacore.com>
11212         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
11214 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11216         * stand.ads: Raise_Type: new predefined entity, used as the type
11217         of a Raise_Expression prior to resolution.
11218         * cstand.adb: Build entity for Raise_Type.
11219         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
11220         initial type of the node.
11221         * sem_type.adb (Covers): Raise_Type is compatible with all
11222         other types.
11223         * sem_res.adb (Resolve): Remove special handling of Any_Type on
11224         Raise_Expression nodes.
11225         (Resolve_Raise_Expression): Signal ambiguity if the type of the
11226         context is still Raise_Type.
11228 2014-02-20  Robert Dewar  <dewar@adacore.com>
11230         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
11231         mismatching predicates.
11232         * sem_ch6.adb (Check_Conformance): Give better messages on
11233         predicate mismatch.
11234         * sem_eval.adb (Predicates_Match): Move to spec.
11235         * sem_eval.ads (Predicates_Match): Moved here from body.
11237 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11239         * a-cbmutr.adb: Use default value in Insert_Child.
11241 2014-02-20  Vincent Celier  <celier@adacore.com>
11243         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
11244         Stringt.Initialize in all project aware tools.
11246 2014-02-20  Doug Rupp  <rupp@adacore.com>
11248         * gnat_ugn.texi: Document gnatbind -X option.
11249         * vms_data.ads: Minor warnings documentation reformatting.
11251 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11253         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
11254         procedure for a base type.
11256 2014-02-20  Robert Dewar  <dewar@adacore.com>
11258         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
11259         expression with type info.
11260         * sem_ch13.adb: Minor reformatting.
11261         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
11262         False if predicates do not match on the two types.
11264 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
11266         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
11267         In Relaxed_RM_Semantics mode, allow any static integer value,
11268         for compatibility with other compilers.
11270 2014-02-20  Vincent Celier  <celier@adacore.com>
11272         * errutil.adb (Initialize): Properly initialize entry in table
11273         Warnings when warnings are suppressed.
11275 2014-02-20  Robert Dewar  <dewar@adacore.com>
11277         * s-os_lib.ads: Add warning about non-portability of Rename_File.
11278         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
11279         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
11280         * gnat_ugn.texi: Document no warnings on junk variable names.
11281         * layout.adb: Minor code reorganization (use Ekind_In).
11282         * stringt.adb: Move initialization of Null_String_Id to Initialize
11283         routine.
11285 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11287         * sem_ch13.adb: Initialize optional Element_Id.
11289 2014-02-20  Robert Dewar  <dewar@adacore.com>
11291         * s-os_lib.ads (Rename_File): Minor commment addition.
11293 2014-02-20  Thomas Quinot  <quinot@adacore.com>
11295         * einfo.ads: Minor reformatting.
11297 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11299         * aspects.adb (Exchange_Aspects): New routine.
11300         * aspects.ads (Exchange_Aspects): New routine.
11301         * atree.adb (Rewrite): Do not check whether the save node has
11302         aspects as it never will, instead check the node about to be clobbered.
11303         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
11304         entities of generic packages.
11305         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
11306         pointer of an aspect specification list after rewriting takes place.
11307         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
11308         specifications of the generic template and the copy used for analysis.
11309         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
11310         the aspect specifications of the generic template and the
11311         copy used for analysis.
11312         (Analyze_Package_Instantiation): Propagate the aspect specifications
11313         from the generic template to the instantiation.
11314         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
11315         specifications from the generic template to the instantiation.
11316         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
11317         Abstract_State, Initializes and Initial_Condition when they
11318         apply to a package instantiation.
11320 2014-02-20  Robert Dewar  <dewar@adacore.com>
11322         * stringt.adb: Add call to Initialize in package initialization.
11324 2014-02-20  Robert Dewar  <dewar@adacore.com>
11326         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
11327         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
11328         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
11329         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
11330         reformatting.
11332 2014-02-20  Bob Duff  <duff@adacore.com>
11334         * s-os_lib.ads: Minor: Remove incorrect comment.
11336 2014-02-20  Robert Dewar  <dewar@adacore.com>
11338         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
11340 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11342         * a-cborma.adb (Assign): When creating a node without a specified
11343         element, insert an uninitialized element in the map, because
11344         the instance may provide an element type with a default
11345         initialization, e.g a scalar with a Default_Value aspect.
11346         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
11347         (Insert): In the version without explicit element, provide an
11348         uninitialized element, as above.
11349         * a-cbdlli.adb (Append): In the version without explicit element,
11350         provide an uninitalized element, as above.
11351         (Allocate): Remove unused version.
11353 2014-02-20  Robert Dewar  <dewar@adacore.com>
11355         * sem_elab.adb: Minor code reorganization (use Nkind_In).
11356         * stringt.adb: Remove temporary pragma Warnings (Off).
11357         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
11358         of Null_String_Id.
11360 2014-02-20  Matthew Heaney  <heaney@adacore.com>
11362         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
11363         index.
11365 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11367         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
11368         properly the cursor type for subsequent volatile testing in SPARK
11369         mode, when domain is a formal container with an Iterabe aspect.
11371 2014-02-20  Robert Dewar  <dewar@adacore.com>
11373         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
11374         (Set_Specific_Warning_Off): Add Reason argument.
11375         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
11376         (Set_Specific_Warning_Off): Add Reason argument.
11377         * erroutc.adb (Warnings_Entry): Add Reason field
11378         (Specific_Warning_Entry): Add Reason field.
11379         (Warnings_Suppressed): return String_Id for Reason.
11380         (Warning_Specifically_Suppressed): return String_Id for Reason.
11381         * erroutc.ads (Warnings_Entry): Add Reason field.
11382         (Specific_Warning_Entry): Add Reason field.
11383         (Set_Specific_Warning_Off): Add Reason argument.
11384         (Set_Warnings_Mode_Off): Add Reason argument.
11385         (Warnings_Suppressed): return String_Id for Reason.
11386         (Warning_Specifically_Suppressed): return String_Id for Reason.
11387         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
11388         (Warning_Specifically_Suppressed): returns String_Id for Reason
11389         * gnat_rm.texi: Document that Warning parameter is string literal
11390         or a concatenation of string literals.
11391         * par-prag.adb: New handling for Reason argument.
11392         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
11393         for Reason argument.
11394         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
11395         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
11396         * stringt.adb: Set Null_String_Id.
11397         * stringt.ads (Null_String_Id): New constant.
11399 2014-02-20  Robert Dewar  <dewar@adacore.com>
11401         * einfo.ads: Minor comment addition: Etype of package is
11402         Standard_Void_Type.
11403         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
11404         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
11405         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
11406         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
11407         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
11408         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11409         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
11410         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
11411         Replace all calls with calls to New_Occurrence_Of.
11413 2014-02-20  Robert Dewar  <dewar@adacore.com>
11415         * par-util.adb (Ignore, case of right paren): Make this a
11416         serious error.
11418 2014-02-19  Robert Dewar  <dewar@adacore.com>
11420         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
11421         * debug.adb: Remove -gnatd.X switch, no longer used.
11422         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
11423         now always made.
11425 2014-02-19  Bob Duff  <duff@adacore.com>
11427         * g-socket.ads: Minor: Correct some comments.
11429 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11431         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
11433 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
11435         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
11436         an error on out of range priorities if Relaxed_RM_Semantics.
11437         * sem_prag.adb (Analyze_Pragma): Ditto.
11439 2014-02-19  Bob Duff  <duff@adacore.com>
11441         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
11442         where F denotes the renaming of an enumeration literal, and
11443         issue a specialized error message.
11445 2014-02-19  Matthew Heaney  <heaney@adacore.com>
11447         * a-chtgop.ads (Checked_Index): New operation.
11448         (Next): Changed mode of hash table.
11449         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
11450         (Generic_Read, Reserve_Capacity): Ditto.
11451         (Generic_Equal): Detect tampering.
11452         (Next): Changed mode of hash table, detect tampering.
11453         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
11454         operation.
11455         (Find): Changed mode of hash table.
11456         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
11457         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
11458         tampering.
11459         (Find): Changed mode of hash table, check for tampering.
11460         (Generic_Replace_Element): Check for tampering.
11461         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
11462         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
11463         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
11464         Detect tampering.
11465         (Find, Generic_Replace_Element): Check for tampering.
11466         * a-chtgbo.ads (Checked_Index): New operation.
11467         * a-chtgbo.adb (Checked_Index): New operation
11468         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
11469         (Generic_Read, Next): Ditto.
11470         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
11471         table (Difference, Intersection): Use variable view of
11472         source, detect tampering (Find, Is_Subset, Overlap): Use
11473         variable view of container (Symmetric_Difference, Union):
11474         Detect tampering (Vet): Use Checked_Index to detect tampering
11475         (Constant_Reference, Element, Find): Use variable view of
11476         container.
11477         (Update_Element_Preserving_Key): Detect tampering.
11478         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
11479         of container.
11480         (Is_Subset): Ditto.
11481         (Equivalent_Sets, Overlap): Use Node's Next component.
11482         (Vet): Use Checked_Index to detect tampering.
11483         (Constant_Reference, Element, Find): Use variable view of container.
11484         (Update_Element_Preserving_Key): Detect tampering.
11485         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
11486         Element, Find): Use variable view of container.
11487         (Reference): Rename hash table component.
11488         (Vet): Use Checked_Index to detect tampering.
11490 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
11492         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
11493         of -nostdinc.
11495 2014-02-19  Thomas Quinot  <quinot@adacore.com>
11497         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
11498         against calls without Def_Id.
11500 2014-02-19  Claire Dross  <dross@adacore.com>
11502         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
11503         a-cofove.ads: Add global annotations to subprograms.
11505 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11507         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
11508         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
11509         Initial_Condition no longer requires the presence of pragma
11510         Initialized. Do not try to diagnose whether all variables mentioned in
11511         pragma Initializes also appear in Initial_Condition.
11512         (Collect_Variables): Removed.
11513         (Match_Variable): Removed.
11514         (Match_Variables): Removed.
11515         (Report_Unused_Variables): Removed.
11517 2014-02-19  Thomas Quinot  <quinot@adacore.com>
11519         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
11521 2014-02-19  Robert Dewar  <dewar@adacore.com>
11523         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
11524         reformatting.
11526 2014-02-19  Vincent Celier  <celier@adacore.com>
11528         * prj-part.adb (Parse_Single_Project): Use the fully resolved
11529         project path, with all symbolic links resolved, to check if the
11530         same project is imported with a different unresolved path.
11531         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
11532         changed to Resolved_Path to reflect that all symbolic links
11533         are resolved.
11535 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11537         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
11538         from sem_ch13, for use elsewhere.
11539         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
11540         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
11541         cursor type on the loop variable when the iteration is over o
11542         formal container.
11544 2014-02-19  Vincent Celier  <celier@adacore.com>
11546         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
11547         for an empty Target (Check_Target): Never fail when an empty
11548         target is declared in the configuration project.
11550 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11552         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
11553         the pragma comes fron a predicate aspect and the context is a
11554         record declaration within the scope that declares the type.
11556 2014-02-19  Robert Dewar  <dewar@adacore.com>
11558         * gnat_rm.texi: Minor clarifications.
11559         * expander.adb, sem_aggr.adb: Add comments.
11561 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11563         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
11564         applies to a subprogram body, the name is the current scope,
11565         rather than being declared in the current scope.
11566         (Analyze_Pragma, case No_Return): Handle properly a No_Return
11567         aspect applied to a subprogram body.
11569 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11571         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
11572         of overloaded subprograms, and fix bug in handling of primitive
11573         operation Element.
11575 2014-02-19  Pascal Obry  <obry@adacore.com>
11577         * s-os_lib.adb: Minor reformatting.
11579 2014-02-19  Yannick Moy  <moy@adacore.com>
11581         * expander.adb (Expand): Do nothing inside generics.
11582         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
11583         generics.
11585 2014-02-19  Yannick Moy  <moy@adacore.com>
11587         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
11589 2014-02-19  Robert Dewar  <dewar@adacore.com>
11591         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
11592         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
11593         longer needed).
11595 2014-02-19  Claire Dross  <dross@adacore.com>
11597         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11598         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
11600 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11602         * sem_ch3.adb (Analyze_Declarations): Analyze
11603         a package contract at the end of the private declarations (if
11604         applicable), otherwise analyze it and the end of the visible
11605         declarations.
11607 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11609         * style.adb (Missing_Overriding): If subprogram is an
11610         instantiation, place warning on the instance node itself,
11611         without mention of the original generic. Do not emit message
11612         if explicit Ada version is older than the introduction of the
11613         overriding indicator.
11615 2014-02-19  Yannick Moy  <moy@adacore.com>
11617         * gnat_rm.texi: Doc clarifications.
11619 2014-02-19  Yannick Moy  <moy@adacore.com>
11621         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
11622         inside a generic.
11624 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11626         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
11627         specified First primitive, rather than by name.
11628         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
11629         and extend error checking for missing primitives and incorrect
11630         signatures.
11632 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11634         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
11635         errors when a Synchronization aspect on an overriding protected
11636         operation does not match the given aspect on the overridden
11637         operation of an ancestor interface.
11639 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11641         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
11642         (Check_Loop_Pragma_Placement): Update
11643         comment on usage. Remove local variables Orig_Stmt and
11644         Within_Same_Sequence. Check that the current Loop_Invariant or
11645         Loop_Variant pragma is grouped together with other such pragmas.
11646         (Is_Loop_Pragma): New routine.
11647         (Prev_In_Loop): Removed.
11649 2014-02-19  Robert Dewar  <dewar@adacore.com>
11651         * par-ch6.adb (P_Return): For extended return, end column lines
11652         up with RETURN.
11653         * par.adb: Minor documentation clarification.
11655 2014-02-19  Yannick Moy  <moy@adacore.com>
11657         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
11658         that Loop_Invariant and Loop_Variant appear consecutively.
11659         * gnat_rm.texi Update documentation of Loop_Invariant and
11660         Loop_Variant pragmas.
11662 2014-02-19  Robert Dewar  <dewar@adacore.com>
11664         * debug.adb: Document -gnatd.X.
11665         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
11666         first token
11667         (Check_Then_Column): Ditto.
11668         * styleg.adb (Check_Then): Allow THEN on line after IF.
11669         (Check_Then): Check THEN placement under control of -gnatd.X
11670         * styleg.ads (Check_Then): Now called even if THEN is not first
11671         token on line.
11672         * stylesw.ads (Style_Check_If_Then_Layout): Document new
11673         relaxed rules.
11674         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
11676 2014-02-19  Robert Dewar  <dewar@adacore.com>
11678         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
11679         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
11680         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
11681         vms_conv.adb: Fix bad layout of IF statements
11683 2014-02-19  Robert Dewar  <dewar@adacore.com>
11685         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
11687 2014-02-19  Robert Dewar  <dewar@adacore.com>
11689         * exp_util.adb: Update comments.
11691 2014-02-19  Doug Rupp  <rupp@adacore.com>
11693         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
11694         * init.c (__gl_float_format): [VMS] New global.
11695         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
11696         representation in effect.
11698 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11700         * exp_ch6.adb Add with and use clause for Exp_Prag.
11701         (Expand_Contract_Cases): Relocated to Exp_Prag.
11702         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
11703         * exp_prag.adb Add with and use clauses for Checks and Validsw.
11704         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
11705         structure of the expanded code to showcase the evaluation of
11706         attribute 'Old prefixes. Add local variable Old_Evals. Expand
11707         any attribute 'Old references found within a consequence. Add
11708         circuitry to evaluate the prefixes of attribute 'Old that
11709         belong to a selected consequence.
11710         (Expand_Old_In_Consequence): New routine.
11711         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
11712         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
11713         potentially unevaluated prefix is always evaluated.
11715 2014-02-19  Robert Dewar  <dewar@adacore.com>
11717         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
11718         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
11719         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
11720         handling for the case of Modify_Tree_For_C, this approach did
11721         not work.
11722         * exp_util.adb (Matching_Standard_Type): New function
11723         (Side_Effect_Free): New top level functions (from
11724         Remove_Side_Effects).
11725         * exp_util.ads (Side_Effect_Free): New top level functions
11726         (moved from body).
11727         * sinfo.ads: Minor comment updates.
11729 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11731         * exp_ch6.adb (Expand_Simple_Function_Return): If return
11732         type is unconstrained and uses the secondary stack, mark the
11733         enclosing function accordingly, to ensure that the value is not
11734         prematurely removed.
11736 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11738         * par.adb Alphabetize the routines in Par.Sync.
11739         (Resync_Past_Malformed_Aspect): New routine.
11740         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
11741         variables. Code and comment reformatting. Detect missing
11742         parentheses on aspects [Refined_]Global and [Refined_]Depends
11743         with a non-null definition.
11744         * par-sync.adb: Alphabetize all routines in this separate unit.
11745         (Resync_Past_Malformed_Aspect): New routine.
11747 2014-02-19  Robert Dewar  <dewar@adacore.com>
11749         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
11750         if Esize values do not match.
11752 2014-02-19  Yannick Moy  <moy@adacore.com>
11754         * sinfo.ads: Minor comment update.
11756 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11758         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
11760 2014-02-19  Thomas Quinot  <quinot@adacore.com>
11762         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
11763         that has the No_Ctrl_Actions flag is a suitable node to be
11764         wrapped if the assigned expression has no finalization actions.
11765         * sem_eval.adb (Eval_Entity_Name): For a compile time known
11766         boolean value, mark the corresponding condition SCO as constant.
11768 2014-02-19  Robert Dewar  <dewar@adacore.com>
11770         * exp_util.adb: Minor reformatting.
11771         * exp_util.ads (Matching_Standard_Type): New function.
11772         * exp_ch7.adb: Minor reformatting.
11774 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11776         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
11777         to find declaration for Cursor, to handle properly the case of
11778         a discriminated iterable type.
11780 2014-02-19  Vincent Celier  <celier@adacore.com>
11782         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
11783         imported library projects with the library ALI dirs, when setting
11784         the object paths.
11785         * prj-env.ads (Ada_Objects_Path): Correct comments about
11786         argument Including_Libraries.
11788 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
11790         * gnat_rm.texi: Minor spelling fixes.
11792 2014-02-19  Doug Rupp  <rupp@adacore.com>
11794         * init.c: Remove unneeded code.
11795         * fe.h (Float_Format): New macro
11796         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
11798 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11800         * sem_prag.adb (Check_Refined_Global_Item):
11801         A state or variable acts as a constituent only it is part of an
11802         encapsulating state and the state has visible refinement.
11804 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11806         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
11807         postcondition for a function when the expression does not mention
11808         'Result but the function has in-out parameters.
11810 2014-02-19  Robert Dewar  <dewar@adacore.com>
11812         * gnat_rm.texi: Add documentation on Value_Size forcing biased
11813         representation.
11815 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11817         * lib-xref.ads Remove the small table of letter and symbol usage as we
11818         already have one.
11820 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11822         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
11823         messages depending on the offending misplaced aspect specifications.
11824         (Diagnose_Misplaced_Aspect_Specifications): New routine.
11826 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11828         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
11829         for iterable aspect primitives.
11830         (Resolve_Iterable_Operation): Use expected signature of iterable
11831         aspect to resolve primitive when overloading is present.
11832         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
11833         (Check_Signature): Removed.
11835 2014-02-19  Yannick Moy  <moy@adacore.com>
11837         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
11838         subunit in GNATprove_Mode.
11839         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
11841 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11843         * lib-xref.ads Alphabetize the contents of table
11844         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
11845         for E_Abstract_State. List all letters and symbols in use.
11846         * sem_prag.adb (Analyze_Abstract_State): Update all calls
11847         to Create_Abstract_State to reflect the new signature.
11848         (Create_Abstract_State): Change subprogram profile and update
11849         the comment on usage. Use the proper location of the state
11850         declaration when creating a new abstract state entity. Do not
11851         generate an external name, but simply reuse the name coming from
11852         the state declaration.
11854 2014-02-19  Robert Dewar  <dewar@adacore.com>
11856         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
11857         declarations get properly inserted in Modify_Tree_For_C mode.
11858         * sinfo.ads: Minor comment addition.
11860 2014-02-19  Robert Dewar  <dewar@adacore.com>
11862         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
11863         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
11865 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11867         * style.adb (Missing_Overriding): Warning does not apply in
11868         language versions prior to Ada 2005.
11869         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
11870         * sem_attr.adb: Add Attribute_Iterable where needed.
11871         * exp_attr.adb: ditto.
11872         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
11873         handle loops and quantified expressions over types that have an
11874         iterable aspect.  Called from Expand_Iterator_Loop.
11875         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
11876         with Iterable aspect.
11877         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
11878         subprograms specified in the Iterable aspect have the proper
11879         signature involving container and cursor.
11880         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
11881         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
11882         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
11883         New procedure to retrieve one of the primitives First, Last,
11884         or Has_Element, from the value of the iterable aspect of a
11885         formal container.
11886         (Is_Container_Element): Predicate to recognize expressions
11887         that denote an element of one of the predefined containers,
11888         for possible optimization.  This subprogram is not currently
11889         used, pending ARG discussions on the legality of the proposed
11890         optimization. Worth preserving for eventual use.
11891         (Is_Iterator): Recognize formal container types.
11892         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
11894 2014-02-19  Robert Dewar  <dewar@adacore.com>
11896         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
11897         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
11898         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
11899         declarations from list of actions.
11900         * output.ads, output.adb (Delete_Last_Char): New procedure.
11901         * sinfo.ads: Document handling of Mod and expression with actions
11902         in Modify_Tree_For_C mode.
11904 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11906         * par-ch9.adb (P_Task): Add a null statement to produce a
11907         well-formed task body when due to a previous syntax error the
11908         statement list is empty.
11910 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11912         * sem_prag.adb (Check_Dependency_Clause): Account
11913         for the case where a state with a non-null refinement matches a
11914         null output list. Comment reformatting.
11915         (Inputs_Match): Copy a solitary input to avoid an assertion failure
11916         when trying to match the same input in multiple clauses.
11918 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
11920         * sem_attr.adb: Minor typo fix.
11922 2014-02-18  Robert Dewar  <dewar@adacore.com>
11924         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
11925         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
11926         (Create_Standard): Create new unsigned types.
11927         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
11928         mode (Expand_N_Reference): Removed, problematic and not needed
11929         for now.
11930         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
11931         not needed for now.
11932         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
11933         * expander.adb: Remove call to Expand_N_Reference (problematic,
11934         and not needed now).
11935         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
11936         * stand.adb: Read and write unsigned type entities.
11937         * stand.ads: Add new unsigned types.
11939 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
11941         * sem_ch4.adb (Analyze_Call): Do not mark a function call
11942         as being inside an assertion expression as the flag is now removed.
11943         (Check_Ghost_Subprogram_Call): Do not query the
11944         In_Assertion_Expression flag as it is now removed, instead use
11945         a predicate function.
11946         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
11947         In_Assertion_Expression flag as it is now removed, instead use
11948         a predicate function.
11949         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
11950         * sem_util.adb Add with and use clause for Sem_Prag.
11951         (In_Assertion_Expression_Pragma): New routine.
11952         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
11953         * sinfo.adb (In_Assertion_Expression): Removed.
11954         (Set_In_Assertion_Expression): Removed.
11955         * sinfo.ads Remove flag In_Assertion_Expression along with its
11956         use in nodes.
11957         (In_Assertion_Expression): Removed along with
11958         pragma Inline.  (Set_In_Assertion_Expression): Removed along
11959         with pragma Inline.
11961 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
11963         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
11964         used together with '-r', '-rf' or '-rnb' options.
11966 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
11968         * sem_attr.adb (Analyze_Attribute): Comment
11969         and code reformatting. Use separate routines to check the
11970         legality of attribute 'Old in certain pragmas. Verify
11971         the use of 'Old, 'Result and locally declared entities
11972         within the prefix of 'Old.
11973         (Check_References_In_Prefix): New routine.
11974         (Check_Use_In_Contract_Cases): New routine.
11975         (Check_Use_In_Test_Case): New routine.
11977 2014-02-18  Vincent Celier  <celier@adacore.com>
11979         * sem_aux.adb (Is_By_Reference_Type): For each components of
11980         a record type, check also if the component is volatile as it
11981         may have an aspect that makes it volatile. If it is, then the
11982         record type is a by reference type.
11984 2014-02-18  Robert Dewar  <dewar@adacore.com>
11986         * exp_attr.adb: Minor reformatting.
11987         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
11988         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
11989         as another case where we don't generate N_Reference nodes for
11990         primitive types.
11991         * expander.adb (Expand): Add call to Expand_N_Reference.
11993 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11995         * sem_prag.adb (Analyze_Refined_Pragma): Remove
11996         local variable Pack_Spec. Refinement pragmas may now apply to
11997         bodies of both visible and private subprograms.
11999 2014-02-06  Robert Dewar  <dewar@adacore.com>
12001         * exp_attr.adb (Expand_Loop_Entry_Attribute):
12002         Minor change (Attr => N) (Expand_Pred_Succ): New name
12003         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
12004         Max): Expand into if expression if Modify_Tree_For_C mode.
12005         (Expand_N_Attribute_Reference, case Min): ditto
12006         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
12007         Max attributes.
12009 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12011         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
12012         predicate check if this is an internal declaration with
12013         No_Initialization set, as for an expanded aggregate component.
12015 2014-02-06  Doug Rupp  <rupp@adacore.com>
12017         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
12018         conditions with severity of "SUCCESS" or "INFORMATIONAL".
12020 2014-02-06  Yannick Moy  <moy@adacore.com>
12022         * sem_prag.adb (Analyze_Pragma): Analyze pragma
12023         Debug rewritten node before rewriting it as a null statement in
12024         GNATprove mode.
12026 2014-02-06  Robert Dewar  <dewar@adacore.com>
12028         * sem_attr.adb (Min_Max): New procedure.
12029         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
12030         procedure.
12032 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12034         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
12035         gnatmetric/gnatpp.
12037 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12039         * sem_prag.adb (Analyze_Abstract_State): Update
12040         all calls to Create_Abstract_State to pass the proper state
12041         "declaration".
12042         (Create_Abstract_State): Add new formal parameter
12043         State_Decl along with comment on usage. Establish a link between
12044         the abstract state entity and the state declaration.
12046 2014-02-06  Robert Dewar  <dewar@adacore.com>
12048         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
12049         comparison of unordered enumeration type.
12050         (Analyze_Attribute, case Max): Check for improper comparison of
12051         unordered enumeration type.
12052         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
12053         sem_util.adb.
12054         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
12055         Moved here from Sem_Res.
12057 2014-02-06  Robert Dewar  <dewar@adacore.com>
12059         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
12060         reformatting.
12062 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12064         * sem_ch6.adb (Process_Formals): Error message reformatting.
12066 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12068         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
12069         variable Spec. Do not inherit the null indicator from the
12070         subprogram body when generating the spec.
12072 2014-02-06  Robert Dewar  <dewar@adacore.com>
12074         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
12075         mixed case.
12077 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12079         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
12080         when the function has a foreign convention, but not if only the
12081         limited return type has such a convention.
12083 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12085         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
12086         variable Spec. Comment reformatting. Use Copy_Separate_Tree
12087         rather than New_Copy_Tree when building the corresponding
12088         subprogram declaration.
12090 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12092         * sem_prag.adb (Analyze_Global_Item): Remove
12093         the mode-related checks on abstract states with enabled external
12094         properties.
12095         (Property_Error): Removed.
12097 2014-02-06  Javier Miranda  <miranda@adacore.com>
12099         * lib-xref.adb (Generate_Reference): When
12100         generating the reference to the first private entity take care
12101         of handling swapped entities.
12103 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12105         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
12106         gnatmetric.
12108 2014-02-06  Robert Dewar  <dewar@adacore.com>
12110         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
12111         than the word size when operating in Modify_Tree_For_C mode.
12112         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
12114 2014-02-06  Robert Dewar  <dewar@adacore.com>
12116         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
12117         compare is case insensitive.
12118         * gnat_rm.texi: Document that string compare for Warnings Off
12119         is now case insensitive.
12121 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12123         * gnat_rm.texi: Small wording tweak.
12125 2014-02-06  Pascal Obry  <obry@adacore.com>
12127         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
12128         and Included_Artifact_Patterns attribute definitions.
12130 2014-02-06  Yannick Moy  <moy@adacore.com>
12132         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
12133         SPARK_Mode pragma component for all subprograms, including stubs.
12135 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12137         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
12138         the configuration options of the enclosing context in a
12139         stack-like fasion.
12140         (Analyze_Subprogram_Body_Stub): Maintain the
12141         configuration options of the enclosing context in a stack-like
12142         fashion.
12144 2014-02-06  Robert Dewar  <dewar@adacore.com>
12146         * debug.adb: -gnatd.u sets Modify_Tree_For C
12147         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
12148         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
12149         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
12150         * exp_intr.adb (Expand_Shift): Call expander so we do
12151         Modify_Tree_For_C expansions.
12152         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
12153         if -gnatd.u set.
12155 2014-02-06  Fedor Rybin  <frybin@adacore.com>
12157         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
12158         after the phase 1 of the processing of each aggregated project
12159         to get access to project trees of aggregated projects.
12160         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
12161         If specified, On_New_Tree_Loaded is called after each aggregated
12162         project has been processed succesfully.
12163         (Process): new parameter On_New_Tree_Loaded.
12164         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
12165         callback added after processing of each aggregated project.
12166         (Recursive_Process): new parameter On_New_Tree_Loaded.
12167         (Process): new parameter On_New_Tree_Loaded.
12168         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
12169         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
12170         On_New_Tree_Loaded.
12171         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
12172         On_New_Tree_Loaded.
12174 2014-02-06  Bob Duff  <duff@adacore.com>
12176         * gnat_ugn.texi: Implement --insert-blank-lines and
12177         --preserve-blank-lines switches.
12179 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12181         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
12182         gnatelim.
12184 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12186         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
12187         of the pragma on individual objects.
12189 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12191         * einfo.adb Node29 is now used as BIP_Initialization_Call.
12192         (BIP_Initialization_Call): New routine.
12193         (Set_BIP_Initialization_Call): New routine.
12194         (Write_Field29_Name): Add an entry for constants and variables.
12195         * einfo.ads Add new attribute BIP_Initialization_Call and update
12196         its usage in nodes.
12197         (BIP_Initialization_Call): New routine along with pragma Inline.
12198         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
12199         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
12200         Add local declaration Res_Decl. Capture the build-in-place
12201         initialization call when the related object declaration has
12202         created a transient block.
12203         * exp_ch7.adb (Process_Transient_Objects): Add local variable
12204         Fin_Insrt. Recognize a scenario where an object declaration acts
12205         as a transient context and is initialized by a build-in-place
12206         function call.
12208 2014-02-06  Pascal Obry  <obry@adacore.com>
12210         * prj-util.adb (For_Interface_Sources): Fix handling of required
12211         bodies for aggregate libs.
12213 2014-02-06  Robert Dewar  <dewar@adacore.com>
12215         * nlists.ads: Minor comment clarifications.
12217 2014-02-06  Robert Dewar  <dewar@adacore.com>
12219         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
12220         if gnatd.V set.
12221         * opt.ads (Modify_Tree_For_C): New flag.
12222         * output.ads, output.adb (Last_Char): New function.
12224 2014-02-06  Pascal Obry  <obry@adacore.com>
12226         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
12227         share/gpr for cross-builds.
12229 2014-02-06  Robert Dewar  <dewar@adacore.com>
12231         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
12232         Minor reformatting and code clean ups.
12234 2014-02-06  Pascal Obry  <obry@adacore.com>
12236         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
12237         * prj.ads: Minor typo fix in comment.
12239 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12241         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
12242         local variable Expr. Flag clauses with extra parenthesis as this
12243         is not allowed by the syntax of the pragma. Code reformatting.
12245 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12247         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
12248         variables. Rename variabme Tnn to Temp. Do not create a temporary
12249         if assertions are disabled. Find enclosing routine _Postconditions
12250         and insert the temporary that captures the value of the prefix
12251         before the routine.
12252         * exp_ch6.adb (Build_Postconditions_Procedure):
12253         Insert the generated _Postconditions routine
12254         before the first source declaration of the related
12255         subprogram.
12256         (Insert_After_Last_Declaration): Removed.
12257         (Insert_Before_First_Source_Declaration): New routine.
12259 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12261         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
12262         Utility to determine whether current expansion is for the body
12263         of a predefined primitive operation.
12264         (Make_Predicate_Check): Use Within_Internal_Subpgram
12265         * checks.adb (Apply_Predicate_Check): Use
12266         Within_Internal_Subprogram
12267         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
12269 2014-02-06  Pascal Obry  <obry@adacore.com>
12271         * prj.ads, prj-util.adb: Minor reformatting.
12273 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12275         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
12276         Take into account the Split_PPC flag to ensure that conjuncts
12277         in a composite postcondition aspect are tested in source order.
12279 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12281         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
12282         use of SPARK_Mode.
12283         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
12284         illegal use of SPARK_Mode.
12285         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
12286         * sem_prag.adb (Analyze_Pragma): Code reformatting.
12287         * sem_util.adb Add with and use clause for Aspects.
12288         (Check_SPARK_Mode_In_Generic): New routine.
12289         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
12291 2014-02-06  Thomas Quinot  <quinot@adacore.com>
12293         * a-calend.adb (Formatting_Operations.Split): Ensure that
12294         Time_Error is raised for invalid time values.
12296 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
12298         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
12299         in GNATprove_Mode.
12301 2014-02-06  Robert Dewar  <dewar@adacore.com>
12303         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
12304         * exp_ch3.adb (Build_Dcheck_Function): Set
12305         Is_Discriminant_Check_Function.
12307 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12309         * exp_ch7.adb (Is_Subprogram_Call): Inspect
12310         the original tree in certain cases where a construct has been
12311         factored out and replaced by a reference to a temporary.
12313 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12315         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
12316         parameters when propagating predicate function to full view.
12317         (Find_Type_Of_Object): Freeze base type of object type to catch
12318         premature use of discriminated private type without a full view.
12320 2014-02-06  Robert Dewar  <dewar@adacore.com>
12322         * sprint.adb: Minor reformatting.
12324 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12326         * exp_ch4.adb (Process_Transient_Object): Add local variable
12327         Temp_Ins. When the transient object is initialized by an
12328         aggregate, the hook must capture the object after the last
12329         component assignment takes place.
12330         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
12331         routine Is_Subprogram_Call.
12332         (Is_Subprogram_Call): Inspect an
12333         aggregate that has been heavily expanded for subprogram calls.
12334         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
12335         and Temp_Ins.  Remove the nested declare block and adjust the
12336         indentation. When the transient object is initialized by an
12337         aggregate, the hook must capture the object after the last
12338         component assignment takes place.
12340 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12342         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
12343         external states with enabled properties that do not match the
12344         global mode.
12345         (Property_Error): New routine.
12346         * sem_res.adb (Property_Error): New routine.
12347         (Resolve_Actuals): Detect illegal uses of external variables with
12348         enabled properties in procedure calls that do not match the mode of
12349         the corresponding formal parameter.
12351 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12353         * sem_util.adb (Has_Enabled_Property): Rename
12354         formal parameter Prop_Nam to Property. Update the comment on usage
12355         and all occurrences in the body. Add local variable Prop_Nam. When
12356         inspecting a property with an expression, the property name
12357         appears as the first choice of the component association.
12359 2014-02-04  Robert Dewar  <dewar@adacore.com>
12361         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
12363 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12365         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
12366         for consistency with other messages.
12368 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12370         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
12371         iterator, indicate that the element is a constant if the container
12372         type does not have a variable indexing aspect.
12373         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
12374         marked as constant, do not reset its Ekind, to ensure that
12375         container elements in an element loop are not modified if the
12376         container (e.g. a hashed set) only has a constant indexing aspect.
12378 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
12380         * g-souinf.ads: Subprograms in this unit are actually not pure.
12381         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
12382         * einfo.ads (Is_Pure): Update doc to match implementation.
12384 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12386         * exp_ch13.adb: Minor spelling fix.
12388 2014-02-04  Robert Dewar  <dewar@adacore.com>
12390         * opt.ads: Minor comment update.
12392 2014-02-04  Robert Dewar  <dewar@adacore.com>
12394         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
12395         instead of Replace.
12397 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12399         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
12400         on null expressions if component type is non-null, when the
12401         corresponding association covers an empty range of index values.
12403 2014-02-04  Robert Dewar  <dewar@adacore.com>
12405         * sinfo.ads: Further comments on N_Expression_With_Actions node.
12407 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
12409         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
12410         variables Out_Items and Ref_Global. Remove local constant
12411         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
12412         and D8. Remove the useless collection of global items as this
12413         was a leftover from an earlier version of the routine. Move
12414         several routines out to avoid deep nesting and indentation.
12415         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
12416         parameter Do_Checks to Post_Errors. Update the comment on usage.
12417         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
12418         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
12419         to Post_Errors. Update the comment on usage. Account for the
12420         case where a self referential state may have a null input_list.
12421         (Is_Self_Referential): New routine.
12423 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12425         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
12426         entity renames an expression, as in the case of an object of
12427         an unconstrained type initialized by a function call, defer the
12428         rewriting of the expression to the expander.
12429         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
12430         'Alignment): If the entity renames an expression, introduce
12431         temporary to capture value, and rewrite original declaration to
12432         use temporary.
12434 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12436         * g-comlin.adb: Minor typo fix.
12438 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12440         * freeze.adb (Freeze_All): Types derived from a formal
12441         access_to_classwide type do not have a finalization master.
12443 2014-02-04  Robert Dewar  <dewar@adacore.com>
12445         * sprint.adb: Minor reformatting.
12447 2014-02-04  Robert Dewar  <dewar@adacore.com>
12449         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
12450         cases where Actions is a null list.
12451         * sinfo.ads (N_Expression_With_Actions): Actions can be
12452         temporarily empty during semantic analysis, but must be non-empty
12453         in the final expanded tree.
12455 2014-01-31  Robert Dewar  <dewar@adacore.com>
12457         * exp_ch9.adb: Minor reformatting.
12459 2014-01-31  Emmanuel Briot  <briot@adacore.com>
12461         * g-comlin.adb (Set_Command_Line): Take the switches
12462         configuration from the Command_Line_Config.
12464 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
12466         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
12467         refinement clause.
12469 2014-01-31  Vincent Celier  <celier@adacore.com>
12471         * projects.texi: Add more documentation about others used as an
12472         index in indexed attributes.
12474 2014-01-31  Robert Dewar  <dewar@adacore.com>
12476         * gnat_ugn.texi: Minor update.
12477         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
12478         * exp_util.adb: Minor reformatting.
12480 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12482         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
12483         depends on data that is not private to the protected object,
12484         and potentially modifiable in unsynchronized fashion.
12486 2014-01-31  Yannick Moy  <moy@adacore.com>
12488         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
12489         GNATprove_Mode.
12491 2014-01-31  Robert Dewar  <dewar@adacore.com>
12493         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
12494         for Unknown_Package.
12495         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
12497 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
12499         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
12500         the logic that generates a runtime check to determine the
12501         controlled status of the object about to be allocated or
12502         deallocated. Class-wide types now always use a runtime check
12503         even if they appear as generic actuals.
12504         (Find_Object): Detect
12505         a special case that involves interface class-wide types because
12506         the object appears as a complex expression.
12508 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12510         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
12511         subprogram with an incomplete untagged formals on the list of
12512         private dependents, to verify that the type is properly completed
12513         in the private part.
12514         * sem_attr.adb: Code clean up.
12516 2014-01-31  Robert Dewar  <dewar@adacore.com>
12518         * exp_ch6.adb: Minor reformatting.
12520 2014-01-31  Vincent Celier  <celier@adacore.com>
12522         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
12523         when Pkg is unknown.
12525 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
12527         * sem_res.adb (Resolve_Entity_Name): Comment
12528         reformatting. Allow volatile objects in various generated checks.
12530 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12532         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
12533         component association, set the etype of the identifier, for
12534         SPARK use.
12536 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12538         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
12539         declared in a package, not checks can apply to the subprogram.
12541 2014-01-31  Robert Dewar  <dewar@adacore.com>
12543         * erroutc.adb (Validate_Specific_Warnings): Warnings are
12544         controlled -gnatw.W.
12545         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
12546         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
12548 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
12550         * exp_disp.adb: Update comments.
12552 2014-01-31  Yannick Moy  <moy@adacore.com>
12554         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
12555         Save_Global_References): Guard access to expression in aspect.
12557 2014-01-31  Yannick Moy  <moy@adacore.com>
12559         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
12560         Issue an error when the pragma is applied to a generic unit,
12561         a generic declaration, or inside a generic.
12563 2014-01-31  Yannick Moy  <moy@adacore.com>
12565         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
12566         entity.
12568 2014-01-31  Robert Dewar  <dewar@adacore.com>
12570         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
12571         reformatting.
12573 2014-01-31  Tristan Gingold  <gingold@adacore.com>
12575         * exp_disp.adb: Add a historic note.
12577 2014-01-31  Robert Dewar  <dewar@adacore.com>
12579         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
12580         Process_Deferred_References.
12582 2014-01-31  Yannick Moy  <moy@adacore.com>
12584         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
12585         ineffective pragma Warnings(Off) in GNATprove_Mode.
12587 2014-01-31  Bob Duff  <duff@adacore.com>
12589         * s-taskin.ads: Minor comment fix.
12590         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
12591         just direct dependents. If this is actually an abort, each task
12592         will take care of aborting its dependents, so all dependents will
12593         get aborted, as before. However, when this is called the second
12594         time from Vulnerable_Complete_Master "for convenience" (i.e. to
12595         kill off tasks waiting at terminate alternatives), aborting
12596         indirect dependents is wrong, because it causes some unrelated
12597         tasks to get aborted.
12599 2014-01-31  Robert Dewar  <dewar@adacore.com>
12601         * sem_ch4.adb: Minor reformatting.
12603 2014-01-31  Robert Dewar  <dewar@adacore.com>
12605         * exp_ch2.adb: New calling sequence for Is_LHS.
12606         * frontend.adb: Add call to Process_Deferred_References.
12607         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
12608         (Deferred_References): New table.
12609         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
12610         entries.
12611         (Find_Expanded_Name): Ditto.
12612         * sem_res.adb: New calling sequence for Is_LHS.
12613         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
12614         * sem_warn.adb: Call Process_Deferred_References before issuing
12615         warnings.
12617 2014-01-31  Tristan Gingold  <gingold@adacore.com>
12619         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
12620         use of System_Tasking_Protected_Objects_Single_Entry.
12621         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
12622         of Protected_Single_Entry_Call.
12623         (Expand_N_Timed_Entry_Call): Remove single_entry case.
12624         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
12625         single_entry case.
12626         (Make_Disp_Timed_Select_Body): Likewise.
12627         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
12628         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
12629         Self_Id parameter.
12630         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
12631         (Wait_For_Completion_With_Timeout): Remove.
12632         (Protected_Single_Entry_Call): Remove Mode parameter
12633         (always Simple_Call).
12634         (Service_Entry): Remove Self_Id constant (not used anymore).
12635         (Timed_Protected_Single_Entry_Call): Remove.
12636         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
12637         (Protected_Single_Entry_Call): Remove Mode parameter.
12639 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12641         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
12642         * einfo.ads (Get_Pragma): Update the comment on special pragmas
12643         handled by this routine.
12644         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
12645         to the contract of the related subprogram body.
12646         * sem_util.adb (Add_Contract_Item): Handle the insertion of
12647         pragma Refined_Post into the contract of a subprogram body.
12648         * sinfo.ads Update the documentation of node N_Contract.
12649         * sem_res.adb (Resolve_Entity_Name): Add a guard
12650         to detect abstract states and variables only when checking the
12651         SPARK 2014 rules concerning volatile object placement.
12653 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12655         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
12656         null is compatible with any access type.
12658 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12660         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
12661         placement is not in a package.
12663 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12665         * sem_util.adb (Has_Enabled_Property): Compare the character field of
12666         the sole property.
12668 2014-01-29  Robert Dewar  <dewar@adacore.com>
12670         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
12671         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
12672         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
12674 2014-01-29  Robert Dewar  <dewar@adacore.com>
12676         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
12677         * sem_warn.adb (Check_References): Suppress warnings if inside
12678         Initial_Condition pragma.
12680 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12682         * sem_prag.adb (Check_Missing_Part_Of): List all values of
12683         State_Space_Kind for readability reasons. Do not emit an error on
12684         a private item when the enclosing package lacks aspect/pragma
12685         Abstract_State. Do not emit an error on a private package
12686         instantiation when the corresponding generic template lacks
12687         visible state.
12688         (Has_Visible_State): New routine.
12689         * sem_util.adb (Find_Placement_In_State_Space): The visible
12690         declarations of any kind of child units in general act as proper
12691         placement location.
12693 2014-01-29  Robert Dewar  <dewar@adacore.com>
12695         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
12696         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
12697         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
12698         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
12699         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
12700         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
12701         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
12702         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
12703         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
12704         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
12705         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
12706         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
12707         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
12708         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
12709         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
12710         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
12711         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
12712         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
12713         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
12714         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
12715         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
12716         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
12717         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
12718         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
12719         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
12720         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
12721         s-regpat.adb, s-secsta.adb, s-stalib.ads,
12722         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
12723         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
12724         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
12725         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
12726         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
12728 2014-01-29  Robert Dewar  <dewar@adacore.com>
12730         * expander.adb: Minor reformatting.
12732 2014-01-29  Javier Miranda  <miranda@adacore.com>
12734         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
12735         previous patch.
12737 2014-01-29  Javier Miranda  <miranda@adacore.com>
12739         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
12740         that checks if an interface types defines the predefined "="
12741         function because the compiler was erroneously not generating the
12742         predefined "=" primitive as soon as the name of some interface
12743         primitive is "=" (formals were not checked).
12745 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12747         * expander.adb (Expander): In GNATprove mode, do not process
12748         transient scopes: they are in general not created in this mode,
12749         and an attempt to examine them will lead to constraint errors when
12750         processing configuration pragmas that have analyzable expressions.
12752 2014-01-29  Vincent Celier  <celier@adacore.com>
12754         * clean.adb (Gnatclean): Fail if main project is an aggregate
12755         project or if there is an aggregate library project in the
12756         project tree.
12757         * gnatcmd.adb: Fail if the main project is an aggregate project
12758         or if there is an aggegate library project in the project tree.
12759         * make.adb (Initialize): : Fail if main project is an aggregate
12760         project or if there is an aggregate library project in the
12761         project tree.
12762         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
12763         * prj-makr.adb (Initialize): Fail if the main project is an
12764         aggregate project or an aggregate library project.
12766 2014-01-29  Vincent Celier  <celier@adacore.com>
12768         * prj-part.adb (Check_Import_Aggregate): New procedure
12769         to check if an imported project is an aggregate project.
12770         (Parse_Single_Project): Call Check_Import_Aggregate
12771         * projects.texi: Document that aggregate projects cannot be
12772         extended or imported.
12774 2014-01-29  Robert Dewar  <dewar@adacore.com>
12776         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
12777         reformatting and code clean up.
12778         * gnat_ugn.texi: Add documentation section on Atomic Variables
12779         and Optimization.
12781 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12783         * einfo.adb Flag264 is now unused.
12784         (Has_Body_References): Removed.
12785         (Set_Has_Body_References): Removed.
12786         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
12787         * einfo.ads Update the comment on usage of attribute
12788         Body_References. Remove attribute Has_Body_References and its
12789         usage in nodes.
12790         (Has_Body_References): Removed along with pragma Inline.
12791         (Set_Has_Body_References): Removed along with pragma Inline.
12792         * sem_prag.adb (Analyze_Global_Item): Move the call to
12793         Record_Possible_Body_Reference in the state related checks
12794         section. Add a comment intended function.
12795         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
12796         in the state related checks section. Add a comment intended function.
12797         (Analyze_Refinement_Clause): Cleanup the illegal body reference
12798         reporting. Add a comment on timing of error reporting.
12799         (Record_Possible_Body_Reference): Reimplement the routine.
12801 2014-01-29  Vincent Celier  <celier@adacore.com>
12803         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
12804         unit-based languages.
12805         (Mains.Complete_Mains.Do_Complete): Use the source file project
12806         tree when calling Find_File_Add_Extension. Use the correct
12807         project name when reporting an error.
12809 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12811         * aspects.adb Add an entry for aspect Part_Of in table
12812         Canonical_Aspect.
12813         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
12814         Aspect_Argument, Aspect_Names and Aspect_Delay.
12815         * atree.h Define Elist9.
12816         * atree.adb (Elist9): New routine.
12817         (Set_Elist9): New routine.
12818         * atree.ads (Elist9): New routine.
12819         (Set_Elist9): New routine.
12820         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
12821         the list of node usage.  Remove Refined_State from the list of
12822         node usage.
12823         (Encapsulating_State): New routine.
12824         (Get_Pragma):
12825         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
12826         (Refined_State): Removed.
12827         (Set_Encapsulating_State): New routine.
12828         (Set_Part_Of_Constituents): New routine.
12829         (Set_Refined_State): Removed.
12830         (Write_Field9_Name): Add an entry
12831         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
12832         Encapsulating_State. Remove the entry for Refined_State.
12833         * einfo.ads Add new attributes Encapsulating_State
12834         and Part_Of_Constituents alond with their usage in
12835         entities. Remove attribute Refined_State along with its
12836         usage in entities.
12837         (Encapsulating_State): New routine and
12838         pragma Inline.  (Get_Pragma): Update the comment on usage.
12839         (Part_Of_Constituents): New routine and pragma Inline.
12840         (Refined_State): Removed along with pragma Inline.
12841         (Set_Encapsulating_State): New routine and pragma Inline.
12842         (Set_Part_Of_Constituents): New routine and pragma Inline.
12843         (Set_Refined_State): Removed along with pragma Inline.
12844         * par-prag.adb Pragma Part_Of does not need any special processing
12845         by the parser.
12846         * sem_ch3.adb (Analyze_Declarations): Remove local variables
12847         Body_Id and Prag. Call separate routines to analyze the
12848         contract of a package [body].
12849         (Analyze_Object_Contract):
12850         Update the comment on usage. Remove local variables
12851         Items and Nam. Use Get_Pragma rather than traversing the
12852         classification list.  Verify whether the lack of indicator
12853         Part_Of agrees with the placement of the variable in state space.
12854         (Analyze_Object_Declaration): Initialize the encapsulating state
12855         of a variable.  (Requires_State_Refinement): Moved to sem_util.
12856         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
12857         (Analyze_Package_Contract): New routine.
12858         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
12859         (Analyze_Package_Contract): New routine.
12860         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
12861         state and Part_Of constituents.
12862         * sem_ch13.adb (Analyze_Aspect_Specifications):
12863         Add processing for aspect Part_Of. Update all
12864         calls to Decorate_Delayed_Aspect_And_Pragma.
12865         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
12866         not need any special processing at freeze time.
12867         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
12868         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
12869         update the associated comment.
12870         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
12871         (Analyze_Abstract_State): Add new global variable State_Id. Remove
12872         local constants Errors and Loc. Remove local variables Is_Null
12873         and State_Nam. Create the entity of the abstract state on the
12874         spot, before all remaining checks are performed. Verify that a
12875         missing Part_Of option agrees with the placement of the abstract
12876         state within the state space.
12877         (Analyze_Depends_In_Decl_Part):
12878         Add new global variables Constits_Seen and States_Seen. Check
12879         that a state and a corresponding constituent do not appear
12880         in pragma [Refined_]Depends.
12881         (Analyze_Global_In_Decl_Part):
12882         Add new global variables Constits_Seen and States_Seen. Check
12883         that a state and a corresponding constituent do not appear
12884         in pragma [Refined_]Global.
12885         (Analyze_Global_Item):
12886         Remove the now obsolete code that deals with Part_Of.
12887         Add the entity of the global item to the list of processed
12888         items.  (Analyze_Initializes_In_Decl_Part): Add new global
12889         variables Constits_Seen and States_Seen. Check that a state
12890         and a corresponding constituent do not appear in pragma
12891         Initializes.
12892         (Analyze_Initialization_Item): Add the entity
12893         of the initialization item to the list of processed items.
12894         (Analyze_Input_Item): Add the entity of the initialization
12895         item to the list of processed items.
12896         (Analyze_Input_Output):
12897         Remove the now obsolete code that deals with Part_Of.  Add the
12898         entity of the input/output to the list of processed items.
12899         (Analyze_Part_Of): New routine.
12900         (Analyze_Part_Of_Option): Remove
12901         local constant Par_State. Add local constant Encaps and local
12902         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
12903         the option. Turn the related state into a Part_Of constituent
12904         if the option is legal.
12905         (Analyze_Pragma): Add processing
12906         for pragma Part_Of.
12907         (Analyze_Refined_State_In_Decl_Part):
12908         Remove global constants Pack_Body and Spec_Id. Remove
12909         global variables Abstr_States and Hidden_States. Add new
12910         global variables Available_States, Body_Id, Body_States and
12911         Spec_Id. Add new local constant Body_Decl. Reimplement the
12912         logic that extracts the states available for refinement from
12913         the related package and the body hidden states of the said
12914         package.
12915         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
12916         (Check_Applicable_Policy): Alphabetize body.
12917         (Check_Dependency_Clause): Replace Refined_State
12918         with Encapsulating_State.
12919         (Check_Matching_Constituent):
12920         Reimplement the logic that determines whether an item is a valid
12921         / invalid constituent of the current refined state. Return when
12922         a construct does not denote a valid abstract state. Extract the
12923         list of Part_Of constituents for further analysis. Check that all
12924         Part_Of constituents of a state have been used in its refinement.
12925         (Check_Matching_State): Update the comment on usage. Operate
12926         on the list of available states.
12927         (Check_Missing_Part_Of): New routine.
12928         (Check_Refined_Global_Item): Replace Refined_State
12929         with Encapsulating_State.
12930         (Check_State_And_Constituent_Use): New routine.
12931         (Create_Abstract_State): New routine.
12932         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
12933         (Is_Part_Of): Removed.
12934         (Collect_Body_States): New routine.
12935         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
12936         (Collect_Hidden_States): Removed.
12937         (Report_Unrefined_States): Change the profile of the procedure along
12938         with the comment on usage.
12939         (Report_Unused_Constituents): New routine.
12940         (Report_Unused_Hidden_States): Removed.
12941         (Report_Unused_States): New routine.
12942         * sem_prag.ads (Check_Missing_Part_Of): New routine.
12943         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
12944         appear in the classification pragmas of a package instantiation
12945         or a variable.
12946         (Find_Placement_In_State_Space): New routine.
12947         (Is_Child): Removed.
12948         (Is_Child_Or_Sibling): Remove formal
12949         parameter Private_Child. Remove the private child checks.
12950         (Requires_State_Refinement): Moved from sem_ch3.
12951         * sem_util.ads Add new type State_Space_Kind along with
12952         comment on its usage and values.
12953         (Add_Contract_Item): Update the comment on usage.
12954         (Find_Body_Discriminal): Alphabetize spec.
12955         (Find_Placement_In_State_Space): New routine.
12956         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
12957         and update the comment on usage.
12958         (Requires_State_Refinement): Moved from sem_ch3.
12959         * sinfo.ads: Update the documentation of N_Contract.
12960         * snames.ads-tmpl The predefined name for Part_Of is now used
12961         to denote a pragma. Add Pragma_Id for Part_Of.
12963 2014-01-29  Emmanuel Briot  <briot@adacore.com>
12965         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
12966         machine as needed.
12967         (Dump): New subprogram.
12969 2014-01-29  Tristan Gingold  <gingold@adacore.com>
12971         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
12972         Expand_Entry_Declaration to factorize code.
12974 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12976         * checks.adb: minor clarification.
12977         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
12978         search for primitive operations to the entities that immediately
12979         follow the type declaration.
12981 2014-01-29  Tristan Gingold  <gingold@adacore.com>
12983         * exp_ch9.adb (Build_Protected_Entry): Do not call
12984         Complete_Entry_Body anymore.
12985         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
12986         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
12988 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
12990         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
12991         string when the Name input bigger than allowed. Adapt the function
12992         specification.
12994 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12996         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
12997         if expression is within a case_expression of if_expression.
12999 2014-01-29  Robert Dewar  <dewar@adacore.com>
13001         * exp_ch9.adb, inline.ads: Minor reformatting.
13003 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13005         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
13007 2014-01-29  Yannick Moy  <moy@adacore.com>
13009         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
13010         SPARK_Mode_Pragma components to be able to analyze generic
13011         instance.
13012         * sem_ch12.adb (Analyze_Package_Instantiation,
13013         Inline_Instance_Body, Need_Subprogram_Instance_Body,
13014         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
13015         for future analysis of the instance.
13016         (Instantiate_Package_Body,
13017         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
13018         from instantiation to analyze the instance.
13020 2014-01-29  Robert Dewar  <dewar@adacore.com>
13022         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
13023         reorganization.
13025 2014-01-29  Yannick Moy  <moy@adacore.com>
13027         * gnat_rm.texi: Update description of SPARK_Mode pragma.
13029 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13031         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
13033 2014-01-29  Thomas Quinot  <quinot@adacore.com>
13035         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
13037 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13039         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
13040         resulting string is an internal entity. and thus requires no
13041         initialization. This is relevant when Initialize_ Scalars is
13042         enabled, because the resultant spurious initialization may lead to
13043         secondary stack anomalies that produce a mangled name for a task.
13045 2014-01-29  Yannick Moy  <moy@adacore.com>
13047         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
13048         not inherited from spec anymore. Check consistency
13049         rules after processing of declarations.
13050         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
13051         from spec anymore. Check consistency rules after processing of
13052         declarations.
13053         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
13054         packages.
13055         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
13056         consistency rules.
13058 2014-01-27  Robert Dewar  <dewar@adacore.com>
13060         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
13061         to unordered msg.
13062         (Resolve_Range): Add type name/location to unordered msg.
13064 2014-01-27  Claire Dross  <dross@adacore.com>
13066         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
13067         Capacity) is only called with Capacity >= Length (Source) and
13068         Capacity in Capacity_Range.
13069         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
13070         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
13071         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
13072         in the code is this is not the case.
13074 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13076         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
13077         selected component in an instance where the component of the
13078         actual is not visibile at instantiation.
13080 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13082         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
13083         has a dynamic predicate, generate freeze node for Actual_Subtype
13084         at once, because the declaration of the corresponding predicate
13085         function will make reference to it.
13087 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13089         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
13091 2014-01-27  Robert Dewar  <dewar@adacore.com>
13093         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
13094         for 2**X optimization.
13096 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13098         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
13099         explicitly whether value is in range of Character, because the
13100         library is typically compiled with range checks disabled, and
13101         we cannot rely on the implicit check on the argument of 'Val.
13103 2014-01-27  Vincent Celier  <celier@adacore.com>
13105         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
13106         not the Target to itself.
13108 2014-01-27  Robert Dewar  <dewar@adacore.com>
13110         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
13111         changes to avoid incorrect use of unordered enum types.
13113 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13115         * sem_ch4.adb: Minor reformatting.
13117 2014-01-27  Robert Dewar  <dewar@adacore.com>
13119         * scn.adb (Check_End_Of_Line): Removed.
13120         (Error_Long_Line): Removed.
13121         (Determine_License): Use versions of above routines from Scanner.
13122         * scng.adb (Check_End_Of_Line): Moved to spec.
13123         (Error_Long_Line): Removed, no longer used.
13124         * scng.ads (Check_End_Of_Line): Moved here from body.
13126 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13128         * exp_ch7.adb (Build_Cleanup_Statements): Call
13129         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
13130         for protected body.
13131         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
13132          Remove Service_Name variable.
13133         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
13134         factorize code from the above subprograms.
13135         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
13137 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
13139         * einfo.adb (Has_Option): Reimplemented.
13140         * sem_prag.adb (Analyze_Refinement_Clause): Add global
13141         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
13142         External_Constit_Seen and State. Add local variables Body_Ref,
13143         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
13144         avoid a cumbersome while pool. Verify the legality of an external
13145         state and relevant properties.
13146         (Check_External_Property): New routine.
13147         (Check_Matching_State): Remove parameter profile
13148         and update comment on usage.
13149         (Collect_Constituent): Store the
13150         relevant external property of a constituent.
13151         * sem_util.adb (Async_Readers_Enabled): Update the call to
13152         Has_Enabled_Property.
13153         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
13154         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
13155         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
13156         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
13157         Update comment on usage. Reimplement the logic to recognize the various
13158         formats of properties.
13160 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13162         * par-ch5.adb: Minor reformatting.
13164 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13166         * s-tposen.ads: Harmonize style and comments.
13168 2014-01-27  Vincent Celier  <celier@adacore.com>
13170         * projects.texi: Document that shared library projects, by
13171         default, cannot import projects that are not shared library
13172         projects.
13174 2014-01-27  Robert Dewar  <dewar@adacore.com>
13176         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
13177         of Rewrite.
13179 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13181         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
13182         any other exception is raised.
13183         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
13184         still necessary to perform a conversion in order to remove overlong
13185         encodings.
13187 2014-01-27  Robert Dewar  <dewar@adacore.com>
13189         * exp_smem.adb: Minor reformatting.
13191 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13193         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
13195 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13197         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
13198         nodes for operands to the original node for the call, to preserve
13199         Original_Node pointers within the resolved operands, given that
13200         they may have been rewritten as well. Previous approach copied
13201         the operands into a new tree and lost those pointers.
13203 2014-01-27  Claire Dross  <dross@adacore.com>
13206         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
13208 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13210         * sem_util.adb (Check_Internal_Protected_Use): A call through
13211         an anonymous access parameter of the current protected function
13212         is not a potential modification of the current object.
13214 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13216         * a-cobove.adb (Reserve_Capacity): Procedure raises
13217         Capacity_Error, not Constraint_Error, when request cannot be
13218         satisfied.
13220 2014-01-27  Vincent Celier  <celier@adacore.com>
13222         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
13223         not the Target to itself.
13225 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13227         * exp_ch4.adb (Expand_Concatenate): If the target of the
13228         concatenation is a library-level entity, always use the off-line
13229         version of concatenation, regardless of optimization level. This
13230         is space-efficient, and prevents linking problems when some
13231         units are compiled with different optimization levels.
13233 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13235         * sem_ch5.adb: Code clean up.
13237 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13239         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
13240         when an array or container iterator includes a subtype indication,
13241         which is only legal in an element iterator.
13243 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13245         * exp_ch7.adb: Minor reformatting.
13247 2014-01-27  Robert Dewar  <dewar@adacore.com>
13249         * opt.adb (SPARK_Mode): Default for library units is None rather
13250         than Off.
13251         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
13252         no longer ordered.
13253         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
13254         possibility.
13255         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
13257 2014-01-27  Robert Dewar  <dewar@adacore.com>
13259         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
13260         Suspicious_Labels table if we have identifier; followed by loop
13261         or block.
13262         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
13263         * par.adb (Suspicious_Labels): New table.
13265 2014-01-27  Robert Dewar  <dewar@adacore.com>
13267         * exp_aggr.adb (Check_Bounds): Reason is range check, not
13268         length check.
13270 2014-01-27  Yannick Moy  <moy@adacore.com>
13272         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
13273         reference.
13274         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
13275         function now.
13276         (Add_SPARK_Xrefs): Include references to constants.
13277         * spark_xrefs.ads Document new character 'c' for references to
13278         constants.
13280 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13282         * exp_smem.adb (Add_Write_After): For a function call, insert write as
13283         an after action in a transient scope.
13285 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13287         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
13288         to a shared variable as an OUT formal in a call to an init proc,
13289         the 'Read call must be emitted after, not before, the call.
13291 2014-01-27  Robert Dewar  <dewar@adacore.com>
13293         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
13295 2014-01-27  Robert Dewar  <dewar@adacore.com>
13297         * a-wichha.adb (Character_Set_Version): Change to output proper
13298         value.
13300 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
13302         * einfo.adb (Is_Input_Only_State): Removed.
13303         (Is_Non_Volatile_State): Removed.
13304         (Is_Output_State): Removed.
13305         * einfo.ads (Is_Input_Only_State): Remove attribute and
13306         subprogram. Update related entity.
13307         (Is_Non_Volatile_State):
13308         Remove attribute and subprogram. Update related entity.
13309         (Is_Output_State): Removed attribute and subprogram. Update
13310         related entity.
13311         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
13312         generated code.
13313         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
13314         an object, not just variables.
13315         (Analyze_Object_Contract): New routine.
13316         (Analyze_Variable_Contract): Removed.
13317         (Process_Discriminants): Detect an illegal use of volatile
13318         discriminant in SPARK mode.
13319         * sem_ch5.adb (Analyze_Iterator_Specification):
13320         Detect an illegal use of volatile loop variable.
13321         (Analyze_Loop_Parameter_Specification): Detect an illegal use
13322         of volatile loop variable.
13323         * sem_ch6.adb (Process_Formals): Update the volatile object
13324         detection. Detect an illegal formal of mode IN OUT or OUT in
13325         SPARK mode. Enhance the error messages with references.
13326         * sem_ch12.adb (Instantiate_Object): Update the volatile object
13327         detection. Enhance the error messages with references.
13328         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
13329         messages with references.
13330         (Analyze_Contract_Case): Enhance the error messages with references.
13331         (Analyze_External_Property): Call Check_Duplicate_Property to process
13332         an external property.
13333         (Analyze_External_Property_In_Decl_Part): New routine.
13334         (Analyze_External_State_In_Decl_Part): Removed.
13335         (Analyze_Global_Item): Detect an illegal
13336         use of a volatile constant. Detect an illegal use
13337         of a variable with enabled Effective_Reads. Enhance
13338         the error messages with references. Remove obsolete
13339         checks concerning Input_Only and Output_Only states.
13340         (Analyze_Initialization_Item): Enhance the error messages
13341         with references.
13342         (Analyze_Initializes_In_Decl_Part): Do not
13343         collect the states and variables when the initialization list
13344         is null.
13345         (Analyze_Input_Item): Enhance the error messages with references.
13346         (Analyze_Input_Output): Enhance the error messages with references.
13347         (Analyze_Pragma): Enhance the error messages with references.
13348         (Analyze_Refinement_Clause): Code reformatting.
13349         (Analyze_Refined_Depends_In_Decl_Part):
13350         Rename global variable Global to Reg_Global and update all
13351         occurrences. Add local variables D7 and D8. Update the error
13352         messages with references. Update the call to Collect_Global_Items.
13353         (Analyze_Refined_Global_In_Decl_Part): Add local variables
13354         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
13355         the call to Collect_Global_Items.  Account for a Proof_In state
13356         in null / useless refinement checks. Verify the coverage of
13357         Proof_In states.
13358         (Check_Dependency_Clause): Remove local variable
13359         Out_Constits. Remove the retrieval and removal of constituents
13360         for an Output_Only state. Remove the reporting of unused
13361         Output_Only state constituents.
13362         (Check_Duplicate_Mode): Enhance
13363         the error message with a reference.
13364         (Check_Duplicate_Property): New routine.
13365         (Check_Duplicate_Option): Enhance the error message with a reference.
13366         (Check_External_Properties): Enhance the error message with a reference.
13367         (Check_Function_Return): Enhance the error message with a reference.
13368         (Check_In_Out_States): Update
13369         comment on usage. Add a specialized error message for Proof_In
13370         constituents. Enhance the error message with a reference.
13371         (Check_Input_States): Update comment on usage. Account for
13372         possible Proof_In constituents. Enhance the error message
13373         with a areference.
13374         (Check_Matching_Constituent): Enhance the error message with a
13375         reference.
13376         (Check_Matching_State): Enchance the error message with a reference.
13377         (Check_Mode): Add local variable From_Global. Update the call to
13378         Find_Mode.  Emit more precise error messages concerning extra items
13379         (Check_Mode_Restriction_In_Enclosing_Context): Consider
13380         pragma Refined_Global.  Enhance the error message with a
13381         reference.
13382         (Check_Mode_Restriction_In_Function): Enhance the error message with
13383         a reference.
13384         (Check_Output_States): Update comment on usage. Add local variable
13385         Posted.  Account for possible Proof_In constituents. Produce a detailed
13386         list of missing constituents.
13387         (Check_Proof_In_States): New routine.
13388         (Check_Refined_Global_Item): Handle Proof_In
13389         constituents. Enchance the error message with a reference.
13390         (Collect_Global_Items): Add formal parameters Proof_In_Items
13391         and Has_Proof_In_State. Update the comment on usage. Account
13392         for Proof_In items.
13393         (Create_Or_Modify_Clause): Enchance
13394         the error message with a reference.
13395         (Find_Mode): Add
13396         formal parameter From_Global. Update the comment on usage.
13397         Detect when the mode is governed by pragma [Refined_]Global.
13398         (Output_Constituents): Removed.
13399         (Report_Extra_Constituents):
13400         Report extra Proof_In constituents.
13401         (Report_Unused_Constituents): Removed.
13402         (Usage_Error): Code reformatting. Enhance the error
13403         messages with reference.
13404         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
13405         (Analyze_External_State_In_Decl_Part): Removed.
13406         * sem_res.adb (Resolve_Actuals): Update the volatile object
13407         detection. Enhance the error message with a reference.
13408         (Resolve_Entity_Name): Update the volatile object
13409         detection. Enhance the error message with a reference.
13410         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
13411         (Is_SPARK_Volatile_Object): New routine.
13412         (Has_Volatile_Component): New routine.
13413         * sem_util.ads (Is_Delegate): Alphabetized.
13414         (Is_SPARK_Volatile_Object): New routine.
13415         (Has_Volatile_Component): New routine.
13416         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
13418 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13420         * sem_attr.adb: Resolve fully prefix of 'Update.
13422 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
13424         * gnat_rm.texi: Minor clarifications.
13426 2014-01-27  Robert Dewar  <dewar@adacore.com>
13428         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
13429         about call that is generated as part of an Initial_Condition
13430         check.
13431         * sem_prag.adb: Minor spelling correction.
13433 2014-01-27  Robert Dewar  <dewar@adacore.com>
13435         * sem_prag.adb (Set_Convention_From_Pragma): Check that
13436         convention Ghost can only apply to functions.
13437         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
13439 2014-01-27  Robert Dewar  <dewar@adacore.com>
13441         * gnat_ugn.texi: Add Short_Enums to documentation of
13442         -gnatet/-gnateT.
13444 2014-01-27  Robert Dewar  <dewar@adacore.com>
13446         * sem_prag.adb (Analyze_Input_Item): Correct check for input
13447         item in same package.
13448         * sem_util.ads, sem_util.adb (Within_Scope): New function.
13450 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
13452         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
13453         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
13454         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
13455         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
13456         maintained.
13458 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13460         * gcc-interface/Makefile.in: Fix oversight.
13462 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13464         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
13465         conversion from a thin pointer with a shifted value.
13466         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
13467         read-only flag from the values onto the result.
13468         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
13470 2014-01-25  Tristan Gingold  <gingold@adacore.com>
13472         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
13473         for E_Variable with a pragma Linker_Section.
13475 2014-01-25  Robert Dewar  <dewar@adacore.com>
13477         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
13478         with Default_Value aspect is passed in by copy.
13480 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
13482         * set_targ.adb: Set Short_Enums.
13483         * gcc-interface/lang.opt (fshort-enums): New option.
13484         * gcc-interface/misc.c (gnat_handle_option): Handle it.
13485         (gnat_post_options): Do not modify the global settings.
13487 2014-01-24  Robert Dewar  <dewar@adacore.com>
13489         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
13490         function.
13491         (Random_Decimal_Fixed): New generic function.
13492         * s-rannum.ads: Minor comment clarifications.
13494 2014-01-24  Robert Dewar  <dewar@adacore.com>
13496         * back_end.adb: Remove Short_Enums handling (handled in
13497         Ttypes/Get_Targ now) Minor added comments.
13498         * freeze.adb: Change name Short_Enums_On_Target to
13499         Target_Short_Enums.
13500         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
13501         * opt.ads: Minor comment updates.
13502         * sem_ch13.adb: Change name Short_Enums_On_Target to
13503         Target_Short_Enums.
13504         * set_targ.adb: Set Short_Enums from gcc back end.
13505         * set_targ.ads (Short_Enums): New variable.
13506         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
13507         Ttypes/Get_Targ now).
13508         * ttypes.ads (Target_Short_Enums): New constant boolean switch
13510 2014-01-24  Pascal Obry  <obry@adacore.com>
13512         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
13514 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
13516         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
13517         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
13518         stripped off.
13520 2014-01-24  Robert Dewar  <dewar@adacore.com>
13522         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
13524 2014-01-24  Vincent Celier  <celier@adacore.com>
13526         * prj.adb (Add_Aggregated_Project): Do not add a project in
13527         the list if it is already there.
13529 2014-01-24  Yannick Moy  <moy@adacore.com>
13531         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
13532         Correct the search for a subrogram declaration to which a pragma is
13533         attached.
13535 2014-01-24  Bob Duff  <duff@adacore.com>
13537         * gnat_ugn.texi: Document --decimal-grouping and
13538         --based-grouping switches in gnatpp.
13540 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13542         * sinfo.ads: Documentation update.
13544 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13546         * sem_ch3.adb (Constant_Redeclaration): New declaration is
13547         illegal if previous one has an initial expression that is an
13548         aggregate expanded into assignments.
13550 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13552         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
13553         code reorganization to remove spurious warning on a loop with
13554         an array element iterator that has a null range.
13556 2014-01-24  Vincent Celier  <celier@adacore.com>
13558         * make.adb (Binding_Phase): When setting the Ada paths, use
13559         the library ALI dir, not the object dir in libraries.
13561 2014-01-24  Yannick Moy  <moy@adacore.com>
13563         * sinfo.ads: Add documentation of check flag fields.
13565 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13567         * sem_res.adb (Resolve_Actuals): If an actual is a view
13568         conversion of a discriminated object, and the formal type is
13569         discriminated and constrained, apply a discriminant check to
13570         the object itself.
13572 2014-01-24  Robert Dewar  <dewar@adacore.com>
13574         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
13576 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13578         * sem_ch3.adb (Analyze_Declarations): At the end of an
13579         appropriate declarative part, call Freeze_All from the first
13580         declaration in the scope, not from the first unfrozen one. This
13581         is necessary to apply visibility checks to entities with delayed
13582         aspects. Otherwise, in the presence of instantiations and cleanups
13583         that they may generate, the delayed aspects may be analyzed too
13584         late and produce spurious visibility errors.
13585         * sem_attr.adb: Place etype on range.
13586         * sem_ch6.adb: Documentation expression functions.
13588 2014-01-24  Robert Dewar  <dewar@adacore.com>
13590         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
13591         terminology in compiler).
13593 2014-01-24  Robert Dewar  <dewar@adacore.com>
13595         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
13596         categories, now that Ada 95 supports raise expressions.
13598 2014-01-24  Robert Dewar  <dewar@adacore.com>
13600         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
13601         Short_Enums_On_Target.
13602         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
13603         into account.
13604         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
13606 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13608         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
13609         indication is given explicity, check that it matches the array
13610         component type or the container element type of the domain
13611         of iteration.
13613 2014-01-24  Tristan Gingold  <gingold@adacore.com>
13615         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
13616         * gcc-interface/misc.c (flag_short_enums): Declare.
13617         (gnat_post_options): Set it.
13619 2014-01-24  Vincent Celier  <celier@adacore.com>
13621         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
13622         to cache the result when Including_Libraries is False.
13623         * prj-env.ads (Ada_Objects_Path): Update documentation
13624         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
13625         (Get_Object_Directory): Return the Library_Ali_Dir only when
13626         when Including_Libraries is True.
13627         * prj.ads (Get_Object_Directory): Fix and complete documentation
13628         (Project_Data): New component Ada_Objects_Path_No_Libs
13630 2014-01-24  Robert Dewar  <dewar@adacore.com>
13632         * checks.adb (Expr_Known_Valid): Result of fpt operator never
13633         considered valid.
13635 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
13637         * back_end.adb: Minor fix in comment.
13639 2014-01-24  Javier Miranda  <miranda@adacore.com>
13641         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
13642         required to report the error in case of task types.
13644 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13646         * sem_attr.adb: Additional index checking.
13648 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13650         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
13651         expressions in each component association, and for records note
13652         the entity in each association choice, for subsequent resolution.
13653         (Resolve_Attribute, case 'Update): Complete resolution of
13654         expressions in each component association.
13656 2014-01-24  Robert Dewar  <dewar@adacore.com>
13658         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
13659         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
13660         leading to wrong handling of SPARK_Mode for library units).
13662 2014-01-24  Robert Dewar  <dewar@adacore.com>
13664         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
13665         on generic instances (do not consider them to be internally
13666         generated)
13668 2014-01-24  Doug Rupp  <rupp@adacore.com>
13670         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
13671         vice pthread_sigmask.
13673 2014-01-24  Vincent Celier  <celier@adacore.com>
13675         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
13676         not default.
13678 2014-01-24  Vincent Celier  <celier@adacore.com>
13680         * prj-ext.adb (Add): Do not output anything when Silent is True,
13681         whatever the verbosity. When Source is From_External_Attribute,
13682         set the corresponding environment variable if it is not already set.
13683         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
13684         to False
13685         * prj-proc.adb (Process_Expression_For_Associative_Array):
13686         For attribute External, call Prj.Ext.Add with Silent set to
13687         True for the child environment, to avoid useless output in non
13688         default verbosity.
13690 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13692         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
13693         range given by a subtype indication, and force evaluation of
13694         the bounds, as for a simple range.
13695         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
13696         of bounds of slice for various kinds of discrete ranges.
13697         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
13698         Evaluate_Slice_Bounds.
13700 2014-01-24  Bob Duff  <duff@adacore.com>
13702         * s-taskin.ads (Activator): Make this Atomic, because
13703         Activation_Is_Complete reads it, and that can be called
13704         from any task. Previously, this component was only
13705         modified by the activator before activation, and by
13706         Self after activation.
13707         * a-taside.ads, a-taside.adb (Environment_Task,
13708         Activation_Is_Complete): Implement these missing functions.
13710 2014-01-24  Doug Rupp  <rupp@adacore.com>
13712         * init.c: Add a handler section for Android.
13714 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
13716         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
13718 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13720         * sem_ch4.adb (Operator_Check): If one operand is a
13721         Raise_Expression, set its type to that of the other operand.
13722         * sem_res.adb (Resolve_Raise_Expression): new procedure.
13723         (Resolve_Actuals): For an actual that is a Raise_Expression,
13724         set the type to that of the formal.
13725         * sem_type.adb (Find_Unique_Type): If one of the operands is a
13726         Raise_Expression, return type of the other operand.
13728 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13730         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
13731         component of the record has a type with a default aspect, and
13732         the corresponding aggregate component is initiaized with a box,
13733         use the default value in the rewritten aggregate.
13735 2014-01-24  Tristan Gingold  <gingold@adacore.com>
13737         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
13738         s-interr-sigaction.adb,
13739         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
13740         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
13741         to the call to Install_Restricted_Handlers.
13743 2014-01-24  Emmanuel Briot  <briot@adacore.com>
13745         * prj-nmsc.adb (Check_File): Add protection when the source is
13746         not fully initialized.
13748 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13750         * sem_util.adb (Is_Post_State): In a postcondition, a selected
13751         component that denotes an implicit dereference is a reference
13752         to the post state of the subprogram.
13754 2014-01-24  Robert Dewar  <dewar@adacore.com>
13756         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
13757         for generated subprograms.
13758         (Analyze_Subprogram_Specification): Ditto.
13760 2014-01-24  Vincent Celier  <celier@adacore.com>
13762         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
13763         attributes in package Builder of aggregate and aggregate library
13764         projects.
13765         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
13766         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
13767         Remove parameters.  Change error message from "... externally
13768         build library ..." to "... externally built project ...".
13769         (Process_Naming_Scheme.Check): Do not do any check in aggregate
13770         project, as attribute Library_Dir and Library_Name have already
13771         been detected as forbidden.
13773 2014-01-24  Vincent Celier  <celier@adacore.com>
13775         * prj-env.adb (Find_Project): If cached project path is not in
13776         project directory, look in current directory first and use cached
13777         project path only if project is not found in project directory.
13779 2014-01-24  Robert Dewar  <dewar@adacore.com>
13781         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
13783 2014-01-24  Vincent Celier  <celier@adacore.com>
13785         * projects.texi: Document that aggregate projects are only
13786         supported by gprbuild, but not by gnatmake.  Document that the
13787         only attribute Switches in package Binder of aggregate projects
13788         will be ignored if its index is not others.  Document that
13789         attribute Global_Config_File is allowed in package Binder of
13790         aggregate projects.
13792 2014-01-24  Robert Dewar  <dewar@adacore.com>
13794         * sem_prag.adb: Minor code reorganization.
13795         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
13797 2014-01-24  Pascal Obry  <obry@adacore.com>
13799         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
13800         attribute definition.
13802 2014-01-24  Vincent Celier  <celier@adacore.com>
13804         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
13805         in the Queue the same source (same path, same multi-source index)
13806         from the same project file, to avoid compiling several times
13807         the same source.
13809 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
13811         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
13812         (Has_Gigi_Rep_Item): Likewise.
13813         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
13814         Has_Gigi_Rep_Item for objects.
13815         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
13816         (prepend_one_attribute): ...this.
13817         (prepend_one_attribute_pragma): New function extracted from...
13818         (prepend_attributes): ...here.  Swap the parameters for consistency.
13819         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
13820         prepend_attributes.
13821         <object>: Deal with a pragma Linker_Section on a constant
13822         or variable.  <E_Function>: Deal with a pragma Linker_Section
13823         on a subprogram.
13824         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
13826 2014-01-24  Vincent Celier  <celier@adacore.com>
13828         * opt.ads: Minor comment update.
13830 2014-01-24  Robert Dewar  <dewar@adacore.com>
13832         * sem_prag.adb (Analyze_Input_Output): Add missing error check
13833         for junk operand.
13834         * sem_util.adb (Is_Refined_State): Add defense against junk
13835         tree from error.
13837 2014-01-24  Pascal Obry  <obry@adacore.com>
13839         * projects.texi: Removes Build_Slaves attribute documentation.
13841 2014-01-23  Robert Dewar  <dewar@adacore.com>
13843         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
13844         setting.
13846 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13848         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
13849         applies to expressions that come from source.
13850         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
13851         message.
13852         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
13853         rule regarding potentially unevaluated expressions, to prefix
13854         of attribute.
13856 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13858         * exp_util.adb (Make_Invqriant_Call): If type of expression is
13859         a private extension, get invariant from base type.
13861 2014-01-23  Robert Dewar  <dewar@adacore.com>
13863         * sem_util.adb, sem_attr.adb: Minor reformatting.
13865 2014-01-23  Robert Dewar  <dewar@adacore.com>
13867         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
13868         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
13869         * sem.adb (Semantics): Remove save/restore of
13870         SPARK_Mode[_Pragma]. Not needed since already done in
13871         Save/Restore_Opt_Config_Switches.
13873 2014-01-23  Robert Dewar  <dewar@adacore.com>
13875         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
13876         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
13877         Linker_Section enhancements.
13879 2014-01-23  Tristan Gingold  <gingold@adacore.com>
13881         * gnat_rm.texi: Minor editing.
13883 2014-01-23  Robert Dewar  <dewar@adacore.com>
13885         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
13886         with'ed internal units.
13887         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
13889 2014-01-23  Javier Miranda  <miranda@adacore.com>
13891         * lib-xref.adb (Generate_Reference): As part of processing the
13892         "end-of-spec" reference generate an extra reference to the first
13893         private entity of the package.
13894         * xr_tabls.adb (Add_Reference): No action needed for the extra
13895         'E' reference associated; similar to the processing of the
13896         'e' reference.
13898 2014-01-23  Bob Duff  <duff@adacore.com>
13900         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
13902 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13904         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
13905         predicate to implement rule given in 6.1.1 (20/3).
13906         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
13907         'Old in a postcondition, if it is potentially unevaluated and
13908         it is not an entity name.
13910 2014-01-23  Bob Duff  <duff@adacore.com>
13912         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
13914 2014-01-23  Robert Dewar  <dewar@adacore.com>
13916         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
13917         msg on VMS.
13919 2014-01-23  Bob Duff  <duff@adacore.com>
13921         * g-dynhta.ads: Minor comment fix.
13923 2014-01-23  Yannick Moy  <moy@adacore.com>
13925         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
13926         from spec on body only when not already inherited on spec. Set
13927         SPARK_Mode from context on body without previous spec.  *
13928         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
13929         library-level entities.  Correct retrieval of entity from
13930         declaration, for cases where the declaration is not a unit.
13931         * sem_ch12.adb (Instantiate_Object): Avoid
13932         calling Is_Volatile_Object on an empty node.
13934 2014-01-23  Robert Dewar  <dewar@adacore.com>
13936         * gnatlink.adb (Gnatlink): Check for suspicious executable file
13937         names on windows.
13939 2014-01-23  Robert Dewar  <dewar@adacore.com>
13941         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
13942         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
13943         style errors in instances.
13944         * g-dynhta.ads (Static_HTable): Comment updates.
13946 2014-01-23  Vincent Celier  <celier@adacore.com>
13948         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
13949         to find a configuration project file when Config_File_Name is
13950         No_Configuration_File.
13951         * prj-conf.ads (No_Configuration_File): New constant String.
13952         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
13953         with Config_File_Name set to No_Configuration_File, so that
13954         no existing configuration project file will be used, and the
13955         configuration project will be only created in memory when
13956         Add_Default_GNAT_Naming_Scheme is called.
13957         * projects.texi: Minor reformatting.
13959 2014-01-23  Vincent Celier  <celier@adacore.com>
13961         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
13962         a config project file if On_Load_Config is not null.
13963         * prj-pars.adb: Minor comment changes.
13965 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13967         * lib-xref.adb (Output_References): Output progenitors of
13968         synchronized tagged types, for source navigation.
13970 2014-01-23  Robert Dewar  <dewar@adacore.com>
13972         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
13973         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
13974         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
13976 2014-01-23  Emmanuel Briot  <briot@adacore.com>
13978         * prj-conf.adb (Get_Or_Create_Configuration_File): call
13979         On_Load_Config later.
13981 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
13983         * sem_ch3.adb (Analyze_Declarations): Do not
13984         generate the spec of the late primitive in ASIS mode. Add two
13985         comments to explain the special cases when the expansion is
13986         not performed.
13988 2014-01-23  Robert Dewar  <dewar@adacore.com>
13990         * sem_util.adb (Note_Possible_Modification): Fix error of
13991         misbehaving for implicit dereference cases in -gnatc mode.
13993 2014-01-23  Emmanuel Briot  <briot@adacore.com>
13995         * prj-pars.adb: Minor reformatting.
13997 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13999         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
14000         body generated for an expression function within a protected body
14001         needs a set of renaming declarations if the expression function
14002         comes from source.
14004 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14006         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
14007         list interface progenitor of a tagged concurrent type, for better
14008         source navigation.
14010 2014-01-22  Robert Dewar  <dewar@adacore.com>
14012         * lib.adb (In_Extended_Main_Code_Unit): Return False for
14013         Standard_Location.
14014         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
14015         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
14016         treatment of Slocs No_Location and Standard_Location.
14017         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
14018         check for entity with Standard_Location Sloc, rather than relying
14019         on Lib routines to do that.
14020         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
14021         that a call cannot occur before a later occuring body within
14022         the same unit.
14024 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14026         * rtsfind.adb: Update comment.
14028 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
14030         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
14031         * sem_ch3.adb (Analyze_Declarations): Add local variable
14032         Body_Seen. Generate the spec of a late controlled
14033         primitive body that is about to freeze its related type.
14034         (Handle_Late_Controlled_Primitive): New routine.
14036 2014-01-22  Robert Dewar  <dewar@adacore.com>
14038         * a-stream.adb: Minor reformatting.
14040 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14042         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
14043         sub-procedure Declared_In_Actual to handle properly the visibility
14044         of actuals in actual packages, that are themselves actuals to a
14045         actual package of the current instance. This mimics properly the
14046         visibility of formals of formal packages declared with a box,
14047         within the corresponding generic unit.
14049 2014-01-22  Robert Dewar  <dewar@adacore.com>
14051         * checks.adb: Do not assume that a volatile variable is valid.
14053 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14055         * g-catiio.ads (Image, Value): Clarify that these functions
14056         operate in the local time zone.  Minor documentation update.
14058 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14060         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
14062 2014-01-22  Robert Dewar  <dewar@adacore.com>
14064         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
14065         Moved to sem_aux.adb.
14067 2014-01-22  Robert Dewar  <dewar@adacore.com>
14069         * vms_data.ads: Minor reformatting.
14071 2014-01-22  Robert Dewar  <dewar@adacore.com>
14073         * debug.adb: Document messages affected by -gnatd.E including
14074         the new ones that relate to late definition of equality.
14075         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
14076         debug flag -gnatd.E is set, then generate warnings rather than
14077         errors.
14078         (Check_Untagged_Equality): In earlier versions of Ada,
14079         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
14081 2014-01-22  Robert Dewar  <dewar@adacore.com>
14083         * sem_prag.adb (Usage_Error): Output additional messages for
14084         unconstrained OUT parameters lacking an input dependency.
14086 2014-01-22  Robert Dewar  <dewar@adacore.com>
14088         * sem_ch4.adb: Minor reformatting.
14090 2014-01-22  Robert Dewar  <dewar@adacore.com>
14092         * restrict.ads: Minor reformatting.
14093         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
14094         forbids a call from within a subprogram to the same subprogram.
14096 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14098         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
14099         stream attributes for Stream_Element_Array.
14100         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
14101         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
14102         defined in the current scope.
14104 2014-01-22  Robert Dewar  <dewar@adacore.com>
14106         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
14108 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14110         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
14112 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14114         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
14115         declaration initialized with a function call, whose type
14116         has variable size, need to remove side effects so that the
14117         initialization expression becomes a dereference of a temporary
14118         reference to the function result.
14120 2014-01-22  Yannick Moy  <moy@adacore.com>
14122         * errout.adb (Initialize): Remove trick to add dummy entry
14123         in Warnings table.
14124         * erroutc.adb (Set_Warnings_Mode_Off,
14125         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
14126         command line switch.
14127         * opt.ads (Warning_Mode): Document behavior
14128         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
14130 2014-01-22  Robert Dewar  <dewar@adacore.com>
14132         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
14134 2014-01-22  Robert Dewar  <dewar@adacore.com>
14136         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
14137         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
14138         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
14139         case Storage_Size): call Check_Pool_Size_Clash.
14141 2014-01-22  Robert Dewar  <dewar@adacore.com>
14143         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
14144         sem_eval.ads: Minor reformatting.
14146 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14148         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
14149         Any_Composite to prevent cascaded errors.
14151 2014-01-22  Yannick Moy  <moy@adacore.com>
14153         * errout.adb (Initialize): Do not insert special entry in Warnings
14154         table in GNATprove_Mode.
14155         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
14156         GNATprove_Mode.
14157         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
14158         warnings anymore.
14160 2014-01-22  Robert Dewar  <dewar@adacore.com>
14162         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
14163         initializes case.
14165 2014-01-22  Robert Dewar  <dewar@adacore.com>
14167         * snames.ads-tmpl: Update header.
14169 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14171         * exp_util.adb (Insert_Actions): When inserting actions on a
14172         short circuit operator that has already been analyzed, do not park
14173         actions in node; instead introduce an N_Expression_With_Actions
14174         and insert actions immediately.
14175         Add guard for unexpected case of climbing up through statement
14176         in Actions list of an N_Expression_With_Actions.
14177         * sem_elab.adb (Insert_Elab_Check): Remove complex
14178         specialized circuitry for the case where the context is already
14179         analyzed, as it is not needed and introduces irregularities in
14180         finalization. Instead rely on the above change to Insert_Actions
14181         to ensure that late insertion on short circuit operators works
14182         as expected.
14184 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14186         * sem_ch4.adb (Operator_Check): Improve error message when an
14187         operand of concatenation is an access type.
14189 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14191         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
14192         cascaded error.
14194 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14196         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
14197         of an expanded name in a proper body, whose prefix is a package
14198         in the context of the proper body, when there is a homonym of
14199         the package declared in the parent unit.
14201 2014-01-22  Robert Dewar  <dewar@adacore.com>
14203         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
14204         msg if errors found.
14205         (Check_One_Unit): Same change.
14207 2014-01-22  Robert Dewar  <dewar@adacore.com>
14209         * ug_words: Add missing/wrong entries for VMS warning switches.
14210         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
14212 2014-01-22  Jerome Guitton  <guitton@adacore.com>
14214         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
14215         arm.
14217 2014-01-22  Robert Dewar  <dewar@adacore.com>
14219         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
14221 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14223         * gcc-interface/Makefile.in: Minor fixes.
14225 2014-01-21  Robert Dewar  <dewar@adacore.com>
14227         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
14228         * par-ch5.adb (P_Condition): New version with expression prescanned.
14229         * par.adb (P_Condition): New version with expression prescanned.
14231 2014-01-21  Robert Dewar  <dewar@adacore.com>
14233         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
14234         if Address is not a private type.
14235         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
14236         Ignore pragma if System.Address is not a private type.
14238 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14240         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
14241         uninitialized value.
14243 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14245         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
14247 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14249         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
14250         the value of Assertions_Enabled flag when compiling an instance of
14251         an internal unit. This facilitates the use of pre/postconditions
14252         in generic internal units, such as the new elementary function
14253         libraries.
14255 2014-01-21  Robert Dewar  <dewar@adacore.com>
14257         * exp_aggr.adb: Minor reformatting.
14258         * sem_attr.adb: Minor reformatting.
14259         * sem_res.adb: Minor comment addition.
14260         * einfo.adb: Minor comment updates.
14261         * freeze.adb: Minor reformatting and code reorganization.
14263 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14265         * par-ch4.adb (P_If_Expression): Handle more gracefully an
14266         elsif clause that does not have an else part.
14268 2014-01-21  Robert Dewar  <dewar@adacore.com>
14270         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
14271         * gcc-interface/Makefile.in: clean up target pairs.
14273 2014-01-21  Pascal Obry  <obry@adacore.com>
14275         * projects.texi: Minor typo fix.
14277 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14279         * freeze.adb (Check_Component_Storage_Order): If a record type
14280         has an explicit Scalar_Storage_Order attribute definition clause,
14281         reject any component that itself is of a composite type and does
14282         not have one.
14284 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14286         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
14287         can be used to generate proper cross-reference information for
14288         the parent units of proper bodies.
14290 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14292         * exp_pakd.adb (Expand_Packed_Element_Set,
14293         Expand_Packed_Element_Reference): No byte swapping required in
14294         the front-end for the case of a reverse storage order array,
14295         as this is now handled uniformly in the back-end.  However we
14296         still need to swap back an extracted element if it is itself a
14297         nested composite with reverse storage order.
14299 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14301         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
14302         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
14303         include "others".
14305 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14307         * gnat_ugn.texi: Minor updates.
14309 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14311         * exp_pakd.adb: Update comment, minor reformatting.
14313 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14315         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
14316         object check when SPARK_Mode is on.
14317         * sem_ch6.adb (Process_Formals): Trigger the volatile object
14318         check when SPARK_Mode is on.
14319         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
14320         check when SPARK_Mode is on.
14321         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
14322         corresponding pragma of aspect SPARK_Mode in the visible
14323         declarations of a package declaration.
14324         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
14325         check when SPARK_Mode is on.
14326         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
14327         check when SPARK_Mode is on.
14328         (Resolve_Entity_Name): Trigger
14329         the volatile object check when SPARK_Mode is on.
14331 2014-01-21  Robert Dewar  <dewar@adacore.com>
14333         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
14334         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
14336 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14338         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
14339         object is declared, it is rewritten as a renaming of an dynamic
14340         expression that wraps the initial value.  The renaming declaration
14341         is first given an internal name, to prevent collisions with the
14342         entity already declared, and then the name is modified to reflect
14343         the original one. the modification of the name must preserve
14344         the source location of the original, to prevent spurious errors
14345         when compiling with style checks if the declaration involves
14346         more than one entity.
14348 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14350         * aspects.adb Add entries for Async_Readers, Async_Writers,
14351         Effective_Reads and Effective_Writes in table Canonical_Aspect.
14352         * aspects.ads Add entries for Async_Readers, Async_Writers,
14353         Effective_Reads and Effective_Writes in tables Aspect_Id,
14354         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
14355         * atree.adb (Ekind_In): New version with 8 parameters.
14356         (Node34): New routine.
14357         (Set_Node34): New routine.
14358         * atree.ads (Ekind_In): New version with 8 parameters.
14359         (Node34): New routine.
14360         (Set_Node34): New routine.
14361         * einfo.adb Contract is now Node34.
14362         (Contract): Update the assertion and node usage.
14363         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
14364         Effective_Reads and Effective_Writes.
14365         (Set_Contract): Update the assertion and node usage.
14366         (Write_Field24_Name): Remove the output for a contract.
14367         (Write_Field34_Name): Add output for a contract.
14368         * einfo.ads Contract is now Node34. Update the comment on
14369         attribute usage and related node structures.
14370         (Get_Pragma): Update the comment on usage.
14371         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
14372         Effective_Reads and Effective_Writes do not require special
14373         processing by the parser.
14374         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
14375         (Analyze_Declarations): Analyze the contract of a variable at
14376         the end of the declarative region.
14377         (Analyze_Object_Declaration): Create a contract for a variable.
14378         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
14379         of classification pragmas.
14380         (Process_Formals): Detect an illegal
14381         use of a volatile object as a formal in a function.
14382         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
14383         a volatile object as an actual in generic instantiation.
14384         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
14385         Effective_Reads and Effective_Writes in table Sig_Flags.
14386         (Analyze_External_State_In_Decl_Part): New routine.
14387         (Analyze_Global_Item): Detect an illegal use of a volatile object
14388         as a global item of a function.
14389         (Analyze_Pragma): Reimplement
14390         pragma Abstract_State. Add support for pragmas Async_Readers,
14391         Async_Writers, Effective_Reads and Effective_Writes.
14392         (Check_External_Properties): New routine.
14393         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
14394         (Check_External_Properties): New routine.
14395         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
14396         volatile object as an actual in a call.
14397         (Resolve_Entity_Name):
14398         Add local variables Par, Prev and Usage_OK. Detect illegal
14399         contexts of volatile objects.
14400         * sem_util.adb (Add_Contract_Item): Add support for
14401         pragmas associated with the contract of a variable.
14402         (Async_Readers_Enabled): New routine.
14403         (Async_Writers_Enabled): New routine.
14404         (Effective_Reads_Enabled): New routine.
14405         (Effective_Writes_Enabled): New routine.
14406         (Has_Enabled_Property):
14407         New routine.
14408         (Is_Unchecked_Conversion_Instance): New routine.
14409         (Is_Volatile_Object): Add support for entities that may denote
14410         a volatile object.
14411         * sem_util.ads (Add_Contract_Item): Update the
14412         comment on usage.
14413         (Async_Readers_Enabled): New routine.
14414         (Async_Writers_Enabled): New routine.
14415         (Effective_Reads_Enabled): New routine.
14416         (Effective_Writes_Enabled): New routine.
14417         (Is_Unchecked_Conversion_Instance): New routine.
14418         * sinfo.ads Update the comment on the structure of N_Contract.
14419         * snames.ads-tmpl Add predefined names for Async_Readers,
14420         Async_Writers, Effective_Reads and Effective_Writes. Add
14421         pragma ids for Async_Readers, Async_Writers, Effective_Reads
14422         and Effective_Writes.
14424 2014-01-21  Robert Dewar  <dewar@adacore.com>
14426         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
14427         * sem_eval.adb (Compile_Time_Known_Value): Remove special
14428         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
14429         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
14430         (Test_Foldable): Add CRT_Safe parameter
14431         * sem_eval.ads (Compile_Time_Known_Value): Remove special
14432         handling of CRT mode.
14433         (CRT_Safe_Compile_Time_Known_Value): New function.
14435 2014-01-21  Robert Dewar  <dewar@adacore.com>
14437         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
14438         with pragma or aspect that applies to package spec or subprogram
14439         spec.
14441 2014-01-21  Robert Dewar  <dewar@adacore.com>
14443         * exp_aggr.adb: Minor reformatting.
14445 2014-01-21  Johannes Kanig  <kanig@adacore.com>
14447         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
14449 2014-01-21  Bob Duff  <duff@adacore.com>
14451         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
14453 2014-01-21  Steve Baird  <baird@adacore.com>
14455         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
14457 2014-01-21  Vincent Celier  <celier@adacore.com>
14459         * prj-part.adb (Parse_Single_Project): Accept to extend a project
14460         if it has only be imported by an project being extended. When a
14461         project that has only been imported by a project being extended
14462         is imported by another project that is not being extended,
14463         reset the previous indication, so that it will be an error if
14464         this project is extended later.
14465         * prj-tree.adb (Create_Project): Include component From_Extended
14466         in table Projects_HT
14467         * prj-tree.ads (Project_Name_And_Node): New Boolean component
14468         From_Extended
14470 2014-01-21  Robert Dewar  <dewar@adacore.com>
14472         * atree.ads, atree.adb: Add Node33 and Set_Node33.
14473         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
14474         New field (SPARK_Pragma_Inherited): New flag
14475         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
14476         Removed.
14477         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
14478         * opt.ads (SPARK_Mode_Pragma): New global variable.
14479         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
14480         * sem_ch3.adb: Use new SPARK_Mode data structures.
14481         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
14482         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
14483         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
14484         (Pop_Scope): Restore SPARK_Mode_Pragma.
14485         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
14486         new data structures.
14488 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14490         * back_end.adb: Undo previous change, not needed. Minor reformatting.
14492 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14494         * exp_ch5.adb: Fix comment.
14495         * switch-c.adb: Minor comment update.
14496         * exp_ch3.adb: Minor reformatting.
14498 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14500         * back_end.adb (Scan_Compiler_Arguments): Do not store object
14501         filename in gnatprove mode.
14503 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14505         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
14506         suppresses usage of primitive _assign for tagged types).
14507         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
14508         No_Ctrl_Actions for a tagged type that does not require
14509         finalization, as we want to disable usage of _assign (which
14510         may cause undesirable discriminant checks on an uninitialized,
14511         invalid target).
14513 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14515         * sem_prag.adb: Reject invariant'class on completion.
14517 2014-01-21  Javier Miranda  <miranda@adacore.com>
14519         * exp_ch3.adb (Build_Init_Procedure): For
14520         derivations of interfaces, do not move the the initialization
14521         of the _parent field since such assignment is not generated.
14523 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14525         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
14526         with the operator it renames if we are within an expression of
14527         a pre/postcondition, because the expression will be reanalyzed
14528         at a later point, and the analysis of the renaming may affect
14529         the visibility of the operator when in an instance.
14531 2014-01-21  Robert Dewar  <dewar@adacore.com>
14533         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
14534         Add this flag to type conversion nodes and assignment nodes.
14535         * treepr.adb: Deal properly with Flag 1,2,3.
14536         * treeprs.adt: Minor comment update.
14538 2014-01-21  Robert Dewar  <dewar@adacore.com>
14540         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
14541         parameter.
14542         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
14543         parameter, completely rewrite spec.
14545 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14547         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
14548         instance that is inlined, it may have been rewritten as a wrapper
14549         package. In that case the unit that must be made visible is the
14550         related instance of the package.
14552 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14554         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
14555         previous change in codepeer mode.
14557 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14559         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
14560         call to Abort_Undefer, as expected by the runtime.
14561         * s-tasren.adb (Local_Complete_Rendezvous): Replace
14562         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
14563         deferred at this point. Update comments.
14565 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14567         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
14569 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14571         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
14572         remove from doc.
14574 2014-01-21  Robert Dewar  <dewar@adacore.com>
14576         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
14578 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14580         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
14581         this is value is used in Node_Id arithmetic operations.
14582         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
14583         instead of hard-coded unrolled code.
14585 2014-01-21  Yannick Moy  <moy@adacore.com>
14587         * gnat1drv.adb: Minor code cleanup, removing useless code.
14589 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14591         * opt.ads (SPARK_Switches_File_Name): New.
14592         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
14593         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
14594         * gnat_ugn.texi: Document -gnates.
14596 2014-01-21  Yannick Moy  <moy@adacore.com>
14598         * errout.adb (Special_Msg_Delete): Update comment. Remove
14599         special case for GNATprove which should not ignore mismatch
14600         in sizes for representation clauses.
14601         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
14602         which should not ignore pragma Pack.
14604 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14606         * sem_ch4.adb: Code clean up.
14608 2014-01-21  Steve Baird  <baird@adacore.com>
14610         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
14612 2014-01-21  Robert Dewar  <dewar@adacore.com>
14614         * gcc-interface/gigi.h: Get Flags array address.
14615         * gcc-interface/trans.c: Acquire Flags array address.
14616         * atree.adb: Add support for Flags array and Flag0,1,2,3.
14617         * atree.ads: Add support for Flags array and Flag0,1,2,3.
14618         * atree.h: Add support for Flags array and Flag0,1,2,3.
14619         * back_end.adb: Pass Flags array address to gigi.
14621 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14623         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
14624         reference to generated body so that legality checks on stream
14625         attributes are properly applied. If type is tagged and already
14626         frozen, insert generated body at the point of the renaming
14627         declaration.
14629 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14631         * sem_ch12.adb: Code clean up.
14632         * sem_ch8.adb: Minor reformatting
14634 2014-01-20  Robert Dewar  <dewar@adacore.com>
14636         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
14637         converting warnings on inevitable exceptions to errors.
14638         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
14639         converting warnings on inevitable exceptions to errors.
14640         * opt.adb (SPARK_Mode_Config): Handled like other config flags
14641         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
14642         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
14643         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
14644         New flag (Config_Switches_Type): Add SPARK_Mode field
14645         * sem.adb: Minor code reorganization (remove unnecessary with)
14646         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
14647         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
14648         converting warnings on inevitable exceptions to errors.
14649         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
14650         converting warnings on inevitable exceptions to errors.
14651         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
14652         converting warnings on inevitable exceptions to errors.
14653         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
14654         converting warnings on inevitable exceptions to errors.
14655         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
14656         from spec if needed
14657         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
14658         from spec if needed
14659         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
14660         Restore SPARK_Mode
14661         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
14662         converting warnings on inevitable exceptions to errors.
14663         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
14664         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
14665         of Get_SPARK_Mode_Id
14666         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
14667         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
14668         converting warnings on inevitable exceptions to errors.
14669         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
14670         converting warnings on inevitable exceptions to errors.
14671         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
14672         SPARK_Mode_Type
14674 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14676         * sem_ch13.adb: Add semantic information to rewritten type
14677         reference.
14679 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14681         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
14682         are of a type with unknown discriminants, convert both to the
14683         underlying view of the type, so that the proper constraint check
14684         can be applied to the right-hand side.
14686 2014-01-20  Robert Dewar  <dewar@adacore.com>
14688         * atree.adb (Copy_Node): Fix failure to copy last component
14689         (Exchange_Entities): Fix failure to exchange last entity
14691 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14693         * sem_ch12.adb: Code clean up.
14695 2014-01-20  Robert Dewar  <dewar@adacore.com>
14697         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
14699 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14701         * sem_ch4.adb (Analyze_Quantified_Expression): If after
14702         pre-analysis  the loop parameter specification has been
14703         rewritten as a iterator specification, propagate the change to
14704         the quantified expression, for ASIS navigtion needs.
14706 2014-01-20  Vincent Celier  <celier@adacore.com>
14708         * par-ch10.adb: Minor error message change: escape [ and ].
14710 2014-01-20  Robert Dewar  <dewar@adacore.com>
14712         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
14713         * errout.adb: Implement [ and ] insertion characters.
14714         * errout.ads: Document new [ and ] insertion characters.
14715         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
14716         addition of ??? comment.
14717         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
14718         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
14719         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
14720         Make warnings on exceptions into errors in GNATprove mode.
14721         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
14722         in error messages.
14724 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14726         * sem_ch13.adb: Code clean up.
14728 2014-01-20  Robert Dewar  <dewar@adacore.com>
14730         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
14731         messages.
14732         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
14733         error in GNATprove mode.
14735 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14737         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
14738         reference 'Old takes no parameters, and thus can appear as a
14739         prefix of a slice.
14741 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14743         * exp_aggr.adb: Fix minor typos.
14745 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14747         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
14748         instance the attribute is legal, and its value is determined
14749         statically if the type has no discriminants. This choice is
14750         more useful than rechecking the legality rule in the instance,
14751         is consistent with older usage, and is also consistent with all
14752         existing tests.
14754 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14756         * sem_cat.adb (Validate_Static_Object_Name): Change error into
14757         warning in Relaxed_Semantic_Mode.
14759 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14761         * sem_attr.adb: Code and comments cleanup.
14763 2014-01-20  Yannick Moy  <moy@adacore.com>
14765         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
14766         * errout.adb (Compilation_Errors): Remove special handling in
14767         GNATprove mode.
14768         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
14769         removed debug flags.
14770         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
14771         Global, Initial_Condition, Initializes and Refined_State pragmas and
14772         aspects.
14773         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
14774         SPARK_Strict_Mode): Remove global flags.
14775         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
14776         always performed now, on packages declaring a null state.
14777         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
14778         at providing pedantic mode for bounds of integer types.
14779         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
14780         "some" quantified expression now issued under control of -gnatw.t,
14781         like the other warning on unused bound variable.
14782         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
14783         on removed flag.
14784         (Analyze_Pragma): Remove tests for SPARK 2014
14785         pragmas, not officially allowed by GNAT.
14787 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14789         * sem_prag.adb (Analyze_Pragma): Ensure that
14790         the sole argument of pragmas Abstract_State, Contract_Cases,
14791         Depends, Global and Initializes in in aggregate form.
14792         (Analyze_Refined_Pragma): Ensure that the sole argument of
14793         pragmas Refined_Depends, Refined_Global and Refined_State is in
14794         aggregate form.
14795         (Ensure_Aggregate_Form): New routine.
14797 2014-01-20  Doug Rupp  <rupp@adacore.com>
14799         * sem_attr.adb (Analyze_Attribute): case
14800         Attribute_Constrained => treat all prefixes as legal for Declib
14801         compatibility.
14803 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14805         * sem_prag.adb (Check_Mode): Reimplement the routine.
14806         (Find_Mode): New routine.
14808 2014-01-20  Robert Dewar  <dewar@adacore.com>
14810         * sem_ch4.adb (Operator_Check): Handle additional
14811         Allow_Integer_Address cases.
14813 2014-01-20  Robert Dewar  <dewar@adacore.com>
14815         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
14816         allowed if address is non-private, no longer true.
14817         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
14818         Remove check for address being private, causes difficulty when
14819         pragma used in gnat.adc file and is not needed, since we guard
14820         this in Address_Integer_Convert_OK.
14821         * exp_ch7.adb: Minor reformatting.
14822         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
14824 2014-01-20  Robert Dewar  <dewar@adacore.com>
14826         * checks.adb (Apply_Range_Check): Remove gnatprove special
14827         casing of exponentiation.
14828         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
14829         operand for integer case to check range against Natural.
14831 2014-01-20  Robert Dewar  <dewar@adacore.com>
14833         * s-tataat.adb: Minor reformatting.
14835 2014-01-20  Robert Dewar  <dewar@adacore.com>
14837         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
14838         entities, and also fix documentation to remove mention of visible
14839         integer type, since this is not what the implementation does.
14840         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
14841         entities, and also fix documentation to remove mention of visible
14842         integer type, since this is not what the implementation does.
14843         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
14844         function.
14845         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
14846         case for parameter type check.
14847         * sem_res.adb (Resolve): Use new function
14848         Address_Integer_Convert_OK.
14849         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
14850         reformatting throughout.
14851         * sem_util.adb (Address_Integer_Convert_OK): New function.
14852         * sem_util.ads: Minor reformatting (put specs in alpha order)
14853         (Address_Integer_Convert_OK): New function.
14855 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14857         * exp_ch7.adb (Wrap_Transient_Expression):
14858         Insertion extra conditional expression only if
14859         Opt.Suppress_Control_Flow_Optimizations is set.
14861 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14863         * s-tataat.adb (Initialize_Attributes): Abort might already be
14864         deferred in Create_Task.
14866 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14868         * checks.adb (Apply_Scalar_Range_Check): Flag
14869         the exponent as requiring a range check when the expression is
14870         an exponentiation.
14872 2014-01-20  Fedor Rybin  <frybin@adacore.com>
14874         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
14876 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14878         * sem_util.adb (Default_Initialization): New routine.
14879         * sem_util.ads: Add new type Default_Initialization_Kind.
14880         (Default_Initialization): New routine.
14882 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14884         * sem_prag.adb (Check_Mode): Correct all error
14885         message logic dealing with in/in out parameters that may appear
14886         as inputs or have a self reference.
14888 2014-01-20  Robert Dewar  <dewar@adacore.com>
14890         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
14891         * sem_res.adb (Resolve): Fix error causing infinite loop for
14892         integer used as address. Allow addresses as integers.
14894 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14896         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
14898 2014-01-20  Bob Duff  <duff@adacore.com>
14900         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
14901         error when "use all" is not followed by "type".
14903 2014-01-20  Bob Duff  <duff@adacore.com>
14905         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
14906         followed by free.
14908 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14910         * checks.adb (Apply_Address_Clause_Check): If there is an
14911         alignment check on the expression in an address clause, and there
14912         is no local exception propagation, add an additional explanatory
14913         message to clarify the cause of previous warning.
14915 2014-01-20  Robert Dewar  <dewar@adacore.com>
14917         * exp_ch7.adb: Minor reformatting.
14918         * opt.ads: Minor comment updates.
14919         * sem.adb: Minor name change Is_Main_Unit =>
14920         Is_Main_Unit_Or_Main_Unit_Spec.
14921         * sem_ch6.adb: Minor reformatting and code reorganization.
14923 2014-01-20  Bob Duff  <duff@adacore.com>
14925         * gnat_ugn.texi: Update gnatpp switches.
14927 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14929         * exp_ch9.adb: Minor comment edit.
14931 2014-01-20  Robert Dewar  <dewar@adacore.com>
14933         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
14934         only if System.Address is a private type.
14935         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
14936         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
14937         Allowed only if type System.Address is private, since otherwise
14938         it makes no sense.
14939         * sem_res.adb: Fix failure to properly Analyze unchecked
14940         conversions that were introduced by Allow_Integer_Address.
14941         * switch-c.adb: Remove -gnates switch.
14942         * usage.adb: Remove -gnates switch.
14943         * gnat_ugn.texi: Remove documentation of -gnates flag.
14945 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14947         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
14948         resolve expression to perform proper name capture.
14950 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14952         * sem.adb (Semantics): When saving/restoring configuration
14953         switches, the spec of a pre- defined unit that is the main unit
14954         must be treated as a predefined unit as well.
14956 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14958         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
14959         expression, insert an extra conditional expression when saving
14960         the value of the expression, for the benefit of control flow
14961         graph based coverage analysis.
14962         * exp_ch3.adb: Minor reformatting.
14964 2014-01-20  Robert Dewar  <dewar@adacore.com>
14966         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
14967         * gnat_rm.texi: Document pragma Allow_Integer_Address.
14968         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
14969         * opt.ads: New flag Allow_Integer_Address.
14970         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
14971         * sem_ch5.adb: Minor reformatting.
14972         * sem_prag.adb: Implement pragma Allow_Integer_Address.
14973         * sem_res.adb (Resolve): Allow integer address value if
14974         switch set.
14975         * sem_util.adb: Minor reformatting.
14976         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
14977         * switch-c.adb: Recognize flag -gnates.
14978         * usage.adb: Document flag -gnates.
14980 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14982         * s-tadeca.adb: Fix minor typos in comment.
14984 2014-01-20  Pascal Obry  <obry@adacore.com>
14986         * s-win32.ads (FreeLibrary): New import.
14988 2014-01-20  Robert Dewar  <dewar@adacore.com>
14990         * sem_res.adb, sem_cat.adb: Minor reformatting.
14991         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
14992         assigning to OUT parameters for the current subprogram scope.
14993         * exp_ch4.adb: Minor reformatting.
14995 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14997         * exp_ch4.adb (Process_Transient_Object,
14998         Find_Enclosing_Contexts): If the top-level if-expression that
14999         generated the transient object is an actual in a call, the proper
15000         Hook_Context is a construct enclosing the call.
15001         * einfo.ads: Indicate that Related_Expression is used to link a
15002         loop variable to the container expression over which the loop
15003         takes place.
15004         (Analyze_Iterator_Specification): Set the Related_Expression of
15005         the loop variable in a container element iterator.
15006         (Note_Possible_Modification): If the variable is the loop
15007         variable in a container element iterator, indicate that the
15008         enclosing container is also modified.
15010 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15012         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
15014 2014-01-20  Robert Dewar  <dewar@adacore.com>
15016         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
15017         Minor reformatting and code clean up.
15019 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15021         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
15022         of objects of private type if Relaxed_RM_Semantics.
15024 2014-01-20  Claire Dross  <dross@adacore.com>
15026         * a-cofove.ads (Vector): Capacity discriminant
15027         should be in range of the index.
15029 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15031         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
15032         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
15033         possible difference between epoch of Ada.Calendar clock and Ada
15034         real-time/tasking clock.
15035         * s-taprop-posix.adb: Minor comment fix.
15037 2014-01-20  Doug Rupp  <rupp@adacore.com>
15039         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
15041 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15043         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
15044         checks on the prefix of attribute 'Old.
15045         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
15046         generation of validity checks on a range that belongs to the
15047         iteration scheme of a quantified expression.
15048         * sem_ch5.adb (One_Bound): Suppress the generation of validity
15049         checks on a bound that belongs to the iteration scheme of a
15050         quantified expression, generate the check in all other cases.
15052 2014-01-20  Bob Duff  <duff@adacore.com>
15054         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
15056 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15058         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
15059         interpretations that do not come from other predefined units,
15060         to prevent spurious ambiguities in the presence of user-defined
15061         operators in the context of (an instance of) a predefined unit.
15063 2014-01-20  Robert Dewar  <dewar@adacore.com>
15065         * gnat_rm.texi: Document that Loop_Variant is included in
15066         Statement_Assertions.
15067         * sem_prag.adb (Check_Kind): Add Loop_Variant to
15068         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
15069         to Statement_Assertions.
15071 2014-01-20  Doug Rupp  <rupp@adacore.com>
15073         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
15074         for errno ENOENT from RTP on NFS mounted file system.
15076 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15078         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
15079         examine code that does not come from source. The check does not
15080         apply to code generated for constraint checks, and such code may
15081         generate spurious error messages when compiled with expansion
15082         disabled (as in a generic unit) because side effects may not
15083         have been removed.
15084         2) Make error messages more explicit: indicate the component
15085         of the  construct whose value is indeterminate because of a
15086         call to a function with in-out parameter in another component,
15087         when there is no mandated order of execution between the two
15088         components (actuals, aggregate components, alternatives).
15090 2014-01-20  Robert Dewar  <dewar@adacore.com>
15092         * gnat_rm.texi: Minor cleanup.
15094 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15096         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
15097         can now apply to a refined postcondition.
15098         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
15099         variable Result_Seen. Add variables Case_Prag, Post_Prag,
15100         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
15101         whether postconditions and/or constract-cases mention attribute
15102         'Result and introduce a post-state when applied to functions.
15103         (Check_Result_And_Post_State): Removed.
15104         * sem_prag.adb (Analyze_Pragma): Add local variable
15105         Result_Seen. Verify that the expression of pragma Refined_Post
15106         mentions attribute 'Result and introduces a post-state.
15107         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
15109 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15111         * exp_ch7.adb (Is_Subprogram_Call): New routine.
15112         (Process_Transient_Objects): Make variable Must_Hook global with
15113         respect to all locally declared subprograms. Search the context
15114         for at least one subprogram call.
15115         (Requires_Hooking): Removed.
15117 2014-01-20  Claire Dross  <dross@adacore.com>
15119         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
15120         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
15121         External_Axiomatization);
15123 2014-01-20  Robert Dewar  <dewar@adacore.com>
15125         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
15126         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
15127         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
15128         Allow Loop_Entry to be used in these pragmas if they appear in
15129         an appropriate context.
15130         (Placement_Error): Specialize error
15131         message for pragma Assert[_And_Cut] or pragma Assume containing
15132         Loop_Entry attribute.
15133         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
15134         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
15135         and code clean ups.
15137 2014-01-20  Robert Dewar  <dewar@adacore.com>
15139         * gnat1drv.adb: Minor comment update.
15141 2014-01-20  Tristan Gingold  <gingold@adacore.com>
15143         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
15144         variables, comment out unused code.
15145         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
15146         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
15147         * s-excmac-arm.ads: New file.
15149 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15151         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
15152         Drange and Index_Typ. Remove the circuitry which creates a
15153         range check to compare the index type of the array against the
15154         discrete_range.
15155         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
15156         the circuitry which creates a range check to handle a
15157         discrete_range denoted by a subtype indication.
15159 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
15161         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
15162         nodes to get the original sloc range.
15164 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15166         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
15167         entity of a [library level] package.
15169 2014-01-20  Tristan Gingold  <gingold@adacore.com>
15171         * raise-gcc.c (exception_class_eq): New function.
15172         (is_handled_by): Use it to compare exception classes.
15173         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
15174         be called to return URC_CONTINUE_UNWIND.
15175         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
15176         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
15178 2014-01-20  Robert Dewar  <dewar@adacore.com>
15180         * opt.ads: Minor comment update.
15182 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15184         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
15185         constants to the "Local variables" area. Add new constant D. Add
15186         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
15187         to Pref_Typ and update all occurrences. Add circuitry to extract
15188         the discrete_range and the index type and build a range check.
15190 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15192         * gnat1drv.adb (Adjust_Global_Switches): Enable
15193         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
15194         is set.
15196 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15198         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
15200 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15202         * sem_ch13.adb (Analyze_Aspect_Specifications):
15203         When aspect SPARK_Mode appears on a package body, insert the
15204         generated pragma at the top of the body declarations.
15206 2014-01-20  Robert Dewar  <dewar@adacore.com>
15208         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
15209         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
15210         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
15211         sem_ch8.adb, exp_dist.adb: Minor reformatting.
15213 2014-01-20  Yannick Moy  <moy@adacore.com>
15215         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
15216         mode.
15218 2014-01-20  Pascal Obry  <obry@adacore.com>
15220         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
15221         write scheme).
15222         * g-arrspl.adb: Adapt all routine to this new implementation.
15223         (Set): Copy the Slice_Set definition before reusing it.
15225 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15227         * sem_prag.adb (Process_Import_Or_Interface): In
15228         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
15229         (Analyze_Pragma): Ditto for pragma Export.
15230         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
15231         Import style.
15233 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15235         * einfo.ads: E_Abstract_State is now part of the entities that
15236         can be overloaded. Update type Overloadable_Kind to reflect the
15237         inclusion of abstract states.
15238         * sem_ch6.adb (New_Overloaded_Entity): A function can now
15239         overload an abstract state.
15240         * sem_prag.adb (Analyze_Constituent): Handle the overloading
15241         of states by functions. Use Entity_Of to obtain the entity of
15242         a constituent.  (Analyze_Global_Item): Handle the overloading of
15243         states by functions.
15244         (Analyze_Initialization_Item): Handle the
15245         overloading of states by functions.  Use Entity_Of to obtain the
15246         entity of an item.
15247         (Analyze_Input_Item): Handle the overloading
15248         of states by functions. Use Entity_Of to obtain the entity of an item.
15249         (Analyze_Input_Output): Handle the overloading of states by functions.
15250         (Analyze_Refinement_Clause): Handle the overloading
15251         of states by functions.  Use Entity_Of to obtain the entity of an item.
15252         (Appears_In): Use Entity_Of to obtain the entity of an element.
15253         (Check_Usage): Use Entity_Of to obtain the entity of
15254         an item. Add a guard to prevent a crash due to a previous error.
15255         (Resolve_State): New routine.
15257 2014-01-20  Yannick Moy  <moy@adacore.com>
15259         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
15260         opt.ads: Minor comments updates.
15262 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15264         * einfo.adb (Non_Limited_View): Applies to abstract states.
15265         (Set_From_Limited_With): Applies to abstract states.
15266         (Set_Non_Limited_View): Applies to abstract states.
15267         (Write_Field17): Output the non-limited view of an abstract state.
15268         * einfo.ads: Update the comment on usage and occurrences in
15269         nodes for attributes From_Limited_With and Non_Limited_View.
15270         * sem_aux.adb (Available_View): This routine can now handle
15271         abstract states.
15272         * sem_aux.ads (Available_View): This routine can now handle
15273         abstract states. Update the comment on usage.
15274         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
15275         of states and variables.
15276         (In_Pragmas_Depends_Or_Global): New routine.
15277         * sem_ch10.adb (Build_Limited_Views): Implement
15278         abstract (limited) views of variables and states.
15279         (Build_Shadow_Entity): This routine is now a procedure. Add
15280         formal parameter Shadow. Update the comment on usage. Add
15281         context-specific decoration for states and variables.
15282         (Decorate_State): New routine.  (Decorate_Variable): New routine.
15283         (Find_And_Process_States): New routine.
15284         (Process_Declarations): Renamed to Process_Declarations_And_States.
15285         (Process_Declarations_And_States): Add formal parameters
15286         Pack and Create_Abstract_Views. Update the comment on usage.
15287         (Process_States): New routine.
15288         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
15289         views of states and variables. Match the abstract view of a state
15290         against its corresponding non-abstract view.
15291         (Is_Matching_Input):
15292         Handle abstract views of states and variables. Match the abstract
15293         view of a state against its corresponding non-abstract view.
15294         (Process_Global_Item): Handle abstract views of states and
15295         variables.
15297 2014-01-20  Bob Duff  <duff@adacore.com>
15299         * sem_ch10.adb (Expand_With_Clause): Don't
15300         recurse on the prefix if the current with-ed name refers to a
15301         package that renames its own parent, eg "package P.Q renames P;".
15303 2014-01-20  Yannick Moy  <moy@adacore.com>
15305         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
15306         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
15307         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
15308         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
15309         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
15310         Expander_Active.
15312 2014-01-20  Yannick Moy  <moy@adacore.com>
15314         * sinfo.ads Update documentation of GNATprove mode.
15316 2014-01-20  Yannick Moy  <moy@adacore.com>
15318         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
15319         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
15320         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
15321         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
15322         GNATprove_Mode.
15323         * sem_ch13.adb: Remove blank.
15324         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
15325         subprograms by alias for renamings, not for inherited primitive
15326         operations.
15327         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
15328         in GNATprove mode.
15329         (Remove_Side_Effects): Apply the removal in
15330         GNATprove mode, for the full analysis of expressions.
15331         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
15332         mode.
15333         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
15334         save/restore actions for Expander_Active flag in GNATprove mode,
15335         similar to what is done in ASIS mode.
15336         * frontend.adb (Frontend): Generic bodies are instantiated in
15337         GNATprove mode.
15338         * gnat1drv.adb (Adjust_Global_Switches): Set operating
15339         mode to Check_Semantics in GNATprove mode, although a light
15340         expansion is still performed.
15341         (Gnat1drv): Set Back_End_Mode to
15342         Declarations_Only in GNATprove mode, and later on special case
15343         the GNATprove mode to continue analysis anyway.
15344         * lib-writ.adb (Write_ALI): Always generate ALI files in
15345         GNATprove mode.
15346         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
15347         Expander_Active.
15348         (SPARK_Mode): Renamed as GNATprove_Mode.
15349         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
15350         tree in GNATprove_Mode.
15351         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
15352         body in GNATprove mode.
15353         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
15354         mode.
15355         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
15356         Make sure side effects are removed in GNATprove mode.
15358 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15360         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
15361         for aliased objects with an unconstrained nominal subtype.
15362         * gcc-interface/trans.c (Call_to_gnu): Likewise.
15363         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
15364         <case N_Op_Minus>: Remove useless code.
15365         (Exception_Handler_to_gnu_zcx): Minor tweaks.
15367 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15369         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
15370         Tidy up.  For a subtype with discriminants and variant part, if a
15371         variant is statically selected and the fields all have a constant
15372         position, put them in order of increasing position.  Likewise if
15373         no variant part but representation clause is present.
15374         * gcc-interface/utils.c (make_packable_type): Robustify.
15375         (maybe_pad_type): Use local variable and tidy up condition.  If no
15376         alignment is specified, use the original one.
15377         (create_type_stub_decl): Minor tweak.
15378         (convert) <case VECTOR_CST>: Fix typo.
15379         <case CONSTRUCTOR>: Deal with padding types around the same type.
15380         Do not punt on missing fields.
15381         (unchecked_convert): Call finish_record_type to lay out the special
15382         record types made for conversions from/to problematic integer types.
15383         Bump the alignment of CONSTRUCTORs before converting them to a more
15384         aligned type.
15386 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15388         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
15389         obsolete code for type_annotate_only mode, simplify code and slightly
15390         improve wording of comments.
15392 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
15394         PR ada/59772
15395         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
15396         as intermediate type.
15397         (UI_To_gnu): Likewise.
15399 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15401         * gnatvsn.ads (Current_Year): Bump to 2014.
15403 2014-01-02  Tobias Burnus  <burnus@net-b.de>
15405         * gnat_ugn.texi: Bump @copying's copyright year.
15407 Copyright (C) 2014 Free Software Foundation, Inc.
15409 Copying and distribution of this file, with or without modification,
15410 are permitted in any medium without royalty provided the copyright
15411 notice and this notice are preserved.