convert many if_marked htab to hash_table
[official-gcc.git] / gcc / ada / ChangeLog
blobfa056d3bb9920ad2919dfe2e92b1b94403f90dc4
1 2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>
3         * gcc-interface/decl.c, gcc-interface/utils.c: replace htab with
4         hash_table.
6 2014-11-20  Robert Dewar  <dewar@adacore.com>
8         * sem_prag.adb (Analyze_Pragma, case Elaborate): Forbid pragma
9         Elaborate in SPARK mode.
11 2014-11-20  Bob Duff  <duff@adacore.com>
13         * s-taskin.adb, s-tassta.adb (Initialize_ATCB): If Domain
14         is null, then initialize T.Common.Domain to that of the
15         activating task (not the parent task!), as required by RM-D.16.1.
16         T.Common.Domain should never be null; so Assert. Remove similar
17         code from Create_Task in s-tassta.adb.
18         * s-mudido-affinity.adb: Remove checks for Domain = null,
19         because it can't be null.
20         * s-taskin.ads, s-taspri-dummy.ads, s-taspri-mingw.ads,
21         s-taspri-posix.ads, s-taspri-posix-noaltstack.ads,
22         s-taspri-solaris.ads, s-taspri-vxworks.ads: Mark limited types as
23         explicitly limited for clarity.
25 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
27         * exp_aggr.adb (Init_Hidden_Discriminants): Code clean up.
29 2014-11-20  Robert Dewar  <dewar@adacore.com>
31         * errout.adb (Error_Msg): Don't suppress continuation msgs for
32         run-time files.
33         * sem_prag.adb (Analyze_Pragma, case Elaborate): Forbid pragma
34         Elaborate in SPARK mode.
36 2014-11-20  Yannick Moy  <moy@adacore.com>
38         * gnat_rm.texi: Update GNAT RM with rule about expressions in
39         Update attribute.
41 2014-11-20  Thomas Quinot  <quinot@adacore.com>
43         * g-socket.adb (To_Host_Entry): Guard against case of a
44         non-AF_INET entry.
46 2014-11-20  Vadim Godunko  <godunko@adacore.com>
48         * a-strunb-shared.adb (To_Unbounded_String): Use shared empty
49         object to construct return value when source string is empty or
50         requested length is zero.
51         * a-stwiun-shared.adb (To_Unbounded_Wide_String): Likewise.
52         * a-stzunb-shared.adb (To_Unbounded_Wide_Wide_String): Likewise.
54 2014-11-20  Yannick Moy  <moy@adacore.com>
56         * a-cfhase.adb, a-cfinve.adb, a-cforma.adb, a-cfhama.adb, a-cforse.adb,
57         a-cofove.adb: Skip CodePeer analysis on body of all formal containers.
59 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
61         * adaint.c: Fix typo.
62         * exp_util.adb (Make_Subtype_From_Expr): Complete previous change,
63         generate constant values.
64         * sem_eval.adb (Decompose_Expr): Fix latent bug leading to a wrong
65         evaluation to '0' of some unknown values.
67 2014-11-20  Robert Dewar  <dewar@adacore.com>
69         * repinfo.adb (List_Record_Info): Do not list discriminant in
70         unchecked union.
71         * sem_ch13.adb (Has_Good_Profile): Minor reformatting
72         (Analyze_Stream_TSS_Definition): Minor reformatting
73         (Analyze_Record_Representation_Clause): Do not issue warning
74         for missing rep clause for discriminant in unchecked union.
76 2014-11-20  Vadim Godunko  <godunko@adacore.com>
78         * a-strunb-shared.adb, a-stwiun-shared.adb, a-stzunb-shared.adb
79         ("&") Use already computed value of data length to call allocation
80         subprogram.
82 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
84         * exp_ch6.adb (Expand_Call, Inlined_Subprogram): Do not suppress
85         debugging information for a call to a predefined unit, if the
86         call comes from source and the unit is in the Ada hierarchy.
88 2014-11-20  Bob Duff  <duff@adacore.com>
90         * s-mudido.ads: Update signature of Create and Get_Last_CPU. Add
91         CPU_Set, another Create, and Get_CPU_Set.
92         * s-mudido.adb: Corresponding changes to the spec. New
93         operations just raise an exception.  Also minor cleanup: use
94         raise_expressions.
95         * s-mudido-affinity.adb: Implementations of new operations from
96         * s-mudido.ads, for the platforms that actually support processor
97         affinity. The new Create (which takes a set) now does all the
98         work; the old Create (which takes a range) now just calls the
99         new one. Change error messages to reflect the fact that it's an
100         arbitrary set, not just a range.
102 2014-11-20  Robert Dewar  <dewar@adacore.com>
104         * exp_attr.adb: Minor reformatting.
106 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
108         * exp_util.adb (Make_Subtype_From_Expr): Capture the bounds of
109         all index constracts when the expression is of an array type.
111 2014-11-20  Bob Duff  <duff@adacore.com>
113         * s-taskin.ads: Minor comment improvements.
115 2014-11-20  Bob Duff  <duff@adacore.com>
117         * exp_ch9.adb: Minor comment fixes.
118         * s-taskin.adb (Initialize): Small simplification: pass System_Domain
119         to Initialize_ATCB instead of passing null and then setting the Domain
120         to System_Domain. This requires moving the creation of System_Domain
121         earlier.
122         * s-taprop-linux.adb (Set_Task_Affinity): Only call CPU_SET for
123         processors that have a True in the Domain. This is necessary if the
124         Domain is not all-True values.
126 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
128         * sem_ch13.adb (Has_Good_Profile): a) An stream attribute
129         for the class-wide type of an interface type is not a primitive
130         operation and is not subject to the restrictions of 13.13. (38/3).
131         b) A stream operation for an interface type must be a null
132         procedure, and it cannot be a function.
134 2014-11-20  Bob Duff  <duff@adacore.com>
136         * exp_attr.adb (Attribute_Max_Size_In_Storage_Elements):
137         Eliminate 'Class references from the tree, because gigi crashes on
138         'Class. Also, don't check Nkind (Attr) -- it is known to be
139         N_Attribute_Reference.  Assert that instead.
141 2014-11-20  Bob Duff  <duff@adacore.com>
143         * debug.adb: Minor comment fix.
145 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
147         * a-ciorma.adb: Minor update: move pragma Annotate up.
148         * a-cfdlli.adb: Skip codepeer analysis on this body.
150 2014-11-20  Robert Dewar  <dewar@adacore.com>
152         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
153         Allow use of this pragma with generic unit (package or subprogram).
154         * gnat_rm.texi: Clarify that pragma No_Elaboration_Code_All can
155         be applied to generics.
157 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
159         * sem_aggr.adb (Valid_Limited_Ancestor): Ancestor part of
160         extension aggregate can itself be an extension aggregate, as
161         well as a call that is rewritten as a reference.
163 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
165         * inline.adb (Add_Inlined_Subprogram): Insert all programs
166         generated as a body or whose declaration was provided along with
167         the body.
169 2014-11-20  Javier Miranda  <miranda@adacore.com>
171         * sem.adb (Semantics): Disable expansion if we are compiling a
172         separate unit under configurable runtime. By default separate
173         units are compiled with expansion disabled but under configurable
174         runtime we enable the expansion to get error messages about
175         missing entities.
177 2014-11-20  Robert Dewar  <dewar@adacore.com>
179         * sem_ch13.adb: Minor reformatting.
180         * exp_util.adb (Following_Address_Clause): Handle case of
181         package private part.
183 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
185         * a-cdlili.adb, a-cihama.adb, a-coinve.adb, a-cusyqu.adb, a-ciorse.adb,
186         a-coorma.adb, a-cborma.adb, a-cidlli.adb, a-cimutr.adb, a-ciormu.adb,
187         a-cbprqu.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb, a-coboho.adb,
188         a-cuprqu.adb, a-cbhama.adb, a-rbtgbo.adb, a-cborse.adb, a-comutr.adb,
189         a-ciorma.adb, a-cobove.adb, a-coormu.adb, a-convec.adb, a-cohase.adb,
190         a-coinho.adb, a-coinho-shared.adb, a-cbdlli.adb, a-cbsyqu.adb,
191         a-cbmutr.adb, a-cbhase.adb: Add pragma Annotate to prevent codepeer
192         from analyzing these bodies.
194 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
196         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not apply
197         inlining expansion if function build in place, i.e. has a limited
198         return type.
200 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
202         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Add
203         variables Body_Id, Body_Inputs, Body_Outputs, Spec_Inputs,
204         Spec_Outputs. Synthesize the inputs and outputs of the subprogram
205         when pragma [Refined_]Global is missing and perform legality
206         checks on output states with visible refinement.
207         (Appears_In): Update the comment on usage.
208         (Check_Output_States): New routine.
209         (Collect_Dependency_Clause): New routine.
210         (Collect_Global_Items): Relocated to
211         Analyze_Refined_Global_In_Decl_Part.
212         (Collect_Subprogram_Inputs_Outputs): Add new formal parameters
213         Synthesize and Depends_Seen. The routine can now synthesize inputs
214         and outputs from pragma [Refined_]Depends.
215         (Normalize_Clause): Update the comment on usage. The routine no longer
216         performs normalization of outputs.
217         (Normalize_Clauses): Normalize both inputs and outputs.
218         (Normalize_Output): Relocated to Normalize_Clauses.
219         * sem_prag.ads (Collect_Subprogram_Inputs_Outputs): Add new
220         formal parameters Synthesize and Depends_Seen and update the
221         comment on usage.
223 2014-11-20  Vincent Celier  <celier@adacore.com>
225         PR ada/47500
226         * back_end.adb (Scan_Back_End_Switches): Skip switch -G and
227         its argument.
229 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
231         * sem_ch13.adb (Reset_Loop_Variable): New subsidiary procedure
232         in Build_Predicate_Functions, to handle properly quantified
233         expressions in dynamic predicates.
235 2014-11-20  Robert Dewar  <dewar@adacore.com>
237         * gnatcmd.adb, sem_ch6.adb, exp_dist.adb: Minor reformatting.
238         * sem_util.adb (Bad_Unordered_Enumeration_Reference): Suppress
239         warning (return False) for generic type.
241 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
243         * sem_res.adb (Appears_In_Check): Removed.
244         (Is_OK_Volatile_Context): Rewrite the checks which verify that
245         an effectively volatile object subject to enabled properties
246         Async_Writers or Effective_Reads appears in a suitable context to
247         properly recognize a procedure call.
248         (Within_Check): New routine.
249         (Within_Procedure_Call): New routine.
251 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
253         * sem_ch6.adb: Improve better error message.
255 2014-11-20  Thomas Quinot  <quinot@adacore.com>
257         * freeze.adb, sem_ch13.adb: Minor editing.
259 2014-11-20  Vincent Celier  <celier@adacore.com>
261         * gnatcmd.adb: Remove any special processing for the ASIS tools
262         (gnatpp, gnatmetric, gnatcheck, gnatelim and gnatstup) and simply
263         invoke the tool with the provided switches and arguments.
265 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
267         * sem_ch6.adb (Analyze_Expression_Function): Reject declaration
268         of expression function with identical profile as previous
269         expression function.
271 2014-11-20  Thomas Quinot  <quinot@adacore.com>
273         * sem_ch13.adb: Complete previous change.
274         * exp_dist.adb, exp_dist.ads: Rework PolyORB/DSA arguments processing
275         circuitry to correctly handle the case of non-private limited
276         unconstrained formals.
278 2014-11-20  Robert Dewar  <dewar@adacore.com>
280         * freeze.adb, exp_dbug.adb, sem_ch13.adb: Minor reformatting.
282 2014-11-20  Thomas Quinot  <quinot@adacore.com>
284         * einfo.ads: Fix minor typo in comment.
286 2014-11-20  Robert Dewar  <dewar@adacore.com>
288         * inline.adb, sem_util.adb: Minor reformatting.
290 2014-11-20  Pierre-Marie Derodat  <derodat@adacore.com>
292         * uintp.h (UI_Eq): Declare.
293         * urealp.h (Norm_Den): Declare.
294         (Norm_Num): Declare.
295         * exp_dbug.adb (Is_Handled_Scale_Factor): New.
296         (Get_Encoded_Name): Do not output ___XF GNAT encodings
297         for fixed-point types when these can be handled by GCC's DWARF
298         back-end.
300 2014-11-20  Thomas Quinot  <quinot@adacore.com>
302         * sem_ch13.db (Inherit_Aspects_At_Freeze_Point): Inherit parent
303         SSO even if set through a pragma Default_Scalar_Storage_Order.
304         * freeze.adb (Set_SSO_From_Default): For a type extension,
305         do not let the default SSO override the parent SSO.
306         * gnat_rm.texi: document the above
308 2014-11-20  Robert Dewar  <dewar@adacore.com>
310         * a-stream.ads, a-reatim.ads, a-calend.ads, sinfo.ads, s-crtl.ads,
311         interfac.ads, s-taskin.ads: Minor reformatting.
313 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
315         * sem_prag.adb (Analyze_Pragma): Extensions_Visible can now
316         apply to an expression function.
317         * sem_util.adb (Extensions_Visible_Status): Add special processing
318         for expression functions.
320 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
322         * inline.adb (Build_Body_To_Inline): Remove meaningless aspects
323         and pragmas.
324         (Generate_Subprogram_Body): Remove meaningless aspects and pragmas.
325         (Remove_Aspects_And_Pragmas): New routine.
326         (Remove_Pragmas): Removed.
327         * namet.ads, namet.adb (Nam_In): New versions of the routine.
329 2014-11-20  Thomas Quinot  <quinot@adacore.com>
331         * sem_util.adb: Minor reformatting.
333 2014-11-20  Robert Dewar  <dewar@adacore.com>
335         * sem_prag.adb (Analyze_Pragma, case Linker_Section): Detect
336         duplicate Linker_Section.
338 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
340         * exp_ch4.adb: Add guard for build-in-place boolean op.
342 2014-11-20  Yannick Moy  <moy@adacore.com>
344         * checks.adb (Apply_Scalar_Range_Check): In GNATprove mode,
345         put a range check when an empty range is used, instead of an
346         error message.
347         * sinfo.ads Update comment on GNATprove mode.
349 2014-11-20  Arnaud Charlet  <charlet@adacore.com>
351         * a-stream.ads, s-osinte-linux.ads, a-reatim.ads, a-calend.ads,
352         s-crtl.ads, interfac.ads, s-taskin.ads: Replace uses of 2 ** 63 and
353         2 ** 64 by references to Long_Long_Integer instead, to allow these
354         units to be analyzed by codepeer or spark when using a target
355         configuration file with long_long_size set to 32.
357 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
359         * sem_util.adb (Extensions_Visible_Status): Modify the logic to account
360         for non-SPARK code.
361         (Object_Access_Level): In ASIS mode, recognize
362         a selected component with an implicit dereference so that it
363         yields the same value with and without expansion.
365 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
367         * sem_prag.adb (Analyze_Pragma, case Implemented): In ASIS
368         (compile-only) mode, use original type declaration to determine
369         whether protected type implements an interface.
371 2014-11-20  Yannick Moy  <moy@adacore.com>
373         * a-cfdlli.adb, a-cfdlli.ads, a-cfinve.adb, a-cfinve.ads,
374         * a-cofove.adb, a-cofove.ads: Mark spec as SPARK_Mode, and private
375         part/body as SPARK_Mode Off.
376         * a-cfhama.adb, a-cfhama.ads, a-cfhase.adb, a-cfhase.ads,
377         * a-cforma.adb, a-cforma.ads, a-cforse.adb, a-cforse.ads: Use
378         aspect instead of pragma for uniformity.
380 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
382         * sem_util.adb (Is_EVF_Expression): Include
383         attributes 'Loop_Entry, 'Old and 'Update to the logic.
385 2014-11-20  Bob Duff  <duff@adacore.com>
387         * sem_res.adb (Make_Call_Into_Operator): Don't
388         call Left_Opnd in the case of unary operators, because they only
389         have Right.
391 2014-11-20  Pascal Obry  <obry@adacore.com>
393         * initialize.c (ProcListCS): New extern variable (critical section).
394         (ProcListEvt): New extern variable (handle).
395         (__gnat_initialize)[Win32]: Initialize the ProcListCS critical
396         section object and the ProcListEvt event.
397         * final.c (__gnat_finalize)[Win32]: Properly finalize the
398         ProcListCS critical section and the ProcListEvt event.
399         * adaint.c (ProcListEvt): New Win32 event handle.
400         (EnterCS): New routine to enter the critical section when dealing with
401         child processes chain list.
402         (LeaveCS): As above to exit from the critical section.
403         (SignalListChanged): Routine to signal that the chain process list has
404         been updated.
405         (add_handle): Use EnterCS/LeaveCS, also call SignalListChanged when the
406         handle has been added.
407         (__gnat_win32_remove_handle): Use EnterCS/LeaveCS,
408         also call SignalListChanged if the handle has been found and removed.
409         (remove_handle): Routine removed, implementation merged with the above.
410         (win32_wait): Use EnterCS/LeaveCS for the critical section. Properly
411         copy the PID list locally to ensure that even if the list is updated
412         the local copy remains valid. Add into the hl (handle list) the
413         ProcListEvt handle. This handle is used to signal that a change has
414         been made into the process chain list. This is to ensure that a waiting
415         call can be resumed to take into account new processes. We also make
416         sure that if the handle was not found into the list we start over
417         the wait call. Indeed another concurrent call to win32_wait()
418         could already have handled this process.
420 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
422         * sem_res.adb (Resolve_Actuals): The legality rule concerning
423         the use of class-wide actuals for a non-controlling formal are
424         not rechecked in an instance.
426 2014-11-20  Pascal Obry  <obry@adacore.com>
428         * g-dirope.ads: Minor typo fix.
430 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
432         * exp_attr.adb (Expand_N_Attribute_Reference,
433         Expand_Update_Attribute): Preserve the tag of a prefix by offering
434         a specific view of the class-wide version of the prefix.
436 2014-11-20  Javier Miranda  <miranda@adacore.com>
438         * sem_ch6.adb (Analyze_Function_Return): For functions returning
439         an access to an interface add an implicit conversion to the target
440         type to force the displacement of the pointer to the object to
441         reference the secondary dispatch table.
442         (Check_Anonymous_Return): Skip internally built functions which handle
443         the case of null access when locating the master of a task.
444         * sem_res.adb (Valid_Conversion): Return true for internally
445         generated conversions of access to interface types added to force
446         the displacement of the pointer to reference the corresponding
447         dispatch table.
449 2014-11-20  Pascal Obry  <obry@adacore.com>
451         * adaint.c (add_handle): realloc with a size of +100.
453 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
455         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, propagate
456         back the resolved operands to the original call node, taking
457         into account that the original call may have named associations.
459 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
461         * inline.adb (Has_Some_Contract): Change the
462         guard to test the Ekind of the entity rather than the Analyzed
463         flag. This handles partially analyzed contexts.
465 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
467         * sem_ch8.adb (Analyze_Object_Renaming): In Ada 83 mode, do
468         not reject the renaming of a function result if the renaming
469         does not come for source.
471 2014-11-20  Robert Dewar  <dewar@adacore.com>
473         * exp_util.ads: Minor addition of ??? clause.
475 2014-11-20  Ed Schonberg  <schonberg@adacore.com>
477         * sem_util.adb (Is_Variable): For an Ada 2012 implicit
478         dereference introduced for an indexing opertion, check that the
479         type of the corresponding access discriminant is not an access
480         to constant.
482 2014-11-20  Hristian Kirtchev  <kirtchev@adacore.com>
484         * sem_ch6.adb (Find_Corresponding_Spec): Inherit
485         the ghostness of the matching spec, the same way convention
486         is inherited.
488 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
490         * sem_ch3.adb (Analyze_Object_Declaration): Swap a couple of
491         tests in a condition so Following_Address_Clause is invoked
492         only if need be.
493         * exp_util.ads (Following_Address_Clause): Add small note.
495 2014-11-20  Pascal Obry  <obry@adacore.com>
497         * adaint.c (remove_handle): New local routine without a lock.
498         (win32_wait): fix the critical section to properly protect needed
499         code, use new remove_handle.
500         (__gnat_win32_remove_handle): refactor code with remove_handle.
502 2014-11-20  Eric Botcazou  <ebotcazou@adacore.com>
504         * inline.adb (Analyze_Inlined_Bodies): Iterate between loading
505         of the inlined bodies and instantiation of the generic bodies
506         until no more bodies need to be loaded.
508 2014-11-20  Vincent Celier  <celier@adacore.com>
510         * prj.adb, prj.ads, prj-conf.adb: Minor change of procedure name:
511         Update_Ignore_Missing_With becomes Set_Ignore_Missing_With.
513 2014-11-20  Robert Dewar  <dewar@adacore.com>
515         * exp_ch7.adb, sem_ch5.adb, sem_ch7.adb, sem_util.adb,
516         sem_ch6.adb: Minor reformatting.
518 2014-11-20  Javier Miranda  <miranda@adacore.com>
520         * exp_ch4.adb (Expand_N_Type_Conversion): Add missing implicit
521         conversion to force the displacement of the pointer to the object
522         to reference the secondary dispatch table.
524 2014-11-11  Simon Wright  <simon@pushface.org>
526         PR ada/42978
527         * mlib-utl.adb (ar): Output the options passed to ranlib.
529 2014-11-07  Arnaud Charlet  <charlet@adacore.com>
531         * debug.adb, snames.adb-tmpl (Is_Keyword_Name): Consider 'overriding'
532         a keyword in Ada 95 mode when -gnatd.D is used.
533         * gnat_ugn.texi: Document -gnatd.D.
535 2014-11-07  Vasiliy Fofanov  <fofanov@adacore.com>
537         * gnatls.adb: Lower severity of the program's return value in
538         some common cases.
540 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
542         * sem_ch10.adb (Decorate_Type): The limited view of a tagged
543         type has an empty list of primitive operations.
545 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
547         * sem_ch3.adb (Analyze_Object_Declaration): Update references to SPARK
548         RM.
549         (Process_Full_View): Update references to SPARK RM.
550         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Update references
551         to SPARK RM.
552         (Analyze_Subprogram_Body_Helper): Update references
553         to SPARK RM.
554         * sem_ch7.adb (Analyze_Package_Body_Helper): Update references
555         to SPARK RM.
556         * sem_prag.adb (Check_Ghost_Constituent): Update references to
557         SPARK RM.
558         * sem_res.adb (Check_Ghost_Policy): Update references to SPARK RM.
559         (Resolve_Actuals): Ensure that the actual parameter of a Ghost
560         subprogram whose formal is of mode IN OUT or OUT is Ghost.
561         * sem_util.adb (Check_Ghost_Completion): Update references to
562         SPARK RM.
564 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
566         * exp_ch7.adb (Make_Final_Call): If type of designated object is
567         derived from that of the formal of the Deep_Finalize procedure,
568         add an unchecked conversion to prevent spurious type error.
570 2014-11-07  Robert Dewar  <dewar@adacore.com>
572         * table.adb, inline.adb, einfo.adb, gnat1drv.adb, exp_ch13.adb,
573         exp_fixd.adb, prj-conf.adb, exp_strm.adb, a-cofove.adb, exp_ch3.ads:
574         Minor reformatting.
576 2014-11-07  Robert Dewar  <dewar@adacore.com>
578         * sem_ch12.adb, sem_ch13.adb, prj-tree.adb: Minor reformatting.
580 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
582         * einfo.adb (Set_Is_Checked_Ghost_Entity,
583         Set_Is_Ignored_Ghost_Entity): Add exceptions to the assertion
584         check.
585         * sem_ch6.adb (Check_Conformance): Consider only
586         source subprograms when checking for Ghost conformance.
587         * sem_prag.adb (Analyze_Pragma): Handle the case
588         where pragma Ghost applies to a stand alone subprogram body that
589         acts as a compilation unit.
590         * sem_res.adb: Minor reformatting (merge if statements).
592 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
594         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function):
595         Check whether underlying type is constrained before generating
596         the object declaration for the result object of the function.
598 2014-11-07  Robert Dewar  <dewar@adacore.com>
600         * freeze.adb: Code clean up.
602 2014-11-07  Yannick Moy  <moy@adacore.com>
604         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cfinve.ads,
605         * a-cforma.ads, a-cforse.ads, a-cofove.ads: Mark First_To_Previous,
606         Current_To_Last and Strict_Equal as Ghost.
608 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
610         * sem_ch3.adb: Code clean up.
612 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
614         * freeze.adb (Freeze_Entity): Issue an error regardless of the
615         SPARK_Mode when a ghost type is effectively volatile.
616         * sem_ch3.adb (Analyze_Object_Contract): Decouple the checks
617         related to Ghost from SPARK_Mode.
618         * sem_res.adb (Check_Ghost_Policy): Issue an error regardless
619         of the SPARK_Mode when the Ghost policies do not match.
620         * sem_util.adb (Check_Ghost_Completion): Issue an error regardless
621         of the SPARK_Mode when the Ghost policies do not match.
623 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
625         * sem_ch5.adb (Analyze_Iterator_Specification): return if name
626         in iterator does not have any usable aspect for iteration.
628 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
630         * sem_ch6.adb (Analyze_Null_Procedure): Reject a null procedure
631         that there is a previous null procedure in scope with a matching
632         profile.
634 2014-11-07  Hristian Kirtchev  <kirtchev@adacore.com>
636         * atree.adb (Copy_Separate_Tree): Copy the aspect specifications.
637         * inline.adb (Has_Some_Contract): Do the check only when the
638         related entity has been analyzed.
640 2014-11-07  Ed Schonberg  <schonberg@adacore.com>
642         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Integer):
643         If the restriction No_Floating_Point is in effect, and the
644         operands have the same type, introduce a temporary to hold
645         the fixed point result, to prevent the use of floating-point
646         operations at run-time.
648 2014-11-07  Robert Dewar  <dewar@adacore.com>
650         * freeze.adb (Check_Address_Clause): Minor reformatting
651         (Find_Constant): Minor reformatting.
652         (Freeze_Array_Type): Modify check for packed declarations.
653         (Freeze_Entity): Minor reformatting.
655 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
657         * gnatvsn.ads (Library_Version): Bump to 5.0.
659 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
661         * gcc-interface/trans.c (Subprogram_Body_to_gnu): For a function with
662         copy-in/copy-out parameters and which returns by invisible reference,
663         do not create the variable for the return value; instead, manually
664         generate the indirect copy out statements on exit.
665         (gnat_to_gnu) <N_Simple_Return_Statement>: Adjust accordingly and build
666         a simple indirect assignment for the return value.
668 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
670         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: For a
671         derived untagged type that renames discriminants, be prepared for
672         a type derived from a private discriminated type when changing the
673         type of the stored discriminants.
675 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
677         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu): Set
678         the SLOC of the node on the call to set_jmpbuf_address_soft emitted
679         on block entry with SJLJ.
681 2014-11-05  Eric Botcazou  <ebotcazou@adacore.com>
683         * gcc-interface/utils.c (create_subprog_decl): Move code dealing with
684         conflicting inlining status of nested subprograms to...
685         * gcc-interface/trans.c (check_inlining_for_nested_subprog): ...here.
686         (Attribute_to_gnu) <Attr_Access>: Call it.
687         (Call_to_gnu): Likewise.
688         (Subprogram_Body_to_gnu): Drop the body if it is an inlined external
689         function that has been marked uninlinable.
691 2014-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
693         * aspects.adb Add an entry for aspect Ghost in table
694         Canonical_Aspect.
695         * aspects.ads Add an entry for aspect Ghost in tables
696         Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names and
697         Implementation_Defined_Aspect.
698         * einfo.adb: Flags 277 and 278 are now in use.
699         (Is_Checked_Ghost_Entity): New routine.
700         (Is_Ghost_Entity): Removed.
701         (Is_Ghost_Subprogram): Removed.
702         (Is_Ignored_Ghost_Entity): New routine.
703         (Set_Is_Checked_Ghost_Entity): New routine.
704         (Set_Is_Ignored_Ghost_Entity): New routine.
705         (Write_Entity_Flags): Output flags Is_Checked_Ghost_Entity and
706         Is_Ignored_Ghost_Entity.
707         * einfo.ads: Add new flags Is_Checked_Ghost_Entity
708         and Is_Ignored_Ghost_Entity along with usage in nodes.
709         (Is_Checked_Ghost_Entity): New routine and pragma Inline.
710         (Is_Ghost_Entity): Removed along with synthesized flag
711         description and usage in nodes.
712         (Is_Ghost_Subprogram): Removed along with synthesized flag description
713         and usage in nodes.
714         (Is_Ignored_Ghost_Entity): New routine and pragma Inline.
715         (Set_Is_Checked_Ghost_Entity): New routine and pragma Inline.
716         (Set_Is_Ignored_Ghost_Entity): New routine and pragma Inline.
717         * freeze.adb (Freeze_Entity): A Ghost type cannot be effectively
718         volatile.
719         * par-prag.adb Pragma Ghost does not need special handling by
720         the parser.
721         * repinfo.adb (List_Mechanisms): Remove the entry for convention Ghost.
722         * sem_attr.adb (Analyze_Access_Attribute): Remove obsolete check.
723         * sem_ch3.adb (Analyze_Full_Type_Declaration): Mark
724         the type as Ghost when its enclosing context is Ghost.
725         (Analyze_Incomplete_Type_Decl): Mark the type as Ghost when
726         its enclosing context is Ghost.
727         (Analyze_Number_Declaration): Mark the number as Ghost when its
728         enclosing context is Ghost.
729         (Analyze_Object_Declaration): Mark the object as Ghost when its
730         enclosing context is Ghost. Verify the Ghost policy between
731         initial declaration and completion of a deferred constant.
732         (Analyze_Object_Contract): A Ghost variable cannot be effectively
733         volatile, imported or exported.
734         (Build_Derived_Record_Type): Mark a type extension as Ghost when it
735         implements a Ghost interface.
736         (Build_Record_Type): Inherit volatility and "ghostness" from
737         the parent type.
738         (Check_Completion): A Ghost entity declared
739         in a non-Ghost package does not require completion in a body.
740         (Implements_Ghost_Interface): New routine.
741         (Process_Full_View): Inherit "ghostness" from the partial view. Verify
742         the Ghost policy between the partial and full views. Verify the
743         completion of a Ghost type extension.
744         * sem_ch4.adb (Check_Ghost_Subprogram_Call): Removed.
745         * sem_ch5.adb (Analyze_Assignment): Analyze the left hand side first.
746         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Mark
747         the subprogram as Ghost when its enclosing context is Ghost.
748         (Analyze_Generic_Subprogram_Body): Mark the generic body as Ghost
749         when its enclosing context is Ghost. Verify the Ghost policy
750         between the spec and body.
751         (Analyze_Subprogram_Body_Helper): Mark the body as Ghost when its
752         enclosing context is Ghost. Verify the Ghost policy between the spec
753         and body.
754         (Check_Conformance): A Ghost subprogram profile and a non-Ghost
755         subprogram profile are not subtype conformant.
756         (Convention_Of): Removed.
757         * sem_ch7.adb (Analyze_Package_Body_Helper): Inherit the
758         "ghostness" from the spec. Verify the Ghost policy between
759         the spec and body.
760         (Analyze_Private_Type_Declaration): Mark the type as Ghost when its
761         enclosing context is Ghost.
762         (Requires_Completion_In_Body): New routine.
763         (Unit_Requires_Body): Use Requires_Completion_In_Body.
764         (Unit_Requires_Body_Info): Rename formal parameter P to Pack_Id, update
765         comment on usage and all uses of P in the body. Use
766         Requires_Completion_In_Body.
767         * sem_ch7.ads (Unit_Requires_Body): Rename formal parameter P
768         to Pack_Id, update comment on usage and all uses of P in the body.
769         * sem_ch8.adb (Analyze_Exception_Renaming): Inherit the "ghostness"
770         from the renamed excention.
771         (Analyze_Generic_Renaming): Inherit the "ghostness" from the
772         renamed generic subprogram.
773         (Analyze_Object_Renaming): Inherit the "ghostness" from the renamed
774         object.
775         (Analyze_Package_Renaming): Inherit the "ghostness" from the
776         renamed package.
777         (Analyze_Subprogram_Renaming): Inherit the "ghostness" from the
778         renamed subprogram.
779         * sem_ch11.adb (Analyze_Exception_Declaration): Mark an exception
780         as Ghost when its enclosing context is Ghost.
781         * sem_ch12.adb (Analyze_Generic_Package_Declaration,
782         Analyze_Generic_Subprogram_Declaration): Mark an exception as
783         Ghost when its enclosing context is Ghost.
784         (Preanalyze_Actuals): Remove obsolete check.
785         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
786         for aspect Ghost.
787         (Check_Aspect_At_Freeze_Point): Aspects
788         Depends and Global do no need special checking at freeze point.
789         (Insert_After_SPARK_Mode): Update comment on usage.
790         * sem_mech.adb (Set_Mechanisms): Remove the entry for convention Ghost.
791         * sem_prag.adb Add an entry for pragma Ghost in table Sig_Flags.
792         (Analyze_Abstract_State): Update the grammar of the pragma. Add
793         formal parameter Pack_Id along with comment on usage. Mark an
794         abstract state as Ghost when its enclosing context is Ghost. Add
795         processing for option Ghost.
796         (Analyze_Constituent): Verify
797         that a Ghost abstract state is refined by Ghost constituents.
798         (Analyze_Pragma): "Ghost" is now a valid policy. Add checks
799         related to the use and placement of Check_Policy Ghost. Add
800         processing for pragma Ghost.
801         (Check_Ghost_Constituent): New routine.
802         (Is_Valid_Assertion_Kind): "Ghost" is now a valid assertion.
803         (Process_Convention): Remove obsolete check.
804         (Set_Convention_From_Pragma): Remove the processing for convention
805         Ghost.
806         * sem_res.adb (Check_Ghost_Context): New routine.
807         (Resolve_Call): Verify that a reference to a Ghost entity appears in a
808         suitable context. Verify the Ghost polity between point of declaration
809         and point of use.
810         (Resolve_Entity_Name): Verify that a reference to
811         a Ghost entity appears in a suitable context. Verify the Ghost
812         polity between point of declaration and point of use.
813         * sem_util.adb (Check_Ghost_Completion): New routine.
814         (Check_Ghost_Derivation): New routine.
815         (Incomplete_Or_Partial_View): New routine.
816         (Incomplete_Or_Private_View): Removed.
817         (Is_Ghost_Entity): New routine.
818         (Is_Ghost_Statement_Or_Pragma): New routine.
819         (Is_Subject_To_Ghost): New routine.
820         (Policy_In_Effect): New routine.
821         (Set_Is_Ghost_Entity): New routine.
822         (Within_Ghost_Scope): New routine.
823         * sem_util.ads (Check_Ghost_Completion): New routine.
824         (Check_Ghost_Derivation): New routine.
825         (Incomplete_Or_Partial_View): New routine.
826         (Incomplete_Or_Private_View): Removed.
827         (Is_Ghost_Entity): New routine.
828         (Is_Ghost_Statement_Or_Pragma): New routine.
829         (Is_Subject_To_Ghost): New routine.
830         (Policy_In_Effect): New routine.
831         (Set_Is_Ghost_Entity): New routine.
832         (Within_Ghost_Scope): New routine.
833         * snames.adb-tmpl (Get_Convention_Id): Remove the entry for
834         convention Ghost.
835         (Get_Convention_Name): Remove the entry for convention Ghost.
836         * snames.ads-tmpl Remove the convention id for Ghost. Add a
837         pragma id for Ghost.
839 2014-10-31  Sergey Rybin  <rybin@adacore.com frybin>
841         * gnat_ugn.texi: Add description of --RTS option for ASIS tools.
843 2014-10-31  Olivier Hainque  <hainque@adacore.com>
845         * gcc-interface/Makefile.in (arm-vxworks): Update target pairs.
847 2014-10-31  Vincent Celier  <celier@adacore.com>
849         * prj-part.adb (Parse_Single_Project): Call Set_Display_Name_Of.
850         * prj-proc.adb (Recursive_Process): Call Display_Name_Of to
851         get the project Display_Name.
852         * prj-tree.adb (Display_Name_Of): New function
853         (Set_Display_Name_Of): New procedure.
854         (Create_Project): Call Set_Display_Name_Of.
855         * prj-tree.ads (Display_Name_Of): New function.
856         (Set_Display_Name_Of): New procedure.
857         (Project_Node_Record): New component Display_Name.
858         (Project_Name_And_Node): Remove component Display_Name.
859         * prj-conf.adb (Parse_Project_And_Apply_Config): Use the full
860         Config_File_Path as the Config_File_Name, not just its simple
861         name.
863 2014-10-31  Thomas Quinot  <quinot@adacore.com>
865         * get_scos.adb: Minor reformatting.
867 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
869         * exp_ch5.adb (Expand_Formal_Container_Loop): Create block to
870         capture declaration for cursor to prevent spurious errors when
871         several formal iterators that use the same cursoe name appear
872         in the same context.
874 2014-10-31  Vincent Celier  <celier@adacore.com>
876         * prj-proc.adb (Recursive_Process): Make sure that the project
877         display name is never No_Name.
879 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
881         * sem_attr.adb (Analyze_Access_Attribute): Do not emit error
882         message if reference does not come from source, as in the case
883         for the controlling argument of a dispatching call. Error is
884         diagnosed when call is resolved.
885         * sem_ch4.adb (Complete_Object_Operation); Fix incorrect RM
886         reference in error message.
887         * sem_res.adb (Check_Prefixed_Call): ditto.
889 2014-10-31  Yannick Moy  <moy@adacore.com>
891         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Do not
892         suppress checks when pragma Restrictions (No_Exception) is used in
893         CodePeer or GNATprove mode.
895 2014-10-31  Yannick Moy  <moy@adacore.com>
897         * gnat1drv.adb (Adjust_Global_Switches): Explicitly mark language
898         checks as not suppressed in GNATprove mode.
900 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
902         * sem_elab.adb (Check_Elab_Call): Nothing to check if call is
903         being pre-analyzed.
904         * sem_ch3.adb (Complete_Private_Subtype): If all rep items of full
905         view are those of the base, use rep_item chain of partial view,
906         which may include aspects.
907         * sem_cat.adb (Is_non_Remote_Access_Type): Use underlying type
908         of base type, to handle properly declared subtypes.
910 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
912         * sem_ch12.adb (Analyze_Generic_Package_Declaration): If there
913         is a default storage pool, add a corresponding aspect to the
914         generic unit, to be used at the point of instantiation.
915         (Analyze_Package_Instantiation): If generic unit has aspect
916         specifications, propagate them to instance. If instance has a
917         Default_Storage_Pool aspect, make sure that it overrides the
918         one that may be inherited from the generic.
920 2014-10-31  Vincent Celier  <celier@adacore.com>
922         * prj-attr.adb: Minor removal of attributes of package Linker
923         that have never been used and never been documented.
924         * projects.texi: Add documentation for attribute Runtime.
925         * prj-nmsc.adb (Check_Configuration): Do not report a warning
926         for unknown compilers when the project is externally built.
928 2014-10-31  Vasiliy Fofanov  <fofanov@adacore.com>
930         * prj-conf.adb (Do_Autoconf): Refactor the code so that empty
931         Normalized_Pathname doesn't inhibit the custom Selected_Target
932         value.
933         * prj-conf.adb (Parse_Project_And_Apply_Config): Make sure that
934         Automatically_Generated is correctly set after the first call
935         to Process_Project_And_Apply_Config and not modified after the
936         second call, if any.
938 2014-10-31  Yannick Moy  <moy@adacore.com>
940         * Makefile.rtl, gnat_rm.texi, impunit.adb: Add mention of new library
941         files.
942         * a-cfinve.adb, a-cfinve.ads: New unit for formal indefinite
943         vectors, suitable for use in client SPARK code, also more
944         efficient than the standard vectors.
945         * a-coboho.adb, a-coboho.ads New unit for bounded holders, that
946         are used to define formal indefinite vectors in terms of formal
947         definite ones.
948         * a-cofove.adb, a-cofove.ads: Simplification of the API of formal
949         definite vectors, similar to the API of the new indefinite ones. A
950         new formal parameter of the generic unit called Bounded allows
951         to define growable vectors that use dynamic allocation.
953 2014-10-31  Vincent Celier  <celier@adacore.com>
955         * prj-conf.adb (Look_For_Project_Paths): New procedure
956         (Parse_Project_And_Apply_Config): Initially, parse the project
957         files ignoring missing withs. If there are missing withs, extend
958         the project path with directories rooted at the compiler roots,
959         including directories rooted at the runtime roots, if there are
960         non default runtimes, in the PATH orser.
961         * prj-env.adb (Initialize_Default_Project_Path): Do not add
962         any directory from the prefix if the target is "-".
963         * prj-part.adb (Parse): Initialize the tables, as Parse may be
964         call several times by gprbuild.
965         * prj.adb (Update_Ignore_Missing_With): New procedure.
967 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
969         * sem_aux.adb (First_Stored_Discriminant,
970         Has_Completely_Hidden_Discriminant): When scanning the list of
971         discriminants to locate possibly hidden (inherited) discriminants,
972         ignore itypes that may appear in the entity list, when an access
973         discriminants is constrained by an access attribute reference.
975 2014-10-31  Javier Miranda  <miranda@adacore.com>
977         * freeze.adb (Freeze_Record_Type): Add missing
978         check to verify that all the primitives of an interface type
979         are abstract or null procedures.
981 2014-10-31  Vincent Celier  <celier@adacore.com>
983         * s-os_lib.adb, s-os_lib.ads: New function Non_Blocking_Spawn that
984         redirects standard output and standard error to two different files.
986 2014-10-31  Bob Duff  <duff@adacore.com>
988         * makeutl.ads: Minor comment fix.
990 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
992         * system-linux-x86_64.ads, system-mingw-x86_64.ads (Word_Size,
993         Memory_Size): Use Standard'Word_Size so that the value can be changed
994         via a target configuration file.
996 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
998         * exp_ch4.adb: Minor tweak.
1000 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1002         * sem_ch12.adb (Analyze_Package_Instantiation): Do not inline with
1003         back-end inlining.
1004         (Must_Inline_Subp): Delete.
1005         * sem_util.ads, sem_util.adb (Must_Inline): Likewise.
1007 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1009         * freeze.adb (Freeze_Entity): A default_pool does not apply to
1010         internal access types generated for 'access references.
1011         * sem_prag (Analyze_Pragma, case Default_Pool): If the name is
1012         not null it must designate a variable.
1014 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1016         * inline.adb: Minor reformatting.
1018 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1020         * sem_ch3.adb (Build_Derived_Private_Type): If the derived
1021         type has access discriminants, create itype references for their
1022         anonymous types, so that they are elaborated before the generated
1023         bodies for the primitive operations of the type.
1025 2014-10-31  Tristan Gingold  <gingold@adacore.com>
1027         * prj-conf.adb (Locate_Runtime): Remove procedure.
1029 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1031         * inline.adb (Has_Excluded_Declaration): With back-end inlining,
1032         only return true for nested packages.
1033         (Cannot_Inline): Issue errors/warnings whatever the optimization level
1034         for back-end inlining and remove assertion.
1036 2014-10-31  Sergey Rybin  <rybin@adacore.com frybin>
1038         * table.adb (Tree_Read, Tree_Write): Use parentheses to specify
1039         the desired order of '*' and '/' operations to avoid overflow.
1041 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1043         * exp_ch6.adb (Do_Inline): Remove unreachable code.
1044         (Do_Inline_Always): Likewise.
1046 2014-10-31  Vincent Celier  <celier@adacore.com>
1048         * prj-nmsc.adb (Check_Stand_Alone_Library): Change error message
1049         when library has no Ada interfaces and Library_Standalone is
1050         declared.
1052 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
1054         * sem_ch13.adb (Check_Constant_Address_Clause): Disable checks
1055         on address clauses in CodePeer mode.
1057 2014-10-31  Javier Miranda  <miranda@adacore.com>
1059         * inline.adb (Expand_Inlined_Call): Do not skip
1060         inlining of calls to subprogram renamings.
1062 2014-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
1064         * sem_res.adb (Resolve_Entity_Name): Account for
1065         the case where the immediate parent of a reference to an entity
1066         is a parameter association.
1068 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1070         * inline.adb (Check_And_Split_Unconstrained_Function): Do not
1071         test for the presence of nested subprograms.
1073 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1075         * aspects.ads, aspects.adb: Add aspect Default_Storage_Pool.
1076         * sem_ch13.adb (Analyze_One_Aspect): Generate pragma for aspect
1077         Default_Storage_Pool.
1079 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1081         * sem_ch6.adb: Remove obsolete comment.
1083 2014-10-31  Olivier Hainque  <hainque@adacore.com>
1085         * g-allein.ads: bind vec_sld for pixels to 8hi vsldoi instead
1086         of 4si, as pixels are short.
1088 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1090         * sem_res.adb (Resolve_Call): Do not reject a call to a protected
1091         operation in the spec of a protected type, when the call appears
1092         in a pre/postcondition for another protected operation.
1094 2014-10-31  Tristan Gingold  <gingold@adacore.com>
1096         * prj-conf.adb: Locate_Runtime: Always search the runtime in
1097         project path.
1099 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1101         * inline.adb (Check_Package_Body_For_Inlining): Adjust previous
1102         change to use correct idiom for back-end inlining.
1104 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1106         * freeze.adb (Freeze_Record_Type): Do not check component size
1107         if its type is generic.
1109 2014-10-31  Bob Duff  <duff@adacore.com>
1111         * gnat_rm.texi: Fix documentation w.r.t -gnatw.w.
1113 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1115         * sem_ch4.adb (Try_Container_Indexing): Use Check_Implicit_Dereference.
1116         * sem_util.adb (Check_Implicit_Dereference): a) Handle generalized
1117         indexing as well as function calls.  b)  If the context is a
1118         selected component and whe are in an instance, remove entity from
1119         selector name to force resolution of the node, so that explicit
1120         dereferences can be generated in the instance if they were in
1121         the generic unit.
1123 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1125         * inline.adb (Back_End_Cannot_Inline): Delete.
1126         (Add_Inlined_Subprogram): Do not call it.
1128 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
1130         * exp_ch3.ads (Make_Tag_Assignment): New function, used to
1131         re-initialize the tag in a tagged object declaration with
1132         initial value.
1133         * exp_ch3.adb (Expand_N_Object_Declaration): Use
1134         Make_Tag_Assignment to simplify code for a tagged object
1135         declaration.
1136         * exp_ch13.adb (Expand_Freeze_Entity): Analyze freeze actions
1137         for the freeze node of an object.
1138         * freeze.adb (Check_Address_Clause): Use Make_Tag_Assignment when
1139         needed to extend Freeze_Actions for a tagged object declaration.
1141 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
1143         * gnat_ugn.texi: Further minor improvement to -flto entry.
1145 2014-10-31  Gary Dismukes  <dismukes@adacore.com>
1147         * g-dynhta.adb, g-dynhta.ads: Minor typo fixes and reformatting.
1149 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1151         * exp_ch3.adb (Expand_N_Object_Declaration): Code cleanup.
1153 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1155         * sem_ch5.adb (Analyze_Iterator_Specification): If a subtype
1156         indication is provided, check properly that it covers the element
1157         type of of the container type.
1159 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1161         * g-dynhta.ads, g-dynhta.adb: Add the implementation of a load facto
1162         -based hash table.
1164 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1166         * exp_util.ads, exp_util.adb (Following_Address_Clause): Modify
1167         Has_Following_Address_Clause so that it returns the address
1168         clause if present, rather than a boolean value.
1169         * sem_ch3.adb (Analyze_Object_Declaration): use
1170         Following_Address_Clause.
1171         * exp_ch3.adb (Expand_N_Object_Declaration): When a tagged object
1172         is initialized, insert tag assignment after object is frozen,
1173         which may be after an address clause that follows the declaration.
1175 2014-10-30  Tristan Gingold  <gingold@adacore.com>
1177         * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
1178         system-vxworks-arm.ads, system-freebsd-x86_64.ads,
1179         system-linux-hppa.ads, system-linux-s390.ads,
1180         system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
1181         system-vxworks-sparcv9.ads, system-linux-ppc.ads, system-aix64.ads,
1182         system-linux-sh4.ads, system-solaris-x86.ads, system-linux-x86_64.ads,
1183         system-linux-x86.ads, system-vxworks-ppc.ads, system-hpux.ads,
1184         system-linux-armel.ads, system-darwin-ppc.ads, system-solaris-sparc.ads,
1185         system-vxworks-m68k.ads, system-hpux-ia64.ads, system.ads,
1186         system-solaris-x86_64.ads, system-mingw-x86_64.ads,
1187         system-vxworks-mips.ads, system-linux-sparc.ads, system-freebsd-x86.ads,
1188         system-aix.ads, system-darwin-x86_64.ads, system-vxworks-x86.ads: Add
1189         pragma No_Elaboration_Code_All.
1191 2014-10-30  Eric Botcazou  <ebotcazou@adacore.com>
1193         * gnat_ugn.texi: Minor improvement to -flto entry.
1195 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1197         * sem_util.adb (Inherit_Subprogram_Contract):
1198         Add a guard to protect against enumeration literal overriding.
1199         * sem_ch3.adb, sem_ch4.adb, sem_res.adb, sem_util.adb:
1200         Minor reformatting (add SPARK RM references).
1202 2014-10-30  Robert Dewar  <dewar@adacore.com>
1204         * exp_dbug.adb, opt.ads: Minor reformatting.
1206 2014-10-30  Yannick Moy  <moy@adacore.com>
1208         * inline.adb (Has_Single_Return_In_GNATprove_Mode):
1209         Return False when return statement is inside one or more blocks.
1211 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1213         * exp_ch7.adb (Is_Subprogram_Call): Account for the case where an
1214         object declaration initialized by a function call that returns
1215         an unconstrained result may be rewritted as a renaming of the
1216         secondary stack result.
1218 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1220         * aspects.adb: Add an entry for aspect Extensions_Visible in
1221         table Canonical_Aspect.
1222         * aspects.ads: Add entry for aspect Extensions_Visible in
1223         tables Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names,
1224         Implementation_Defined_Aspect.
1225         * einfo.adb (Get_Pragma): Include pragma Extensions_Visible in
1226         the list of contract pragmas.
1227         * par-prag.adb Pragma Extensions_Visible does not require special
1228         processing from the parser.
1229         * sem_ch3.adb (Analyze_Object_Declaration): Prevent an
1230         implicit class-wide conversion of a formal parameter
1231         of a specific tagged type whose related subprogram is
1232         subject to pragma Extensions_Visible with value "False".
1233         (Check_Abstract_Overriding): Add various overriding checks
1234         related to pragma Extensions_Visible.
1235         (Derive_Subprogram):
1236         A subprogram subject to pragma Extensions_Visible with value
1237         False requires overriding if the subprogram has at least one
1238         controlling OUT parameter.
1239         (Is_EVF_Procedure): New routine.
1240         * sem_ch4.adb (Analyze_Type_Conversion): A formal parameter of
1241         a specific tagged type whose related subprogram is subject to
1242         pragma Extensions_Visible with value "False" cannot appear in
1243         a class-wide conversion.
1244         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove
1245         the assertion to account for pragma Extensions_Visible.
1246         (Check_Overriding_Indicator): An overriding subprogram
1247         inherits the contact of the overridden subprogram.
1248         (New_Overloaded_Entity): An overriding subprogram inherits the
1249         contact of the overridden subprogram.
1250         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
1251         for aspect Extensions_Visible.
1252         (Check_Aspect_At_Freeze_Point): Aspect Extensions_Visible does not
1253         require special processing at the freeze point.
1254         * sem_prag.adb Add an entry for pragma Extensions_Visible in
1255         table Sig_Flags.
1256         (Analyze_Pragma): Ensure that various SPARK
1257         pragmas lack identifiers in their arguments. Add processing for
1258         pragma Extensions_Visible.
1259         (Chain_CTC): Code reformatting.
1260         * sem_res.adb (Resolve_Actuals): A formal parameter of a
1261         specific tagged type whose related subprogram is subject to
1262         pragma Extensions_Visible with value "False" cannot act as an
1263         actual in a subprogram with value "True".
1264         * sem_util.adb (Add_Classification): New routine.
1265         (Add_Contract_Item): Account for pragma Extensions_Visible. Code
1266         reformatting.
1267         (Add_Contract_Test_Case): New routine.
1268         (Add_Pre_Post_Condition): New routine.
1269         (Extensions_Visible_Status): New routine.
1270         (Inherit_Subprogram_Contract): New routine.
1271         (Is_EVF_Expression): New routine.
1272         (Is_Specific_Tagged_Type): New routine.
1273         * sem_util.ads Add type Extensions_Visible_Mode and document all values.
1274         (Add_Contract_Item): Add pragma Extensions_Visible to the
1275         comment on usage.
1276         (Inherit_Subprogram_Contract): New routine.
1277         (Is_EVF_Expression): New routine.
1278         (Is_Specific_Tagged_Type): New routine.
1279         * sinfo.adb (Is_Inherited): New routine.
1280         (Set_Is_Inherited): New routine.
1281         * sinfo.ads Add flag Is_Inherited along with its usage in
1282         nodes.
1283         (Is_Inherited): New routine along with pragma Inline.
1284         (Set_Is_Inherited): New routine along with pragma Inline.
1285         * snames.ads-tmpl: Add predefined name "Extensions_Visible"
1286         and a new Pragma_Id for the pragma.
1288 2014-10-30  Vincent Celier  <celier@adacore.com>
1290         * prj-proc.adb (Process_Case_Construction): Do not look for
1291         the ultimate extending project for a case variable.
1293 2014-10-30  Pierre-Marie Derodat  <derodat@adacore.com>
1295         * exp_dbug.adb, opt.ads (GNAT_Encodings): Import from C. Define
1296         enumerators.
1297         (gnat_encodings): Define a dummy variable for the AAMP back-end.
1298         (Get_Encoded_Name): When -fgnat-encodings=all|gdb, encode names
1299         for all discrete types whose bounds do not match size and do so
1300         only for biased types when -fgnat-encodings=minimal.
1301         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not create ___XA
1302         parallel types when array bounds are constant while the lower bound is
1303         not 1.  Also stop generating them because the bound type is
1304         larger than sizetype.
1305         * gcc-interface/misc.c (gnat_encodings): New.
1307 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1309         * opt.adb (Set_Opt_Config_Switches): For an internal unit,
1310         always reset Default_SSO to ' '.
1312 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1314         * freeze.adb (Freeze_Record_Type): Set SSO from default before
1315         checking SSO consistency.
1317 2014-10-30  Javier Miranda  <miranda@adacore.com>
1319         * inline.adb (Check_Package_Body_For_Inlining):
1320         Cleanup this subprogram to implement exactly the behavior
1321         documented in the spec.
1323 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
1325         * a-comutr.adb, a-cimutr.adb (Insert_Child): Add new variable First.
1326         Update the position after all insertions have taken place.
1328 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
1330         * sem_prag.adb (Analyze_Pragma, case License): Do not perform
1331         analysis of pragma arguments when in CodePeer mode, pragma has
1332         different format on other compilers.
1334 2014-10-30  Thomas Quinot  <quinot@adacore.com>
1336         * s-os_lib.adb: Minor reformatting.
1338 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
1340         * gcc-interface/decl.c, gcc-interface/gigi.h, gcc-interface/misc.c,
1341         gcc-interface/trans.c, gcc-interface/utils.c, gcc-interface/utils2.c:
1342         Remove redundant enum from machine_mode.
1344 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
1346         * gcc-interface/trans.c: Adjust include files.
1347         * gcc-interface/utils.c: Ditto.
1349 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1351         * gcc-interface/utils.c (create_subprog_decl): Adjust condition.
1353 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1355         * gcc-interface/misc.c (gnat_init_options_struct): Parameterize errno
1356         support here instead of...
1357         Do not set flag_delete_dead_exceptions to 1 unconditionally.
1358         (gnat_init_gcc_eh): Set flag_delete_dead_exceptions to 1.
1359         (gnat_init_gcc_fp): ...here.
1361 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1363         * gcc-interface/trans.c (gnat_to_gnu) <N_Real_Literal>: Minor tweaks.
1365 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1367         * gcc-interface/utils.c (create_var_decl_1): For a variable declared
1368         in the unit, set TREE_PUBLIC only if it has static storage duration.
1370 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1372         * gcc-interface/decl.c (gnat_to_gnu_entity): Apply special treatment
1373         of derived packed array types to constrained subtypes only.
1375 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1377         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove
1378         superfluous computation for the max size.
1379         <E_Array_Subtype>: Likewise.  Make sure that the max size calculation
1380         does not overflow at compile time.
1382 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1384         * sem_eval.adb (Check_Non_Static_Context): Do not set
1385         Is_Machine_Number on a literal of a fixed-point type.
1387 2014-10-23  Robert Dewar  <dewar@adacore.com>
1389         * mlib-prj.adb, sem_ch4.adb, exp_ch3.adb: Minor reformatting.
1391 2014-10-23  Pierre-Marie Derodat  <derodat@adacore.com>
1393         * exp_dbug.ads: Update ___XA parallel type specification.
1395 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1397         * sem_ch3.adb (Copy_Array_Subtype_Attributes): Inherit the rep
1398         chain of the source type.
1399         * sem_ch13.adb (Analyze_Aspect_Specifications): Minor
1400         reformatting of an error message.
1401         * sem_util.adb (Inherit_Rep_Item_Chain): Do not inherit a rep
1402         chain that has been inherited already.
1404 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1406         * sem_ch6.adb (Analyze_Expression_Function): Simplify analysis
1407         in generic context, and generate body in this case as well,
1408         to simplify ASIS traversals on the construct.
1410 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1412         * sem_ch4.adb (Complete_Object_Operation): Indicate that the
1413         scope of the operation (s) is referenced, to prevent spurious
1414         warnings about unused units.
1416 2014-10-23  Johannes Kanig  <kanig@adacore.com>
1418         * errout.adb (Error_Msg_Internal): Copy check flag, increment
1419         check msg count.
1420         * erroutc.adb (Delete_Msg) adjust check msg count.
1421         (Output_Msg_Text) handle check msg case (do nothing).
1422         (Prescan_Message) recognize check messages with severity prefixes.
1423         * errutil.adb (Error_Msg) handle check flag, adjust counter.
1425 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1427         * sem_eval.adb (Subtypes_Statically_Match): For a generic actual
1428         type, check for the presence of discriminants in its parent type,
1429         against the presence of discriminants in the context type.
1431 2014-10-23  Tristan Gingold  <gingold@adacore.com>
1433         * adaint.c: __gnat_get_file_names_case_sensitive: Default is
1434         true on arm-darwin.
1436 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1438         * pprint.adb (Expression_Image): Add handling of quantifiers.
1440 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1442         * exp_pakd.adb (Expand_Packed_Element_Reference): If the
1443         prefix is a source entity, generate a reference to it before
1444         transformation, because rewritten node might not generate a
1445         proper reference, leading to spurious warnings.
1447 2014-10-23  Tristan Gingold  <gingold@adacore.com>
1449         * init.c: Fix thinko in previous patch.
1451 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1453         * sem_ch3.adb (Decimal_Fixed_Point_Type_Declaration):
1454         Inherit the rep chain of the implicit base type.
1455         (Floating_Point_Type_Declaration): Inherit the rep chain of the
1456         implicit base type.
1457         (Ordinary_Fixed_Point_Type_Declaration): Inherit the rep chain of the
1458         implicit base type.
1459         (Signed_Integer_Type_Declaration): Inherit the rep chain of the
1460         implicit base type.
1461         * sem_util.ads, sem_util.adb (Inherit_Rep_Item_Chain): New routine.
1463 2014-10-23  Pascal Obry  <obry@adacore.com>
1465         * g-regist.adb, g-regist.ads: Add support for reading 32bit or 64bit
1466         view of the registry.
1468 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1470         * exp_ch3.adb (Expand_N_Object_Declaration): If type is abstract,
1471         return without expanding expression, to prevent subsequent crash.
1472         * freeze.adb: better error message for illegal declaration.
1474 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1476         * sysdep.c (__gnat_localtime_tzoff): Properly delimit the
1477         substring which represents the time zone on VxWorks.
1479 2014-10-23  Vincent Celier  <celier@adacore.com>
1481         * gnatls.adb: If --RTS= was not used, check if there is a default
1482         runtime. If there is none, in verbose mode, indicate that the
1483         default runtime is not available and show only the current
1484         directory in the source and the object search paths.
1486 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1488         * sem_ch6.adb (Process_Formals): A thunk procedure with a
1489         parameter of a limited view does not need a freeze node.
1491 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1493         * sem_ch7.adb (Analyze_Package_Body_Helper):
1494         The logic which hides local entities from external
1495         visibility is now contained in routine Hide_Public_Entities.
1496         (Hide_Public_Entities): New routine. Object and subprogram
1497         renamings are now hidden from external visibility the same way
1498         objects are.
1500 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1502         * sem_attr.adb (Analyze_Attribute): The prefix of attribute Elaborated
1503         does not require freezing, in particular if it denotes a generic
1504         function.
1506 2014-10-23  Yannick Moy  <moy@adacore.com>
1508         * sem_prag.adb (Analyze_Pragma/Pragma_Inline & Pragma_Inline_Always):
1509         Disable analysis in GNATprove mode.
1511 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1513         * mlib-prj.adb: Remove obsolete references to libdecgnat (VMS only).
1515 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
1517         * gnat1drv.adb (Adjust_Global_Switches): Ignore style check
1518         pragmas in codepeer mode.
1520 2014-10-23  Gary Dismukes  <dismukes@adacore.com>
1522         * gnat_rm.texi: Minor syntax fix for pragma Annotate (missing ',').
1524 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1526         * sem_ch12.adb (Inline_Instance_Body): Alphabetize
1527         local variables and constants. Add constants Save_SM and Save_SMP
1528         to capture SPARK_Mode-related attributes.  Compile the inlined
1529         body with the SPARK_Mode of the enclosing context.
1531 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1533         * sinfo.adb (Elaboration_Boolean): Removed.
1534         (Set_Elaboration_Boolean): Removed.
1535         * sinfo.ads Remove attribute Elaboration_Boolean along with its
1536         occurrence in nodes.
1537         (Elaboration_Boolean): Removed along with pragma Inline.
1538         (Set_Elaboration_Boolean): Removed along with pragma Inline.
1540 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1542         * sem_ch3.adb (Constant_Redeclaration): Make error message more
1543         explicit on a deferred constant whose object_definition is an
1544         anonymous array.
1546 2014-10-23  Vincent Celier  <celier@adacore.com>
1548         * gnatls.adb: Never call Targparm.Get_Target_Parameters.
1550 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1552         * sem_ch6.adb (Analyze_Expression_Function): In a generic
1553         context do not create a body, and only pre-analyze the expression,
1554         which may include incomplete views.
1556 2014-10-23  Robert Dewar  <dewar@adacore.com>
1558         * sem_type.adb: Minor code reorganization (use Nkind_In, Ekind_In).
1559         * sem_ch3.adb: Minor reformatting.
1561 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1563         * sem_ch12.adb (Analyze_Associations): If an actual for a formal
1564         object is a call to a parameterless expression function, add
1565         the function to the list of actuals to freeze.
1566         * freeze.adb (Check_Expression_Function): Create freeze nodes of
1567         outer types that may be references in the body of the expression.
1569 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1571         * exp_util.ads, checks.ads: Minor comment reformatting.
1573 2014-10-23  Javier Miranda  <miranda@adacore.com>
1575         * sem_eval (Test_In_Range): Disable removal of range_check for
1576         VM targets.
1578 2014-10-23  Robert Dewar  <dewar@adacore.com>
1580         * erroutc.adb (Validate_Specific_Warnings): Fix test for -W
1581         messages, which got disabled when we unconditionally added an
1582         asterisk at the start of the string.
1584 2014-10-23  Vincent Celier  <celier@adacore.com>
1586         * gnatls.adb: Ensure that "gnatls -l" works even when there is
1587         no default runtime.
1589 2014-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1591         * sem_ch3.adb (Build_Derived_Private_Type): When the parent is
1592         untagged and has discriminants, build the implicit full view after
1593         building the derived type. Capture original declaration and type
1594         here instead of...
1595         (Copy_And_Build): ...here.
1596         * sem_type.adb (Full_View_Covers): Handle the Underlying_Full_View.
1598 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
1600         * checks.adb (Ensure_Valid): Update the subprogram
1601         profile. Propagate the contex attributes to Insert_Valid_Check.
1602         (Insert_Valid_Check): Update the subprogram profile. Propagate
1603         the attributes of the context to Duplicate_Subexpr_No_Checks.
1604         (Validity_Check_Range): Update the subprogram profile. Propagate
1605         the context attribute to Ensure_Valid.
1606         * checks.ads (Ensure_Valid): Update the subprogram profile
1607         along with the comment on usage.
1608         (Insert_Valid_Check): Update the subprogram profile along with the
1609         comment on usage.
1610         (Validity_Check_Range): Update the subprogram profile along with
1611         the comment on usage.
1612         * exp_util.adb (Build_Temporary): New routine.
1613         (Duplicate_Subexpr_No_Checks): Update the subprogram
1614         profile. Propagate the attributes of the context to Remove_Side_Effects.
1615         (Remove_Side_Effects): Update the subprogram profile. Update all calls
1616         to Make_Temporary to invoke Build_Temporary.
1617         * exp_util.ads (Duplicate_Subexpr_No_Checks): Update
1618         the subprogram profile along with the comment on usage.
1619         (Remove_Side_Effects): Update the subprogram profile along with
1620         the comment on usage.
1621         * sem_ch3.adb (Process_Range_Expr_In_Decl): Pass the subtype
1622         to the validity check machinery.  Explain the reason for this
1623         propagation.
1625 2014-10-23  Robert Dewar  <dewar@adacore.com>
1627         * a-strsea.adb: Minor reformatting.
1629 2014-10-23  Thomas Quinot  <quinot@adacore.com>
1631         * bcheck.adb (Check_Consistent_SSO_Default): Exclude internal
1632         units from consistency check.
1633         * gnat_rm.texi (Default_Scalar_Storage_Order): Document that
1634         consistency check excludes run-time units.
1636 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
1638         * a-strsea.adb (Find_Token): Enable constraint checking in this
1639         procedure, so that even when compiling with checks suppressed, as is
1640         the case for the run-time, an exception is raised in this routine when
1641         the input meets the conditions described in RM 2005 A.4.3 (68/1).
1643 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1645         * sem_ch3.adb (Build_Derived_Private_Type): When the parent
1646         is untagged and has discriminants, build the implicit full
1647         view even if the derived type is a completion, and make it
1648         the Underlying_Full_View of the type.
1649         (Copy_And_Build): Fix Is_Completion actual parameter in the calls to
1650         Build_Derived_Type.
1651         (Build_Derived_Record_Type): Likewise.
1653 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1655         * sem_ch13.adb: Add guard to convention setting.
1657 2014-10-20  Robert Dewar  <dewar@adacore.com>
1659         * sem_ch3.adb, prj-proc.adb, prj-proc.ads, prj-conf.adb: Minor
1660         reformatting.
1662 2014-10-20  Robert Dewar  <dewar@adacore.com>
1664         * par-prag.adb (Add_List_Pragma_Entry): New procedure.
1665         * par.adb (P_Pragma): Document requirement to handle multiple calls.
1667 2014-10-20  Robert Dewar  <dewar@adacore.com>
1669         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1670         Fix error of bad inheritance of this pragma from with'ed unit.
1672 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1674         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a subtype,
1675         inherit convention from parent type, because the subtype may
1676         have been declared on a partial view, prior to the pragma on
1677         the parent.
1679 2014-10-20  Olivier Hainque  <hainque@adacore.com>
1680             Tristan Gingold  <gingold@adacore.com>
1682         * gcc-interface/Makefile.in: Handle arm-darwin and VxWorks 7.
1683         Misc clean ups.
1685 2014-10-20  Nicolas Roche  <roche@adacore.com>
1687         * gcc-interface/Make-lang.in: ensure that automatically generated
1688         dependency are referencing generated gnatvsn rather than original
1689         one.
1691 2014-10-20  Gary Dismukes  <dismukes@adacore.com>
1693         * gnat_ugn.texi: Minor reformatting.
1694         * sem_ch3.adb: Minor reformatting.
1696 2014-10-20  Vincent Celier  <celier@adacore.com>
1698         * prj-attr.adb: New project level attribute Runtime.
1699         * prj-conf.adb (Get_Project_Runtimes): New procedure to get
1700         the attributes Runtime declared in the main project, to use
1701         in auto-configuration.
1702         (Get_Or_Create_Configuration_File): Call Get_Project_Runtimes.
1703         * prj-proc.adb (Runtime_Defaults): New table to store
1704         the default values of attributes Runtime (<language>).
1705         (Set_Default_Runtime_For): New procedure to store the default
1706         value of a Runtime (<language>) in table Runtime_Defaults.
1707         (Expression): Use the value stored in table Runtime_Defaults as
1708         the default for Runtime (<language>).
1709         * prj-proc.ads (Set_Default_Runtime_For): New procedure.
1710         * prj.ads (Attribute_Default_Value): New enumerated value
1711         Runtime_Value.
1713 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1715         * sem_ch3.adb (Analyze_Object_Declaration): If the type is
1716         an unconstrained unchecked_union type, rewrite declaration
1717         as a renaming to prevent attempt to retrieve non- existent
1718         discriminants from expression.
1720 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1722         * gnat_ugn.texi: Minor reformatting.
1724 2014-10-20  Tristan Gingold  <gingold@adacore.com>
1726         * init.c (__gnat_is_stack_guard): Don't use mach_vm_region_recurse on
1727         arm-darwin.
1728         * raise-gcc.c: Add ATTRIBUTE_UNUSED to remove warnings for
1729         unused arguments.
1731 2014-10-20  Hristian Kirtchev  <kirtchev@adacore.com>
1733         * sem_attr.adb (Analyze_Attribute): Replace
1734         variables CS and PS with Proc_Id and Subp_Id to better illustrate
1735         their purpose. Account for the case where _Postconditions
1736         has not been generated yet and the context is aspect/pragma
1737         Refined_Post. In that scenario the expected prefix of attribute
1738         'Result is the current scope.
1740 2014-10-20  Robert Dewar  <dewar@adacore.com>
1742         * par-ch4.adb (P_Expression): Handle extraneous comma/semicolon
1743         in middle of expression with logical operators.
1745 2014-10-20  Robert Dewar  <dewar@adacore.com>
1747         * par-ch13.adb (Possible_Misspelled_Aspect): New function.
1749 2014-10-20  Steve Baird  <baird@adacore.com>
1751         * pprint.adb: Improve Expression_Image function.
1753 2014-10-20  Robert Dewar  <dewar@adacore.com>
1755         * gnat_rm.texi: Document No_Tagged_Streams pragma and aspect.
1756         * snames.ads-tmpl: Add entry for pragma No_Tagged_Streams.
1757         * aspects.ads, aspects.adb: Add aspect No_Tagged_Streams.
1758         * einfo.adb (No_Tagged_Streams_Pragma): New field.
1759         * einfo.ads: Minor reformatting (reorder entries).
1760         (No_Tagged_Streams_Pragma): New field.
1761         * exp_ch3.adb: Minor comment update.
1762         * opt.ads (No_Tagged_Streams): New variable.
1763         * par-prag.adb: Add dummy entry for pragma No_Tagged_Streams.
1764         * sem.ads (Save_No_Tagged_Streams): New field in scope record.
1765         * sem_attr.adb (Check_Stream_Attribute): Check stream ops
1766         prohibited by No_Tagged_Streams.
1767         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set
1768         No_Tagged_Streams_Pragma.
1769         (Analyze_Subtype_Declaration): ditto.
1770         (Build_Derived_Record_Type): ditto.
1771         (Record_Type_Declaration): ditto.
1772         * sem_ch8.adb (Pop_Scope): Restore No_Tagged_Streams.
1773         (Push_Scope): Save No_Tagged_Streams.
1774         * sem_prag.adb (Analyze_Pragma, case No_Tagged_Streams): Implement new
1775         pragma.
1777 2014-10-20  Robert Dewar  <dewar@adacore.com>
1779         * sem_ch3.adb, prj-proc.adb, sem_ch4.adb, prj-env.adb, lib.ads,
1780         sem_ch13.adb: Minor reformatting.
1782 2014-10-20  Javier Miranda  <miranda@adacore.com>
1784         * exp_ch3.adb (Expand_N_Object_Declaration): Expand the
1785         declaration of a class-wide limited object containing an
1786         initializing expression into a renaming declaration.  Required to
1787         avoid passing such declaration to the backend and also to avoid
1788         generating an extra copy.
1790 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1792         * inline.adb (List_Inlining_Info): Minor tweaks.
1793         (Add_Inlined_Body): Inline the enclosing package
1794         if it is not internally generated, even if it doesn't come
1795         from source.
1797 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1799         * sem_ch4.adb (Process_Function_Call): If the first actual
1800         denotes a discrete type, the mode must be interpreted as a slice
1801         of an array returned by a parameterless call.
1803 2014-10-20  Vasiliy Fofanov  <fofanov@adacore.com>
1805         * prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit
1806         searching for runtime referenced by a simple name on a project path.
1808 2014-10-20  Olivier Hainque  <hainque@adacore.com>
1810         * vxworks-x86-link.spec: New file.
1811         * system-vxworks-x86.ads: Add pragma Linker_Options to link with
1812         vxworks-x86-link.spec.
1814 2014-10-20  Vincent Celier  <celier@adacore.com>
1816         * opt.ads (Origin_Of_Target): New type.
1817         (Target_Origin): New variable.
1818         * prj-conf.adb (Parse_Project_And_Apply_Config): Record
1819         Target_Value and Target_Origin.  If target was not specified
1820         on the command line with --target=, check if attribute Target
1821         is declared in the main project. If it is and it is not the
1822         native target, parse again the projects so that 'Target get
1823         the new value. Fail if the target has changed again.  Invoke
1824         Process_Project_And_Apply_Config with Do_Phase_1 set to False
1825         is Process_Project_Tree_Phase_1 has already been invoked.
1826         * prj-conf.ads (Process_Project_And_Apply_Config): New Boolean
1827         parameter Do_Phase_1, defaulted to True.
1828         * prj-proc.adb (Expression): Check the special values and
1829         defaults for attribute Target.
1831 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1833         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze
1834         the subprogram spec of the body in full, because it will be
1835         reanalyzed when the declaration itself is analyzed;  otherwise. a
1836         formal may end up duplicated in the list of formals leading to
1837         spurious conformance errors with an existing declaration.
1839 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1841         * sem_ch13.adb: Improve error recovery on illegal aspect.
1843 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
1845         * set_targ.adb (Write_Target_Dependent_Values, Write_Line):
1846         Fix calling C APIs with no trailing NUL char by calling better
1847         wrappers instead.
1849 2014-10-20  Tristan Gingold  <gingold@adacore.com>
1851         * gnat_ugn.texi: Document that gdb users must be in group
1852         _developer on mac os.
1854 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
1856         * a-tgdico.ads: Fix typo.
1858 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1860         * exp_aggr.adb (Convert_To_Assignments): Do not create a
1861         transient scope for a component whose type requires it, if the
1862         context is an initialization procedure, because the target of
1863         the assignment must be visible outside of the block.
1865 2014-10-20  Tristan Gingold  <gingold@adacore.com>
1867         * tracebak.c: Define PC_ADJUST for arm-darwin.
1868         * env.c: Remove darwin specific code.
1869         * raise-gcc.c (__gnat_Unwind_ForcedUnwind): Error on arm-darwin.
1871 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
1873         * sem_ch3.adb (Analyze_Full_Type_Declaration): If previous view
1874         is incomplete rather than private, and full type declaration
1875         has aspects, analyze aspects on the full view rather than
1876         the incomplete view, to prevent freezing anomalies with the
1877         class-wide type.
1879 2014-10-17  Robert Dewar  <dewar@adacore.com>
1881         * exp_ch9.adb (Expand_N_Task_Body): Add defense against
1882         previous errors.
1883         * freeze.adb (Freeze_Entity): Add defense against checking null
1884         scope for generic.
1885         * restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode.
1886         * sem_ch13.adb (Freeze_Entity_Checks): Add defense against
1887         previous errors.
1888         * sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if
1889         in No_Run_Time mode.
1891 2014-10-17  Robert Dewar  <dewar@adacore.com>
1893         * prj-makr.adb: Minor reformatting.
1895 2014-10-17  Robert Dewar  <dewar@adacore.com>
1897         * gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb,
1898         prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible.
1900 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1902         * exp_prag.adb (Undo_Initialization): If Initialize_Scalars
1903         is enabled, code will be generated for some composite types
1904         to initialize an object after its declaration. If there is
1905         a subsequent Import pragma for the object, that code must be
1906         removed as specified byw the semantics of the pragma, and to
1907         prevent out-of-order elaboration issues in the back-end.
1909 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1911         * exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator
1912         wrapping mechanism under debug flag -gnatd.h.
1913         * debug.adb: Claim debug switch -gnatd.h.
1915 2014-10-17  Doug Rupp  <rupp@adacore.com>
1917         * gcc-interface/Makefile.in: Enable the socket runtime bits
1918         for Android.
1920 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1922         * sem_ch13.adb (Add_Invariants, Replace_Type_References): Do
1923         not perform the replacement on the expression for an inherited
1924         class-wide invariant if in ASIS_Mode and the type reference is
1925         already the prefix of a 'Class attribute reference: the expression
1926         has already been preanalyzed and the replacement performed when
1927         first encountered on the declaration of the parent type.
1929 2014-10-17  Robert Dewar  <dewar@adacore.com>
1931         * sem_ch5.adb, sem_ch7.adb, prj-nmsc.adb, sem_ch13.adb, exp_ch3.adb:
1932         Minor reformatting.
1934 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1936         * exp_ch3.adb (Build_Component_Invariant_Call): Retrieve Invariant
1937         subprogram from base type.
1938         * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1939         subprogram for private type, not any of its subtypes.
1940         * sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set type
1941         of procedure entity, because a call to it may be generated in
1942         a client unit before the corresponding subprogram declaration
1943         is analyzed.
1945 2014-10-17  Vincent Celier  <celier@adacore.com>
1947         * prj-nmsc.adb (Get_Directories): Do not create directories
1948         when a project is abstract.
1950 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1952         * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
1953         of iteration is given by an expression that is not an array type,
1954         verify that its type implements an iterator iterface.
1956 2014-10-17  Robert Dewar  <dewar@adacore.com>
1958         * sem_attr.adb (Eval_Attribute): Ensure that attribute
1959         reference is not marked as being a static expression if the
1960         prefix evaluation raises CE.
1962 2014-10-17  Robert Dewar  <dewar@adacore.com>
1964         * exp_pakd.adb: Move bit packed entity tables to spec.
1965         * exp_pakd.ads: Move bit packed entity tables here from body.
1966         * freeze.adb (Freeze_Array_Type): Check that packed array type
1967         is supported.
1968         * rtsfind.adb (PRE_Id_Table): New table (Entity_Not_Defined):
1969         Specialize messages using PRE_Id_Table.
1970         * uintp.ads, uintp.adb (UI_Image): New functional form.
1972 2014-10-17  Robert Dewar  <dewar@adacore.com>
1974         * aspects.ads, aspects.adb: Add Suppress_Initialization aspect.
1975         * einfo.ads, einfo.adb (Suppress_Initialization): Now applies to
1976         E_Variable.
1977         * exp_ch3.adb (Default_Initialize_Object): Handle
1978         Suppress_Initialization.
1979         * exp_prag.adb (Expand_Pragma_Suppress_Initialization): New
1980         procedure (Expand_N_Pragma): Handle Suppress_Initialization
1981         (Expand_Pragma_Import_Or_Interface): Use Undo_Initialization
1982         (Undo_Initialization): New procedure.
1983         * sem_prag.adb (Analyze_Pragma, case Suppress_Initialization):
1984         This is now allowed for E_Variable case.
1985         * gnat_rm.texi: Document new aspect Suppress_Initialization
1986         Suppress_Initialization aspect/pragma can apply to variable.
1987         * einfo.ads: Minor reformatting.
1989 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
1991         * spark_xrefs.ads: Add documentation pointer to Flow_Computed_Globals.
1993 2014-10-17  Robert Dewar  <dewar@adacore.com>
1995         * cstand.adb (Create_Standard): Mark Short_Integer as
1996         implementation defined.
1997         * sem_util.adb (Set_Entity_With_Checks): Avoid blow up for
1998         compiler built with assertions for No_Implementation_Identifiers test.
2000 2014-10-17  Robert Dewar  <dewar@adacore.com>
2002         * aspects.ads: Documentation fix, aspect Lock_Free does have a
2003         corresponding pragma.
2004         * gnat_rm.texi: Document implementation defined boolean aspects
2005         as boolean.
2007 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2009         * sem_ch13.adb (Add_Invariants): For a class-wide type invariant,
2010         preserve semantic information on the invariant expression
2011         (typically a function call) because it may be inherited by a
2012         type extension in a different unit, and it cannot be resolved
2013         by visibility elsewhere because it may refer to local entities.
2015 2014-10-17  Robert Dewar  <dewar@adacore.com>
2017         * gnat_rm.texi: Document that string literal can be used for
2018         pragma Warnings when operating in Ada 83 mode.
2020 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2022         * freeze.adb (Find_Aggregate_Component_Desig_Type): New
2023         subsidiary function to Freeze_ Expression, used to determine
2024         whether an aggregate for an array of access types also freezes the
2025         designated type, when some aggregate components are allocators.
2027 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2029         * a-strsea.adb (Find_Token): AI05-031 indicates that the
2030         procedure must raise Index_Error when Source is not empty and
2031         the From parameter is not within the range of the Source string.
2033 2014-10-17  Robert Dewar  <dewar@adacore.com>
2035         * sem_prag.adb (Is_Static_String_Expression): Allow string
2036         literal in Ada 83 mode.
2038 2014-10-17  Vincent Celier  <celier@adacore.com>
2040         * prj-conf.adb (Get_Config_Switches): In CodePeer mode, do
2041         not take into account any compiler command from package IDE.
2043 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2045         * sem_ch12.adb (Build_Function_Wrapper): The formals of the
2046         wrapper must have the same identifiers as those of the formal
2047         subprogram, because calls within the generic may use named
2048         associations.
2050 2014-10-17  Robert Dewar  <dewar@adacore.com>
2052         * sem_ch3.adb, a-strsea.adb: Minor reformatting.
2053         * par-ch6.adb (P_Subprogram): Fix bad handling of null procedures.
2055 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2057         * sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect
2058         specfications from original type declaration to declaration of
2059         implicit base, because original node is rewritten as a subtype
2060         declaration on which type aspects do not belong.
2062 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
2064         * sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type
2065         inherits the attributes related to pragma Default_Initial_Condition
2066         from its parent type.
2068 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2070         * a-strsea.adb (Index - versions with a From parameter):
2071         According to AI05-056, the Index functions with a From parameter
2072         return 0 if the source is an empty string.
2074 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
2076         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable
2077         the consistency checks in ASIS mode.
2079 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
2081         * s-expmod.ads: Minor typo fix.
2083 2014-10-17  Robert Dewar  <dewar@adacore.com>
2085         * sem_util.adb: Minor reformatting.
2087 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2089         * sem_ch12.adb (Build_Function_Wrapper): Build wrappers for
2090         actuals that are defaulted subprograms of the formal subprogram
2091         declaration.
2093 2014-10-17  Robert Dewar  <dewar@adacore.com>
2095         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the
2096         implementation base type.
2097         * sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record
2098         operands are always expanded out into component comparisons.
2100 2014-10-17  Robert Dewar  <dewar@adacore.com>
2102         * s-vallli.adb: Minor comment correction.
2103         * s-valuti.ads: Minor comment reformatting.
2105 2014-10-17  Robert Dewar  <dewar@adacore.com>
2107         * gnat_rm.texi: Document System.Atomic_Counters.
2108         * impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the
2109         list of user- accessible units added as children of System.
2110         * s-atocou.ads: Update comment.
2112 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
2114         * s-expmod.ads: Add comments.
2116 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
2118         * sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation
2119         of all attributes related to pragma Default_Initial_Condition.
2120         (Build_Derived_Type): Propagation of all attributes related
2121         to pragma Default_Initial_Condition.
2122         (Process_Full_View): Account for the case where the full view derives
2123         from another private type and propagate the attributes related
2124         to pragma Default_Initial_Condition to the private view.
2125         (Propagate_Default_Init_Cond_Attributes): New routine.
2126         * sem_util.adb: Alphabetize various routines.
2127         (Build_Default_Init_Cond_Call): Use an unchecked type conversion
2128         when calling the default initial condition procedure of a private type.
2129         (Build_Default_Init_Cond_Procedure_Declaration): Prevent
2130         the generation of multiple default initial condition procedures.
2132 2014-10-17  Robert Dewar  <dewar@adacore.com>
2134         * prj-conf.adb: Revert previous change.
2136 2014-10-17  Robert Dewar  <dewar@adacore.com>
2138         * lib-writ.ads, s-valdec.ads: Minor reformatting.
2140 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
2142         * sem_ch12.adb: Additional work on function wrappers.
2144 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
2146         * exp_util.adb (Possible_Bit_Aligned_Component): Also recurse
2147         on the renamed object of renamings.
2149 2014-10-17  Vincent Celier  <celier@adacore.com>
2151         * prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer
2152         mode, always use the native target.
2154 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
2156         * gcc-interface/misc.c: Adjust include files.
2158 2014-10-13  Eric Botcazou  <ebotcazou@adacore.com>
2159             Alan Modra  <amodra@gmail.com>
2161         PR ada/63225
2162         * uintp.adb (Vector_To_Uint): Move from here to...
2163         * uintp.ads (UI_Vector): Make public.
2164         (Vector_To_Uint): ...here.
2166 2014-10-10  Robert Dewar  <dewar@adacore.com>
2168         * freeze.adb, sem_attr.adb: Minor reformatting.
2170 2014-10-10  Johannes Kanig  <kanig@adacore.com>
2172         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
2173         a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
2174         to container type.
2176 2014-10-10  Vincent Celier  <celier@adacore.com>
2178         * prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
2179         any configuration switches from the project file.
2181 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2183         * sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
2184         (Build_Function_Wrapper): New function, to construct a wrapper
2185         function for actuals that are functions with an arbitrary
2186         number of parameters. Used in GNATProve mode to simplify proof
2187         propagation in instantiations.
2189 2014-10-10  Robert Dewar  <dewar@adacore.com>
2191         * freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
2192         code clean up.
2194 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2196         * sem_res.adb (Is_OK_Volatile_Context): Allow
2197         a volatile object reference to appear as the expression of a
2198         type conversion.
2200 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2202         * sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
2203         Aspect specification is legal on a local instantiation of a
2204         library-level generic unit.
2206 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2208         * gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
2209         if inlining has been enabled via -gnatn and the target is not GCC.
2211 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2213         * freeze.adb (Freeze_Entity): Freezing a subprogram does
2214         not always freeze its profile.  In particular, an attribute
2215         reference that takes the access type does not freeze the types
2216         of the formals.
2218 2014-10-10  Robert Dewar  <dewar@adacore.com>
2220         * errout.adb (Adjust_Name_Case): New procedure.
2221         (Set_Msg_Node): Use Adjust_Name_Case.
2222         * errout.ads (Adjust_Name_Case): New procedure.
2223         * exp_intr.adb (Add_Source_Info): Minor code reorganization
2224         (use Ekind_In).
2225         (Write_Entity_Name): Use Errout.Adjust_Name_Case.
2226         * sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
2227         and fix up entries in Sig_Flags, and correct logical errors in
2228         function itself.
2229         * sprint.adb (Sprint_Node_Actual): Properly print string for
2230         raise statement.
2232 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2234         * sem_ch3.adb (Analyze_Object_Declaration): For an object of an
2235         anonymous array type with delayed aspects, defer freezing of
2236         type until object itself is frozen.
2237         * freeze.adb (Freeze_Entity): When freezing an object of an
2238         anonymous array type with delayed aspects, remove freeze node of
2239         object after freezing type, to prevent out-of-order elaboration
2240         in the back-end. The initialization call for the object has
2241         already been constructed when expanding the object declaration.
2243 2014-10-10  Robert Dewar  <dewar@adacore.com>
2245         * exp_intr.adb (Write_Entity_Name): Moved to outer level
2246         (Write_Entity_Name): Properly handle operator names
2247         (Expand_Source_Info): New procedure.
2248         * exp_intr.ads (Add_Source_Info): New procedure.
2250 2014-10-10  Robert Dewar  <dewar@adacore.com>
2252         * butil.ads: Minor reformatting.
2253         * sem_ch5.adb: Code clean up.
2255 2014-10-10  Robert Dewar  <dewar@adacore.com>
2257         * exp_ch11.adb (Expand_N_Raise_Statement): Handle
2258         Prefix_Exception_Messages.
2259         * opt.adb: Handle new flags Prefix_Exception_Message[_Config].
2260         * opt.ads: New flags Prefix_Exception_Message[_Config].
2261         * par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
2262         * snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
2263         * sem_prag.adb: Implement new pragma Prefix_Exception_Messages
2264         * gnat_rm.texi: Document pragma Prefix_Exception_Messages.
2266 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2268         * sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
2269         raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).
2271 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2273         * sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
2274         contain pragmas generated for loop invariants and type predicates.
2275         Clarify use of this subprogram.
2277 2014-10-10  Yannick Moy  <moy@adacore.com>
2279         * sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
2280         contracts.
2281         * errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
2282         SPARK_Mode is Off.
2284 2014-10-10  Vadim Godunko  <godunko@adacore.com>
2286         * a-stwima.adb (To_Sequence): Compute size of result array.
2288 2014-10-10  Javier Miranda  <miranda@adacore.com>
2290         * gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
2291         sources of the example to avoid a warning when the Ada files are
2292         automatically generated by the binding generator.
2294 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2296         * sem_attr.adb (Resolve_Attribute, case 'Update): Set
2297         Do_Range_Check on the expression of a record component
2298         association when needed, as is done for array components, when
2299         the corresponding type is a scalar type.
2301 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
2303         * a-coinho-shared.adb: Minor typo fix.
2304         * prj-env.ads: Minor reformatting.
2306 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
2308         * sem_res.adb (Resolve_String_Literal): Do not
2309         generate a string literal subtype for the default expression of
2310         a formal parameter in GNATprove mode.
2312 2014-10-10  Yannick Moy  <moy@adacore.com>
2314         * errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.
2316 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2318         * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
2319         declaration for loop parameter before rest of loop, and set
2320         entity kind to prevent assignments to it in the user code.
2321         * sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
2322         loop parameter in an element iteration over o formal container.
2324 2014-10-10  Robert Dewar  <dewar@adacore.com>
2326         * gnat_ugn.texi: Document use of user-level routines to handle
2327         e.g. col major arrays.
2329 2014-10-10  Doug Rupp  <rupp@adacore.com>
2331         * s-osinte-android.adb: Fix misspelling.
2332         * gsocket.h: Tweak the Android quirks.
2334 2014-10-10  Robert Dewar  <dewar@adacore.com>
2336         * errout.ads (SPARK_Msg_N): Fix spec to match change in body.
2338 2014-10-10  Robert Dewar  <dewar@adacore.com>
2340         * sem_ch13.adb: Minor code reorganization.
2342 2014-10-10  Pat Rogers  <rogers@adacore.com>
2344         * gnat_rm.texi: Text now indicates pragma No_Run_Time is not
2345         for users.
2347 2014-10-10  Vadim Godunko  <godunko@adacore.com>
2349         * a-coinho-shared.adb: Add minor comment.
2350         * a-stzmap.adb (To_Sequence): Compute size of result array.
2352 2014-10-10  Javier Miranda  <miranda@adacore.com>
2354         * exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
2355         if-stmt to match its current documentation.
2357 2014-10-10  Robert Dewar  <dewar@adacore.com>
2359         * sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
2360         freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
2361         sem_ch6.adb, sem_cat.adb, sem_disp.adb
2362         (Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
2363         throughout where appropriate.
2365 2014-10-10  Bob Duff  <duff@adacore.com>
2367         * a-coinho-shared.ads: Minor reformatting.
2368         * s-traceb.adb: Minor clean up.
2370 2014-10-10  Robert Dewar  <dewar@adacore.com>
2372         * ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
2373         * ali.ads (GNATprove_Mode): New component in ALI table.
2374         (GNATprove_Mode_Specified): New global.
2375         * gnatbind.adb (Gnatbind): Give fatal error if any file compiled
2376         in GNATProve mode.
2377         * lib-writ.ads, lib-writ.adb (GP): New flag on P line for
2378         GNATProve_Mode.
2380 2014-10-10  Javier Miranda  <miranda@adacore.com>
2382         * exp_ch3.adb (Build_Init_Procedure): Adding assertion.
2383         (Build_Init_Statement): Ensure that statements
2384         associated with the parent components are located at the beginning
2385         of the returned list of statements.
2387 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
2389         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
2390         view of a private type T that has a type invariant is a scalar
2391         or constrained array type, the base type created for the full
2392         view has the same type invariant.
2394 2014-10-10  Robert Dewar  <dewar@adacore.com>
2396         * exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
2397         reorganization.
2399 2014-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2401         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
2402         * gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
2404 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
2406         * gcc-interface/Make-lang.in (check_acats_numbers0,
2407         check_acats_numbers1, check_acats_numbers2, check_acats_numbers3,
2408         check_acats_numbers4, check_acats_numbers5, check_acats_numbers6,
2409         check_acats_numbers, check_acats_subdirs): New variables.
2410         (check_acats_targets): Use $(check_acats_subdirs).
2411         (check-acats, check-acats%): Rewritten so that for parallelized
2412         testing each job runs all the chapters files, with
2413         GCC_RUNTEST_PARALLELIZE_DIR set in environment.  Prepare the support
2414         directory sequentially and share it.
2415         (check-acats-subtargets): Always print just check-acats.
2417 2014-08-25  Martin Liska  <mliska@suse.cz>
2419         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to
2420         new cgraph interface.
2421         (gnat_write_global_declarations): Likewise.
2423 2014-08-13  Sylvestre Ledru  <sylvestre@debian.org>
2425         * 9drpc.adb: Fix a typo
2426         * s-interr.ads: Likewise
2427         * s-taskin.ads: Likewise
2428         * s-traces.ads: Likewise
2429         * sysdep.c: Likewise
2431 2014-08-12  Joel Sherrill <joel.sherrill@oarcorp.com>
2433         * socket.c: For RTEMS, use correct prototype of gethostbyname_r().
2434         * gsocket.h Add include of <unistd.h> on RTEMS.
2436 2014-08-11  Joel Sherrill <joel.sherrill@oarcorp.com>
2438         * s-osinte-rtems.adb: Correct formatting of line in license block.
2440 2014-08-04  Claire Dross  <dross@adacore.com>
2442         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
2443         For an instance, look at the scope before the generic parent.
2445 2014-08-04  Yannick Moy  <moy@adacore.com>
2447         * lib-writ.ads: Update comments.
2448         * sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add
2449         parameters to filter inherited subprograms.
2451 2014-08-04  Robert Dewar  <dewar@adacore.com>
2453         * gnat_rm.texi: Add section on use of address clause for memory
2454         mapped I/O.
2456 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2458         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in
2459         particular the subtype created for a generic actual, inherits
2460         invariant information from the base type.
2462 2014-08-04  Robert Dewar  <dewar@adacore.com>
2464         * aspects.ads, aspects.adb: Add entries for aspect Obsolescent.
2465         * gnat_rm.texi: Add documentation for aspect Obsolescent.
2466         * sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect
2467         Obsolescent.
2468         (Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent.
2469         * s-osprim-mingw.adb: Minor reformatting.
2470         * sem_res.adb (Is_Atomic_Ref_With_Address): New function
2471         (Resolve_Indexed_Component): Rework warnings for non-atomic access
2472         (Resolve_Selected_Component): Add warnings for non-atomic access.
2474 2014-08-04  Doug Rupp  <rupp@adacore.com>
2476         * g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec
2477         formal to long_long.
2478         * g-calend.ads (timeval): Bump up size to accomodate sec type.
2479         * s-taprop-linux.adb (timeval_to_duration): Change sec formal to
2480         long_long
2481         * s-osprim-posix.adb (timeval): Bump up size to accomodate
2482         new sec type.
2483         (timeval_to_duration): Change sec formal to Long_Long_Integer
2484         * s-osinte-darwin.adb (timeval): Bump up
2485         size to accomodate new sec type.
2486         (timeval_to_duration): Change sec formal to long_long
2487         * s-osinte-android.adb: Likewise.
2488         * cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change
2489         sec formal from long to long long.
2491 2014-08-04  Robert Dewar  <dewar@adacore.com>
2493         * sem_res.adb (Resolve_Qualified_Expression): Make sure
2494         Do_Range_Check flag gets set.
2496 2014-08-04  Robert Dewar  <dewar@adacore.com>
2498         * einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
2499         * exp_ch3.adb (Build_Array_Init_Proc): Use
2500         Is_Standard_String_Type.
2501         (Expand_Freeze_Array_Type): ditto.
2502         (Get_Simple_Init_Val): ditto.
2503         (Needs_Simple_Initialization): ditto.
2504         * sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
2505         * sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
2507 2014-08-04  Pascal Obry  <obry@adacore.com>
2509         * adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
2510         _stprintf which insert garbage into the wfull_path buffer.
2512 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2514         * cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
2515         code.
2516         * fe.h: Minor reformatting.
2518 2014-08-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2520         * cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
2522 2014-08-04  Robert Dewar  <dewar@adacore.com>
2524         * par-ch13.adb (Get_Aspect_Specifications): Improve error
2525         recovery, fixing a -gnatQ bomb.
2527 2014-08-04  Yannick Moy  <moy@adacore.com>
2529         * sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode,
2530         do not generate two Itypes with the same name for an array
2531         definition.
2532         * sinfo.ads: Expand doc on GNATprove mode.
2534 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2536         * exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization
2537         master and storage pool attributes on the root type of an
2538         anonymous access type.
2539         * exp_ch4.adb (Expand_N_Allocator): Set the finalization master
2540         and storage pool attributes on the root type of an anonymous
2541         access type.
2543 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2545         * exp_ch3.adb: Minor reformatting.
2546         * tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed.
2547         * tracebak.c: Remove use of above files.
2548         * gcc-interface/Makefile.in: Update dependencies.
2550 2014-08-04  Pierre-Marie Derodat  <derodat@adacore.com>
2552         * gcc-interface/utils.c (gnat_set_type_context): Also set the
2553         context for parallel types' TYPE_STUB_DECL.  Do not change
2554         anything if the context is already set for them.
2555         (gnat_pushdecl): Update the comment for calls to
2556         gnat_set_type_context to mention parallel types.
2557         (add_parallel_type): When adding a context-less parallel type to
2558         a type that has a context, propagate the context from the latter
2559         type to the former.
2560         (process_deferred_decl_context): Call gnat_set_type_context
2561         rather than manually setting the type context.
2562         (build_unc_object_type): Call gnat_set_type_context on the
2563         template type.
2565 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2567         * exp_ch5.adb (Expand_N_Case_Statement): If a choice is a
2568         subtype indication and the case statement has only two choices,
2569         replace subtype indication with its range, because the resulting
2570         membership test cannot have a subtype indication as an operand.
2572 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2574         * exp_ch3.adb: Update comments, minor reformatting.
2576 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2578         * sem_ch3.adb (Analyze_Declarations): Explain why the bodies of
2579         the default initial condition procedures are build here.
2580         * sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the
2581         analyzed argument of pragma Default_Initial_Condition in some
2582         dummy code as GNATprove mode disables assertions, but still
2583         needs to see the argument.
2585 2014-08-04  Robert Dewar  <dewar@adacore.com>
2587         * exp_ch6.adb, sem_util.adb: Minor reformatting.
2589 2014-08-04  Olivier Hainque  <hainque@adacore.com>
2591         * a-comutr.ads: Set Root_Node_Type'Alignment to
2592         Standard'Maximum_Alignment, so that it is at least as large as
2593         the max default for Tree_Node_Type'Alignment.
2595 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2597         * exp_ch3.adb (Freeze_Type): Remove the generation and inheritance
2598         of the default initial condition procedure [body].
2599         * sem_ch3.adb (Analyze_Declarations): Create the bodies of
2600         all default initial condition procedures at the end of private
2601         declaration analysis.
2602         * sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New
2603         routine.
2604         (Build_Default_Init_Cond_Procedure_Body): Merged in the
2605         processing of routine Build_Default_Init_Cond_Procedure_Bodies.
2606         * sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies):
2607         New routine.
2608         (Build_Default_Init_Cond_Procedure_Body): Removed.
2610 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2612         * sem_elab.adb (Check_Elab_Call): Do not check a call to a
2613         postcondtion.
2614         * exp_ch6.adb (Expand_Call): Clarify handling of inserted
2615         postcondition call.
2617 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2619         * sem_prag.adb (Analyze_Pragma): Ensure that an
2620         internally generated spec for a stand alone body is recognized
2621         as a proper context for pragma SPARK_Mode.
2623 2014-08-04  Robert Dewar  <dewar@adacore.com>
2625         * erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors.
2627 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2629         * adabkend.adb (Scan_Back_End_Switches): Ignore extra -o
2630         when -gnatO has already been specified, for compatibility
2631         with gcc driver.
2632         (Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in
2633         codepeer mode.
2634         * g-expect.ads: Fix typo.
2636 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2638         * exp_ch4.adb (Insert_Dereference_Action): the actual Size
2639         must account for the bounds template if the designated type is
2640         an unconstrained array.
2642 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2644         * a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add
2645         SPARK_Mode in the body.
2646         * sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original
2647         way to verify the consistency of SPARK_Mode between a spec and
2648         a body.
2649         * sem_ch12.adb (Analyze_Package_Instantiation): Remove the call
2650         to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
2651         manually.
2652         (Analyze_Subprogram_Instantiation): Remove the call to
2653         Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
2654         manually.
2655         * sem_prag.adb (Analyze_Pragma): Remove local variable
2656         Inst_Id. SPARK_Mode can no longer be applied to a package or
2657         subprogram instantiation.
2658         * sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode):
2659         Removed.
2661 2014-08-04  Robert Dewar  <dewar@adacore.com>
2663         * sem_prag.adb, osint.adb, osint.ads: Minor reformatting.
2665 2014-08-04  Yannick Moy  <moy@adacore.com>
2667         * sem_ch3.adb (Derive_Type_Declaration,
2668         Process_Discriminants): Remove SPARK-specific legality checks.
2670 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2672         * g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram.
2673         * gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support
2674         for HMAC.
2676 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2678         * sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the
2679         compatibility of SPARK_Mode between a spec and a body, use the
2680         SPARK_Mode of the public part.
2681         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use
2682         the already available routine to exchange the aspects between
2683         the template and its copy. Analyze the aspects of copy to
2684         ensure that the corresponding pragmas perform their semantic
2685         effects.  The partial analysis of aspects is no longer needed.
2686         (Analyze_Package_Instantiation): Save and restore the SPARK_Mode
2687         of the context.
2688         (Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of
2689         the context.
2690         * sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram
2691         instantiation which does not come from source.
2693 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2695         * a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add
2696         SPARK_Mode pragmas to the public and private part of the unit.
2697         * sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived
2698         type cannot have discriminants if the parent type already has
2699         discriminants.
2700         (Process_Discriminants): Ensure that the type of a discriminant is
2701         discrete.
2702         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on
2703         SPARK_Mode compatibility between a spec and a body can now be
2704         safely performed while processing a generic.
2705         * sem_ch7.adb (Analyze_Package_Body_Helper): The check on
2706         SPARK_Mode compatibility between a spec and a body can now be
2707         safely performed while processing a generic.
2708         * sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be
2709         safely analyzed when processing a generic.
2711 2014-08-04  Nicolas Roche  <roche@adacore.com>
2713         * g-dirope.adb: Minor reformating.
2715 2014-08-04  Robert Dewar  <dewar@adacore.com>
2717         * sem_ch6.adb: Minor reformatting.
2719 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2721         * sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
2722         Before normalizing these pragmas into a pragma Check, preanalyze
2723         the optional Message argument, (which is subsequently copied)
2724         so that it has the proper semantic information for ASIS use.
2725         * sem_case.adb: Initialize flag earlier.
2726         * osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
2727         the full source path of a configuration file is requested.
2728         (Read_Source_File): Use Full_Name parameter..
2730 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2732         * opt.ads Alphabetize various global flags. New flag
2733         Ignore_Pragma_SPARK_Mode along with a comment on usage.
2734         * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
2735         Pragma SPARK_Mode is now allowed in generic units.
2736         (Analyze_Subprogram_Body_Helper): Do not verify the compatibility
2737         between the SPARK_Mode of a spec and that of a body when inside
2738         a generic.
2739         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the
2740         compatibility between the SPARK_Mode of a spec and that of a
2741         body when inside a generic.
2742         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
2743         Pragma SPARK_Mode is now allowed in generic units.
2744         (Analyze_Package_Instantiation): Save and restore the value of
2745         flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
2746         the governing SPARK_Mode before analyzing the instance.
2747         (Analyze_Subprogram_Instantiation): Save and restore the value
2748         of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
2749         the governing SPARK_Mode before analyzing the instance.
2750         * sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the
2751         placement of a source pragma when inserting the generated pragma
2752         for aspect SPARK_Mode.
2753         * sem_prag.adb (Analyze_Pragma): Reimplement the handling of
2754         pragma SPARK_Mode to allow for generics and their respective
2755         instantiations.
2756         * sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed.
2757         (Set_Ignore_Pragma_SPARK_Mode): New routine.
2759 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
2761         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with
2762         renaming discriminants in tagged types first.
2763         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test
2764         the underlying type of the prefix.
2765         (Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..."
2766         (process_freeze_entity): Reset the nodes of all the view of a type,
2767         if any.
2769 2014-08-04  Doug Rupp  <rupp@adacore.com>
2770             Olivier Hainque  <hainque@adacore.com>
2772         * gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7
2773         and remove incorrect EH_MECHANISM macros.
2774         Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to
2775         EXTRA_LIBGNAT_OBJS.
2777 2014-08-04  Robert Dewar  <dewar@adacore.com>
2779         * exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix
2780         of constructed 'Valid attribute in -gnatVa mode does not appear
2781         to come from source.
2782         * sem_attr.adb (Analyze_Access_Attribute): Don't set
2783         Never_Set_In_Source for non-source reference.
2784         * sem_util.adb: Minor reformatting.
2785         * sem_warn.adb (Check_References): Don't check Address_Taken,
2786         not necessary, see comment.
2788 2014-08-04  Robert Dewar  <dewar@adacore.com>
2790         * sem_util.adb, sem_case.adb: Minor reformatting.
2792 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2794         * exp_ch9.adb (Extract_Entry): If the synchronized object is a
2795         limited view, replace with non-limited view, which is available
2796         at the point of an entry call.
2798 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2800         * exp_ch6.adb (Expand_Call): If the call is to a function in
2801         a run-time unit that is marked Inline_Always, we must suppress
2802         debugging information on it, so that the code that is eventually
2803         inlined will not affect debugging of the user program.
2805 2014-08-04  Robert Dewar  <dewar@adacore.com>
2807         * inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
2808         fixes.
2810 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2812         * sem_prag.adb (Process_Import_Or_Interface): Handle properly
2813         an aspect Import that specifies a False value.
2815 2014-08-04  Robert Dewar  <dewar@adacore.com>
2817         * gnat_rm.texi: Add section on aspect Invariant'Class.
2819 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2821         * sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
2822         for better control of cascaded error messages when some choice
2823         in a case statement over a predicated type violates the given
2824         static predicate.
2826 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2828         * sem_ch3.adb (Build_Derived_Type): Modify the
2829         inheritance of the rep chain to ensure that a non-tagged type's
2830         items are not clobbered during the inheritance.
2832 2014-08-04  Robert Dewar  <dewar@adacore.com>
2834         * sem_ch3.adb, einfo.ads: Minor reformatting.
2836 2014-08-04  Yannick Moy  <moy@adacore.com>
2838         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix
2839         detection of subprograms that cannot be inlined in GNATprove mode.
2841 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2843         * einfo.adb: Add guard to Returns_Limited_View.
2845 2014-08-04  Jose Ruiz  <ruiz@adacore.com>
2847         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of
2848         the secondary stack to respect the alignments of the returned objects.
2850 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2852         * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
2853         on function entities whose return type is a limited view.
2854         * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
2855         where to place the freeze node for a function that returns the
2856         limited view of a type, when the function is called and frozen
2857         in a different unit.
2859 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
2861         * sem_ch3.adb (Build_Derived_Private_Type): Minor code
2862         refactoring.
2864 2014-08-04  Robert Dewar  <dewar@adacore.com>
2866         * gnat_ugn.texi: Clarify documentation on assertions.
2868 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2870         * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
2871         if a component association has a box initialization when the
2872         component type has no default initialization, either through an
2873         initial value, an aspect, or an implicit initialization procedure.
2875 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2877         * freeze.adb: Code clean up.
2879 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2881         * sem_ch5.adb: Minor reformatting.
2883 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2885         * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
2886         a function can return a limited view of a type declared
2887         elsewhere. In that case the function cannot be frozen at the end
2888         of its enclosing package. If its first use is in a different unit,
2889         it cannot be frozen there, but if the call is legal the full view
2890         of the return type is available and the subprogram can now be
2891         frozen. However the freeze node cannot be inserted at the point
2892         of call, but rather must go in the package holding the function,
2893         so that the backend can process it in the proper context.
2895 2014-08-04  Robert Dewar  <dewar@adacore.com>
2897         * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
2899 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2901         * sem_ch4.adb (Operator_Check): Refine previous change.
2903 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2905         * sem_scil.ads: Improve comments.
2906         * sem_ch4.adb (Analyze_Equality_Op): Add support for
2907         Allow_Integer_Address (equality between Address and Integer).
2909 2014-08-04  Yannick Moy  <moy@adacore.com>
2911         * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
2912         notation on untagged objects.
2913         * sem.ads: Update comment.
2914         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
2915         not inline subprograms declared in the visible part of a package.
2917 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2919         * exp_ch5.adb: minor reformatting.
2920         * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
2921         parameters.
2923 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2925         * s-fatgen.adb: Minor reformatting.
2927 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2929         * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
2930         False on .NET.
2932 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2934         * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
2935         the loop parameter for element iterators over containers and
2936         arrays, so that improper uses of it are detected in the loop
2937         body when expansion is disabled.
2938         * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
2939         generated cursor is that of the analyzed loop parameter.
2941 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2943         * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
2944         Flag_Decl. Do not analyze the declaration of the flag as it is
2945         not part of the tree yet, instead add it to the freeze actions
2946         of the C++ type.
2948 2014-08-04  Robert Dewar  <dewar@adacore.com>
2950         * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
2951         case of OUT and IN OUT parameter correctly (where Source_Typ is
2952         set), we were missing one case where a check must be applied.
2954 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2956         * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
2957         the generated code. Instead of hiding the renaming and using the
2958         wrapper as the proper association, have the subprogram renaming
2959         alias the wrapper.
2960         (Build_Spec): The entity of the wrapper is
2961         now derived from the entity of the related primitive.
2963 2014-08-04  Emmanuel Briot  <briot@adacore.com>
2965         * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
2966         using non-capturing groups.
2968 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2970         * inline.adb (Build_Body_To_Inline): Remove Unmodified and
2971         related pragmas before copying the original body, to prevent
2972         spurious errors when the pragmas apply to formals that will not
2973         appear in the inlined body.
2975 2014-08-04  Robert Dewar  <dewar@adacore.com>
2977         * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
2978         exp_ch3.adb: Minor reformatting.
2980 2014-08-04  Robert Dewar  <dewar@adacore.com>
2982         * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
2984 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2986         * aspects.adb Add an entry in table Canonical_Aspect for
2987         Default_Initial_Condition.
2988         * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
2989         Aspect_Names and Aspect_Delay for Default_Initial_Condition.
2990         * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
2991         is now Is_Default_Init_Cond_ Procedure. Flag133 is now
2992         Has_Inherited_Default_Init_Cond.
2993         (Default_Init_Cond_Procedure): New routine.
2994         (Has_Default_Init_Cond): New routine.
2995         (Has_Inherited_Default_Init_Cond): New routine.
2996         (Is_Default_Init_Cond_Procedure): New routine.
2997         (Set_Default_Init_Cond_Procedure): New routine.
2998         (Set_Has_Default_Init_Cond): New routine.
2999         (Set_Has_Inherited_Default_Init_Cond): New routine.
3000         (Set_Is_Default_Init_Cond_Procedure): New routine.
3001         (Write_Entity_Flags): Output all the new flags.
3002         * einfo.ads New attributes Default_Init_Cond_Procedure,
3003         Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
3004         along with usage in nodes.
3005         (Default_Init_Cond_Procedure): New routine.
3006         (Has_Default_Init_Cond): New routine and pragma Inline.
3007         (Has_Inherited_Default_Init_Cond): New routine and
3008         pragma Inline.
3009         (Is_Default_Init_Cond_Procedure): New routine and
3010         pragma Inline.
3011         (Set_Default_Init_Cond_Procedure): New routine.
3012         (Set_Has_Default_Init_Cond): New routine and pragma Inline.
3013         (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
3014         (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
3015         * exp_ch3.adb (Expand_N_Object_Declaration): New constant
3016         Next_N. Generate a call to the default initial condition procedure
3017         if the object's type is subject to the pragma.  (Freeze_Type):
3018         Generate the body of the default initial condition procedure or
3019         inherit the spec from a parent type.
3020         * exp_ch7.adb Add with and use clause for Exp_Prag.
3021         (Expand_Pragma_Initial_Condition): Removed.
3022         * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
3023         routine.
3024         * par-prag.adb (Prag): Pragma Default_Initial_Condition does
3025         not need special treatment by the parser.
3026         * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
3027         attributes related to pragma Default_Initial_Condition to the
3028         derived type.
3029         (Process_Full_View): Propagate the attributes
3030         related to pragma Default_Initial_Condition to the full view.
3031         * sem_ch7.adb (Analyze_Package_Specification): Build the
3032         declaration of the default initial condition procedure for all
3033         types that qualify or inherit the one from the parent type.
3034         * sem_ch13.adb (Analyze_Aspect_Specifications):
3035         Add processing for aspect Default_Initial_Condition.
3036         (Check_Aspect_At_Freeze_Point): Aspect
3037         Default_Initial_Condition does not require delayed analysis.
3038         (Replace_Type_References_Generic): Moved to spec.
3039         * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
3040         * sem_prag.adb Add an entry in table Sif_Glags for
3041         Default_Initial_Condition.
3042         (Analyze_Pragma): Pragma
3043         Default_Initial_Condition is now part of assertion
3044         policy. Add processing for pragma Default_Initial_Condition.
3045         (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
3046         now recognized as a proper assertion policy.
3047         * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
3048         routine.
3049         (Build_Default_Init_Cond_Procedure_Body): New routine.
3050         (Build_Default_Init_Cond_Procedure_Declaration): New routine.
3051         (Inherit_Default_Init_Cond_Procedure): New routine.
3052         * snames.ads-tmpl Add new predefined name and pragma id for
3053         Default_Initial_Condition.
3055 2014-08-04  Vincent Celier  <celier@adacore.com>
3057         * prj-dect.adb (Parse_Case_Construction): It is no longer
3058         an error if the variable for a case construction is not
3059         typed, only if the variable value is not a single string. Call
3060         Parse_Choice_List and End_Case_Construction with the new parameter
3061         to indicate that the variable is typed.
3062         * prj-strt.adb (End_Case_Construction): Only check the labels
3063         if the variable is typed.  If the variable is not typed,
3064         issue a warning when there is no "when others" allternative.
3065         (Parse_Choice_List): Manage the labels only if the variable
3066         is typed.
3067         * prj-strt.ads (End_Case_Construction): New Boolean parameter
3068         String_Type.
3069         (Parse_Choice_List): Ditto.
3071 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3073         * sem_ch5.adb: Additional fix to Check_Predicate_Use.
3075 2014-08-04  Vincent Celier  <celier@adacore.com>
3077         * projects.texi: Update documentation of case constructions with
3078         variables that are not typed.
3080 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3082         * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
3083         an Eliminated pragma, indicate that the wrapper is also to be
3084         eliminated, to prevent spurious errors when using gnatelim on
3085         programs that include box-initialization of equality operators
3086         (consequence of AI05-071)..
3088 2014-08-04  Robert Dewar  <dewar@adacore.com>
3090         * checks.adb (Activate_Overflow_Check): Handle floating-point
3091         case correctly.
3092         * checks.ads (Activate_Overflow_Check): Clarify handling of
3093         floating-point cases.
3094         * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
3095         flag if we generate an explicit overflow check (for
3096         Check_Float_Overflow mode).
3098 2014-08-04  Robert Dewar  <dewar@adacore.com>
3100         * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
3101         prj-attr.adb, prj-attr.ads: Minor reformatting.
3103 2014-08-04  Yannick Moy  <moy@adacore.com>
3105         * expander.adb (Expand): Always perform special
3106         expansion in GNATprove mode, even when doing pre-analysis.
3108 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3110         * repinfo.adb (List_Scalar_Storage_Order): List bit order if
3111         not default. Also list bit order if SSO is specified. Do not
3112         assume that bit order is always equal to scalar storage order.
3114 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3116         * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
3117         order to reverse SSO for a type that has an explicit native
3118         Bit_Order.
3120 2014-08-04  Doug Rupp  <rupp@adacore.com>
3122         * cal.c: Macro check for VxWorks7.
3123         * init.c (getpid): Likewise.
3124         * mkdir.c (__gnat_mkdir): Likewise.
3125         * sysdep.c (__gnat_is_file_not_found_error): Likewise.
3127 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3129         * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
3130         of an invariant check in the case where No_Initialization is set,
3131         since the object is uninitialized.
3133 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3135         * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
3136         name, in addition to a pragma name.
3137         * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
3138         Is_Pragma_Name): Adjust accordingly.
3139         * sem_attr.ads, sem_attr.adb, exp_attr.adb
3140         (Attribute_Default_Scalar_Storage_Order): Add handling of new
3141         attribute.
3142         * gnat_rm.texi: Document the above.
3144 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3146         * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
3147         mode for now, to revert to previous behavior.
3148         * checks.adb: Revert previous change, no longer needed.
3150 2014-08-04  Robert Dewar  <dewar@adacore.com>
3152         * gnat1drv.adb (Adjust_Global_Switches): Don't set
3153         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
3154         * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
3155         set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
3156         * switch-c.adb (Scan_Front_End_Switches): Don't set
3157         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
3159 2014-08-04  Vincent Celier  <celier@adacore.com>
3161         * prj-attr.adb: Add new default indications for
3162         attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
3163         (Attribute_Default_Of): New function (Initialize): Set the
3164         default for those attributes that have one specified.
3165         * prj-attr.ads (Attribute_Data): New component Default.
3166         * prj-proc.adb (Expression): Take into account the new defaults
3167         for attributes Object_Dir, Exec_Dir and Source_Dirs.
3168         * prj-strt.adb (Attribute_Reference): Set the default for
3169         the attribute.
3170         * prj-tree.ads, prj-tree.adb (Default_Of): New function.
3171         (Set_Default_Of): New procedure.
3172         * prj.adb (The_Dot_String): New global Name_Id variable,
3173         initialized in procedure Initialize.
3174         (Dot_String): New function
3175         (Initialize): Initialize The_Dot_String.
3176         (Reset): Create the string list Shared.Dot_String_List.
3177         * prj.ads (Attribute_Default_Value): New enumeration type.
3178         (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
3179         (Dot_String): New function.
3180         (Shared_Project_Tree_Data): New string list component Dot_String_List.
3181         * projects.texi: Document new defaults for attribute Object_Dir,
3182         Exec_Dir and Source_Dirs.
3184 2014-08-04  Robert Dewar  <dewar@adacore.com>
3186         * sem_ch12.adb: Minor reformatting.
3188 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3190         * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
3191         expansion in CodePeer_Mode.
3192         (Selected_Range_Checks): Add handling of overflow checks in
3193         CodePeer_Mode.
3195 2014-08-04  Robert Dewar  <dewar@adacore.com>
3197         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
3198         Remove special test for Float'First, no longer required.
3199         (Expand_N_Attribute_Reference, case Succ): Remove special test
3200         for Float'First, no longer required.
3201         * s-fatgen.adb (Pred): return infinity unchanged.
3202         (Succ): ditto.
3204 2014-08-04  Claire Dross  <dross@adacore.com>
3206         * sem_ch12.adb (Analyze_Associations): Defaults should only be
3207         used if there is no explicit match.
3208         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
3209         Also check for pragma external_axiomatization on generic units.
3211 2014-08-04  Robert Dewar  <dewar@adacore.com>
3213         * checks.adb (Activate_Overflow_Check): Remove
3214         Check_Float_Overflow processing.
3215         (Apply_Scalar_Range_Check): Ditto.
3216         (Generate_Range_Check): Ditto.
3217         * exp_ch4.adb (Expand_N_Op_Add): Add call to
3218         Check_Float_Op_Overflow.
3219         (Expand_N_Op_Divide): ditto.
3220         (Expand_N_Op_Multiply): ditto.
3221         (Expand_N_Op_Subtract): ditto.
3222         * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
3223         * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
3224         Do_Range_Check is set for floating-point case in -gnatc or
3225         GNATprove mode.
3226         (Analyze_Attribute, case Succ): Make sure
3227         Do_Range_Check is set for floating-point case in -gnatc or
3228         GNATprove mode.
3229         * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
3230         flag is set for real to integer conversion in GNATprove or
3231         -gnatc mode.
3233 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3235         * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
3236         the expression of an Import or Export aspect as type Boolean
3237         and require it to be static. Add ??? comment. Also, set the
3238         Is_Exported flag when appropriate.
3240 2014-08-04  Robert Dewar  <dewar@adacore.com>
3242         * exp_ch4.adb: Minor reformatting.
3243         * exp_attr.adb: Minor reformatting.
3245 2014-08-04  Thomas Quinot  <quinot@adacore.com>
3247         * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
3248         (Unaligned_Valid): Remove now unused subprogram.
3249         * exp_attr.adb (Expand_N_Attribute_Reference, case
3250         Attribute_Valid): If the prefix is in reverse SSO or potentially
3251         unaligned, copy it using a byte copy operation to a temporary
3252         variable.
3253         * einfo.adb: Minor comment fix.
3255 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3257         * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
3259 2014-08-04  Robert Dewar  <dewar@adacore.com>
3261         * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
3262         * s-fatgen.adb (Pred): Handle Float'First.
3263         (Succ): Handle Float'Last.
3265 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3267         * sem_util.adb (Is_Potentially_Unevaluated): If the original
3268         node of a parent node in the tree is a short-circuit operation,
3269         the node is potentially unevaluated.
3271 2014-08-04  Robert Dewar  <dewar@adacore.com>
3273         * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
3274         conversion from a real type to an integer type.
3276 2014-08-04  Yannick Moy  <moy@adacore.com>
3278         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
3279         sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
3280         exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
3281         sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
3282         SPARK_05 instead of SPARK.
3284 2014-08-04  Robert Dewar  <dewar@adacore.com>
3286         * sem.ads: Minor reformatting.
3287         * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
3288         reformatting.
3289         (Analyze_Aspect_Specifications, case Convention): Put External_Name
3290         before Link_Name when constructing pragma.
3292 2014-08-04  Yannick Moy  <moy@adacore.com>
3294         * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
3295         to True during analysis of a default component expression.
3296         (Semantics): Save and restore In_Default_Expr around analysis.
3297         * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
3298         Call new wrapper Preanalyze_Default_Expression.
3299         (Preanalyze_Default_Expression): New wrapper on
3300         Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
3301         * sem_res.adb (Resolve_Call): Mark calls inside default
3302         expressions as not inlined in GNATprove mode.
3304 2014-08-04  Robert Dewar  <dewar@adacore.com>
3306         * exp_ch4.adb: Minor reformatting.
3308 2014-08-04  Olivier Hainque  <hainque@adacore.com>
3310         * link.c: remove const on __gnat_objlist_file_supported for AIX
3312 2014-08-04  Robert Dewar  <dewar@adacore.com>
3314         * sem_util.ads: Minor addition of comment.
3316 2014-08-04  Vincent Celier  <celier@adacore.com>
3318         * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
3319         all projects, including aggregate and aggregate library projects.
3321 2014-08-04  Yannick Moy  <moy@adacore.com>
3323         * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
3325 2014-08-04  Robert Dewar  <dewar@adacore.com>
3327         * sem_eval.adb (Test_In_Range): Always in range for
3328         Is_Known_Valid target type, where input type has smaller or
3329         equal size and does not have biased rep.
3331 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3333         * sem_attr.adb (Eval_Attribute): Constrained is not treated as
3334         a static attribute, and the Static flag must not be set on it
3335         during resolution. It may be constant-folded during expansion,
3336         but if expansion is disabled it is not a static expression.
3338 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3340         * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
3341         referenced once resolution has taken place.
3343 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3345         * exp_ch4.adb (Expand_N_Type_Conversion): Don't
3346         compare access levels in the case where the target type is the
3347         anonymous type of an access discriminant, since the level of
3348         such types is defined based on context. Add comment.
3350 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3352         * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
3353         cases related to equality.  Remove the special processing
3354         for dispatching abstract subprograms as it is not needed.
3355         (Interpretation_Error): Add a specialized error message for
3356         predefined operators.
3357         (Is_Intrinsic_Equality): New routine.
3358         (Is_Suitable_Candidate): New routine.
3360 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3362         * checks.adb: Minor comment reformatting.
3364 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3366         * restrict.adb (Check_Restriction): For checked max_parameter
3367         restrictions reset Violated flag, so that subsequent violations
3368         are properly detected.
3370 2014-08-04  Robert Dewar  <dewar@adacore.com>
3372         * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
3373         mode.
3374         (Process_Discriminants): Fix bad test of GNATprove mode
3376 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
3378         * sem_ch12.adb (Instantiate_Formal_Subprogram):
3379         Move variable to their own section. Propagate the source
3380         location of a formal parameter to the corresponding formal of
3381         the subprogram renaming declaration. Code reformatting.
3383 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
3385         * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
3387 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
3389         * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
3390         if error already detected.  We may reach this point in spite of
3391         previous errors when compiling with -gnatq, to force all possible
3392         errors (this is the usual ACATS mode).
3394 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
3396         * checks.adb (Generate_Range_Check): For the case of converting
3397         a base type with a larger range to a smaller target subtype, only
3398         use unchecked conversions of bounds in the range check followed
3399         by conversion in the case where both types are discrete. In other
3400         cases, convert to the target base type and save in a temporary
3401         followed by the range check.
3402         (Convert_And_Check_Range): New procedure factoring code to save
3403         conversion to a temporary followed by a range check (called two
3404         places in Generate_Range_Check).
3405         * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
3406         check-in, to generate range checks for conversions between
3407         any floating-point types rather than limiting it to matching
3408         base types.
3410 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
3412         * gcc-interface/trans.c: Use hash_set instead of pointer_set.
3414 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3416         * restrict.adb (Update_Restrictions): For restrictions with a
3417         maximum parameter (e.g. number of protected entries in Ravenscar)
3418         do not compute the maximum of the violation over several objects,
3419         because the restriction is per-object.
3420         (Check_Restriction): After possible message, reset the value
3421         of of a checked max_parameter restriction to zero, to prevent
3422         cascaded errors.
3423         * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
3424         (sub)type to determine whether derived type should be on the
3425         list of private dependents of a type whose full view may become
3426         visible subsequently.
3428 2014-08-01  Olivier Hainque  <hainque@adacore.com>
3430         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
3431         $(CXX) instead of ../../xg++ to feed CXX.
3432         (CXX_LFLAGS): Remove. Now unused as the proper flags
3433         are expected to be included in the CXX variable.
3435 2014-08-01  Pierre-Marie Derodat  <derodat@adacore.com>
3437         * gcc-interface/decl.c (elaborate_expression_1): Return the new
3438         variable when debug info is needed and the expression is not
3439         constant.  Tag as external only new variables that are global.
3440         (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
3441         * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
3442         attributes for IN array parameters when their actual subtype
3443         needs debug info.
3444         (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
3445         * gcc-interface/gigi.h (process_deferred_decl_context): New.
3446         * gcc-interface/utils.c (gnat_write_global_declarations): Do not
3447         emit debug info for ignored global declarations.
3448         (struct deferred_decl_context_node,
3449         add_deferred_decl_context, add_deferred_type_context,
3450         compute_deferred_decl_context, defer_or_set_type_context,
3451         deferred_decl_context_queue, get_debug_scope,
3452         get_global_context, process_deferred_decl_context): New.
3453         (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
3454         computation machinery to rely on the GNAT Scope attribute.
3456 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3458         * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
3460 2014-08-01  Robert Dewar  <dewar@adacore.com>
3462         * sem_ch8.adb, opt.ads Minor comment updates.
3464 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3466         * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
3467         from the side effects removal machinery.
3468         * exp_util.adb (Duplicate_Subexpr): Add formal parameter
3469         Renaming_Req. Update the nested call to Remove_Side_Effects.
3470         (Duplicate_Subexpr_No_Checks): Add formal parameter
3471         Renaming_Req. Update the nested call to Remove_Side_Effects.
3472         (Duplicate_Subexpr_Move_Checks): Add formal parameter
3473         Renaming_Req. Update the nested call to Remove_Side_Effects.
3474         (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
3475         an object renaming declaration when the caller requests it.
3476         * exp_util.ads (Duplicate_Subexpr): Add formal
3477         parameter Renaming_Req. Update comment on usage.
3478         (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
3479         (Duplicate_Subexpr_Move_Checks): Add formal parameter
3480         Renaming_Req.
3482 2014-08-01  Bob Duff  <duff@adacore.com>
3484         * gnat_ugn.texi: Minor updates.
3486 2014-08-01  Robert Dewar  <dewar@adacore.com>
3488         * atree.adb: Minor reformatting.
3490 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3492         * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
3493         private extension, get stored constraint, if any, from full view.
3495 2014-08-01  Robert Dewar  <dewar@adacore.com>
3497         * opt.ads (No_Elab_Code_All_Pragma): New global variable.
3498         * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
3499         (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
3500         (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
3501         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
3502         Remove code for checking with's, now in sem_ch10.adb, set
3503         Opt.No_Elab_Code_All_Pragma.
3505 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3507         * sem_ch3.adb (Copy_And_Build): Copy the declaration for
3508         access types as well and adjust the subtype mark if there are
3509         no constraints.
3511 2014-08-01  Robert Dewar  <dewar@adacore.com>
3513         * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
3515 2014-08-01  Robert Dewar  <dewar@adacore.com>
3517         * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
3519 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3521         * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
3522         * exp_ch4.adb (Expand_Composite_Equality): Add conversion
3523         of the actuals in the case of untagged record types too.
3524         * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
3525         full derivation of a derived private type, extracted from...
3526         (Copy_And_Build): In the case of record types and most
3527         enumeration types, copy the original declaration.  Build the
3528         full derivation according to the approach extracted from...
3529         (Build_Derived_Private_Type): ...here.  Call Build_Full_Derivation
3530         to create the full derivation in all existing cases and also
3531         create it in the no-discriminants/discriminants case instead of
3532         deriving directly from the full view.
3533         (Is_Visible_Component): Remove obsolete code.
3534         * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
3536 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3538         * fe.h (GNAT_Mode): New.
3539         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
3540         reverse SSO in GNAT mode.
3542 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3544         * freeze.adb: Minor reformatting.
3546 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3548         * exp_ch3.adb (Default_Initialize_Object): Do not generate
3549         default initialization for an imported object.
3551 2014-08-01  Olivier Hainque  <hainque@adacore.com>
3553         * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
3554         to the expected FARPROC type instead of void *.
3555         * adaint.c (f2t): Expect __time64_t * as second argument, in line with
3556         other datastructures.
3557         (__gnat_file_time_name_attr): Adjust accordingly.
3558         (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
3559         in line with uses.
3560         (__gnat_check_OWNER_ACL): Declare AccessMode
3561         parameter as ACCESS_MODE instead of DWORD, in line with callers
3562         and uses.
3563         (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
3564         unused on win32.  Correct cast of "args" on call to spawnvp.
3565         (add_handle): Cast realloc calls into their destination types.
3566         (win32_wait): Remove declaration and initialization of unused variable.
3567         (__gnat_locate_exec_on_path): Cast alloca calls
3568         into their destination types.
3569         * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
3570         their destination types.
3572 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
3574         * exp_ch4.adb (Expand_N_Type_Conversion): Expand
3575         range checks for conversions between floating-point subtypes
3576         when the target and source types are the same.
3578 2014-08-01  Robert Dewar  <dewar@adacore.com>
3580         * exp_aggr.adb: Minor reformatting.
3582 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3584         * sem_ch13.adb (Check_Indexing_Functions): Initialize
3585         Indexing_Found.
3587 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3589         * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
3590         ALI file before we call the backend (so that gnat2why can append
3591         to it).
3593 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3595         * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
3596         Expand_Packed_Element_Reference): Pass additional Rev_SSO
3597         parameter indicating whether the packed array type has reverse
3598         scalar storage order to the s-pack* Set/Get routines.
3599         * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
3600         indicating reverse scalar storage order.
3602 2014-08-01  Robert Dewar  <dewar@adacore.com>
3604         * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
3605         for initial component value in -gnatc or GNATprove mode.
3606         (Process_Discriminants): Same fix for default discriminant values.
3607         * sem_eval.adb (Test_In_Range): Improve accuracy of results by
3608         checking subtypes.
3610 2014-08-01  Robert Dewar  <dewar@adacore.com>
3612         * sinfo.ads: Minor comment clarification.
3614 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3616         * sem_ch13.adb (Analyze_Aspect_Specifications): Code
3617         reformatting. Store the generated pragma Import in the related
3618         subprogram as routine Wrap_Imported_Subprogram will need it later.
3619         * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
3620         a private type with discriminants is considered to fall in the
3621         category of unconstrained or tagged items.
3623 2014-08-01  Arnaud charlet  <charlet@adacore.com>
3625         * s-os_lib.adb (Open_Append): New functions to open a file for
3626         appending. This binds to the already existing (but not used)
3627         __gnat_open_append.
3628         * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
3629         to open a file for appending.
3630         * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
3631         to open the ALI file for appending.
3633 2014-08-01  Robert Dewar  <dewar@adacore.com>
3635         * sem_ch8.adb: Minor reformatting.
3637 2014-08-01  Yannick Moy  <moy@adacore.com>
3639         * sem_ch13.adb (Insert_Pragma): Add special case for precondition
3640         pragmas from aspects, which need to be inserted in proper order.
3642 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3644         * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
3645         Handle properly a type extension that constrains a discriminated
3646         derived type that renames other discriminants of an ancestor.
3648 2014-08-01  Thomas Quinot  <quinot@adacore.com>
3650         * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
3651         s-pack25.adb: Fix minor inconsistencies and typos.
3653 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3655         * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
3656         globals and move certain variables to the "local
3657         variable" section. Call Build_Class_Wide_Wrapper when
3658         renaming a default actual subprogram with a class-wide actual.
3659         (Build_Class_Wide_Wrapper): New routine.
3660         (Check_Class_Wide_Actual): Removed.
3661         (Find_Renamed_Entity): Code reformatting.
3662         (Has_Class_Wide_Actual): Alphabetize. Change the
3663         logic of the predicate as the renamed name may not necessarely
3664         denote the correct subprogram.
3666 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3668         * sem_ch7.adb: Fix minor oversight in condition.
3670 2014-08-01  Bob Duff  <duff@adacore.com>
3672         * projects.texi: Minor documentation improvements.
3674 2014-08-01  Robert Dewar  <dewar@adacore.com>
3676         * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
3677         * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
3678         * lib-load.adb: Initialize No_Elab_Code_All field.
3679         * lib-writ.adb: Initialize No_Elab_Code_All.
3680         * lib.ads, lib.adb: New field No_Elab_Code_All.
3681         * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
3682         * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
3683         longer exists.
3684         * sem_ch10.adb (Analyze_Context): Processing for
3685         No_Elaboration_Code_All removed.
3686         (Generate_Parent_References): Moved to Sem_Util.
3687         * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
3688         * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
3689         Sem_Ch10.
3690         * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
3691         * targparm.adb: Minor comment updates Add comments on ignoring
3692         pragma No_Elaboration_Code_All.
3694 2014-08-01  Nicolas Roche  <roche@adacore.com>
3696         * adaint.c (__gnat_set_close_on_exec): Ensure that
3697         we can unset "close_on_exec" flag.
3699 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3701         * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
3702         the parameter specs of the wrapper program for a primitive operation
3703         of a synchronized type that implements an interface, copy the
3704         null_exclusion indicator as well.
3706 2014-08-01  Robert Dewar  <dewar@adacore.com>
3708         * sem_eval.ads: Minor reformatting.
3710 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3712         * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
3713         to go down the chain of private derivations.
3714         * freeze.adb (Freeze_Entity): Fix typo in comment.
3716 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3718         * sem_ch3.adb (Access_Type_Declaration): If designated type is
3719         a limited view, create a master entity (as is already done for
3720         class-wide types) in case the full view designates a type that
3721         contains tasks.
3722         * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
3723         and the designated type is a limited view, use the non-limited
3724         view if available.
3726 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3728         * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
3729         (DECL_FUNCTION_STUB): Likewise.
3730         (SET_DECL_FUNCTION_STUB): Likewise.
3731         (DECL_PARM_ALT_TYPE): Likewise.
3732         (SET_DECL_PARM_ALT_TYPE): Likewise.
3733         (TYPE_VAX_FLOATING_POINT_P): Delete.
3734         (TYPE_DIGITS_VALUE): Likewise.
3735         (SET_TYPE_DIGITS_VALUE): Likewise.
3736         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
3737         (malloc32_decl): Delete.
3738         (build_vms_descriptor): Likewise.
3739         (build_vms_descriptor32): Likewise.
3740         (fill_vms_descriptor): Likewise.
3741         (convert_vms_descriptor): Likewise.
3742         (TARGET_ABI_OPEN_VMS): Likewise.
3743         (TARGET_MALLOC64): Likewise.
3744         * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
3745         (gnat_to_gnu_entity): Call it to add the original type as a parallel
3746         type to the implementation type of a packed array type.
3747         <E_Procedure>: Remove now obsolete kludge.
3748         <E_Exception>: Delete obsolete comment.
3749         <object>: Small tweak.
3750         <E_Subprogram_Type>: Remove support for stub subprograms, as well as
3751         for the descriptor passing mechanism.
3752         (gnat_to_gnu_param): Likewise.
3753         * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
3754         (gnat_print_type): Adjust.
3755         * gcc-interface/trans.c (gigi): Remove obsolete initializations.
3756         (vms_builtin_establish_handler_decl): Delete.
3757         (gnat_vms_condition_handler_decl): Likewise.
3758         (establish_gnat_vms_condition_handler): Likewise.
3759         (build_function_stub): Likewise.
3760         (Subprogram_Body_to_gnu): Do not call above functions.
3761         (Call_to_gnu): Remove support for the descriptor passing mechanism.
3762         * gcc-interface/utils.c (make_descriptor_field): Delete.
3763         (build_vms_descriptor32): Likewise.
3764         (build_vms_descriptor): Likewise.
3765         (fill_vms_descriptor): Likewise.
3766         (convert_vms_descriptor64): Likewise.
3767         (convert_vms_descriptor32): Likewise.
3768         (convert_vms_descriptor): Likewise.
3769         * gcc-interface/utils.c (unchecked_convert): Likewise.
3770         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
3772 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3774         * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
3775         type and get_unpadded_type for the longest FP type.
3776         (Attribute_to_gnu) <Machine>: Compare the precision of the types.
3777         (convert_with_check): Adjust formatting and remove FIXME.
3779 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3781         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
3782         Do not convert the RM bounds to the base type.
3783         (E_Floating_Point_Subtype): Likewise.
3784         (E_Array_Subtype): Convert the bounds to the base type.
3785         * gcc-interface/trans.c (get_type_length): New function.
3786         (Attribute_to_gnu) <Range_Length>: Call it.
3787         <Length>: Likewise.
3788         (Loop_Statement_to_gnu): Convert the bounds to the base type.
3789         (gnat_to_gnu) <N_In>: Likewise.
3790         * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
3791         bounds to the base type.
3792         (create_range_type): Likewise.
3793         (convert): Convert the bounds to the base type for biased types.
3794         * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
3795         base type.
3797 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3799         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
3800         incorrect implicit type derivation.
3801         * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
3802         to the base type.
3804 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3806         * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
3807         prefix of attribute Loop_Entry.
3808         * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
3809         Loop_Variant with respect to an enclosing loop (if any).
3810         (Contains_Loop_Entry): Update the parameter profile and all
3811         calls to this routine.
3812         * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
3813         for the corresponding body before determining the nature of the
3814         ultimate alias's declarative node.
3816 2014-08-01  Robert Dewar  <dewar@adacore.com>
3818         * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
3820 2014-08-01  Robert Dewar  <dewar@adacore.com>
3822         * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
3823         constraint error node since it is a list member.
3825 2014-08-01  Robert Dewar  <dewar@adacore.com>
3827         * sem_warn.adb: Minor reformatting.
3829 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3831         * einfo.adb (Underlying_Type): Return the underlying full view
3832         of a private type if present.
3833         * freeze.adb (Freeze_Entity):
3834         Build a single freeze node for partial, full and underlying full
3835         views, if any.
3836         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
3837         missing guard before the access to the Underlying_Full_View.
3838         * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
3839         full view if present.
3840         * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
3842 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3844         * sem_res.adb (Resolve_Entry_Call): When an entry has
3845         preconditions, the entry call is wrapped in a procedure call
3846         that incorporates the precondition checks. To prevent a double
3847         expansion, with possible duplication of extra formals, that
3848         procedure call must only be pre-analyzed and resolved. Expansion
3849         takes place upon return to the caller Resolve_Call.
3851 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3853         * sem_res.adb (Resolve_Call): Do not perform
3854         GNATprove-specific inlining while within a generic.
3856 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3858         * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
3859         case expression with incompatible alternatives, when the first
3860         alternative is overloaded.
3862 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3864         * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
3865         to create the name of the parameterless call, rather than
3866         New_Copy, to preserve the tree structure when the name is a
3867         complex expression, e.g. a selected component that denotes a
3868         protected operation, whose prefix is itself a selected component.
3870 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3872         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
3873         Unit_Declaration_Node to retrieve body when inlining, to handle
3874         properly subprogram child units.
3876 2014-08-01  Robert Dewar  <dewar@adacore.com>
3878         * sem_attr.adb: Minor reformatting.
3880 2014-08-01  Vincent Celier  <celier@adacore.com>
3882         * debug.adb: Minor documentation addition for -dn switch.
3884 2014-08-01  Robert Dewar  <dewar@adacore.com>
3886         * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
3887         sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
3888         documentation of Is_Static_Expression vs Is_OK_Static_Expression.
3889         In several places, use the Is_OK version as suggested by the spec.
3891 2014-08-01  Vincent Celier  <celier@adacore.com>
3893         * gnatcmd.adb: Revert last change which was not correct.
3895 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3897         * freeze.adb (Find_Constant): Ensure that the constant being
3898         inspected is still an object declaration (i.e. not a renaming).
3900 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3902         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
3903         An attribute_reference to Loop_Entry denotes an iterator
3904         specification: its prefix is an object, as is the case for 'Old.
3905         b) If the domain of iteration is an expression whose type has
3906         the Iterable aspect defined, this is an iterator specification.
3908 2014-08-01  Robert Dewar  <dewar@adacore.com>
3910         * gnatcmd.adb: Minor reformatting.
3912 2014-08-01  Robert Dewar  <dewar@adacore.com>
3914         * atree.ads (Info_Messages): New counter.
3915         * err_vars.ads: Minor comment update.
3916         * errout.adb (Delete_Warning_And_Continuations): Deal
3917         with new Info_Messages counter.
3918         (Error_Msg_Internal): ditto.
3919         (Delete_Warning): ditto.
3920         (Initialize): ditto.
3921         (Write_Error_Summary): ditto.
3922         (Output_Messages): ditto.
3923         (To_Be_Removed): ditto.
3924         * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
3925         (Compilation_Errors): ditto.
3926         * errutil.adb (Error_Msg): Deal with Info_Messages counter.
3927         (Finalize): ditto.
3928         (Initialize): ditto.
3929         * sem_prag.adb (Analyze_Pragma): Minor comment addition.
3930         * gnat_ugn.texi: Document that -gnatwe does not affect info
3931         messages.
3933 2014-08-01  Robert Dewar  <dewar@adacore.com>
3935         * debug.adb: Document debug switch -gnatd.Z.
3936         * sem.adb (Semantics): Force expansion on in no or configurable
3937         run time mode.
3939 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3941         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
3942         unchecked conversion denotes an iterator specification. Such a
3943         conversion will be inserted in the context of an inlined call
3944         when needed, and its argument is always an object.
3946 2014-08-01  Robert Dewar  <dewar@adacore.com>
3948         * make.adb, makeutl.ads: Minor reformatting.
3949         * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
3950         Back_End_Inlining.
3952 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3954         * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
3956 2014-08-01  Javier Miranda  <miranda@adacore.com>
3958         * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
3959         -gnatd.z.
3960         * debug.adb: Updating documentation.
3961         * exp_ch6.adb (Expand_Call): Remove assertion.
3963 2014-08-01  Robert Dewar  <dewar@adacore.com>
3965         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
3966         sem_res.adb: Minor reformatting.
3968 2014-08-01  Vincent Celier  <celier@adacore.com>
3970         * make.adb (Initialize): Set Keep_Temporary_Files to True when
3971         -dn is specified.
3972         * makeusg.adb: Add line for new switch --keep-temp-files.
3973         * makeutl.ads (Keep_Temp_Files_Option): New constant String.
3974         * opt.ads (Keep_Temporary_Files): Document that it is also used
3975         by gnatmake and gprbuild.
3976         * switch-m.adb: Recognize new switch --keep-temp-files.
3978 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3980         * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
3981         * exp_ch9.adb (Make_Task_Create_Call): ... here.
3983 2014-08-01  Vincent Celier  <celier@adacore.com>
3985         * gnat1drv.adb: Do not try to get the target parameters when
3986         invoked with -gnats.
3988 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3990         * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
3991         declaration subject to No_Initialization.
3993 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3995         * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
3996         is a subtype with dynamic predicates, or a non-static subtype
3997         with predicates.
3998         * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
3999         expression if subtype has a dynamic predicate.
4000         (Constrain_Index): Reject subtype indication if subtype mark
4001         has predicates.
4002         (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
4003         (Make_Index): If index is a subtype indication, itype inhereits
4004         predicate flags for subsequent testing.
4005         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
4006         procedure Check_Predicate_Use, to reject illegal uses of domains
4007         of iteration that have dynamic predicates.
4008         * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
4009         indication to which a predicate applies.
4010         * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
4011         prevent cascaded errors when subtype is invalid.
4013 2014-08-01  Robert Dewar  <dewar@adacore.com>
4015         * sem_ch10.adb: Minor reformatting.
4017 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4019         * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
4020         because either type may be a subtype of the other.
4022 2014-08-01  Vincent Celier  <celier@adacore.com>
4024         * makeusg.adb: Add documentation for debug switch -dn.
4026 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4028         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
4029         expression with standard operator and type, for pretty-printing
4030         use, when in ASIS_Mode. When generating code dimensional analysis
4031         is not involved and dimension expressions are handled statically,
4032         and other operators are resolved in the usual way.
4034 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4036         * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
4037         Parent_Subtype in ASIS mode, leads to several failures.
4038         * sem_ch4.adb (Analyze_Selected_Component): In an instance,
4039         if the prefix is a type extension, check whether component is
4040         declared in the parent type, possibly in a parent unit. Needed
4041         in ASIS mode when Parent_Subtype is not set.
4043 2014-08-01  Robert Dewar  <dewar@adacore.com>
4045         * sem_prag.adb: Minor reformatting.
4046         * s-regpat.adb: Minor reformatting.
4047         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
4048         Treat_As_Volatile on constants.
4050 2014-08-01  Tristan Gingold  <gingold@adacore.com>
4052         * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
4054 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4056         * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
4057         warning on a with_clause created for the renaming of a parent
4058         unit in an explicit with_clause.
4060 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4062         * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
4063         Set Is_Imported flag at once, to simplify subsequent legality
4064         checks. Reject the aspect on an object whose declaration has an
4065         explicit initial value.
4066         * sem_prag.adb (Process_Import_Or_Interface): Use original node
4067         to check legality of an initial value for an imported entity.
4068         Set Is_Imported flag in case of error to prevent cascaded errors.
4069         Do not set the Is_Imported flag if the pragma comes from an
4070         aspect, because it is already done when analyzing the aspect.
4072 2014-08-01  Emmanuel Briot  <briot@adacore.com>
4074         * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
4076 2014-08-01  Robert Dewar  <dewar@adacore.com>
4078         * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
4079         identifier name.
4081 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4083         * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
4084         checks when the related variable comes from source.
4085         * sem_res.adb (Resolve_Actuals): Enable the volatility checks
4086         when the related actual parameter comes from source. Update comment.
4087         * freeze.adb (Freeze_Record_Type): Do not freeze the designated
4088         type of an array of pointers when the designated type is
4089         class-wide and its root type is the record being currently frozen.
4091 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4093         * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
4094         of renaming declaration created for domain of iteration.
4095         * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
4096         for error messages on aggregates whose index subtypes have
4097         predicates. The new placement avoids posting messages on previous
4098         subtype declarations rather than on the aggregate itself.
4099         * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
4100         Add_Dispatching_Operation, to handle properly the overriding of
4101         the predefined operations on controlled types, when the partial
4102         view of a type is not visibly controlled.
4104 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
4106         * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
4107         appendix.
4109 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4111         * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
4112         assertion check as the attribute is defined for all entities.
4113         (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
4114         check as the attribute is defined for all entities.
4115         * einfo.ads Update the documentation of attribute
4116         Is_Hidden_Non_Overridden_Subprogram.
4117         * sem_ch7.adb (Install_Package_Entity): No need to check the
4118         entity kind of the Id.
4119         * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
4120         usage. Ensure that the homographs are of the same entity kind
4121         and not fully conformant.
4122         (Hide_Non_Overridden_Subprograms): Update the comment on usage.
4124 2014-08-01  Robert Dewar  <dewar@adacore.com>
4126         * inline.adb: Minor code reorganization.
4127         * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
4129 2014-08-01  Robert Dewar  <dewar@adacore.com>
4131         * inline.adb, s-os_lib.ads: Minor reformatting.
4133 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4135         * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
4136         * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
4137         hooks.
4139 2014-08-01  Yannick Moy  <moy@adacore.com>
4141         * inline.adb (Cannot_Inline): Issue info message instead of
4142         warning for subprograms not inlined in GNATprove mode.
4143         * sem_res.adb (Resolve_Call): Take body into account for deciding
4144         whether subprogram can be inlined in GNATprove mode or not.
4146 2014-08-01  Claire Dross  <dross@adacore.com>
4148         * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
4149         of Get_First_Parent_With_External_Axiomatization_For_Entity for
4150         shorter.
4151         * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
4152         for parameters of packages with external axiomatization.
4154 2014-08-01  Robert Dewar  <dewar@adacore.com>
4156         * sem_res.adb: Minor comment addition.
4158 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4160         * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
4161         s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
4162         no longer used.
4163         * s-os_lib.ads: Minor reformatting.
4165 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4167         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
4168         completely previous code since only GCC back-ends are prepared
4169         to handle e.g. 'Machine attribute.
4170         * targparm.adb, targparm.ads: Remove remaining refs and
4171         handling of OpenVMS_On_Target, VAX_Float_On_Target and
4172         RTX_RTSS_Kernel_Module_On_Target.
4173         * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
4174         no longer used.
4176 2014-08-01  Robert Dewar  <dewar@adacore.com>
4178         * exp_dist.adb, exp_attr.adb: Minor reformatting.
4179         * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
4180         a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
4181         sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
4182         g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
4183         improper use of shall.
4185 2014-08-01  Robert Dewar  <dewar@adacore.com>
4187         * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
4188         exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
4189         exp_ch3.adb: Minor reformatting & code reorganization.
4191 2014-08-01  Robert Dewar  <dewar@adacore.com>
4193         * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
4194         * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
4195         s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4196         s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
4197         s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
4198         code.
4199         * gcc-interface/decl.c, gcc-interface/Makefile.in,
4200         gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
4202 2014-08-01  Pascal Obry  <obry@adacore.com>
4204         * s-os_lib.ads: Rename File_Size to Large_File_Size.
4206 2014-08-01  Robert Dewar  <dewar@adacore.com>
4208         * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4209         a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
4210         a-numaux-libc-x86.ads: Fix bad package header comments.
4211         * elists.ads, elists.adb (Append_New_Elmt): New procedure.
4212         * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
4213         checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
4214         sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
4215         targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
4216         stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
4217         s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
4218         s-os_lib.adb: Remove VMS-specific code.
4220 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4222         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
4223         previous state in CodePeer_Mode.
4225 2014-08-01  Robert Dewar  <dewar@adacore.com>
4227         * hostparm.ads: Put back definition of OpenVMS as False to aid
4228         the transition process.
4229         * sem_ch7.adb: Minor reformatting.
4230         * prj-env.adb: Minor code fix.
4231         * gnat_rm.texi: Complete previous change.
4232         * sem_ch3.adb: Minor reformatting.
4233         * sem_ch6.adb: Minor reformatting.
4234         * sem_elab.adb: Minor reformatting.
4235         * exp_strm.adb: Complete previous change.
4237 2014-08-01  Vincent Celier  <celier@adacore.com>
4239         * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
4240         warning when a constant is unreferenced and its type has pragma
4241         Unreferenced_Objects.
4243 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
4245         * einfo.adb: Flag2 is now known as
4246         Is_Hidden_Non_Overridden_Subprogram.
4247         (Is_Hidden_Non_Overridden_Subprogram): New routine.
4248         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
4249         (Write_Entity_Fields): Output Flag2.
4250         * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
4251         along with occurrences in entities.
4252         (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
4253         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
4254         and pragma Inline.
4255         * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
4256         declared non-overriden homographs into visibility.
4257         * sem_ch13.adb (Freeze_Entity_Checks): Hide all
4258         implicitly declared non-overriden homographs.
4259         (Hide_Non_Overridden_Subprograms): New routine.
4261 2014-08-01  Robert Dewar  <dewar@adacore.com>
4263         * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
4264         VMS-specific code.
4265         * prj-conf.adb: Minor reformatting.
4266         * xr_tabls.adb (Read_File): Restore code which was enabled on
4267         non VMS platforms before.
4268         * prj-env.adb (Initialize_Default_Project_Path): Ditto.
4269         * sem_ch5.adb: Minor reformatting.
4270         * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
4271         sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
4272         Remove VMS-specific code.
4274 2014-08-01  Vincent Celier  <celier@adacore.com>
4276         * make.adb (Await_Compile): Remove loop that was only needed
4277         for VMS.
4279 2014-08-01  Robert Dewar  <dewar@adacore.com>
4281         * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
4282         a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
4283         a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
4284         einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
4285         exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
4286         fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
4287         g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
4288         g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
4289         krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
4290         mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
4291         osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
4292         prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
4293         rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
4294         s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
4295         s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
4296         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
4297         s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
4298         s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
4299         sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
4300         sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
4301         sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
4302         treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
4303         specific code and comments.
4305 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4307         * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
4308         Check_Reverse_Iteration, to verify the legality of the Reverse
4309         indicator on various container types, and to detect illegal
4310         reverse iterations on containers that only supoort forward
4311         iteration.
4313 2014-08-01  Vincent Celier  <celier@adacore.com>
4315         * gnatcmd.adb: Remove the VMS specific stuff.  Integrate in
4316         procedure GNATCmd the relevant declarations from packages VMS_Cmds
4317         and VMS_Conv.
4318         * gnatcmd.ads: Update comments to remove any trace of VMS
4320 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4322         * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
4323         defaulted actual that is an operator, before building wrapper
4324         for it in GNATprove mode. Restrict construction of wrapper to
4325         actuals that are operators.
4327 2014-08-01  Vincent Celier  <celier@adacore.com>
4329         * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
4330         specific packages no longer needed.
4332 2014-08-01  Pascal Obry  <obry@adacore.com>
4334         * s-os_lib.ads (System.CRTL): Move with clause to body.
4335         (File_Size): New type.
4336         (File_Length64): Use it.
4337         (File_Length): Restore previous spec returning a Long_Integer.
4338         * s-os_lib.adb (System.CRTL): Move with clause here.
4340 2014-08-01  Vincent Celier  <celier@adacore.com>
4342         * mlib-prj.adb: Update comments to remove any mention of VMS.
4344 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4346         * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
4347         xgnatugn.adb and ug_words.
4349 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4351         * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
4352         expansion can be avoid for Machine, Model and Rounding.
4353         (Is_Inline_Floating_Point_Attribute): Return true for Machine
4354         & Model, as well as Rounding if wrapped in a conversion to an
4355         integer type.
4356         * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
4357         * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
4358         * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
4359         * gcc-interface/misc.c (enumerate_modes): Compute it.
4360         * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
4361         (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
4362         Machine and Model.
4363         (Attribute_to_gnu) <Attr_Model>: New case.
4364         <Attr_Machine>): Likewise.
4365         (convert_with_check): Test
4366         fp_arith_may_widen variable.
4368 2014-08-01  Pascal Obry  <obry@adacore.com>
4370         * adaint.h (GNAT_FOPEN): New definition for Windows.
4371         (GNAT_OPEN): Likewise.
4372         (GNAT_STAT): Likewise.
4373         (GNAT_FSTAT): Likewise.
4374         (GNAT_LSTAT): Likewise.
4375         (GNAT_STRUCT_STAT): Likewise.
4376         * adaint.c (__gnat_stat): Fix computation of file size for
4377         Windows.
4379 2014-08-01  Vincent Celier  <celier@adacore.com>
4381         * Makefile.rtl: Minor comment update.
4383 2014-08-01  Vincent Celier  <celier@adacore.com>
4385         * Make-generated.in: Remove dependencies for vms-help.
4387 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
4389         * makeutl.ads, opt.ads: Minor grammar fixes.
4390         * makeutl.adb: Minor code reorganization.
4392 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4394         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
4395         gnatsym.adb: Remove gnatsym (VMS only tool).
4397 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
4399         * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
4400         conditionalization from gnat_ugn.texi and projects.texi, and updated
4401         (considerably simplified) xgnatugn.adb, to be removed soon.
4403 2014-08-01  Vincent Celier  <celier@adacore.com>
4405         * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
4406         * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
4407         instead of Debug.Debug_Flag_S.
4408         * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
4409         No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
4410         error messages.
4411         * makeutl.ads (No_Exit_Message_Option): New constant string
4412         for switch --no-exit-message.
4413         * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
4414         * switch-m.adb (Scan_Make_Switches): Recognize new switch
4415         --no-exit-message.
4417 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4419         * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
4420         * gcc-interface/Make-lang.in: Remove exp_vfpt.o
4422 2014-08-01  Javier Miranda  <miranda@adacore.com>
4424         * inline.ads (Inlined_Calls, Backend_Calls,
4425         Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
4426         moved to inline.adb (Cannot_Inline): Update documentation.
4427         (Check_And_Build_Body_To_Inline): Renamed.
4428         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
4429         * inline.adb (Check_Inlining_Restrictions): New local variable.
4430         (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
4431         Backend_Not_Inlined_Subps): Declarations moved here
4432         from inline.ads (Number_Of_Statements): Removed.
4433         (Remove_Pragmas): Avoid duplicated version of this subprogram.
4434         (Build_Body_To_Inline): Code cleanup.
4435         (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
4436         (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
4437         (Check_Body_To_Inline): Removed.
4438         (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
4439         (Has_Excluded_Declaration): No action if not
4440         Check_Inlining_Restrictions.
4441         (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
4442         (Initialize): Initialize the lists of inlined calls and subprograms.
4443         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
4444         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
4445         to Check_And_Build_Body_To_Inline since it has been renamed as
4446         Check_And_Split_Unconstrained_Function
4447         * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
4448         package inline.
4449         * gnat1drv.adb Update call to Inline.List_Inlining_Info.
4451 2014-08-01  Vincent Celier  <celier@adacore.com>
4453         * debug.adb: Add documentation for new debug switch -ds.
4454         * make.adb (List_Bad_Compilations): Do not issue any message
4455         when switch -ds is specified.
4456         * makeutl.adb (Fail_Program): Do not issue any message when
4457         -ds is specified.
4458         (Finish_Program): Ditto.
4460 2014-08-01  Robert Dewar  <dewar@adacore.com>
4462         * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
4463         s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
4464         s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
4465         indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
4466         indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
4467         s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
4468         s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
4469         s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
4470         s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
4471         s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
4472         s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
4473         s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
4474         g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
4475         s-tratas.ads: Minor fix to copyright notices.
4477 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
4479         * sinfo.ads: Remove long obsolete comment.
4480 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4482         * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
4483         * sem_ch3.adb: Minor reformatting.
4485 2014-08-01  Pascal Obry  <obry@adacore.com>
4487         * cstreams.c: Only enable large file support on know supported
4488         platforms. Add missing defines/includes.
4490 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
4492         * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
4493         No_Dynamic_Predicate_On_Actual, to enforce the generic contract
4494         on generic units that contain constructs that forbid subtypes
4495         with predicates.
4496         * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
4497         Inherit flags indicating the presence of predicates in subtype
4498         declarations with and without constraints.
4499         (Inherit_Predicate_Flags): Utility for the above.
4500         * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
4501         indicate that the actual cannot have predicates, and preserve
4502         warning. In an instance, report error if actual has predicates
4503         and the construct appears in a package declaration.
4504         * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
4505         for an actual with predicates, if the corresponding formal
4506         carries No_Predicate_On_Actual or (in the case of a loop)
4507         No_Dynamic_Predicate_On_Actual.
4508         * sem_ch13.adb (Build_Predicate_Functions); Do not build a
4509         Static_Predicate function if the type is non-static (in the
4510         presence of previous errors),
4511         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
4512         No_Dynamic_Predicate_On_Actual in a generic context, to enforce
4513         generic contract on actuals that cannot have predicates.
4515 2014-08-01  Pascal Obry  <obry@adacore.com>
4517         * a-direct.adb (C_Size): Returns an int64.
4518         * osint.adb (System.CRTL): New with clause.
4519         (File_Length.Internal): Returns an int64.
4520         * s-os_lib.ads (File_Length): Returns an int64.
4522 2014-08-01  Robert Dewar  <dewar@adacore.com>
4524         * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
4525         mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
4526         osint.adb, krunch.adb: Minor reformatting.
4528 2014-08-01  Robert Dewar  <dewar@adacore.com>
4530         * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
4531         sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
4532         sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
4533         Remove VMS-specific code.
4534         * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
4536 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4538         * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
4539         gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
4540         make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
4541         mlib.ads, tempdir.adb: Remove VMS handling.
4543 2014-08-01  Pascal Obry  <obry@adacore.com>
4545         * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
4546         (__gnat_named_file_length): Likewise.
4547         (__gnat_file_length_attr): Likewise.
4548         * a-direct.adb (C_Size): Use size_t as returned type.
4549         * osint.adb (File_Length): Adjust spec for Internal routine
4550         (returns size_t).
4551         * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
4552         (System.CRTL): With claused moved to spec.
4553         * s-os_lib.ads (System.CRTL): With clause moved to here.
4555 2014-08-01  Pascal Obry  <obry@adacore.com>
4557         * adaint.h, adaint.c (__gnat_open): Added.
4558         * s-crtl.ads (open): Import __gnat_open for large file support.
4560 2014-08-01  Robert Dewar  <dewar@adacore.com>
4562         * sem_case.adb (Dup_Choice): Improve message for integer constants.
4564 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
4566         * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
4568 2014-08-01  Pascal Obry  <obry@adacore.com>
4570         * adaint.h (GNAT_OPEN): Defines as open64 where supported.
4571         * adaint.c (GNAT_OPEN): Uses new macro where needed.
4573 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4575         * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
4576         extracted from...
4577         (maybe_pad_type): ...here.  Call it to canonicalize the pad type.
4578         * gcc-interface/gigi.h: Update comment.
4580 2014-07-31  Javier Miranda  <miranda@adacore.com>
4582         * debug.adb Remove documentation of -gnatd.k (no longer needed).
4583         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
4584         * inline.ads (Backend_Inlined_Subps): New
4585         Elist.  (Backend_Not_Inlined_Subps): New Elist.
4586         (Has_Excluded_Declaration): Declaration previously located in
4587         * inline.adb (Has_Excluded_Statement): Declaration previously
4588         located in inline.adb
4589         * inline.adb (Has_Single_Return): Moved out of
4590         Build_Body_To_Inline to avoid having duplicated code.
4591         (Number_Of_Statements): New subprogram.
4592         (Register_Backend_Inlined_Subprogram): New subprogram.
4593         (Register_Backend_Not_Inlined_Subprogram): New subprogram.
4594         (Add_Inlined_Subprogram): Register backend inlined subprograms and
4595         also register subprograms that cannot be inlined by the backend.
4596         (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
4597         to avoid having duplicated code.  Replace occurrences of
4598         Debug_Flag_Dot_K by Back_End_Inlining.
4599         * sem_res.adb (Resolve_Call): Code cleanup.
4600         * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
4601         occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
4602         (List_Inlining_Info): Add listing of subprograms passed to the
4603         backend and listing of subprograms that cannot be inlined by
4604         the backend.
4605         * sem_ch12.adb, sem_ch3.adb Replace occurrences of
4606         Debug_Flag_Dot_K by Back_End_Inlining.
4608 2014-07-31  Robert Dewar  <dewar@adacore.com>
4610         * nlists.ads: Minor code fix (remove unwise Inline for
4611         List_Length).
4613 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4615         * einfo.adb: Remove VMS specific code.
4616         * exp_attr.adb: Remove VAX specific code.
4617         * set_targ.adb: Remove handling of VAX_Float.
4618         * sem_vfpt.adb: Remove references to Vax_Native.
4619         * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
4621 2014-07-31  Robert Dewar  <dewar@adacore.com>
4623         * sem_ch4.adb: Minor reformatting.
4625 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4627         * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
4628         to VMS. Misc clean ups.
4629         * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
4631 2014-07-31  Robert Dewar  <dewar@adacore.com>
4633         * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
4634         exp_prag.adb, frontend.adb, interfac.ads,
4635         par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
4636         s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
4637         sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
4638         snames.ads-tmpl: Remove obsolete VMS-specific code.
4640 2014-07-31  Robert Dewar  <dewar@adacore.com>
4642         * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
4644 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4646         * a-intnam-linux.ads: Minor: update obsolete comments.
4647         * s-taasde.adb: Minor: fix comment header.
4649 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4651         * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
4652         s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
4653         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
4654         g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
4655         s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
4656         s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
4657         s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
4658         a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
4659         symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
4660         symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4661         s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
4662         symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
4663         s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
4664         s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
4665         s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
4666         a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
4667         * namet.h (Is_Non_Ada_Error): Remove.
4669 2014-07-31  Robert Dewar  <dewar@adacore.com>
4671         * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
4672         reformatting.
4674 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4676         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
4677         which demonstrates the expansion of while loops subject to
4678         attribute 'Loop_Entry. The condition of a while loop along with
4679         related condition actions is now wrapped in a function.  Instead
4680         of repeating the condition, the expansion now calls the function.
4682 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4684         * sem_case.adb (Check_Against_Predicate): Correct off-by-one
4685         error when reporting of missing values in a case statement for
4686         a type with a static predicate.
4687         (Check_Choices): Reject a choice given by a subtype to which a
4688         Dynamic_Predicate applies.
4689         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
4690         Has_Dynamic_Predicate_Aspect flag from parent.
4692 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4694         * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
4695         cannot apply to a subtype of an incomplete type.
4696         (Is_Static_Choice): Treat an Others_Clause as static. The
4697         staticness of the expression and of the range are checked
4698         elsewhere.
4700 2014-07-31  Pascal Obry  <obry@adacore.com>
4702         * adaint.h (__gnat_ftell64): Added.
4703         (__gnat_fseek64): Added.
4704         (__int64): Added.
4705         * cstreams.c (__int64): Removed.
4707 2014-07-31  Pascal Obry  <obry@adacore.com>
4709         * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
4710         * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
4711         (ftell64): Always returns a 64bit value.
4712         * cstreams.c (int64): New definition.
4713         (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
4714         (__gnat_ftell64): Always returns a 64bit value. The implemenation now
4715         uses ftello() on UNIX.
4716         (__gnat_fseek64): Offset is always a 64bit value. The
4717         implementation now uses fseeko() on UNIX.
4718         * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
4719         always use fseek64 to set the offset.
4720         (Size): Simplify code, always use fseek64/ftell64.
4721         * s-direio.ads (Count): Now an int64.
4722         * g-socket.ads (Vector_Element): Adjust definition for Length
4723         to be a size_t. This matches the C definition and avoid using
4724         a 64bit integer on 32bit platforms now that Count is always 64bit.
4725         * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
4726         (C_Recvmsg): Change some conversion to account for change in
4727         Vector_Element.
4728         (C_Sendmsg): Likewise.
4730 2014-07-31  Robert Dewar  <dewar@adacore.com>
4732         * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
4733         * debug.adb: Remove documentation of -gnatdm flag.
4734         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
4735         -gnatdm flag.
4737 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
4739         * lib-writ.adb (Write_Unit_Information): Fix case where U =
4740         No_Unit.
4742 2014-07-31  Claire Dross  <dross@adacore.com>
4744         * exp_util.adb, exp_util.ads
4745         (Get_First_Parent_With_External_Axiomatization_For_Entity):
4746         New routine to find the first parent of an entity with
4747         a pragma Annotate (GNATprove, External_Axiomatization).
4748         (Has_Annotate_Pragma_For_External_Axiomatization): New function
4749         to check if a package has a pragma Annotate (GNATprove,
4750         External_Axiomatization).
4751         * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
4752         flag on the entity for the declaration created for a formal
4753         subprogram in an instance. This is a renaming declaration,
4754         or in GNATprove_Mode the declaration of an expression function
4755         that captures the axiomatization of the actual.
4756         * sem_ch6.adb (Analyze_Expression_Function): For a
4757         Generic_Actual_Subprogram, place body immediately after the
4758         declaration because it may be used in a subsequent declaration
4759         in the instance.
4760         * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
4761         the actual is a function, not an operator. Handle functions with
4762         one and two parameters and binary and unary operators.
4764 2014-07-31  Pascal Obry  <obry@adacore.com>
4766         * cstreams.c (__gnat_is_regular_file_fd): Removed.
4767         * adaint.c (__gnat_is_regular_file_fd): Added.
4769 2014-07-31  Robert Dewar  <dewar@adacore.com>
4771         * exp_strm.adb: Minor reformatting.
4773 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4775         * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
4776         Analyze_Associations, to create a wrapper around operators that
4777         are actuals to formal subprograms. This is done in GNATProve
4778         mode in order to propagate the contracts of the operators to
4779         the body of the instance.
4781 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4783         * sem_attr.adb (Analyze_Attribute, case 'Old):  The reference is
4784         legal if within an aspect specification for a generic subprogram.
4786 2014-07-31  Javier Miranda  <miranda@adacore.com>
4788         * gnat1drv.adb (Back_End_Inlining): Set to false if
4789         Suppress_All_Inlining is set.
4790         * debug.adb: Adding documentation for -gnatd.z.
4791         * inline.adb (Add_Inlined_Body): Extend the -gnatn2
4792         processing to -gnatn1 for calls to Inline_Always routines.
4793         (Add_Inlined_Subprogram): Remove previous patch.
4795 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4797         * sem_ch13.adb (Check_One_Function): Apply properly the static
4798         semantic rules for indexing aspects and the functions they denote.
4800 2014-07-31  Javier Miranda  <miranda@adacore.com>
4802         * debug.adb: Complete documentation of -gnatd.z.
4804 2014-07-31  Bob Duff  <duff@adacore.com>
4806         * gnat_ugn.texi: Minor doc fixes.
4808 2014-07-31  Robert Dewar  <dewar@adacore.com>
4810         * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
4811         index value.
4813 2014-07-31  Tristan Gingold  <gingold@adacore.com>
4815         * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
4816         (Packed_Bytes1): Make component aliased.
4818 2014-07-31  Robert Dewar  <dewar@adacore.com>
4820         * s-unstyp.ads, s-fileio.adb: Minor reformatting.
4822 2014-07-31  Robert Dewar  <dewar@adacore.com>
4824         * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
4825         reformatting.
4827 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4829         * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
4830         on array references here, now done more selectively in trans.c.
4832 2014-07-31  Doug Rupp  <rupp@adacore.com>
4834         * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
4836 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4838         * sem_util.adb (Is_Effectively_Volatile): New routine.
4840 2014-07-31  Fedor Rybin  <frybin@adacore.com>
4842         * gnat_ugn.texi: Document --test-duration option for gnattest.
4844 2014-07-31  Javier Miranda  <miranda@adacore.com>
4845             Eric Botcazou  <ebotcazou@adacore.com>
4847         * opt.ads (Back_End_Inlining): New variable which controls
4848         activation of inlining by back-end expansion.
4849         * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
4850         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
4851         the body to be inlined by the frontend if Back_End_Inlining
4852         is enabled.
4853         * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
4854         (Expand_Call): If backend inlining is enabled let the backend to
4855         handle inlined subprograms.
4856         * inline.ads (Register_Backend_Call): Moved here from exp_ch6
4857         * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
4858         (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
4859         (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
4860         enabled.
4861         * debug.adb Document -gnatd.z
4862         * fe.h Import Back_End_Inlining variable.
4863         * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
4864         enabled then declare attribute "always inline"
4865         * gcc-interface/decl.c, gcc-interface/trans.c,
4866         gcc-interface/gigi.h: Add handling of Inline_Always pragma.
4868 2014-07-31  Robert Dewar  <dewar@adacore.com>
4870         * a-ngelfu.ads: Minor comment fix.
4872 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4874         * freeze.adb (Freeze_Record_Type): Replace all calls to
4875         Is_SPARK_Volatile with Is_Effectively_Volatile and update
4876         related comments.
4877         * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
4878         Replace all calls to Is_SPARK_Volatile with
4879         Is_Effectively_Volatile and update related comments.
4880         * sem_ch5.adb (Analyze_Iterator_Specification,
4881         Analyze_Loop_Parameter_Specification): Replace all calls to
4882         Is_SPARK_Volatile with Is_Effectively_Volatile and update
4883         related comments.
4884         * sem_ch6.adb (Process_Formals): Replace all calls to
4885         Is_SPARK_Volatile with Is_Effectively_Volatile and update
4886         related comments.
4887         * sem_ch12.adb (Instantiate_Object): Replace the call to
4888         Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
4889         and update related comment.
4890         * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
4891         Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
4892         with Is_Effectively_Volatile and update related comments.
4893         * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
4894         all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
4895         update related comments.
4896         * sem_util.adb (Has_Enabled_Property,
4897         Variable_Has_Enabled_Property): Replace all calls
4898         to Is_SPARK_Volatile with Is_Effectively_Volatile and
4899         update related comments.
4900         (Is_Effectively_Volatile): New routine.
4901         (Is_Effectively_Volatile_Object): New routine.
4902         (Is_SPARK_Volatile): Removed.
4903         (Is_SPARK_Volatile_Object): Removed.
4904         * sem_util.ads (Is_Effectively_Volatile): New routine.
4905         (Is_Effectively_Volatile_Object): New routine.
4906         (Is_SPARK_Volatile): Removed.
4907         (Is_SPARK_Volatile_Object): Removed.
4909 2014-07-31  Pascal Obry  <obry@adacore.com>
4911         * s-fileio.adb (Open): Make sure a shared file gets inserted into
4912         the global list atomically. This ensures that the file descriptor
4913         won't be freed because another tasks is closing the file.
4915 2014-07-31  Robert Dewar  <dewar@adacore.com>
4917         * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
4918         generation of _FIRST and _LAST variables even in GNATprove_Mode.
4919         * gnat_ugn.texi: Minor editing.
4920         * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
4921         aggregate is marked Comes_From_Source if argument is CFS.
4923 2014-07-31  Pascal Obry  <obry@adacore.com>
4925         * s-fileio.adb: Remove obsolete comment.
4927 2014-07-31  Vincent Celier  <celier@adacore.com>
4929         * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
4930         overriding keyword before function to avoid error when compiler
4931         is called with -gnatyO (check overriding indicators).
4933 2014-07-31  Tucker Taft  <taft@adacore.com>
4935         * gnat_ugn.texi: Add a paragraph pointing the reader
4936         to the "plugins" example.
4938 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4940         * freeze.adb (Freeze_Expression): Document the
4941         purpose of the parent chain traversal.
4943 2014-07-31  Robert Dewar  <dewar@adacore.com>
4945         * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
4946         unconstrained fpt ops.
4948 2014-07-31  Pascal Obry  <obry@adacore.com>
4950         * s-fileio.adb (Open): Make sure a shared file gets inserted into
4951         the global list atomically. This ensures that the file descriptor
4952         won't be freed because another tasks is closing the file.
4954 2014-07-31  Vincent Celier  <celier@adacore.com>
4956         * projects.texi: Minor spelling error fix.
4958 2014-07-31  Robert Dewar  <dewar@adacore.com>
4960         * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
4961         * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
4962         information.
4963         * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
4964         * restrict.adb (Process_Restriction_Synonyms): Add handling
4965         of No_Elaboration_Code_All.
4966         * restrict.ads (Process_Restriction_Synonyms): Now handles
4967         No_Elaboration_Code_All.
4968         * sem_ch10.adb (Analyze_Context): Enforce transitive with for
4969         No_Elaboration_Code_All.
4970         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
4971         Handle setting of No_Elab_Code in unit information. Handle
4972         No_Elaboration_Code_All.
4973         * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
4974         pragma processing.
4975         (Name_No_Elaboration_Code_All): New name for pragma processing.
4977 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4979         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
4980         types with a null range and use the Esize of the component
4981         instead of its RM_Size to identify appropriate values.
4983 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4985         * freeze.adb Add with and use clause for Aspects.
4986         (Freeze_Expression): Emit an error when a volatile constant lacks
4987         Boolean aspect Import.
4988         (Has_Boolean_Aspect_Import): New routine.
4990 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
4992         * exp_util.adb: Minor reformatting.
4994 2014-07-31  Vincent Celier  <celier@adacore.com>
4996         * errutil.adb (Error_Msg): Make sure that all components of
4997         the error message object are initialized.
4999 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5001         * sem_ch4.adb (Try_Container_Indexing): If the container type is
5002         class-wide, use specific type to locate iteration primitives.
5003         * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
5004         rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
5005         Minor error message reformating.
5006         * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
5007         aspect for a derived type.
5009 2014-07-31  Robert Dewar  <dewar@adacore.com>
5011         * debug.adb: Document debug flag d.X.
5013 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5015         * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
5016         * sem_util.adb (Find_Specific_Type): If type is untagged private,
5017         retrieve full view so that primitive operations can be located.
5018         * exp_disp.adb Move Find_Specific_Type to sem_util.
5019         * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
5020         Find_Specific_Type to locate primitive equality.
5021         * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
5022         type does not require initialization.
5023         * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
5024         body all visibility is established, and the enclosing package
5025         declarations must not be installed.
5027 2014-07-31  Yannick Moy  <moy@adacore.com>
5029         * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
5030         Make subprogram public.
5032 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5034         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
5035         predicate Discriminated_Size, to distinguish between private
5036         components that depend on discriminants from those whose size
5037         depends on some other non-static expression.
5039 2014-07-31  Nicolas Setton  <setton@adacore.com>
5041         * g-exptty.adb (Close): Fix binding to Waitpid: use the
5042         tty version.
5044 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5046         * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
5047         in a discrete range, when 'range was probably intended.
5049 2014-07-31  Robert Dewar  <dewar@adacore.com>
5051         * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
5053 2014-07-31  Robert Dewar  <dewar@adacore.com>
5055         * frontend.adb: Minor reformatting.
5056         * sem.adb: Minor reformatting.
5057         * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
5058         identifiers on rewrite.
5059         * par.adb: Minor comment updates.
5060         * a-ngelfu.adb (Cos): Minor simplification.
5061         * par-ch13.adb (Get_Aspect_Specifications): Improve messages
5062         and recovery for bad aspect.
5063         * exp_ch3.adb: Code clean up.
5064         * sem_util.ads: Minor comment correction.
5065         * sem_ch13.adb (Check_Array_Type): Properly handle large types.
5066         * sem_ch3.adb: Code clean up.
5067         * binderr.ads: Minor comment correction.
5069 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5071         * exp_disp.adb (Expand_Interface_Conversion): A call whose
5072         prefix is a static conversion to an interface type that is not
5073         class-wide is not dispatching.
5075 2014-07-31  Robert Dewar  <dewar@adacore.com>
5077         * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
5078         s-traceb-mastop.adb: Minor reformatting.
5080 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5082         * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
5083         expansion, to handle properly visibility of selected components
5084         in instance bodies.
5086 2014-07-31  Robert Dewar  <dewar@adacore.com>
5088         * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
5089         * par-ch2.adb (P_Pragma): Set Inside_Depends.
5090         * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
5091         Check_Unary_Plus_Or_Minus.
5092         * scans.ads (Inside_Depends): New flag.
5093         * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
5094         * style.ads: Add Inside_Depends parameter to Check_Arrow Add
5095         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
5096         * styleg.adb (Check_Arrow): Handle Inside_Depends case.
5097         (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
5098         * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
5099         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
5101 2014-07-31  Javier Miranda  <miranda@adacore.com>
5103         * s-vaflop.adb Move the body of function T_To_G before
5104         T_To_D. Required for frontend inlining.
5105         * inline.adb (Has_Excluded_Contract): New subprogram used to
5106         check if a subprogram inlined by the frontend has contracts
5107         which cannot be inlined.
5109 2014-07-31  Bob Duff  <duff@adacore.com>
5111         * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
5112         (Call_Chain): Add 1 to number of frames to skip, to account for
5113         the fact that there's one more frame on the stack.
5114         * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
5116 2014-07-31  Robert Dewar  <dewar@adacore.com>
5118         * checks.adb (Enable_Overflow_Check): More precise setting of
5119         Do_Overflow_Check flag for division.
5121 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
5123         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
5124         array types with implementation type.
5126 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5128         * sem_ch10.adb (Process_State): Remove local variable Name. Add
5129         local variable Decl. Partially declare an abstract state by
5130         generating an entity and storing it in the state declaration.
5131         * sem_prag.adb (Create_Abstract_State): Fully declare a
5132         semi-declared abstract state.
5134 2014-07-31  Robert Dewar  <dewar@adacore.com>
5136         * prj-nmsc.adb: Minor reformatting.
5138 2014-07-31  Bob Duff  <duff@adacore.com>
5140         * s-tasdeb.adb (System.Tasking.Debug): Remove
5141         all usage of the secondary stack from this package.
5143 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
5145         * freeze.adb (Freeze_Expression): Update the loop in charge
5146         of finding a proper insertion place for freeze nodes to handle
5147         N_Expression_With_Actions nodes.
5149 2014-07-31  Robert Dewar  <dewar@adacore.com>
5151         * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
5152         reformatting.
5154 2014-07-31  Pascal Obry  <obry@adacore.com>
5156         * prj-nmsc.adb: Minor reformatting.
5158 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5160         * sem_util.adb (Has_Preelaborable_Initialization): Check that
5161         type is tagged before checking whether a user-defined Initialize
5162         procedure is present.
5164 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
5166         * a-ngelfu.ads (Sqrt): Augment postcondition.
5168 2014-07-31  Pascal Obry  <obry@adacore.com>
5170         * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
5171         directory and ALI directory must be different than all object
5172         and library directories of aggregated projects.
5174 2014-07-31  Vincent Celier  <celier@adacore.com>
5176         * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
5177         to package body, as it is not called from outside. Remove argument
5178         Project_Tree, no longer used. When runtime cannot be found,
5179         call Raise_Invalid_Config instead of failing the program.
5181 2014-07-31  Robert Dewar  <dewar@adacore.com>
5183         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
5184         (Overflow_Check).
5185         * gnatlink.adb (Process_Args): Remove generation of -gnato0,
5186         no longer needed.
5188 2014-07-31  Robert Dewar  <dewar@adacore.com>
5190         * gnat_ugn.texi: Document new switch -gnato0.
5191         * sem_ch3.ads: Minor reformatting.
5192         * gnatlink.adb (Process_Args): Compile bind file with -gnato0
5193         (we do not want overflow checks when incrementing elaboration
5194         counters).
5195         * einfo.ads: Minor reformatting.
5197 2014-07-31  Robert Dewar  <dewar@adacore.com>
5199         * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
5200         * s-arit64.adb: Minor reformatting.
5202 2014-07-31  Robert Dewar  <dewar@adacore.com>
5204         * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
5205         checking is enabled except in GNAT_Mode.
5206         * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
5207         (suppress overflow checks).
5209 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5211         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
5212         invariant procedure for an internally generated subtype that is
5213         created for an object of a class-wide type.
5215 2014-07-31  Vincent Celier  <celier@adacore.com>
5217         * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
5219 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
5221         * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
5222         exp_disp.adb: Minor reformatting.
5224 2014-07-31  Robert Dewar  <dewar@adacore.com>
5226         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
5227         sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
5228         exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
5229         reformatting.
5231 2014-07-31  Robert Dewar  <dewar@adacore.com>
5233         * sem_ch13.adb: Minor reformatting.
5235 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5237         * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
5238         is an unchecked_union, warn that invariants will not be checked
5239         on components that have them.
5241 2014-07-31  Robert Dewar  <dewar@adacore.com>
5243         * freeze.adb (Freeze_Entity): Check for error of
5244         Type_Invariant'Class applied to a untagged type.
5245         * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
5246         as null body, so that we perform error checks even if expansion
5247         is off.
5249 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
5251         * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
5252         is already present, nothing to do.
5253         * exp_ch3.adb (Build_Component_Invariant_Call): For an access
5254         component, check whether the access type has an invariant before
5255         checking the designated type.
5256         (Build_Record_Invariant_Proc): Change suffix of generated
5257         name to prevent ambiguity when record type has invariants
5258         in addition to those of components, and two subprograms are
5259         constructed. Consistent with handling of array types.
5260         (Insert_Component_Invariant_Checks): Build invariant procedure
5261         body when one has not been created yet, in the case of composite
5262         types that are completions and whose full declarations carry
5263         invariants.
5265 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5267         * gnat_rm.texi: Minor doc fixes.
5269 2014-07-30  Robert Dewar  <dewar@adacore.com>
5271         * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
5273 2014-07-30  Vincent Celier  <celier@adacore.com>
5275         * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
5276         of error message.
5277         * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
5278         message to report that a directory cannot be created, to avoid
5279         processing of the directory path that may contains special
5280         insertion characters.
5282 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5284         * a-crdlli.ads: Place declaration of Empty_List after full type
5285         declaration for Curosr, to prevent freezing error.
5287 2014-07-30  Robert Dewar  <dewar@adacore.com>
5289         * get_targ.adb: Minor code reorganization.
5290         * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
5291         reformatting.
5293 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5295         * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
5296         not Program_Error, when attempting to remove an element not in
5297         the set. This is the given semantics for all set containers.
5299 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5301         * a-rbtgbo.adb (Delete_Node_Sans_Free): If
5302         element is not present in tree return rather than violating
5303         an assertion. Constraint_Error will be raised in the caller if
5304         element is not in the container.
5306 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5308         * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
5309         (elab body): Add provision for default target config file.
5310         * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
5312 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5314         * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
5315         when attempting to remove an element not in the set. This is
5316         the given semantics for all set containers.
5317         * a-cborse.adb (Delete): Attempt removal first, to check for
5318         tampering, before checking whether this is an attempt to
5319         delete a  non-existing element, and in fthe latter case raise
5320         Constraint_Error.
5322 2014-07-30  Vincent Celier  <celier@adacore.com>
5324         * prj-proc.adb (Recursive_Process): Do not create a new
5325         Project_Id if the project is already in the list of projects of
5326         the tree.
5328 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5330         * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
5331         whose type is an incomplete formal type.
5332         (Analyze_Return_Type): Reject a return type that is an untagged
5333         imcomplete formal type.
5334         (Process_Formals): Reject a formal parameter whose type is an
5335         untagged formal incomplete type.
5336         * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
5337         an untagged formal incomplete type.
5339 2014-07-30  Robert Dewar  <dewar@adacore.com>
5341         * gnat_ugn.texi: Minor spelling correction.
5342         * makeutl.adb: Minor code reorganization.
5343         * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
5345 2014-07-30  Robert Dewar  <dewar@adacore.com>
5347         * einfo.ads (Has_Unchecked_Union): Document that this is used
5348         to check for illegal Valid_Scalars attribute references.
5349         * exp_attr.adb (Build_Record_VS_Func): New function
5350         (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
5351         function.
5352         * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
5353         Unchecked_Union Add note on 'Valid_Scalars generating a lot
5354         of code.
5355         * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
5356         error on attempt to apply Valid_Scalars to Unchecked_Union type.
5358 2014-07-30  Steve Baird  <baird@adacore.com>
5360         * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
5361         of A(I..J)(K) in CodePeer_Mode.
5363 2014-07-30  Ben Brosgol  <brosgol@adacore.com>
5365         * gnat_ugn.texi: Fix typo.
5367 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5369         * lib-writ.ads: document format change.
5371 2014-07-30  Pascal Obry  <obry@adacore.com>
5373         * prj-util.adb (For_Interface_Sources): Do not
5374         include sources from withed externally built projects.
5376 2014-07-30  Robert Dewar  <dewar@adacore.com>
5378         * lib.adb: Minor reformatting.
5379         * prj-util.adb: Minor reformatting.
5381 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5383         * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
5384         that depends on discriminants, and which is given by an others
5385         clause, create an explicit subtype with the discriminant values
5386         of the enclosing aggregate, because the backend cannot otherwise
5387         retrieve the actual bounds of the array.
5389 2014-07-30  Fedor Rybin  <frybin@adacore.com>
5391         * gnat_ugn.texi: Improve gnattest documentation.
5393 2014-07-30  Pascal Obry  <obry@adacore.com>
5395         * makeutl.adb (Insert_Project_Sources): Properly handle sources
5396         that are aggregated. We want to include sources not only part
5397         of libraries but also if part of an aggregated project from an
5398         aggregate library.
5399         * prj.adb (For_Project_And_Aggregated_Context): Properly check
5400         state of root project.
5402 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5404         * lib-load.ads: Minor reformatting.
5405         * sinfo.ads (Library_Unit): Update comment.
5406         * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
5407         is redundant. Instead used the pragma Node_Id directly as the
5408         element type.
5410 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5412         * lib.adb (Store_Note): Store only notes that do not come from
5413         an instance, and that are in the extended main source unit.
5414         * lib-writ (Write_Unit_Information): Annotations from subunits
5415         must be emitted along with those for the main unit, and they
5416         must carry a specific file name.
5417         * ali.ads (Notes_Record): Use a File_Name_Type instead of a
5418         Unit_Id for the source file containing the pragma, as in the
5419         case of annotations from subunits we might not have a readily
5420         available unit id.
5421         * ali.adb (Scan_ALI): Account for above change in data structure.
5423 2014-07-30  Vincent Celier  <celier@adacore.com>
5425         * makeutl.adb (Insert_Project_Sources): When the library project
5426         is an aggregate Stand-Alone Library, insert in the queue the
5427         Ada interface units, with Closure set to True;
5429 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5431         * sem_util.adb: Fix minor typo.
5432         * makeutl.adb: Minor reformatting.
5434 2014-07-30  Robert Dewar  <dewar@adacore.com>
5436         * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
5438 2014-07-30  Yannick Moy  <moy@adacore.com>
5440         * checks.ads: Fix typo in comment.
5442 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
5444         * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
5445         entities that materialize range bounds, if any.
5447 2014-07-30  Vincent Celier  <celier@adacore.com>
5449         * projects.texi: Minor spelling fix.
5451 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5453         * checks.adb (Make_Bignum_Block): Use the new secondary stack
5454         build routines to manage the mark.
5455         * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
5456         Use the new secodary stack build routines to manage the mark.
5457         (Insert_Actions_In_Scope_Around): Add new formal parameter
5458         Manage_SS along with comment on its usage. Code and comment
5459         reformatting. Mark and release the secondary stack when the
5460         context warrants it.
5461         (Make_Transient_Block): Update the call
5462         to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
5463         (Wrap_Transient_Declaration): Remove local variable
5464         Uses_SS. Ensure that the secondary stack is marked and released
5465         when the related object declaration appears in a library level
5466         package or package body. Code and comment reformatting.
5467         * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
5468         (Build_SS_Release_Call): New routine.
5470 2014-07-30  Steve Baird  <baird@adacore.com>
5472         * exp_attr.adb: Revert previous change, not needed after all.
5474 2014-07-30  Vincent Celier  <celier@adacore.com>
5476         * makeutl.adb (Queue.Insert_Project_Sources): Insert with
5477         Closure => True for interfaces of Stand-Alone Libraries.
5478         * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
5479         Boolean component Closure, defaulted to False.
5481 2014-07-30  Yannick Moy  <moy@adacore.com>
5483         * sem_res.adb: Fix typo in error message.
5485 2014-07-30  Robert Dewar  <dewar@adacore.com>
5487         * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
5488         as name suffixes rather than L/H for subtype bounds.
5489         * tbuild.ads: Minor comment improvements and fixes
5490         (Make_External_Name): Document that suffix can start with an
5491         underscore.
5493 2014-07-30  Bob Duff  <duff@adacore.com>
5495         * gnat_ugn.texi: Document --rep-clauses switch.
5497 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5499         * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
5500         Default_Component_Value can only be specified for scalar type or
5501         arrays of scalar types respectively.  This legality check must
5502         be performed at the point the aspect is analyzed, in order to
5503         reject aspect specifications that apply to a partial view.
5505 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5507         * freeze.adb: Minor reformatting.
5509 2014-07-30  Robert Dewar  <dewar@adacore.com>
5511         * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
5512         codepeer mode.
5514 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5516         * freeze.adb (Check_Expression_Function): At the freeze point
5517         of an expression function, verify that the expression in the
5518         function does not contain references to any deferred constants
5519         that have no completion yet.
5520         (Freeze_Expression, Freeze_Before): call
5521         Check_Expression_Function.
5522         * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
5523         * a-ciorse.adb: Add Adjust and Finalize routines for
5524         Reference_Control_Type. Use it in the construction of Reference
5525         and Constant_Reference values.
5527 2014-07-30  Robert Dewar  <dewar@adacore.com>
5529         * exp_aggr.adb: Update comments.
5530         * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
5531         reformatting.
5533 2014-07-30  Robert Dewar  <dewar@adacore.com>
5535         * cstand.adb (New_Standard_Entity): New version takes name
5536         string to call Make_Name.
5537         (Create_Standard): Use this routine to set name before setting other
5538         fields.
5540 2014-07-30  Robert Dewar  <dewar@adacore.com>
5542         * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
5543         entity reference.
5544         (Expand_Attribute, case Last): Ditto.
5545         * exp_ch3.adb (Constrain_Index): New calling sequence for
5546         Process_Range_Expr_In_Decl.
5547         (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
5548         problematical case.
5549         * sem_ch3.adb (Constrain_Index): New calling sequence for
5550         Process_Range_Expr_In_Decl.
5551         (Set_Scalar_Range_For_Subtype): ditto.
5552         (Process_Range_Expr_In_Decl): Create constants to hold bounds for
5553         subtype.
5554         * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
5555         * sem_eval.adb (Compile_Time_Compare): Make sure we use base
5556         types if we are not assuming no invalid values.
5558 2014-07-30  Robert Dewar  <dewar@adacore.com>
5560         * clean.adb: Minor reformatting.
5561         * opt.ads: Minor fix to incorrect comment.
5563 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5565         * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
5566         subprogram, used by bounded hashed sets, to delete a node at
5567         a given index, whose element may have been improperly updated
5568         through a Reference_Preserving key.
5569         * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
5570         * a-cbhase.adb: Add Adjust and Finalize routines for
5571         Reference_Control_Type.
5572         (Delete, Insert): Raise Program_Error, not Constraint_Error,
5573         when operation is illegal.
5574         (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
5575         * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
5576         private with_clause for Ada.Finalization.
5577         * a-cbmutr.adb: Add Adjust and Finalize routines for
5578         Reference_Control_Type. Use it in the construction of Reference
5579         and Constant_Reference values.
5581 2014-07-30  Robert Dewar  <dewar@adacore.com>
5583         * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
5585 2014-07-30  Pascal Obry  <obry@adacore.com>
5587         * clean.adb (Clean_Project): Properly check for directory
5588         existence before trying to enter it.
5590 2014-07-30  Robert Dewar  <dewar@adacore.com>
5592         * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
5594 2014-07-30  Robert Dewar  <dewar@adacore.com>
5596         * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
5597         missing semicolon after name.
5599 2014-07-30  Pascal Obry  <obry@adacore.com>
5601         * prj.ads (Gprinstall_Flags): New constant.
5602         * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
5603         missing library dir if Directories_Must_Exist_In_Projects
5604         is false.
5606 2014-07-30  Bob Duff  <duff@adacore.com>
5608         * a-except-2005.adb, a-except.adb: Remove obsolete comments.
5609         * s-traceb.ads: Updagte comments.
5611 2014-07-30  Robert Dewar  <dewar@adacore.com>
5613         * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
5614         a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
5615         a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
5616         reformatting.
5618 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5620         * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
5621         subprogram, used by all versions of hashed sets, to delete a node
5622         whose element has been improperly updated through a Reference_
5623         Preserving key.
5624         * a-cohase.adb: Remove Delete_Node, use new common procedure
5625         Delete_Node_At_Index.
5626         * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
5627         * a-cihase.adb: Add Adjust and Finalize routines for
5628         Reference_Control_Type.
5629         (Reference_Preserving_Key): Build aggregate for
5630         Reference_Control_Type
5632 2014-07-30  Yannick Moy  <moy@adacore.com>
5634         * checks.adb, checks.ads (Determine_Range_R): New procedure to
5635         determine the possible range of a floating-point expression.
5637 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5639         * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
5640         * a-cborse.adb: Add Adjust and Finalize routines for
5641         Reference_Control_Type.
5642         (Reference_Preserving_Key): Build aggregate for
5643         Reference_Control_Type.
5644         (Delete): Check for tampering, and raise Program_Error (not
5645         Constraint_Error) when attempting to delete an element not in
5646         the set.
5647         (Insert): Ditto.
5649 2014-07-30  Bob Duff  <duff@adacore.com>
5651         * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
5652         * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
5653         Exception_Information is used to produce useful debugging
5654         information for the programmer. However, it was also used to
5655         implement the stream attributes for type Exception_Occurrence. The
5656         latter requires a stable and portable interface, which meant
5657         that we couldn't include a symbolic traceback. A separate set of
5658         routines was used to provide symbolic tracebacks under program
5659         control (i.e. not automatically). The goal of this ticket is
5660         to provide such automatic tracebacks, so the change here is to
5661         split the two functionalities: Exception_Information gives the
5662         maximally useful information for debugging (i.e. it now includes
5663         a symbolic traceback when a decorator is set, and it can be
5664         improved freely in the future without disturbing streaming).
5665         Untailored_Exception_Information always uses hexadecimal addresses
5666         in the traceback, has a stable and portable output, and is now
5667         used for streaming.
5669 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5671         * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
5672         on the target of the assignment to find out whether it
5673         can be directly done by the back-end.
5674         * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
5676 2014-07-30  Robert Dewar  <dewar@adacore.com>
5678         * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
5679         a-tasatt.adb: Minor reformatting.
5681 2014-07-30  Robert Dewar  <dewar@adacore.com>
5683         * exp_ch4.adb: Minor reformatting.
5685 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5687         * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
5688         Reference_Control_Type to generic package, to keep additional
5689         information for Reference_Types that manipulate keys. Add Adjust and
5690         Finalize procedures for this type.
5691         (Finalize): When finalizing a reference_preserving_key, verify
5692         that the key of the new value is equivalent to the key of the
5693         original element, raise Program_Error otherwise.
5694         (Insert): Detect tampering.
5695         (Reference_Preserving_Key): Build proper Reference_Control_Type,
5696         and update Busy and Lock bits to detect tampering.
5697         * a-cohase.ads: Keep with-clause private.
5699 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5701         * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
5702         of an equality are of an Unchecked_Union type and lack inferable
5703         discriminants.
5705 2014-07-30  Bob Duff  <duff@adacore.com>
5707         * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
5708         g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
5709         GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
5710         hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
5711         we can call them from the runtimes. Leave renamings in place under GNAT.
5713 2014-07-30  Yannick Moy  <moy@adacore.com>
5715         * inline.adb (Check_And_Build_Body_To_Inline): Include code for
5716         inlining in GNATprove mode.
5718 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5720         * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
5721         Reference_Control_Type to generic package, to keep additional
5722         information for Reference_Types that manipulate keys. Add Adjust and
5723         Finalize procedures for this type.
5724         (Delete_Node): New procedure called when finalizing a
5725         Reference_Control_Type, to remove a node whose element has been
5726         improperly updated through a Reference.
5727         (Insert): Detect tampering.
5728         (Reference_Preserving_Key): Build proper Reference_Control_Type,
5729         and update Busy and Lock bits to detect tampering.
5731 2014-07-30  Bob Duff  <duff@adacore.com>
5733         * exp_intr.ads: Minor comment fix.
5735 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
5737         * exp_prag.adb, a-tags.ads: Minor typo fixes.
5739 2014-07-30  Bob Duff  <duff@adacore.com>
5741         * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
5742         a-except.ads, g-traceb.adb, memtrack.adb,
5743         s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
5744         Cleanup: Make the three versions of System.Traceback.Call_Chain
5745         have the same interface. Use an array for the Traceback parameter
5746         instead of an Address.  This will enable reduction in code
5747         duplication.
5749 2014-07-30  Pat Rogers  <rogers@adacore.com>
5751         * gnat_ugn.texi: Corrected minor textual error in description
5752         of switch -gnatwl.
5754 2014-07-30  Bob Duff  <duff@adacore.com>
5756         * Makefile.rtl: Sort file names.
5758 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5760         * a-tasatt.adb: Complete previous change: kill spurious warning
5761         on e.g. sparc, and make sure we only use the fast path when the
5762         alignment is compatible.
5764 2014-07-30  Yannick Moy  <moy@adacore.com>
5766         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
5767         coming from source.
5769 2014-07-30  Yannick Moy  <moy@adacore.com>
5771         * inline.adb (Build_Body_To_Inline): Issue more precise messages
5772         for declarations that prevent inlining.
5773         (Cannot_Inline): Change usual start of message to refer to contextual
5774         analysis in GNATprove mode.
5775         * sem_res.adb (Resolve_Call): Change usual start of message to
5776         refer to contextual analysis in GNATprove mode, when inlining
5777         not possible.
5779 2014-07-30  Robert Dewar  <dewar@adacore.com>
5781         * sem_res.adb, sem_ch6.adb: Minor code reorganization.
5782         * inline.adb: Minor reformatting.
5784 2014-07-30  Javier Miranda  <miranda@adacore.com>
5786         * a-tags.ads: Add comments.
5788 2014-07-30  Pat Rogers  <rogers@adacore.com>
5790         * gnat_rm.texi: Minor word error.
5792 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5794         * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
5795         created to capture the value of the prefix of 'Old at the
5796         beginning of the current declarative part, to prevent data flow
5797         anomalies in the postcondition procedure that will follow.
5799 2014-07-30  Yannick Moy  <moy@adacore.com>
5801         * debug.adb: Retire debug flag -gnatdQ.
5802         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
5803         on decl, not on body.  Ignore predicate functions.
5804         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
5805         debug flag -gnatdQ.  Correctly analyze SPARK_Mode on decl and
5806         body when generating a decl for a body on which SPARK_Mode aspect
5807         is given.
5808         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
5809         attaching pragma to entity, to account for declaration not coming
5810         from source.
5811         * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
5812         as not always inlined in GNATprove mode, when called in an
5813         assertion context.
5815 2014-07-30  Vincent Celier  <celier@adacore.com>
5817         * debug.adb: Minor comment update.
5819 2014-07-30  Robert Dewar  <dewar@adacore.com>
5821         * s-tasuti.adb, s-tassta.adb: Minor reformatting.
5822         * sprint.adb (Sprint_Node): Handle N_Contract case.
5823         * exp_prag.adb: Minor reformatting.
5824         * freeze.adb (Freeze_Entity): Check useless postcondition for
5825         No_Return subprogram.
5826         * sem_prag.adb: Minor reformatting.
5828 2014-07-30  Javier Miranda  <miranda@adacore.com>
5830         * a-tags.ads: Complete comments about performance.
5832 2014-07-30  Fedor Rybin  <frybin@adacore.com>
5834         * gnat_ugn.texi: Adding description for --exit-status option to
5835         gnattest section.  Fixing index entry of --passed-tests option
5836         in gnattest section.
5838 2014-07-30  Javier Miranda  <miranda@adacore.com>
5840         * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
5841         rtsfind.ads: Remove references to package Interfaces.CPP since this
5842         package is no longer needed.
5844 2014-07-30  Bob Duff  <duff@adacore.com>
5846         * s-taasde.adb (Timer_Queue): Don't use a
5847         build-in-place function call to initialize the Timer_Queue.
5848         * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
5849         Turn off polling in these units, because otherwise we get
5850         elaboration circularities with Ada.Exceptions when the -gnatP
5851         switch is used.
5852         * s-tassta.adb (Create_Task): Make sure independent tasks
5853         are created with Parent = Environment_Task. This was not true,
5854         for example, in s-interr.adb, when Interrupt_Manager does "new
5855         Server_Task"; the Server_Task had Parent = Interrupt_Manager,
5856         which is wrong because the master is determined by the access
5857         type, which is at library level.
5858         * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
5859         now set correctly by Create_Task.
5860         (Make_Passive): Remove the workaround for the race condition in
5861         Make_Independent.
5862         * frontend.adb (Frontend): Revert to previous method of detecting
5863         temporary configuration pragma files, recognizing such files by
5864         ".tmp" in the name. This is more general than detecting pragmas
5865         Source_File_Name_Project, because it allows any tool to use
5866         this naming convention, no matter the content of the file.
5867         * gnat_ugn.texi: Document this naming convention.
5869 2014-07-30  Robert Dewar  <dewar@adacore.com>
5871         * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
5872         inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
5873         s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
5874         s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
5875         * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
5876         conversion.
5878 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5880         * sem_ch5.adb: Improve error recovery.
5881         * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
5882         before analyzing the body, so that in GNATprove mode there is
5883         no light expansion. Whatever expansion is required by SPARK will
5884         be performed when analysing the inlined code.
5886 2014-07-30  Bob Duff  <duff@adacore.com>
5888         * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
5890 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5892         * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
5893         verify that it is not hidden by an inner implicit declaration.
5895 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5897         * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
5898         * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
5899         * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
5900         the call returns an unconstrained type: in this case there is
5901         already a transient scope, and we should not establish a new one.
5902         * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
5903         True, also insert cleanup actions in the tree.
5904         (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
5905         with Clean set True.
5907 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5909         * s-taskin.ads (Direct_Index, Direct_Index_Range,
5910         Direct_Attribute_Element, Direct_Attribute_Array,
5911         Direct_Index_Vector, Direct_Attributes, Is_Defined,
5912         Indirect_Attributes): Removed.  (Atomic_Address,
5913         Attribute_Array, Attributes): New.
5914         * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
5915         Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
5916         (Finalize_Attributes): Reimplement.
5917         * s-tassta.adb (Create_Task): Remove call to
5918         Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
5919         Replace Finalize_Attributes_Link by Finalize_Attributes.
5920         * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
5921         Reimplement from scratch, using a simpler and more efficient
5922         implementation.
5923         * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
5924         * s-parame.ads, s-parame-hpux.ads,
5925         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
5926         * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
5927         Default_Attribute_Count.
5929 2014-07-30  Olivier Hainque  <hainque@adacore.com>
5931         * vxworks-ppc-link.spec: New file. Extra link
5932         instructions for ppc-vxworks.
5933         * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
5934         * system-vxworks-ppc.ads: Adjust linker options to use spec files.
5935         * system-vxworks-arm.ads: Likewise.
5936         * gcc-interface/Makefile.in: Enable .spec files.
5938 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5940         * sem_aggr.adb: Minor comment reformatting.
5942 2014-07-30  Robert Dewar  <dewar@adacore.com>
5944         * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
5945         * sem_warn.adb (Has_Junk_Name): New function
5946         (Check_References): Use Has_Junk_Name to delete junk warnings
5947         (Check_Unset_Reference): ditto.
5948         (Warn_On_Unreferenced_Entity): ditto.
5949         (Warn_On_Useless_Assignment): ditto.
5951 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5953         * checks.adb (Insert_Valid_Check): Do not check for the packed
5954         array type of a prefix that is an access type.
5956 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5958         * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
5959         Unconstrained_Array even if prefix is not frozen yet, as can
5960         occur with a private subtype used as a generic actual.
5962 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
5964         * sem_attr.adb: Minor reformatting.
5966 2014-07-30  Pat Rogers  <rogers@adacore.com>
5968         * gnat_rm.texi: Corrected minor wording error in description
5969         of No_Exception_Registration.
5971 2014-07-30  Yannick Moy  <moy@adacore.com>
5973         * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
5974         mode. Realphabetize two subprograms.
5975         * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
5976         (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
5977         (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
5978         mode.
5979         (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
5980         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
5981         Is_Inline in GNATprove mode.
5982         (Analyze_Subprogram_Specification):
5983         Set Is_Inlined_Always at subprogram entity creation.
5984         * sem_res.adb (Resolve_Call): Do not deal with inlining during
5985         pre-analysis.  Issue warning on call to possibly inlined
5986         subprogram when body not seen.
5988 2014-07-30  Yannick Moy  <moy@adacore.com>
5990         * lib-xref.adb (Generate_Reference): Add special
5991         case for compiler-generated formals in GNATprove mode.
5993 2014-07-30  Yannick Moy  <moy@adacore.com>
5995         * sem_ch6.adb: Add comments.
5997 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5999         * s-os_lib.ads (GM_Time_Of): Clarify documentation.
6001 2014-07-30  Robert Dewar  <dewar@adacore.com>
6003         * sem_aggr.adb, sem_res.adb: Minor reformatting.
6005 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6007         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
6008         Bit_Order): Set Reverse_Bit_Order on the base type of the
6009         specified first subtype.
6011 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6013         * inline.adb (Expand_Inlined_Call): Use a renaming declaration
6014         to capture the value of actuals of a limited type rather than
6015         an object declaration, to prevent spurious errors when analyzing
6016         the inlined body.
6018 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6020         * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
6021         as an instance, and inhibit semantic checks on already analyzed
6022         code to prevent spurious errors.
6024 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
6026         * a-exctra.ads ("="): New function, to restore compatibility.
6028 2014-07-30  Pascal Obry  <obry@adacore.com>
6030         * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
6031         routine to use the OS dst setting.
6033 2014-07-30  Pat Rogers  <rogers@adacore.com>
6035         * gnat_ugn.texi: Minor correction to description of -gnatw.K.
6037 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6039         * sem_util.adb (Wrong_Type): Disable some checks equally within
6040         instances and within inlined bodies, to suppress spurious type
6041         errors on already analyzed code.
6042         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
6043         is legal in an inlined body, juts as it is in an instance body.
6045 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6047         * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
6048         body the operand of an unchecked conversion may be a literal, in
6049         which case its type is the target type of the conversion. This
6050         is in contrast to conversions in other contexts, where the
6051         operand cannot be a literal and must be resolvable independent
6052         of the context.
6054 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
6056         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
6057         mere scalar constant instead of a reference for a renaming of
6058         scalar literal.
6059         * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
6060         * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
6062 2014-07-30  Robert Dewar  <dewar@adacore.com>
6064         * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
6065         g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
6066         g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
6067         s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
6068         g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
6069         s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
6070         & code reorganization.
6072 2014-07-30  Bob Duff  <duff@adacore.com>
6074         * s-tassta.adb, sem_util.ads: Minor reformatting.
6076 2014-07-30  Yannick Moy  <moy@adacore.com>
6078         * inline.adb (Build_Body_To_Inline): Detect when
6079         subprogram has multiple returns, or not a single last return
6080         statement, in GNATprove mode.
6081         (Cannot_Inline): Simplify logic to handle case of GNATprove
6082         inlining first.
6084 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6086         * sem_ch6.adb: Stubs are not subject to inlining.
6088 2014-07-30  Bob Duff  <duff@adacore.com>
6090         * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
6091         from a procedure to a function, so that it can more easily be
6092         called before the "begin" of a task.
6093         * s-taasde.ads (Delay_Block): Make this type immutably limited,
6094         so we can use a build-in-place function call to initialize
6095         Timer_Queue in the body.
6096         * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
6097         * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
6098         * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
6099         Make_Independent before reaching its "begin", to avoid race
6100         conditions. This causes the activating task to wait until after
6101         Make_Independent is complete before proceeding.  In addition,
6102         we initialize data structures used by independent tasks before
6103         activating those tasks, to avoid possible use of uninitialized data.
6104         * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
6105         Minor comment fixes.
6107 2014-07-30  Bob Duff  <duff@adacore.com>
6109         * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
6110         the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
6111         System.Traceback_Entries (s-traent.ads and s-traent-vms.ads).  Add
6112         subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
6113         * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
6115 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
6117         * a-tasatt.adb: Remove old comments.
6119 2014-07-30  Yannick Moy  <moy@adacore.com>
6121         * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
6122         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
6123         to explain rationale for inlining or not in GNATprove mode.
6124         (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
6125         to False when inlining is not possible.
6126         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
6127         flag to indicate that subprogram is fully inlined. To be reversed
6128         if inlining problem is found.
6129         * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
6130         call in potentially unevaluated context.
6132 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
6134         * s-tarest.adb, s-tarest.ads: Fix comments.
6136 2014-07-30  Robert Dewar  <dewar@adacore.com>
6138         * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
6139         Change No_Scalar_Parts predicate to Scalar_Part_Present and
6140         invert sense of test. This avoids the "not No_xxx" situation
6141         which is always ugly.
6143 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6145         * inline.adb (Expand_Inlined_Call): When generating code for
6146         an internal subprogram the expansion uses the location of the
6147         call, so that gdb can skip over it. In GNATprove mode we want to
6148         preserve slocs of original subprogram when expanding an inlined
6149         call, to obtain better warnings, even though subprogram appears
6150         not to come from source if it is the inlining of a subprogram
6151         body without a previous spec.
6153 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6155         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
6156         types with atomic components.
6158 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6160         * Make-generated.in: Remove now unnecessary targets after s-oscons
6161         reorg.
6163 2014-07-30  Yannick Moy  <moy@adacore.com>
6165         * sem_res.adb (Resolve_Call): Use ultimate alias
6166         of callee when available.
6168 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6170         * sem_ch6.adb (Analyze_Expression_Function): To check whether
6171         an expression function is a completion, use the specification of
6172         the previous declaration, not its entity, which may be internally
6173         generated in an inlined context.
6175 2014-07-30  Doug Rupp  <rupp@adacore.com>
6177         * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
6178         temp files in /cache directory unless overridden by TMPDIR.
6180 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
6182         * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
6183         Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
6184         type CPU, so it can never be greater than CPU_Range'Last.
6186 2014-07-30  Bob Duff  <duff@adacore.com>
6188         * s-taskin.ads: Minor comment fix.
6190 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6192         * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
6193         clauses.
6195 2014-07-30  Yannick Moy  <moy@adacore.com>
6197         * debug.adb: Free debug flag dQ used for frontend inlining in
6198         GNATprove mode..
6199         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
6200         debug flag..
6202 2014-07-30  Thomas Quinot  <quinot@adacore.com>
6204         * Make-generated.in: Remove generation of s-oscons.ads, only
6205         generate the xoscons utility, in runtime-agnostic rules.
6206         * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
6207         no longer supported.
6209 2014-07-30  Bob Duff  <duff@adacore.com>
6211         * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
6212         parameter Chain to be used in the allocator case.
6213         (Make_Build_In_Place_Call_In_Allocator): If the allocated object
6214         has tasks, wrap the code in a block that will activate them,
6215         including the usual finalization code to kill them off in case
6216         of exception or abort.
6218 2014-07-30  Robert Dewar  <dewar@adacore.com>
6220         * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
6221         Remove renamings (don't work for gdb).
6222         (par): New synonym for p (avoid gdb ambiguities).
6223         * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
6225 2014-07-30  Bob Duff  <duff@adacore.com>
6227         * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
6228         fixes.
6229         * treepr.ads, treepr.adb (ppp): Make this debugging routine
6230         accept any type covered by Union_Id.
6232 2014-07-30  Robert Dewar  <dewar@adacore.com>
6234         * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
6235         analyzing branches.
6236         * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
6237         expression case.
6239 2014-07-30  Robert Dewar  <dewar@adacore.com>
6241         * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
6242         of predicate aspect on entity other than a type.
6244 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6246         * sem_ch6.adb (Body_Has_Contract): New predicate to determine
6247         when a subprogram body without a previous spec cannot be inlined
6248         in GNATprove mode, because it includes aspects or pragmas that
6249         generate a SPARK contract clause.
6250         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
6251         instance cannot be inlined.
6253 2014-07-30  Robert Dewar  <dewar@adacore.com>
6255         * debug.adb: Document that d7 suppresses compilation time output.
6256         * errout.adb (Write_Header): Include compilation time in
6257         header output.
6258         * exp_intr.adb (Expand_Intrinsic_Call): Add
6259         Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
6260         Compilation_Date/Compilation_Time.
6261         * g-souinf.ads (Compilation_Date): New function
6262         (Compilation_Time): New function.
6263         * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
6264         * gnat_rm.texi (Compilation_Date): New function
6265         (Compilation_Time): New function.
6266         * opt.ads (Compilation_Time): New variable.
6267         * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
6268         * sem_intr.adb (Compilation_Date): New function.
6269         (Compilation_Time): New function.
6270         * snames.ads-tmpl (Name_Compilation_Date): New entry.
6271         (Name_Compilation_Time): New entry.
6273 2014-07-30  Yannick Moy  <moy@adacore.com>
6275         * inline.adb: Add comment.
6277 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6279         * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
6280         parameterless attribute, and a postondition can mention an
6281         indexed component or a slice whose prefix is an attribute
6282         reference F'Result.
6284 2014-07-30  Robert Dewar  <dewar@adacore.com>
6286         * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
6287         Avoid bomb when printing package Standard.
6289 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6291         * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
6292         entity is created at this point, ensure that the name of the
6293         flag is unique, because the subprogram may be overloaded and
6294         other homonyms may also have elaboration flags created on the fly.
6296 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6298         * sem_attr.adb (Analyze_Array_Component_Update): New routine.
6299         (Analyze_Attribute): Major cleanup of attribute
6300         'Update. The logic is now split into two distinct routines
6301         depending on the type of the prefix. The use of <> is now illegal
6302         in attribute 'Update.
6303         (Analyze_Record_Component_Update): New routine.
6304         (Check_Component_Reference): Removed.
6305         (Resolve_Attribute): Remove the return statement and ??? comment
6306         following the processing for attribute 'Update. As a result,
6307         the attribute now freezes its prefix.
6309 2014-07-30  Javier Miranda  <miranda@adacore.com>
6311         * exp_ch4.adb (Apply_Accessibility_Check): Do
6312         not call Base_Address() in VM targets.
6314 2014-07-30  Yannick Moy  <moy@adacore.com>
6316         * gnat1drv.adb (Adjust_Global_Switches): Set
6317         Ineffective_Inline_Warnings to True in GNATprove mode.
6318         * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
6319         mode of inlining.
6320         * opt.ads (Ineffective_Inline_Warnings): Add comment that
6321         describes use in GNATprove mode.
6322         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
6323         pragma when applied to the special body created for inlining.
6325 2014-07-30  Robert Dewar  <dewar@adacore.com>
6327         * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
6328         Minor reformatting.
6330 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6332         * aspects.ads Add a comment explaining why SPARK 2014 aspects are
6333         not delayed. Update the delay status of most SPARK 2014 aspects.
6334         * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
6335         to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
6336         to Decorate and Insert_Pragma. Add various comments concerning
6337         the delay status of several SPARK 2014 aspects. The insertion
6338         of Refined_State now uses routine Insert_After_SPARK_Mode.
6339         (Decorate): New routine.
6340         (Decorate_Aspect_And_Pragma): Removed.
6341         (Insert_Delayed_Pragma): Removed.
6342         (Insert_Pragma): New routine.
6344 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6346         * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
6347         only a warning, not an error on an attempt to inline a recursive
6348         subprogram.
6350 2014-07-30  Robert Dewar  <dewar@adacore.com>
6352         * g-forstr.adb: Minor code reorganization (use J rather than I
6353         as a variable name).
6354         * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
6355         g-forstr.ads: Minor reformatting.
6357 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6359         * sprint.adb (Set_Debug_Sloc): Also reset the end location if
6360         we are debugging the generated code.
6362 2014-07-30  Yannick Moy  <moy@adacore.com>
6364         * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
6365         returns True for source pointer for an inlined body.
6367 2014-07-30  Javier Miranda  <miranda@adacore.com>
6369         * exp_ch4.adb (Apply_Accessibility_Check): Add
6370         missing calls to Base_Address().
6372 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6374         * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
6375         mode, subprogram bodies without a previous declaration are also
6376         candidates for front-end inlining.
6378 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6380         * aspects.ads Aspects Async_Readers, Async_Writers,
6381         Effective_Reads and Effective_Writes do not need to be delayed.
6382         * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
6383         optional Boolean expression when generating the corresponding
6384         pragma for an external property aspect.
6385         * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
6386         local constant Obj. Add local constant Obj_Id. Reimplement the
6387         check which ensures that the related variable is in fact volatile.
6388         (Analyze_Pragma): Reimplement the analysis of external property pragmas.
6389         * sem_util.adb (Is_Enabled): New routine.
6390         (Variable_Has_Enabled_Property): Reimplement the detection of
6391         an enabled external property.
6393 2014-07-30  Sergey Rybin  <rybin@adacore.com frybin>
6395         * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
6396         for body stubs.
6398 2014-07-30  Pascal Obry  <obry@adacore.com>
6400         * g-forstr.adb, g-forstr.ads: New.
6401         * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
6402         GNAT.Formatted_String.
6404 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6406         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
6407         (Expand_Array_Aggregate): Also enable in-place expansion for
6408         code generated by the compiler.  For an object declaration,
6409         set the kind of the object in addition to its type.  If an
6410         in-place assignment is to be generated and it can be directly
6411         done by the back-end, do not expand the aggregate.
6412         * fe.h (Is_Others_Aggregate): Declare.
6413         * gcc-interface/trans.c
6414         (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
6415         aggregate with a single Others choice on the RHS by means of
6416         __builtin_memset.  Tidy up.
6418 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6420         * gnat_rm.texi: minor reformatting.
6422 2014-07-30  Yannick Moy  <moy@adacore.com>
6424         * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
6425         in SPARK_Mode Off.
6427 2014-07-30  Robert Dewar  <dewar@adacore.com>
6429         * gnat_rm.texi: Document additional implementation-defined use
6430         of Constrained.
6432 2014-07-30  Robert Dewar  <dewar@adacore.com>
6434         * prj-proc.adb, prj-strt.adb: Update comments.
6436 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
6438         * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
6440 2014-07-30  Vincent Celier  <celier@adacore.com>
6442         * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
6443         parameter No_Extending, defaulted to False. When No_Extending
6444         is True, do not look for an extending project.
6445         (Expression): For a variable reference that is not for the current
6446         project, get its Id calling Imported_Or_Extended_Project_From
6447         with No_Extending set to True.
6448         * prj-strt.adb (Parse_Variable_Reference): If a referenced
6449         variable is not found in the current project, check if it is
6450         defined in one of the projects it extends.
6452 2014-07-30  Robert Dewar  <dewar@adacore.com>
6454         * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
6455         some additional cases of internally generated routines.
6457 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
6459         * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
6460         if the compilation unit is a subunit, extend optional processing
6461         to all subunits of the current one. This allows gnatstub to
6462         supress generation of spurious bodies.
6464 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
6466         * a-cbmutr.adb (Insert_Child): Use local variable First to keep
6467         track of the initial element's index within the tree.
6469 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6471         * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
6472         (Insert_Child): Add local variable First. Capture the index of the
6473         first node being created to ensure correct cursor construction
6474         later on. Use the three parameter version of Allocate_Node
6475         when creating multiple children as this method allows aspect
6476         Default_Value to take effect (if applicable).
6478 2014-07-29  Eric Botcazou  <ebotcazou@adacore.com>
6480         * exp_aggr.adb (Safe_Slice_Assignment): Remove.
6481         (Expand_Array_Aggregate): For a safe slice assignment, just set
6482         the target and use the common code path.
6484 2014-07-29  Robert Dewar  <dewar@adacore.com>
6486         * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
6487         predicate No_Predicate_Test_On_Arguments, new name is
6488         Predicate_Tests_On_Arguments (with the opposite sense).
6490 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6492         * sem_attr.adb (Resolve_Attribute): Clean up the code for
6493         attribute 'Access. Do not generate an elaboration flag for a
6494         stand alone expression function. The expression of an expression
6495         function is now frozen when the expression function appears as
6496         the prefix of attribute 'Access.
6497         * sem_ch6.adb (Analyze_Expression_Function): Remove local
6498         variable New_Decl and update all references to it after the
6499         rewriting has taken place. Establish the linkages between the
6500         generated spec and body.
6502 2014-07-29  Robert Dewar  <dewar@adacore.com>
6504         * sem_prag.adb (ip, rv): Prevent from being optimized away.
6505         * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
6506         * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
6507         reformatting.
6509 2014-07-29  Vincent Celier  <celier@adacore.com>
6511         * prj-pp.adb: Minor comment update.
6512         * frontend.adb: If a target dependency info file has been read
6513         through switch -gnateT= add it to the dependencies of the source
6514         being compiled.
6516 2014-07-29  Robert Dewar  <dewar@adacore.com>
6518         * sem_ch3.adb, prj.adb: Minor reformatting.
6520 2014-07-29  Vincent Celier  <celier@adacore.com>
6522         * prj-pp.adb (Pretty_Print.Output_Project_File): New
6523         procedure to output project file names between quotes without
6524         concatenation, even if the line is too long.
6525         (Pretty_Print): Use Output_Project_File for project being extended and
6526         project imported.
6528 2014-07-29  Vincent Celier  <celier@adacore.com>
6530         * gnat_ugn.texi: Document that configuration pragmas files are
6531         added to the dependencies, unless they contain only pragmas
6532         Source_File_Name_Project.
6534 2014-07-29  Robert Dewar  <dewar@adacore.com>
6536         * frontend.adb: Minor reformatting.
6538 2014-07-29  Robert Dewar  <dewar@adacore.com>
6540         * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
6541         (Expand_Actuals): Make sure predicate checks are properly applied
6542         for the case of OUT or IN OUT parameters.
6543         * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
6544         predicate tests on arguments for Finalize
6545         * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
6546         if predicate tests on subprogram arguments should be skipped.
6547         * sem_util.ads (No_Predicate_Test_On_Arguments): New function
6549 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6551         * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
6552         clause for the object and the expression is an aggregate, defer
6553         resolution and expansion of the aggregate until the freeze point
6554         of the entity.
6555         * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
6556         the parent node is an N_Reference generated during expansion.
6558 2014-07-29  Vincent Celier  <celier@adacore.com>
6560         * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
6562 2014-07-29  Robert Dewar  <dewar@adacore.com>
6564         * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
6565         prepcomp.ads: Minor reformatting and code clean up.
6566         * exp_ch6.adb (Expand_Actuals): Generate predicate test
6567         unconditionally for case of OUT or IN OUT actual (before this
6568         was generated only for certain subcases, which is wrong, the
6569         test is always needed).
6571 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6573         * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
6574         * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
6575         until context type is available.
6576         * sem_res.adb (Resolve_Allocator): In the case of a qualified
6577         expression, complete resolution of expression.
6578         (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
6579         to apply Ada2012 checks on aliased formals, as well as
6580         accesibility checks when the context of the call is an allocator
6581         or a qualified expression.
6582         * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
6583         Moved here from sem_ch3.
6584         (Object_Access_Level): Handle properly aliased formals and
6585         aggregates.
6586         * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
6587         now properly performed in sem_res (Resolve_Actuals,
6588         Check_Aliased_Parameter).
6590 2014-07-29  Yannick Moy  <moy@adacore.com>
6592         * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
6593         * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
6594         function to decide when a subprogram can be inlined in GNATprove mode.
6595         (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
6596         condition for possible inlining.
6597         * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
6598         for Inline_Always in GNATprove mode.
6599         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
6600         body for subprograms in GNATprove mode, under debug flag -gnatdQ.
6601         * sem_prag.adb Minor change in comments.
6602         * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
6603         inside subprograms marked as SPARK_Mode On.
6604         * sinfo.ads: Minor typo fix.
6606 2014-07-29  Vincent Celier  <celier@adacore.com>
6608         * frontend.adb: Add dependency on gnat.adc when taken into account
6609         and on non-temporary configuration pragmas files specified in
6610         switches -gnatec.
6611         * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
6612         dependencies on configuration pragmas files.
6614 2014-07-29  Pat Rogers  <rogers@adacore.com>
6616         * gnat_ugn.texi: Minor clarification to the explanation for the
6617         GNATtest -v switch.
6619 2014-07-29  Robert Dewar  <dewar@adacore.com>
6621         * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
6622         documentation that explains the need for this extended range
6623         (use by C_Pass_By_Copy).
6625 2014-07-29  Robert Dewar  <dewar@adacore.com>
6627         * gnat_rm.texi, sem_prag.adb: Minor reformatting.
6629 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
6631         * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
6632         complexity metrics.
6634 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6636         PR ada/60652
6637         * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
6638         CRTSCTS to be visible.
6640 2014-07-29  Bob Duff  <duff@adacore.com>
6642         * g-trasym.adb, g-trasym.ads: Code cleanup.
6644 2014-07-29  Doug Rupp  <rupp@adacore.com>
6646         * sigtramp-vxworks.c: Minor reformatting.
6648 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6650         * gnat_rm.texi: No doc needed for Ada2012 aspect
6651         Implicit_dereference.
6653 2014-07-29  Robert Dewar  <dewar@adacore.com>
6655         * sem_attr.adb (Attribute_12): New array
6656         (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
6657         (Check_Ada_2012_Attribute): Removed.
6659 2014-07-29  Doug Rupp  <rupp@adacore.com>
6661         * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
6662         PPC, and e500.
6663         * sigtramp-vxworks.c: New file.
6664         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
6666 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6668         * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
6669         derived array type, add information about component type, which
6670         was previously missing in ali file.
6671         * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
6673 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6675         * sem_ch3.adb (Constrain_Corresponding_Record): For the case
6676         of the subtype created for a record component, do not mark
6677         the subtype as frozen. For one thing, this is anomalous (in
6678         particular, the base type might not itself be frozen yet);
6679         furthermore, proper freezing of the subtype must happen in any
6680         case. So, we just mark the subtype as requiring delayed freezing
6681         (and we'll actually freeze it when generating the init_proc of
6682         the enclosing record).
6683         Also change the name of the constrained record subtype (append a
6684         'C' so that it is clearly different from the unconstrained record
6685         type, "related_idV") to make debugging easier.
6686         (Process_Full_View): When creating a full subtype for a pending
6687         private subtype, re-establish the scope of the private subtype
6688         so that we get proper visibility on outer discriminants.
6689         * exp_ch3.adb (Build_Init_Statements): Freeze any component
6690         subtype that is not frozen yet.
6692 2014-07-29  Vincent Celier  <celier@adacore.com>
6694         * prj-proc.adb (Recursive_Process): Always initialize the
6695         environment when the project is an aggregate project, even when
6696         it is not the root tree.
6697 2014-07-29  Robert Dewar  <dewar@adacore.com>
6699         * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
6700         * gnat_rm.texi: Complete list of implementation aspects.
6701         * aspects.ads: Minor comment clarification.
6703 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6705         * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
6706         is a null-excluding access type, do not generate a constraint
6707         check if Suppress_Assignment_Checks is set on assignment node.
6708         * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
6709         parameter of a null-excluding access type, there is access check
6710         on entry, so set Suppress_Assignment_Checks on generated statement
6711         that assigns actual to parameter block.
6712         * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
6714 2014-07-29  Robert Dewar  <dewar@adacore.com>
6716         * gnat_rm.texi: Change theta to @ in documentation of aspect
6717         Dimension_System.
6719 2014-07-29  Robert Dewar  <dewar@adacore.com>
6721         * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
6722         are now on pragma.
6723         * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
6724         of Uneval_Old_*
6725         * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
6726         * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
6728 2014-07-29  Javier Miranda  <miranda@adacore.com>
6730         * types.ads Update documentation on how to add new reason codes
6731         for exceptions.
6732         (RT_Exception_Code): Keep values ordered by their
6733         reason code.  Required by the .NET backend.
6734         (RT_CE_Exceptions): Subtype declaration removed.
6735         (RT_PE_Exceptions): Subtype declaration removed.
6736         (RT_SE_Exceptions): Subtype declaration removed.
6737         (Kind): New mapping table of RT_Exception_Codes.
6738         * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
6739         new mapping table.
6740         * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
6741         mapping table.  (Make_Raise_Program_Error): Updated to use the
6742         new mapping table.
6743         (Make_Raise_Storage_Error): Updated to use the new mapping table.
6744         * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
6745         their reason code.
6747 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6749         * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
6750         distributed stubs generation.
6751         * exp_ch3.adb: Minor reformatting.
6753 2014-07-29  Yannick Moy  <moy@adacore.com>
6755         * sinfo.ads: Document constraint between frontend and GNATprove.
6757 2014-07-29  Robert Dewar  <dewar@adacore.com>
6759         * a-except.adb: Minor comment clarification.
6761 2014-07-29  Robert Dewar  <dewar@adacore.com>
6763         * gnat_rm.texi: Complete list of implementation attributes.
6764         * snames.ads-tmpl: Clean up list of impl-defined attributes.
6766 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6768         * freeze.adb (Freeze_Record_Type): Perform various
6769         volatility-related checks.
6771 2014-07-29  Robert Dewar  <dewar@adacore.com>
6773         * sem_ch3.adb, sem_eval.adb: Minor reformatting.
6775 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6777         * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
6778         the case where the attribute reference appears in a nested scope
6779         from that of the subprogram prefix.
6780         * sem_attr.adb: Minor reformatting.
6782 2014-07-29  Robert Dewar  <dewar@adacore.com>
6784         * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
6785         initialization options.
6787 2014-07-29  Robert Dewar  <dewar@adacore.com>
6789         * sinfo.ads: Minor comment addition.
6791 2014-07-29  Bob Duff  <duff@adacore.com>
6793         * sem_eval.adb, sem_ch13.adb: Minor reformatting.
6795 2014-07-29  Doug Rupp  <rupp@adacore.com>
6797         * init.c: Complete previous change.
6799 2014-07-29  Robert Dewar  <dewar@adacore.com>
6801         * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
6802         array case.
6804 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6806         * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
6807         and the completion will appear in the same declarative part,
6808         create elaboration flag.
6809         * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
6810         is a completion of a declaration in the same declarative part,
6811         and the subprogram has had its address taken, add elaboration
6812         check inside the subprogram body, to detect elaboration errors
6813         that may occur through indirect calls.
6815 2014-07-29  Doug Rupp  <rupp@adacore.com>
6817         * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
6818         * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
6820 2014-07-29  Vincent Celier  <celier@adacore.com>
6822         * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
6823         runtime directorie specified with two switches --RTS= designate
6824         the same directory, even when there are no literarily the same.
6826 2014-07-29  Robert Dewar  <dewar@adacore.com>
6828         * gnat_ugn.texi: Minor documentation clarification.
6829         * switch-c.adb: Minor reformatting.
6831 2014-07-29  Robert Dewar  <dewar@adacore.com>
6833         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
6834         Fix incorrect RTE call which caused bomb if pragma was in
6835         configuration pragma file.
6837 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
6839         * expect.c (__gnat_expect_poll): Fix typo in previous change.
6840         * g-expect.adb: Update comments.
6842 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6844         * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
6845         (Default_Attribute_Count): Bump to 16 on native platforms.
6847 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6849         * sem_res.adb: Add guard to front-end inlining for SPARK.
6851 2014-07-29  Robert Dewar  <dewar@adacore.com>
6853         * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
6854         Minor reformatting.
6856 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6858         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
6859         inline in GNATprove mode when subprogran is marked Inline_Always.
6860         * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
6861         mode if body to inline is available.
6862         * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
6863         effective in GNATprove mode.
6864         * sem_ch10.adb (Analyze_Compilation_Unit): Call
6865         Check_Package_Body_For_Inlining in GNATprove mode, so that body
6866         containing subprograms with Inline_Always can be available before
6867         calls to them.
6869 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6871         * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
6872         to Check_Package_Body_For_Inlining, to prevent confusion with other
6873         inlining subprograms.
6875 2014-07-29  Robert Dewar  <dewar@adacore.com>
6877         * opt.ads: Minor comment update.
6878         * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
6879         we want setting of Uneval_Old at time of encountering the aspect.
6880         * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
6881         of Opt.Uneval_Old.
6882         * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
6883         New function (Set_Uneval_Old_Accept): New procedure.
6884         (Set_Uneval_Old_Warn): New procedure.
6885         * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
6887 2014-07-29  Robert Dewar  <dewar@adacore.com>
6889         * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
6890         * snames.ads-tmpl: Minor reformatting.
6891         * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
6892         to give <Error>.  Not clear why this was there, but the compiler
6893         sources do not reference Name_Error, and this interfered with
6894         the circuits for pragma Unevaluated_Use_Of_Old.
6896 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6898         * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
6899         types in SPARK 2014 (again).
6900         * sem_res.adb (Is_OK_Volatile_Context): New routine.
6901         (Resolve_Entity_Name): Ensure that a volatile object with
6902         enabled properties Async_Writers or Effectire_Reads appears in
6903         a non-interfering context.
6905 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6907         * sem_ch6.adb: Move Build_Body_To_Inline,
6908         Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
6909         * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
6910         * inline.ads, inline.adb: Package now contains subprograms that
6911         implement front-end inlining.  No functional changes, no test
6912         needed.
6914 2014-07-29  Robert Dewar  <dewar@adacore.com>
6916         * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
6918 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6920         * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
6921         is a limited view when the context is a package body, because
6922         there is no subsequent place at which the non-limited view may
6923         become visible.
6924         (Process_Formals): Ditto.
6925         * sinfo.ads, par-ch3.adb: Minor reformatting.
6927 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
6929         * expect.c (__gnat_expect_poll): New parameter dead_process
6930         used to return the dead process among the array of file
6931         descriptors. The Windows, VMS and HPUX implementations now
6932         properly report the dead process via this parameter. Other unixes
6933         don't need it.
6934         * g-expect.adb (Poll): Adapt to the C profile.
6935         (Expect_Internal): Use the new parameter to properly close the
6936         File Descriptor.  This then can be properly reported by the
6937         function First_Dead_Process as is expected.
6939 2014-07-29  Robert Dewar  <dewar@adacore.com>
6941         * gnat_ugn.texi: Minor clarification of -gnatQ switch.
6943 2014-07-29  Robert Dewar  <dewar@adacore.com>
6945         * einfo.adb (Derived_Type_Link): New function
6946         (Set_Derived_Type_Link): New procedure.
6947         (Write_Field31_Name): Output Derived_Type_Link.
6948         * einfo.ads: New field Derived_Type_Link.
6949         * exp_ch6.adb (Expand_Call): Warn if change of representation
6950         needed on call.
6951         * sem_ch13.adb: Minor addition of ??? comment.
6952         (Rep_Item_Too_Late): Warn on case that is legal but could cause an
6953         expensive implicit conversion.
6954         * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
6956 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6958         * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
6959         to DF_Id. Add new local variable DF_Call. Do not perform any
6960         elaboration-related checks on the call to the partial finalization
6961         routine within an init proc to avoid generating bogus elaboration
6962         warnings on expansion-related code.
6963         * sem_elab.adb (Check_A_Call): Move constant Access_Case to
6964         the top level of the routine.  Ensure that Output_Calls takes
6965         into account flags -gnatel and -gnatwl when emitting warnings
6966         or info messages.
6967         (Check_Internal_Call_Continue): Update the call to Output_Calls.
6968         (Elab_Warning): Moved to the top level of routine Check_A_Call.
6969         (Emit): New routines.
6970         (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
6971         comment on usage. Output all warnings or info messages only when the
6972         caller context demands it and the proper elaboration flag is set.
6974 2014-07-29  Yannick Moy  <moy@adacore.com>
6976         * sem_attr.adb (Analyze_Attribute/Attribute_Old):
6977         Check rule about Old appearing in potentially unevaluated
6978         expression everywhere, not only in Post.
6980 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6982         * sem_prag.adb: Update comment.
6983         * a-except.adb, a-except-2005.adb: Minor editing.
6985 2014-07-29  Pierre-Marie Derodat  <derodat@adacore.com>
6987         * exp_dbug.adb (Debug_Renaming_Declaration):
6988         Do not create renaming entities for renamings of non-packed
6989         objects and for exceptions.
6991 2014-07-29  Robert Dewar  <dewar@adacore.com>
6993         * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
6994         sem_ch6.adb, par-ch3.adb: Minor reformatting.
6996 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6998         * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
6999         subtype indication in an extended return statement when the
7000         return value is an ancestor of the return type of the function,
7001         and that return type is a null record extension.
7003 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7005         * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
7006         message produced for the case of a type-related representation
7007         item that is made illegal by 13.10(1).
7008         * gnat_rm.texi (Scalar_Storage_Order): Minor change in
7009         documentation.
7011 2014-07-29  Robert Dewar  <dewar@adacore.com>
7013         * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
7014         * erroutc.adb (Output_Error_Msgs): Take wide characters into
7015         account in computing position of error flags.
7016         * sinput.adb (Get_Column_Number): Take wide characters into
7017         account.
7019 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7021         * par-ch3.adb (P_Access_Type_Definition): The subtype indication
7022         in an access type definition can carry a null_exclusion indicator.
7023         * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
7024         carries a null_exclusion indicator, verify that the subtype
7025         indication denotes an access type, and create a null-excluding
7026         subtype for it.
7027         * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
7028         defined on N_Access_To_Object_Definition to indicate that the
7029         subtype indication carries a null_exclusion indicator.
7031 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7033         * exp_ch6.adb (Add_Extra_Actual): Do not construct
7034         the extra actual by name, generate a reference instead.
7036 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
7038         * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
7039         Allow_Integer_Address if already set.
7040         * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
7041         Fix order, for consistency with Rmsg_xx declarations.
7043 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7045         * sem_ch4.adb (Complete_Object_Operation): If the type of the
7046         candidate subprogram is a limited view, use non-limited view
7047         when available.
7049 2014-07-29  Robert Dewar  <dewar@adacore.com>
7051         * sem_ch13.adb: Minor change in RM reference.
7052         * sem_mech.ads: Minor reformatting.
7053         * einfo.ads: Minor comment fix.
7054         * types.ads: Minor correction to range given for Mechanism_Type.
7055         * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
7056         check predicate on way out for OUT or IN OUT parameters.
7057         * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
7058         better (P_Range_Constraint): Corresponding fix.
7059         * checks.ads: Minor comment clarification.
7061 2014-07-29  Gary Dismukes  <dismukes@adacore.com>
7063         * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
7064         and Treat_As_Volatile flags based on whether the renamed object
7065         is a volatile object.
7067 2014-07-29  Olivier Hainque  <hainque@adacore.com>
7069         * g-debpoo.adb
7070         (Default_Alignment): Rename as Storage_Alignment. This is not
7071         a "default" that can be overriden. Augment comment to clarify
7072         intent and document why we need to manage alignment padding.
7073         (Header_Offset): Set to Header'Object_Size instead of 'Size
7074         rounded up to Storage_Alignment. Storage_Alignment on the
7075         allocation header is not required by our internals so was
7076         overkill. 'Object_Size is enough to ensure proper alignment
7077         of the header address when substracted from a storage address
7078         aligned on Storage_Alignment.
7079         (Minimum_Allocation): Rename as Extra_Allocation, conveying that
7080         this is always added on top of the incoming allocation requests.
7081         (Align): New function, to perform alignment rounding operations.
7082         (Allocate): Add comments on the Storage_Address computation
7083         scheme and adjust so that the alignment padding applies to that
7084         (Storage_Address) only.
7086 2014-07-29  Robert Dewar  <dewar@adacore.com>
7088         * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
7089         pragma Unreferenced.
7090         * cstand.adb (Create_Standard): Use E_Array_Type for standard
7091         string types. Make sure index of Any_String/Any_Array is in a list.
7092         * errout.adb: Minor reformatting.
7094 2014-07-29  Robert Dewar  <dewar@adacore.com>
7096         * gnat_ugn.texi: Clean up and correct documentation of warnings.
7097         * usage.adb: Minor corrections to make sure warnings are properly
7098         documented.
7099         * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
7100         (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
7102 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7104         * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
7105         created to match internal sequence numbers between compilations
7106         with/without abort must have its type properly set.
7108 2014-07-29  Robert Dewar  <dewar@adacore.com>
7110         * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
7111         (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
7112         SSO_Default_Specified.
7113         * ali.ads (ALIs_Record): Add field SSO_Default
7114         (SSO_Default_Specified): New global switch.
7115         * bcheck.adb (Check_Consistent_SSO_Default): New procedure
7116         (Check_Configuration_Consistency): Call this procedure
7117         * einfo.adb (SSO_Set_High_By_Default): New
7118         function (SSO_Set_Low_By_Default): New function
7119         (Set_SSO_Set_High_By_Default): New procedure
7120         (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
7121         List new flags
7122         * einfo.ads (SSO_Set_Low_By_Default): New flag
7123         (SSO_Set_High_By_Default): New flag
7124         * freeze.adb (Set_SSO_From_Default): New procedure
7125         (Freeze_Array_Type): Call Set_SSO_From_Default
7126         (Freeze_Record_Type): Call Set_SSO_From_Default
7127         * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
7128         * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
7129         * lib-writ.ads: Add OL/OH parameters to P line
7130         * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
7131         * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
7132         New global switch
7133         * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
7134         set by default using pragma Default_Scalar_Storage_Order.
7135         * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
7136         * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
7137         Clear SSO defaults when explicit SSO is inherited.
7138         (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
7139         explicit SSO is specified.
7140         (Inherit_Aspects_At_Freeze_Point):
7141         Clear SSO default when inheriting SSO.
7142         * sem_ch3.adb (Set_Default_SSO): New procedure
7143         (Analyze_Private_Extension_Declaration): Set defualt SSO
7144         (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
7145         (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
7146         ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
7147         (Record_Type_Declaration): ditto
7148         * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
7149         Save Default_SSO
7150         * sem_prag.adb (Analyze_Pragma, case
7151         Default_Scalar_Storage_Order): Set Default_SSO
7153 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7155         * sem_ch6.adb (Valid_Operator_Definition): Verify that
7156         all parameter have mode IN. This check must be done here for
7157         subprogram instantiations that have operator names, because their
7158         analysis does not follow the same path as that for subprogram
7159         declarations.
7161 2014-07-29  Robert Dewar  <dewar@adacore.com>
7163         * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
7164         to make sure that the Etype of a component of the corresponding
7165         record type is present before trying to freeze it.
7166         * sem_ch5.adb: Minor reformatting.
7168 2014-07-29  Robert Dewar  <dewar@adacore.com>
7170         * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
7171         a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
7172         and then use it when a stream operation is used from a library generic
7173         when the restriction (No_Streams) is active.
7175 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7177         * projects.texi: Fix minor typo.
7179 2014-07-29  Yannick Moy  <moy@adacore.com>
7181         * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
7183 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
7185         * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
7186         CodePeer mode.
7188 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7190         * exp_ch7.adb (Find_Last_Init): Add local variable
7191         Deep_Init_Found. Check the statement immediately following the
7192         declaration if [Deep_]Initialization was not found.
7194 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7196         * exp_util.adb (Is_Aliased): It appears that
7197         'reference-d and renamed objects still play some role in Boolean
7198         expression with actions and cannot be finalized immediately.
7200 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7202         * exp_dbug.adb (Qualify_Needed):  For debugging purposes,
7203         Loop names are not part of the full qualification of entity names.
7205 2014-07-29  Robert Dewar  <dewar@adacore.com>
7207         * einfo.adb (Has_Protected): Test base type.
7208         * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
7209         that we always properly check No_Protected_Type_Allocators.
7211 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7213         * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
7214         loop declarations as well.
7215         * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
7216         to an iterator loop, because it may contain local renaming
7217         declarations that require debugging information.
7219 2014-07-29  Robert Dewar  <dewar@adacore.com>
7221         * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
7223 2014-07-29  Robert Dewar  <dewar@adacore.com>
7225         * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
7226         (Set_Static_Real_Or_String_Predicate): New procedure
7227         * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
7228         string predicates (Is_Predicate_Static): Handle static string
7229         predicates.
7230         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
7231         New procedure (Check_Expression_Against_Static_Predicate):
7232         Deal with static string predicates, now fully implemented
7233         (Eval_Relational_Op): Allow string equality/inequality as static
7234         if not comes from source.
7236 2014-07-29  Robert Dewar  <dewar@adacore.com>
7238         * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
7239         einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
7240         sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
7241         handling. Change name of Discrete_Predicate to
7242         Discrete_Static_Predicate, and replace testing of the presence of this
7243         field by testing the flag Has_Static_Expression.
7245 2014-07-29  Robert Dewar  <dewar@adacore.com>
7247         * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
7248         * opt.adb: Handle Uneval_Old.
7249         * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
7250         * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
7251         * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
7252         * sem_attr.adb (Uneval_Old_Msg): New procedure.
7253         * sem_ch8.adb (Push_Scope): Save Uneval_Old.
7254         (Pop_Scope): Restore Uneval_Old.
7255         * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
7256         Implemented.
7257         * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
7258         Add entries for Name_Warn, Name_Allow.
7260 2014-07-29  Robert Dewar  <dewar@adacore.com>
7262         * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
7263         to Is_OK_Static_Range.
7264         * sem_attr.adb (Eval_Attribute): Make sure we properly flag
7265         static attributes (Eval_Attribute, case Size): Handle size of
7266         zero properly (Eval_Attribute, case Value_Size): Handle size of
7267         zero properly.
7268         * sem_ch13.adb: Minor reformatting.
7269         * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
7270         Is_Static_Range to Is_OK_Static_Range.
7271         * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
7272         wrong in several ways (Is_Static_Range): Moved here from spec
7273         (Is_Static_Subtype): Moved here from spec Change some incorrect
7274         Is_Static_Subtype calls to Is_OK_Static_Subtype.
7275         * sem_eval.ads: Add comments to section on
7276         Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
7277         Add clarifying comments (Is_Static_Range): Moved to body
7278         (Is_Statically_Unevaluated): New function.
7279         * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
7280         Is_Static_Range to Is_OK_Static_Range.
7281         * sinfo.ads: Additional commments for Is_Static_Expression noting
7282         that clients should almost always use Is_OK_Static_Expression
7283         instead. Many other changes throughout front end units to obey
7284         this rule.
7285         * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
7286         for enumeration literal.
7287         * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
7288         lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
7289         sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
7290         exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
7291         Replace all occurrences of Is_Static_Expression by
7292         Is_OK_Static_Expression.
7294 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7296         * exp_ch4.adb (Process_Transient_Object): Remove constant
7297         In_Cond_Expr, use its initialization expression in place.
7298         * exp_ch7.adb (Process_Declarations): There is no need to check
7299         that a transient object being hooked is controlled as it would
7300         not have been hooked in the first place.
7301         * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
7302         objects are not considered aliased when the related context is
7303         a Boolean expression_with_actions.
7304         (Requires_Cleanup_Actions): There is no need to check that a transient
7305         object being hooked is controlled as it would not have been hooked in
7306         the first place.
7308 2014-07-29  Robert Dewar  <dewar@adacore.com>
7310         * errout.adb: Minor reformatting.
7312 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7314         * exp_ch3.adb (Default_Initialize_Object): Add new variables
7315         Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
7316         not allowed to ensure the symmetrical generation of symbols.
7317         * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
7318         and E_Decl. Add new variables Decl and Dummy. Generate a dummy
7319         temporary when aborts are not allowed to ensure symmertrical
7320         generation of symbols.
7321         * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
7322         Dummy. Generate a dummy temporary when aborts are not allowed
7323         to ensure symmertrical generation of symbols.
7325 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7327         * exp_dbug.adb (Debug_Renaming_Declaration): For an object
7328         renaming, indicate that the renamed entity itself needs debug
7329         information. This is necessary if that entity is a temporary,
7330         e.g. part of the expansion of an explicit dereference in an
7331         iterator.
7333 2014-07-29  Thomas Quinot  <quinot@adacore.com>
7335         * errout.adb (Set_Error_Posted): When propagating flag to
7336         an enclosing named association, also propagate to the parent
7337         of that node, so that named and positional associations are
7338         treated consistently.
7340 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7342         * sem_attr.adb (Resolve_Attribute, case 'Update):  Set
7343         Do_Range_Check properly on array component expressions that
7344         have a scalar type. In GNATprove mode, only checks on scalar
7345         components must be marked by the front-end.
7347 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7349         * sem_res.adb (Resolve_Type_Conversion): If the type of the
7350         expression is a limited view, use the non-limited view when
7351         available.
7353 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7355         * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
7356         case statement as coming from a conditional expression.
7357         (Expand_N_If_Expression): Mark the generated if statement as
7358         coming from a conditional expression.
7359         * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
7360         objects found in case statement alternatives when the case
7361         statement is actually a case expression.
7362         (Expand_N_If_Statement):
7363         Do not process controlled objects found in an if statement when
7364         the if statement is actually an if expression.
7365         * sinfo.adb (From_Conditional_Expression): New routine.
7366         (Set_From_Conditional_Expression): New routine.
7367         * sinfo.ads Add new semantic flag From_Conditional_Expression and
7368         update related nodes.
7369         (From_Conditional_Expression): New routine along with pragma Inline.
7370         (Set_From_Conditional_Expression): New routine along with pragma Inline.
7372 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
7374         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
7375         formal parameter Obj_Id and update the comment on usage. Renamed
7376         Obj_Typ to Func_Typ and update all occurrences.
7377         (Find_Last_Init): Remove formal parameter Decl and update the comment
7378         on usage.
7379         Remove local constants Obj_Id and Obj_Typ. Remove local variables
7380         Init_Typ and Is_Conc. Remove the extraction of the initialization type.
7381         (Find_Last_Init_In_Block): Remove formal parameter
7382         Init_Typ and update the comment on usage.
7383         (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
7384         on usage. Check whether the procedure call is an initialization
7385         procedure of either the object type or the initialization type.
7386         (Is_Init_Proc_Of): New routine.
7387         (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
7388         routine. Add new variable Init_Typ. Add circuitry to extract the object
7389         type as well as the initialization type.
7391 2014-07-29  Robert Dewar  <dewar@adacore.com>
7393         * sem_case.adb: Minor reformatting.
7394         * sem_aux.ads: Minor reformatting.
7396 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
7398         * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
7399         pointer on these fields, even though they are semantic, because
7400         subsequent analysis and expansion of action nades may require
7401         exploring the tree, for example to locate a node to be wrapped
7402         when a function with controlled result is called.
7404 2014-07-29  Claire Dross  <dross@adacore.com>
7406         * sem_aux.adb (Get_Binary_Nkind): Use case on
7407         Name_Id instead of an intermediate string.
7408         (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
7409         string.
7411 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
7413         * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
7414         about processing sources with preprocessor directives.
7416 2014-07-24  Martin Liska  <mliska@suse.cz>
7418         * gcc-interface/trans.c (finalize_nrv): Adjust function call.
7419         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
7420         (gnat_write_global_declarations): Likewise.
7422 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
7424         * gnat_rm.texi: Clean up for makeinfo 5.2.
7426 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
7428         * gnat_rm.texi (Machine Code Insertions): Clean up.
7430 2014-07-18  Robert Dewar  <dewar@adacore.com>
7432         * exp_ch7.adb: Minor reformatting.
7434 2014-07-18  Claire Dross  <dross@adacore.com>
7436         * sem_aux.ads (Get_Binary_Nkind): New function that returns
7437         the Node_Kind value of an entity defining a binary operator.
7438         (Get_Unary_Nkind): New function that returns the Node_Kind value
7439         of an entity defining a unary operator.
7441 2014-07-18  Pascal Obry  <obry@adacore.com>
7443         * sysdep.c: comment update.
7444         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
7445         platforms where it is known to be supported.
7447 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7449         * sem_dist.adb (Process_Remote_AST_Declaration): Need
7450         to set Fat_Type's Ekind in order to be able to use its
7451         Corresponding_Remote_Type attribute.
7453 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7455         * einfo.adb Last_Aggregate_Assignment is now Node 30.
7456         (Last_Aggregate_Assignment): Include
7457         constants in the assertion. Update the underlying node.
7458         (Set_Last_Aggregate_Assignment): Include constants in the
7459         assertion. Update the underlying node.  (Write_Field11_Name):
7460         Remove the entry for Last_Aggregate_Assignment.
7461         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
7462         * einfo.ads Update the node designation and usage of attribute
7463         Last_Aggregate_Assignment.
7464         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
7465         assignment statement used to initialize a controlled object.
7466         (Late_Expansion): Store the last assignment statement used to
7467         initialize a controlled record or an array of controlled objects.
7468         * exp_ch3.adb (Expand_N_Object_Declaration): Default
7469         initialization of objects is now performed in a separate routine.
7470         (Default_Initialize_Object): New routine.
7471         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
7472         Obj_Id. Update the comment on usage.
7473         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
7474         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
7475         (Is_Init_Call): Add formal parameter Init_Typ. Update the
7476         comment on usage.  Account for the type init proc when trying
7477         to determine whether a statement is an initialization call.
7478         (Make_Adjust_Call): Rename formal parameter For_Parent to
7479         Skip_Self. Update all occurrences of For_Parent. Account for
7480         non-tagged types. Update the call to Make_Call.
7481         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
7482         comment on usage. Update all occurrences of For_Parent.
7483         (Make_Final_Call): Rename formal parameter For_Parent to
7484         Skip_Self. Update all occurrences of For_Parent. Account
7485         for non-tagged types. Update the call to Make_Call.
7486         (Process_Object_Declaration): Most variables and constants are
7487         now local to the routine.
7488         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
7489         For_Parent to Skip_Self. Update the comment on usage.
7490         (Make_Final_Call): Rename formal parameter For_Parent to
7491         Skip_Self. Update the comment on usage.
7493 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7495         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
7496         can be a procedure that is implemented by entry, and have a
7497         formal that is a synchronized interface.  It does not have to
7498         be declared as a protected operation.
7500 2014-07-18  Robert Dewar  <dewar@adacore.com>
7502         * gnat_rm.texi: Remove mention of obsolete attributes
7503         Max[_Interrupt]_Priority, which have never been implemented
7504         (or at the very least were removed long ago if they ever were
7505         implemented.  Add documentation of Max[_Interrupt]_Priority
7506         constants in package System.
7507         * ttypes.ads: Document actual handling of package System,
7508         rather than a historical fantasy version.  Remove mention of
7509         non-existent attributes Max[_Interrupt]_Priority.
7511 2014-07-18  Pascal Obry  <obry@adacore.com>
7513         * a-witeio.adb (Put): No 16-bit character output when text
7514         translation is disabled.
7515         * i-cstrea.ads: Code clean up.
7517 2014-07-18  Robert Dewar  <dewar@adacore.com>
7519         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
7520         static attributes.
7522 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7524         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
7526 2014-07-18  Pascal Obry  <obry@adacore.com>
7528         * adaint.c: Do not include wchar.h on VxWorks.
7529         * mingw32.h: Remove obsolete definition.
7531 2014-07-18  Pascal Obry  <obry@adacore.com>
7533         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
7534         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
7535         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
7536         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
7538 2014-07-18  Pascal Obry  <obry@adacore.com>
7540         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
7541         * a-ztexio.adb: Likewise.
7542         * a-witeio.adb: Likewise.
7543         (Open): Pass file's translation mode to set_text_mode.
7544         * s-ficobl.ads (Content_Encoding): New type.
7545         (Text_Content_Encoding): New subtype.
7546         (AFCB): Rename Is_Text_File to Text_Encoding.
7547         * s-fileio.adb (Open): Handles new text_translation
7548         values. Remove Is_Text_File which is equivalent to Text_Encoding
7549         in Text_Content_Encoding.
7550         * adaint.h (__gnat_set_mode): New routine.
7551         * sysdep.c (__gnat_set_wide_text_mode): Removed.
7552         (__gnat_set_mode): New routine.
7554 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7556         * gcc-interface/decl.c, gcc-interface/trans.c,
7557         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
7558         Is_Packed_Array_Impl_Type.
7560 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7562         * sem_util.adb: Minor typo correction.
7564 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
7566         * gnat_rm.texi: Complete previous change.
7568 2014-07-18  Pascal Obry  <obry@adacore.com>
7570         * s-fileio.adb: Minor style fix.
7572 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7574         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
7575         specification of stream attributes for subtypes that are not
7576         first subtypes, to prevent malformed rep_item chains in the case
7577         of such illegal specifications for discriminated private subtypes.
7578         (Check_Overloaded_Name): Verify that the name is an entity name
7579         before other checks.
7581 2014-07-18  Pascal Obry  <obry@adacore.com>
7583         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
7585 2014-07-18  Robert Dewar  <dewar@adacore.com>
7587         * sem_prag.adb, sem_attr.adb,
7588         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
7590 2014-07-18  Pascal Obry  <obry@adacore.com>
7592         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
7593         * initialize.c (__gnat_wide_text_translation_required): Defined here.
7595 2014-07-18  Pascal Obry  <obry@adacore.com>
7597         * adaint.c (__gnat_fputwc): New routine.
7598         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
7600 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7602         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
7603         (Set_Stores_Attribute_Old_Prefix): New routine.
7604         (Stores_Attribute_Old_Prefix): New routine.
7605         (Write_Entity_Flags):
7606         Output flag Stores_Attribute_Old_Prefix.
7607         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
7608         comment on usage.
7609         (Set_Stores_Attribute_Old_Prefix): New routine
7610         along with pragma Inline.
7611         (Stores_Attribute_Old_Prefix): New
7612         routine along with pragma Inline.
7613         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
7614         constant which captures the result of attribute 'Old's prefix.
7615         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
7616         relocated expression which acted as a prefix of attribute 'Old.
7618 2014-07-18  Bob Duff  <duff@adacore.com>
7620         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
7621         null before dispatching to Deallocate_Subpool.
7622         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
7623         parameter of Default_Subpool_For_Pool to 'in out'.
7624         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
7625         a message to the raise.
7626         * sem_util.adb: Minor reformatting.
7628 2014-07-18  Robert Dewar  <dewar@adacore.com>
7630         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7631         Mark expression as non-static if it fails static predicate check,
7632         and issue additional warning.
7634 2014-07-18  Pascal Obry  <obry@adacore.com>
7636         * a-witeio.adb (Put): Control translation based on
7637         wide_text_translation_required.
7638         * adaint.c (CurrentCCSEncoding): New variable.
7639         * initialize.c (__gnat_initialize): On Windows initialize
7640         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
7641         environment variable.
7642         * mingw32.h (CurrentCCSEncoding): New external.
7643         (__gnat_wide_text_translation_required): Likewise.
7644         * sysdep.c (wide_text_translation_required): New variable.
7645         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
7647 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7649         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
7650         variable Refined_States.  Add global variable Matched_Items.
7651         (Check_Dependency_Clause): Account for dependency
7652         clauses utilizing states with visible null refinements.
7653         (Is_Null_Refined_State): New routine.
7654         (Match_Items): Record each successfully matched item of pragma Depends.
7655         (Record_Item): New routine.
7657 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7659         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
7660         Do_Range_Check flag on a dynamic index expression used in a
7661         component association in the argument of Update.
7663 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7665         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
7667 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7669         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
7670         of enclosing blocks, loops and the enclosing function using a
7671         parent-based traversal.
7672         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
7673         stack reclamation if the iterator loop contains a return statement
7674         that uses the stack.
7675         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
7676         patch up the scope stack as the secondary stack management now
7677         takes into account the enclosing function of the iterator loop.
7679 2014-07-18  Robert Dewar  <dewar@adacore.com>
7681         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
7683 2014-07-18  Robert Dewar  <dewar@adacore.com>
7685         * einfo.adb (Has_Static_Predicate): New function.
7686         (Set_Has_Static_Predicate): New procedure.
7687         * einfo.ads (Has_Static_Predicate): New flag.
7688         * sem_ch13.adb (Is_Predicate_Static): New function
7689         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
7690         (Add_Call): Minor change in Sloc of generated expression
7691         (Add_Predicates): Remove setting of Static_Pred, no longer used.
7692         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
7693         replace by use of the entity flag Has_Static_Predicate_Aspect.
7694         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
7695         and issue warning that predicate is not checked for now.
7696         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
7697         spec.
7698         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7699         Carry out check for any case where there is a static predicate,
7700         and output appropriate message.
7701         * sinfo.ads: Minor comment corrections.
7703 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7705         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
7706         from an untagged private type whose full view is tagged, the type
7707         is marked tagged for layout reasons, but it has no dispatch table,
7708         so Set_All_DT_Position must not be called.
7709         * exp_ch13.adb: If the freeze node is for a type internal to a
7710         record declaration, as is the case for a class-wide subtype
7711         of a parent component, the relevant scope is the scope of the
7712         enclosing record.
7714 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7716         * g-memdum.adb, g-memdum.ads: Code clean ups.
7718 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7720         * sem_prag.adb (Check_Dependency_Clause):
7721         Update the comment on usage. Reimplement the mechanism which
7722         attempts to match a single clause of Depends against one or
7723         more clauses of Refined_Depends.
7724         (Input_Match): Removed.
7725         (Inputs_Match): Removed.
7726         (Is_Self_Referential): Removed.
7727         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
7728         (Normalize_Outputs): Rename variable Split to New_Claue and update
7729         all its occurrences.
7730         (Report_Extra_Clauses): Update the comment on usage.
7731         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
7733 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7735         * i-cstrea.ads: Minor reformatting.
7737 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7739         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
7740         secondary stack-related flags to the generated block.
7741         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
7742         once the loop is relocated in a block.
7744 2014-07-18  Robert Dewar  <dewar@adacore.com>
7746         * repinfo.ads: Add documentation on handling of back annotation
7747         for dynamic case.
7749 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7751         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
7752         of full type declaration, denotes previous declaration for
7753         incomplete view of the type.
7754         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
7755         of declaration if one is present.
7756         (Replace_Type): When constructing the signature of an inherited
7757         operation, handle properly the case where the operation has a
7758         formal whose type is an incomplete view.
7759         * sem_util.adb (Collect_Primitive_Operations): Handle properly
7760         the case of an operation declared after an incomplete declaration
7761         for a type T and before the full declaration of T.
7763 2014-07-18  Pascal Obry  <obry@adacore.com>
7765         * i-cstrea.ads: Add documentation for set_wide_text_mode.
7767 2014-07-18  Robert Dewar  <dewar@adacore.com>
7769         * a-witeio.adb: Minor code reorganization.
7770         * i-cstrea.ads: Add comment.
7772 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7774         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
7775         clarifications.
7777 2014-07-18  Robert Dewar  <dewar@adacore.com>
7779         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
7781 2014-07-18  Pascal Obry  <obry@adacore.com>
7783         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
7784         * a-witeio.adb (Put): On platforms where there is translation
7785         done by the OS output the raw text.
7786         (New_Line): Use Put above to properly handle the LM wide characters.
7788 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7790         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
7791         to Absolute_Address.
7793 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
7795         * opt.ads (Suppress_Back_Annotation): Remove as unused.
7796         * fe.h (Back_Annotate_Rep_Info): Likewise.
7797         (Global_Discard_Names): Likewise.
7799 2014-07-18  Robert Dewar  <dewar@adacore.com>
7801         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
7802         parenthesized.
7804 2014-07-18  Vincent Celier  <celier@adacore.com>
7806         * s-osinte-vms.ads: Fix style errors.
7808 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7810         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
7811         NAME_MAX and PATH_MAX.
7813 2014-07-18  Bob Duff  <duff@adacore.com>
7815         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
7816         Build_Record_Or_Elementary_Output_Procedure): For Input and
7817         Output attributes, do not read/write the discriminants if they
7818         have default values; that will be done by Read/Write.
7820 2014-07-18  Robert Dewar  <dewar@adacore.com>
7822         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
7823         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
7824         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
7825         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
7826         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
7828 2014-07-18  Robert Dewar  <dewar@adacore.com>
7830         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
7832 2014-07-18  Vincent Celier  <celier@adacore.com>
7834         * lib-writ.ads: Update documentation about the D lines.
7836 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7838         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
7839         as a parameter, rather than its Chars field, in order to locate
7840         freeze node of type. If the predicate or invariant has references
7841         to types other than the one to which the contract applies, these
7842         types must be frozen, and the corresponding predicate functions
7843         created, before that freeze node.
7845 2014-07-18  Robert Dewar  <dewar@adacore.com>
7847         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
7848         * par_sco.adb: Minor reformatting.
7850 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
7852         * exp_ch4.adb (Real_Range_Check): Turn off
7853         the Do_Range_Check flag on the conversion's current Expression
7854         argument rather than on the originally captured Operand node,
7855         as Expression may reflect a rewriting (as in conversions to a
7856         fixed-point type).
7858 2014-07-18  Vincent Celier  <celier@adacore.com>
7860         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
7861         is not a subunit.
7862         * ali.ads (Sdep_Record): New component Unit_Name.
7863         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
7864         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
7865         dependent unit is in a project and the source file name is not
7866         one of its sources.
7868 2014-07-18  Bob Duff  <duff@adacore.com>
7870         * s-addima.ads: Minor: add comment.
7872 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7874         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
7875         of nesting rules for composites with different SSOs.
7877 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7879         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
7880         a proper logical operator.
7881         (Has_Decision): An If_Expression indicates the presence of a decision
7882         although it is not a logical operator.
7884 2014-07-18  Robert Dewar  <dewar@adacore.com>
7886         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
7887         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
7889 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
7891         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
7892         on the null statement.
7894 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7896         * adaint.c: Minor comment rewording.
7897         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
7898         use of errno in this file is thread safe.
7900 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
7902         * gnat_ugn.texi: Doc clarification.
7903         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
7904         * sem_ch13.ads: Minor comment update.
7906 2014-07-18  Robert Dewar  <dewar@adacore.com>
7908         * repinfo.ads: Minor comment fix.
7910 2014-07-18  Robert Dewar  <dewar@adacore.com>
7912         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
7913         * sem_prag.adb: Add dummy implementation of
7914         Default_Scalar_Storage_Order.
7915         * snames.ads-tmpl: Add dummy entry for
7916         Default_Scalar_Storage_Order pragma.
7918 2014-07-18  Robert Dewar  <dewar@adacore.com>
7920         * opt.adb (Tree_Read): Read Address_Is_Private,
7921         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
7922         (Tree_Write): Corresponding writes
7923         * opt.ads: Minor comment reformatting and fixes.
7924         * tree_io.ads: Increment ASIS_Version_Number.
7926 2014-07-18  Robert Dewar  <dewar@adacore.com>
7928         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
7929         * types.h: Fix typo.
7931 2014-07-18  Robert Dewar  <dewar@adacore.com>
7933         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
7934         functional change).
7935         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
7936         ASIS trees.
7937         * sem_ch13.adb (Kill_Rep_Clause): New procedure
7938         (Analyze_Attribute_Definition_Clause): Use
7939         Kill_Rep_Clause. This is just a cleanup, no functional effect.
7940         (Analyze_Enumeration_Representation_Clause):
7941         Use Kill_Rep_Clause. This means that enum rep
7942         clauses are now properly removed from -gnatct trees.
7943         (Analyze_Record_Representation_Clause): Same change.
7944         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
7946 2014-07-18  Pascal Obry  <obry@adacore.com>
7948         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
7949         OS_Time from time parts.
7950         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
7952 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7954         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
7955         indexing over containers that are derived types: check whether
7956         signature of found operation has the correct first parameter
7957         before retrieving directly a primitive operation.
7959 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7961         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
7962         Do_Range_Check flag on dynamic bounds of a range used in a
7963         component association in the argument of Update.
7965 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7967         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
7968         accesses to errno(3) to be thread safe.
7970 2014-07-18  Vincent Celier  <celier@adacore.com>
7972         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
7973         limited imported project that is an extending project, return
7974         a project being extended if it has the expected name.
7976 2014-07-18  Pascal Obry  <obry@adacore.com>
7978         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
7979         routine to set the last modification time stamp for the given file.
7980         * gnatchop.adb (File_Time_Stamp): Removed.
7981         (Write_Unit): Use
7982         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
7984 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7986         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
7987         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
7988         Moved here, so it can be shared with the resolution of 'Update,
7989         whose argument shares some features with aggregates.
7990         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
7991         Aggregate_Constraint_Checks with the expression of each
7992         association, so that the Do_Range_Check flag is set when needed.
7994 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7996         * sem_ch4.adb (Try_Container_Indexing):  If the container
7997         type is a derived type, the value of the inherited  aspect is
7998         the Reference operation declared for the parent type. However,
7999         Reference is also a primitive operation of the new type, and
8000         the inherited operation has a different signature. We retrieve
8001         the right one from the list of primitive operations of the
8002         derived type.
8004 2014-07-18  Vincent Celier  <celier@adacore.com>
8006         * debug.adb: Update comment.
8008 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
8010         * exp_util.adb (Needs_Finalization): There is no reason why a
8011         C type should not benefit from finalization actions.
8013 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8015         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
8016         (FILENAME_MAX): Remove unneeded definition.
8018 2014-07-18  Robert Dewar  <dewar@adacore.com>
8020         * exp_attr.adb, debug.adb: Update comments.
8022 2014-07-18  Vincent Celier  <celier@adacore.com>
8024         * par-ch4.adb (Simple_Expression): Add missing style check
8025         for binary adding operators.
8026         (Term): Add missing style check for multiplying operators.
8028 2014-07-18  Robert Dewar  <dewar@adacore.com>
8030         * impunit.adb: Minor comment correction.
8031         * widechar.adb, s-wchcon.ads: Minor comment corrections.
8033 2014-07-18  Robert Dewar  <dewar@adacore.com>
8035         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
8036         for Build_Static_Predicate (Build_Predicate_Functions):
8037         Don't try to build discrete predicate for real type.
8038         (Build_Predicate_Functions): Report attempt to use
8039         Static_Predicate function on real type as unimplemented.
8040         * sem_util.adb (Check_Expression_Against_Static_Predicate):
8041         Add guard to prevent blow up on predicate for real type.
8043 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8045         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
8046         properly static predicate on enumeration types and modular types
8047         (not subtypes).
8049 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
8051         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
8052         the corresponding source file index.
8053         * get_scos.ads (Get_SCOs): Add a default value for it.
8054         * par_sco.adb (SCO_Record): Fill the corresponding value.
8055         * scos.h: New.
8057 2014-07-18  Vincent Celier  <celier@adacore.com>
8059         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
8060         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
8061         reformatting.
8062         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
8064 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8066         * g-sercom.ads (Set): document possible data loss.
8068 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8070         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
8071         Output, Read, Write): If the restriction No_Streams is active,
8072         replace each occurrence of a stream attribute by an explicit
8073         Raise statement.
8075 2014-07-18  Robert Dewar  <dewar@adacore.com>
8077         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
8078         reformatting.
8080 2014-07-18  Robert Dewar  <dewar@adacore.com>
8082         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
8083         function.
8084         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
8085         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
8086         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
8087         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
8089 2014-07-18  Robert Dewar  <dewar@adacore.com>
8091         * bcheck.adb (Check_Consistent_Restrictions):
8092         Remove obsolete code checking for violation of
8093         No_Standard_Allocators_After_Elaboration (main program)
8094         * bindgen.adb (Gen_Adainit): Handle
8095         No_Standard_Allocators_After_Elaboration
8096         (Gen_Output_File_Ada): ditto.
8097         * exp_ch4.adb (Expand_N_Allocator): Handle
8098         No_Standard_Allocators_After_Elaboration.
8099         * Makefile.rtl: Add entry for s-elaall
8100         * rtsfind.ads: Add entry for Check_Standard_Allocator.
8101         * s-elaall.ads, s-elaall.adb: New files.
8102         * sem_ch4.adb (Analyze_Allocator): Handle
8103         No_Standard_Allocators_After_Elaboration.
8105 2014-07-18  Robert Dewar  <dewar@adacore.com>
8107         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
8108         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
8109         Remove AB parameter from ali files and all uses.
8110         Remove Allocator_In_Body and all uses.
8112 2014-07-18  Robert Dewar  <dewar@adacore.com>
8114         * g-expect-vms.adb: Add comment.
8116 2014-07-18  Thomas Quinot  <quinot@adacore.com>
8118         * par_sco.adb (Is_Logical_Operation): return True for
8119         N_If_Expression.
8121 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8123         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
8124         analysis and resolution of each choice in the associations within
8125         the argument of Update, because they may be variable names.
8127 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
8129         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
8130         actions before the generated if statement.
8132 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
8134         * gnat_ugn.texi Enhance the documentation of
8135         switches -gnateA and -gnateV.
8137 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
8139         * sem_util.adb (Build_Default_Subtype): Add missing condition
8140         so that code matches description: use the full view of the base
8141         only if the base is private and the subtype is not.
8143 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
8145         * exp_disp.adb: Minor reformatting.
8146         * exp_disp.adb: Minor code reorganization.
8148 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8150         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
8151         require an explicit SSO attribute definition clause on a composite type
8152         just because one of its components has one.
8154 2014-07-17  Robert Dewar  <dewar@adacore.com>
8156         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
8157         attribute out of existence if the enclosing pragma is ignored.
8158         * sem_util.adb: Minor reformatting.
8160 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8162         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
8163         array aggregate expanded into assignments when it appears as a
8164         local declaration in an inlined body.
8166 2014-07-17  Doug Rupp  <rupp@adacore.com>
8168         * init.c [__ANDROID__]: Modify for ZCX.
8169         * exp_aggr.adb: Minor reformatting
8170         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
8172 2014-07-17  Robert Dewar  <dewar@adacore.com>
8174         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
8175         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
8176         scng.adb: Remove incorrect usage "allow to" and "allows to".
8178 2014-07-17  Robert Dewar  <dewar@adacore.com>
8180         * exp_dist.adb: Minor reformatting.
8182 2014-07-17  Bob Duff  <duff@adacore.com>
8184         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
8186 2014-07-17  Robert Dewar  <dewar@adacore.com>
8188         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
8189         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
8191 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8193         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
8194         non-bit-packed array, propagate Reverse_Storage_Order to the
8195         packed array type.
8197 2014-07-17  Javier Miranda  <miranda@adacore.com>
8199         * exp_disp.adb: Fix comment.
8200         * exp_pakd.adb: Minor reformatting.
8202 2014-07-17  Robert Dewar  <dewar@adacore.com>
8204         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
8205         entity if none exists (Gen_Elab_Calls): Complain if clash with
8206         No_Multiple_Elaboration.
8207         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
8208         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
8209         if not needed.
8210         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
8211         * sem_ch4.adb: Minor comment updates.
8213 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8215         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
8216         of function call for later use when shared passive objects
8217         are involved.
8219 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8221         * par-ch13.adb (Get_Aspect_Specifications):
8222         Catch a case where the argument of SPARK aspect Refined_State
8223         is not properly parenthesized.
8225 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8227         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
8228         the lifetime of a reference to an Ada 2012 container element.
8229         (Is_Element_Reference): New routine.
8231 2014-07-17  Robert Dewar  <dewar@adacore.com>
8233         * ali.ads: Minor comment fix.
8234         * lib-writ.adb: Minor reformatting.
8236 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8238         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
8239         in ASIS mode, load another subunit only if it a subunit of the
8240         current one, not a sibling that has been reached through the
8241         analysis of an ancestor. This allows the construction of the
8242         ASIS tree for the subunit even when sibling subunits have errors.
8244 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8246         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
8247         prevents the analysis of various contracts when the associated
8248         construct is erroneous.
8249         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
8250         SPARK_Pragma of an illegal or a partially decorated construct.
8252 2014-07-17  Robert Dewar  <dewar@adacore.com>
8254         * s-imguns.ads: Minor reformatting.
8256 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8258         * exp_ch7.adb (Build_Finalization_Master): Move all local
8259         variables to the proper code section. When looking for an existing
8260         finalization master, inspect the ultimate ancestor type of the
8261         full view.
8262         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
8264 2014-07-17  Robert Dewar  <dewar@adacore.com>
8266         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
8267         * gnat_rm.texi: Document Entity argument for pragma Annotate and
8268         Annotate aspect.
8269         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
8270         for Annotate aspect.
8271         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
8272         Entity argument at end.
8273         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
8275 2014-07-17  Tristan Gingold  <gingold@adacore.com>
8277         * s-imguns.ads: Fix minor typo.
8279 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8281         * sprint.adb: Minor reformatting.
8283 2014-07-17  Robert Dewar  <dewar@adacore.com>
8285         * sprint.adb (Write_Itype): Print proper header for string
8286         literal subtype.
8288 2014-07-17  Steve Baird  <baird@adacore.com>
8290         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
8292 2014-07-17  Vincent Celier  <celier@adacore.com>
8294         * gnatbind.adb: Change in message "try ... for more information".
8296 2014-07-17  Robert Dewar  <dewar@adacore.com>
8298         * sprint.adb: Code clean up.
8300 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8302         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
8303         the relevant code section. Add new local constant Obj_Id. When
8304         a limited controlled object is initialized by a function call,
8305         the build-in-place object access function call acts as the last
8306         initialization statement.
8307         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
8308         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
8309         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
8311 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8313         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
8314         propagate intrinsic flag to renamed entity, to allow e.g. renaming
8315         of Unchecked_Conversion.
8316         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
8317         if the declaration has errors.
8319 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8321         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
8322         container is busy before checking whether capacity allows for
8323         a further insertion. Insertion in a busy container that is full
8324         raises Program_Error rather than Capacity_Error. Previous to that
8325         patch which exception was raised varied among container types.
8327 2014-07-17  Robert Dewar  <dewar@adacore.com>
8329         * g-comlin.ads, g-comlin.adb: Minor clean up.
8331 2014-07-17  Bob Duff  <duff@adacore.com>
8333         * gnat_ugn.texi: Update gnatpp doc.
8335 2014-07-17  Robert Dewar  <dewar@adacore.com>
8337         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
8338         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
8339         could do this by actually expanding a real generic.
8340         * a-tags.ads: Add comments about performance.
8341         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
8342         Print Etype of defining identifier, rather than the object
8343         definition. More information.
8345 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8347         * exp_dist.adb: Minor documentation clarification.
8349 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8351         * exp_util.adb (Is_Aliased): Revert previous change.
8353 2014-07-17  Vincent Celier  <celier@adacore.com>
8355         * g-comlin.adb (Try_Help): New procedure.
8356         (Getopt): Use new procedure Try_Help.
8357         * g-comlin.ads (Try_Help): New procedure.
8359 2014-07-17  Bob Duff  <duff@adacore.com>
8361         * gnat_ugn.texi: Minor update.
8363 2014-07-17  Robert Dewar  <dewar@adacore.com>
8365         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
8366         * sinfo.ads: Document restriction on aggregates (must expand to
8367         assignments if one or more assignments needs expansion, e.g. for
8368         controlled types).
8369         * sem_ch13.adb: All warning messages regarding bit order should
8370         be info: messages.
8371         * gnat_ugn.texi: Minor correction of missing @ on @code
8373 2014-07-17  Robert Dewar  <dewar@adacore.com>
8375         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
8376         * s-rident.ads (Partition_Boolean_Restrictions): Add
8377         No_Long_Long_Integer.
8378         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
8379         Long_Integer'Size if restriction No_Long_Long_Integer is active.
8380         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
8381         as the implicit base type for a signed integer type declaration
8382         if restriction No_Long_Long_Integer is active.
8383         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
8384         No_Long_Long_Integer.
8386 2014-07-17  Robert Dewar  <dewar@adacore.com>
8388         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
8389         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
8390         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
8391         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
8392         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
8394 2014-07-17  Robert Dewar  <dewar@adacore.com>
8396         * debug.adb: Remove -gnatdQ.
8397         * exp_disp.adb: Remove -gnatdQ.
8398         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
8399         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
8400         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
8401         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
8402         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
8403         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
8405 2014-07-17  Robert Dewar  <dewar@adacore.com>
8407         * back_end.adb: Minor reformatting and comment additions.
8408         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
8409         function.
8410         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
8411         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
8412         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
8413         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
8414         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
8415         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
8417 2014-07-17  Robert Dewar  <dewar@adacore.com>
8419         * gnat_rm.texi: Minor comment updates.
8421 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8423         * sem_util.adb (Make_Explicit_Dereference): If the expression
8424         being dereferenced is a generalized indexing, reset the overloaded
8425         flag on the generalized indexing call, consistent with the
8426         resetting of the flag on the original indexed component.
8428 2014-07-17  Robert Dewar  <dewar@adacore.com>
8430         * gnat_ugn.texi: Document advise not to mix -gnatV? and
8431         optimization.
8433 2014-07-17  Robert Dewar  <dewar@adacore.com>
8435         * checks.adb (Insert_Valid_Check): Don't insist on a name
8436         for the prefix when we make calls to Force_Evaluation and
8437         Duplicate_Subexpr_No_Checks.
8438         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
8439         (Remove_Side_Effects): Handle all volatile references right
8440         (Side_Effect_Free): Volatile reference is never side effect free
8441         * sinfo.ads (N_Attribute_Reference): Add comments explaining
8442         that in the tree, the prefix can be a general expression.
8444 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8446         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
8447         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
8448         * sem_ch7.adb (Analyze_Package_Body_Contract,
8449         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
8451 2014-07-17  Robert Dewar  <dewar@adacore.com>
8453         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
8454         Store_After_Actions_In_Scope.
8456 2014-07-17  Robert Dewar  <dewar@adacore.com>
8458         * sem_aux.ads: Minor comment addition.
8460 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8462         * sem_res.adb (Make_Call_Into_Operator): If the call is already
8463         a rewriting of an operator node, there are no actuals to be
8464         propagated from original node to rewritten node when in ASIS mode.
8466 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8468         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
8469         Analyze_Subprogram_Contract): Add new local variable Mode. Save
8470         and restore the SPARK mode of the related construct in a
8471         stack-like fashion.
8472         * sem_ch7.adb (Analyze_Package_Body_Contract,
8473         Analyze_Package_Contract): Add new local variable Mode. Save and
8474         restore the SPARK mode of the related construct in a stack-like fashion.
8475         * sem_util.adb Remove with and use clause for Opt.
8476         (Restore_SPARK_Mode): New routine.
8477         (Save_SPARK_Mode_And_Set): New routine.
8478         * sem_util.ads Add with and use clause for Opt.
8479         (Restore_SPARK_Mode): New routine.
8480         (Save_SPARK_Mode_And_Set): New routine.
8482 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8484         * exp_util.adb (Is_Aliased): Transient objects
8485         within an expression with actions cannot be considered aliased.
8487 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8489         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
8490         introduce a new list (cleanup actions) for each (transient) scope.
8491         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
8492         N_Block_Statement
8493         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
8494         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
8495         processing for Store_xxx_Actions_In_Scope.
8496         (Build_Cleanup_Statements): Allow for a list of additional
8497         cleanup statements to be passed by the caller.
8498         (Expand_Cleanup_Actions): Take custom cleanup actions associated
8499         with an N_Block_Statement into account.
8500         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
8501         reorganization (refactoring only, no behaviour change).
8502         (Make_Transient_Block): Add assertion to ensure that the current
8503         scope is indeed a block (namely, the entity for the transient
8504         block being constructed syntactically, which has already been
8505         established as a scope).  If cleanup actions are present in the
8506         transient scope, transfer them now to the transient block.
8507         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
8508         called function while it is still present as the name in a call
8509         in the tree. This may not be the case later on if the call is
8510         rewritten into a transient block.
8511         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
8512         inserted after calling a protected operation on a shared passive
8513         protected must be performed in a block finalizer, not just
8514         inserted in the tree, so that they are executed even in case of
8515         a normal (RETURN) or abnormal (exception) transfer of control
8516         outside of the current scope.
8517         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
8518         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
8519         Scope_Stack_Entry reorganization.
8521 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8523         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
8524         call for types that do not have an explicit attribute definition
8525         clause for External_Tag, as their default tag may clash with an
8526         explicit tag defined for some other type.
8528 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
8530         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
8531         controlled function call with multiple actual parameters that
8532         appears in Object.Operation form.
8534 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8536         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
8537         entity flag.
8538         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
8539         External_Tag): No need to set entity flag.
8540         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
8541         Reimplement correctly in terms of Has_Rep_Item.
8543 2014-07-17  Thomas Quinot  <quinot@adacore.com>
8545         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
8546         Start examining the tree at the node passed to
8547         Establish_Transient_Scope (not its parent).
8548         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
8549         The access type for the variable storing the reference to
8550         the call must be declared and frozen prior to establishing a
8551         transient scope.
8552         * exp_ch9.adb: Minor reformatting.
8554 2014-07-17  Pascal Obry  <obry@adacore.com>
8556         * s-os_lib.ads: Minor comment update.
8558 2014-07-17  Tristan Gingold  <gingold@adacore.com>
8560         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
8561         indentation.
8562         * socket.c: Remove #warning to avoid warning.
8563         * expect.c: Indent some preprocessor directives to clarify
8564         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
8565         to remove warnings.
8566         * env.c: Fix indentation.  Port to PikeOS.
8567         * gsocket.h: Port to PikeOS.  Remove #warning.
8568         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
8569         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
8570         of stubbed __gnat_setup_parent_communication.
8571         * adaint.c: Port to PikeOS.  Reindent some preprocessor
8572         directives to clarify nested if.  Fix indentation.  Add missing
8573         ATTRIBUTE_UNUSED.
8575 2014-07-17  Robert Dewar  <dewar@adacore.com>
8577         * sem_attr.adb: Minor reformatting.
8579 2014-07-17  Robert Dewar  <dewar@adacore.com>
8581         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
8583 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
8585         * sem_case.adb (Check_Choice_Set): If the case expression is the
8586         expression in a predicate, do not recheck coverage against itself,
8587         to prevent spurious errors.
8588         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
8589         expression comes from an aspect specification, to prevent spurious
8590         errors when expression is a case expression in a predicate.
8592 2014-07-17  Pascal Obry  <obry@adacore.com>
8594         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
8595         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
8597 2014-07-17  Vincent Celier  <celier@adacore.com>
8599         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
8600         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
8601         the usage for an erroneous invocation of a gnat tool.
8603 2014-07-16  Vincent Celier  <celier@adacore.com>
8605         * gnatls.adb: Get the target parameters only if -nostdinc was
8606         not specified.
8608 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8610         * checks.adb (Insert_Valid_Check): If the expression is a packed
8611         component of a modular type of the right size the data is always
8612         valid. This os particularly useful if the component is part of
8613         a volatile variable.
8615 2014-07-16  Robert Dewar  <dewar@adacore.com>
8617         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
8619 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8621         * exp_ch7.ads: Minor documentation fix.
8623 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8625         * sem_ch3.adb (Find_Type_Name): Diagnose properly
8626         a private extension completion that is an interface definition
8627         with an interface list.
8629 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
8631         * gnatls.adb (Gnatls): Code clean ups.
8633 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8635         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
8636         * sem.adb (Analyze): Handle N_Compound_Statement.
8637         * sprint.adb (Sprint_Node_Actual): Ditto.
8638         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
8639         procedure to handle N_Compound_Statement.
8640         * exp_aggr.adb (Collect_Initialization_Statements):
8641         Use a proper compound statement node, instead of a bogus
8642         expression-with-actions with a NULL statement as its expression,
8643         to wrap collected initialization statements.
8644         * freeze.ads, freeze.adb
8645         (Explode_Initialization_Compound_Statement): New public procedure,
8646         lifted from Freeze_Entity.
8647         (Freeze_Entity): When freezing
8648         an object with captured initialization statements and without
8649         delayed freezing, explode compount statement.
8650         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
8651         case that used to handle bogus EWAs with NULL statement as
8652         the expression.
8653         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
8654         delayed freezing and captured initialization statements, explode
8655         compound statement.
8657 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
8659         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
8661 2014-07-16  Doug Rupp  <rupp@adacore.com>
8663         * s-interr-hwint.adb: Casing error on parameter.
8665 2014-07-16  Pascal Obry  <obry@adacore.com>
8667         * Makefile.rtl: Add g-rewdat.o dependencies in
8668         GNATRTL_NONTASKING_OBJS.
8670 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8672         * sem_case.adb: Code clean up.
8674 2014-07-16  Vincent Celier  <celier@adacore.com>
8676         * make.adb: Do not read gnat.adc when gnatmake is invoked
8677         with -gnatA.
8679 2014-07-16  Pascal Obry  <obry@adacore.com>
8681         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
8682         implementation of GNAT.Rewrite_Data.
8684 2014-07-16  Vincent Celier  <celier@adacore.com>
8686         * gnatls.adb (Normalize): New function.
8687         (Gnatls): Get the target parameters. On targets other than VMS,
8688         normalize the path names in the source search path, the object search
8689         path and the project search path.
8691 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8693         * sem_case.adb: Avoid self-checking of case expressions in
8694         dynamic predicates.
8696 2014-07-16  Robert Dewar  <dewar@adacore.com>
8698         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
8699         discriminants.
8701 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
8703         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
8705 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
8707         * gnat_ugn.texi: Fix typo.
8709 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8711         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
8712         expression if it is the specification of a subtype predicate:
8713         it will be expanded when the return statement is analyzed, or
8714         when a static predicate is transformed into a static expression
8715         for evaluation by the front-end.
8716         * sem_ch13.adb (Get_RList): If the expression for a static
8717         predicate is a case expression, extract the alternatives of the
8718         branches with a True value to create the required statically
8719         evaluable expression.
8721 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8723         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
8724         expression, not the location of the aspect, for all generated
8725         code, so that in particular the call to raise_assert_failure
8726         gets the sloc of the associated condition.
8727         * exp_ch6.adb
8728         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
8729         Set an explicit End_Label on the handled sequence of statements
8730         for the _Postconditions procedure so that the implicit return
8731         statement does not erroneously get associated with code generated
8732         for the last condition in postconditions.
8734 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8736         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
8737         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
8738         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
8739         -gnatw.Z.
8741 2014-07-16  Robert Dewar  <dewar@adacore.com>
8743         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
8744         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
8745         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
8746         not in Access_Kind.
8747         * par-ch4.adb (At_Start_Of_Attribute): New function
8748         (P_Simple_Expression): Better msg for bad attribute prefix.
8749         * scans.ads: Minor reformatting.
8751 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8753         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
8754         static constant, check that in belongs to the corresponding index
8755         subtype, to produce the proer warning when expansion is disabled.
8757 2014-07-16  Robert Dewar  <dewar@adacore.com>
8759         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
8760         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
8761         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
8762         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
8763         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
8764         -gnatw.z/-gnatw.Z
8765         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
8766         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
8767         reformatting.
8769 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8771         * exp_ch7.adb (Process_Declarations): Reinstate the check on
8772         a hook object to ensure that the related transient declaration
8773         is finalizable.
8774         * exp_util.adb (Is_Aliased): Do not consider expresison with
8775         actions as a special context.
8776         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
8777         ensure that the related transient declaration is finalizable.
8779 2014-07-16  Robert Dewar  <dewar@adacore.com>
8781         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
8782         * snames.ads-tmpl: Add Allocation_Check to list of check names.
8783         * types.ads: Add Allocation_Check to list of check names.
8785 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8787         * sem_util.adb (Enter_Name): replace bogus test for presence of
8788         Corresponding_Remote_Type with correct test on Ekind.
8789         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
8790         of calls to Corresponding_ Remote_Type (documentation fix).
8792 2014-07-16  Robert Dewar  <dewar@adacore.com>
8794         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
8795         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
8796         where it applies.
8797         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
8798         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
8800 2014-07-16  Robert Dewar  <dewar@adacore.com>
8802         * gnat_ugn.texi: Document binder switch -Ra.
8803         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
8804         (List_Closure_All).
8805         * opt.ads (List_Closure_All): New switch.
8806         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
8807         List_Closure_All.
8809 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
8811         * gnat_rm.texi: Minor edits, to make case consistent in names
8812         of types and fields.
8814 2014-07-16  Robert Dewar  <dewar@adacore.com>
8816         * gnat_rm.texi: Document erroneous mixing of thin pointers and
8817         unrestricted access
8818         * gnat_ugn.texi: Add note on size of access types about thin
8819         pointers and the use of attribute Unrestricted_Access.
8821 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8823         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
8824         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
8825         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
8826         machinery to detect tampering on bounded vectors.
8828 2014-07-16  Robert Dewar  <dewar@adacore.com>
8830         * gnat_rm.texi: Document that leading/trailing asterisks are
8831         now implied for the pattern match string for pragma Warnings
8832         and Warning_As_Error.
8833         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
8834         (Analyze_Pragma, case Warning_As_Error): Call
8835         Acquire_Warning_Match_String.
8836         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
8838 2014-07-16  Bob Duff  <duff@adacore.com>
8840         * gnat_ugn.texi: Document need for project file
8841         for --incremental switch for gnat2xml.
8843 2014-07-16  Robert Dewar  <dewar@adacore.com>
8845         * gnat_rm.texi: Fix example of non-packable components in packed
8846         records section.
8848 2014-07-16  Robert Dewar  <dewar@adacore.com>
8850         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
8851         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
8852         upper case in exception messages.
8854 2014-07-16  Robert Dewar  <dewar@adacore.com>
8856         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
8857         is renamed Has_Same_Storage.
8858         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
8859         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
8860         descriptions).
8862 2014-07-16  Robert Dewar  <dewar@adacore.com>
8864         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
8865         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
8867 2014-07-16  Robert Dewar  <dewar@adacore.com>
8869         * gnat_ugn.texi: Add note that integrated
8870         preprocessing cannot be applied to configuration pragma files.
8872 2014-07-16  Yannick Moy  <moy@adacore.com>
8874         * sem_attr.adb (Analyze_Attribute/cases Pred
8875         and Succ): Always enable range check on fixed-point types if
8876         not suppressed for the type.
8878 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8880         * sem_util.adb (State_Has_Enabled_Property):
8881         Account for an external property denoted by an others choice.
8883 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8885         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
8886         * exp_ch7.adb (Process_Declarations): There is no need to check
8887         that a transient object being hooked is controlled as it would
8888         not have been hooked in the first place.
8889         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
8890         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
8891         (Is_Aliased): A renaming of a transient controlled object is
8892         not considered aliasing when it occurs within an expression
8893         with actions.
8894         (Requires_Cleanup_Actions): There is no need to
8895         check that a transient object being hooked is controlled as it
8896         would not have been hooked in the first place.
8897         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
8899 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
8901         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
8902         the outer level of routine Analyze_Aspect_Specifications. Ensure
8903         that the corresponding pragmas of aspects Initial_Condition and
8904         Initializes are inserted after pragma SPARK_Mode.
8906 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8908         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
8909         properly a choice list with more than one choice, where each
8910         is an aggregate denoting a sequence of array indices for a
8911         multidimentional array. For SPARK use.
8913 2014-07-16  Vadim Godunko  <godunko@adacore.com>
8915         * a-coinho-shared.adb (Adjust): Create
8916         copy of internal shared object and element when source container
8917         is locked.
8918         (Copy): Likewise.
8919         (Query_Element): Likewise.
8920         (Update_Element): Likewise.
8921         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
8922         to get reference for empty holder.
8923         (Reference): Likewise.
8925 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8927         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
8928         from Process_Transient_Oject.
8929         * exp_ch4.ads: Ditto.
8930         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
8931         declaration as an action on the topmost enclosing expression,
8932         not on a possibly conditional subexpreession.
8934 2014-07-16  Vadim Godunko  <godunko@adacore.com>
8936         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
8937         Fix parameter mode of Update_Element.
8939 2014-07-16  Robert Dewar  <dewar@adacore.com>
8941         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
8942         reformatting.
8944 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8946         * a-cohase.ads: Type Iterator must be controlled, so that the
8947         tampering bit is properly set through an iteration.
8948         * a-cohase.adb: Add Finalize operation for type Iterator.
8950 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8952         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
8953         tampering checks.
8955 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8957         * a-coinho-shared.adb: Fix spurious accessibility check.
8959 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
8961         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
8963 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8965         PR ada/61505
8966         * gnat_rm.texi: Fix errors with makeinfo 5.1.
8968 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
8970         PR ada/61505
8971         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
8973 2014-06-13  Yannick Moy  <moy@adacore.com>
8975         * exp_attr.adb: Fix typo in comment.
8976         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
8977         checking in GNATprove_Mode.
8979 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8981         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
8983 2014-06-13  Robert Dewar  <dewar@adacore.com>
8985         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
8986         reformatting.
8988 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8990         * sem_prag.adb (Analyze_Pragma): Add local
8991         variable Missing_Parentheses. Emit an error when a state
8992         declaration with options appears without parentheses. Add a
8993         guard to prevent a bogus error when a state declaration may be
8994         interpreted as an option if a previous declaration with options
8995         was not parenthesized.
8997 2014-06-13  Robert Dewar  <dewar@adacore.com>
8999         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
9000         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
9001         * checks.ads (Alignment_Warnings_Record): New type.
9002         (Alignment_Warnings): New table
9003         (Validate_Alignment_Check_Warnings): New procedure.
9004         * errout.adb (Delete_Warning_And_Continuations): New procedure
9005         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
9006         Warnings_Treated_As_Errors (Finalize): Minor reformatting
9007         * errout.ads (Warning_Msg): New variable
9008         (Delete_Warning_And_Continuations): New procedure
9009         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
9010         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
9012 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9014         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
9016 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9018         * errout.adb (SPARK_Msg_N): New routine.
9019         (SPARK_Msg_NE): New routine.
9020         * errout.ads Add a section on SPARK-related error routines.
9021         (SPARK_Msg_N): New routine.
9022         (SPARK_Msg_NE): New routine.
9023         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
9024         pragma Abstract_State is always inserted after SPARK_Mode.
9025         (Insert_After_SPARK_Mode): New routine.
9026         * sem_prag.adb (Analyze_Abstract_State,
9027         Analyze_Constituent, Analyze_External_Property,
9028         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
9029         Analyze_Global_List, Analyze_Initialization_Item,
9030         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
9031         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
9032         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
9033         Analyze_Refined_Global_In_Decl_Part,
9034         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
9035         Check_Aspect_Specification_Order, Check_Constituent_Usage,
9036         Check_Declaration_Order, Check_Dependency_Clause,
9037         Check_Duplicate_Mode, Check_Duplicate_Option,
9038         Check_Duplicate_Property, Check_External_Properties,
9039         Check_External_Property, Check_Function_Return,
9040         Check_Matching_Constituent, Check_Matching_State,
9041         Check_Mode_Restriction_In_Enclosing_Context,
9042         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
9043         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
9044         Has_Extra_Parentheses, Inconsistent_Mode_Error,
9045         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
9046         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
9047         Report_Unrefined_States, Report_Unused_Constituents,
9048         Report_Unused_States, Role_Error, Usage_Error):
9049         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
9050         to report semantic errors only when SPARK_Mode is on.
9051         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
9052         pragma Depends explicitly, this is now done by the analysis.
9053         (Analyze_Global_In_Decl_List): Do not check the syntax of
9054         pragma Global explicitly, this is now done by the analysis.
9055         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
9056         pragma Initializes explicitly, this is now done by the analysis.
9057         (Analyze_Part_Of): Do not check the syntax of the encapsulating
9058         state, this is now done by the analysis.
9059         (Analyze_Pragma): Do
9060         not check the syntax of a state declaration, this is now done
9061         by the analysis.
9062         (Analyze_Refined_Depends_In_Decl_Part): Do not
9063         check the syntax of pragma Refined_Depends explicitly, this is now
9064         done by the analysis.
9065         (Analyze_Refined_Global_In_Decl_Part): Do
9066         not check the syntax of pragma Refined_Global explicitly, this is
9067         now done by the analysis.
9068         (Analyze_Refined_State_In_Decl_Part):
9069         Do not check the syntax of pragma Refined_State explicitly, this
9070         is now done by the analysis.
9071         (Check_Dependence_List_Syntax): Removed.
9072         (Check_Global_List_Syntax): Removed.
9073         (Check_Initialization_List_Syntax): Removed.
9074         (Check_Item_Syntax): Removed.
9075         (Check_Missing_Part_Of): Do not consider items from an instance.
9076         (Check_Refinement_List_Syntax): Removed.
9077         (Check_State_Declaration_Syntax): Removed.
9078         (Collect_Global_List): Do not raise Program_Error when the input is
9079         malformed.
9080         (Process_Global_List): Do not raise Program_Error when the input
9081         is malformed.
9082         * sem_ch13.adb: Minor reformatting.
9084 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9086         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
9087         that is an interface definition with an interface list.
9088         (Process_Full_View): Move error message on missmatched interfaces
9089         between views to the declaration of full view, for clarity.
9090         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
9091         for clarity.
9093 2014-06-13  Robert Dewar  <dewar@adacore.com>
9095         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
9096         reason to Overflow.
9098 2014-06-13  Robert Dewar  <dewar@adacore.com>
9100         * makeutl.adb: Minor reformatting.
9102 2014-06-13  Gail Schenker  <schenker@adacore.com>
9104         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
9105         associated flag (d.z), no longer needed.
9107 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9109         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
9110         Export aspects, do not check whether a corresponding Convention
9111         aspect has been specified. Convention is optional in Ada2012,
9112         and defaults to Convention_Ada.
9114 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9116         * checks.adb (Apply_Address_Clause_Check): Only issue the new
9117         warning if the propagation warning is issued.
9119 2014-06-13  Thomas Quinot  <quinot@adacore.com>
9121         * exp_ch4.adb: Minor reformatting.
9123 2014-06-13  Robert Dewar  <dewar@adacore.com>
9125         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
9126         Handle float range check case (Expand_N_Attribute_Reference,
9127         case Succ): Handle float range check case.
9128         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
9129         range check case.
9131 2014-06-13  Vincent Celier  <celier@adacore.com>
9133         * makeutl.ads (Compute_Builder_Switches): Change name of
9134         parameter Root_Environment to Env.
9135         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
9136         Env parameter of procedure Get_Or_Create_Configuration_File.
9137         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
9138         of new parameter Env.
9139         * prj-conf.ads (Locate_Runtime): New parameter Env of type
9140         Prj.Tree.Environment.
9142 2014-06-13  Robert Dewar  <dewar@adacore.com>
9144         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
9146 2014-06-13  Robert Dewar  <dewar@adacore.com>
9148         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
9149         reformatting.
9150         * sem_attr.adb: Minor code reformatting and simplification.
9151         * checks.adb: Fix minor typo.
9153 2014-06-13  Emmanuel Briot  <briot@adacore.com>
9155         * g-comlin.adb (Get_Argument): fix expansion
9156         of command line arguments (e.g. "*.adb") when using a custom
9157         parser. The parser was not passed to the recursive call, and
9158         thus we were trying to do the expansion on the default command
9159         line parser.
9161 2014-06-13  Thomas Quinot  <quinot@adacore.com>
9163         * exp_ch9.adb: Minor reformatting.
9165 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9167         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
9168         To determine whether the attribute should be expanded, examine
9169         whether the enclosing postcondition pragma is to be checked,
9170         rather than using the internal flag Assertions_Enabled.
9172 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
9174         * gnat_rm.texi: Minor fixes.
9175         * gnat_ugn.texi: Added a missing "@itemize".
9177 2014-06-13  Robert Dewar  <dewar@adacore.com>
9179         * debug.adb: Remove -gnatd.1 flag documentation.
9180         * layout.adb (Layout_Type): Remove special handling of size
9181         for anonymous access type.
9182         * sem_ch3.adb (Replace_Type): Remove special handling of size
9183         for anonymous access type.
9185 2014-06-13  Robert Dewar  <dewar@adacore.com>
9187         * debug.adb: Document debug flag -gnatd.1.
9188         * layout.adb (Layout_Type): Size change for anonymous access
9189         types under -gnatd.1.
9190         * sem_ch3.adb (Replace_Type): Size change for anonymous access
9191         types under -gnatd.1.
9193 2014-06-13  Robert Dewar  <dewar@adacore.com>
9195         * layout.adb (Layout_Type): Anonymous access types designating
9196         unconstrained arrays are always thin pointers.
9197         * sem_ch3.adb (Replace_Type): Anonymous access types designating
9198         unconstrained arrays are always thin pointers.
9200 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9202         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
9203         to resolve the prefix of an attribute that is an entity name
9204         and may be a parameterless call.  Minor code reorganization.
9206 2014-06-13  Robert Dewar  <dewar@adacore.com>
9208         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
9209         Removed.
9210         * opt.ads (Compiler_Unit): New flag.
9211         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
9212         for null statement sequence (not allowed in compiler unit).
9213         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
9214         parsing.
9215         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
9216         calling sequence.
9217         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
9218         Check_Compiler_Unit.
9219         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
9220         Check_Compiler_Unit (this construct is not allowed in compiler
9221         units).
9222         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
9223         Set Opt.Compiler_Unit.
9225 2014-06-13  Geert Bosch  <bosch@adacore.com>
9227         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
9228         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
9229         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
9231 2014-06-13  Robert Dewar  <dewar@adacore.com>
9233         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
9235 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9237         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
9238         types in SPARK as it is poorly placed and poorly formulated. The
9239         check was flagging ALL volatile entities as illegal in SPARK.
9240         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
9241         types as illegal in SPARK.
9243 2014-06-13  Robert Dewar  <dewar@adacore.com>
9245         * sem_cat.adb: Minor reformatting.
9247 2014-06-13  Yannick Moy  <moy@adacore.com>
9249         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
9251 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
9253         * gnat_rm.texi: Add detail on SPARK_05 restriction.
9255 2014-06-13  Bob Duff  <duff@adacore.com>
9257         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
9258         Add assertions requiring the secondary stack to be initialized.
9259         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
9260         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
9261         secondary stack is initialized before calling Init_Tasking_Soft_Links,
9262         by adding pragmas Elaborate_Body.
9264 2014-06-13  Thomas Quinot  <quinot@adacore.com>
9266         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
9267         kludge disabling new legality check.
9269 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9271         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
9272         volatile types.
9273         (Freeze_Type): Volatile types are now illegal in SPARK.
9275 2014-06-13  Robert Dewar  <dewar@adacore.com>
9277         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
9278         * gnat_rm.texi: Document aspect Thread_Local_Storage.
9280 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9282         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
9283         value is a temporary that renames an aggregate is legal in a
9284         preelaborated unit. Illegalities, if any will be detected in
9285         the aggregate components.
9287 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
9289         * einfo.ads: Minor reformatting an comment expansion.
9291 2014-06-13  Robert Dewar  <dewar@adacore.com>
9293         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
9294         Tbuild.
9295         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
9296         Back_End.
9297         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
9298         * sem_warn.adb: Minor reformatting.
9300 2014-06-13  Doug Rupp  <rupp@adacore.com>
9302         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
9303         files with rfm=udf.
9305 2014-06-13  Yannick Moy  <moy@adacore.com>
9307         * sem_warn.adb (Check_Unset_References): Take
9308         case of Refined_Post into account in Within_Postcondition check.
9310 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
9312         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
9313         SPARK.
9315 2014-06-13  Yannick Moy  <moy@adacore.com>
9317         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
9318         Aspect_Export): Consider that variables may be set outside the program.
9320 2014-06-13  Robert Dewar  <dewar@adacore.com>
9322         * back_end.adb (Make_Id): New function.
9323         (Make_SC): New function.
9324         (Set_RND): New procedure.
9325         * back_end.ads (Make_Id): New function.
9326         (Make_SC): New function.
9327         (Set_RND): New procedure.
9328         * einfo.ads: Minor comment updates.
9329         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
9330         * gnat1drv.adb (Gnat1drv): New calling sequence for
9331         Get_Target_Parameters.
9332         (Gnat1drv): Move Atree.Initialize here from Frontend.
9333         * targparm.adb (Get_Target_Parameters): New calling
9334         sequence (Get_Target_Parameters): Handle pragma Restriction
9335         (No_Dependence,..)
9336         * targparm.ads (Get_Target_Parameters): New calling sequence.
9338 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
9340         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
9341         loop if the pragma does not come from source, so that an implicit
9342         pragma Import only applies to the first declaration, avoiding
9343         possible conflicts with earlier explicit and implicit declarations
9344         due to multiple Provide_Shift_Operators pragmas.
9345         (Set_Imported): Remove previous fix that bypassed pragma duplication
9346         error.
9347         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
9348         of Provide_Shift_Operators.
9350 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
9352         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
9353         string pointer directly to set_decl_section_name.
9355 2014-06-11  Robert Dewar  <dewar@adacore.com>
9357         * sem_ch13.adb: Minor reformatting.
9359 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9361         * sem_prag.adb (Check_Clause_Syntax): Add new
9362         local variable Outputs. Account for the case where multiple
9363         output items appear as an aggregate.
9365 2014-06-11  Robert Dewar  <dewar@adacore.com>
9367         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
9368         with ?j? not ??.
9370 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9372         * einfo.ads: Minor reformatting.
9374 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9376         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
9377         new variable First_Node. Update the position after all insertions have
9378         taken place to First_Node.
9380 2014-06-11  Robert Dewar  <dewar@adacore.com>
9382         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
9383         * layout.adb (Layout_Type): Remove test of -gnatd.1.
9385 2014-06-11  Robert Dewar  <dewar@adacore.com>
9387         * sem_ch13.adb: Minor reformatting.
9389 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9391         * sem_prag.adb (Check_Clause_Syntax): Add new
9392         local variable Outputs. Account for the case where multiple
9393         output items appear as an aggregate.
9395 2014-06-11  Robert Dewar  <dewar@adacore.com>
9397         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
9398         with ?j? not ??.
9400 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9402         * einfo.ads: Minor reformatting.
9404 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9406         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
9407         new variable First_Node. Update the position after all insertions have
9408         taken place to First_Node.
9410 2014-06-11  Robert Dewar  <dewar@adacore.com>
9412         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
9413         * layout.adb (Layout_Type): Remove test of -gnatd.1.
9415 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9417         * freeze.ads: Minor reformatting.
9418         * checks.adb (Determine_Range): Do not attempt to determine
9419         the range of a deferred constant whose full view has not been
9420         seen yet.
9421         * sem_res.adb (Resolve): Remove undesirable guard against
9422         resolving expressions from expression functions.
9424 2014-06-11  Robert Dewar  <dewar@adacore.com>
9426         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
9427         access types.
9428         * layout.adb (Layout_Type): Make anonymous access types for
9429         subprogram formal types and return types always thin. For now
9430         only enabled if -gnatd.1 set.
9432 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9434         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
9435         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
9436         subprogram must be a null procedure.
9438 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9440         * sem_prag.adb (Analyze_Input_Item): Allow formal
9441         parameters to appear as input_items in an initialization_list
9442         of pragma Initializes. Encapsulation now applies to states and
9443         variables only (as it should). Add RM references to key errors.
9444         * sem_prag.adb (Set_Imported): Suppress errors
9445         about preceding Imports when the pragma does not come from source,
9446         which can happen through use of pragma Provide_Shift_Operators.
9448 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9450         * sem_ch3.adb: Minor reformatting.
9451         * einfo.ads (Full_View): Minor comment update.
9453 2014-06-11  Robert Dewar  <dewar@adacore.com>
9455         * einfo.adb (Is_Independent): New flag.
9456         * einfo.ads (Is_Independent): New flag.
9457         (Has_Independent_Components): Clean up and fix comments.
9458         * sem_prag.adb (Fix_Error): Deal with changing argument
9459         [of] to entity [for].
9460         (Analyze_Pragma, case Independent): Set Is_Independent flag
9461         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
9462         in all components of specified record.
9464 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9466         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
9467         Set proper Etype on bounds of dummy type created for analysis
9468         of the generic.
9470 2014-06-11  Robert Dewar  <dewar@adacore.com>
9472         * debug.adb: Minor comment fix (add missing section of dot
9473         numeric flags).
9475 2014-06-11  Robert Dewar  <dewar@adacore.com>
9477         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
9478         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
9479         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
9480         * errout.adb (Output_Messages): Avoid duplicate output for
9481         library level instance.
9482         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
9483         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
9484         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
9485         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
9486         accomodate largest modulus value.
9487         * gnat_ugn.texi: Minor updates.
9489 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9491         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
9492         load body of generic package or its parent, if body is optional
9493         and the unit does not require a body.
9495 2014-06-11  Robert Dewar  <dewar@adacore.com>
9497         * gnat_rm.texi: Document System.Unsigned_Types.
9498         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
9499         * s-unstyp.ads: Update comments (this is now user available unit).
9501 2014-06-11  Robert Dewar  <dewar@adacore.com>
9503         * make.adb, sem_res.adb: Minor reformatting.
9505 2014-06-11  Thomas Quinot  <quinot@adacore.com>
9507         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
9508         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
9509         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
9510         Preelaborate_05 to just Preelaborate in runtime units, and similarly
9511         change Pure_05 to just Pure.
9513 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9515         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
9516         analysis if error has been posted on subprogram body.
9518 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9520         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
9521         rule given in RM 13.1 (8/1) for operational attributes to stream
9522         attributes: the attribute must apply to a first subtype. Fixes
9523         missing errors in ACATS test bdd2004.
9525 2014-06-11  Robert Dewar  <dewar@adacore.com>
9527         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
9528         record type if restriction No_Implicit_Conditionals is active.
9529         (Expand_N_Object_Declaration): Don't allow default initialization
9530         for variant record type if restriction No_Implicit_Condition is active.
9531         (Build_Variant_Record_Equality): Don't build for variant
9532         record type if restriction No_Implicit_Conditionals is active.
9533         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
9534         No_Implicit_Conditionals.
9535         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
9537 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
9539         * i-cstrin.ads: Update comments.
9541 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9543         * sem_res.adb (Resolve_Selected_Component): Handle properly a
9544         selected component whose prefix is overloaded, when none of the
9545         interpretations matches the expected type.
9547 2014-06-11  Bob Duff  <duff@adacore.com>
9549         * make.adb (Wait_For_Available_Slot): Give a more
9550         informative error message; if the ALI file is not found, print
9551         the full path of what it's looking for.
9553 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
9555         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
9556         option to specify the result file encoding.
9558 2014-06-11  Robert Dewar  <dewar@adacore.com>
9560         * errout.ads, sem_ch12.adb: Minor reformatting.
9561         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
9562         * lib-xref.adb: Minor reformatting.
9563         * restrict.adb: Minor code reorganization (put routines in
9564         alpha order).
9566 2014-06-11  Yannick Moy  <moy@adacore.com>
9568         * einfo.ads: Minor typo in comment
9570 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9572         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
9573         formal private types and private type extensions, to indicate
9574         variable in a generic unit whose uninitialized use suggest that
9575         actual type should be fully initialized.
9576         Needs_Initialized_Actual:  removed, functionaity replaced by
9577         the above.
9578         * lib-xref.adb (Generate_Reference): Generate a reference for
9579         variables of a formal type when the unit is not the main unit,
9580         to enable appropriate warnings in an instance.
9581         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
9582         of variable in a generic unit that suggests that actual type
9583         should be full initialized.
9584         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
9585         and do not emot warning, which now only appears in an instance.
9587 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
9589         * gnat_ugn.texi: Fix minor typo.
9591 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
9593         * sem_ch3.adb Add with and use clause for Sem_Ch10.
9594         (Analyze_Declarations): Code reformatting. Analyze the contract
9595         of a subprogram body stub at the end of the declarative region.
9596         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
9597         now a variable. Do not process the body if its contract is not
9598         available. Account for subprogram body stubs when extracting
9599         the corresponding spec.
9600         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
9601         on usage.
9602         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
9603         New routine.
9604         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
9605         Account for subprogram body stubs when extracting the
9606         corresponding spec.
9607         (Analyze_Global_In_Decl_List):
9608         Account for subprogram body stubs when extracting the
9609         corresponding spec.
9610         (Analyze_Refined_Depends_In_Decl_Part):
9611         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
9612         of the related body. Spec_Is now a variable. Account for
9613         subprogram body stubs when extracting the corresponding spec.
9614         (Analyze_Refined_Global_In_Decl_Part): Use
9615         Find_Related_Subprogram_Or_Body to retrieve the declaration
9616         of the related body. Spec_Is now a variable. Account for
9617         subprogram body stubs when extracting the corresponding spec.
9618         (Collect_Subprogram_Inputs_Output): Account for subprogram body
9619         stubs when extracting the corresponding spec.
9621 2014-06-11  Vincent Celier  <celier@adacore.com>
9623         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
9624         -lgnarl or -lgnat.
9626 2014-06-11  Robert Dewar  <dewar@adacore.com>
9628         * debug.adb: Add debug flag -gnatd.q.
9629         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
9630         -gnatd.q set.
9631         * styleg.adb (Check_Xtra_Parens): Message should be a style
9632         message.
9633         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
9634         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
9635         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
9636         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
9638 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
9640         * gnat_rm.texi: Revised chapter on Implementation Defined
9641         Characteristics.
9643 2014-06-11  Geert Bosch  <bosch@adacore.com>
9645         * s-exctab.adb: avoid race conditions in exception registration.
9647 2014-06-11  Robert Dewar  <dewar@adacore.com>
9649         * errout.adb (Warn_Insertion): New function.
9650         (Error_Msg): Use Warn_Insertion and Prescan_Message.
9651         (Error_Msg_Internal): Set Info field of error object.
9652         (Error_Msg_NEL): Use Prescan_Message.
9653         (Set_Msg_Text): Don't store info: at start of message.
9654         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
9655         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
9656         * errout.ads: Document new ?$? and >$> insertion sequences
9657         Document use of "(style)" and "info: "
9658         * erroutc.adb (dmsg): Print several missing fields
9659         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
9660         Deal with new tagging of info messages
9661         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
9662         Add field Info (Prescan_Message): New procedure, this procedure
9663         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
9664         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
9665         sem_elab.adb: Follow new rules for info message (info belongs
9666         only at the start of a message, and only in the first message,
9667         not in any of the continuations).
9668         * gnat_ugn.texi: Document full set of warning tags.
9670 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
9672         * sem_util.adb: Minor typo fix.
9674 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
9676         * sem_warn.adb (Check_References): Do not emit spurious warnings
9677         on uninitialzed variable of a formal private type if variable
9678         is not read.
9680 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
9682         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
9683         set_decl_section_name accessor.
9685 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
9687         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
9688         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
9689         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
9691 2014-05-21  Robert Dewar  <dewar@adacore.com>
9693         * layout.adb: Minor reformatting.
9694         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
9695         dummy procedure ip.
9697 2014-05-21  Robert Dewar  <dewar@adacore.com>
9699         * restrict.ads (Implementation_Restriction): Add entry for
9700         No_Fixed_IO.
9701         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
9702         Ada.[Wide_[Wide_]Text_IO.
9703         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
9704         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
9705         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
9706         Wide_Wide_Value if restriction No_Fixed_IO is set.
9707         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
9709 2014-05-21  Robert Dewar  <dewar@adacore.com>
9711         * gnatcmd.adb: Minor error msg changes (no upper case letter
9712         at start).
9713         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
9714         reformatting.
9716 2014-05-21  Robert Dewar  <dewar@adacore.com>
9718         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
9719         via generic formals.
9720         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
9721         -gnatd.G is set.
9723 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9725         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
9726         more accurately describe that this subprogram needs to come into
9727         play also in cases where no byte swapping is involved, because
9728         it also takes care of some required shifts (left-justification
9729         of values).
9731 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9733         * freeze.adb (Check_Component_Storage_Order): Indicate whether
9734         a Scalar_Storage_Order attribute definition is present for the
9735         component's type.
9736         (Freeze_Record_Type): Suppress junk warnings
9737         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
9738         definitions.
9740 2014-05-21  Robert Dewar  <dewar@adacore.com>
9742         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
9743         to Kill_Elaboration_Checks.
9745 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
9747         * layout.adb (Assoc_Add): Suppress the optimization of the (E
9748         - C1) + C2 case, when the expression type is unsigned and C1 <
9749         C2, to avoid creating a negative literal when folding.
9751 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
9753         * freeze.adb (Freeze_Record_Type): Update the use of
9754         Is_SPARK_Volatile.
9755         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
9756         Is_SPARK_Volatile.
9757         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
9758         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
9759         of Is_SPARK_Volatile.
9760         (Analyze_Loop_Parameter_Specification):
9761         Update the use of Is_SPARK_Volatile.
9762         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
9763         formal parameter when its type is volatile.
9764         * sem_prag.adb (Analyze_Global_Item): Update the use of
9765         Is_SPARK_Volatile.
9766         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
9767         determines whether an entity is a volatile source SPARK object.
9768         * sem_util.adb (Has_Enabled_Property): Accout for external
9769         properties being set on objects other than abstract states
9770         and variables. An example would be a formal parameter.
9771         (Is_SPARK_Volatile): New routine.
9772         (Is_SPARK_Volatile_Object):
9773         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
9774         when checking entities and/or types.
9775         * sem_util.ads (Is_SPARK_Volatile): New routine.
9777 2014-05-21  Robert Dewar  <dewar@adacore.com>
9779         * sem_warn.adb: Minor fix to warning messages (use ?? instead
9780         of ?).
9782 2014-05-21  Vincent Celier  <celier@adacore.com>
9784         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
9785         switch --version and --help.
9787 2014-05-21  Robert Dewar  <dewar@adacore.com>
9789         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
9791 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9793         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
9794         iterator variable when the domain of iteration is a formal
9795         container and this is an element iterator.
9797 2014-05-21  Bob Duff  <duff@adacore.com>
9799         * sem_ch12.adb: Minor reformatting.
9801 2014-05-21  Robert Dewar  <dewar@adacore.com>
9803         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
9805 2014-05-21  Robert Dewar  <dewar@adacore.com>
9807         * sem_elab.adb: Minor reformatting.
9808         * s-taprop.ads: Minor comment fix.
9809         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
9810         Kill_Elaboration_Checks.
9811         * errout.adb, erroutc.adb: Minor reformatting.
9813 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9815         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
9816         component. No byte swapping occurs, but this procedure also takes
9817         care of appropriately justifying the argument.
9819 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
9821         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
9822         New routine.
9823         (Analyze_Subprogram_Body_Helper): Move the
9824         analysis of aspect specifications and the processing of the
9825         subprogram body contract after inlining has taken place.
9826         (Diagnose_Misplaced_Aspect_Specifications): Removed.
9828 2014-05-21  Javier Miranda  <miranda@adacore.com>
9830         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
9832 2014-05-21  Robert Dewar  <dewar@adacore.com>
9834         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
9835         continuations any more.
9837 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9839         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
9840         present in formal_Private_Definitions and on private extension
9841         declarations of a formal derived type. Set when the use of the
9842         formal type in a generic suggests that the actual should be a
9843         fully initialized type.
9844         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
9845         to indicate that an entity of a generic type has default
9846         initialization, and that the corresponing actual type in any
9847         subsequent instantiation should be fully initialized.
9848         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
9849         to emit a warning if the actual for a generic type on which
9850         Needs_Initialized_Actual is set is not a fully initialized type.
9852 2014-05-21  Robert Dewar  <dewar@adacore.com>
9854         * sem_elab.adb, prj-dect.adb: Minor reformatting.
9856 2014-05-21  Robert Dewar  <dewar@adacore.com>
9858         * erroutc.ads: Minor comment addition.
9860 2014-05-21  Robert Dewar  <dewar@adacore.com>
9862         * errout.ads: Add documentation for use of >*> tag.
9863         * restrict.adb: Make sure we use >*> tag for restriction warnings.
9865 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
9867         * debug.adb: Add case of illegal overriding_indicator for a
9868         protected subprogram body to description of -gnatd.E switch.
9869         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
9870         for cases of giving overriding_indicators on protected subprogram
9871         bodies, but change this to a warning if -gnatd.E is enabled. No
9872         longer give a style warning about missing indicators on protected
9873         subprogram bodies.
9875 2014-05-21  Robert Dewar  <dewar@adacore.com>
9877         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
9878         sem_elab.ads: Minor reformatting.
9879         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
9880         parameter optional.
9882 2014-05-21  Pascal Obry  <obry@adacore.com>
9884         * prj-dect.adb: Allow package Install in aggregate project.
9886 2014-05-21  Robert Dewar  <dewar@adacore.com>
9888         * sem_ch13.adb (Analyze_Aspect_Specifications):
9889         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
9890         * sem_prag.adb: Minor comment improvements.
9892 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9894         * sem_ch12.adb (Install_Body): When checking whether freezing of
9895         instantiation must be delayed, verify that the common enclosing
9896         subprogram to generic and instance is in fact an overloadable
9897         entity.
9899 2014-05-21  Vincent Celier  <celier@adacore.com>
9901         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
9902         mains with the same name and fail if there is more than one.
9903         * prj.ads, prj.adb (Find_All_Sources): New function
9905 2014-05-21  Robert Dewar  <dewar@adacore.com>
9907         * sem_ch13.adb: Minor reformatting.
9908         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
9909         * sem_prag.adb: Minor error message improvement.
9911 2014-05-21  Yannick Moy  <moy@adacore.com>
9913         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
9914         (Enclosing_Subprogram_Or_Package): Only return a library-level
9915         package.
9917 2014-05-21  Javier Miranda  <miranda@adacore.com>
9919         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
9920         to the full view of the parent type when processing a derived type
9921         which is the full view of a private type not defined in a generic
9922         unit which is derived from a private type with discriminants
9923         whose full view is a non-tagged record type.
9925 2014-05-21  Javier Miranda  <miranda@adacore.com>
9927         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
9928         Complete previous patch.
9930 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9932         PR ada/9535
9933         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
9934         Provide a behaviour more consistent with underlying datagram
9935         socket: do not attempt to loop over Send_Socket/Receive_Socket
9936         iterating along the buffer.
9938 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
9940         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
9941         or a tagged type is not labelled as volatile. Ensure that a
9942         non-volatile type has no volatile components.
9943         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
9944         Obj_Typ. Code reformatting.  Ensure that a discriminated or
9945         tagged object is not labelled as volatile.
9946         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
9947         pragma Volatile applies to a full type declaration or an object
9948         declaration when SPARK mode is on.
9950 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
9952         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
9953         providing options needed for compiling the argument source for
9954         the situation when a project file can be used as a tool parameter.
9956 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
9958         * gnat_rm.texi: Minor typo fix.
9960 2014-05-21  Robert Dewar  <dewar@adacore.com>
9962         * stand.adb (Tree_Read): Read missing entities.
9963         (Tree_Write): Write missing entities.
9965 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
9967         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
9968         section in gnatmetric chapter.
9970 2014-05-21  Robert Dewar  <dewar@adacore.com>
9972         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
9973         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
9974         post-call copy write back (see detailed comment in code).
9975         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
9976         Exp_Ch6.
9977         * tbuild.ads: Minor reformatting.
9979 2014-05-21  Robert Dewar  <dewar@adacore.com>
9981         * stand.ads: Add warning about adding new entities and
9982         Tree_Read/Tree_Write.
9984 2014-05-21  Robert Dewar  <dewar@adacore.com>
9986         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
9987         references to restricted entities within the units in which they
9988         are declared.
9990 2014-05-21  Robert Dewar  <dewar@adacore.com>
9992         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
9993         simplify the needed test, and also deal with failure to catch
9994         situations with non-standard names.
9995         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
9996         (Source_File_Is_Subunit): Removed, no longer used.
9998 2014-05-21  Javier Miranda  <miranda@adacore.com>
10000         * exp_ch4.adb
10001         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
10002         renaming of an access to interface object there is no need to
10003         generate extra code to reference the tag.
10005 2014-05-21  Robert Dewar  <dewar@adacore.com>
10007         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
10008         Warnings (Off, string).
10010 2014-05-21  Robert Dewar  <dewar@adacore.com>
10012         * osint.adb: Fix three error messages to say invalid instead
10013         of erroneous.
10014         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
10015         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
10016         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
10018 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10020         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
10021         sem_ch9.ads: Move discriminant manipulation routines for analysis of
10022         aspect specifications from sem_ch9 to sem_ch13, where they belong.
10024 2014-05-21  Robert Dewar  <dewar@adacore.com>
10026         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
10027         Clearly document -gnatyg (GNAT style switches).
10028         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
10029         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
10030         available for VMS after all.
10031         * warnsw.adb: Reorganize to eliminate duplicated code
10032         (Restore_Warnings): Add a couple of missing entries
10033         (Save_Warnings): Add a couple of missing entries.
10034         * warnsw.ads: Add missing entries to Warning_Record (not clear
10035         what the impact is).
10037 2014-05-21  Robert Dewar  <dewar@adacore.com>
10039         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
10040         warning) case.
10041         * errout.ads: Document ?*? (restriction warning) insertion.
10042         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
10043         warning) case.
10044         * erroutc.ads: Document use of * for restriction warning tag.
10045         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
10047 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10049         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
10050         make discriminants immediately visible when analyzing an aspect
10051         of a subtype declaration.
10052         (Uninstall_Discriminants): Do not apply to the entity in a
10053         subtype declaration.
10055 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10057         * sem_util.adb: Code clean up.
10059 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
10061         * gnat_ugn.texi: Document -Werror.
10063 2014-05-21  Bob Duff  <duff@adacore.com>
10065         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
10066         This was returning False if the Object is a constant view. Fix
10067         it to return True in that case, because it might be a view of
10068         a variable.
10069         (Has_Discriminant_Dependent_Constraint): Fix latent
10070         bug; this function was crashing when passed a discriminant.
10072 2014-05-21  Robert Dewar  <dewar@adacore.com>
10074         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
10075         * s-arit64.adb: Minor code reorganization.
10076         * sem_prag.adb: Minor comment fix (remove erroneous use of the
10077         term erroneous).
10079 2014-05-21  Robert Dewar  <dewar@adacore.com>
10081         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
10082         computing new table size.
10084 2014-05-21  Robert Dewar  <dewar@adacore.com>
10086         * einfo.ads: Minor reformatting.
10087         * ceinfo.adb: Deal with slight format change of einfo.ads.
10089 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10091         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
10092         implementation of the SPARK 2014 rule concerning private child
10093         units (LRM 7.2.6).
10095 2014-05-21  Vincent Celier  <celier@adacore.com>
10097         * makeusg.adb: Add switch -d to usage.
10099 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
10101         * sem_util.adb (Find_Actual): If an actual that is the prefix
10102         of an enclosing prefixed call has been rewritten, use Nkind
10103         and Sloc to identify the corresponding formal, when handling
10104         deferred references.
10106 2014-05-21  Robert Dewar  <dewar@adacore.com>
10108         * debug.adb: Document -gnatd.z switch.
10109         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
10111 2014-05-21  Robert Dewar  <dewar@adacore.com>
10113         * einfo.ads (Can_Never_Be_Null): Minor comment update.
10114         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
10115         error message change.
10116         * s-arit64.adb ("abs"): New function. Use expression functions
10117         for the simple conversions and arithmetic.
10119 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10121         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
10122         set function_start_locus.
10124 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10126         * utils.c (gnat_write_global_declarations): Adjust the flags put on
10127         dummy_global.
10129 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10131         * gcc-interface/decl.c (change_qualified_type): New static function.
10132         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
10133         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
10134         <E_Array_Subtype>: Likewise.
10135         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
10136         (gnat_to_gnu_component_type): Likewise.
10137         (gnat_to_gnu_param): Likewise.
10139 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10141         * fe.h (Set_Present_Expr): Move around.
10142         (End_Location): New macro.
10143         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
10145 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10147         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
10148         lieu of more verbose construct.
10149         * gcc-interface/trans.c (Call_to_gnu): Likewise.
10150         (gnat_to_gnu): Likewise.  Remove obsolete code.
10152 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
10154         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
10155         consider that regular packed arrays can never be superflat.
10157 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
10159         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
10160         annotation.
10161         * gcc-interface/decl.c (annotate_value): Adjust.
10162         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
10163         (push_range_check_info): Likewise.
10164         (Loop_Statement_to_gnu): Likewise.
10165         (Subprogram_Body_to_gnu): Likewise.
10166         (Compilation_Unit_to_gnu): Likewise.
10167         (start_stmt_group): Likewise.
10168         * gcc-interface/utils.c (init_gnat_utils): Likewise.
10169         (gnat_pushlevel): Likewise.
10170         (maybe_pad_type): Likewise.
10172 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
10174         * seh_init.c: Fix copyright year.
10176 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10178         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
10179         are defined.  Move include windows.h before system.h.
10180         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
10181         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
10183 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
10185         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
10186         to the appropriate type.
10187         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
10188         (pos_to_constructor): Likewise.
10190 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10192         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
10194 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
10195             Mike Stump  <mikestump@comcast.net>
10196             Richard Sandiford  <rdsandiford@googlemail.com>
10198         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
10199         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
10200         (annotate_value): Use wide-int interfaces.
10201         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
10203 2014-04-28  Richard Henderson  <rth@redhat.com>
10205         * gcc-interface/Makefile.in: Support aarch64-linux.
10207 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10209         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
10210         add 'Suffix' parameter and adjust comment.
10211         (Get_External_Name_With_Suffix): Delete.
10212         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
10213         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
10214         'Suffix' parameter.
10215         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
10216         Call Get_External_Name instead of Get_External_Name_With_Suffix.
10217         (Get_Secondary_DT_External_Name): Likewise.
10218         * exp_cg.adb (Write_Call_Info): Likewise.
10219         * exp_disp.adb (Export_DT): Likewise.
10220         (Import_DT): Likewise.
10221         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
10222         parameter with False default.
10223         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
10224         * types.h (Fat_Pointer): Rename into...
10225         (String_Pointer): ...this.  Add comment on interfacing rules.
10226         * fe.h (Compiler_Abort): Adjust for above renaming.
10227         (Error_Msg_N): Likewise.
10228         (Error_Msg_NE): Likewise.
10229         (Get_External_Name): Likewise.  Add third parameter.
10230         (Get_External_Name_With_Suffix): Delete.
10231         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
10232         (create_concat_name): Adjust call to Get_External_Name, remove call to
10233         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
10234         * gcc-interface/trans.c (post_error): Likewise.
10235         (post_error_ne): Likewise.
10236         * gcc-interface/misc.c (internal_error_function): Likewise.
10238 2014-04-28  Richard Biener  <rguenther@suse.de>
10240         PR middle-end/60092
10241         * gcc-interface/utils.c: Define flag_isoc11.
10243 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10245         * gnatvsn.ads (Library_Version): Bump to 4.10.
10247 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
10249         Revert
10250         2014-04-22  Richard Henderson  <rth@redhat.com>
10252         * gcc-interface/Makefile.in: Support aarch64-linux.
10254         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
10256         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
10257         (Error_Msg_N): Likewise.
10258         (Error_Msg_NE): Likewise.
10259         (Get_External_Name_With_Suffix): Likewise.
10260         * types.h (Fat_Pointer): Delete.
10261         (String_Pointer): New type.
10262         (DECLARE_STRING_POINTER): New macro.
10263         * gcc-interface/decl.c (create_concat_name): Adjust.
10264         * gcc-interface/trans.c (post_error): Likewise.
10265         (post_error_ne): Likewise.
10266         * gcc-interface/misc.c (internal_error_function): Likewise.
10268 2014-04-22  Richard Henderson  <rth@redhat.com>
10270         * gcc-interface/Makefile.in: Support aarch64-linux.
10272         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
10273         (__gnat_alternate_stack): Enable for all linux except ia64.
10275 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
10277         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
10278         (Error_Msg_N): Likewise.
10279         (Error_Msg_NE): Likewise.
10280         (Get_External_Name_With_Suffix): Likewise.
10281         * types.h (Fat_Pointer): Delete.
10282         (String_Pointer): New type.
10283         (DECLARE_STRING_POINTER): New macro.
10284         * gcc-interface/decl.c (create_concat_name): Adjust.
10285         * gcc-interface/trans.c (post_error): Likewise.
10286         (post_error_ne): Likewise.
10287         * gcc-interface/misc.c (internal_error_function): Likewise.
10289 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10290             Pierre-Marie de Rodat  <derodat@adacore.com>
10292         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
10293         scalar constant instead of a reference for renaming of scalar literal.
10294         Do not create a new object for constant renaming except for a function
10295         call.  Make sure a VAR_DECL is created for the renaming pointer.
10296         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
10297         (fold_constant_decl_in_expr): New function.
10298         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
10299         For a constant renaming, try to fold a constant DECL in the result.
10300         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
10301         (Identifier_to_gnu): Reference the renamed object of constant renaming
10302         pointers directly.
10303         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
10304         invalidate constant renaming pointers.
10306 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10308         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
10309         (build_vector_type_for_size): New function.
10310         (build_vector_type_for_array): Likewise.
10311         (unchecked_convert): Build an intermediate vector type to convert
10312         from a generic array type to a vector type.
10313         (handle_vector_size_attribute): Reimplement.
10314         (handle_vector_type_attribute): Likewise.
10316 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10318         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
10319         Is_OK_Static_Expression in lieu of Is_Static_Expression to
10320         detect valid arguments.
10322 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10324         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
10326 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
10328         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
10329         (components_to_record): Likewise.
10330         * gcc-interface/utils.c (make_aligning_type): Likewise.
10331         (maybe_pad_type): Likewise.
10332         (finish_record_type): Likewise.
10333         (rest_of_record_type_compilation): Likewise.
10335 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10337         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
10338         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
10339         for Ivdep hint.
10340         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
10341         hint for Loop_Optimize.
10342         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
10343         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
10344         with new Ivdep hint.
10345         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
10346         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
10347         with new Ivdep hint.
10348         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
10350 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10351             Robert Dewar  <dewar@adacore.com>
10353         * opt.ads (Suppress_Back_Annotation): Remove as unused.
10354         * fe.h (Back_Annotate_Rep_Info): Likewise.
10355         (Global_Discard_Names): Likewise.
10356         (List_Representation_Info): Declare.
10357         * types.h (Uint_Minus_1): Likewise.
10358         * repinfo.ads: Document back-annotation change.
10359         * gcc-interface/gigi.h (init_gnat_decl): Declare.
10360         (destroy_gnat_decl): Likewise.
10361         * gcc-interface/decl.c (annotate_value): Do not create the cache of
10362         annotated values here but...
10363         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
10364         in ASIS mode.
10365         (init_gnat_decl): ...here instead.  New function.
10366         (destroy_gnat_decl): Likewise.
10367         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
10368         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
10370 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
10372         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
10373         offset for the field, if any.
10375 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
10376             Svante Signell  <svante.signell@gmail.com>
10378         PR ada/54040
10379         PR ada/59346
10380         * s-osinte-x32.adb: New file.
10381         * s-linux.ads (Time): New section.
10382         * s-linux-alpha.ads (Time): Likewise.
10383         * s-linux-android.ads (Time: Likewise.
10384         * s-linux-hppa.ads (Time): Likewise.
10385         * s-linux-mipsel.ads (Time): Likewise.
10386         * s-linux-sparc.ads (Time): Likewise.
10387         * s-linux-x32.ads (Time): Likewise.
10388         * s-osprim-x32.ads (timespec): Adjust.
10389         (Clock): Likewise.
10390         (To_Timespec): Likewise.
10391         * s-osinte-linux.ads (Time): Define local subtypes for those defined
10392         in System.Linux.
10393         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
10394         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
10395         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
10396         * s-osinte-solaris-posix.ads (timespec): Likewise.
10397         * s-osinte-posix.adb (To_Timespec): Likewise.
10398         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
10400 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10402         PR ada/60411
10403         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
10404         * s-linux-android.ads: New file.
10405         * s-intman-android.adb: Likewise.
10406         * s-osinte-android.ads: Adjust.
10407         * sigtramp-armdroid.c: Likewise.
10408         * sigtramp.h: Add Android support.
10410 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10412         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
10414 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10416         PR ada/60703
10417         * system-linux-alpha.ads: Adjust for Ada 2005.
10418         * system-linux-mips.ads: Likewise.
10419         * system-linux-mips64el.ads: Likewise.
10420         * system-linux-mipsel.ads: Likewise.
10421         * system-linux-s390.ads: Likewise.
10422         * system-linux-s390x.ads: Likewise.
10423         * system-linux-sparc.ads: Likewise.
10424         * system-linux-sparcv9.ads: Likewise.
10425         * system-rtems.ads: Likewise.
10426         * system-vxworks-arm.ads: Likewise.
10428 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
10430         PR ada/39172
10431         * gcc-interface/Makefile.in (target_cpu_default): Revert
10432         2013-10-11 change.
10434 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
10436         PR ada/51483
10437         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
10438         it to set the RM size.  Use directly 'size' for the Esize.
10439         (Create_Back_End_Float_Types): Adjust call to above.
10440         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
10441         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
10442         (Write_Target_Dependent_Values): Adjust comment.
10443         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
10444         deal with it.
10445         (Write_Target_Dependent_Values): Write the precision in lieu of size.
10446         (Initialization): Read the precision in lieu of size and compute the
10447         size from the precision and the alignment.
10448         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
10449         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
10450         types for vector modes, pass the size in addition to the precision.
10452 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
10454         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
10456 2014-03-07  Doug Rupp  <rupp@adacore.com>
10458         PR ada/60411
10459         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
10460         (Support_64_Bit_Divides): Removed, no longer used.
10461         (ZCX_By_Default): Enabled.
10463 2014-02-25  Doug Rupp  <rupp@adacore.com>
10465         * gcc-interface/Makefile.in (arm-linux):
10466         (EH_MECHANISM): Use ARM unwinder (-arm)
10467         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
10468         s-excmac-arm.ads.
10469         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
10470         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
10471         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
10472         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
10473         Add dependencies for sigtramp-armvxw.o.
10475 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10477         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
10479 2014-02-25  Robert Dewar  <dewar@adacore.com>
10481         * rtsfind.adb (Is_RTE): Protect against entity with no scope
10482         field (previously this call blew up on the Standard entity).
10483         * sem_attr.adb (Analyze_Attribute, case Access): Remove
10484         test for No_Abort_Statements, this is now handled in
10485         Set_Entity_With_Checks.
10486         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
10487         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
10488         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
10489         Set_Entity_With_Checks.
10490         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
10491         Add checks for No_Abort_Statements.
10493 2014-02-25  Robert Dewar  <dewar@adacore.com>
10495         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
10496         Check_Restriction is OK.
10498 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10500         * sem_ch3.adb (Process_Full_View): Better error message when
10501         the full view of  a private type without discriminants is an
10502         unconstrained type.
10503         * sem_ch7.adb (Uninstall_Declarations): Ditto.
10505 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10507         * sigtramp-armvxw.c: Also restore r0.
10509 2014-02-25  Robert Dewar  <dewar@adacore.com>
10511         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
10512         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
10513         set unconditionally.
10514         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
10515         any more (Output_Msg_Text): Rewritten with new convention on
10516         output of warnings that are treated as errors.
10517         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
10518         if Warn is False.
10519         * gnat_rm.texi: Updates to documentation on pragma
10520         Warning_As_Error.
10521         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
10522         set Warning_Doc_Switch.
10523         * lib-writ.ads: Add documentation note on ALI file generation
10524         for C.
10525         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
10526         (belongs in Sem).
10527         * sem_attr.adb (Resolve_Attribute, case Access):
10528         Abort_Task'Access violates the No_Abort_Statements restriction.
10529         * sem_res.adb (Resolve_Call): Check restriction
10530         No_Abort_Statements for call to Abort_Task or a renaming of it.
10532 2014-02-25  Robert Dewar  <dewar@adacore.com>
10534         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
10535         type name as index.
10536         * lib.ads: Minor reformatting.
10537         * einfo.ads: Minor reformatting.
10539 2014-02-25  Doug Rupp  <rupp@adacore.com>
10541         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
10542         use Short_Descriptor(S) as the argument passing mechanism.
10544 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10546         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
10548 2014-02-25  Robert Dewar  <dewar@adacore.com>
10550         * atree.ads (Warnings_Treated_As_Errors): New variable.
10551         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
10552         error object (Initialize): Initialize Warnings_As_Errors_Count
10553         (Write_Error_Summary): Include count of warnings treated as errors.
10554         * erroutc.adb (Warning_Treated_As_Error): New function.
10555         (Matches): Function moved to outer level of package.
10556         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
10557         (Warning_Treated_As_Error): New function.
10558         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
10559         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
10560         * opt.ads (Config_Switches_Type): Add entry for
10561         Warnings_As_Errors_Count.
10562         (Warnings_As_Errors_Count): New variable.
10563         (Warnings_As_Errors): New array.
10564         * par-prag.adb: Add dummy entry for Warning_As_Error.
10565         * sem_prag.adb (Analyze_Pragma): Implement new pragma
10566         Warning_As_Error.
10567         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
10569 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10571         * sigtramp.h: Fix minor inaccuracy.
10573 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
10575         * gnat_ugn.texi: Added description of kill command.
10577 2014-02-25  Robert Dewar  <dewar@adacore.com>
10579         * gnat_rm.texi (Address_Clauses): Add a section discussing the
10580         problem of address clauses causing unexpected initialization,
10581         including the effect of Initialize_Scalars.
10583 2014-02-25  Robert Dewar  <dewar@adacore.com>
10585         * errout.adb: Various changes for better msgs for anonmous access
10586         subprogram types.
10587         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
10588         argument.
10589         (Buffer_Remove): Version with character argument.
10590         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
10591         of mismatching conventions for access-to-subprogram case.
10592         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
10593         access types in record.
10594         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
10595         types, including in records.
10597 2014-02-25  Doug Rupp  <rupp@adacore.com>
10599         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
10600         enhancements and corrections.
10602 2014-02-25  Robert Dewar  <dewar@adacore.com>
10604         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
10606 2014-02-25  Robert Dewar  <dewar@adacore.com>
10608         * gnat_rm.texi: First set of documentation additions for
10609         predefined RM units.
10610         * checks.adb: Minor reformatting.
10611         * sem_elab.adb (Check_Task_Activation): Minor fix to error
10612         message.
10613         * sem_util.adb: Minor reformatting.
10615 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
10617         * usage.adb (Usage): Add help on -gnateC.
10618         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
10619         * opt.ads (Generate_CodePeer_Messages): New flag.
10620         * gnat_ugn.texi: Document new switch -gnateC.
10622 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
10624         * gnat_rm.texi: Corrected minor typos in Implementation Defined
10625         Aspects.
10626         * opt.ads: Minor reformatting.
10628 2014-02-25  Robert Dewar  <dewar@adacore.com>
10630         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
10631         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
10632         of -gnatel/-gnateL.
10633         * opt.ads (Warn_Info_Messages): New flag.
10634         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
10635         messages.
10636         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
10637         messages.
10638         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
10639         * usage.adb: Add documentation of -gnatel/-gnateL Update
10640         documentation of -gnatwl/-gnatwL.
10641         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
10642         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
10644 2014-02-25  Robert Dewar  <dewar@adacore.com>
10646         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
10647         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
10648         * interfac.ads: Minor code reorganization (add pragma
10649         Compiler_Unit_Warning).
10650         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
10651         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
10652         Has_Shift_Operator flag.
10653         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
10654         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
10655         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
10656         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
10657         Add entry for Name_Amount.
10658         * checks.adb (Selected_Range_Checks): When checking for a null
10659         range, make sure we use the base type, and not the subtype for
10660         deciding a range is null.
10661         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
10662         for suspicious loop bound which is outside the range of the
10663         loop subtype.
10664         * gnat_ugn.texi: Add documentation section "Determining the
10665         Chosen Elaboration Order"
10666         * sem_ch13.adb (UC_Entry): Add field Act_Unit
10667         (Validate_Unchecked_Conversion): Store Act_Unit
10668         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
10669         * treepr.adb: Minor reformatting.
10671 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
10673         * usage.adb: Minor: fix typo.
10675 2014-02-25  Robert Dewar  <dewar@adacore.com>
10677         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
10678         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
10679         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
10680         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
10681         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
10682         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
10683         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
10684         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
10685         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
10686         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
10687         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
10688         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
10689         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
10690         Compiler_Unit_Warning, change Compiler_Unit everywhere to
10691         Compiler_Unit_Warning.
10693 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
10695         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
10696         in ASIS mode aggregates that are used as aspect definitions.
10698 2014-02-25  Robert Dewar  <dewar@adacore.com>
10700         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
10701         reformatting.
10703 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10705         * freeze.adb (Freeze_Entity): If the return type of a function
10706         is a limited view, and the non-limited view has not been seen yet,
10707         defer freezing to some later point.
10709 2014-02-25  Robert Dewar  <dewar@adacore.com>
10711         * sem_ch3.adb: Minor reformatting.
10713 2014-02-25  Robert Dewar  <dewar@adacore.com>
10715         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
10716         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
10717         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
10718         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
10719         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
10720         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
10721         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
10722         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
10723         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
10724         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
10725         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
10726         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
10727         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
10728         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
10729         snames.ads-tmpl: Change Compiler_Unit everywhere to
10730         Compiler_Unit_Warning.
10732 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10734         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
10735         (Collect_Body_Postconditions_In_Decls): New routine.
10736         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
10737         postcondition aspects or pragmas that appear on a subprogram
10738         body stub.
10739         (Collect_Spec_Preconditions): Factor out code. Handle
10740         precondition aspects or pragmas that appear on a subprogram
10741         body stub.
10742         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
10743         aspects that apply to a subprogram body stub is no longer delayed,
10744         the aspects are analyzed on the spot.
10745         (SPARK_Aspect_Error):
10746         Aspects that apply to a subprogram declaration cannot appear in
10747         a subunit.
10748         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
10749         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
10750         is now a local variable. Code cleanup. Analysis related to
10751         the aspects of a subprogram body stub is now carried out by
10752         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
10753         and/or pragmas of a subprogram body stub to the proper body
10754         as this is no longer needed. Do not analyze the aspects of a
10755         subprogram stub when the corresponding source unit is missing.
10756         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
10757         on a stub.
10758         (Analyze_Task_Body_Stub): Flag the illegal use of
10759         aspects on a stub.
10760         (Optional_Subunit): Add local variable Unum.
10761         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
10762         pragma when it applies to a subprogram body stub.
10763         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
10764         Depends and Global can now apply to a subprogram body stub as
10765         long as it acts as its own spec.
10766         (Analyze_Refined_Pragma):
10767         Code reformatting. Refinement pragmas cannot apply to a subunit.
10769 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10771         * einfo.ads Update the usage of flag
10772         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
10773         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
10774         now starts with the letter 'C'. This makes reading expanded
10775         code easier.
10776         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
10777         Iter_Loop. Signal that an Ada 2012 iterator loop requires
10778         secondary stack management when creating a transient scope for
10779         an element reference.
10780         * exp_util.adb (Process_Statements_For_Controlled_Objects):
10781         When wrapping the statements of a loop, pass the E_Loop entity
10782         to the wrapping machinery.
10783         (Wrap_Statements_In_Block): Add
10784         formal parameter Scop along with comment on usage. Add local
10785         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
10786         block as requiring secondary stack management when the block is
10787         created inside an Ada 2012 iterator loop. This ensures that any
10788         reference objects are reclaimed on each iteration of the loop.
10789         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
10790         tasked with the handling of container iterators as requiring
10791         secondary stack management. This ensures that iterators are
10792         reclaimed when the loop terminates or is exited in any fashion.
10793         * sem_util.adb (Add_Block_Identifier): New routine.
10794         (Find_Enclosing_Iterator_Loop): New routine.
10795         * sem_util.ads (Add_Block_Identifier): New routine.
10796         (Find_Enclosing_Iterator_Loop): New routine.
10798 2014-02-25  Robert Dewar  <dewar@adacore.com>
10800         * sinfo.ads: Minor reformatting.
10802 2014-02-25  Tristan Gingold  <gingold@adacore.com>
10804         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
10806 2014-02-25  Pascal Obry  <obry@adacore.com>
10808         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
10810 2014-02-25  Tristan Gingold  <gingold@adacore.com>
10812         * sem_ch10.adb: Minor comment fix.
10814 2014-02-25  Bob Duff  <duff@adacore.com>
10816         * s-tasdeb.adb: Misc cleanup of this package,
10817         including printing addresses in hexadecimal.
10818         (Write): Fix minor bug when taking 'Address of an empty string.
10820 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10822         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
10823         public child unit when it does not refer to the abstract state
10824         of a public ancestor.
10826 2014-02-25  Yannick Moy  <moy@adacore.com>
10828         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
10829         Validity_Checks in GNATprove and CodePeer modes.
10831 2014-02-25  Pascal Obry  <obry@adacore.com>
10833         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
10834         Artifacts attribute.
10836 2014-02-25  Yannick Moy  <moy@adacore.com>
10838         * sem_prag.adb: Minor reformatting to get consistent messages.
10840 2014-02-25  Robert Dewar  <dewar@adacore.com>
10842         * checks.adb: Minor reformatting.
10843         * sinfo.ads (Do_Range_Check): Document that this flag is never
10844         passed to the back end.
10846 2014-02-25  Yannick Moy  <moy@adacore.com>
10848         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
10849         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
10851 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10853         * sem_res.adb (Appears_In_Check): New routine.
10854         (Resolve_Entity_Name): Remove local variables Prev and
10855         Usage_OK. Par is now a constant. Remove the parent chain traversal
10856         as the placement of a volatile object with enabled property
10857         Async_Writers and/or Effective_Reads must appear immediately
10858         within a legal construct.
10860 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
10862         * checks.adb (Apply_Selected_Range_Checks):
10863         Alphabetize local constants and variables. Add comments.
10864         Always insert a range check that requires runtime evaluation into
10865         the tree.
10867 2014-02-25  Robert Dewar  <dewar@adacore.com>
10869         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
10871 2014-02-25  Bob Duff  <duff@adacore.com>
10873         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
10874         iterations while waiting for independent tasks to terminate;
10875         if an independent task does not terminate, we do not want to
10876         hang here. In that case, the thread will be terminated when the
10877         process exits.
10878         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
10880 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10882         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
10883         used to perform pre-analysis of the expression for SPARK
10884         aspects that have a non-standard syntax, such as GLobal and
10885         Initializes. The procedure applies to the original expression
10886         in an aspect specification, prior to the analysis of the
10887         corresponding pragma, in order to provide semantic information
10888         for ASIS navigation purposes.
10889         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
10890         Call new subprogram.
10892 2014-02-25  Yannick Moy  <moy@adacore.com>
10894         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
10896 2014-02-25  Doug Rupp  <rupp@adacore.com>
10898         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
10899         (__gnat_adjust_context_for_raise): Bump the PC by 2.
10901 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10903         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
10904         misplaced IS, add a statement sequence to improper body only if
10905         one has not been parsed already.
10907 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10909         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
10910         mismatch when multidimensional array is updated with a single
10911         index.
10913 2014-02-25  Yannick Moy  <moy@adacore.com>
10915         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
10916         sem_ch6.adb: Mark most references to SPARK RM in error messages
10917         for removal.
10919 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10921         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
10922         appears in a list of basic declarations, complete the tree with
10923         an empty statement list, to prevent cascaded errors and crashes
10924         if semantic analysis is attempted.
10926 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10928         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
10929         value.
10930         * erroutc.adb: Minor reformatting.
10932 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10934         * sem_prag.adb (Check_Clause_Syntax): Account
10935         for a solitary input item in a dependency list.
10937 2014-02-24  Yannick Moy  <moy@adacore.com>
10939         * gnat1drv.adb (Adjust_Global_Switches): Do not
10940         use validity checks at all in GNATprove_Mode.
10942 2014-02-24  Robert Dewar  <dewar@adacore.com>
10944         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
10945         atree.adb, atree.ads: Minor reformatting.
10947 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10949         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
10950         global and dependence refinement when SPARK_Mode is off.
10951         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
10952         state refinement when SPARK_Mode is off.
10953         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
10954         variable Decl. Insert the generated pragma for Refined_State
10955         after a potential pragma SPARK_Mode.
10956         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
10957         constant Deps. Remove local variable Expr. Check the syntax
10958         of pragma Depends when SPARK_Mode is off. Factor out the
10959         processing for extra parenthesis around individual clauses.
10960         (Analyze_Global_In_Decl_List): Items is now a constant. Check
10961         the syntax of pragma Global when SPARK_Mode is off.
10962         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
10963         Initializes when SPARK_Mode is off.
10964         (Analyze_Part_Of): Check
10965         the syntax of the encapsulating state when SPARK_Mode is off.
10966         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
10967         SPARK_Mode is off. Move the declaration order check with respect
10968         to pragma Initializes to the end of the processing. Do not verify
10969         the declaration order for pragma Initial_Condition when SPARK_Mode
10970         is off. Do not complain about a useless package refinement when
10971         SPARK_Mode is off.
10972         (Analyze_Refined_Depends_In_Decl_Part): Refs
10973         is now a constant. Check the syntax of pragma Refined_Depends
10974         when SPARK_Mode is off.
10975         (Analyze_Refined_Global_In_Decl_Part):
10976         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
10977         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
10978         Refined_State when SPARK_Mode is off.
10979         (Check_Dependence_List_Syntax): New routine.
10980         (Check_Global_List_Syntax): New routine.
10981         (Check_Initialization_List_Syntax): New routine.
10982         (Check_Item_Syntax): New routine.
10983         (Check_State_Declaration_Syntax): New routine.
10984         (Check_Refinement_List_Syntax): New routine.
10985         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
10987 2014-02-24  Robert Dewar  <dewar@adacore.com>
10989         * a-tags.adb, s-os_lib.adb: Minor reformatting.
10991 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10993         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
10994         strerror message, not just numeric errno value.
10996 2014-02-24  Doug Rupp  <rupp@adacore.com>
10998         * raise-gcc.c (exception_class_eq): Make endian neutral.
11000 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11002         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
11003         flag, and reset Etype and Analyzed attributes unconditionally
11004         when copying a tree that may be partly analyzed.
11005         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
11006         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
11007         within a subprogram body and applies to it, remove it from the
11008         body before making a copy of it, to prevent spurious errors when
11009         analyzing the copied body.
11011 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11013         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
11014         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
11015         vxWorks.h has been included.  Also ensure that file attributes
11016         related definitions are output even in cases where socket support
11017         is not enabled.
11018         * a-tags.adb: Code clean up.
11019         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
11020         instead of -I to add the main ada source directory to the header
11021         search path, in order to avoid conflict between our own "types.h"
11022         and VxWork's <types.h>.
11024 2014-02-24  Robert Dewar  <dewar@adacore.com>
11026         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
11027         * debug.adb: Remove documentation of -gnatd.X, no longer used.
11028         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
11030 2014-02-24  Bob Duff  <duff@adacore.com>
11032         * gnat_ugn.texi: Improve documentation of gnatpp.
11034 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11036         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
11037         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
11038         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
11039         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
11040         a chars_ptr, because on Windows this is a renaming of
11041         Socket_Error_Message.
11043 2014-02-24  Robert Dewar  <dewar@adacore.com>
11045         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
11046         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
11047         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
11048         reorganization.
11050 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11052         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
11053         that the source directory containing s-oscons-tmplt.c is on the
11054         include path, so that all internal header files are available.
11056 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11058         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
11059         domain of iteration is an attribute reference 'Old, this is an
11060         Ada 2012 iterator and the loop must be rewritten as such.
11062 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11064         * s-fileio.adb (Errno_Message): Remove, use shared version from
11065         s-os_lib instead.
11066         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
11067         * g-stseme (Socket_Error_Message): Reimplement in terms of new
11068         s-os_lib function.
11069         * g-socthi.ads, g-socthi.adb: Change profile of
11070         Socket_Error_Message to return String to allow the above.
11071         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
11072         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
11073         * g-socthi-vxworks.ads: Update to account for the above profile
11074         change.
11075         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
11076         * s-crtl.ads (strncpy): New procedure.
11077         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
11078         Use import from s-crtl.
11079         * a-envvar.adb, osint.adb: Use imports of C runtime functions
11080         from s-crtl instead of re-importing locally.
11082 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11084         * sem_prag.adb (Analyze_Global_Item): Emit the
11085         variable related checks concerning volatile objects only when
11086         SPARK_Mode is on.
11088 2014-02-24  Robert Dewar  <dewar@adacore.com>
11090         * sem_ch5.adb (Analyze_Iterator_Specification): use
11091         Error_Msg_Ada_2012_Feature.
11093 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
11095         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
11096         No_Local_Timing_Events and No_Specific_Termination_Handlers
11097         must be set, according to the Ravenscar profile definition
11098         in D.13(6/3).
11100 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11102         * sem_ch6.adb (Analyze_Expression_Function): If this is a
11103         completion, freeze return type and its designated type if needed.
11105 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11107         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
11108         'Address): When moving initialization statements to a freeze
11109         entity, keep them under a single node (i.e. do not unwrap
11110         expressions with actions), and set the Initialization_Statements
11111         attribute again so that processing of a later pragma Import can
11112         still remove them.
11114 2014-02-24  Claire Dross  <dross@adacore.com>
11116         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
11117         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
11118         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
11119         Left/Right to First_To_Previous/Current_To_Last.
11121 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11123         * adaint.h (struct file_attributes): New component "error"
11124         (__gnat_error_attributes): Accessor for the above.
11125         * adaint.c (__gnat_error_attributes): New subprogram
11126         (__gnat_stat): Fix returned value (expect errno value)
11127         (__gnat_stat_to_attr): Add management of error component (set to
11128         stat errno value, except for missing files where it is set to 0,
11129         and exists is set to 0).
11130         * osint.ads (File_Attributes_Size): Update per change above,
11131         also clarify documentation.
11132         * s-filatt.ads: New file, binding to file attributes related
11133         functions.
11134         * Makefile.rtl (s-filatt): New runtime unit.
11135         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
11136         to library function if not available on target).
11137         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
11138         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
11139         SIZEOF_struct_dirent_alloc): New constants.
11140         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
11141         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
11142         Perform appropriate error checking if stat fails (do not just
11143         ignore existing files if stat fails)
11144         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
11145         dependencies.
11147 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11149         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
11150         the use of volatile objects as global items in a function to
11151         the variable related checks section.
11152         * sem_util.adb (Async_Readers_Enabled): Directly call
11153         Has_Enabled_Property.
11154         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
11155         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
11156         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
11157         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
11158         Update the comment on usage. State_Has_Enabled_Property how handles
11159         the original logic of the routine. Add processing for variables.
11160         (State_Has_Enabled_Property): New routine.
11161         (Variable_Has_Enabled_Property): New routine.
11163 2014-02-24  Robert Dewar  <dewar@adacore.com>
11165         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
11166         Minor reformatting.
11167         * atree.ads, atree.adb (Node35): New function.
11168         (Set_Node35): New procedure.
11169         * debug.adb: Define new debug flag -gnatd.X.
11170         * einfo.ads, einfo.adb (Import_Pragma): New field.
11171         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
11172         really active yet, has to be activated with -gnatd.X.
11173         * sem_prag.adb (Set_Imported): Set new Import_Pragma
11174         field (Set_Imported): Don't set Is_Public (see
11175         Freeze.Wrap_Imported_Subprogram)
11176         * par-ch3.adb (P_Component_List): Handle unexpected null component.
11178 2014-02-24  Yannick Moy  <moy@adacore.com>
11180         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
11181         * gnat_rm.texi: Correct documentation of attribute Update.
11183 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11185         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
11186         iterator in older versions of Ada.
11188 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11190         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
11191         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
11193 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11195         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
11196         indexed_components that are instances of Ada 2012 container
11197         indexing operations. Analysis and resolution of such nodes
11198         is performed on the attribute, and the original source is
11199         preserved for ASIS operations. If expansion is enabled, the
11200         indexed component is replaced by the value of this attribute,
11201         which is in a call to an Indexing aspect, in most case wrapped
11202         in a dereference operation.
11203         * sem_ch4.adb (Analyze_Indexed_Component): Create
11204         Generalized_Indexing attribute when appropriate.
11205         (Analyze_Call): If prefix is not overloadable and has an indexing
11206         aspect, transform into an indexed component so it can be analyzed
11207         as a potential container indexing.
11208         (Analyze_Expression): If node is an indexed component with a
11209         Generalized_ Indexing, do not re-analyze.
11210         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
11211         of an indexed_component that has been transformed into a container
11212         indexing operation.
11213         (Resolve_Indexed_Component): Call the above when required.
11214         (Resolve): Do not insert an explicit dereference operation on
11215         an indexed_component whose type has an implicit dereference:
11216         the operation is inserted when resolving the related
11217         Generalized_Indexing.
11219 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
11221         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
11222         Environment.
11224 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11226         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
11227         error messages.
11228         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
11229         Merge the expected and available mode errors.
11230         (Report_Unused_Constituents): Remove leading spaces in error messages.
11231         (Report_Unused_States): Remove leading spaces in error messages.
11233 2014-02-24  Thomas Quinot  <quinot@adacore.com>
11235         * par_sco.adb (Traverse_One): Refine categorization of statement
11236         SCOs.
11238 2014-02-24  Robert Dewar  <dewar@adacore.com>
11240         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
11241         Pure_05, Pure_12 and Preelaborate_05.
11242         * gnat_rm.texi: Update accordingly.
11243         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
11244         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
11245         Recognize one argument form of these pragmas only in GNAT mode
11246         (-gnatg).
11248 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11250         * s-dimmks.ads: Replace symbol for temperature, previously the
11251         Greek letter Theta, by the ASCII @ sign.
11252         * s-diflio.ads: ditto.
11254 2014-02-24  Robert Dewar  <dewar@adacore.com>
11256         * exp_ch4.adb: Minor code reorganization (use OR for boolean
11257         variables).
11258         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
11260 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
11262         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
11263         so that references to gnatmem and ASIS tools do not appear in the FSF
11264         edition of the GNAT User's Guide.
11266 2014-02-24  Yannick Moy  <moy@adacore.com>
11268         * freeze.adb (Freeze_Entity): Do not issue warning
11269         for pre/post being ignored on imported subprogram in GNATprove
11270         mode.
11272 2014-02-24  Robert Dewar  <dewar@adacore.com>
11274         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
11275         stand.ads, sem_eval.adb: Minor reformatting.
11277 2014-02-24  Yannick Moy  <moy@adacore.com>
11279         * sem_prag.adb: Minor rewording in error message.
11281 2014-02-24  Johannes Kanig  <kanig@adacore.com>
11283         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
11284         GNATprove_mode, gnat2why doesn't need nor use these types.
11286 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11288         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
11289         target, in the case of signed integer exponentiation that uses a
11290         run-time routine, always select the Exp_* versions, since overflow
11291         checking is automatically done by AAMP arithmetic instructions.
11293 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11295         * sem_ch13.adb (Analyze_Aspect_Specifications):
11296         When the related context is a package instace, insert pragma
11297         Abstract_State after all internally-generated renamings related
11298         to the instance "header".
11300 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
11302         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
11303         subprograms.
11304         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
11305         call to an abstract subprogram is legal if it appears in a
11306         pre/postcondition of another abstract operation.
11308 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
11310         * gnat_ugn.texi: Misc updates.
11312 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
11314         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
11316 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
11318         * layout.adb (Layout_Variant_Record): Instantiate
11319         Generic_Check_Choices and call Check_Choices before calling
11320         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
11321         set to prevent generating incorrect discriminant-checking
11322         functions for 'others' variants (functions that unconditionally
11323         return True rather than accounting for the values covered by the
11324         'others' choice).
11325         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
11326         Formal_Derived_Matching.
11327         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
11328         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
11329         Formal_Derived_Matching formal to Subtypes_Statically_Match.
11330         (Subtypes_Statically_Match): Suppress the Object_Size matching
11331         test in the case where Formal_Derived_Matching is True.
11332         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
11333         True for Formal_Derived_Matching_Formal on the call to
11334         Subtypes_Statically_Compatible.
11336 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11338         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
11340 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
11342         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
11343         Look through a conversion between original and packable version to get
11344         the base object.
11345         (build_component_ref): Rework comment and fix formatting.
11347 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
11349         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
11350         project-specific options.
11352 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11354         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
11355         not Constraint_Error.
11356         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
11357         * sem_ch5.adb: Code clean up.
11359 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11361         * sem_prag.adb (Usage_Error): Remove local
11362         constant Typ. Remove the specialized diagnostics for unconstrained
11363         or tagged items as those are not part of the explicit input set
11364         of the related subprogram and should not be flagged.
11366 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11368         * sem_attr.adb: Add guard to preserve all errors.
11370 2014-02-20  Vincent Celier  <celier@adacore.com>
11372         * switch-m.adb (Normalize_Compiler_Switches): Take into account
11373         switches that are recorded in ALI files: -gnateA, -gnateE,
11374         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
11376 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11378         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
11379         of an element iterator form over a formal container with an
11380         Iterable aspect.
11381         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
11382         to create declaration and loop statements for both forms of
11383         container iterators.
11384         (Expand_Formal_Container_Element_Iterator): New procedure
11385         to handle loops of the form  "for E of C" when C is a formal
11386         container.
11387         (Expand_Formal_Container_Iterator): Code cleanup.
11389 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11391         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
11392         (Analyze_Contract_Case): Remove the use of
11393         "may". Replace "aspect Contract_Cases" to avoid categorization
11394         of aspect vs pragma.
11395         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
11396         (Analyze_Global_Item): Remove
11397         the use of "formal", specify the subprogram.  Split the
11398         error message about a state with visible refinement into
11399         two. Remove the use of "global" from "volatile global item".
11400         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
11401         is on one line.
11402         (Analyze_Input_Output): Update the call to
11403         Check_Mode. Specify the duplicated item. Reword the error
11404         message concerning an input of a null output list. Use "\"
11405         for error message continuation.
11406         (Analyze_Part_Of): Remove
11407         the use of "may". Use "\" for error message continuation.
11408         (Analyze_Refined_Depends_In_Decl_Part): Update the error
11409         message concerning a useless refinement to match the format
11410         of Refined_Global.
11411         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
11412         concerning a useless refinement.
11413         (Analyze_Refinement_Clause): Use "\" for error message continuation.
11414         (Check_Constituent_Usage): Use "\" for error message continuation.
11415         (Check_Dependency_Clause): Use "\" for error message continuation.
11416         (Check_Matching_Constituent): Use "\" for error message continuation.
11417         (Check_Missing_Part_Of): Use "\" for error message continuation.
11418         (Check_Mode): Renamed to
11419         Check_Role. Update the comment on usage. Redo the error reporting
11420         to use Role_Error.
11421         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
11422         message continuation.
11423         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
11424         with comment on usage. Update all occurrences of Is_Input and Is_Output.
11425         (Inconsistent_Mode_Error): Use "\" for error message continuation.
11426         (Input_Match): Use "\" for error message continuation.
11427         (Role_Error): New routine.
11428         (Set_Convention_From_Pragma): Use "\" for error message continuation.
11429         (Usage_Error): Add local variable Error_Msg. Build specialized error
11430         message showcasing the offending item kind. Redo the diagnostics for
11431         unconstrained types.
11433 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11435         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
11436         to determine whether a type is a container type, rather than
11437         examining only its type declaration, so that subtypes and derived
11438         types are handled properly.
11440 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
11442         * gnat_ugn.texi: gnatmetric: add description of project-specific
11443         options.
11445 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11447         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
11448         all choices in an association for a record type have the same
11449         type, as is done for record aggregates.
11451 2014-02-20  Robert Dewar  <dewar@adacore.com>
11453         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
11454         Unmodified rather than Warnings (Off). Make comments
11455         uniform in the four affected units.
11457 2014-02-20  Robert Dewar  <dewar@adacore.com>
11459         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
11460         Object_Size): For non-scalar types allow any value that is a
11461         multiple of 8.
11462         * gnat_rm.texi: Document Object_Size for composites more clearly.
11464 2014-02-20  Yannick Moy  <moy@adacore.com>
11466         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
11468 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11470         * stand.ads: Raise_Type: new predefined entity, used as the type
11471         of a Raise_Expression prior to resolution.
11472         * cstand.adb: Build entity for Raise_Type.
11473         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
11474         initial type of the node.
11475         * sem_type.adb (Covers): Raise_Type is compatible with all
11476         other types.
11477         * sem_res.adb (Resolve): Remove special handling of Any_Type on
11478         Raise_Expression nodes.
11479         (Resolve_Raise_Expression): Signal ambiguity if the type of the
11480         context is still Raise_Type.
11482 2014-02-20  Robert Dewar  <dewar@adacore.com>
11484         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
11485         mismatching predicates.
11486         * sem_ch6.adb (Check_Conformance): Give better messages on
11487         predicate mismatch.
11488         * sem_eval.adb (Predicates_Match): Move to spec.
11489         * sem_eval.ads (Predicates_Match): Moved here from body.
11491 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11493         * a-cbmutr.adb: Use default value in Insert_Child.
11495 2014-02-20  Vincent Celier  <celier@adacore.com>
11497         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
11498         Stringt.Initialize in all project aware tools.
11500 2014-02-20  Doug Rupp  <rupp@adacore.com>
11502         * gnat_ugn.texi: Document gnatbind -X option.
11503         * vms_data.ads: Minor warnings documentation reformatting.
11505 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11507         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
11508         procedure for a base type.
11510 2014-02-20  Robert Dewar  <dewar@adacore.com>
11512         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
11513         expression with type info.
11514         * sem_ch13.adb: Minor reformatting.
11515         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
11516         False if predicates do not match on the two types.
11518 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
11520         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
11521         In Relaxed_RM_Semantics mode, allow any static integer value,
11522         for compatibility with other compilers.
11524 2014-02-20  Vincent Celier  <celier@adacore.com>
11526         * errutil.adb (Initialize): Properly initialize entry in table
11527         Warnings when warnings are suppressed.
11529 2014-02-20  Robert Dewar  <dewar@adacore.com>
11531         * s-os_lib.ads: Add warning about non-portability of Rename_File.
11532         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
11533         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
11534         * gnat_ugn.texi: Document no warnings on junk variable names.
11535         * layout.adb: Minor code reorganization (use Ekind_In).
11536         * stringt.adb: Move initialization of Null_String_Id to Initialize
11537         routine.
11539 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11541         * sem_ch13.adb: Initialize optional Element_Id.
11543 2014-02-20  Robert Dewar  <dewar@adacore.com>
11545         * s-os_lib.ads (Rename_File): Minor commment addition.
11547 2014-02-20  Thomas Quinot  <quinot@adacore.com>
11549         * einfo.ads: Minor reformatting.
11551 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
11553         * aspects.adb (Exchange_Aspects): New routine.
11554         * aspects.ads (Exchange_Aspects): New routine.
11555         * atree.adb (Rewrite): Do not check whether the save node has
11556         aspects as it never will, instead check the node about to be clobbered.
11557         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
11558         entities of generic packages.
11559         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
11560         pointer of an aspect specification list after rewriting takes place.
11561         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
11562         specifications of the generic template and the copy used for analysis.
11563         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
11564         the aspect specifications of the generic template and the
11565         copy used for analysis.
11566         (Analyze_Package_Instantiation): Propagate the aspect specifications
11567         from the generic template to the instantiation.
11568         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
11569         specifications from the generic template to the instantiation.
11570         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
11571         Abstract_State, Initializes and Initial_Condition when they
11572         apply to a package instantiation.
11574 2014-02-20  Robert Dewar  <dewar@adacore.com>
11576         * stringt.adb: Add call to Initialize in package initialization.
11578 2014-02-20  Robert Dewar  <dewar@adacore.com>
11580         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
11581         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
11582         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
11583         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
11584         reformatting.
11586 2014-02-20  Bob Duff  <duff@adacore.com>
11588         * s-os_lib.ads: Minor: Remove incorrect comment.
11590 2014-02-20  Robert Dewar  <dewar@adacore.com>
11592         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
11594 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11596         * a-cborma.adb (Assign): When creating a node without a specified
11597         element, insert an uninitialized element in the map, because
11598         the instance may provide an element type with a default
11599         initialization, e.g a scalar with a Default_Value aspect.
11600         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
11601         (Insert): In the version without explicit element, provide an
11602         uninitialized element, as above.
11603         * a-cbdlli.adb (Append): In the version without explicit element,
11604         provide an uninitalized element, as above.
11605         (Allocate): Remove unused version.
11607 2014-02-20  Robert Dewar  <dewar@adacore.com>
11609         * sem_elab.adb: Minor code reorganization (use Nkind_In).
11610         * stringt.adb: Remove temporary pragma Warnings (Off).
11611         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
11612         of Null_String_Id.
11614 2014-02-20  Matthew Heaney  <heaney@adacore.com>
11616         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
11617         index.
11619 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
11621         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
11622         properly the cursor type for subsequent volatile testing in SPARK
11623         mode, when domain is a formal container with an Iterabe aspect.
11625 2014-02-20  Robert Dewar  <dewar@adacore.com>
11627         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
11628         (Set_Specific_Warning_Off): Add Reason argument.
11629         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
11630         (Set_Specific_Warning_Off): Add Reason argument.
11631         * erroutc.adb (Warnings_Entry): Add Reason field
11632         (Specific_Warning_Entry): Add Reason field.
11633         (Warnings_Suppressed): return String_Id for Reason.
11634         (Warning_Specifically_Suppressed): return String_Id for Reason.
11635         * erroutc.ads (Warnings_Entry): Add Reason field.
11636         (Specific_Warning_Entry): Add Reason field.
11637         (Set_Specific_Warning_Off): Add Reason argument.
11638         (Set_Warnings_Mode_Off): Add Reason argument.
11639         (Warnings_Suppressed): return String_Id for Reason.
11640         (Warning_Specifically_Suppressed): return String_Id for Reason.
11641         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
11642         (Warning_Specifically_Suppressed): returns String_Id for Reason
11643         * gnat_rm.texi: Document that Warning parameter is string literal
11644         or a concatenation of string literals.
11645         * par-prag.adb: New handling for Reason argument.
11646         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
11647         for Reason argument.
11648         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
11649         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
11650         * stringt.adb: Set Null_String_Id.
11651         * stringt.ads (Null_String_Id): New constant.
11653 2014-02-20  Robert Dewar  <dewar@adacore.com>
11655         * einfo.ads: Minor comment addition: Etype of package is
11656         Standard_Void_Type.
11657         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
11658         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
11659         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
11660         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
11661         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
11662         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
11663         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
11664         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
11665         Replace all calls with calls to New_Occurrence_Of.
11667 2014-02-20  Robert Dewar  <dewar@adacore.com>
11669         * par-util.adb (Ignore, case of right paren): Make this a
11670         serious error.
11672 2014-02-19  Robert Dewar  <dewar@adacore.com>
11674         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
11675         * debug.adb: Remove -gnatd.X switch, no longer used.
11676         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
11677         now always made.
11679 2014-02-19  Bob Duff  <duff@adacore.com>
11681         * g-socket.ads: Minor: Correct some comments.
11683 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11685         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
11687 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
11689         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
11690         an error on out of range priorities if Relaxed_RM_Semantics.
11691         * sem_prag.adb (Analyze_Pragma): Ditto.
11693 2014-02-19  Bob Duff  <duff@adacore.com>
11695         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
11696         where F denotes the renaming of an enumeration literal, and
11697         issue a specialized error message.
11699 2014-02-19  Matthew Heaney  <heaney@adacore.com>
11701         * a-chtgop.ads (Checked_Index): New operation.
11702         (Next): Changed mode of hash table.
11703         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
11704         (Generic_Read, Reserve_Capacity): Ditto.
11705         (Generic_Equal): Detect tampering.
11706         (Next): Changed mode of hash table, detect tampering.
11707         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
11708         operation.
11709         (Find): Changed mode of hash table.
11710         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
11711         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
11712         tampering.
11713         (Find): Changed mode of hash table, check for tampering.
11714         (Generic_Replace_Element): Check for tampering.
11715         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
11716         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
11717         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
11718         Detect tampering.
11719         (Find, Generic_Replace_Element): Check for tampering.
11720         * a-chtgbo.ads (Checked_Index): New operation.
11721         * a-chtgbo.adb (Checked_Index): New operation
11722         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
11723         (Generic_Read, Next): Ditto.
11724         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
11725         table (Difference, Intersection): Use variable view of
11726         source, detect tampering (Find, Is_Subset, Overlap): Use
11727         variable view of container (Symmetric_Difference, Union):
11728         Detect tampering (Vet): Use Checked_Index to detect tampering
11729         (Constant_Reference, Element, Find): Use variable view of
11730         container.
11731         (Update_Element_Preserving_Key): Detect tampering.
11732         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
11733         of container.
11734         (Is_Subset): Ditto.
11735         (Equivalent_Sets, Overlap): Use Node's Next component.
11736         (Vet): Use Checked_Index to detect tampering.
11737         (Constant_Reference, Element, Find): Use variable view of container.
11738         (Update_Element_Preserving_Key): Detect tampering.
11739         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
11740         Element, Find): Use variable view of container.
11741         (Reference): Rename hash table component.
11742         (Vet): Use Checked_Index to detect tampering.
11744 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
11746         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
11747         of -nostdinc.
11749 2014-02-19  Thomas Quinot  <quinot@adacore.com>
11751         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
11752         against calls without Def_Id.
11754 2014-02-19  Claire Dross  <dross@adacore.com>
11756         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
11757         a-cofove.ads: Add global annotations to subprograms.
11759 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11761         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
11762         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
11763         Initial_Condition no longer requires the presence of pragma
11764         Initialized. Do not try to diagnose whether all variables mentioned in
11765         pragma Initializes also appear in Initial_Condition.
11766         (Collect_Variables): Removed.
11767         (Match_Variable): Removed.
11768         (Match_Variables): Removed.
11769         (Report_Unused_Variables): Removed.
11771 2014-02-19  Thomas Quinot  <quinot@adacore.com>
11773         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
11775 2014-02-19  Robert Dewar  <dewar@adacore.com>
11777         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
11778         reformatting.
11780 2014-02-19  Vincent Celier  <celier@adacore.com>
11782         * prj-part.adb (Parse_Single_Project): Use the fully resolved
11783         project path, with all symbolic links resolved, to check if the
11784         same project is imported with a different unresolved path.
11785         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
11786         changed to Resolved_Path to reflect that all symbolic links
11787         are resolved.
11789 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11791         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
11792         from sem_ch13, for use elsewhere.
11793         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
11794         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
11795         cursor type on the loop variable when the iteration is over o
11796         formal container.
11798 2014-02-19  Vincent Celier  <celier@adacore.com>
11800         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
11801         for an empty Target (Check_Target): Never fail when an empty
11802         target is declared in the configuration project.
11804 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11806         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
11807         the pragma comes fron a predicate aspect and the context is a
11808         record declaration within the scope that declares the type.
11810 2014-02-19  Robert Dewar  <dewar@adacore.com>
11812         * gnat_rm.texi: Minor clarifications.
11813         * expander.adb, sem_aggr.adb: Add comments.
11815 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11817         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
11818         applies to a subprogram body, the name is the current scope,
11819         rather than being declared in the current scope.
11820         (Analyze_Pragma, case No_Return): Handle properly a No_Return
11821         aspect applied to a subprogram body.
11823 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11825         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
11826         of overloaded subprograms, and fix bug in handling of primitive
11827         operation Element.
11829 2014-02-19  Pascal Obry  <obry@adacore.com>
11831         * s-os_lib.adb: Minor reformatting.
11833 2014-02-19  Yannick Moy  <moy@adacore.com>
11835         * expander.adb (Expand): Do nothing inside generics.
11836         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
11837         generics.
11839 2014-02-19  Yannick Moy  <moy@adacore.com>
11841         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
11843 2014-02-19  Robert Dewar  <dewar@adacore.com>
11845         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
11846         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
11847         longer needed).
11849 2014-02-19  Claire Dross  <dross@adacore.com>
11851         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
11852         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
11854 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11856         * sem_ch3.adb (Analyze_Declarations): Analyze
11857         a package contract at the end of the private declarations (if
11858         applicable), otherwise analyze it and the end of the visible
11859         declarations.
11861 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11863         * style.adb (Missing_Overriding): If subprogram is an
11864         instantiation, place warning on the instance node itself,
11865         without mention of the original generic. Do not emit message
11866         if explicit Ada version is older than the introduction of the
11867         overriding indicator.
11869 2014-02-19  Yannick Moy  <moy@adacore.com>
11871         * gnat_rm.texi: Doc clarifications.
11873 2014-02-19  Yannick Moy  <moy@adacore.com>
11875         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
11876         inside a generic.
11878 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11880         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
11881         specified First primitive, rather than by name.
11882         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
11883         and extend error checking for missing primitives and incorrect
11884         signatures.
11886 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11888         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
11889         errors when a Synchronization aspect on an overriding protected
11890         operation does not match the given aspect on the overridden
11891         operation of an ancestor interface.
11893 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11895         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
11896         (Check_Loop_Pragma_Placement): Update
11897         comment on usage. Remove local variables Orig_Stmt and
11898         Within_Same_Sequence. Check that the current Loop_Invariant or
11899         Loop_Variant pragma is grouped together with other such pragmas.
11900         (Is_Loop_Pragma): New routine.
11901         (Prev_In_Loop): Removed.
11903 2014-02-19  Robert Dewar  <dewar@adacore.com>
11905         * par-ch6.adb (P_Return): For extended return, end column lines
11906         up with RETURN.
11907         * par.adb: Minor documentation clarification.
11909 2014-02-19  Yannick Moy  <moy@adacore.com>
11911         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
11912         that Loop_Invariant and Loop_Variant appear consecutively.
11913         * gnat_rm.texi Update documentation of Loop_Invariant and
11914         Loop_Variant pragmas.
11916 2014-02-19  Robert Dewar  <dewar@adacore.com>
11918         * debug.adb: Document -gnatd.X.
11919         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
11920         first token
11921         (Check_Then_Column): Ditto.
11922         * styleg.adb (Check_Then): Allow THEN on line after IF.
11923         (Check_Then): Check THEN placement under control of -gnatd.X
11924         * styleg.ads (Check_Then): Now called even if THEN is not first
11925         token on line.
11926         * stylesw.ads (Style_Check_If_Then_Layout): Document new
11927         relaxed rules.
11928         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
11930 2014-02-19  Robert Dewar  <dewar@adacore.com>
11932         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
11933         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
11934         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
11935         vms_conv.adb: Fix bad layout of IF statements
11937 2014-02-19  Robert Dewar  <dewar@adacore.com>
11939         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
11941 2014-02-19  Robert Dewar  <dewar@adacore.com>
11943         * exp_util.adb: Update comments.
11945 2014-02-19  Doug Rupp  <rupp@adacore.com>
11947         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
11948         * init.c (__gl_float_format): [VMS] New global.
11949         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
11950         representation in effect.
11952 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11954         * exp_ch6.adb Add with and use clause for Exp_Prag.
11955         (Expand_Contract_Cases): Relocated to Exp_Prag.
11956         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
11957         * exp_prag.adb Add with and use clauses for Checks and Validsw.
11958         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
11959         structure of the expanded code to showcase the evaluation of
11960         attribute 'Old prefixes. Add local variable Old_Evals. Expand
11961         any attribute 'Old references found within a consequence. Add
11962         circuitry to evaluate the prefixes of attribute 'Old that
11963         belong to a selected consequence.
11964         (Expand_Old_In_Consequence): New routine.
11965         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
11966         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
11967         potentially unevaluated prefix is always evaluated.
11969 2014-02-19  Robert Dewar  <dewar@adacore.com>
11971         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
11972         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
11973         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
11974         handling for the case of Modify_Tree_For_C, this approach did
11975         not work.
11976         * exp_util.adb (Matching_Standard_Type): New function
11977         (Side_Effect_Free): New top level functions (from
11978         Remove_Side_Effects).
11979         * exp_util.ads (Side_Effect_Free): New top level functions
11980         (moved from body).
11981         * sinfo.ads: Minor comment updates.
11983 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11985         * exp_ch6.adb (Expand_Simple_Function_Return): If return
11986         type is unconstrained and uses the secondary stack, mark the
11987         enclosing function accordingly, to ensure that the value is not
11988         prematurely removed.
11990 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11992         * par.adb Alphabetize the routines in Par.Sync.
11993         (Resync_Past_Malformed_Aspect): New routine.
11994         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
11995         variables. Code and comment reformatting. Detect missing
11996         parentheses on aspects [Refined_]Global and [Refined_]Depends
11997         with a non-null definition.
11998         * par-sync.adb: Alphabetize all routines in this separate unit.
11999         (Resync_Past_Malformed_Aspect): New routine.
12001 2014-02-19  Robert Dewar  <dewar@adacore.com>
12003         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
12004         if Esize values do not match.
12006 2014-02-19  Yannick Moy  <moy@adacore.com>
12008         * sinfo.ads: Minor comment update.
12010 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12012         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
12014 2014-02-19  Thomas Quinot  <quinot@adacore.com>
12016         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
12017         that has the No_Ctrl_Actions flag is a suitable node to be
12018         wrapped if the assigned expression has no finalization actions.
12019         * sem_eval.adb (Eval_Entity_Name): For a compile time known
12020         boolean value, mark the corresponding condition SCO as constant.
12022 2014-02-19  Robert Dewar  <dewar@adacore.com>
12024         * exp_util.adb: Minor reformatting.
12025         * exp_util.ads (Matching_Standard_Type): New function.
12026         * exp_ch7.adb: Minor reformatting.
12028 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12030         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
12031         to find declaration for Cursor, to handle properly the case of
12032         a discriminated iterable type.
12034 2014-02-19  Vincent Celier  <celier@adacore.com>
12036         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
12037         imported library projects with the library ALI dirs, when setting
12038         the object paths.
12039         * prj-env.ads (Ada_Objects_Path): Correct comments about
12040         argument Including_Libraries.
12042 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
12044         * gnat_rm.texi: Minor spelling fixes.
12046 2014-02-19  Doug Rupp  <rupp@adacore.com>
12048         * init.c: Remove unneeded code.
12049         * fe.h (Float_Format): New macro
12050         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
12052 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12054         * sem_prag.adb (Check_Refined_Global_Item):
12055         A state or variable acts as a constituent only it is part of an
12056         encapsulating state and the state has visible refinement.
12058 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12060         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
12061         postcondition for a function when the expression does not mention
12062         'Result but the function has in-out parameters.
12064 2014-02-19  Robert Dewar  <dewar@adacore.com>
12066         * gnat_rm.texi: Add documentation on Value_Size forcing biased
12067         representation.
12069 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12071         * lib-xref.ads Remove the small table of letter and symbol usage as we
12072         already have one.
12074 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12076         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
12077         messages depending on the offending misplaced aspect specifications.
12078         (Diagnose_Misplaced_Aspect_Specifications): New routine.
12080 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12082         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
12083         for iterable aspect primitives.
12084         (Resolve_Iterable_Operation): Use expected signature of iterable
12085         aspect to resolve primitive when overloading is present.
12086         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
12087         (Check_Signature): Removed.
12089 2014-02-19  Yannick Moy  <moy@adacore.com>
12091         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
12092         subunit in GNATprove_Mode.
12093         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
12095 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12097         * lib-xref.ads Alphabetize the contents of table
12098         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
12099         for E_Abstract_State. List all letters and symbols in use.
12100         * sem_prag.adb (Analyze_Abstract_State): Update all calls
12101         to Create_Abstract_State to reflect the new signature.
12102         (Create_Abstract_State): Change subprogram profile and update
12103         the comment on usage. Use the proper location of the state
12104         declaration when creating a new abstract state entity. Do not
12105         generate an external name, but simply reuse the name coming from
12106         the state declaration.
12108 2014-02-19  Robert Dewar  <dewar@adacore.com>
12110         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
12111         declarations get properly inserted in Modify_Tree_For_C mode.
12112         * sinfo.ads: Minor comment addition.
12114 2014-02-19  Robert Dewar  <dewar@adacore.com>
12116         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
12117         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
12119 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12121         * style.adb (Missing_Overriding): Warning does not apply in
12122         language versions prior to Ada 2005.
12123         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
12124         * sem_attr.adb: Add Attribute_Iterable where needed.
12125         * exp_attr.adb: ditto.
12126         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
12127         handle loops and quantified expressions over types that have an
12128         iterable aspect.  Called from Expand_Iterator_Loop.
12129         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
12130         with Iterable aspect.
12131         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
12132         subprograms specified in the Iterable aspect have the proper
12133         signature involving container and cursor.
12134         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
12135         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
12136         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
12137         New procedure to retrieve one of the primitives First, Last,
12138         or Has_Element, from the value of the iterable aspect of a
12139         formal container.
12140         (Is_Container_Element): Predicate to recognize expressions
12141         that denote an element of one of the predefined containers,
12142         for possible optimization.  This subprogram is not currently
12143         used, pending ARG discussions on the legality of the proposed
12144         optimization. Worth preserving for eventual use.
12145         (Is_Iterator): Recognize formal container types.
12146         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
12148 2014-02-19  Robert Dewar  <dewar@adacore.com>
12150         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
12151         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
12152         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
12153         declarations from list of actions.
12154         * output.ads, output.adb (Delete_Last_Char): New procedure.
12155         * sinfo.ads: Document handling of Mod and expression with actions
12156         in Modify_Tree_For_C mode.
12158 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
12160         * par-ch9.adb (P_Task): Add a null statement to produce a
12161         well-formed task body when due to a previous syntax error the
12162         statement list is empty.
12164 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
12166         * sem_prag.adb (Check_Dependency_Clause): Account
12167         for the case where a state with a non-null refinement matches a
12168         null output list. Comment reformatting.
12169         (Inputs_Match): Copy a solitary input to avoid an assertion failure
12170         when trying to match the same input in multiple clauses.
12172 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
12174         * sem_attr.adb: Minor typo fix.
12176 2014-02-18  Robert Dewar  <dewar@adacore.com>
12178         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
12179         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
12180         (Create_Standard): Create new unsigned types.
12181         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
12182         mode (Expand_N_Reference): Removed, problematic and not needed
12183         for now.
12184         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
12185         not needed for now.
12186         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
12187         * expander.adb: Remove call to Expand_N_Reference (problematic,
12188         and not needed now).
12189         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
12190         * stand.adb: Read and write unsigned type entities.
12191         * stand.ads: Add new unsigned types.
12193 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
12195         * sem_ch4.adb (Analyze_Call): Do not mark a function call
12196         as being inside an assertion expression as the flag is now removed.
12197         (Check_Ghost_Subprogram_Call): Do not query the
12198         In_Assertion_Expression flag as it is now removed, instead use
12199         a predicate function.
12200         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
12201         In_Assertion_Expression flag as it is now removed, instead use
12202         a predicate function.
12203         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
12204         * sem_util.adb Add with and use clause for Sem_Prag.
12205         (In_Assertion_Expression_Pragma): New routine.
12206         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
12207         * sinfo.adb (In_Assertion_Expression): Removed.
12208         (Set_In_Assertion_Expression): Removed.
12209         * sinfo.ads Remove flag In_Assertion_Expression along with its
12210         use in nodes.
12211         (In_Assertion_Expression): Removed along with
12212         pragma Inline.  (Set_In_Assertion_Expression): Removed along
12213         with pragma Inline.
12215 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
12217         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
12218         used together with '-r', '-rf' or '-rnb' options.
12220 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
12222         * sem_attr.adb (Analyze_Attribute): Comment
12223         and code reformatting. Use separate routines to check the
12224         legality of attribute 'Old in certain pragmas. Verify
12225         the use of 'Old, 'Result and locally declared entities
12226         within the prefix of 'Old.
12227         (Check_References_In_Prefix): New routine.
12228         (Check_Use_In_Contract_Cases): New routine.
12229         (Check_Use_In_Test_Case): New routine.
12231 2014-02-18  Vincent Celier  <celier@adacore.com>
12233         * sem_aux.adb (Is_By_Reference_Type): For each components of
12234         a record type, check also if the component is volatile as it
12235         may have an aspect that makes it volatile. If it is, then the
12236         record type is a by reference type.
12238 2014-02-18  Robert Dewar  <dewar@adacore.com>
12240         * exp_attr.adb: Minor reformatting.
12241         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
12242         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
12243         as another case where we don't generate N_Reference nodes for
12244         primitive types.
12245         * expander.adb (Expand): Add call to Expand_N_Reference.
12247 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12249         * sem_prag.adb (Analyze_Refined_Pragma): Remove
12250         local variable Pack_Spec. Refinement pragmas may now apply to
12251         bodies of both visible and private subprograms.
12253 2014-02-06  Robert Dewar  <dewar@adacore.com>
12255         * exp_attr.adb (Expand_Loop_Entry_Attribute):
12256         Minor change (Attr => N) (Expand_Pred_Succ): New name
12257         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
12258         Max): Expand into if expression if Modify_Tree_For_C mode.
12259         (Expand_N_Attribute_Reference, case Min): ditto
12260         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
12261         Max attributes.
12263 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12265         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
12266         predicate check if this is an internal declaration with
12267         No_Initialization set, as for an expanded aggregate component.
12269 2014-02-06  Doug Rupp  <rupp@adacore.com>
12271         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
12272         conditions with severity of "SUCCESS" or "INFORMATIONAL".
12274 2014-02-06  Yannick Moy  <moy@adacore.com>
12276         * sem_prag.adb (Analyze_Pragma): Analyze pragma
12277         Debug rewritten node before rewriting it as a null statement in
12278         GNATprove mode.
12280 2014-02-06  Robert Dewar  <dewar@adacore.com>
12282         * sem_attr.adb (Min_Max): New procedure.
12283         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
12284         procedure.
12286 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12288         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
12289         gnatmetric/gnatpp.
12291 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12293         * sem_prag.adb (Analyze_Abstract_State): Update
12294         all calls to Create_Abstract_State to pass the proper state
12295         "declaration".
12296         (Create_Abstract_State): Add new formal parameter
12297         State_Decl along with comment on usage. Establish a link between
12298         the abstract state entity and the state declaration.
12300 2014-02-06  Robert Dewar  <dewar@adacore.com>
12302         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
12303         comparison of unordered enumeration type.
12304         (Analyze_Attribute, case Max): Check for improper comparison of
12305         unordered enumeration type.
12306         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
12307         sem_util.adb.
12308         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
12309         Moved here from Sem_Res.
12311 2014-02-06  Robert Dewar  <dewar@adacore.com>
12313         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
12314         reformatting.
12316 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12318         * sem_ch6.adb (Process_Formals): Error message reformatting.
12320 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12322         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
12323         variable Spec. Do not inherit the null indicator from the
12324         subprogram body when generating the spec.
12326 2014-02-06  Robert Dewar  <dewar@adacore.com>
12328         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
12329         mixed case.
12331 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12333         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
12334         when the function has a foreign convention, but not if only the
12335         limited return type has such a convention.
12337 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12339         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
12340         variable Spec. Comment reformatting. Use Copy_Separate_Tree
12341         rather than New_Copy_Tree when building the corresponding
12342         subprogram declaration.
12344 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12346         * sem_prag.adb (Analyze_Global_Item): Remove
12347         the mode-related checks on abstract states with enabled external
12348         properties.
12349         (Property_Error): Removed.
12351 2014-02-06  Javier Miranda  <miranda@adacore.com>
12353         * lib-xref.adb (Generate_Reference): When
12354         generating the reference to the first private entity take care
12355         of handling swapped entities.
12357 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12359         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
12360         gnatmetric.
12362 2014-02-06  Robert Dewar  <dewar@adacore.com>
12364         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
12365         than the word size when operating in Modify_Tree_For_C mode.
12366         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
12368 2014-02-06  Robert Dewar  <dewar@adacore.com>
12370         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
12371         compare is case insensitive.
12372         * gnat_rm.texi: Document that string compare for Warnings Off
12373         is now case insensitive.
12375 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12377         * gnat_rm.texi: Small wording tweak.
12379 2014-02-06  Pascal Obry  <obry@adacore.com>
12381         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
12382         and Included_Artifact_Patterns attribute definitions.
12384 2014-02-06  Yannick Moy  <moy@adacore.com>
12386         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
12387         SPARK_Mode pragma component for all subprograms, including stubs.
12389 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12391         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
12392         the configuration options of the enclosing context in a
12393         stack-like fasion.
12394         (Analyze_Subprogram_Body_Stub): Maintain the
12395         configuration options of the enclosing context in a stack-like
12396         fashion.
12398 2014-02-06  Robert Dewar  <dewar@adacore.com>
12400         * debug.adb: -gnatd.u sets Modify_Tree_For C
12401         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
12402         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
12403         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
12404         * exp_intr.adb (Expand_Shift): Call expander so we do
12405         Modify_Tree_For_C expansions.
12406         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
12407         if -gnatd.u set.
12409 2014-02-06  Fedor Rybin  <frybin@adacore.com>
12411         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
12412         after the phase 1 of the processing of each aggregated project
12413         to get access to project trees of aggregated projects.
12414         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
12415         If specified, On_New_Tree_Loaded is called after each aggregated
12416         project has been processed succesfully.
12417         (Process): new parameter On_New_Tree_Loaded.
12418         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
12419         callback added after processing of each aggregated project.
12420         (Recursive_Process): new parameter On_New_Tree_Loaded.
12421         (Process): new parameter On_New_Tree_Loaded.
12422         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
12423         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
12424         On_New_Tree_Loaded.
12425         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
12426         On_New_Tree_Loaded.
12428 2014-02-06  Bob Duff  <duff@adacore.com>
12430         * gnat_ugn.texi: Implement --insert-blank-lines and
12431         --preserve-blank-lines switches.
12433 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
12435         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
12436         gnatelim.
12438 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
12440         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
12441         of the pragma on individual objects.
12443 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12445         * einfo.adb Node29 is now used as BIP_Initialization_Call.
12446         (BIP_Initialization_Call): New routine.
12447         (Set_BIP_Initialization_Call): New routine.
12448         (Write_Field29_Name): Add an entry for constants and variables.
12449         * einfo.ads Add new attribute BIP_Initialization_Call and update
12450         its usage in nodes.
12451         (BIP_Initialization_Call): New routine along with pragma Inline.
12452         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
12453         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
12454         Add local declaration Res_Decl. Capture the build-in-place
12455         initialization call when the related object declaration has
12456         created a transient block.
12457         * exp_ch7.adb (Process_Transient_Objects): Add local variable
12458         Fin_Insrt. Recognize a scenario where an object declaration acts
12459         as a transient context and is initialized by a build-in-place
12460         function call.
12462 2014-02-06  Pascal Obry  <obry@adacore.com>
12464         * prj-util.adb (For_Interface_Sources): Fix handling of required
12465         bodies for aggregate libs.
12467 2014-02-06  Robert Dewar  <dewar@adacore.com>
12469         * nlists.ads: Minor comment clarifications.
12471 2014-02-06  Robert Dewar  <dewar@adacore.com>
12473         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
12474         if gnatd.V set.
12475         * opt.ads (Modify_Tree_For_C): New flag.
12476         * output.ads, output.adb (Last_Char): New function.
12478 2014-02-06  Pascal Obry  <obry@adacore.com>
12480         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
12481         share/gpr for cross-builds.
12483 2014-02-06  Robert Dewar  <dewar@adacore.com>
12485         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
12486         Minor reformatting and code clean ups.
12488 2014-02-06  Pascal Obry  <obry@adacore.com>
12490         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
12491         * prj.ads: Minor typo fix in comment.
12493 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12495         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
12496         local variable Expr. Flag clauses with extra parenthesis as this
12497         is not allowed by the syntax of the pragma. Code reformatting.
12499 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12501         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
12502         variables. Rename variabme Tnn to Temp. Do not create a temporary
12503         if assertions are disabled. Find enclosing routine _Postconditions
12504         and insert the temporary that captures the value of the prefix
12505         before the routine.
12506         * exp_ch6.adb (Build_Postconditions_Procedure):
12507         Insert the generated _Postconditions routine
12508         before the first source declaration of the related
12509         subprogram.
12510         (Insert_After_Last_Declaration): Removed.
12511         (Insert_Before_First_Source_Declaration): New routine.
12513 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12515         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
12516         Utility to determine whether current expansion is for the body
12517         of a predefined primitive operation.
12518         (Make_Predicate_Check): Use Within_Internal_Subpgram
12519         * checks.adb (Apply_Predicate_Check): Use
12520         Within_Internal_Subprogram
12521         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
12523 2014-02-06  Pascal Obry  <obry@adacore.com>
12525         * prj.ads, prj-util.adb: Minor reformatting.
12527 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12529         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
12530         Take into account the Split_PPC flag to ensure that conjuncts
12531         in a composite postcondition aspect are tested in source order.
12533 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12535         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
12536         use of SPARK_Mode.
12537         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
12538         illegal use of SPARK_Mode.
12539         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
12540         * sem_prag.adb (Analyze_Pragma): Code reformatting.
12541         * sem_util.adb Add with and use clause for Aspects.
12542         (Check_SPARK_Mode_In_Generic): New routine.
12543         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
12545 2014-02-06  Thomas Quinot  <quinot@adacore.com>
12547         * a-calend.adb (Formatting_Operations.Split): Ensure that
12548         Time_Error is raised for invalid time values.
12550 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
12552         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
12553         in GNATprove_Mode.
12555 2014-02-06  Robert Dewar  <dewar@adacore.com>
12557         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
12558         * exp_ch3.adb (Build_Dcheck_Function): Set
12559         Is_Discriminant_Check_Function.
12561 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12563         * exp_ch7.adb (Is_Subprogram_Call): Inspect
12564         the original tree in certain cases where a construct has been
12565         factored out and replaced by a reference to a temporary.
12567 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
12569         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
12570         parameters when propagating predicate function to full view.
12571         (Find_Type_Of_Object): Freeze base type of object type to catch
12572         premature use of discriminated private type without a full view.
12574 2014-02-06  Robert Dewar  <dewar@adacore.com>
12576         * sprint.adb: Minor reformatting.
12578 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12580         * exp_ch4.adb (Process_Transient_Object): Add local variable
12581         Temp_Ins. When the transient object is initialized by an
12582         aggregate, the hook must capture the object after the last
12583         component assignment takes place.
12584         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
12585         routine Is_Subprogram_Call.
12586         (Is_Subprogram_Call): Inspect an
12587         aggregate that has been heavily expanded for subprogram calls.
12588         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
12589         and Temp_Ins.  Remove the nested declare block and adjust the
12590         indentation. When the transient object is initialized by an
12591         aggregate, the hook must capture the object after the last
12592         component assignment takes place.
12594 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12596         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
12597         external states with enabled properties that do not match the
12598         global mode.
12599         (Property_Error): New routine.
12600         * sem_res.adb (Property_Error): New routine.
12601         (Resolve_Actuals): Detect illegal uses of external variables with
12602         enabled properties in procedure calls that do not match the mode of
12603         the corresponding formal parameter.
12605 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
12607         * sem_util.adb (Has_Enabled_Property): Rename
12608         formal parameter Prop_Nam to Property. Update the comment on usage
12609         and all occurrences in the body. Add local variable Prop_Nam. When
12610         inspecting a property with an expression, the property name
12611         appears as the first choice of the component association.
12613 2014-02-04  Robert Dewar  <dewar@adacore.com>
12615         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
12617 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12619         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
12620         for consistency with other messages.
12622 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12624         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
12625         iterator, indicate that the element is a constant if the container
12626         type does not have a variable indexing aspect.
12627         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
12628         marked as constant, do not reset its Ekind, to ensure that
12629         container elements in an element loop are not modified if the
12630         container (e.g. a hashed set) only has a constant indexing aspect.
12632 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
12634         * g-souinf.ads: Subprograms in this unit are actually not pure.
12635         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
12636         * einfo.ads (Is_Pure): Update doc to match implementation.
12638 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12640         * exp_ch13.adb: Minor spelling fix.
12642 2014-02-04  Robert Dewar  <dewar@adacore.com>
12644         * opt.ads: Minor comment update.
12646 2014-02-04  Robert Dewar  <dewar@adacore.com>
12648         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
12649         instead of Replace.
12651 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12653         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
12654         on null expressions if component type is non-null, when the
12655         corresponding association covers an empty range of index values.
12657 2014-02-04  Robert Dewar  <dewar@adacore.com>
12659         * sinfo.ads: Further comments on N_Expression_With_Actions node.
12661 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
12663         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
12664         variables Out_Items and Ref_Global. Remove local constant
12665         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
12666         and D8. Remove the useless collection of global items as this
12667         was a leftover from an earlier version of the routine. Move
12668         several routines out to avoid deep nesting and indentation.
12669         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
12670         parameter Do_Checks to Post_Errors. Update the comment on usage.
12671         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
12672         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
12673         to Post_Errors. Update the comment on usage. Account for the
12674         case where a self referential state may have a null input_list.
12675         (Is_Self_Referential): New routine.
12677 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12679         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
12680         entity renames an expression, as in the case of an object of
12681         an unconstrained type initialized by a function call, defer the
12682         rewriting of the expression to the expander.
12683         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
12684         'Alignment): If the entity renames an expression, introduce
12685         temporary to capture value, and rewrite original declaration to
12686         use temporary.
12688 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
12690         * g-comlin.adb: Minor typo fix.
12692 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
12694         * freeze.adb (Freeze_All): Types derived from a formal
12695         access_to_classwide type do not have a finalization master.
12697 2014-02-04  Robert Dewar  <dewar@adacore.com>
12699         * sprint.adb: Minor reformatting.
12701 2014-02-04  Robert Dewar  <dewar@adacore.com>
12703         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
12704         cases where Actions is a null list.
12705         * sinfo.ads (N_Expression_With_Actions): Actions can be
12706         temporarily empty during semantic analysis, but must be non-empty
12707         in the final expanded tree.
12709 2014-01-31  Robert Dewar  <dewar@adacore.com>
12711         * exp_ch9.adb: Minor reformatting.
12713 2014-01-31  Emmanuel Briot  <briot@adacore.com>
12715         * g-comlin.adb (Set_Command_Line): Take the switches
12716         configuration from the Command_Line_Config.
12718 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
12720         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
12721         refinement clause.
12723 2014-01-31  Vincent Celier  <celier@adacore.com>
12725         * projects.texi: Add more documentation about others used as an
12726         index in indexed attributes.
12728 2014-01-31  Robert Dewar  <dewar@adacore.com>
12730         * gnat_ugn.texi: Minor update.
12731         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
12732         * exp_util.adb: Minor reformatting.
12734 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12736         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
12737         depends on data that is not private to the protected object,
12738         and potentially modifiable in unsynchronized fashion.
12740 2014-01-31  Yannick Moy  <moy@adacore.com>
12742         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
12743         GNATprove_Mode.
12745 2014-01-31  Robert Dewar  <dewar@adacore.com>
12747         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
12748         for Unknown_Package.
12749         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
12751 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
12753         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
12754         the logic that generates a runtime check to determine the
12755         controlled status of the object about to be allocated or
12756         deallocated. Class-wide types now always use a runtime check
12757         even if they appear as generic actuals.
12758         (Find_Object): Detect
12759         a special case that involves interface class-wide types because
12760         the object appears as a complex expression.
12762 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12764         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
12765         subprogram with an incomplete untagged formals on the list of
12766         private dependents, to verify that the type is properly completed
12767         in the private part.
12768         * sem_attr.adb: Code clean up.
12770 2014-01-31  Robert Dewar  <dewar@adacore.com>
12772         * exp_ch6.adb: Minor reformatting.
12774 2014-01-31  Vincent Celier  <celier@adacore.com>
12776         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
12777         when Pkg is unknown.
12779 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
12781         * sem_res.adb (Resolve_Entity_Name): Comment
12782         reformatting. Allow volatile objects in various generated checks.
12784 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12786         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
12787         component association, set the etype of the identifier, for
12788         SPARK use.
12790 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
12792         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
12793         declared in a package, not checks can apply to the subprogram.
12795 2014-01-31  Robert Dewar  <dewar@adacore.com>
12797         * erroutc.adb (Validate_Specific_Warnings): Warnings are
12798         controlled -gnatw.W.
12799         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
12800         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
12802 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
12804         * exp_disp.adb: Update comments.
12806 2014-01-31  Yannick Moy  <moy@adacore.com>
12808         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
12809         Save_Global_References): Guard access to expression in aspect.
12811 2014-01-31  Yannick Moy  <moy@adacore.com>
12813         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
12814         Issue an error when the pragma is applied to a generic unit,
12815         a generic declaration, or inside a generic.
12817 2014-01-31  Yannick Moy  <moy@adacore.com>
12819         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
12820         entity.
12822 2014-01-31  Robert Dewar  <dewar@adacore.com>
12824         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
12825         reformatting.
12827 2014-01-31  Tristan Gingold  <gingold@adacore.com>
12829         * exp_disp.adb: Add a historic note.
12831 2014-01-31  Robert Dewar  <dewar@adacore.com>
12833         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
12834         Process_Deferred_References.
12836 2014-01-31  Yannick Moy  <moy@adacore.com>
12838         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
12839         ineffective pragma Warnings(Off) in GNATprove_Mode.
12841 2014-01-31  Bob Duff  <duff@adacore.com>
12843         * s-taskin.ads: Minor comment fix.
12844         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
12845         just direct dependents. If this is actually an abort, each task
12846         will take care of aborting its dependents, so all dependents will
12847         get aborted, as before. However, when this is called the second
12848         time from Vulnerable_Complete_Master "for convenience" (i.e. to
12849         kill off tasks waiting at terminate alternatives), aborting
12850         indirect dependents is wrong, because it causes some unrelated
12851         tasks to get aborted.
12853 2014-01-31  Robert Dewar  <dewar@adacore.com>
12855         * sem_ch4.adb: Minor reformatting.
12857 2014-01-31  Robert Dewar  <dewar@adacore.com>
12859         * exp_ch2.adb: New calling sequence for Is_LHS.
12860         * frontend.adb: Add call to Process_Deferred_References.
12861         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
12862         (Deferred_References): New table.
12863         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
12864         entries.
12865         (Find_Expanded_Name): Ditto.
12866         * sem_res.adb: New calling sequence for Is_LHS.
12867         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
12868         * sem_warn.adb: Call Process_Deferred_References before issuing
12869         warnings.
12871 2014-01-31  Tristan Gingold  <gingold@adacore.com>
12873         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
12874         use of System_Tasking_Protected_Objects_Single_Entry.
12875         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
12876         of Protected_Single_Entry_Call.
12877         (Expand_N_Timed_Entry_Call): Remove single_entry case.
12878         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
12879         single_entry case.
12880         (Make_Disp_Timed_Select_Body): Likewise.
12881         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
12882         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
12883         Self_Id parameter.
12884         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
12885         (Wait_For_Completion_With_Timeout): Remove.
12886         (Protected_Single_Entry_Call): Remove Mode parameter
12887         (always Simple_Call).
12888         (Service_Entry): Remove Self_Id constant (not used anymore).
12889         (Timed_Protected_Single_Entry_Call): Remove.
12890         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
12891         (Protected_Single_Entry_Call): Remove Mode parameter.
12893 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12895         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
12896         * einfo.ads (Get_Pragma): Update the comment on special pragmas
12897         handled by this routine.
12898         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
12899         to the contract of the related subprogram body.
12900         * sem_util.adb (Add_Contract_Item): Handle the insertion of
12901         pragma Refined_Post into the contract of a subprogram body.
12902         * sinfo.ads Update the documentation of node N_Contract.
12903         * sem_res.adb (Resolve_Entity_Name): Add a guard
12904         to detect abstract states and variables only when checking the
12905         SPARK 2014 rules concerning volatile object placement.
12907 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12909         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
12910         null is compatible with any access type.
12912 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12914         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
12915         placement is not in a package.
12917 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12919         * sem_util.adb (Has_Enabled_Property): Compare the character field of
12920         the sole property.
12922 2014-01-29  Robert Dewar  <dewar@adacore.com>
12924         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
12925         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
12926         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
12928 2014-01-29  Robert Dewar  <dewar@adacore.com>
12930         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
12931         * sem_warn.adb (Check_References): Suppress warnings if inside
12932         Initial_Condition pragma.
12934 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12936         * sem_prag.adb (Check_Missing_Part_Of): List all values of
12937         State_Space_Kind for readability reasons. Do not emit an error on
12938         a private item when the enclosing package lacks aspect/pragma
12939         Abstract_State. Do not emit an error on a private package
12940         instantiation when the corresponding generic template lacks
12941         visible state.
12942         (Has_Visible_State): New routine.
12943         * sem_util.adb (Find_Placement_In_State_Space): The visible
12944         declarations of any kind of child units in general act as proper
12945         placement location.
12947 2014-01-29  Robert Dewar  <dewar@adacore.com>
12949         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
12950         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
12951         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
12952         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
12953         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
12954         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
12955         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
12956         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
12957         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
12958         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
12959         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
12960         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
12961         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
12962         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
12963         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
12964         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
12965         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
12966         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
12967         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
12968         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
12969         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
12970         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
12971         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
12972         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
12973         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
12974         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
12975         s-regpat.adb, s-secsta.adb, s-stalib.ads,
12976         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
12977         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
12978         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
12979         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
12980         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
12982 2014-01-29  Robert Dewar  <dewar@adacore.com>
12984         * expander.adb: Minor reformatting.
12986 2014-01-29  Javier Miranda  <miranda@adacore.com>
12988         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
12989         previous patch.
12991 2014-01-29  Javier Miranda  <miranda@adacore.com>
12993         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
12994         that checks if an interface types defines the predefined "="
12995         function because the compiler was erroneously not generating the
12996         predefined "=" primitive as soon as the name of some interface
12997         primitive is "=" (formals were not checked).
12999 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13001         * expander.adb (Expander): In GNATprove mode, do not process
13002         transient scopes: they are in general not created in this mode,
13003         and an attempt to examine them will lead to constraint errors when
13004         processing configuration pragmas that have analyzable expressions.
13006 2014-01-29  Vincent Celier  <celier@adacore.com>
13008         * clean.adb (Gnatclean): Fail if main project is an aggregate
13009         project or if there is an aggregate library project in the
13010         project tree.
13011         * gnatcmd.adb: Fail if the main project is an aggregate project
13012         or if there is an aggegate library project in the project tree.
13013         * make.adb (Initialize): : Fail if main project is an aggregate
13014         project or if there is an aggregate library project in the
13015         project tree.
13016         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
13017         * prj-makr.adb (Initialize): Fail if the main project is an
13018         aggregate project or an aggregate library project.
13020 2014-01-29  Vincent Celier  <celier@adacore.com>
13022         * prj-part.adb (Check_Import_Aggregate): New procedure
13023         to check if an imported project is an aggregate project.
13024         (Parse_Single_Project): Call Check_Import_Aggregate
13025         * projects.texi: Document that aggregate projects cannot be
13026         extended or imported.
13028 2014-01-29  Robert Dewar  <dewar@adacore.com>
13030         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
13031         reformatting and code clean up.
13032         * gnat_ugn.texi: Add documentation section on Atomic Variables
13033         and Optimization.
13035 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13037         * einfo.adb Flag264 is now unused.
13038         (Has_Body_References): Removed.
13039         (Set_Has_Body_References): Removed.
13040         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
13041         * einfo.ads Update the comment on usage of attribute
13042         Body_References. Remove attribute Has_Body_References and its
13043         usage in nodes.
13044         (Has_Body_References): Removed along with pragma Inline.
13045         (Set_Has_Body_References): Removed along with pragma Inline.
13046         * sem_prag.adb (Analyze_Global_Item): Move the call to
13047         Record_Possible_Body_Reference in the state related checks
13048         section. Add a comment intended function.
13049         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
13050         in the state related checks section. Add a comment intended function.
13051         (Analyze_Refinement_Clause): Cleanup the illegal body reference
13052         reporting. Add a comment on timing of error reporting.
13053         (Record_Possible_Body_Reference): Reimplement the routine.
13055 2014-01-29  Vincent Celier  <celier@adacore.com>
13057         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
13058         unit-based languages.
13059         (Mains.Complete_Mains.Do_Complete): Use the source file project
13060         tree when calling Find_File_Add_Extension. Use the correct
13061         project name when reporting an error.
13063 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
13065         * aspects.adb Add an entry for aspect Part_Of in table
13066         Canonical_Aspect.
13067         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
13068         Aspect_Argument, Aspect_Names and Aspect_Delay.
13069         * atree.h Define Elist9.
13070         * atree.adb (Elist9): New routine.
13071         (Set_Elist9): New routine.
13072         * atree.ads (Elist9): New routine.
13073         (Set_Elist9): New routine.
13074         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
13075         the list of node usage.  Remove Refined_State from the list of
13076         node usage.
13077         (Encapsulating_State): New routine.
13078         (Get_Pragma):
13079         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
13080         (Refined_State): Removed.
13081         (Set_Encapsulating_State): New routine.
13082         (Set_Part_Of_Constituents): New routine.
13083         (Set_Refined_State): Removed.
13084         (Write_Field9_Name): Add an entry
13085         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
13086         Encapsulating_State. Remove the entry for Refined_State.
13087         * einfo.ads Add new attributes Encapsulating_State
13088         and Part_Of_Constituents alond with their usage in
13089         entities. Remove attribute Refined_State along with its
13090         usage in entities.
13091         (Encapsulating_State): New routine and
13092         pragma Inline.  (Get_Pragma): Update the comment on usage.
13093         (Part_Of_Constituents): New routine and pragma Inline.
13094         (Refined_State): Removed along with pragma Inline.
13095         (Set_Encapsulating_State): New routine and pragma Inline.
13096         (Set_Part_Of_Constituents): New routine and pragma Inline.
13097         (Set_Refined_State): Removed along with pragma Inline.
13098         * par-prag.adb Pragma Part_Of does not need any special processing
13099         by the parser.
13100         * sem_ch3.adb (Analyze_Declarations): Remove local variables
13101         Body_Id and Prag. Call separate routines to analyze the
13102         contract of a package [body].
13103         (Analyze_Object_Contract):
13104         Update the comment on usage. Remove local variables
13105         Items and Nam. Use Get_Pragma rather than traversing the
13106         classification list.  Verify whether the lack of indicator
13107         Part_Of agrees with the placement of the variable in state space.
13108         (Analyze_Object_Declaration): Initialize the encapsulating state
13109         of a variable.  (Requires_State_Refinement): Moved to sem_util.
13110         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
13111         (Analyze_Package_Contract): New routine.
13112         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
13113         (Analyze_Package_Contract): New routine.
13114         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
13115         state and Part_Of constituents.
13116         * sem_ch13.adb (Analyze_Aspect_Specifications):
13117         Add processing for aspect Part_Of. Update all
13118         calls to Decorate_Delayed_Aspect_And_Pragma.
13119         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
13120         not need any special processing at freeze time.
13121         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
13122         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
13123         update the associated comment.
13124         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
13125         (Analyze_Abstract_State): Add new global variable State_Id. Remove
13126         local constants Errors and Loc. Remove local variables Is_Null
13127         and State_Nam. Create the entity of the abstract state on the
13128         spot, before all remaining checks are performed. Verify that a
13129         missing Part_Of option agrees with the placement of the abstract
13130         state within the state space.
13131         (Analyze_Depends_In_Decl_Part):
13132         Add new global variables Constits_Seen and States_Seen. Check
13133         that a state and a corresponding constituent do not appear
13134         in pragma [Refined_]Depends.
13135         (Analyze_Global_In_Decl_Part):
13136         Add new global variables Constits_Seen and States_Seen. Check
13137         that a state and a corresponding constituent do not appear
13138         in pragma [Refined_]Global.
13139         (Analyze_Global_Item):
13140         Remove the now obsolete code that deals with Part_Of.
13141         Add the entity of the global item to the list of processed
13142         items.  (Analyze_Initializes_In_Decl_Part): Add new global
13143         variables Constits_Seen and States_Seen. Check that a state
13144         and a corresponding constituent do not appear in pragma
13145         Initializes.
13146         (Analyze_Initialization_Item): Add the entity
13147         of the initialization item to the list of processed items.
13148         (Analyze_Input_Item): Add the entity of the initialization
13149         item to the list of processed items.
13150         (Analyze_Input_Output):
13151         Remove the now obsolete code that deals with Part_Of.  Add the
13152         entity of the input/output to the list of processed items.
13153         (Analyze_Part_Of): New routine.
13154         (Analyze_Part_Of_Option): Remove
13155         local constant Par_State. Add local constant Encaps and local
13156         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
13157         the option. Turn the related state into a Part_Of constituent
13158         if the option is legal.
13159         (Analyze_Pragma): Add processing
13160         for pragma Part_Of.
13161         (Analyze_Refined_State_In_Decl_Part):
13162         Remove global constants Pack_Body and Spec_Id. Remove
13163         global variables Abstr_States and Hidden_States. Add new
13164         global variables Available_States, Body_Id, Body_States and
13165         Spec_Id. Add new local constant Body_Decl. Reimplement the
13166         logic that extracts the states available for refinement from
13167         the related package and the body hidden states of the said
13168         package.
13169         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
13170         (Check_Applicable_Policy): Alphabetize body.
13171         (Check_Dependency_Clause): Replace Refined_State
13172         with Encapsulating_State.
13173         (Check_Matching_Constituent):
13174         Reimplement the logic that determines whether an item is a valid
13175         / invalid constituent of the current refined state. Return when
13176         a construct does not denote a valid abstract state. Extract the
13177         list of Part_Of constituents for further analysis. Check that all
13178         Part_Of constituents of a state have been used in its refinement.
13179         (Check_Matching_State): Update the comment on usage. Operate
13180         on the list of available states.
13181         (Check_Missing_Part_Of): New routine.
13182         (Check_Refined_Global_Item): Replace Refined_State
13183         with Encapsulating_State.
13184         (Check_State_And_Constituent_Use): New routine.
13185         (Create_Abstract_State): New routine.
13186         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
13187         (Is_Part_Of): Removed.
13188         (Collect_Body_States): New routine.
13189         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
13190         (Collect_Hidden_States): Removed.
13191         (Report_Unrefined_States): Change the profile of the procedure along
13192         with the comment on usage.
13193         (Report_Unused_Constituents): New routine.
13194         (Report_Unused_Hidden_States): Removed.
13195         (Report_Unused_States): New routine.
13196         * sem_prag.ads (Check_Missing_Part_Of): New routine.
13197         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
13198         appear in the classification pragmas of a package instantiation
13199         or a variable.
13200         (Find_Placement_In_State_Space): New routine.
13201         (Is_Child): Removed.
13202         (Is_Child_Or_Sibling): Remove formal
13203         parameter Private_Child. Remove the private child checks.
13204         (Requires_State_Refinement): Moved from sem_ch3.
13205         * sem_util.ads Add new type State_Space_Kind along with
13206         comment on its usage and values.
13207         (Add_Contract_Item): Update the comment on usage.
13208         (Find_Body_Discriminal): Alphabetize spec.
13209         (Find_Placement_In_State_Space): New routine.
13210         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
13211         and update the comment on usage.
13212         (Requires_State_Refinement): Moved from sem_ch3.
13213         * sinfo.ads: Update the documentation of N_Contract.
13214         * snames.ads-tmpl The predefined name for Part_Of is now used
13215         to denote a pragma. Add Pragma_Id for Part_Of.
13217 2014-01-29  Emmanuel Briot  <briot@adacore.com>
13219         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
13220         machine as needed.
13221         (Dump): New subprogram.
13223 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13225         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
13226         Expand_Entry_Declaration to factorize code.
13228 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13230         * checks.adb: minor clarification.
13231         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
13232         search for primitive operations to the entities that immediately
13233         follow the type declaration.
13235 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13237         * exp_ch9.adb (Build_Protected_Entry): Do not call
13238         Complete_Entry_Body anymore.
13239         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
13240         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
13242 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
13244         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
13245         string when the Name input bigger than allowed. Adapt the function
13246         specification.
13248 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13250         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
13251         if expression is within a case_expression of if_expression.
13253 2014-01-29  Robert Dewar  <dewar@adacore.com>
13255         * exp_ch9.adb, inline.ads: Minor reformatting.
13257 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13259         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
13261 2014-01-29  Yannick Moy  <moy@adacore.com>
13263         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
13264         SPARK_Mode_Pragma components to be able to analyze generic
13265         instance.
13266         * sem_ch12.adb (Analyze_Package_Instantiation,
13267         Inline_Instance_Body, Need_Subprogram_Instance_Body,
13268         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
13269         for future analysis of the instance.
13270         (Instantiate_Package_Body,
13271         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
13272         from instantiation to analyze the instance.
13274 2014-01-29  Robert Dewar  <dewar@adacore.com>
13276         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
13277         reorganization.
13279 2014-01-29  Yannick Moy  <moy@adacore.com>
13281         * gnat_rm.texi: Update description of SPARK_Mode pragma.
13283 2014-01-29  Tristan Gingold  <gingold@adacore.com>
13285         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
13287 2014-01-29  Thomas Quinot  <quinot@adacore.com>
13289         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
13291 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
13293         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
13294         resulting string is an internal entity. and thus requires no
13295         initialization. This is relevant when Initialize_ Scalars is
13296         enabled, because the resultant spurious initialization may lead to
13297         secondary stack anomalies that produce a mangled name for a task.
13299 2014-01-29  Yannick Moy  <moy@adacore.com>
13301         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
13302         not inherited from spec anymore. Check consistency
13303         rules after processing of declarations.
13304         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
13305         from spec anymore. Check consistency rules after processing of
13306         declarations.
13307         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
13308         packages.
13309         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
13310         consistency rules.
13312 2014-01-27  Robert Dewar  <dewar@adacore.com>
13314         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
13315         to unordered msg.
13316         (Resolve_Range): Add type name/location to unordered msg.
13318 2014-01-27  Claire Dross  <dross@adacore.com>
13320         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
13321         Capacity) is only called with Capacity >= Length (Source) and
13322         Capacity in Capacity_Range.
13323         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
13324         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
13325         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
13326         in the code is this is not the case.
13328 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13330         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
13331         selected component in an instance where the component of the
13332         actual is not visibile at instantiation.
13334 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13336         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
13337         has a dynamic predicate, generate freeze node for Actual_Subtype
13338         at once, because the declaration of the corresponding predicate
13339         function will make reference to it.
13341 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13343         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
13345 2014-01-27  Robert Dewar  <dewar@adacore.com>
13347         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
13348         for 2**X optimization.
13350 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13352         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
13353         explicitly whether value is in range of Character, because the
13354         library is typically compiled with range checks disabled, and
13355         we cannot rely on the implicit check on the argument of 'Val.
13357 2014-01-27  Vincent Celier  <celier@adacore.com>
13359         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
13360         not the Target to itself.
13362 2014-01-27  Robert Dewar  <dewar@adacore.com>
13364         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
13365         changes to avoid incorrect use of unordered enum types.
13367 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13369         * sem_ch4.adb: Minor reformatting.
13371 2014-01-27  Robert Dewar  <dewar@adacore.com>
13373         * scn.adb (Check_End_Of_Line): Removed.
13374         (Error_Long_Line): Removed.
13375         (Determine_License): Use versions of above routines from Scanner.
13376         * scng.adb (Check_End_Of_Line): Moved to spec.
13377         (Error_Long_Line): Removed, no longer used.
13378         * scng.ads (Check_End_Of_Line): Moved here from body.
13380 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13382         * exp_ch7.adb (Build_Cleanup_Statements): Call
13383         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
13384         for protected body.
13385         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
13386          Remove Service_Name variable.
13387         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
13388         factorize code from the above subprograms.
13389         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
13391 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
13393         * einfo.adb (Has_Option): Reimplemented.
13394         * sem_prag.adb (Analyze_Refinement_Clause): Add global
13395         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
13396         External_Constit_Seen and State. Add local variables Body_Ref,
13397         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
13398         avoid a cumbersome while pool. Verify the legality of an external
13399         state and relevant properties.
13400         (Check_External_Property): New routine.
13401         (Check_Matching_State): Remove parameter profile
13402         and update comment on usage.
13403         (Collect_Constituent): Store the
13404         relevant external property of a constituent.
13405         * sem_util.adb (Async_Readers_Enabled): Update the call to
13406         Has_Enabled_Property.
13407         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
13408         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
13409         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
13410         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
13411         Update comment on usage. Reimplement the logic to recognize the various
13412         formats of properties.
13414 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13416         * par-ch5.adb: Minor reformatting.
13418 2014-01-27  Tristan Gingold  <gingold@adacore.com>
13420         * s-tposen.ads: Harmonize style and comments.
13422 2014-01-27  Vincent Celier  <celier@adacore.com>
13424         * projects.texi: Document that shared library projects, by
13425         default, cannot import projects that are not shared library
13426         projects.
13428 2014-01-27  Robert Dewar  <dewar@adacore.com>
13430         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
13431         of Rewrite.
13433 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13435         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
13436         any other exception is raised.
13437         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
13438         still necessary to perform a conversion in order to remove overlong
13439         encodings.
13441 2014-01-27  Robert Dewar  <dewar@adacore.com>
13443         * exp_smem.adb: Minor reformatting.
13445 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13447         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
13449 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13451         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
13452         nodes for operands to the original node for the call, to preserve
13453         Original_Node pointers within the resolved operands, given that
13454         they may have been rewritten as well. Previous approach copied
13455         the operands into a new tree and lost those pointers.
13457 2014-01-27  Claire Dross  <dross@adacore.com>
13460         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
13462 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13464         * sem_util.adb (Check_Internal_Protected_Use): A call through
13465         an anonymous access parameter of the current protected function
13466         is not a potential modification of the current object.
13468 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13470         * a-cobove.adb (Reserve_Capacity): Procedure raises
13471         Capacity_Error, not Constraint_Error, when request cannot be
13472         satisfied.
13474 2014-01-27  Vincent Celier  <celier@adacore.com>
13476         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
13477         not the Target to itself.
13479 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13481         * exp_ch4.adb (Expand_Concatenate): If the target of the
13482         concatenation is a library-level entity, always use the off-line
13483         version of concatenation, regardless of optimization level. This
13484         is space-efficient, and prevents linking problems when some
13485         units are compiled with different optimization levels.
13487 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13489         * sem_ch5.adb: Code clean up.
13491 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13493         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
13494         when an array or container iterator includes a subtype indication,
13495         which is only legal in an element iterator.
13497 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13499         * exp_ch7.adb: Minor reformatting.
13501 2014-01-27  Robert Dewar  <dewar@adacore.com>
13503         * opt.adb (SPARK_Mode): Default for library units is None rather
13504         than Off.
13505         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
13506         no longer ordered.
13507         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
13508         possibility.
13509         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
13511 2014-01-27  Robert Dewar  <dewar@adacore.com>
13513         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
13514         Suspicious_Labels table if we have identifier; followed by loop
13515         or block.
13516         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
13517         * par.adb (Suspicious_Labels): New table.
13519 2014-01-27  Robert Dewar  <dewar@adacore.com>
13521         * exp_aggr.adb (Check_Bounds): Reason is range check, not
13522         length check.
13524 2014-01-27  Yannick Moy  <moy@adacore.com>
13526         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
13527         reference.
13528         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
13529         function now.
13530         (Add_SPARK_Xrefs): Include references to constants.
13531         * spark_xrefs.ads Document new character 'c' for references to
13532         constants.
13534 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13536         * exp_smem.adb (Add_Write_After): For a function call, insert write as
13537         an after action in a transient scope.
13539 2014-01-27  Thomas Quinot  <quinot@adacore.com>
13541         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
13542         to a shared variable as an OUT formal in a call to an init proc,
13543         the 'Read call must be emitted after, not before, the call.
13545 2014-01-27  Robert Dewar  <dewar@adacore.com>
13547         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
13549 2014-01-27  Robert Dewar  <dewar@adacore.com>
13551         * a-wichha.adb (Character_Set_Version): Change to output proper
13552         value.
13554 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
13556         * einfo.adb (Is_Input_Only_State): Removed.
13557         (Is_Non_Volatile_State): Removed.
13558         (Is_Output_State): Removed.
13559         * einfo.ads (Is_Input_Only_State): Remove attribute and
13560         subprogram. Update related entity.
13561         (Is_Non_Volatile_State):
13562         Remove attribute and subprogram. Update related entity.
13563         (Is_Output_State): Removed attribute and subprogram. Update
13564         related entity.
13565         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
13566         generated code.
13567         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
13568         an object, not just variables.
13569         (Analyze_Object_Contract): New routine.
13570         (Analyze_Variable_Contract): Removed.
13571         (Process_Discriminants): Detect an illegal use of volatile
13572         discriminant in SPARK mode.
13573         * sem_ch5.adb (Analyze_Iterator_Specification):
13574         Detect an illegal use of volatile loop variable.
13575         (Analyze_Loop_Parameter_Specification): Detect an illegal use
13576         of volatile loop variable.
13577         * sem_ch6.adb (Process_Formals): Update the volatile object
13578         detection. Detect an illegal formal of mode IN OUT or OUT in
13579         SPARK mode. Enhance the error messages with references.
13580         * sem_ch12.adb (Instantiate_Object): Update the volatile object
13581         detection. Enhance the error messages with references.
13582         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
13583         messages with references.
13584         (Analyze_Contract_Case): Enhance the error messages with references.
13585         (Analyze_External_Property): Call Check_Duplicate_Property to process
13586         an external property.
13587         (Analyze_External_Property_In_Decl_Part): New routine.
13588         (Analyze_External_State_In_Decl_Part): Removed.
13589         (Analyze_Global_Item): Detect an illegal
13590         use of a volatile constant. Detect an illegal use
13591         of a variable with enabled Effective_Reads. Enhance
13592         the error messages with references. Remove obsolete
13593         checks concerning Input_Only and Output_Only states.
13594         (Analyze_Initialization_Item): Enhance the error messages
13595         with references.
13596         (Analyze_Initializes_In_Decl_Part): Do not
13597         collect the states and variables when the initialization list
13598         is null.
13599         (Analyze_Input_Item): Enhance the error messages with references.
13600         (Analyze_Input_Output): Enhance the error messages with references.
13601         (Analyze_Pragma): Enhance the error messages with references.
13602         (Analyze_Refinement_Clause): Code reformatting.
13603         (Analyze_Refined_Depends_In_Decl_Part):
13604         Rename global variable Global to Reg_Global and update all
13605         occurrences. Add local variables D7 and D8. Update the error
13606         messages with references. Update the call to Collect_Global_Items.
13607         (Analyze_Refined_Global_In_Decl_Part): Add local variables
13608         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
13609         the call to Collect_Global_Items.  Account for a Proof_In state
13610         in null / useless refinement checks. Verify the coverage of
13611         Proof_In states.
13612         (Check_Dependency_Clause): Remove local variable
13613         Out_Constits. Remove the retrieval and removal of constituents
13614         for an Output_Only state. Remove the reporting of unused
13615         Output_Only state constituents.
13616         (Check_Duplicate_Mode): Enhance
13617         the error message with a reference.
13618         (Check_Duplicate_Property): New routine.
13619         (Check_Duplicate_Option): Enhance the error message with a reference.
13620         (Check_External_Properties): Enhance the error message with a reference.
13621         (Check_Function_Return): Enhance the error message with a reference.
13622         (Check_In_Out_States): Update
13623         comment on usage. Add a specialized error message for Proof_In
13624         constituents. Enhance the error message with a reference.
13625         (Check_Input_States): Update comment on usage. Account for
13626         possible Proof_In constituents. Enhance the error message
13627         with a areference.
13628         (Check_Matching_Constituent): Enhance the error message with a
13629         reference.
13630         (Check_Matching_State): Enchance the error message with a reference.
13631         (Check_Mode): Add local variable From_Global. Update the call to
13632         Find_Mode.  Emit more precise error messages concerning extra items
13633         (Check_Mode_Restriction_In_Enclosing_Context): Consider
13634         pragma Refined_Global.  Enhance the error message with a
13635         reference.
13636         (Check_Mode_Restriction_In_Function): Enhance the error message with
13637         a reference.
13638         (Check_Output_States): Update comment on usage. Add local variable
13639         Posted.  Account for possible Proof_In constituents. Produce a detailed
13640         list of missing constituents.
13641         (Check_Proof_In_States): New routine.
13642         (Check_Refined_Global_Item): Handle Proof_In
13643         constituents. Enchance the error message with a reference.
13644         (Collect_Global_Items): Add formal parameters Proof_In_Items
13645         and Has_Proof_In_State. Update the comment on usage. Account
13646         for Proof_In items.
13647         (Create_Or_Modify_Clause): Enchance
13648         the error message with a reference.
13649         (Find_Mode): Add
13650         formal parameter From_Global. Update the comment on usage.
13651         Detect when the mode is governed by pragma [Refined_]Global.
13652         (Output_Constituents): Removed.
13653         (Report_Extra_Constituents):
13654         Report extra Proof_In constituents.
13655         (Report_Unused_Constituents): Removed.
13656         (Usage_Error): Code reformatting. Enhance the error
13657         messages with reference.
13658         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
13659         (Analyze_External_State_In_Decl_Part): Removed.
13660         * sem_res.adb (Resolve_Actuals): Update the volatile object
13661         detection. Enhance the error message with a reference.
13662         (Resolve_Entity_Name): Update the volatile object
13663         detection. Enhance the error message with a reference.
13664         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
13665         (Is_SPARK_Volatile_Object): New routine.
13666         (Has_Volatile_Component): New routine.
13667         * sem_util.ads (Is_Delegate): Alphabetized.
13668         (Is_SPARK_Volatile_Object): New routine.
13669         (Has_Volatile_Component): New routine.
13670         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
13672 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
13674         * sem_attr.adb: Resolve fully prefix of 'Update.
13676 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
13678         * gnat_rm.texi: Minor clarifications.
13680 2014-01-27  Robert Dewar  <dewar@adacore.com>
13682         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
13683         about call that is generated as part of an Initial_Condition
13684         check.
13685         * sem_prag.adb: Minor spelling correction.
13687 2014-01-27  Robert Dewar  <dewar@adacore.com>
13689         * sem_prag.adb (Set_Convention_From_Pragma): Check that
13690         convention Ghost can only apply to functions.
13691         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
13693 2014-01-27  Robert Dewar  <dewar@adacore.com>
13695         * gnat_ugn.texi: Add Short_Enums to documentation of
13696         -gnatet/-gnateT.
13698 2014-01-27  Robert Dewar  <dewar@adacore.com>
13700         * sem_prag.adb (Analyze_Input_Item): Correct check for input
13701         item in same package.
13702         * sem_util.ads, sem_util.adb (Within_Scope): New function.
13704 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
13706         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
13707         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
13708         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
13709         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
13710         maintained.
13712 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13714         * gcc-interface/Makefile.in: Fix oversight.
13716 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13718         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
13719         conversion from a thin pointer with a shifted value.
13720         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
13721         read-only flag from the values onto the result.
13722         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
13724 2014-01-25  Tristan Gingold  <gingold@adacore.com>
13726         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
13727         for E_Variable with a pragma Linker_Section.
13729 2014-01-25  Robert Dewar  <dewar@adacore.com>
13731         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
13732         with Default_Value aspect is passed in by copy.
13734 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
13736         * set_targ.adb: Set Short_Enums.
13737         * gcc-interface/lang.opt (fshort-enums): New option.
13738         * gcc-interface/misc.c (gnat_handle_option): Handle it.
13739         (gnat_post_options): Do not modify the global settings.
13741 2014-01-24  Robert Dewar  <dewar@adacore.com>
13743         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
13744         function.
13745         (Random_Decimal_Fixed): New generic function.
13746         * s-rannum.ads: Minor comment clarifications.
13748 2014-01-24  Robert Dewar  <dewar@adacore.com>
13750         * back_end.adb: Remove Short_Enums handling (handled in
13751         Ttypes/Get_Targ now) Minor added comments.
13752         * freeze.adb: Change name Short_Enums_On_Target to
13753         Target_Short_Enums.
13754         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
13755         * opt.ads: Minor comment updates.
13756         * sem_ch13.adb: Change name Short_Enums_On_Target to
13757         Target_Short_Enums.
13758         * set_targ.adb: Set Short_Enums from gcc back end.
13759         * set_targ.ads (Short_Enums): New variable.
13760         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
13761         Ttypes/Get_Targ now).
13762         * ttypes.ads (Target_Short_Enums): New constant boolean switch
13764 2014-01-24  Pascal Obry  <obry@adacore.com>
13766         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
13768 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
13770         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
13771         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
13772         stripped off.
13774 2014-01-24  Robert Dewar  <dewar@adacore.com>
13776         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
13778 2014-01-24  Vincent Celier  <celier@adacore.com>
13780         * prj.adb (Add_Aggregated_Project): Do not add a project in
13781         the list if it is already there.
13783 2014-01-24  Yannick Moy  <moy@adacore.com>
13785         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
13786         Correct the search for a subrogram declaration to which a pragma is
13787         attached.
13789 2014-01-24  Bob Duff  <duff@adacore.com>
13791         * gnat_ugn.texi: Document --decimal-grouping and
13792         --based-grouping switches in gnatpp.
13794 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13796         * sinfo.ads: Documentation update.
13798 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13800         * sem_ch3.adb (Constant_Redeclaration): New declaration is
13801         illegal if previous one has an initial expression that is an
13802         aggregate expanded into assignments.
13804 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13806         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
13807         code reorganization to remove spurious warning on a loop with
13808         an array element iterator that has a null range.
13810 2014-01-24  Vincent Celier  <celier@adacore.com>
13812         * make.adb (Binding_Phase): When setting the Ada paths, use
13813         the library ALI dir, not the object dir in libraries.
13815 2014-01-24  Yannick Moy  <moy@adacore.com>
13817         * sinfo.ads: Add documentation of check flag fields.
13819 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13821         * sem_res.adb (Resolve_Actuals): If an actual is a view
13822         conversion of a discriminated object, and the formal type is
13823         discriminated and constrained, apply a discriminant check to
13824         the object itself.
13826 2014-01-24  Robert Dewar  <dewar@adacore.com>
13828         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
13830 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13832         * sem_ch3.adb (Analyze_Declarations): At the end of an
13833         appropriate declarative part, call Freeze_All from the first
13834         declaration in the scope, not from the first unfrozen one. This
13835         is necessary to apply visibility checks to entities with delayed
13836         aspects. Otherwise, in the presence of instantiations and cleanups
13837         that they may generate, the delayed aspects may be analyzed too
13838         late and produce spurious visibility errors.
13839         * sem_attr.adb: Place etype on range.
13840         * sem_ch6.adb: Documentation expression functions.
13842 2014-01-24  Robert Dewar  <dewar@adacore.com>
13844         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
13845         terminology in compiler).
13847 2014-01-24  Robert Dewar  <dewar@adacore.com>
13849         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
13850         categories, now that Ada 95 supports raise expressions.
13852 2014-01-24  Robert Dewar  <dewar@adacore.com>
13854         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
13855         Short_Enums_On_Target.
13856         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
13857         into account.
13858         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
13860 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13862         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
13863         indication is given explicity, check that it matches the array
13864         component type or the container element type of the domain
13865         of iteration.
13867 2014-01-24  Tristan Gingold  <gingold@adacore.com>
13869         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
13870         * gcc-interface/misc.c (flag_short_enums): Declare.
13871         (gnat_post_options): Set it.
13873 2014-01-24  Vincent Celier  <celier@adacore.com>
13875         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
13876         to cache the result when Including_Libraries is False.
13877         * prj-env.ads (Ada_Objects_Path): Update documentation
13878         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
13879         (Get_Object_Directory): Return the Library_Ali_Dir only when
13880         when Including_Libraries is True.
13881         * prj.ads (Get_Object_Directory): Fix and complete documentation
13882         (Project_Data): New component Ada_Objects_Path_No_Libs
13884 2014-01-24  Robert Dewar  <dewar@adacore.com>
13886         * checks.adb (Expr_Known_Valid): Result of fpt operator never
13887         considered valid.
13889 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
13891         * back_end.adb: Minor fix in comment.
13893 2014-01-24  Javier Miranda  <miranda@adacore.com>
13895         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
13896         required to report the error in case of task types.
13898 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13900         * sem_attr.adb: Additional index checking.
13902 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13904         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
13905         expressions in each component association, and for records note
13906         the entity in each association choice, for subsequent resolution.
13907         (Resolve_Attribute, case 'Update): Complete resolution of
13908         expressions in each component association.
13910 2014-01-24  Robert Dewar  <dewar@adacore.com>
13912         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
13913         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
13914         leading to wrong handling of SPARK_Mode for library units).
13916 2014-01-24  Robert Dewar  <dewar@adacore.com>
13918         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
13919         on generic instances (do not consider them to be internally
13920         generated)
13922 2014-01-24  Doug Rupp  <rupp@adacore.com>
13924         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
13925         vice pthread_sigmask.
13927 2014-01-24  Vincent Celier  <celier@adacore.com>
13929         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
13930         not default.
13932 2014-01-24  Vincent Celier  <celier@adacore.com>
13934         * prj-ext.adb (Add): Do not output anything when Silent is True,
13935         whatever the verbosity. When Source is From_External_Attribute,
13936         set the corresponding environment variable if it is not already set.
13937         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
13938         to False
13939         * prj-proc.adb (Process_Expression_For_Associative_Array):
13940         For attribute External, call Prj.Ext.Add with Silent set to
13941         True for the child environment, to avoid useless output in non
13942         default verbosity.
13944 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13946         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
13947         range given by a subtype indication, and force evaluation of
13948         the bounds, as for a simple range.
13949         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
13950         of bounds of slice for various kinds of discrete ranges.
13951         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
13952         Evaluate_Slice_Bounds.
13954 2014-01-24  Bob Duff  <duff@adacore.com>
13956         * s-taskin.ads (Activator): Make this Atomic, because
13957         Activation_Is_Complete reads it, and that can be called
13958         from any task. Previously, this component was only
13959         modified by the activator before activation, and by
13960         Self after activation.
13961         * a-taside.ads, a-taside.adb (Environment_Task,
13962         Activation_Is_Complete): Implement these missing functions.
13964 2014-01-24  Doug Rupp  <rupp@adacore.com>
13966         * init.c: Add a handler section for Android.
13968 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
13970         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
13972 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13974         * sem_ch4.adb (Operator_Check): If one operand is a
13975         Raise_Expression, set its type to that of the other operand.
13976         * sem_res.adb (Resolve_Raise_Expression): new procedure.
13977         (Resolve_Actuals): For an actual that is a Raise_Expression,
13978         set the type to that of the formal.
13979         * sem_type.adb (Find_Unique_Type): If one of the operands is a
13980         Raise_Expression, return type of the other operand.
13982 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13984         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
13985         component of the record has a type with a default aspect, and
13986         the corresponding aggregate component is initiaized with a box,
13987         use the default value in the rewritten aggregate.
13989 2014-01-24  Tristan Gingold  <gingold@adacore.com>
13991         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
13992         s-interr-sigaction.adb,
13993         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
13994         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
13995         to the call to Install_Restricted_Handlers.
13997 2014-01-24  Emmanuel Briot  <briot@adacore.com>
13999         * prj-nmsc.adb (Check_File): Add protection when the source is
14000         not fully initialized.
14002 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
14004         * sem_util.adb (Is_Post_State): In a postcondition, a selected
14005         component that denotes an implicit dereference is a reference
14006         to the post state of the subprogram.
14008 2014-01-24  Robert Dewar  <dewar@adacore.com>
14010         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
14011         for generated subprograms.
14012         (Analyze_Subprogram_Specification): Ditto.
14014 2014-01-24  Vincent Celier  <celier@adacore.com>
14016         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
14017         attributes in package Builder of aggregate and aggregate library
14018         projects.
14019         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
14020         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
14021         Remove parameters.  Change error message from "... externally
14022         build library ..." to "... externally built project ...".
14023         (Process_Naming_Scheme.Check): Do not do any check in aggregate
14024         project, as attribute Library_Dir and Library_Name have already
14025         been detected as forbidden.
14027 2014-01-24  Vincent Celier  <celier@adacore.com>
14029         * prj-env.adb (Find_Project): If cached project path is not in
14030         project directory, look in current directory first and use cached
14031         project path only if project is not found in project directory.
14033 2014-01-24  Robert Dewar  <dewar@adacore.com>
14035         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
14037 2014-01-24  Vincent Celier  <celier@adacore.com>
14039         * projects.texi: Document that aggregate projects are only
14040         supported by gprbuild, but not by gnatmake.  Document that the
14041         only attribute Switches in package Binder of aggregate projects
14042         will be ignored if its index is not others.  Document that
14043         attribute Global_Config_File is allowed in package Binder of
14044         aggregate projects.
14046 2014-01-24  Robert Dewar  <dewar@adacore.com>
14048         * sem_prag.adb: Minor code reorganization.
14049         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
14051 2014-01-24  Pascal Obry  <obry@adacore.com>
14053         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
14054         attribute definition.
14056 2014-01-24  Vincent Celier  <celier@adacore.com>
14058         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
14059         in the Queue the same source (same path, same multi-source index)
14060         from the same project file, to avoid compiling several times
14061         the same source.
14063 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
14065         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
14066         (Has_Gigi_Rep_Item): Likewise.
14067         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
14068         Has_Gigi_Rep_Item for objects.
14069         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
14070         (prepend_one_attribute): ...this.
14071         (prepend_one_attribute_pragma): New function extracted from...
14072         (prepend_attributes): ...here.  Swap the parameters for consistency.
14073         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
14074         prepend_attributes.
14075         <object>: Deal with a pragma Linker_Section on a constant
14076         or variable.  <E_Function>: Deal with a pragma Linker_Section
14077         on a subprogram.
14078         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
14080 2014-01-24  Vincent Celier  <celier@adacore.com>
14082         * opt.ads: Minor comment update.
14084 2014-01-24  Robert Dewar  <dewar@adacore.com>
14086         * sem_prag.adb (Analyze_Input_Output): Add missing error check
14087         for junk operand.
14088         * sem_util.adb (Is_Refined_State): Add defense against junk
14089         tree from error.
14091 2014-01-24  Pascal Obry  <obry@adacore.com>
14093         * projects.texi: Removes Build_Slaves attribute documentation.
14095 2014-01-23  Robert Dewar  <dewar@adacore.com>
14097         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
14098         setting.
14100 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14102         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
14103         applies to expressions that come from source.
14104         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
14105         message.
14106         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
14107         rule regarding potentially unevaluated expressions, to prefix
14108         of attribute.
14110 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14112         * exp_util.adb (Make_Invqriant_Call): If type of expression is
14113         a private extension, get invariant from base type.
14115 2014-01-23  Robert Dewar  <dewar@adacore.com>
14117         * sem_util.adb, sem_attr.adb: Minor reformatting.
14119 2014-01-23  Robert Dewar  <dewar@adacore.com>
14121         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
14122         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
14123         * sem.adb (Semantics): Remove save/restore of
14124         SPARK_Mode[_Pragma]. Not needed since already done in
14125         Save/Restore_Opt_Config_Switches.
14127 2014-01-23  Robert Dewar  <dewar@adacore.com>
14129         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
14130         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
14131         Linker_Section enhancements.
14133 2014-01-23  Tristan Gingold  <gingold@adacore.com>
14135         * gnat_rm.texi: Minor editing.
14137 2014-01-23  Robert Dewar  <dewar@adacore.com>
14139         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
14140         with'ed internal units.
14141         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
14143 2014-01-23  Javier Miranda  <miranda@adacore.com>
14145         * lib-xref.adb (Generate_Reference): As part of processing the
14146         "end-of-spec" reference generate an extra reference to the first
14147         private entity of the package.
14148         * xr_tabls.adb (Add_Reference): No action needed for the extra
14149         'E' reference associated; similar to the processing of the
14150         'e' reference.
14152 2014-01-23  Bob Duff  <duff@adacore.com>
14154         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
14156 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14158         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
14159         predicate to implement rule given in 6.1.1 (20/3).
14160         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
14161         'Old in a postcondition, if it is potentially unevaluated and
14162         it is not an entity name.
14164 2014-01-23  Bob Duff  <duff@adacore.com>
14166         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
14168 2014-01-23  Robert Dewar  <dewar@adacore.com>
14170         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
14171         msg on VMS.
14173 2014-01-23  Bob Duff  <duff@adacore.com>
14175         * g-dynhta.ads: Minor comment fix.
14177 2014-01-23  Yannick Moy  <moy@adacore.com>
14179         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
14180         from spec on body only when not already inherited on spec. Set
14181         SPARK_Mode from context on body without previous spec.  *
14182         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
14183         library-level entities.  Correct retrieval of entity from
14184         declaration, for cases where the declaration is not a unit.
14185         * sem_ch12.adb (Instantiate_Object): Avoid
14186         calling Is_Volatile_Object on an empty node.
14188 2014-01-23  Robert Dewar  <dewar@adacore.com>
14190         * gnatlink.adb (Gnatlink): Check for suspicious executable file
14191         names on windows.
14193 2014-01-23  Robert Dewar  <dewar@adacore.com>
14195         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
14196         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
14197         style errors in instances.
14198         * g-dynhta.ads (Static_HTable): Comment updates.
14200 2014-01-23  Vincent Celier  <celier@adacore.com>
14202         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
14203         to find a configuration project file when Config_File_Name is
14204         No_Configuration_File.
14205         * prj-conf.ads (No_Configuration_File): New constant String.
14206         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
14207         with Config_File_Name set to No_Configuration_File, so that
14208         no existing configuration project file will be used, and the
14209         configuration project will be only created in memory when
14210         Add_Default_GNAT_Naming_Scheme is called.
14211         * projects.texi: Minor reformatting.
14213 2014-01-23  Vincent Celier  <celier@adacore.com>
14215         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
14216         a config project file if On_Load_Config is not null.
14217         * prj-pars.adb: Minor comment changes.
14219 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
14221         * lib-xref.adb (Output_References): Output progenitors of
14222         synchronized tagged types, for source navigation.
14224 2014-01-23  Robert Dewar  <dewar@adacore.com>
14226         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
14227         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
14228         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
14230 2014-01-23  Emmanuel Briot  <briot@adacore.com>
14232         * prj-conf.adb (Get_Or_Create_Configuration_File): call
14233         On_Load_Config later.
14235 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
14237         * sem_ch3.adb (Analyze_Declarations): Do not
14238         generate the spec of the late primitive in ASIS mode. Add two
14239         comments to explain the special cases when the expansion is
14240         not performed.
14242 2014-01-23  Robert Dewar  <dewar@adacore.com>
14244         * sem_util.adb (Note_Possible_Modification): Fix error of
14245         misbehaving for implicit dereference cases in -gnatc mode.
14247 2014-01-23  Emmanuel Briot  <briot@adacore.com>
14249         * prj-pars.adb: Minor reformatting.
14251 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14253         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
14254         body generated for an expression function within a protected body
14255         needs a set of renaming declarations if the expression function
14256         comes from source.
14258 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14260         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
14261         list interface progenitor of a tagged concurrent type, for better
14262         source navigation.
14264 2014-01-22  Robert Dewar  <dewar@adacore.com>
14266         * lib.adb (In_Extended_Main_Code_Unit): Return False for
14267         Standard_Location.
14268         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
14269         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
14270         treatment of Slocs No_Location and Standard_Location.
14271         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
14272         check for entity with Standard_Location Sloc, rather than relying
14273         on Lib routines to do that.
14274         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
14275         that a call cannot occur before a later occuring body within
14276         the same unit.
14278 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14280         * rtsfind.adb: Update comment.
14282 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
14284         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
14285         * sem_ch3.adb (Analyze_Declarations): Add local variable
14286         Body_Seen. Generate the spec of a late controlled
14287         primitive body that is about to freeze its related type.
14288         (Handle_Late_Controlled_Primitive): New routine.
14290 2014-01-22  Robert Dewar  <dewar@adacore.com>
14292         * a-stream.adb: Minor reformatting.
14294 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14296         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
14297         sub-procedure Declared_In_Actual to handle properly the visibility
14298         of actuals in actual packages, that are themselves actuals to a
14299         actual package of the current instance. This mimics properly the
14300         visibility of formals of formal packages declared with a box,
14301         within the corresponding generic unit.
14303 2014-01-22  Robert Dewar  <dewar@adacore.com>
14305         * checks.adb: Do not assume that a volatile variable is valid.
14307 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14309         * g-catiio.ads (Image, Value): Clarify that these functions
14310         operate in the local time zone.  Minor documentation update.
14312 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14314         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
14316 2014-01-22  Robert Dewar  <dewar@adacore.com>
14318         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
14319         Moved to sem_aux.adb.
14321 2014-01-22  Robert Dewar  <dewar@adacore.com>
14323         * vms_data.ads: Minor reformatting.
14325 2014-01-22  Robert Dewar  <dewar@adacore.com>
14327         * debug.adb: Document messages affected by -gnatd.E including
14328         the new ones that relate to late definition of equality.
14329         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
14330         debug flag -gnatd.E is set, then generate warnings rather than
14331         errors.
14332         (Check_Untagged_Equality): In earlier versions of Ada,
14333         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
14335 2014-01-22  Robert Dewar  <dewar@adacore.com>
14337         * sem_prag.adb (Usage_Error): Output additional messages for
14338         unconstrained OUT parameters lacking an input dependency.
14340 2014-01-22  Robert Dewar  <dewar@adacore.com>
14342         * sem_ch4.adb: Minor reformatting.
14344 2014-01-22  Robert Dewar  <dewar@adacore.com>
14346         * restrict.ads: Minor reformatting.
14347         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
14348         forbids a call from within a subprogram to the same subprogram.
14350 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14352         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
14353         stream attributes for Stream_Element_Array.
14354         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
14355         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
14356         defined in the current scope.
14358 2014-01-22  Robert Dewar  <dewar@adacore.com>
14360         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
14362 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14364         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
14366 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14368         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
14369         declaration initialized with a function call, whose type
14370         has variable size, need to remove side effects so that the
14371         initialization expression becomes a dereference of a temporary
14372         reference to the function result.
14374 2014-01-22  Yannick Moy  <moy@adacore.com>
14376         * errout.adb (Initialize): Remove trick to add dummy entry
14377         in Warnings table.
14378         * erroutc.adb (Set_Warnings_Mode_Off,
14379         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
14380         command line switch.
14381         * opt.ads (Warning_Mode): Document behavior
14382         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
14384 2014-01-22  Robert Dewar  <dewar@adacore.com>
14386         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
14388 2014-01-22  Robert Dewar  <dewar@adacore.com>
14390         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
14391         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
14392         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
14393         case Storage_Size): call Check_Pool_Size_Clash.
14395 2014-01-22  Robert Dewar  <dewar@adacore.com>
14397         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
14398         sem_eval.ads: Minor reformatting.
14400 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14402         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
14403         Any_Composite to prevent cascaded errors.
14405 2014-01-22  Yannick Moy  <moy@adacore.com>
14407         * errout.adb (Initialize): Do not insert special entry in Warnings
14408         table in GNATprove_Mode.
14409         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
14410         GNATprove_Mode.
14411         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
14412         warnings anymore.
14414 2014-01-22  Robert Dewar  <dewar@adacore.com>
14416         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
14417         initializes case.
14419 2014-01-22  Robert Dewar  <dewar@adacore.com>
14421         * snames.ads-tmpl: Update header.
14423 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14425         * exp_util.adb (Insert_Actions): When inserting actions on a
14426         short circuit operator that has already been analyzed, do not park
14427         actions in node; instead introduce an N_Expression_With_Actions
14428         and insert actions immediately.
14429         Add guard for unexpected case of climbing up through statement
14430         in Actions list of an N_Expression_With_Actions.
14431         * sem_elab.adb (Insert_Elab_Check): Remove complex
14432         specialized circuitry for the case where the context is already
14433         analyzed, as it is not needed and introduces irregularities in
14434         finalization. Instead rely on the above change to Insert_Actions
14435         to ensure that late insertion on short circuit operators works
14436         as expected.
14438 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14440         * sem_ch4.adb (Operator_Check): Improve error message when an
14441         operand of concatenation is an access type.
14443 2014-01-22  Thomas Quinot  <quinot@adacore.com>
14445         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
14446         cascaded error.
14448 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
14450         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
14451         of an expanded name in a proper body, whose prefix is a package
14452         in the context of the proper body, when there is a homonym of
14453         the package declared in the parent unit.
14455 2014-01-22  Robert Dewar  <dewar@adacore.com>
14457         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
14458         msg if errors found.
14459         (Check_One_Unit): Same change.
14461 2014-01-22  Robert Dewar  <dewar@adacore.com>
14463         * ug_words: Add missing/wrong entries for VMS warning switches.
14464         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
14466 2014-01-22  Jerome Guitton  <guitton@adacore.com>
14468         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
14469         arm.
14471 2014-01-22  Robert Dewar  <dewar@adacore.com>
14473         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
14475 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14477         * gcc-interface/Makefile.in: Minor fixes.
14479 2014-01-21  Robert Dewar  <dewar@adacore.com>
14481         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
14482         * par-ch5.adb (P_Condition): New version with expression prescanned.
14483         * par.adb (P_Condition): New version with expression prescanned.
14485 2014-01-21  Robert Dewar  <dewar@adacore.com>
14487         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
14488         if Address is not a private type.
14489         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
14490         Ignore pragma if System.Address is not a private type.
14492 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14494         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
14495         uninitialized value.
14497 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14499         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
14501 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14503         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
14504         the value of Assertions_Enabled flag when compiling an instance of
14505         an internal unit. This facilitates the use of pre/postconditions
14506         in generic internal units, such as the new elementary function
14507         libraries.
14509 2014-01-21  Robert Dewar  <dewar@adacore.com>
14511         * exp_aggr.adb: Minor reformatting.
14512         * sem_attr.adb: Minor reformatting.
14513         * sem_res.adb: Minor comment addition.
14514         * einfo.adb: Minor comment updates.
14515         * freeze.adb: Minor reformatting and code reorganization.
14517 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14519         * par-ch4.adb (P_If_Expression): Handle more gracefully an
14520         elsif clause that does not have an else part.
14522 2014-01-21  Robert Dewar  <dewar@adacore.com>
14524         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
14525         * gcc-interface/Makefile.in: clean up target pairs.
14527 2014-01-21  Pascal Obry  <obry@adacore.com>
14529         * projects.texi: Minor typo fix.
14531 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14533         * freeze.adb (Check_Component_Storage_Order): If a record type
14534         has an explicit Scalar_Storage_Order attribute definition clause,
14535         reject any component that itself is of a composite type and does
14536         not have one.
14538 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14540         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
14541         can be used to generate proper cross-reference information for
14542         the parent units of proper bodies.
14544 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14546         * exp_pakd.adb (Expand_Packed_Element_Set,
14547         Expand_Packed_Element_Reference): No byte swapping required in
14548         the front-end for the case of a reverse storage order array,
14549         as this is now handled uniformly in the back-end.  However we
14550         still need to swap back an extracted element if it is itself a
14551         nested composite with reverse storage order.
14553 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14555         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
14556         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
14557         include "others".
14559 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14561         * gnat_ugn.texi: Minor updates.
14563 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14565         * exp_pakd.adb: Update comment, minor reformatting.
14567 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14569         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
14570         object check when SPARK_Mode is on.
14571         * sem_ch6.adb (Process_Formals): Trigger the volatile object
14572         check when SPARK_Mode is on.
14573         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
14574         check when SPARK_Mode is on.
14575         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
14576         corresponding pragma of aspect SPARK_Mode in the visible
14577         declarations of a package declaration.
14578         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
14579         check when SPARK_Mode is on.
14580         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
14581         check when SPARK_Mode is on.
14582         (Resolve_Entity_Name): Trigger
14583         the volatile object check when SPARK_Mode is on.
14585 2014-01-21  Robert Dewar  <dewar@adacore.com>
14587         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
14588         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
14590 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14592         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
14593         object is declared, it is rewritten as a renaming of an dynamic
14594         expression that wraps the initial value.  The renaming declaration
14595         is first given an internal name, to prevent collisions with the
14596         entity already declared, and then the name is modified to reflect
14597         the original one. the modification of the name must preserve
14598         the source location of the original, to prevent spurious errors
14599         when compiling with style checks if the declaration involves
14600         more than one entity.
14602 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
14604         * aspects.adb Add entries for Async_Readers, Async_Writers,
14605         Effective_Reads and Effective_Writes in table Canonical_Aspect.
14606         * aspects.ads Add entries for Async_Readers, Async_Writers,
14607         Effective_Reads and Effective_Writes in tables Aspect_Id,
14608         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
14609         * atree.adb (Ekind_In): New version with 8 parameters.
14610         (Node34): New routine.
14611         (Set_Node34): New routine.
14612         * atree.ads (Ekind_In): New version with 8 parameters.
14613         (Node34): New routine.
14614         (Set_Node34): New routine.
14615         * einfo.adb Contract is now Node34.
14616         (Contract): Update the assertion and node usage.
14617         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
14618         Effective_Reads and Effective_Writes.
14619         (Set_Contract): Update the assertion and node usage.
14620         (Write_Field24_Name): Remove the output for a contract.
14621         (Write_Field34_Name): Add output for a contract.
14622         * einfo.ads Contract is now Node34. Update the comment on
14623         attribute usage and related node structures.
14624         (Get_Pragma): Update the comment on usage.
14625         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
14626         Effective_Reads and Effective_Writes do not require special
14627         processing by the parser.
14628         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
14629         (Analyze_Declarations): Analyze the contract of a variable at
14630         the end of the declarative region.
14631         (Analyze_Object_Declaration): Create a contract for a variable.
14632         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
14633         of classification pragmas.
14634         (Process_Formals): Detect an illegal
14635         use of a volatile object as a formal in a function.
14636         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
14637         a volatile object as an actual in generic instantiation.
14638         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
14639         Effective_Reads and Effective_Writes in table Sig_Flags.
14640         (Analyze_External_State_In_Decl_Part): New routine.
14641         (Analyze_Global_Item): Detect an illegal use of a volatile object
14642         as a global item of a function.
14643         (Analyze_Pragma): Reimplement
14644         pragma Abstract_State. Add support for pragmas Async_Readers,
14645         Async_Writers, Effective_Reads and Effective_Writes.
14646         (Check_External_Properties): New routine.
14647         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
14648         (Check_External_Properties): New routine.
14649         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
14650         volatile object as an actual in a call.
14651         (Resolve_Entity_Name):
14652         Add local variables Par, Prev and Usage_OK. Detect illegal
14653         contexts of volatile objects.
14654         * sem_util.adb (Add_Contract_Item): Add support for
14655         pragmas associated with the contract of a variable.
14656         (Async_Readers_Enabled): New routine.
14657         (Async_Writers_Enabled): New routine.
14658         (Effective_Reads_Enabled): New routine.
14659         (Effective_Writes_Enabled): New routine.
14660         (Has_Enabled_Property):
14661         New routine.
14662         (Is_Unchecked_Conversion_Instance): New routine.
14663         (Is_Volatile_Object): Add support for entities that may denote
14664         a volatile object.
14665         * sem_util.ads (Add_Contract_Item): Update the
14666         comment on usage.
14667         (Async_Readers_Enabled): New routine.
14668         (Async_Writers_Enabled): New routine.
14669         (Effective_Reads_Enabled): New routine.
14670         (Effective_Writes_Enabled): New routine.
14671         (Is_Unchecked_Conversion_Instance): New routine.
14672         * sinfo.ads Update the comment on the structure of N_Contract.
14673         * snames.ads-tmpl Add predefined names for Async_Readers,
14674         Async_Writers, Effective_Reads and Effective_Writes. Add
14675         pragma ids for Async_Readers, Async_Writers, Effective_Reads
14676         and Effective_Writes.
14678 2014-01-21  Robert Dewar  <dewar@adacore.com>
14680         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
14681         * sem_eval.adb (Compile_Time_Known_Value): Remove special
14682         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
14683         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
14684         (Test_Foldable): Add CRT_Safe parameter
14685         * sem_eval.ads (Compile_Time_Known_Value): Remove special
14686         handling of CRT mode.
14687         (CRT_Safe_Compile_Time_Known_Value): New function.
14689 2014-01-21  Robert Dewar  <dewar@adacore.com>
14691         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
14692         with pragma or aspect that applies to package spec or subprogram
14693         spec.
14695 2014-01-21  Robert Dewar  <dewar@adacore.com>
14697         * exp_aggr.adb: Minor reformatting.
14699 2014-01-21  Johannes Kanig  <kanig@adacore.com>
14701         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
14703 2014-01-21  Bob Duff  <duff@adacore.com>
14705         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
14707 2014-01-21  Steve Baird  <baird@adacore.com>
14709         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
14711 2014-01-21  Vincent Celier  <celier@adacore.com>
14713         * prj-part.adb (Parse_Single_Project): Accept to extend a project
14714         if it has only be imported by an project being extended. When a
14715         project that has only been imported by a project being extended
14716         is imported by another project that is not being extended,
14717         reset the previous indication, so that it will be an error if
14718         this project is extended later.
14719         * prj-tree.adb (Create_Project): Include component From_Extended
14720         in table Projects_HT
14721         * prj-tree.ads (Project_Name_And_Node): New Boolean component
14722         From_Extended
14724 2014-01-21  Robert Dewar  <dewar@adacore.com>
14726         * atree.ads, atree.adb: Add Node33 and Set_Node33.
14727         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
14728         New field (SPARK_Pragma_Inherited): New flag
14729         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
14730         Removed.
14731         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
14732         * opt.ads (SPARK_Mode_Pragma): New global variable.
14733         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
14734         * sem_ch3.adb: Use new SPARK_Mode data structures.
14735         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
14736         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
14737         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
14738         (Pop_Scope): Restore SPARK_Mode_Pragma.
14739         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
14740         new data structures.
14742 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14744         * back_end.adb: Undo previous change, not needed. Minor reformatting.
14746 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14748         * exp_ch5.adb: Fix comment.
14749         * switch-c.adb: Minor comment update.
14750         * exp_ch3.adb: Minor reformatting.
14752 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14754         * back_end.adb (Scan_Compiler_Arguments): Do not store object
14755         filename in gnatprove mode.
14757 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14759         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
14760         suppresses usage of primitive _assign for tagged types).
14761         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
14762         No_Ctrl_Actions for a tagged type that does not require
14763         finalization, as we want to disable usage of _assign (which
14764         may cause undesirable discriminant checks on an uninitialized,
14765         invalid target).
14767 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14769         * sem_prag.adb: Reject invariant'class on completion.
14771 2014-01-21  Javier Miranda  <miranda@adacore.com>
14773         * exp_ch3.adb (Build_Init_Procedure): For
14774         derivations of interfaces, do not move the the initialization
14775         of the _parent field since such assignment is not generated.
14777 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14779         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
14780         with the operator it renames if we are within an expression of
14781         a pre/postcondition, because the expression will be reanalyzed
14782         at a later point, and the analysis of the renaming may affect
14783         the visibility of the operator when in an instance.
14785 2014-01-21  Robert Dewar  <dewar@adacore.com>
14787         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
14788         Add this flag to type conversion nodes and assignment nodes.
14789         * treepr.adb: Deal properly with Flag 1,2,3.
14790         * treeprs.adt: Minor comment update.
14792 2014-01-21  Robert Dewar  <dewar@adacore.com>
14794         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
14795         parameter.
14796         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
14797         parameter, completely rewrite spec.
14799 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14801         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
14802         instance that is inlined, it may have been rewritten as a wrapper
14803         package. In that case the unit that must be made visible is the
14804         related instance of the package.
14806 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14808         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
14809         previous change in codepeer mode.
14811 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14813         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
14814         call to Abort_Undefer, as expected by the runtime.
14815         * s-tasren.adb (Local_Complete_Rendezvous): Replace
14816         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
14817         deferred at this point. Update comments.
14819 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14821         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
14823 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14825         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
14826         remove from doc.
14828 2014-01-21  Robert Dewar  <dewar@adacore.com>
14830         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
14832 2014-01-21  Thomas Quinot  <quinot@adacore.com>
14834         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
14835         this is value is used in Node_Id arithmetic operations.
14836         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
14837         instead of hard-coded unrolled code.
14839 2014-01-21  Yannick Moy  <moy@adacore.com>
14841         * gnat1drv.adb: Minor code cleanup, removing useless code.
14843 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
14845         * opt.ads (SPARK_Switches_File_Name): New.
14846         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
14847         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
14848         * gnat_ugn.texi: Document -gnates.
14850 2014-01-21  Yannick Moy  <moy@adacore.com>
14852         * errout.adb (Special_Msg_Delete): Update comment. Remove
14853         special case for GNATprove which should not ignore mismatch
14854         in sizes for representation clauses.
14855         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
14856         which should not ignore pragma Pack.
14858 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14860         * sem_ch4.adb: Code clean up.
14862 2014-01-21  Steve Baird  <baird@adacore.com>
14864         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
14866 2014-01-21  Robert Dewar  <dewar@adacore.com>
14868         * gcc-interface/gigi.h: Get Flags array address.
14869         * gcc-interface/trans.c: Acquire Flags array address.
14870         * atree.adb: Add support for Flags array and Flag0,1,2,3.
14871         * atree.ads: Add support for Flags array and Flag0,1,2,3.
14872         * atree.h: Add support for Flags array and Flag0,1,2,3.
14873         * back_end.adb: Pass Flags array address to gigi.
14875 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14877         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
14878         reference to generated body so that legality checks on stream
14879         attributes are properly applied. If type is tagged and already
14880         frozen, insert generated body at the point of the renaming
14881         declaration.
14883 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
14885         * sem_ch12.adb: Code clean up.
14886         * sem_ch8.adb: Minor reformatting
14888 2014-01-20  Robert Dewar  <dewar@adacore.com>
14890         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
14891         converting warnings on inevitable exceptions to errors.
14892         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
14893         converting warnings on inevitable exceptions to errors.
14894         * opt.adb (SPARK_Mode_Config): Handled like other config flags
14895         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
14896         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
14897         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
14898         New flag (Config_Switches_Type): Add SPARK_Mode field
14899         * sem.adb: Minor code reorganization (remove unnecessary with)
14900         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
14901         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
14902         converting warnings on inevitable exceptions to errors.
14903         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
14904         converting warnings on inevitable exceptions to errors.
14905         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
14906         converting warnings on inevitable exceptions to errors.
14907         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
14908         converting warnings on inevitable exceptions to errors.
14909         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
14910         from spec if needed
14911         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
14912         from spec if needed
14913         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
14914         Restore SPARK_Mode
14915         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
14916         converting warnings on inevitable exceptions to errors.
14917         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
14918         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
14919         of Get_SPARK_Mode_Id
14920         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
14921         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
14922         converting warnings on inevitable exceptions to errors.
14923         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
14924         converting warnings on inevitable exceptions to errors.
14925         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
14926         SPARK_Mode_Type
14928 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14930         * sem_ch13.adb: Add semantic information to rewritten type
14931         reference.
14933 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14935         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
14936         are of a type with unknown discriminants, convert both to the
14937         underlying view of the type, so that the proper constraint check
14938         can be applied to the right-hand side.
14940 2014-01-20  Robert Dewar  <dewar@adacore.com>
14942         * atree.adb (Copy_Node): Fix failure to copy last component
14943         (Exchange_Entities): Fix failure to exchange last entity
14945 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14947         * sem_ch12.adb: Code clean up.
14949 2014-01-20  Robert Dewar  <dewar@adacore.com>
14951         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
14953 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14955         * sem_ch4.adb (Analyze_Quantified_Expression): If after
14956         pre-analysis  the loop parameter specification has been
14957         rewritten as a iterator specification, propagate the change to
14958         the quantified expression, for ASIS navigtion needs.
14960 2014-01-20  Vincent Celier  <celier@adacore.com>
14962         * par-ch10.adb: Minor error message change: escape [ and ].
14964 2014-01-20  Robert Dewar  <dewar@adacore.com>
14966         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
14967         * errout.adb: Implement [ and ] insertion characters.
14968         * errout.ads: Document new [ and ] insertion characters.
14969         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
14970         addition of ??? comment.
14971         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
14972         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
14973         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
14974         Make warnings on exceptions into errors in GNATprove mode.
14975         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
14976         in error messages.
14978 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14980         * sem_ch13.adb: Code clean up.
14982 2014-01-20  Robert Dewar  <dewar@adacore.com>
14984         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
14985         messages.
14986         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
14987         error in GNATprove mode.
14989 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14991         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
14992         reference 'Old takes no parameters, and thus can appear as a
14993         prefix of a slice.
14995 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14997         * exp_aggr.adb: Fix minor typos.
14999 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15001         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
15002         instance the attribute is legal, and its value is determined
15003         statically if the type has no discriminants. This choice is
15004         more useful than rechecking the legality rule in the instance,
15005         is consistent with older usage, and is also consistent with all
15006         existing tests.
15008 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15010         * sem_cat.adb (Validate_Static_Object_Name): Change error into
15011         warning in Relaxed_Semantic_Mode.
15013 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15015         * sem_attr.adb: Code and comments cleanup.
15017 2014-01-20  Yannick Moy  <moy@adacore.com>
15019         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
15020         * errout.adb (Compilation_Errors): Remove special handling in
15021         GNATprove mode.
15022         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
15023         removed debug flags.
15024         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
15025         Global, Initial_Condition, Initializes and Refined_State pragmas and
15026         aspects.
15027         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
15028         SPARK_Strict_Mode): Remove global flags.
15029         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
15030         always performed now, on packages declaring a null state.
15031         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
15032         at providing pedantic mode for bounds of integer types.
15033         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
15034         "some" quantified expression now issued under control of -gnatw.t,
15035         like the other warning on unused bound variable.
15036         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
15037         on removed flag.
15038         (Analyze_Pragma): Remove tests for SPARK 2014
15039         pragmas, not officially allowed by GNAT.
15041 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15043         * sem_prag.adb (Analyze_Pragma): Ensure that
15044         the sole argument of pragmas Abstract_State, Contract_Cases,
15045         Depends, Global and Initializes in in aggregate form.
15046         (Analyze_Refined_Pragma): Ensure that the sole argument of
15047         pragmas Refined_Depends, Refined_Global and Refined_State is in
15048         aggregate form.
15049         (Ensure_Aggregate_Form): New routine.
15051 2014-01-20  Doug Rupp  <rupp@adacore.com>
15053         * sem_attr.adb (Analyze_Attribute): case
15054         Attribute_Constrained => treat all prefixes as legal for Declib
15055         compatibility.
15057 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15059         * sem_prag.adb (Check_Mode): Reimplement the routine.
15060         (Find_Mode): New routine.
15062 2014-01-20  Robert Dewar  <dewar@adacore.com>
15064         * sem_ch4.adb (Operator_Check): Handle additional
15065         Allow_Integer_Address cases.
15067 2014-01-20  Robert Dewar  <dewar@adacore.com>
15069         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
15070         allowed if address is non-private, no longer true.
15071         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
15072         Remove check for address being private, causes difficulty when
15073         pragma used in gnat.adc file and is not needed, since we guard
15074         this in Address_Integer_Convert_OK.
15075         * exp_ch7.adb: Minor reformatting.
15076         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
15078 2014-01-20  Robert Dewar  <dewar@adacore.com>
15080         * checks.adb (Apply_Range_Check): Remove gnatprove special
15081         casing of exponentiation.
15082         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
15083         operand for integer case to check range against Natural.
15085 2014-01-20  Robert Dewar  <dewar@adacore.com>
15087         * s-tataat.adb: Minor reformatting.
15089 2014-01-20  Robert Dewar  <dewar@adacore.com>
15091         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
15092         entities, and also fix documentation to remove mention of visible
15093         integer type, since this is not what the implementation does.
15094         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
15095         entities, and also fix documentation to remove mention of visible
15096         integer type, since this is not what the implementation does.
15097         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
15098         function.
15099         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
15100         case for parameter type check.
15101         * sem_res.adb (Resolve): Use new function
15102         Address_Integer_Convert_OK.
15103         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
15104         reformatting throughout.
15105         * sem_util.adb (Address_Integer_Convert_OK): New function.
15106         * sem_util.ads: Minor reformatting (put specs in alpha order)
15107         (Address_Integer_Convert_OK): New function.
15109 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15111         * exp_ch7.adb (Wrap_Transient_Expression):
15112         Insertion extra conditional expression only if
15113         Opt.Suppress_Control_Flow_Optimizations is set.
15115 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15117         * s-tataat.adb (Initialize_Attributes): Abort might already be
15118         deferred in Create_Task.
15120 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15122         * checks.adb (Apply_Scalar_Range_Check): Flag
15123         the exponent as requiring a range check when the expression is
15124         an exponentiation.
15126 2014-01-20  Fedor Rybin  <frybin@adacore.com>
15128         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
15130 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15132         * sem_util.adb (Default_Initialization): New routine.
15133         * sem_util.ads: Add new type Default_Initialization_Kind.
15134         (Default_Initialization): New routine.
15136 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15138         * sem_prag.adb (Check_Mode): Correct all error
15139         message logic dealing with in/in out parameters that may appear
15140         as inputs or have a self reference.
15142 2014-01-20  Robert Dewar  <dewar@adacore.com>
15144         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
15145         * sem_res.adb (Resolve): Fix error causing infinite loop for
15146         integer used as address. Allow addresses as integers.
15148 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15150         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
15152 2014-01-20  Bob Duff  <duff@adacore.com>
15154         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
15155         error when "use all" is not followed by "type".
15157 2014-01-20  Bob Duff  <duff@adacore.com>
15159         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
15160         followed by free.
15162 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15164         * checks.adb (Apply_Address_Clause_Check): If there is an
15165         alignment check on the expression in an address clause, and there
15166         is no local exception propagation, add an additional explanatory
15167         message to clarify the cause of previous warning.
15169 2014-01-20  Robert Dewar  <dewar@adacore.com>
15171         * exp_ch7.adb: Minor reformatting.
15172         * opt.ads: Minor comment updates.
15173         * sem.adb: Minor name change Is_Main_Unit =>
15174         Is_Main_Unit_Or_Main_Unit_Spec.
15175         * sem_ch6.adb: Minor reformatting and code reorganization.
15177 2014-01-20  Bob Duff  <duff@adacore.com>
15179         * gnat_ugn.texi: Update gnatpp switches.
15181 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15183         * exp_ch9.adb: Minor comment edit.
15185 2014-01-20  Robert Dewar  <dewar@adacore.com>
15187         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
15188         only if System.Address is a private type.
15189         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
15190         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
15191         Allowed only if type System.Address is private, since otherwise
15192         it makes no sense.
15193         * sem_res.adb: Fix failure to properly Analyze unchecked
15194         conversions that were introduced by Allow_Integer_Address.
15195         * switch-c.adb: Remove -gnates switch.
15196         * usage.adb: Remove -gnates switch.
15197         * gnat_ugn.texi: Remove documentation of -gnates flag.
15199 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15201         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
15202         resolve expression to perform proper name capture.
15204 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15206         * sem.adb (Semantics): When saving/restoring configuration
15207         switches, the spec of a pre- defined unit that is the main unit
15208         must be treated as a predefined unit as well.
15210 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15212         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
15213         expression, insert an extra conditional expression when saving
15214         the value of the expression, for the benefit of control flow
15215         graph based coverage analysis.
15216         * exp_ch3.adb: Minor reformatting.
15218 2014-01-20  Robert Dewar  <dewar@adacore.com>
15220         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
15221         * gnat_rm.texi: Document pragma Allow_Integer_Address.
15222         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
15223         * opt.ads: New flag Allow_Integer_Address.
15224         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
15225         * sem_ch5.adb: Minor reformatting.
15226         * sem_prag.adb: Implement pragma Allow_Integer_Address.
15227         * sem_res.adb (Resolve): Allow integer address value if
15228         switch set.
15229         * sem_util.adb: Minor reformatting.
15230         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
15231         * switch-c.adb: Recognize flag -gnates.
15232         * usage.adb: Document flag -gnates.
15234 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15236         * s-tadeca.adb: Fix minor typos in comment.
15238 2014-01-20  Pascal Obry  <obry@adacore.com>
15240         * s-win32.ads (FreeLibrary): New import.
15242 2014-01-20  Robert Dewar  <dewar@adacore.com>
15244         * sem_res.adb, sem_cat.adb: Minor reformatting.
15245         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
15246         assigning to OUT parameters for the current subprogram scope.
15247         * exp_ch4.adb: Minor reformatting.
15249 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15251         * exp_ch4.adb (Process_Transient_Object,
15252         Find_Enclosing_Contexts): If the top-level if-expression that
15253         generated the transient object is an actual in a call, the proper
15254         Hook_Context is a construct enclosing the call.
15255         * einfo.ads: Indicate that Related_Expression is used to link a
15256         loop variable to the container expression over which the loop
15257         takes place.
15258         (Analyze_Iterator_Specification): Set the Related_Expression of
15259         the loop variable in a container element iterator.
15260         (Note_Possible_Modification): If the variable is the loop
15261         variable in a container element iterator, indicate that the
15262         enclosing container is also modified.
15264 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15266         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
15268 2014-01-20  Robert Dewar  <dewar@adacore.com>
15270         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
15271         Minor reformatting and code clean up.
15273 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15275         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
15276         of objects of private type if Relaxed_RM_Semantics.
15278 2014-01-20  Claire Dross  <dross@adacore.com>
15280         * a-cofove.ads (Vector): Capacity discriminant
15281         should be in range of the index.
15283 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15285         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
15286         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
15287         possible difference between epoch of Ada.Calendar clock and Ada
15288         real-time/tasking clock.
15289         * s-taprop-posix.adb: Minor comment fix.
15291 2014-01-20  Doug Rupp  <rupp@adacore.com>
15293         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
15295 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15297         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
15298         checks on the prefix of attribute 'Old.
15299         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
15300         generation of validity checks on a range that belongs to the
15301         iteration scheme of a quantified expression.
15302         * sem_ch5.adb (One_Bound): Suppress the generation of validity
15303         checks on a bound that belongs to the iteration scheme of a
15304         quantified expression, generate the check in all other cases.
15306 2014-01-20  Bob Duff  <duff@adacore.com>
15308         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
15310 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15312         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
15313         interpretations that do not come from other predefined units,
15314         to prevent spurious ambiguities in the presence of user-defined
15315         operators in the context of (an instance of) a predefined unit.
15317 2014-01-20  Robert Dewar  <dewar@adacore.com>
15319         * gnat_rm.texi: Document that Loop_Variant is included in
15320         Statement_Assertions.
15321         * sem_prag.adb (Check_Kind): Add Loop_Variant to
15322         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
15323         to Statement_Assertions.
15325 2014-01-20  Doug Rupp  <rupp@adacore.com>
15327         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
15328         for errno ENOENT from RTP on NFS mounted file system.
15330 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
15332         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
15333         examine code that does not come from source. The check does not
15334         apply to code generated for constraint checks, and such code may
15335         generate spurious error messages when compiled with expansion
15336         disabled (as in a generic unit) because side effects may not
15337         have been removed.
15338         2) Make error messages more explicit: indicate the component
15339         of the  construct whose value is indeterminate because of a
15340         call to a function with in-out parameter in another component,
15341         when there is no mandated order of execution between the two
15342         components (actuals, aggregate components, alternatives).
15344 2014-01-20  Robert Dewar  <dewar@adacore.com>
15346         * gnat_rm.texi: Minor cleanup.
15348 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15350         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
15351         can now apply to a refined postcondition.
15352         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
15353         variable Result_Seen. Add variables Case_Prag, Post_Prag,
15354         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
15355         whether postconditions and/or constract-cases mention attribute
15356         'Result and introduce a post-state when applied to functions.
15357         (Check_Result_And_Post_State): Removed.
15358         * sem_prag.adb (Analyze_Pragma): Add local variable
15359         Result_Seen. Verify that the expression of pragma Refined_Post
15360         mentions attribute 'Result and introduces a post-state.
15361         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
15363 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15365         * exp_ch7.adb (Is_Subprogram_Call): New routine.
15366         (Process_Transient_Objects): Make variable Must_Hook global with
15367         respect to all locally declared subprograms. Search the context
15368         for at least one subprogram call.
15369         (Requires_Hooking): Removed.
15371 2014-01-20  Claire Dross  <dross@adacore.com>
15373         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
15374         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
15375         External_Axiomatization);
15377 2014-01-20  Robert Dewar  <dewar@adacore.com>
15379         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
15380         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
15381         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
15382         Allow Loop_Entry to be used in these pragmas if they appear in
15383         an appropriate context.
15384         (Placement_Error): Specialize error
15385         message for pragma Assert[_And_Cut] or pragma Assume containing
15386         Loop_Entry attribute.
15387         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
15388         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
15389         and code clean ups.
15391 2014-01-20  Robert Dewar  <dewar@adacore.com>
15393         * gnat1drv.adb: Minor comment update.
15395 2014-01-20  Tristan Gingold  <gingold@adacore.com>
15397         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
15398         variables, comment out unused code.
15399         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
15400         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
15401         * s-excmac-arm.ads: New file.
15403 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15405         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
15406         Drange and Index_Typ. Remove the circuitry which creates a
15407         range check to compare the index type of the array against the
15408         discrete_range.
15409         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
15410         the circuitry which creates a range check to handle a
15411         discrete_range denoted by a subtype indication.
15413 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
15415         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
15416         nodes to get the original sloc range.
15418 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15420         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
15421         entity of a [library level] package.
15423 2014-01-20  Tristan Gingold  <gingold@adacore.com>
15425         * raise-gcc.c (exception_class_eq): New function.
15426         (is_handled_by): Use it to compare exception classes.
15427         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
15428         be called to return URC_CONTINUE_UNWIND.
15429         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
15430         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
15432 2014-01-20  Robert Dewar  <dewar@adacore.com>
15434         * opt.ads: Minor comment update.
15436 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15438         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
15439         constants to the "Local variables" area. Add new constant D. Add
15440         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
15441         to Pref_Typ and update all occurrences. Add circuitry to extract
15442         the discrete_range and the index type and build a range check.
15444 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15446         * gnat1drv.adb (Adjust_Global_Switches): Enable
15447         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
15448         is set.
15450 2014-01-20  Thomas Quinot  <quinot@adacore.com>
15452         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
15454 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15456         * sem_ch13.adb (Analyze_Aspect_Specifications):
15457         When aspect SPARK_Mode appears on a package body, insert the
15458         generated pragma at the top of the body declarations.
15460 2014-01-20  Robert Dewar  <dewar@adacore.com>
15462         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
15463         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
15464         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
15465         sem_ch8.adb, exp_dist.adb: Minor reformatting.
15467 2014-01-20  Yannick Moy  <moy@adacore.com>
15469         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
15470         mode.
15472 2014-01-20  Pascal Obry  <obry@adacore.com>
15474         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
15475         write scheme).
15476         * g-arrspl.adb: Adapt all routine to this new implementation.
15477         (Set): Copy the Slice_Set definition before reusing it.
15479 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
15481         * sem_prag.adb (Process_Import_Or_Interface): In
15482         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
15483         (Analyze_Pragma): Ditto for pragma Export.
15484         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
15485         Import style.
15487 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15489         * einfo.ads: E_Abstract_State is now part of the entities that
15490         can be overloaded. Update type Overloadable_Kind to reflect the
15491         inclusion of abstract states.
15492         * sem_ch6.adb (New_Overloaded_Entity): A function can now
15493         overload an abstract state.
15494         * sem_prag.adb (Analyze_Constituent): Handle the overloading
15495         of states by functions. Use Entity_Of to obtain the entity of
15496         a constituent.  (Analyze_Global_Item): Handle the overloading of
15497         states by functions.
15498         (Analyze_Initialization_Item): Handle the
15499         overloading of states by functions.  Use Entity_Of to obtain the
15500         entity of an item.
15501         (Analyze_Input_Item): Handle the overloading
15502         of states by functions. Use Entity_Of to obtain the entity of an item.
15503         (Analyze_Input_Output): Handle the overloading of states by functions.
15504         (Analyze_Refinement_Clause): Handle the overloading
15505         of states by functions.  Use Entity_Of to obtain the entity of an item.
15506         (Appears_In): Use Entity_Of to obtain the entity of an element.
15507         (Check_Usage): Use Entity_Of to obtain the entity of
15508         an item. Add a guard to prevent a crash due to a previous error.
15509         (Resolve_State): New routine.
15511 2014-01-20  Yannick Moy  <moy@adacore.com>
15513         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
15514         opt.ads: Minor comments updates.
15516 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
15518         * einfo.adb (Non_Limited_View): Applies to abstract states.
15519         (Set_From_Limited_With): Applies to abstract states.
15520         (Set_Non_Limited_View): Applies to abstract states.
15521         (Write_Field17): Output the non-limited view of an abstract state.
15522         * einfo.ads: Update the comment on usage and occurrences in
15523         nodes for attributes From_Limited_With and Non_Limited_View.
15524         * sem_aux.adb (Available_View): This routine can now handle
15525         abstract states.
15526         * sem_aux.ads (Available_View): This routine can now handle
15527         abstract states. Update the comment on usage.
15528         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
15529         of states and variables.
15530         (In_Pragmas_Depends_Or_Global): New routine.
15531         * sem_ch10.adb (Build_Limited_Views): Implement
15532         abstract (limited) views of variables and states.
15533         (Build_Shadow_Entity): This routine is now a procedure. Add
15534         formal parameter Shadow. Update the comment on usage. Add
15535         context-specific decoration for states and variables.
15536         (Decorate_State): New routine.  (Decorate_Variable): New routine.
15537         (Find_And_Process_States): New routine.
15538         (Process_Declarations): Renamed to Process_Declarations_And_States.
15539         (Process_Declarations_And_States): Add formal parameters
15540         Pack and Create_Abstract_Views. Update the comment on usage.
15541         (Process_States): New routine.
15542         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
15543         views of states and variables. Match the abstract view of a state
15544         against its corresponding non-abstract view.
15545         (Is_Matching_Input):
15546         Handle abstract views of states and variables. Match the abstract
15547         view of a state against its corresponding non-abstract view.
15548         (Process_Global_Item): Handle abstract views of states and
15549         variables.
15551 2014-01-20  Bob Duff  <duff@adacore.com>
15553         * sem_ch10.adb (Expand_With_Clause): Don't
15554         recurse on the prefix if the current with-ed name refers to a
15555         package that renames its own parent, eg "package P.Q renames P;".
15557 2014-01-20  Yannick Moy  <moy@adacore.com>
15559         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
15560         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
15561         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
15562         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
15563         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
15564         Expander_Active.
15566 2014-01-20  Yannick Moy  <moy@adacore.com>
15568         * sinfo.ads Update documentation of GNATprove mode.
15570 2014-01-20  Yannick Moy  <moy@adacore.com>
15572         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
15573         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
15574         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
15575         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
15576         GNATprove_Mode.
15577         * sem_ch13.adb: Remove blank.
15578         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
15579         subprograms by alias for renamings, not for inherited primitive
15580         operations.
15581         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
15582         in GNATprove mode.
15583         (Remove_Side_Effects): Apply the removal in
15584         GNATprove mode, for the full analysis of expressions.
15585         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
15586         mode.
15587         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
15588         save/restore actions for Expander_Active flag in GNATprove mode,
15589         similar to what is done in ASIS mode.
15590         * frontend.adb (Frontend): Generic bodies are instantiated in
15591         GNATprove mode.
15592         * gnat1drv.adb (Adjust_Global_Switches): Set operating
15593         mode to Check_Semantics in GNATprove mode, although a light
15594         expansion is still performed.
15595         (Gnat1drv): Set Back_End_Mode to
15596         Declarations_Only in GNATprove mode, and later on special case
15597         the GNATprove mode to continue analysis anyway.
15598         * lib-writ.adb (Write_ALI): Always generate ALI files in
15599         GNATprove mode.
15600         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
15601         Expander_Active.
15602         (SPARK_Mode): Renamed as GNATprove_Mode.
15603         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
15604         tree in GNATprove_Mode.
15605         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
15606         body in GNATprove mode.
15607         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
15608         mode.
15609         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
15610         Make sure side effects are removed in GNATprove mode.
15612 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15614         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
15615         for aliased objects with an unconstrained nominal subtype.
15616         * gcc-interface/trans.c (Call_to_gnu): Likewise.
15617         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
15618         <case N_Op_Minus>: Remove useless code.
15619         (Exception_Handler_to_gnu_zcx): Minor tweaks.
15621 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15623         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
15624         Tidy up.  For a subtype with discriminants and variant part, if a
15625         variant is statically selected and the fields all have a constant
15626         position, put them in order of increasing position.  Likewise if
15627         no variant part but representation clause is present.
15628         * gcc-interface/utils.c (make_packable_type): Robustify.
15629         (maybe_pad_type): Use local variable and tidy up condition.  If no
15630         alignment is specified, use the original one.
15631         (create_type_stub_decl): Minor tweak.
15632         (convert) <case VECTOR_CST>: Fix typo.
15633         <case CONSTRUCTOR>: Deal with padding types around the same type.
15634         Do not punt on missing fields.
15635         (unchecked_convert): Call finish_record_type to lay out the special
15636         record types made for conversions from/to problematic integer types.
15637         Bump the alignment of CONSTRUCTORs before converting them to a more
15638         aligned type.
15640 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
15642         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
15643         obsolete code for type_annotate_only mode, simplify code and slightly
15644         improve wording of comments.
15646 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
15648         PR ada/59772
15649         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
15650         as intermediate type.
15651         (UI_To_gnu): Likewise.
15653 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15655         * gnatvsn.ads (Current_Year): Bump to 2014.
15657 2014-01-02  Tobias Burnus  <burnus@net-b.de>
15659         * gnat_ugn.texi: Bump @copying's copyright year.
15661 Copyright (C) 2014 Free Software Foundation, Inc.
15663 Copying and distribution of this file, with or without modification,
15664 are permitted in any medium without royalty provided the copyright
15665 notice and this notice are preserved.