2014-10-31 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blobdb5c68182f591b63c6ac4fcb84cf3e078c41b388
1 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
3         * sem_ch12.adb (Analyze_Generic_Package_Declaration): If there
4         is a default storage pool, add a corresponding aspect to the
5         generic unit, to be used at the point of instantiation.
6         (Analyze_Package_Instantiation): If generic unit has aspect
7         specifications, propagate them to instance. If instance has a
8         Default_Storage_Pool aspect, make sure that it overrides the
9         one that may be inherited from the generic.
11 2014-10-31  Vincent Celier  <celier@adacore.com>
13         * prj-attr.adb: Minor removal of attributes of package Linker
14         that have never been used and never been documented.
15         * projects.texi: Add documentation for attribute Runtime.
16         * prj-nmsc.adb (Check_Configuration): Do not report a warning
17         for unknown compilers when the project is externally built.
19 2014-10-31  Vasiliy Fofanov  <fofanov@adacore.com>
21         * prj-conf.adb (Do_Autoconf): Refactor the code so that empty
22         Normalized_Pathname doesn't inhibit the custom Selected_Target
23         value.
24         * prj-conf.adb (Parse_Project_And_Apply_Config): Make sure that
25         Automatically_Generated is correctly set after the first call
26         to Process_Project_And_Apply_Config and not modified after the
27         second call, if any.
29 2014-10-31  Yannick Moy  <moy@adacore.com>
31         * Makefile.rtl, gnat_rm.texi, impunit.adb: Add mention of new library
32         files.
33         * a-cfinve.adb, a-cfinve.ads: New unit for formal indefinite
34         vectors, suitable for use in client SPARK code, also more
35         efficient than the standard vectors.
36         * a-coboho.adb, a-coboho.ads New unit for bounded holders, that
37         are used to define formal indefinite vectors in terms of formal
38         definite ones.
39         * a-cofove.adb, a-cofove.ads: Simplification of the API of formal
40         definite vectors, similar to the API of the new indefinite ones. A
41         new formal parameter of the generic unit called Bounded allows
42         to define growable vectors that use dynamic allocation.
44 2014-10-31  Vincent Celier  <celier@adacore.com>
46         * prj-conf.adb (Look_For_Project_Paths): New procedure
47         (Parse_Project_And_Apply_Config): Initially, parse the project
48         files ignoring missing withs. If there are missing withs, extend
49         the project path with directories rooted at the compiler roots,
50         including directories rooted at the runtime roots, if there are
51         non default runtimes, in the PATH orser.
52         * prj-env.adb (Initialize_Default_Project_Path): Do not add
53         any directory from the prefix if the target is "-".
54         * prj-part.adb (Parse): Initialize the tables, as Parse may be
55         call several times by gprbuild.
56         * prj.adb (Update_Ignore_Missing_With): New procedure.
58 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
60         * sem_aux.adb (First_Stored_Discriminant,
61         Has_Completely_Hidden_Discriminant): When scanning the list of
62         discriminants to locate possibly hidden (inherited) discriminants,
63         ignore itypes that may appear in the entity list, when an access
64         discriminants is constrained by an access attribute reference.
66 2014-10-31  Javier Miranda  <miranda@adacore.com>
68         * freeze.adb (Freeze_Record_Type): Add missing
69         check to verify that all the primitives of an interface type
70         are abstract or null procedures.
72 2014-10-31  Vincent Celier  <celier@adacore.com>
74         * s-os_lib.adb, s-os_lib.ads: New function Non_Blocking_Spawn that
75         redirects standard output and standard error to two different files.
77 2014-10-31  Bob Duff  <duff@adacore.com>
79         * makeutl.ads: Minor comment fix.
81 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
83         * system-linux-x86_64.ads, system-mingw-x86_64.ads (Word_Size,
84         Memory_Size): Use Standard'Word_Size so that the value can be changed
85         via a target configuration file.
87 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
89         * exp_ch4.adb: Minor tweak.
91 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
93         * sem_ch12.adb (Analyze_Package_Instantiation): Do not inline with
94         back-end inlining.
95         (Must_Inline_Subp): Delete.
96         * sem_util.ads, sem_util.adb (Must_Inline): Likewise.
98 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
100         * freeze.adb (Freeze_Entity): A default_pool does not apply to
101         internal access types generated for 'access references.
102         * sem_prag (Analyze_Pragma, case Default_Pool): If the name is
103         not null it must designate a variable.
105 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
107         * inline.adb: Minor reformatting.
109 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
111         * sem_ch3.adb (Build_Derived_Private_Type): If the derived
112         type has access discriminants, create itype references for their
113         anonymous types, so that they are elaborated before the generated
114         bodies for the primitive operations of the type.
116 2014-10-31  Tristan Gingold  <gingold@adacore.com>
118         * prj-conf.adb (Locate_Runtime): Remove procedure.
120 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
122         * inline.adb (Has_Excluded_Declaration): With back-end inlining,
123         only return true for nested packages.
124         (Cannot_Inline): Issue errors/warnings whatever the optimization level
125         for back-end inlining and remove assertion.
127 2014-10-31  Sergey Rybin  <rybin@adacore.com frybin>
129         * table.adb (Tree_Read, Tree_Write): Use parentheses to specify
130         the desired order of '*' and '/' operations to avoid overflow.
132 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
134         * exp_ch6.adb (Do_Inline): Remove unreachable code.
135         (Do_Inline_Always): Likewise.
137 2014-10-31  Vincent Celier  <celier@adacore.com>
139         * prj-nmsc.adb (Check_Stand_Alone_Library): Change error message
140         when library has no Ada interfaces and Library_Standalone is
141         declared.
143 2014-10-31  Arnaud Charlet  <charlet@adacore.com>
145         * sem_ch13.adb (Check_Constant_Address_Clause): Disable checks
146         on address clauses in CodePeer mode.
148 2014-10-31  Javier Miranda  <miranda@adacore.com>
150         * inline.adb (Expand_Inlined_Call): Do not skip
151         inlining of calls to subprogram renamings.
153 2014-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
155         * sem_res.adb (Resolve_Entity_Name): Account for
156         the case where the immediate parent of a reference to an entity
157         is a parameter association.
159 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
161         * inline.adb (Check_And_Split_Unconstrained_Function): Do not
162         test for the presence of nested subprograms.
164 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
166         * aspects.ads, aspects.adb: Add aspect Default_Storage_Pool.
167         * sem_ch13.adb (Analyze_One_Aspect): Generate pragma for aspect
168         Default_Storage_Pool.
170 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
172         * sem_ch6.adb: Remove obsolete comment.
174 2014-10-31  Olivier Hainque  <hainque@adacore.com>
176         * g-allein.ads: bind vec_sld for pixels to 8hi vsldoi instead
177         of 4si, as pixels are short.
179 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
181         * sem_res.adb (Resolve_Call): Do not reject a call to a protected
182         operation in the spec of a protected type, when the call appears
183         in a pre/postcondition for another protected operation.
185 2014-10-31  Tristan Gingold  <gingold@adacore.com>
187         * prj-conf.adb: Locate_Runtime: Always search the runtime in
188         project path.
190 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
192         * inline.adb (Check_Package_Body_For_Inlining): Adjust previous
193         change to use correct idiom for back-end inlining.
195 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
197         * freeze.adb (Freeze_Record_Type): Do not check component size
198         if its type is generic.
200 2014-10-31  Bob Duff  <duff@adacore.com>
202         * gnat_rm.texi: Fix documentation w.r.t -gnatw.w.
204 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
206         * sem_ch4.adb (Try_Container_Indexing): Use Check_Implicit_Dereference.
207         * sem_util.adb (Check_Implicit_Dereference): a) Handle generalized
208         indexing as well as function calls.  b)  If the context is a
209         selected component and whe are in an instance, remove entity from
210         selector name to force resolution of the node, so that explicit
211         dereferences can be generated in the instance if they were in
212         the generic unit.
214 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
216         * inline.adb (Back_End_Cannot_Inline): Delete.
217         (Add_Inlined_Subprogram): Do not call it.
219 2014-10-31  Ed Schonberg  <schonberg@adacore.com>
221         * exp_ch3.ads (Make_Tag_Assignment): New function, used to
222         re-initialize the tag in a tagged object declaration with
223         initial value.
224         * exp_ch3.adb (Expand_N_Object_Declaration): Use
225         Make_Tag_Assignment to simplify code for a tagged object
226         declaration.
227         * exp_ch13.adb (Expand_Freeze_Entity): Analyze freeze actions
228         for the freeze node of an object.
229         * freeze.adb (Check_Address_Clause): Use Make_Tag_Assignment when
230         needed to extend Freeze_Actions for a tagged object declaration.
232 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
234         * gnat_ugn.texi: Further minor improvement to -flto entry.
236 2014-10-31  Gary Dismukes  <dismukes@adacore.com>
238         * g-dynhta.adb, g-dynhta.ads: Minor typo fixes and reformatting.
240 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
242         * exp_ch3.adb (Expand_N_Object_Declaration): Code cleanup.
244 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
246         * sem_ch5.adb (Analyze_Iterator_Specification): If a subtype
247         indication is provided, check properly that it covers the element
248         type of of the container type.
250 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
252         * g-dynhta.ads, g-dynhta.adb: Add the implementation of a load facto
253         -based hash table.
255 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
257         * exp_util.ads, exp_util.adb (Following_Address_Clause): Modify
258         Has_Following_Address_Clause so that it returns the address
259         clause if present, rather than a boolean value.
260         * sem_ch3.adb (Analyze_Object_Declaration): use
261         Following_Address_Clause.
262         * exp_ch3.adb (Expand_N_Object_Declaration): When a tagged object
263         is initialized, insert tag assignment after object is frozen,
264         which may be after an address clause that follows the declaration.
266 2014-10-30  Tristan Gingold  <gingold@adacore.com>
268         * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads,
269         system-vxworks-arm.ads, system-freebsd-x86_64.ads,
270         system-linux-hppa.ads, system-linux-s390.ads,
271         system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads,
272         system-vxworks-sparcv9.ads, system-linux-ppc.ads, system-aix64.ads,
273         system-linux-sh4.ads, system-solaris-x86.ads, system-linux-x86_64.ads,
274         system-linux-x86.ads, system-vxworks-ppc.ads, system-hpux.ads,
275         system-linux-armel.ads, system-darwin-ppc.ads, system-solaris-sparc.ads,
276         system-vxworks-m68k.ads, system-hpux-ia64.ads, system.ads,
277         system-solaris-x86_64.ads, system-mingw-x86_64.ads,
278         system-vxworks-mips.ads, system-linux-sparc.ads, system-freebsd-x86.ads,
279         system-aix.ads, system-darwin-x86_64.ads, system-vxworks-x86.ads: Add
280         pragma No_Elaboration_Code_All.
282 2014-10-30  Eric Botcazou  <ebotcazou@adacore.com>
284         * gnat_ugn.texi: Minor improvement to -flto entry.
286 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
288         * sem_util.adb (Inherit_Subprogram_Contract):
289         Add a guard to protect against enumeration literal overriding.
290         * sem_ch3.adb, sem_ch4.adb, sem_res.adb, sem_util.adb:
291         Minor reformatting (add SPARK RM references).
293 2014-10-30  Robert Dewar  <dewar@adacore.com>
295         * exp_dbug.adb, opt.ads: Minor reformatting.
297 2014-10-30  Yannick Moy  <moy@adacore.com>
299         * inline.adb (Has_Single_Return_In_GNATprove_Mode):
300         Return False when return statement is inside one or more blocks.
302 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
304         * exp_ch7.adb (Is_Subprogram_Call): Account for the case where an
305         object declaration initialized by a function call that returns
306         an unconstrained result may be rewritted as a renaming of the
307         secondary stack result.
309 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
311         * aspects.adb: Add an entry for aspect Extensions_Visible in
312         table Canonical_Aspect.
313         * aspects.ads: Add entry for aspect Extensions_Visible in
314         tables Aspect_Argument, Aspect_Delay, Aspect_Id, Aspect_Names,
315         Implementation_Defined_Aspect.
316         * einfo.adb (Get_Pragma): Include pragma Extensions_Visible in
317         the list of contract pragmas.
318         * par-prag.adb Pragma Extensions_Visible does not require special
319         processing from the parser.
320         * sem_ch3.adb (Analyze_Object_Declaration): Prevent an
321         implicit class-wide conversion of a formal parameter
322         of a specific tagged type whose related subprogram is
323         subject to pragma Extensions_Visible with value "False".
324         (Check_Abstract_Overriding): Add various overriding checks
325         related to pragma Extensions_Visible.
326         (Derive_Subprogram):
327         A subprogram subject to pragma Extensions_Visible with value
328         False requires overriding if the subprogram has at least one
329         controlling OUT parameter.
330         (Is_EVF_Procedure): New routine.
331         * sem_ch4.adb (Analyze_Type_Conversion): A formal parameter of
332         a specific tagged type whose related subprogram is subject to
333         pragma Extensions_Visible with value "False" cannot appear in
334         a class-wide conversion.
335         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove
336         the assertion to account for pragma Extensions_Visible.
337         (Check_Overriding_Indicator): An overriding subprogram
338         inherits the contact of the overridden subprogram.
339         (New_Overloaded_Entity): An overriding subprogram inherits the
340         contact of the overridden subprogram.
341         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
342         for aspect Extensions_Visible.
343         (Check_Aspect_At_Freeze_Point): Aspect Extensions_Visible does not
344         require special processing at the freeze point.
345         * sem_prag.adb Add an entry for pragma Extensions_Visible in
346         table Sig_Flags.
347         (Analyze_Pragma): Ensure that various SPARK
348         pragmas lack identifiers in their arguments. Add processing for
349         pragma Extensions_Visible.
350         (Chain_CTC): Code reformatting.
351         * sem_res.adb (Resolve_Actuals): A formal parameter of a
352         specific tagged type whose related subprogram is subject to
353         pragma Extensions_Visible with value "False" cannot act as an
354         actual in a subprogram with value "True".
355         * sem_util.adb (Add_Classification): New routine.
356         (Add_Contract_Item): Account for pragma Extensions_Visible. Code
357         reformatting.
358         (Add_Contract_Test_Case): New routine.
359         (Add_Pre_Post_Condition): New routine.
360         (Extensions_Visible_Status): New routine.
361         (Inherit_Subprogram_Contract): New routine.
362         (Is_EVF_Expression): New routine.
363         (Is_Specific_Tagged_Type): New routine.
364         * sem_util.ads Add type Extensions_Visible_Mode and document all values.
365         (Add_Contract_Item): Add pragma Extensions_Visible to the
366         comment on usage.
367         (Inherit_Subprogram_Contract): New routine.
368         (Is_EVF_Expression): New routine.
369         (Is_Specific_Tagged_Type): New routine.
370         * sinfo.adb (Is_Inherited): New routine.
371         (Set_Is_Inherited): New routine.
372         * sinfo.ads Add flag Is_Inherited along with its usage in
373         nodes.
374         (Is_Inherited): New routine along with pragma Inline.
375         (Set_Is_Inherited): New routine along with pragma Inline.
376         * snames.ads-tmpl: Add predefined name "Extensions_Visible"
377         and a new Pragma_Id for the pragma.
379 2014-10-30  Vincent Celier  <celier@adacore.com>
381         * prj-proc.adb (Process_Case_Construction): Do not look for
382         the ultimate extending project for a case variable.
384 2014-10-30  Pierre-Marie Derodat  <derodat@adacore.com>
386         * exp_dbug.adb, opt.ads (GNAT_Encodings): Import from C. Define
387         enumerators.
388         (gnat_encodings): Define a dummy variable for the AAMP back-end.
389         (Get_Encoded_Name): When -fgnat-encodings=all|gdb, encode names
390         for all discrete types whose bounds do not match size and do so
391         only for biased types when -fgnat-encodings=minimal.
392         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not create ___XA
393         parallel types when array bounds are constant while the lower bound is
394         not 1.  Also stop generating them because the bound type is
395         larger than sizetype.
396         * gcc-interface/misc.c (gnat_encodings): New.
398 2014-10-30  Thomas Quinot  <quinot@adacore.com>
400         * opt.adb (Set_Opt_Config_Switches): For an internal unit,
401         always reset Default_SSO to ' '.
403 2014-10-30  Thomas Quinot  <quinot@adacore.com>
405         * freeze.adb (Freeze_Record_Type): Set SSO from default before
406         checking SSO consistency.
408 2014-10-30  Javier Miranda  <miranda@adacore.com>
410         * inline.adb (Check_Package_Body_For_Inlining):
411         Cleanup this subprogram to implement exactly the behavior
412         documented in the spec.
414 2014-10-30  Hristian Kirtchev  <kirtchev@adacore.com>
416         * a-comutr.adb, a-cimutr.adb (Insert_Child): Add new variable First.
417         Update the position after all insertions have taken place.
419 2014-10-30  Ed Schonberg  <schonberg@adacore.com>
421         * sem_prag.adb (Analyze_Pragma, case License): Do not perform
422         analysis of pragma arguments when in CodePeer mode, pragma has
423         different format on other compilers.
425 2014-10-30  Thomas Quinot  <quinot@adacore.com>
427         * s-os_lib.adb: Minor reformatting.
429 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
431         * gcc-interface/decl.c, gcc-interface/gigi.h, gcc-interface/misc.c,
432         gcc-interface/trans.c, gcc-interface/utils.c, gcc-interface/utils2.c:
433         Remove redundant enum from machine_mode.
435 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
437         * gcc-interface/trans.c: Adjust include files.
438         * gcc-interface/utils.c: Ditto.
440 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
442         * gcc-interface/utils.c (create_subprog_decl): Adjust condition.
444 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
446         * gcc-interface/misc.c (gnat_init_options_struct): Parameterize errno
447         support here instead of...
448         Do not set flag_delete_dead_exceptions to 1 unconditionally.
449         (gnat_init_gcc_eh): Set flag_delete_dead_exceptions to 1.
450         (gnat_init_gcc_fp): ...here.
452 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
454         * gcc-interface/trans.c (gnat_to_gnu) <N_Real_Literal>: Minor tweaks.
456 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
458         * gcc-interface/utils.c (create_var_decl_1): For a variable declared
459         in the unit, set TREE_PUBLIC only if it has static storage duration.
461 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
463         * gcc-interface/decl.c (gnat_to_gnu_entity): Apply special treatment
464         of derived packed array types to constrained subtypes only.
466 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
468         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove
469         superfluous computation for the max size.
470         <E_Array_Subtype>: Likewise.  Make sure that the max size calculation
471         does not overflow at compile time.
473 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
475         * sem_eval.adb (Check_Non_Static_Context): Do not set
476         Is_Machine_Number on a literal of a fixed-point type.
478 2014-10-23  Robert Dewar  <dewar@adacore.com>
480         * mlib-prj.adb, sem_ch4.adb, exp_ch3.adb: Minor reformatting.
482 2014-10-23  Pierre-Marie Derodat  <derodat@adacore.com>
484         * exp_dbug.ads: Update ___XA parallel type specification.
486 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
488         * sem_ch3.adb (Copy_Array_Subtype_Attributes): Inherit the rep
489         chain of the source type.
490         * sem_ch13.adb (Analyze_Aspect_Specifications): Minor
491         reformatting of an error message.
492         * sem_util.adb (Inherit_Rep_Item_Chain): Do not inherit a rep
493         chain that has been inherited already.
495 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
497         * sem_ch6.adb (Analyze_Expression_Function): Simplify analysis
498         in generic context, and generate body in this case as well,
499         to simplify ASIS traversals on the construct.
501 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
503         * sem_ch4.adb (Complete_Object_Operation): Indicate that the
504         scope of the operation (s) is referenced, to prevent spurious
505         warnings about unused units.
507 2014-10-23  Johannes Kanig  <kanig@adacore.com>
509         * errout.adb (Error_Msg_Internal): Copy check flag, increment
510         check msg count.
511         * erroutc.adb (Delete_Msg) adjust check msg count.
512         (Output_Msg_Text) handle check msg case (do nothing).
513         (Prescan_Message) recognize check messages with severity prefixes.
514         * errutil.adb (Error_Msg) handle check flag, adjust counter.
516 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
518         * sem_eval.adb (Subtypes_Statically_Match): For a generic actual
519         type, check for the presence of discriminants in its parent type,
520         against the presence of discriminants in the context type.
522 2014-10-23  Tristan Gingold  <gingold@adacore.com>
524         * adaint.c: __gnat_get_file_names_case_sensitive: Default is
525         true on arm-darwin.
527 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
529         * pprint.adb (Expression_Image): Add handling of quantifiers.
531 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
533         * exp_pakd.adb (Expand_Packed_Element_Reference): If the
534         prefix is a source entity, generate a reference to it before
535         transformation, because rewritten node might not generate a
536         proper reference, leading to spurious warnings.
538 2014-10-23  Tristan Gingold  <gingold@adacore.com>
540         * init.c: Fix thinko in previous patch.
542 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
544         * sem_ch3.adb (Decimal_Fixed_Point_Type_Declaration):
545         Inherit the rep chain of the implicit base type.
546         (Floating_Point_Type_Declaration): Inherit the rep chain of the
547         implicit base type.
548         (Ordinary_Fixed_Point_Type_Declaration): Inherit the rep chain of the
549         implicit base type.
550         (Signed_Integer_Type_Declaration): Inherit the rep chain of the
551         implicit base type.
552         * sem_util.ads, sem_util.adb (Inherit_Rep_Item_Chain): New routine.
554 2014-10-23  Pascal Obry  <obry@adacore.com>
556         * g-regist.adb, g-regist.ads: Add support for reading 32bit or 64bit
557         view of the registry.
559 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
561         * exp_ch3.adb (Expand_N_Object_Declaration): If type is abstract,
562         return without expanding expression, to prevent subsequent crash.
563         * freeze.adb: better error message for illegal declaration.
565 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
567         * sysdep.c (__gnat_localtime_tzoff): Properly delimit the
568         substring which represents the time zone on VxWorks.
570 2014-10-23  Vincent Celier  <celier@adacore.com>
572         * gnatls.adb: If --RTS= was not used, check if there is a default
573         runtime. If there is none, in verbose mode, indicate that the
574         default runtime is not available and show only the current
575         directory in the source and the object search paths.
577 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
579         * sem_ch6.adb (Process_Formals): A thunk procedure with a
580         parameter of a limited view does not need a freeze node.
582 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
584         * sem_ch7.adb (Analyze_Package_Body_Helper):
585         The logic which hides local entities from external
586         visibility is now contained in routine Hide_Public_Entities.
587         (Hide_Public_Entities): New routine. Object and subprogram
588         renamings are now hidden from external visibility the same way
589         objects are.
591 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
593         * sem_attr.adb (Analyze_Attribute): The prefix of attribute Elaborated
594         does not require freezing, in particular if it denotes a generic
595         function.
597 2014-10-23  Yannick Moy  <moy@adacore.com>
599         * sem_prag.adb (Analyze_Pragma/Pragma_Inline & Pragma_Inline_Always):
600         Disable analysis in GNATprove mode.
602 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
604         * mlib-prj.adb: Remove obsolete references to libdecgnat (VMS only).
606 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
608         * gnat1drv.adb (Adjust_Global_Switches): Ignore style check
609         pragmas in codepeer mode.
611 2014-10-23  Gary Dismukes  <dismukes@adacore.com>
613         * gnat_rm.texi: Minor syntax fix for pragma Annotate (missing ',').
615 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
617         * sem_ch12.adb (Inline_Instance_Body): Alphabetize
618         local variables and constants. Add constants Save_SM and Save_SMP
619         to capture SPARK_Mode-related attributes.  Compile the inlined
620         body with the SPARK_Mode of the enclosing context.
622 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
624         * sinfo.adb (Elaboration_Boolean): Removed.
625         (Set_Elaboration_Boolean): Removed.
626         * sinfo.ads Remove attribute Elaboration_Boolean along with its
627         occurrence in nodes.
628         (Elaboration_Boolean): Removed along with pragma Inline.
629         (Set_Elaboration_Boolean): Removed along with pragma Inline.
631 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
633         * sem_ch3.adb (Constant_Redeclaration): Make error message more
634         explicit on a deferred constant whose object_definition is an
635         anonymous array.
637 2014-10-23  Vincent Celier  <celier@adacore.com>
639         * gnatls.adb: Never call Targparm.Get_Target_Parameters.
641 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
643         * sem_ch6.adb (Analyze_Expression_Function): In a generic
644         context do not create a body, and only pre-analyze the expression,
645         which may include incomplete views.
647 2014-10-23  Robert Dewar  <dewar@adacore.com>
649         * sem_type.adb: Minor code reorganization (use Nkind_In, Ekind_In).
650         * sem_ch3.adb: Minor reformatting.
652 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
654         * sem_ch12.adb (Analyze_Associations): If an actual for a formal
655         object is a call to a parameterless expression function, add
656         the function to the list of actuals to freeze.
657         * freeze.adb (Check_Expression_Function): Create freeze nodes of
658         outer types that may be references in the body of the expression.
660 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
662         * exp_util.ads, checks.ads: Minor comment reformatting.
664 2014-10-23  Javier Miranda  <miranda@adacore.com>
666         * sem_eval (Test_In_Range): Disable removal of range_check for
667         VM targets.
669 2014-10-23  Robert Dewar  <dewar@adacore.com>
671         * erroutc.adb (Validate_Specific_Warnings): Fix test for -W
672         messages, which got disabled when we unconditionally added an
673         asterisk at the start of the string.
675 2014-10-23  Vincent Celier  <celier@adacore.com>
677         * gnatls.adb: Ensure that "gnatls -l" works even when there is
678         no default runtime.
680 2014-10-23  Eric Botcazou  <ebotcazou@adacore.com>
682         * sem_ch3.adb (Build_Derived_Private_Type): When the parent is
683         untagged and has discriminants, build the implicit full view after
684         building the derived type. Capture original declaration and type
685         here instead of...
686         (Copy_And_Build): ...here.
687         * sem_type.adb (Full_View_Covers): Handle the Underlying_Full_View.
689 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
691         * checks.adb (Ensure_Valid): Update the subprogram
692         profile. Propagate the contex attributes to Insert_Valid_Check.
693         (Insert_Valid_Check): Update the subprogram profile. Propagate
694         the attributes of the context to Duplicate_Subexpr_No_Checks.
695         (Validity_Check_Range): Update the subprogram profile. Propagate
696         the context attribute to Ensure_Valid.
697         * checks.ads (Ensure_Valid): Update the subprogram profile
698         along with the comment on usage.
699         (Insert_Valid_Check): Update the subprogram profile along with the
700         comment on usage.
701         (Validity_Check_Range): Update the subprogram profile along with
702         the comment on usage.
703         * exp_util.adb (Build_Temporary): New routine.
704         (Duplicate_Subexpr_No_Checks): Update the subprogram
705         profile. Propagate the attributes of the context to Remove_Side_Effects.
706         (Remove_Side_Effects): Update the subprogram profile. Update all calls
707         to Make_Temporary to invoke Build_Temporary.
708         * exp_util.ads (Duplicate_Subexpr_No_Checks): Update
709         the subprogram profile along with the comment on usage.
710         (Remove_Side_Effects): Update the subprogram profile along with
711         the comment on usage.
712         * sem_ch3.adb (Process_Range_Expr_In_Decl): Pass the subtype
713         to the validity check machinery.  Explain the reason for this
714         propagation.
716 2014-10-23  Robert Dewar  <dewar@adacore.com>
718         * a-strsea.adb: Minor reformatting.
720 2014-10-23  Thomas Quinot  <quinot@adacore.com>
722         * bcheck.adb (Check_Consistent_SSO_Default): Exclude internal
723         units from consistency check.
724         * gnat_rm.texi (Default_Scalar_Storage_Order): Document that
725         consistency check excludes run-time units.
727 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
729         * a-strsea.adb (Find_Token): Enable constraint checking in this
730         procedure, so that even when compiling with checks suppressed, as is
731         the case for the run-time, an exception is raised in this routine when
732         the input meets the conditions described in RM 2005 A.4.3 (68/1).
734 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
736         * sem_ch3.adb (Build_Derived_Private_Type): When the parent
737         is untagged and has discriminants, build the implicit full
738         view even if the derived type is a completion, and make it
739         the Underlying_Full_View of the type.
740         (Copy_And_Build): Fix Is_Completion actual parameter in the calls to
741         Build_Derived_Type.
742         (Build_Derived_Record_Type): Likewise.
744 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
746         * sem_ch13.adb: Add guard to convention setting.
748 2014-10-20  Robert Dewar  <dewar@adacore.com>
750         * sem_ch3.adb, prj-proc.adb, prj-proc.ads, prj-conf.adb: Minor
751         reformatting.
753 2014-10-20  Robert Dewar  <dewar@adacore.com>
755         * par-prag.adb (Add_List_Pragma_Entry): New procedure.
756         * par.adb (P_Pragma): Document requirement to handle multiple calls.
758 2014-10-20  Robert Dewar  <dewar@adacore.com>
760         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
761         Fix error of bad inheritance of this pragma from with'ed unit.
763 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
765         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a subtype,
766         inherit convention from parent type, because the subtype may
767         have been declared on a partial view, prior to the pragma on
768         the parent.
770 2014-10-20  Olivier Hainque  <hainque@adacore.com>
771             Tristan Gingold  <gingold@adacore.com>
773         * gcc-interface/Makefile.in: Handle arm-darwin and VxWorks 7.
774         Misc clean ups.
776 2014-10-20  Nicolas Roche  <roche@adacore.com>
778         * gcc-interface/Make-lang.in: ensure that automatically generated
779         dependency are referencing generated gnatvsn rather than original
780         one.
782 2014-10-20  Gary Dismukes  <dismukes@adacore.com>
784         * gnat_ugn.texi: Minor reformatting.
785         * sem_ch3.adb: Minor reformatting.
787 2014-10-20  Vincent Celier  <celier@adacore.com>
789         * prj-attr.adb: New project level attribute Runtime.
790         * prj-conf.adb (Get_Project_Runtimes): New procedure to get
791         the attributes Runtime declared in the main project, to use
792         in auto-configuration.
793         (Get_Or_Create_Configuration_File): Call Get_Project_Runtimes.
794         * prj-proc.adb (Runtime_Defaults): New table to store
795         the default values of attributes Runtime (<language>).
796         (Set_Default_Runtime_For): New procedure to store the default
797         value of a Runtime (<language>) in table Runtime_Defaults.
798         (Expression): Use the value stored in table Runtime_Defaults as
799         the default for Runtime (<language>).
800         * prj-proc.ads (Set_Default_Runtime_For): New procedure.
801         * prj.ads (Attribute_Default_Value): New enumerated value
802         Runtime_Value.
804 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
806         * sem_ch3.adb (Analyze_Object_Declaration): If the type is
807         an unconstrained unchecked_union type, rewrite declaration
808         as a renaming to prevent attempt to retrieve non- existent
809         discriminants from expression.
811 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
813         * gnat_ugn.texi: Minor reformatting.
815 2014-10-20  Tristan Gingold  <gingold@adacore.com>
817         * init.c (__gnat_is_stack_guard): Don't use mach_vm_region_recurse on
818         arm-darwin.
819         * raise-gcc.c: Add ATTRIBUTE_UNUSED to remove warnings for
820         unused arguments.
822 2014-10-20  Hristian Kirtchev  <kirtchev@adacore.com>
824         * sem_attr.adb (Analyze_Attribute): Replace
825         variables CS and PS with Proc_Id and Subp_Id to better illustrate
826         their purpose. Account for the case where _Postconditions
827         has not been generated yet and the context is aspect/pragma
828         Refined_Post. In that scenario the expected prefix of attribute
829         'Result is the current scope.
831 2014-10-20  Robert Dewar  <dewar@adacore.com>
833         * par-ch4.adb (P_Expression): Handle extraneous comma/semicolon
834         in middle of expression with logical operators.
836 2014-10-20  Robert Dewar  <dewar@adacore.com>
838         * par-ch13.adb (Possible_Misspelled_Aspect): New function.
840 2014-10-20  Steve Baird  <baird@adacore.com>
842         * pprint.adb: Improve Expression_Image function.
844 2014-10-20  Robert Dewar  <dewar@adacore.com>
846         * gnat_rm.texi: Document No_Tagged_Streams pragma and aspect.
847         * snames.ads-tmpl: Add entry for pragma No_Tagged_Streams.
848         * aspects.ads, aspects.adb: Add aspect No_Tagged_Streams.
849         * einfo.adb (No_Tagged_Streams_Pragma): New field.
850         * einfo.ads: Minor reformatting (reorder entries).
851         (No_Tagged_Streams_Pragma): New field.
852         * exp_ch3.adb: Minor comment update.
853         * opt.ads (No_Tagged_Streams): New variable.
854         * par-prag.adb: Add dummy entry for pragma No_Tagged_Streams.
855         * sem.ads (Save_No_Tagged_Streams): New field in scope record.
856         * sem_attr.adb (Check_Stream_Attribute): Check stream ops
857         prohibited by No_Tagged_Streams.
858         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set
859         No_Tagged_Streams_Pragma.
860         (Analyze_Subtype_Declaration): ditto.
861         (Build_Derived_Record_Type): ditto.
862         (Record_Type_Declaration): ditto.
863         * sem_ch8.adb (Pop_Scope): Restore No_Tagged_Streams.
864         (Push_Scope): Save No_Tagged_Streams.
865         * sem_prag.adb (Analyze_Pragma, case No_Tagged_Streams): Implement new
866         pragma.
868 2014-10-20  Robert Dewar  <dewar@adacore.com>
870         * sem_ch3.adb, prj-proc.adb, sem_ch4.adb, prj-env.adb, lib.ads,
871         sem_ch13.adb: Minor reformatting.
873 2014-10-20  Javier Miranda  <miranda@adacore.com>
875         * exp_ch3.adb (Expand_N_Object_Declaration): Expand the
876         declaration of a class-wide limited object containing an
877         initializing expression into a renaming declaration.  Required to
878         avoid passing such declaration to the backend and also to avoid
879         generating an extra copy.
881 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
883         * inline.adb (List_Inlining_Info): Minor tweaks.
884         (Add_Inlined_Body): Inline the enclosing package
885         if it is not internally generated, even if it doesn't come
886         from source.
888 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
890         * sem_ch4.adb (Process_Function_Call): If the first actual
891         denotes a discrete type, the mode must be interpreted as a slice
892         of an array returned by a parameterless call.
894 2014-10-20  Vasiliy Fofanov  <fofanov@adacore.com>
896         * prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit
897         searching for runtime referenced by a simple name on a project path.
899 2014-10-20  Olivier Hainque  <hainque@adacore.com>
901         * vxworks-x86-link.spec: New file.
902         * system-vxworks-x86.ads: Add pragma Linker_Options to link with
903         vxworks-x86-link.spec.
905 2014-10-20  Vincent Celier  <celier@adacore.com>
907         * opt.ads (Origin_Of_Target): New type.
908         (Target_Origin): New variable.
909         * prj-conf.adb (Parse_Project_And_Apply_Config): Record
910         Target_Value and Target_Origin.  If target was not specified
911         on the command line with --target=, check if attribute Target
912         is declared in the main project. If it is and it is not the
913         native target, parse again the projects so that 'Target get
914         the new value. Fail if the target has changed again.  Invoke
915         Process_Project_And_Apply_Config with Do_Phase_1 set to False
916         is Process_Project_Tree_Phase_1 has already been invoked.
917         * prj-conf.ads (Process_Project_And_Apply_Config): New Boolean
918         parameter Do_Phase_1, defaulted to True.
919         * prj-proc.adb (Expression): Check the special values and
920         defaults for attribute Target.
922 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
924         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze
925         the subprogram spec of the body in full, because it will be
926         reanalyzed when the declaration itself is analyzed;  otherwise. a
927         formal may end up duplicated in the list of formals leading to
928         spurious conformance errors with an existing declaration.
930 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
932         * sem_ch13.adb: Improve error recovery on illegal aspect.
934 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
936         * set_targ.adb (Write_Target_Dependent_Values, Write_Line):
937         Fix calling C APIs with no trailing NUL char by calling better
938         wrappers instead.
940 2014-10-20  Tristan Gingold  <gingold@adacore.com>
942         * gnat_ugn.texi: Document that gdb users must be in group
943         _developer on mac os.
945 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
947         * a-tgdico.ads: Fix typo.
949 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
951         * exp_aggr.adb (Convert_To_Assignments): Do not create a
952         transient scope for a component whose type requires it, if the
953         context is an initialization procedure, because the target of
954         the assignment must be visible outside of the block.
956 2014-10-20  Tristan Gingold  <gingold@adacore.com>
958         * tracebak.c: Define PC_ADJUST for arm-darwin.
959         * env.c: Remove darwin specific code.
960         * raise-gcc.c (__gnat_Unwind_ForcedUnwind): Error on arm-darwin.
962 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
964         * sem_ch3.adb (Analyze_Full_Type_Declaration): If previous view
965         is incomplete rather than private, and full type declaration
966         has aspects, analyze aspects on the full view rather than
967         the incomplete view, to prevent freezing anomalies with the
968         class-wide type.
970 2014-10-17  Robert Dewar  <dewar@adacore.com>
972         * exp_ch9.adb (Expand_N_Task_Body): Add defense against
973         previous errors.
974         * freeze.adb (Freeze_Entity): Add defense against checking null
975         scope for generic.
976         * restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode.
977         * sem_ch13.adb (Freeze_Entity_Checks): Add defense against
978         previous errors.
979         * sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if
980         in No_Run_Time mode.
982 2014-10-17  Robert Dewar  <dewar@adacore.com>
984         * prj-makr.adb: Minor reformatting.
986 2014-10-17  Robert Dewar  <dewar@adacore.com>
988         * gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb,
989         prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible.
991 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
993         * exp_prag.adb (Undo_Initialization): If Initialize_Scalars
994         is enabled, code will be generated for some composite types
995         to initialize an object after its declaration. If there is
996         a subsequent Import pragma for the object, that code must be
997         removed as specified byw the semantics of the pragma, and to
998         prevent out-of-order elaboration issues in the back-end.
1000 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1002         * exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator
1003         wrapping mechanism under debug flag -gnatd.h.
1004         * debug.adb: Claim debug switch -gnatd.h.
1006 2014-10-17  Doug Rupp  <rupp@adacore.com>
1008         * gcc-interface/Makefile.in: Enable the socket runtime bits
1009         for Android.
1011 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1013         * sem_ch13.adb (Add_Invariants, Replace_Type_References): Do
1014         not perform the replacement on the expression for an inherited
1015         class-wide invariant if in ASIS_Mode and the type reference is
1016         already the prefix of a 'Class attribute reference: the expression
1017         has already been preanalyzed and the replacement performed when
1018         first encountered on the declaration of the parent type.
1020 2014-10-17  Robert Dewar  <dewar@adacore.com>
1022         * sem_ch5.adb, sem_ch7.adb, prj-nmsc.adb, sem_ch13.adb, exp_ch3.adb:
1023         Minor reformatting.
1025 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1027         * exp_ch3.adb (Build_Component_Invariant_Call): Retrieve Invariant
1028         subprogram from base type.
1029         * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1030         subprogram for private type, not any of its subtypes.
1031         * sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set type
1032         of procedure entity, because a call to it may be generated in
1033         a client unit before the corresponding subprogram declaration
1034         is analyzed.
1036 2014-10-17  Vincent Celier  <celier@adacore.com>
1038         * prj-nmsc.adb (Get_Directories): Do not create directories
1039         when a project is abstract.
1041 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1043         * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
1044         of iteration is given by an expression that is not an array type,
1045         verify that its type implements an iterator iterface.
1047 2014-10-17  Robert Dewar  <dewar@adacore.com>
1049         * sem_attr.adb (Eval_Attribute): Ensure that attribute
1050         reference is not marked as being a static expression if the
1051         prefix evaluation raises CE.
1053 2014-10-17  Robert Dewar  <dewar@adacore.com>
1055         * exp_pakd.adb: Move bit packed entity tables to spec.
1056         * exp_pakd.ads: Move bit packed entity tables here from body.
1057         * freeze.adb (Freeze_Array_Type): Check that packed array type
1058         is supported.
1059         * rtsfind.adb (PRE_Id_Table): New table (Entity_Not_Defined):
1060         Specialize messages using PRE_Id_Table.
1061         * uintp.ads, uintp.adb (UI_Image): New functional form.
1063 2014-10-17  Robert Dewar  <dewar@adacore.com>
1065         * aspects.ads, aspects.adb: Add Suppress_Initialization aspect.
1066         * einfo.ads, einfo.adb (Suppress_Initialization): Now applies to
1067         E_Variable.
1068         * exp_ch3.adb (Default_Initialize_Object): Handle
1069         Suppress_Initialization.
1070         * exp_prag.adb (Expand_Pragma_Suppress_Initialization): New
1071         procedure (Expand_N_Pragma): Handle Suppress_Initialization
1072         (Expand_Pragma_Import_Or_Interface): Use Undo_Initialization
1073         (Undo_Initialization): New procedure.
1074         * sem_prag.adb (Analyze_Pragma, case Suppress_Initialization):
1075         This is now allowed for E_Variable case.
1076         * gnat_rm.texi: Document new aspect Suppress_Initialization
1077         Suppress_Initialization aspect/pragma can apply to variable.
1078         * einfo.ads: Minor reformatting.
1080 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
1082         * spark_xrefs.ads: Add documentation pointer to Flow_Computed_Globals.
1084 2014-10-17  Robert Dewar  <dewar@adacore.com>
1086         * cstand.adb (Create_Standard): Mark Short_Integer as
1087         implementation defined.
1088         * sem_util.adb (Set_Entity_With_Checks): Avoid blow up for
1089         compiler built with assertions for No_Implementation_Identifiers test.
1091 2014-10-17  Robert Dewar  <dewar@adacore.com>
1093         * aspects.ads: Documentation fix, aspect Lock_Free does have a
1094         corresponding pragma.
1095         * gnat_rm.texi: Document implementation defined boolean aspects
1096         as boolean.
1098 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1100         * sem_ch13.adb (Add_Invariants): For a class-wide type invariant,
1101         preserve semantic information on the invariant expression
1102         (typically a function call) because it may be inherited by a
1103         type extension in a different unit, and it cannot be resolved
1104         by visibility elsewhere because it may refer to local entities.
1106 2014-10-17  Robert Dewar  <dewar@adacore.com>
1108         * gnat_rm.texi: Document that string literal can be used for
1109         pragma Warnings when operating in Ada 83 mode.
1111 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1113         * freeze.adb (Find_Aggregate_Component_Desig_Type): New
1114         subsidiary function to Freeze_ Expression, used to determine
1115         whether an aggregate for an array of access types also freezes the
1116         designated type, when some aggregate components are allocators.
1118 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1120         * a-strsea.adb (Find_Token): AI05-031 indicates that the
1121         procedure must raise Index_Error when Source is not empty and
1122         the From parameter is not within the range of the Source string.
1124 2014-10-17  Robert Dewar  <dewar@adacore.com>
1126         * sem_prag.adb (Is_Static_String_Expression): Allow string
1127         literal in Ada 83 mode.
1129 2014-10-17  Vincent Celier  <celier@adacore.com>
1131         * prj-conf.adb (Get_Config_Switches): In CodePeer mode, do
1132         not take into account any compiler command from package IDE.
1134 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1136         * sem_ch12.adb (Build_Function_Wrapper): The formals of the
1137         wrapper must have the same identifiers as those of the formal
1138         subprogram, because calls within the generic may use named
1139         associations.
1141 2014-10-17  Robert Dewar  <dewar@adacore.com>
1143         * sem_ch3.adb, a-strsea.adb: Minor reformatting.
1144         * par-ch6.adb (P_Subprogram): Fix bad handling of null procedures.
1146 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1148         * sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect
1149         specfications from original type declaration to declaration of
1150         implicit base, because original node is rewritten as a subtype
1151         declaration on which type aspects do not belong.
1153 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1155         * sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type
1156         inherits the attributes related to pragma Default_Initial_Condition
1157         from its parent type.
1159 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1161         * a-strsea.adb (Index - versions with a From parameter):
1162         According to AI05-056, the Index functions with a From parameter
1163         return 0 if the source is an empty string.
1165 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1167         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable
1168         the consistency checks in ASIS mode.
1170 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
1172         * s-expmod.ads: Minor typo fix.
1174 2014-10-17  Robert Dewar  <dewar@adacore.com>
1176         * sem_util.adb: Minor reformatting.
1178 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1180         * sem_ch12.adb (Build_Function_Wrapper): Build wrappers for
1181         actuals that are defaulted subprograms of the formal subprogram
1182         declaration.
1184 2014-10-17  Robert Dewar  <dewar@adacore.com>
1186         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the
1187         implementation base type.
1188         * sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record
1189         operands are always expanded out into component comparisons.
1191 2014-10-17  Robert Dewar  <dewar@adacore.com>
1193         * s-vallli.adb: Minor comment correction.
1194         * s-valuti.ads: Minor comment reformatting.
1196 2014-10-17  Robert Dewar  <dewar@adacore.com>
1198         * gnat_rm.texi: Document System.Atomic_Counters.
1199         * impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the
1200         list of user- accessible units added as children of System.
1201         * s-atocou.ads: Update comment.
1203 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
1205         * s-expmod.ads: Add comments.
1207 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
1209         * sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation
1210         of all attributes related to pragma Default_Initial_Condition.
1211         (Build_Derived_Type): Propagation of all attributes related
1212         to pragma Default_Initial_Condition.
1213         (Process_Full_View): Account for the case where the full view derives
1214         from another private type and propagate the attributes related
1215         to pragma Default_Initial_Condition to the private view.
1216         (Propagate_Default_Init_Cond_Attributes): New routine.
1217         * sem_util.adb: Alphabetize various routines.
1218         (Build_Default_Init_Cond_Call): Use an unchecked type conversion
1219         when calling the default initial condition procedure of a private type.
1220         (Build_Default_Init_Cond_Procedure_Declaration): Prevent
1221         the generation of multiple default initial condition procedures.
1223 2014-10-17  Robert Dewar  <dewar@adacore.com>
1225         * prj-conf.adb: Revert previous change.
1227 2014-10-17  Robert Dewar  <dewar@adacore.com>
1229         * lib-writ.ads, s-valdec.ads: Minor reformatting.
1231 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
1233         * sem_ch12.adb: Additional work on function wrappers.
1235 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1237         * exp_util.adb (Possible_Bit_Aligned_Component): Also recurse
1238         on the renamed object of renamings.
1240 2014-10-17  Vincent Celier  <celier@adacore.com>
1242         * prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer
1243         mode, always use the native target.
1245 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1247         * gcc-interface/misc.c: Adjust include files.
1249 2014-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1250             Alan Modra  <amodra@gmail.com>
1252         PR ada/63225
1253         * uintp.adb (Vector_To_Uint): Move from here to...
1254         * uintp.ads (UI_Vector): Make public.
1255         (Vector_To_Uint): ...here.
1257 2014-10-10  Robert Dewar  <dewar@adacore.com>
1259         * freeze.adb, sem_attr.adb: Minor reformatting.
1261 2014-10-10  Johannes Kanig  <kanig@adacore.com>
1263         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
1264         a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
1265         to container type.
1267 2014-10-10  Vincent Celier  <celier@adacore.com>
1269         * prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
1270         any configuration switches from the project file.
1272 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1274         * sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
1275         (Build_Function_Wrapper): New function, to construct a wrapper
1276         function for actuals that are functions with an arbitrary
1277         number of parameters. Used in GNATProve mode to simplify proof
1278         propagation in instantiations.
1280 2014-10-10  Robert Dewar  <dewar@adacore.com>
1282         * freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
1283         code clean up.
1285 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1287         * sem_res.adb (Is_OK_Volatile_Context): Allow
1288         a volatile object reference to appear as the expression of a
1289         type conversion.
1291 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1293         * sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
1294         Aspect specification is legal on a local instantiation of a
1295         library-level generic unit.
1297 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
1299         * gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
1300         if inlining has been enabled via -gnatn and the target is not GCC.
1302 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1304         * freeze.adb (Freeze_Entity): Freezing a subprogram does
1305         not always freeze its profile.  In particular, an attribute
1306         reference that takes the access type does not freeze the types
1307         of the formals.
1309 2014-10-10  Robert Dewar  <dewar@adacore.com>
1311         * errout.adb (Adjust_Name_Case): New procedure.
1312         (Set_Msg_Node): Use Adjust_Name_Case.
1313         * errout.ads (Adjust_Name_Case): New procedure.
1314         * exp_intr.adb (Add_Source_Info): Minor code reorganization
1315         (use Ekind_In).
1316         (Write_Entity_Name): Use Errout.Adjust_Name_Case.
1317         * sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
1318         and fix up entries in Sig_Flags, and correct logical errors in
1319         function itself.
1320         * sprint.adb (Sprint_Node_Actual): Properly print string for
1321         raise statement.
1323 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1325         * sem_ch3.adb (Analyze_Object_Declaration): For an object of an
1326         anonymous array type with delayed aspects, defer freezing of
1327         type until object itself is frozen.
1328         * freeze.adb (Freeze_Entity): When freezing an object of an
1329         anonymous array type with delayed aspects, remove freeze node of
1330         object after freezing type, to prevent out-of-order elaboration
1331         in the back-end. The initialization call for the object has
1332         already been constructed when expanding the object declaration.
1334 2014-10-10  Robert Dewar  <dewar@adacore.com>
1336         * exp_intr.adb (Write_Entity_Name): Moved to outer level
1337         (Write_Entity_Name): Properly handle operator names
1338         (Expand_Source_Info): New procedure.
1339         * exp_intr.ads (Add_Source_Info): New procedure.
1341 2014-10-10  Robert Dewar  <dewar@adacore.com>
1343         * butil.ads: Minor reformatting.
1344         * sem_ch5.adb: Code clean up.
1346 2014-10-10  Robert Dewar  <dewar@adacore.com>
1348         * exp_ch11.adb (Expand_N_Raise_Statement): Handle
1349         Prefix_Exception_Messages.
1350         * opt.adb: Handle new flags Prefix_Exception_Message[_Config].
1351         * opt.ads: New flags Prefix_Exception_Message[_Config].
1352         * par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
1353         * snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
1354         * sem_prag.adb: Implement new pragma Prefix_Exception_Messages
1355         * gnat_rm.texi: Document pragma Prefix_Exception_Messages.
1357 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
1359         * sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
1360         raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).
1362 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1364         * sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
1365         contain pragmas generated for loop invariants and type predicates.
1366         Clarify use of this subprogram.
1368 2014-10-10  Yannick Moy  <moy@adacore.com>
1370         * sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
1371         contracts.
1372         * errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
1373         SPARK_Mode is Off.
1375 2014-10-10  Vadim Godunko  <godunko@adacore.com>
1377         * a-stwima.adb (To_Sequence): Compute size of result array.
1379 2014-10-10  Javier Miranda  <miranda@adacore.com>
1381         * gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
1382         sources of the example to avoid a warning when the Ada files are
1383         automatically generated by the binding generator.
1385 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1387         * sem_attr.adb (Resolve_Attribute, case 'Update): Set
1388         Do_Range_Check on the expression of a record component
1389         association when needed, as is done for array components, when
1390         the corresponding type is a scalar type.
1392 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
1394         * a-coinho-shared.adb: Minor typo fix.
1395         * prj-env.ads: Minor reformatting.
1397 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
1399         * sem_res.adb (Resolve_String_Literal): Do not
1400         generate a string literal subtype for the default expression of
1401         a formal parameter in GNATprove mode.
1403 2014-10-10  Yannick Moy  <moy@adacore.com>
1405         * errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.
1407 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1409         * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
1410         declaration for loop parameter before rest of loop, and set
1411         entity kind to prevent assignments to it in the user code.
1412         * sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
1413         loop parameter in an element iteration over o formal container.
1415 2014-10-10  Robert Dewar  <dewar@adacore.com>
1417         * gnat_ugn.texi: Document use of user-level routines to handle
1418         e.g. col major arrays.
1420 2014-10-10  Doug Rupp  <rupp@adacore.com>
1422         * s-osinte-android.adb: Fix misspelling.
1423         * gsocket.h: Tweak the Android quirks.
1425 2014-10-10  Robert Dewar  <dewar@adacore.com>
1427         * errout.ads (SPARK_Msg_N): Fix spec to match change in body.
1429 2014-10-10  Robert Dewar  <dewar@adacore.com>
1431         * sem_ch13.adb: Minor code reorganization.
1433 2014-10-10  Pat Rogers  <rogers@adacore.com>
1435         * gnat_rm.texi: Text now indicates pragma No_Run_Time is not
1436         for users.
1438 2014-10-10  Vadim Godunko  <godunko@adacore.com>
1440         * a-coinho-shared.adb: Add minor comment.
1441         * a-stzmap.adb (To_Sequence): Compute size of result array.
1443 2014-10-10  Javier Miranda  <miranda@adacore.com>
1445         * exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
1446         if-stmt to match its current documentation.
1448 2014-10-10  Robert Dewar  <dewar@adacore.com>
1450         * sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
1451         freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
1452         sem_ch6.adb, sem_cat.adb, sem_disp.adb
1453         (Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
1454         throughout where appropriate.
1456 2014-10-10  Bob Duff  <duff@adacore.com>
1458         * a-coinho-shared.ads: Minor reformatting.
1459         * s-traceb.adb: Minor clean up.
1461 2014-10-10  Robert Dewar  <dewar@adacore.com>
1463         * ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
1464         * ali.ads (GNATprove_Mode): New component in ALI table.
1465         (GNATprove_Mode_Specified): New global.
1466         * gnatbind.adb (Gnatbind): Give fatal error if any file compiled
1467         in GNATProve mode.
1468         * lib-writ.ads, lib-writ.adb (GP): New flag on P line for
1469         GNATProve_Mode.
1471 2014-10-10  Javier Miranda  <miranda@adacore.com>
1473         * exp_ch3.adb (Build_Init_Procedure): Adding assertion.
1474         (Build_Init_Statement): Ensure that statements
1475         associated with the parent components are located at the beginning
1476         of the returned list of statements.
1478 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1480         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
1481         view of a private type T that has a type invariant is a scalar
1482         or constrained array type, the base type created for the full
1483         view has the same type invariant.
1485 2014-10-10  Robert Dewar  <dewar@adacore.com>
1487         * exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
1488         reorganization.
1490 2014-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1492         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
1493         * gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
1495 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
1497         * gcc-interface/Make-lang.in (check_acats_numbers0,
1498         check_acats_numbers1, check_acats_numbers2, check_acats_numbers3,
1499         check_acats_numbers4, check_acats_numbers5, check_acats_numbers6,
1500         check_acats_numbers, check_acats_subdirs): New variables.
1501         (check_acats_targets): Use $(check_acats_subdirs).
1502         (check-acats, check-acats%): Rewritten so that for parallelized
1503         testing each job runs all the chapters files, with
1504         GCC_RUNTEST_PARALLELIZE_DIR set in environment.  Prepare the support
1505         directory sequentially and share it.
1506         (check-acats-subtargets): Always print just check-acats.
1508 2014-08-25  Martin Liska  <mliska@suse.cz>
1510         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to
1511         new cgraph interface.
1512         (gnat_write_global_declarations): Likewise.
1514 2014-08-13  Sylvestre Ledru  <sylvestre@debian.org>
1516         * 9drpc.adb: Fix a typo
1517         * s-interr.ads: Likewise
1518         * s-taskin.ads: Likewise
1519         * s-traces.ads: Likewise
1520         * sysdep.c: Likewise
1522 2014-08-12  Joel Sherrill <joel.sherrill@oarcorp.com>
1524         * socket.c: For RTEMS, use correct prototype of gethostbyname_r().
1525         * gsocket.h Add include of <unistd.h> on RTEMS.
1527 2014-08-11  Joel Sherrill <joel.sherrill@oarcorp.com>
1529         * s-osinte-rtems.adb: Correct formatting of line in license block.
1531 2014-08-04  Claire Dross  <dross@adacore.com>
1533         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
1534         For an instance, look at the scope before the generic parent.
1536 2014-08-04  Yannick Moy  <moy@adacore.com>
1538         * lib-writ.ads: Update comments.
1539         * sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add
1540         parameters to filter inherited subprograms.
1542 2014-08-04  Robert Dewar  <dewar@adacore.com>
1544         * gnat_rm.texi: Add section on use of address clause for memory
1545         mapped I/O.
1547 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1549         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in
1550         particular the subtype created for a generic actual, inherits
1551         invariant information from the base type.
1553 2014-08-04  Robert Dewar  <dewar@adacore.com>
1555         * aspects.ads, aspects.adb: Add entries for aspect Obsolescent.
1556         * gnat_rm.texi: Add documentation for aspect Obsolescent.
1557         * sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect
1558         Obsolescent.
1559         (Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent.
1560         * s-osprim-mingw.adb: Minor reformatting.
1561         * sem_res.adb (Is_Atomic_Ref_With_Address): New function
1562         (Resolve_Indexed_Component): Rework warnings for non-atomic access
1563         (Resolve_Selected_Component): Add warnings for non-atomic access.
1565 2014-08-04  Doug Rupp  <rupp@adacore.com>
1567         * g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec
1568         formal to long_long.
1569         * g-calend.ads (timeval): Bump up size to accomodate sec type.
1570         * s-taprop-linux.adb (timeval_to_duration): Change sec formal to
1571         long_long
1572         * s-osprim-posix.adb (timeval): Bump up size to accomodate
1573         new sec type.
1574         (timeval_to_duration): Change sec formal to Long_Long_Integer
1575         * s-osinte-darwin.adb (timeval): Bump up
1576         size to accomodate new sec type.
1577         (timeval_to_duration): Change sec formal to long_long
1578         * s-osinte-android.adb: Likewise.
1579         * cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change
1580         sec formal from long to long long.
1582 2014-08-04  Robert Dewar  <dewar@adacore.com>
1584         * sem_res.adb (Resolve_Qualified_Expression): Make sure
1585         Do_Range_Check flag gets set.
1587 2014-08-04  Robert Dewar  <dewar@adacore.com>
1589         * einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
1590         * exp_ch3.adb (Build_Array_Init_Proc): Use
1591         Is_Standard_String_Type.
1592         (Expand_Freeze_Array_Type): ditto.
1593         (Get_Simple_Init_Val): ditto.
1594         (Needs_Simple_Initialization): ditto.
1595         * sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
1596         * sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
1598 2014-08-04  Pascal Obry  <obry@adacore.com>
1600         * adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
1601         _stprintf which insert garbage into the wfull_path buffer.
1603 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1605         * cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
1606         code.
1607         * fe.h: Minor reformatting.
1609 2014-08-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1611         * cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
1613 2014-08-04  Robert Dewar  <dewar@adacore.com>
1615         * par-ch13.adb (Get_Aspect_Specifications): Improve error
1616         recovery, fixing a -gnatQ bomb.
1618 2014-08-04  Yannick Moy  <moy@adacore.com>
1620         * sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode,
1621         do not generate two Itypes with the same name for an array
1622         definition.
1623         * sinfo.ads: Expand doc on GNATprove mode.
1625 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1627         * exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization
1628         master and storage pool attributes on the root type of an
1629         anonymous access type.
1630         * exp_ch4.adb (Expand_N_Allocator): Set the finalization master
1631         and storage pool attributes on the root type of an anonymous
1632         access type.
1634 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1636         * exp_ch3.adb: Minor reformatting.
1637         * tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed.
1638         * tracebak.c: Remove use of above files.
1639         * gcc-interface/Makefile.in: Update dependencies.
1641 2014-08-04  Pierre-Marie Derodat  <derodat@adacore.com>
1643         * gcc-interface/utils.c (gnat_set_type_context): Also set the
1644         context for parallel types' TYPE_STUB_DECL.  Do not change
1645         anything if the context is already set for them.
1646         (gnat_pushdecl): Update the comment for calls to
1647         gnat_set_type_context to mention parallel types.
1648         (add_parallel_type): When adding a context-less parallel type to
1649         a type that has a context, propagate the context from the latter
1650         type to the former.
1651         (process_deferred_decl_context): Call gnat_set_type_context
1652         rather than manually setting the type context.
1653         (build_unc_object_type): Call gnat_set_type_context on the
1654         template type.
1656 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1658         * exp_ch5.adb (Expand_N_Case_Statement): If a choice is a
1659         subtype indication and the case statement has only two choices,
1660         replace subtype indication with its range, because the resulting
1661         membership test cannot have a subtype indication as an operand.
1663 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1665         * exp_ch3.adb: Update comments, minor reformatting.
1667 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1669         * sem_ch3.adb (Analyze_Declarations): Explain why the bodies of
1670         the default initial condition procedures are build here.
1671         * sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the
1672         analyzed argument of pragma Default_Initial_Condition in some
1673         dummy code as GNATprove mode disables assertions, but still
1674         needs to see the argument.
1676 2014-08-04  Robert Dewar  <dewar@adacore.com>
1678         * exp_ch6.adb, sem_util.adb: Minor reformatting.
1680 2014-08-04  Olivier Hainque  <hainque@adacore.com>
1682         * a-comutr.ads: Set Root_Node_Type'Alignment to
1683         Standard'Maximum_Alignment, so that it is at least as large as
1684         the max default for Tree_Node_Type'Alignment.
1686 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1688         * exp_ch3.adb (Freeze_Type): Remove the generation and inheritance
1689         of the default initial condition procedure [body].
1690         * sem_ch3.adb (Analyze_Declarations): Create the bodies of
1691         all default initial condition procedures at the end of private
1692         declaration analysis.
1693         * sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New
1694         routine.
1695         (Build_Default_Init_Cond_Procedure_Body): Merged in the
1696         processing of routine Build_Default_Init_Cond_Procedure_Bodies.
1697         * sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies):
1698         New routine.
1699         (Build_Default_Init_Cond_Procedure_Body): Removed.
1701 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1703         * sem_elab.adb (Check_Elab_Call): Do not check a call to a
1704         postcondtion.
1705         * exp_ch6.adb (Expand_Call): Clarify handling of inserted
1706         postcondition call.
1708 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1710         * sem_prag.adb (Analyze_Pragma): Ensure that an
1711         internally generated spec for a stand alone body is recognized
1712         as a proper context for pragma SPARK_Mode.
1714 2014-08-04  Robert Dewar  <dewar@adacore.com>
1716         * erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors.
1718 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1720         * adabkend.adb (Scan_Back_End_Switches): Ignore extra -o
1721         when -gnatO has already been specified, for compatibility
1722         with gcc driver.
1723         (Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in
1724         codepeer mode.
1725         * g-expect.ads: Fix typo.
1727 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1729         * exp_ch4.adb (Insert_Dereference_Action): the actual Size
1730         must account for the bounds template if the designated type is
1731         an unconstrained array.
1733 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1735         * a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add
1736         SPARK_Mode in the body.
1737         * sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original
1738         way to verify the consistency of SPARK_Mode between a spec and
1739         a body.
1740         * sem_ch12.adb (Analyze_Package_Instantiation): Remove the call
1741         to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
1742         manually.
1743         (Analyze_Subprogram_Instantiation): Remove the call to
1744         Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
1745         manually.
1746         * sem_prag.adb (Analyze_Pragma): Remove local variable
1747         Inst_Id. SPARK_Mode can no longer be applied to a package or
1748         subprogram instantiation.
1749         * sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode):
1750         Removed.
1752 2014-08-04  Robert Dewar  <dewar@adacore.com>
1754         * sem_prag.adb, osint.adb, osint.ads: Minor reformatting.
1756 2014-08-04  Yannick Moy  <moy@adacore.com>
1758         * sem_ch3.adb (Derive_Type_Declaration,
1759         Process_Discriminants): Remove SPARK-specific legality checks.
1761 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1763         * g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram.
1764         * gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support
1765         for HMAC.
1767 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1769         * sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the
1770         compatibility of SPARK_Mode between a spec and a body, use the
1771         SPARK_Mode of the public part.
1772         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use
1773         the already available routine to exchange the aspects between
1774         the template and its copy. Analyze the aspects of copy to
1775         ensure that the corresponding pragmas perform their semantic
1776         effects.  The partial analysis of aspects is no longer needed.
1777         (Analyze_Package_Instantiation): Save and restore the SPARK_Mode
1778         of the context.
1779         (Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of
1780         the context.
1781         * sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram
1782         instantiation which does not come from source.
1784 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1786         * a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add
1787         SPARK_Mode pragmas to the public and private part of the unit.
1788         * sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived
1789         type cannot have discriminants if the parent type already has
1790         discriminants.
1791         (Process_Discriminants): Ensure that the type of a discriminant is
1792         discrete.
1793         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on
1794         SPARK_Mode compatibility between a spec and a body can now be
1795         safely performed while processing a generic.
1796         * sem_ch7.adb (Analyze_Package_Body_Helper): The check on
1797         SPARK_Mode compatibility between a spec and a body can now be
1798         safely performed while processing a generic.
1799         * sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be
1800         safely analyzed when processing a generic.
1802 2014-08-04  Nicolas Roche  <roche@adacore.com>
1804         * g-dirope.adb: Minor reformating.
1806 2014-08-04  Robert Dewar  <dewar@adacore.com>
1808         * sem_ch6.adb: Minor reformatting.
1810 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1812         * sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
1813         Before normalizing these pragmas into a pragma Check, preanalyze
1814         the optional Message argument, (which is subsequently copied)
1815         so that it has the proper semantic information for ASIS use.
1816         * sem_case.adb: Initialize flag earlier.
1817         * osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
1818         the full source path of a configuration file is requested.
1819         (Read_Source_File): Use Full_Name parameter..
1821 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1823         * opt.ads Alphabetize various global flags. New flag
1824         Ignore_Pragma_SPARK_Mode along with a comment on usage.
1825         * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
1826         Pragma SPARK_Mode is now allowed in generic units.
1827         (Analyze_Subprogram_Body_Helper): Do not verify the compatibility
1828         between the SPARK_Mode of a spec and that of a body when inside
1829         a generic.
1830         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the
1831         compatibility between the SPARK_Mode of a spec and that of a
1832         body when inside a generic.
1833         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
1834         Pragma SPARK_Mode is now allowed in generic units.
1835         (Analyze_Package_Instantiation): Save and restore the value of
1836         flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
1837         the governing SPARK_Mode before analyzing the instance.
1838         (Analyze_Subprogram_Instantiation): Save and restore the value
1839         of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
1840         the governing SPARK_Mode before analyzing the instance.
1841         * sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the
1842         placement of a source pragma when inserting the generated pragma
1843         for aspect SPARK_Mode.
1844         * sem_prag.adb (Analyze_Pragma): Reimplement the handling of
1845         pragma SPARK_Mode to allow for generics and their respective
1846         instantiations.
1847         * sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed.
1848         (Set_Ignore_Pragma_SPARK_Mode): New routine.
1850 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
1852         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with
1853         renaming discriminants in tagged types first.
1854         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test
1855         the underlying type of the prefix.
1856         (Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..."
1857         (process_freeze_entity): Reset the nodes of all the view of a type,
1858         if any.
1860 2014-08-04  Doug Rupp  <rupp@adacore.com>
1861             Olivier Hainque  <hainque@adacore.com>
1863         * gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7
1864         and remove incorrect EH_MECHANISM macros.
1865         Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to
1866         EXTRA_LIBGNAT_OBJS.
1868 2014-08-04  Robert Dewar  <dewar@adacore.com>
1870         * exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix
1871         of constructed 'Valid attribute in -gnatVa mode does not appear
1872         to come from source.
1873         * sem_attr.adb (Analyze_Access_Attribute): Don't set
1874         Never_Set_In_Source for non-source reference.
1875         * sem_util.adb: Minor reformatting.
1876         * sem_warn.adb (Check_References): Don't check Address_Taken,
1877         not necessary, see comment.
1879 2014-08-04  Robert Dewar  <dewar@adacore.com>
1881         * sem_util.adb, sem_case.adb: Minor reformatting.
1883 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1885         * exp_ch9.adb (Extract_Entry): If the synchronized object is a
1886         limited view, replace with non-limited view, which is available
1887         at the point of an entry call.
1889 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1891         * exp_ch6.adb (Expand_Call): If the call is to a function in
1892         a run-time unit that is marked Inline_Always, we must suppress
1893         debugging information on it, so that the code that is eventually
1894         inlined will not affect debugging of the user program.
1896 2014-08-04  Robert Dewar  <dewar@adacore.com>
1898         * inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
1899         fixes.
1901 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1903         * sem_prag.adb (Process_Import_Or_Interface): Handle properly
1904         an aspect Import that specifies a False value.
1906 2014-08-04  Robert Dewar  <dewar@adacore.com>
1908         * gnat_rm.texi: Add section on aspect Invariant'Class.
1910 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1912         * sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
1913         for better control of cascaded error messages when some choice
1914         in a case statement over a predicated type violates the given
1915         static predicate.
1917 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1919         * sem_ch3.adb (Build_Derived_Type): Modify the
1920         inheritance of the rep chain to ensure that a non-tagged type's
1921         items are not clobbered during the inheritance.
1923 2014-08-04  Robert Dewar  <dewar@adacore.com>
1925         * sem_ch3.adb, einfo.ads: Minor reformatting.
1927 2014-08-04  Yannick Moy  <moy@adacore.com>
1929         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix
1930         detection of subprograms that cannot be inlined in GNATprove mode.
1932 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1934         * einfo.adb: Add guard to Returns_Limited_View.
1936 2014-08-04  Jose Ruiz  <ruiz@adacore.com>
1938         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of
1939         the secondary stack to respect the alignments of the returned objects.
1941 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1943         * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
1944         on function entities whose return type is a limited view.
1945         * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
1946         where to place the freeze node for a function that returns the
1947         limited view of a type, when the function is called and frozen
1948         in a different unit.
1950 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
1952         * sem_ch3.adb (Build_Derived_Private_Type): Minor code
1953         refactoring.
1955 2014-08-04  Robert Dewar  <dewar@adacore.com>
1957         * gnat_ugn.texi: Clarify documentation on assertions.
1959 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1961         * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
1962         if a component association has a box initialization when the
1963         component type has no default initialization, either through an
1964         initial value, an aspect, or an implicit initialization procedure.
1966 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1968         * freeze.adb: Code clean up.
1970 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1972         * sem_ch5.adb: Minor reformatting.
1974 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1976         * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
1977         a function can return a limited view of a type declared
1978         elsewhere. In that case the function cannot be frozen at the end
1979         of its enclosing package. If its first use is in a different unit,
1980         it cannot be frozen there, but if the call is legal the full view
1981         of the return type is available and the subprogram can now be
1982         frozen. However the freeze node cannot be inserted at the point
1983         of call, but rather must go in the package holding the function,
1984         so that the backend can process it in the proper context.
1986 2014-08-04  Robert Dewar  <dewar@adacore.com>
1988         * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
1990 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1992         * sem_ch4.adb (Operator_Check): Refine previous change.
1994 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1996         * sem_scil.ads: Improve comments.
1997         * sem_ch4.adb (Analyze_Equality_Op): Add support for
1998         Allow_Integer_Address (equality between Address and Integer).
2000 2014-08-04  Yannick Moy  <moy@adacore.com>
2002         * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
2003         notation on untagged objects.
2004         * sem.ads: Update comment.
2005         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
2006         not inline subprograms declared in the visible part of a package.
2008 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2010         * exp_ch5.adb: minor reformatting.
2011         * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
2012         parameters.
2014 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2016         * s-fatgen.adb: Minor reformatting.
2018 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2020         * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
2021         False on .NET.
2023 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2025         * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
2026         the loop parameter for element iterators over containers and
2027         arrays, so that improper uses of it are detected in the loop
2028         body when expansion is disabled.
2029         * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
2030         generated cursor is that of the analyzed loop parameter.
2032 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2034         * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
2035         Flag_Decl. Do not analyze the declaration of the flag as it is
2036         not part of the tree yet, instead add it to the freeze actions
2037         of the C++ type.
2039 2014-08-04  Robert Dewar  <dewar@adacore.com>
2041         * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
2042         case of OUT and IN OUT parameter correctly (where Source_Typ is
2043         set), we were missing one case where a check must be applied.
2045 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2047         * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
2048         the generated code. Instead of hiding the renaming and using the
2049         wrapper as the proper association, have the subprogram renaming
2050         alias the wrapper.
2051         (Build_Spec): The entity of the wrapper is
2052         now derived from the entity of the related primitive.
2054 2014-08-04  Emmanuel Briot  <briot@adacore.com>
2056         * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
2057         using non-capturing groups.
2059 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2061         * inline.adb (Build_Body_To_Inline): Remove Unmodified and
2062         related pragmas before copying the original body, to prevent
2063         spurious errors when the pragmas apply to formals that will not
2064         appear in the inlined body.
2066 2014-08-04  Robert Dewar  <dewar@adacore.com>
2068         * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
2069         exp_ch3.adb: Minor reformatting.
2071 2014-08-04  Robert Dewar  <dewar@adacore.com>
2073         * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
2075 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2077         * aspects.adb Add an entry in table Canonical_Aspect for
2078         Default_Initial_Condition.
2079         * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
2080         Aspect_Names and Aspect_Delay for Default_Initial_Condition.
2081         * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
2082         is now Is_Default_Init_Cond_ Procedure. Flag133 is now
2083         Has_Inherited_Default_Init_Cond.
2084         (Default_Init_Cond_Procedure): New routine.
2085         (Has_Default_Init_Cond): New routine.
2086         (Has_Inherited_Default_Init_Cond): New routine.
2087         (Is_Default_Init_Cond_Procedure): New routine.
2088         (Set_Default_Init_Cond_Procedure): New routine.
2089         (Set_Has_Default_Init_Cond): New routine.
2090         (Set_Has_Inherited_Default_Init_Cond): New routine.
2091         (Set_Is_Default_Init_Cond_Procedure): New routine.
2092         (Write_Entity_Flags): Output all the new flags.
2093         * einfo.ads New attributes Default_Init_Cond_Procedure,
2094         Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
2095         along with usage in nodes.
2096         (Default_Init_Cond_Procedure): New routine.
2097         (Has_Default_Init_Cond): New routine and pragma Inline.
2098         (Has_Inherited_Default_Init_Cond): New routine and
2099         pragma Inline.
2100         (Is_Default_Init_Cond_Procedure): New routine and
2101         pragma Inline.
2102         (Set_Default_Init_Cond_Procedure): New routine.
2103         (Set_Has_Default_Init_Cond): New routine and pragma Inline.
2104         (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
2105         (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
2106         * exp_ch3.adb (Expand_N_Object_Declaration): New constant
2107         Next_N. Generate a call to the default initial condition procedure
2108         if the object's type is subject to the pragma.  (Freeze_Type):
2109         Generate the body of the default initial condition procedure or
2110         inherit the spec from a parent type.
2111         * exp_ch7.adb Add with and use clause for Exp_Prag.
2112         (Expand_Pragma_Initial_Condition): Removed.
2113         * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
2114         routine.
2115         * par-prag.adb (Prag): Pragma Default_Initial_Condition does
2116         not need special treatment by the parser.
2117         * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
2118         attributes related to pragma Default_Initial_Condition to the
2119         derived type.
2120         (Process_Full_View): Propagate the attributes
2121         related to pragma Default_Initial_Condition to the full view.
2122         * sem_ch7.adb (Analyze_Package_Specification): Build the
2123         declaration of the default initial condition procedure for all
2124         types that qualify or inherit the one from the parent type.
2125         * sem_ch13.adb (Analyze_Aspect_Specifications):
2126         Add processing for aspect Default_Initial_Condition.
2127         (Check_Aspect_At_Freeze_Point): Aspect
2128         Default_Initial_Condition does not require delayed analysis.
2129         (Replace_Type_References_Generic): Moved to spec.
2130         * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
2131         * sem_prag.adb Add an entry in table Sif_Glags for
2132         Default_Initial_Condition.
2133         (Analyze_Pragma): Pragma
2134         Default_Initial_Condition is now part of assertion
2135         policy. Add processing for pragma Default_Initial_Condition.
2136         (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
2137         now recognized as a proper assertion policy.
2138         * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
2139         routine.
2140         (Build_Default_Init_Cond_Procedure_Body): New routine.
2141         (Build_Default_Init_Cond_Procedure_Declaration): New routine.
2142         (Inherit_Default_Init_Cond_Procedure): New routine.
2143         * snames.ads-tmpl Add new predefined name and pragma id for
2144         Default_Initial_Condition.
2146 2014-08-04  Vincent Celier  <celier@adacore.com>
2148         * prj-dect.adb (Parse_Case_Construction): It is no longer
2149         an error if the variable for a case construction is not
2150         typed, only if the variable value is not a single string. Call
2151         Parse_Choice_List and End_Case_Construction with the new parameter
2152         to indicate that the variable is typed.
2153         * prj-strt.adb (End_Case_Construction): Only check the labels
2154         if the variable is typed.  If the variable is not typed,
2155         issue a warning when there is no "when others" allternative.
2156         (Parse_Choice_List): Manage the labels only if the variable
2157         is typed.
2158         * prj-strt.ads (End_Case_Construction): New Boolean parameter
2159         String_Type.
2160         (Parse_Choice_List): Ditto.
2162 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2164         * sem_ch5.adb: Additional fix to Check_Predicate_Use.
2166 2014-08-04  Vincent Celier  <celier@adacore.com>
2168         * projects.texi: Update documentation of case constructions with
2169         variables that are not typed.
2171 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2173         * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
2174         an Eliminated pragma, indicate that the wrapper is also to be
2175         eliminated, to prevent spurious errors when using gnatelim on
2176         programs that include box-initialization of equality operators
2177         (consequence of AI05-071)..
2179 2014-08-04  Robert Dewar  <dewar@adacore.com>
2181         * checks.adb (Activate_Overflow_Check): Handle floating-point
2182         case correctly.
2183         * checks.ads (Activate_Overflow_Check): Clarify handling of
2184         floating-point cases.
2185         * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
2186         flag if we generate an explicit overflow check (for
2187         Check_Float_Overflow mode).
2189 2014-08-04  Robert Dewar  <dewar@adacore.com>
2191         * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
2192         prj-attr.adb, prj-attr.ads: Minor reformatting.
2194 2014-08-04  Yannick Moy  <moy@adacore.com>
2196         * expander.adb (Expand): Always perform special
2197         expansion in GNATprove mode, even when doing pre-analysis.
2199 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2201         * repinfo.adb (List_Scalar_Storage_Order): List bit order if
2202         not default. Also list bit order if SSO is specified. Do not
2203         assume that bit order is always equal to scalar storage order.
2205 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2207         * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
2208         order to reverse SSO for a type that has an explicit native
2209         Bit_Order.
2211 2014-08-04  Doug Rupp  <rupp@adacore.com>
2213         * cal.c: Macro check for VxWorks7.
2214         * init.c (getpid): Likewise.
2215         * mkdir.c (__gnat_mkdir): Likewise.
2216         * sysdep.c (__gnat_is_file_not_found_error): Likewise.
2218 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2220         * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
2221         of an invariant check in the case where No_Initialization is set,
2222         since the object is uninitialized.
2224 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2226         * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
2227         name, in addition to a pragma name.
2228         * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
2229         Is_Pragma_Name): Adjust accordingly.
2230         * sem_attr.ads, sem_attr.adb, exp_attr.adb
2231         (Attribute_Default_Scalar_Storage_Order): Add handling of new
2232         attribute.
2233         * gnat_rm.texi: Document the above.
2235 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2237         * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
2238         mode for now, to revert to previous behavior.
2239         * checks.adb: Revert previous change, no longer needed.
2241 2014-08-04  Robert Dewar  <dewar@adacore.com>
2243         * gnat1drv.adb (Adjust_Global_Switches): Don't set
2244         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
2245         * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
2246         set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
2247         * switch-c.adb (Scan_Front_End_Switches): Don't set
2248         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
2250 2014-08-04  Vincent Celier  <celier@adacore.com>
2252         * prj-attr.adb: Add new default indications for
2253         attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
2254         (Attribute_Default_Of): New function (Initialize): Set the
2255         default for those attributes that have one specified.
2256         * prj-attr.ads (Attribute_Data): New component Default.
2257         * prj-proc.adb (Expression): Take into account the new defaults
2258         for attributes Object_Dir, Exec_Dir and Source_Dirs.
2259         * prj-strt.adb (Attribute_Reference): Set the default for
2260         the attribute.
2261         * prj-tree.ads, prj-tree.adb (Default_Of): New function.
2262         (Set_Default_Of): New procedure.
2263         * prj.adb (The_Dot_String): New global Name_Id variable,
2264         initialized in procedure Initialize.
2265         (Dot_String): New function
2266         (Initialize): Initialize The_Dot_String.
2267         (Reset): Create the string list Shared.Dot_String_List.
2268         * prj.ads (Attribute_Default_Value): New enumeration type.
2269         (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
2270         (Dot_String): New function.
2271         (Shared_Project_Tree_Data): New string list component Dot_String_List.
2272         * projects.texi: Document new defaults for attribute Object_Dir,
2273         Exec_Dir and Source_Dirs.
2275 2014-08-04  Robert Dewar  <dewar@adacore.com>
2277         * sem_ch12.adb: Minor reformatting.
2279 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2281         * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
2282         expansion in CodePeer_Mode.
2283         (Selected_Range_Checks): Add handling of overflow checks in
2284         CodePeer_Mode.
2286 2014-08-04  Robert Dewar  <dewar@adacore.com>
2288         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
2289         Remove special test for Float'First, no longer required.
2290         (Expand_N_Attribute_Reference, case Succ): Remove special test
2291         for Float'First, no longer required.
2292         * s-fatgen.adb (Pred): return infinity unchanged.
2293         (Succ): ditto.
2295 2014-08-04  Claire Dross  <dross@adacore.com>
2297         * sem_ch12.adb (Analyze_Associations): Defaults should only be
2298         used if there is no explicit match.
2299         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
2300         Also check for pragma external_axiomatization on generic units.
2302 2014-08-04  Robert Dewar  <dewar@adacore.com>
2304         * checks.adb (Activate_Overflow_Check): Remove
2305         Check_Float_Overflow processing.
2306         (Apply_Scalar_Range_Check): Ditto.
2307         (Generate_Range_Check): Ditto.
2308         * exp_ch4.adb (Expand_N_Op_Add): Add call to
2309         Check_Float_Op_Overflow.
2310         (Expand_N_Op_Divide): ditto.
2311         (Expand_N_Op_Multiply): ditto.
2312         (Expand_N_Op_Subtract): ditto.
2313         * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
2314         * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
2315         Do_Range_Check is set for floating-point case in -gnatc or
2316         GNATprove mode.
2317         (Analyze_Attribute, case Succ): Make sure
2318         Do_Range_Check is set for floating-point case in -gnatc or
2319         GNATprove mode.
2320         * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
2321         flag is set for real to integer conversion in GNATprove or
2322         -gnatc mode.
2324 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2326         * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
2327         the expression of an Import or Export aspect as type Boolean
2328         and require it to be static. Add ??? comment. Also, set the
2329         Is_Exported flag when appropriate.
2331 2014-08-04  Robert Dewar  <dewar@adacore.com>
2333         * exp_ch4.adb: Minor reformatting.
2334         * exp_attr.adb: Minor reformatting.
2336 2014-08-04  Thomas Quinot  <quinot@adacore.com>
2338         * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
2339         (Unaligned_Valid): Remove now unused subprogram.
2340         * exp_attr.adb (Expand_N_Attribute_Reference, case
2341         Attribute_Valid): If the prefix is in reverse SSO or potentially
2342         unaligned, copy it using a byte copy operation to a temporary
2343         variable.
2344         * einfo.adb: Minor comment fix.
2346 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2348         * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
2350 2014-08-04  Robert Dewar  <dewar@adacore.com>
2352         * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
2353         * s-fatgen.adb (Pred): Handle Float'First.
2354         (Succ): Handle Float'Last.
2356 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2358         * sem_util.adb (Is_Potentially_Unevaluated): If the original
2359         node of a parent node in the tree is a short-circuit operation,
2360         the node is potentially unevaluated.
2362 2014-08-04  Robert Dewar  <dewar@adacore.com>
2364         * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
2365         conversion from a real type to an integer type.
2367 2014-08-04  Yannick Moy  <moy@adacore.com>
2369         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
2370         sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
2371         exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
2372         sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
2373         SPARK_05 instead of SPARK.
2375 2014-08-04  Robert Dewar  <dewar@adacore.com>
2377         * sem.ads: Minor reformatting.
2378         * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
2379         reformatting.
2380         (Analyze_Aspect_Specifications, case Convention): Put External_Name
2381         before Link_Name when constructing pragma.
2383 2014-08-04  Yannick Moy  <moy@adacore.com>
2385         * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
2386         to True during analysis of a default component expression.
2387         (Semantics): Save and restore In_Default_Expr around analysis.
2388         * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
2389         Call new wrapper Preanalyze_Default_Expression.
2390         (Preanalyze_Default_Expression): New wrapper on
2391         Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
2392         * sem_res.adb (Resolve_Call): Mark calls inside default
2393         expressions as not inlined in GNATprove mode.
2395 2014-08-04  Robert Dewar  <dewar@adacore.com>
2397         * exp_ch4.adb: Minor reformatting.
2399 2014-08-04  Olivier Hainque  <hainque@adacore.com>
2401         * link.c: remove const on __gnat_objlist_file_supported for AIX
2403 2014-08-04  Robert Dewar  <dewar@adacore.com>
2405         * sem_util.ads: Minor addition of comment.
2407 2014-08-04  Vincent Celier  <celier@adacore.com>
2409         * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
2410         all projects, including aggregate and aggregate library projects.
2412 2014-08-04  Yannick Moy  <moy@adacore.com>
2414         * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
2416 2014-08-04  Robert Dewar  <dewar@adacore.com>
2418         * sem_eval.adb (Test_In_Range): Always in range for
2419         Is_Known_Valid target type, where input type has smaller or
2420         equal size and does not have biased rep.
2422 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2424         * sem_attr.adb (Eval_Attribute): Constrained is not treated as
2425         a static attribute, and the Static flag must not be set on it
2426         during resolution. It may be constant-folded during expansion,
2427         but if expansion is disabled it is not a static expression.
2429 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2431         * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
2432         referenced once resolution has taken place.
2434 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2436         * exp_ch4.adb (Expand_N_Type_Conversion): Don't
2437         compare access levels in the case where the target type is the
2438         anonymous type of an access discriminant, since the level of
2439         such types is defined based on context. Add comment.
2441 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2443         * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
2444         cases related to equality.  Remove the special processing
2445         for dispatching abstract subprograms as it is not needed.
2446         (Interpretation_Error): Add a specialized error message for
2447         predefined operators.
2448         (Is_Intrinsic_Equality): New routine.
2449         (Is_Suitable_Candidate): New routine.
2451 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2453         * checks.adb: Minor comment reformatting.
2455 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2457         * restrict.adb (Check_Restriction): For checked max_parameter
2458         restrictions reset Violated flag, so that subsequent violations
2459         are properly detected.
2461 2014-08-04  Robert Dewar  <dewar@adacore.com>
2463         * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
2464         mode.
2465         (Process_Discriminants): Fix bad test of GNATprove mode
2467 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2469         * sem_ch12.adb (Instantiate_Formal_Subprogram):
2470         Move variable to their own section. Propagate the source
2471         location of a formal parameter to the corresponding formal of
2472         the subprogram renaming declaration. Code reformatting.
2474 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2476         * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
2478 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2480         * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
2481         if error already detected.  We may reach this point in spite of
2482         previous errors when compiling with -gnatq, to force all possible
2483         errors (this is the usual ACATS mode).
2485 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2487         * checks.adb (Generate_Range_Check): For the case of converting
2488         a base type with a larger range to a smaller target subtype, only
2489         use unchecked conversions of bounds in the range check followed
2490         by conversion in the case where both types are discrete. In other
2491         cases, convert to the target base type and save in a temporary
2492         followed by the range check.
2493         (Convert_And_Check_Range): New procedure factoring code to save
2494         conversion to a temporary followed by a range check (called two
2495         places in Generate_Range_Check).
2496         * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
2497         check-in, to generate range checks for conversions between
2498         any floating-point types rather than limiting it to matching
2499         base types.
2501 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
2503         * gcc-interface/trans.c: Use hash_set instead of pointer_set.
2505 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2507         * restrict.adb (Update_Restrictions): For restrictions with a
2508         maximum parameter (e.g. number of protected entries in Ravenscar)
2509         do not compute the maximum of the violation over several objects,
2510         because the restriction is per-object.
2511         (Check_Restriction): After possible message, reset the value
2512         of of a checked max_parameter restriction to zero, to prevent
2513         cascaded errors.
2514         * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
2515         (sub)type to determine whether derived type should be on the
2516         list of private dependents of a type whose full view may become
2517         visible subsequently.
2519 2014-08-01  Olivier Hainque  <hainque@adacore.com>
2521         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
2522         $(CXX) instead of ../../xg++ to feed CXX.
2523         (CXX_LFLAGS): Remove. Now unused as the proper flags
2524         are expected to be included in the CXX variable.
2526 2014-08-01  Pierre-Marie Derodat  <derodat@adacore.com>
2528         * gcc-interface/decl.c (elaborate_expression_1): Return the new
2529         variable when debug info is needed and the expression is not
2530         constant.  Tag as external only new variables that are global.
2531         (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
2532         * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
2533         attributes for IN array parameters when their actual subtype
2534         needs debug info.
2535         (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
2536         * gcc-interface/gigi.h (process_deferred_decl_context): New.
2537         * gcc-interface/utils.c (gnat_write_global_declarations): Do not
2538         emit debug info for ignored global declarations.
2539         (struct deferred_decl_context_node,
2540         add_deferred_decl_context, add_deferred_type_context,
2541         compute_deferred_decl_context, defer_or_set_type_context,
2542         deferred_decl_context_queue, get_debug_scope,
2543         get_global_context, process_deferred_decl_context): New.
2544         (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
2545         computation machinery to rely on the GNAT Scope attribute.
2547 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2549         * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
2551 2014-08-01  Robert Dewar  <dewar@adacore.com>
2553         * sem_ch8.adb, opt.ads Minor comment updates.
2555 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2557         * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
2558         from the side effects removal machinery.
2559         * exp_util.adb (Duplicate_Subexpr): Add formal parameter
2560         Renaming_Req. Update the nested call to Remove_Side_Effects.
2561         (Duplicate_Subexpr_No_Checks): Add formal parameter
2562         Renaming_Req. Update the nested call to Remove_Side_Effects.
2563         (Duplicate_Subexpr_Move_Checks): Add formal parameter
2564         Renaming_Req. Update the nested call to Remove_Side_Effects.
2565         (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
2566         an object renaming declaration when the caller requests it.
2567         * exp_util.ads (Duplicate_Subexpr): Add formal
2568         parameter Renaming_Req. Update comment on usage.
2569         (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
2570         (Duplicate_Subexpr_Move_Checks): Add formal parameter
2571         Renaming_Req.
2573 2014-08-01  Bob Duff  <duff@adacore.com>
2575         * gnat_ugn.texi: Minor updates.
2577 2014-08-01  Robert Dewar  <dewar@adacore.com>
2579         * atree.adb: Minor reformatting.
2581 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2583         * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
2584         private extension, get stored constraint, if any, from full view.
2586 2014-08-01  Robert Dewar  <dewar@adacore.com>
2588         * opt.ads (No_Elab_Code_All_Pragma): New global variable.
2589         * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
2590         (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
2591         (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
2592         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2593         Remove code for checking with's, now in sem_ch10.adb, set
2594         Opt.No_Elab_Code_All_Pragma.
2596 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2598         * sem_ch3.adb (Copy_And_Build): Copy the declaration for
2599         access types as well and adjust the subtype mark if there are
2600         no constraints.
2602 2014-08-01  Robert Dewar  <dewar@adacore.com>
2604         * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
2606 2014-08-01  Robert Dewar  <dewar@adacore.com>
2608         * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
2610 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2612         * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
2613         * exp_ch4.adb (Expand_Composite_Equality): Add conversion
2614         of the actuals in the case of untagged record types too.
2615         * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
2616         full derivation of a derived private type, extracted from...
2617         (Copy_And_Build): In the case of record types and most
2618         enumeration types, copy the original declaration.  Build the
2619         full derivation according to the approach extracted from...
2620         (Build_Derived_Private_Type): ...here.  Call Build_Full_Derivation
2621         to create the full derivation in all existing cases and also
2622         create it in the no-discriminants/discriminants case instead of
2623         deriving directly from the full view.
2624         (Is_Visible_Component): Remove obsolete code.
2625         * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
2627 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2629         * fe.h (GNAT_Mode): New.
2630         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
2631         reverse SSO in GNAT mode.
2633 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2635         * freeze.adb: Minor reformatting.
2637 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2639         * exp_ch3.adb (Default_Initialize_Object): Do not generate
2640         default initialization for an imported object.
2642 2014-08-01  Olivier Hainque  <hainque@adacore.com>
2644         * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
2645         to the expected FARPROC type instead of void *.
2646         * adaint.c (f2t): Expect __time64_t * as second argument, in line with
2647         other datastructures.
2648         (__gnat_file_time_name_attr): Adjust accordingly.
2649         (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
2650         in line with uses.
2651         (__gnat_check_OWNER_ACL): Declare AccessMode
2652         parameter as ACCESS_MODE instead of DWORD, in line with callers
2653         and uses.
2654         (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
2655         unused on win32.  Correct cast of "args" on call to spawnvp.
2656         (add_handle): Cast realloc calls into their destination types.
2657         (win32_wait): Remove declaration and initialization of unused variable.
2658         (__gnat_locate_exec_on_path): Cast alloca calls
2659         into their destination types.
2660         * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
2661         their destination types.
2663 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
2665         * exp_ch4.adb (Expand_N_Type_Conversion): Expand
2666         range checks for conversions between floating-point subtypes
2667         when the target and source types are the same.
2669 2014-08-01  Robert Dewar  <dewar@adacore.com>
2671         * exp_aggr.adb: Minor reformatting.
2673 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2675         * sem_ch13.adb (Check_Indexing_Functions): Initialize
2676         Indexing_Found.
2678 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2680         * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
2681         ALI file before we call the backend (so that gnat2why can append
2682         to it).
2684 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2686         * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
2687         Expand_Packed_Element_Reference): Pass additional Rev_SSO
2688         parameter indicating whether the packed array type has reverse
2689         scalar storage order to the s-pack* Set/Get routines.
2690         * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
2691         indicating reverse scalar storage order.
2693 2014-08-01  Robert Dewar  <dewar@adacore.com>
2695         * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
2696         for initial component value in -gnatc or GNATprove mode.
2697         (Process_Discriminants): Same fix for default discriminant values.
2698         * sem_eval.adb (Test_In_Range): Improve accuracy of results by
2699         checking subtypes.
2701 2014-08-01  Robert Dewar  <dewar@adacore.com>
2703         * sinfo.ads: Minor comment clarification.
2705 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2707         * sem_ch13.adb (Analyze_Aspect_Specifications): Code
2708         reformatting. Store the generated pragma Import in the related
2709         subprogram as routine Wrap_Imported_Subprogram will need it later.
2710         * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
2711         a private type with discriminants is considered to fall in the
2712         category of unconstrained or tagged items.
2714 2014-08-01  Arnaud charlet  <charlet@adacore.com>
2716         * s-os_lib.adb (Open_Append): New functions to open a file for
2717         appending. This binds to the already existing (but not used)
2718         __gnat_open_append.
2719         * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
2720         to open a file for appending.
2721         * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
2722         to open the ALI file for appending.
2724 2014-08-01  Robert Dewar  <dewar@adacore.com>
2726         * sem_ch8.adb: Minor reformatting.
2728 2014-08-01  Yannick Moy  <moy@adacore.com>
2730         * sem_ch13.adb (Insert_Pragma): Add special case for precondition
2731         pragmas from aspects, which need to be inserted in proper order.
2733 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2735         * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
2736         Handle properly a type extension that constrains a discriminated
2737         derived type that renames other discriminants of an ancestor.
2739 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2741         * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
2742         s-pack25.adb: Fix minor inconsistencies and typos.
2744 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2746         * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
2747         globals and move certain variables to the "local
2748         variable" section. Call Build_Class_Wide_Wrapper when
2749         renaming a default actual subprogram with a class-wide actual.
2750         (Build_Class_Wide_Wrapper): New routine.
2751         (Check_Class_Wide_Actual): Removed.
2752         (Find_Renamed_Entity): Code reformatting.
2753         (Has_Class_Wide_Actual): Alphabetize. Change the
2754         logic of the predicate as the renamed name may not necessarely
2755         denote the correct subprogram.
2757 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2759         * sem_ch7.adb: Fix minor oversight in condition.
2761 2014-08-01  Bob Duff  <duff@adacore.com>
2763         * projects.texi: Minor documentation improvements.
2765 2014-08-01  Robert Dewar  <dewar@adacore.com>
2767         * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
2768         * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
2769         * lib-load.adb: Initialize No_Elab_Code_All field.
2770         * lib-writ.adb: Initialize No_Elab_Code_All.
2771         * lib.ads, lib.adb: New field No_Elab_Code_All.
2772         * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
2773         * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
2774         longer exists.
2775         * sem_ch10.adb (Analyze_Context): Processing for
2776         No_Elaboration_Code_All removed.
2777         (Generate_Parent_References): Moved to Sem_Util.
2778         * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
2779         * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
2780         Sem_Ch10.
2781         * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
2782         * targparm.adb: Minor comment updates Add comments on ignoring
2783         pragma No_Elaboration_Code_All.
2785 2014-08-01  Nicolas Roche  <roche@adacore.com>
2787         * adaint.c (__gnat_set_close_on_exec): Ensure that
2788         we can unset "close_on_exec" flag.
2790 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2792         * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
2793         the parameter specs of the wrapper program for a primitive operation
2794         of a synchronized type that implements an interface, copy the
2795         null_exclusion indicator as well.
2797 2014-08-01  Robert Dewar  <dewar@adacore.com>
2799         * sem_eval.ads: Minor reformatting.
2801 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2803         * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
2804         to go down the chain of private derivations.
2805         * freeze.adb (Freeze_Entity): Fix typo in comment.
2807 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2809         * sem_ch3.adb (Access_Type_Declaration): If designated type is
2810         a limited view, create a master entity (as is already done for
2811         class-wide types) in case the full view designates a type that
2812         contains tasks.
2813         * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
2814         and the designated type is a limited view, use the non-limited
2815         view if available.
2817 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2819         * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
2820         (DECL_FUNCTION_STUB): Likewise.
2821         (SET_DECL_FUNCTION_STUB): Likewise.
2822         (DECL_PARM_ALT_TYPE): Likewise.
2823         (SET_DECL_PARM_ALT_TYPE): Likewise.
2824         (TYPE_VAX_FLOATING_POINT_P): Delete.
2825         (TYPE_DIGITS_VALUE): Likewise.
2826         (SET_TYPE_DIGITS_VALUE): Likewise.
2827         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
2828         (malloc32_decl): Delete.
2829         (build_vms_descriptor): Likewise.
2830         (build_vms_descriptor32): Likewise.
2831         (fill_vms_descriptor): Likewise.
2832         (convert_vms_descriptor): Likewise.
2833         (TARGET_ABI_OPEN_VMS): Likewise.
2834         (TARGET_MALLOC64): Likewise.
2835         * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
2836         (gnat_to_gnu_entity): Call it to add the original type as a parallel
2837         type to the implementation type of a packed array type.
2838         <E_Procedure>: Remove now obsolete kludge.
2839         <E_Exception>: Delete obsolete comment.
2840         <object>: Small tweak.
2841         <E_Subprogram_Type>: Remove support for stub subprograms, as well as
2842         for the descriptor passing mechanism.
2843         (gnat_to_gnu_param): Likewise.
2844         * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
2845         (gnat_print_type): Adjust.
2846         * gcc-interface/trans.c (gigi): Remove obsolete initializations.
2847         (vms_builtin_establish_handler_decl): Delete.
2848         (gnat_vms_condition_handler_decl): Likewise.
2849         (establish_gnat_vms_condition_handler): Likewise.
2850         (build_function_stub): Likewise.
2851         (Subprogram_Body_to_gnu): Do not call above functions.
2852         (Call_to_gnu): Remove support for the descriptor passing mechanism.
2853         * gcc-interface/utils.c (make_descriptor_field): Delete.
2854         (build_vms_descriptor32): Likewise.
2855         (build_vms_descriptor): Likewise.
2856         (fill_vms_descriptor): Likewise.
2857         (convert_vms_descriptor64): Likewise.
2858         (convert_vms_descriptor32): Likewise.
2859         (convert_vms_descriptor): Likewise.
2860         * gcc-interface/utils.c (unchecked_convert): Likewise.
2861         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
2863 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2865         * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
2866         type and get_unpadded_type for the longest FP type.
2867         (Attribute_to_gnu) <Machine>: Compare the precision of the types.
2868         (convert_with_check): Adjust formatting and remove FIXME.
2870 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2872         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2873         Do not convert the RM bounds to the base type.
2874         (E_Floating_Point_Subtype): Likewise.
2875         (E_Array_Subtype): Convert the bounds to the base type.
2876         * gcc-interface/trans.c (get_type_length): New function.
2877         (Attribute_to_gnu) <Range_Length>: Call it.
2878         <Length>: Likewise.
2879         (Loop_Statement_to_gnu): Convert the bounds to the base type.
2880         (gnat_to_gnu) <N_In>: Likewise.
2881         * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
2882         bounds to the base type.
2883         (create_range_type): Likewise.
2884         (convert): Convert the bounds to the base type for biased types.
2885         * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
2886         base type.
2888 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2890         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
2891         incorrect implicit type derivation.
2892         * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
2893         to the base type.
2895 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2897         * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
2898         prefix of attribute Loop_Entry.
2899         * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
2900         Loop_Variant with respect to an enclosing loop (if any).
2901         (Contains_Loop_Entry): Update the parameter profile and all
2902         calls to this routine.
2903         * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
2904         for the corresponding body before determining the nature of the
2905         ultimate alias's declarative node.
2907 2014-08-01  Robert Dewar  <dewar@adacore.com>
2909         * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
2911 2014-08-01  Robert Dewar  <dewar@adacore.com>
2913         * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
2914         constraint error node since it is a list member.
2916 2014-08-01  Robert Dewar  <dewar@adacore.com>
2918         * sem_warn.adb: Minor reformatting.
2920 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2922         * einfo.adb (Underlying_Type): Return the underlying full view
2923         of a private type if present.
2924         * freeze.adb (Freeze_Entity):
2925         Build a single freeze node for partial, full and underlying full
2926         views, if any.
2927         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
2928         missing guard before the access to the Underlying_Full_View.
2929         * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
2930         full view if present.
2931         * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
2933 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2935         * sem_res.adb (Resolve_Entry_Call): When an entry has
2936         preconditions, the entry call is wrapped in a procedure call
2937         that incorporates the precondition checks. To prevent a double
2938         expansion, with possible duplication of extra formals, that
2939         procedure call must only be pre-analyzed and resolved. Expansion
2940         takes place upon return to the caller Resolve_Call.
2942 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2944         * sem_res.adb (Resolve_Call): Do not perform
2945         GNATprove-specific inlining while within a generic.
2947 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2949         * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
2950         case expression with incompatible alternatives, when the first
2951         alternative is overloaded.
2953 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2955         * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
2956         to create the name of the parameterless call, rather than
2957         New_Copy, to preserve the tree structure when the name is a
2958         complex expression, e.g. a selected component that denotes a
2959         protected operation, whose prefix is itself a selected component.
2961 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2963         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
2964         Unit_Declaration_Node to retrieve body when inlining, to handle
2965         properly subprogram child units.
2967 2014-08-01  Robert Dewar  <dewar@adacore.com>
2969         * sem_attr.adb: Minor reformatting.
2971 2014-08-01  Vincent Celier  <celier@adacore.com>
2973         * debug.adb: Minor documentation addition for -dn switch.
2975 2014-08-01  Robert Dewar  <dewar@adacore.com>
2977         * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
2978         sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
2979         documentation of Is_Static_Expression vs Is_OK_Static_Expression.
2980         In several places, use the Is_OK version as suggested by the spec.
2982 2014-08-01  Vincent Celier  <celier@adacore.com>
2984         * gnatcmd.adb: Revert last change which was not correct.
2986 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2988         * freeze.adb (Find_Constant): Ensure that the constant being
2989         inspected is still an object declaration (i.e. not a renaming).
2991 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2993         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
2994         An attribute_reference to Loop_Entry denotes an iterator
2995         specification: its prefix is an object, as is the case for 'Old.
2996         b) If the domain of iteration is an expression whose type has
2997         the Iterable aspect defined, this is an iterator specification.
2999 2014-08-01  Robert Dewar  <dewar@adacore.com>
3001         * gnatcmd.adb: Minor reformatting.
3003 2014-08-01  Robert Dewar  <dewar@adacore.com>
3005         * atree.ads (Info_Messages): New counter.
3006         * err_vars.ads: Minor comment update.
3007         * errout.adb (Delete_Warning_And_Continuations): Deal
3008         with new Info_Messages counter.
3009         (Error_Msg_Internal): ditto.
3010         (Delete_Warning): ditto.
3011         (Initialize): ditto.
3012         (Write_Error_Summary): ditto.
3013         (Output_Messages): ditto.
3014         (To_Be_Removed): ditto.
3015         * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
3016         (Compilation_Errors): ditto.
3017         * errutil.adb (Error_Msg): Deal with Info_Messages counter.
3018         (Finalize): ditto.
3019         (Initialize): ditto.
3020         * sem_prag.adb (Analyze_Pragma): Minor comment addition.
3021         * gnat_ugn.texi: Document that -gnatwe does not affect info
3022         messages.
3024 2014-08-01  Robert Dewar  <dewar@adacore.com>
3026         * debug.adb: Document debug switch -gnatd.Z.
3027         * sem.adb (Semantics): Force expansion on in no or configurable
3028         run time mode.
3030 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3032         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
3033         unchecked conversion denotes an iterator specification. Such a
3034         conversion will be inserted in the context of an inlined call
3035         when needed, and its argument is always an object.
3037 2014-08-01  Robert Dewar  <dewar@adacore.com>
3039         * make.adb, makeutl.ads: Minor reformatting.
3040         * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
3041         Back_End_Inlining.
3043 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3045         * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
3047 2014-08-01  Javier Miranda  <miranda@adacore.com>
3049         * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
3050         -gnatd.z.
3051         * debug.adb: Updating documentation.
3052         * exp_ch6.adb (Expand_Call): Remove assertion.
3054 2014-08-01  Robert Dewar  <dewar@adacore.com>
3056         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
3057         sem_res.adb: Minor reformatting.
3059 2014-08-01  Vincent Celier  <celier@adacore.com>
3061         * make.adb (Initialize): Set Keep_Temporary_Files to True when
3062         -dn is specified.
3063         * makeusg.adb: Add line for new switch --keep-temp-files.
3064         * makeutl.ads (Keep_Temp_Files_Option): New constant String.
3065         * opt.ads (Keep_Temporary_Files): Document that it is also used
3066         by gnatmake and gprbuild.
3067         * switch-m.adb: Recognize new switch --keep-temp-files.
3069 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3071         * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
3072         * exp_ch9.adb (Make_Task_Create_Call): ... here.
3074 2014-08-01  Vincent Celier  <celier@adacore.com>
3076         * gnat1drv.adb: Do not try to get the target parameters when
3077         invoked with -gnats.
3079 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3081         * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
3082         declaration subject to No_Initialization.
3084 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3086         * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
3087         is a subtype with dynamic predicates, or a non-static subtype
3088         with predicates.
3089         * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
3090         expression if subtype has a dynamic predicate.
3091         (Constrain_Index): Reject subtype indication if subtype mark
3092         has predicates.
3093         (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
3094         (Make_Index): If index is a subtype indication, itype inhereits
3095         predicate flags for subsequent testing.
3096         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
3097         procedure Check_Predicate_Use, to reject illegal uses of domains
3098         of iteration that have dynamic predicates.
3099         * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
3100         indication to which a predicate applies.
3101         * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
3102         prevent cascaded errors when subtype is invalid.
3104 2014-08-01  Robert Dewar  <dewar@adacore.com>
3106         * sem_ch10.adb: Minor reformatting.
3108 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3110         * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
3111         because either type may be a subtype of the other.
3113 2014-08-01  Vincent Celier  <celier@adacore.com>
3115         * makeusg.adb: Add documentation for debug switch -dn.
3117 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3119         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
3120         expression with standard operator and type, for pretty-printing
3121         use, when in ASIS_Mode. When generating code dimensional analysis
3122         is not involved and dimension expressions are handled statically,
3123         and other operators are resolved in the usual way.
3125 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3127         * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
3128         Parent_Subtype in ASIS mode, leads to several failures.
3129         * sem_ch4.adb (Analyze_Selected_Component): In an instance,
3130         if the prefix is a type extension, check whether component is
3131         declared in the parent type, possibly in a parent unit. Needed
3132         in ASIS mode when Parent_Subtype is not set.
3134 2014-08-01  Robert Dewar  <dewar@adacore.com>
3136         * sem_prag.adb: Minor reformatting.
3137         * s-regpat.adb: Minor reformatting.
3138         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
3139         Treat_As_Volatile on constants.
3141 2014-08-01  Tristan Gingold  <gingold@adacore.com>
3143         * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
3145 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3147         * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
3148         warning on a with_clause created for the renaming of a parent
3149         unit in an explicit with_clause.
3151 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3153         * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
3154         Set Is_Imported flag at once, to simplify subsequent legality
3155         checks. Reject the aspect on an object whose declaration has an
3156         explicit initial value.
3157         * sem_prag.adb (Process_Import_Or_Interface): Use original node
3158         to check legality of an initial value for an imported entity.
3159         Set Is_Imported flag in case of error to prevent cascaded errors.
3160         Do not set the Is_Imported flag if the pragma comes from an
3161         aspect, because it is already done when analyzing the aspect.
3163 2014-08-01  Emmanuel Briot  <briot@adacore.com>
3165         * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
3167 2014-08-01  Robert Dewar  <dewar@adacore.com>
3169         * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
3170         identifier name.
3172 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3174         * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
3175         checks when the related variable comes from source.
3176         * sem_res.adb (Resolve_Actuals): Enable the volatility checks
3177         when the related actual parameter comes from source. Update comment.
3178         * freeze.adb (Freeze_Record_Type): Do not freeze the designated
3179         type of an array of pointers when the designated type is
3180         class-wide and its root type is the record being currently frozen.
3182 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3184         * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
3185         of renaming declaration created for domain of iteration.
3186         * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
3187         for error messages on aggregates whose index subtypes have
3188         predicates. The new placement avoids posting messages on previous
3189         subtype declarations rather than on the aggregate itself.
3190         * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
3191         Add_Dispatching_Operation, to handle properly the overriding of
3192         the predefined operations on controlled types, when the partial
3193         view of a type is not visibly controlled.
3195 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
3197         * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
3198         appendix.
3200 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3202         * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
3203         assertion check as the attribute is defined for all entities.
3204         (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
3205         check as the attribute is defined for all entities.
3206         * einfo.ads Update the documentation of attribute
3207         Is_Hidden_Non_Overridden_Subprogram.
3208         * sem_ch7.adb (Install_Package_Entity): No need to check the
3209         entity kind of the Id.
3210         * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
3211         usage. Ensure that the homographs are of the same entity kind
3212         and not fully conformant.
3213         (Hide_Non_Overridden_Subprograms): Update the comment on usage.
3215 2014-08-01  Robert Dewar  <dewar@adacore.com>
3217         * inline.adb: Minor code reorganization.
3218         * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
3220 2014-08-01  Robert Dewar  <dewar@adacore.com>
3222         * inline.adb, s-os_lib.ads: Minor reformatting.
3224 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3226         * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
3227         * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
3228         hooks.
3230 2014-08-01  Yannick Moy  <moy@adacore.com>
3232         * inline.adb (Cannot_Inline): Issue info message instead of
3233         warning for subprograms not inlined in GNATprove mode.
3234         * sem_res.adb (Resolve_Call): Take body into account for deciding
3235         whether subprogram can be inlined in GNATprove mode or not.
3237 2014-08-01  Claire Dross  <dross@adacore.com>
3239         * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
3240         of Get_First_Parent_With_External_Axiomatization_For_Entity for
3241         shorter.
3242         * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
3243         for parameters of packages with external axiomatization.
3245 2014-08-01  Robert Dewar  <dewar@adacore.com>
3247         * sem_res.adb: Minor comment addition.
3249 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3251         * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
3252         s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
3253         no longer used.
3254         * s-os_lib.ads: Minor reformatting.
3256 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3258         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
3259         completely previous code since only GCC back-ends are prepared
3260         to handle e.g. 'Machine attribute.
3261         * targparm.adb, targparm.ads: Remove remaining refs and
3262         handling of OpenVMS_On_Target, VAX_Float_On_Target and
3263         RTX_RTSS_Kernel_Module_On_Target.
3264         * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
3265         no longer used.
3267 2014-08-01  Robert Dewar  <dewar@adacore.com>
3269         * exp_dist.adb, exp_attr.adb: Minor reformatting.
3270         * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
3271         a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
3272         sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
3273         g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
3274         improper use of shall.
3276 2014-08-01  Robert Dewar  <dewar@adacore.com>
3278         * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
3279         exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
3280         exp_ch3.adb: Minor reformatting & code reorganization.
3282 2014-08-01  Robert Dewar  <dewar@adacore.com>
3284         * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
3285         * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
3286         s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3287         s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
3288         s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
3289         code.
3290         * gcc-interface/decl.c, gcc-interface/Makefile.in,
3291         gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
3293 2014-08-01  Pascal Obry  <obry@adacore.com>
3295         * s-os_lib.ads: Rename File_Size to Large_File_Size.
3297 2014-08-01  Robert Dewar  <dewar@adacore.com>
3299         * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3300         a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
3301         a-numaux-libc-x86.ads: Fix bad package header comments.
3302         * elists.ads, elists.adb (Append_New_Elmt): New procedure.
3303         * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
3304         checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
3305         sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
3306         targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
3307         stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
3308         s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
3309         s-os_lib.adb: Remove VMS-specific code.
3311 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3313         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
3314         previous state in CodePeer_Mode.
3316 2014-08-01  Robert Dewar  <dewar@adacore.com>
3318         * hostparm.ads: Put back definition of OpenVMS as False to aid
3319         the transition process.
3320         * sem_ch7.adb: Minor reformatting.
3321         * prj-env.adb: Minor code fix.
3322         * gnat_rm.texi: Complete previous change.
3323         * sem_ch3.adb: Minor reformatting.
3324         * sem_ch6.adb: Minor reformatting.
3325         * sem_elab.adb: Minor reformatting.
3326         * exp_strm.adb: Complete previous change.
3328 2014-08-01  Vincent Celier  <celier@adacore.com>
3330         * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
3331         warning when a constant is unreferenced and its type has pragma
3332         Unreferenced_Objects.
3334 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
3336         * einfo.adb: Flag2 is now known as
3337         Is_Hidden_Non_Overridden_Subprogram.
3338         (Is_Hidden_Non_Overridden_Subprogram): New routine.
3339         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
3340         (Write_Entity_Fields): Output Flag2.
3341         * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
3342         along with occurrences in entities.
3343         (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
3344         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
3345         and pragma Inline.
3346         * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
3347         declared non-overriden homographs into visibility.
3348         * sem_ch13.adb (Freeze_Entity_Checks): Hide all
3349         implicitly declared non-overriden homographs.
3350         (Hide_Non_Overridden_Subprograms): New routine.
3352 2014-08-01  Robert Dewar  <dewar@adacore.com>
3354         * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
3355         VMS-specific code.
3356         * prj-conf.adb: Minor reformatting.
3357         * xr_tabls.adb (Read_File): Restore code which was enabled on
3358         non VMS platforms before.
3359         * prj-env.adb (Initialize_Default_Project_Path): Ditto.
3360         * sem_ch5.adb: Minor reformatting.
3361         * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
3362         sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
3363         Remove VMS-specific code.
3365 2014-08-01  Vincent Celier  <celier@adacore.com>
3367         * make.adb (Await_Compile): Remove loop that was only needed
3368         for VMS.
3370 2014-08-01  Robert Dewar  <dewar@adacore.com>
3372         * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
3373         a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
3374         a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
3375         einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
3376         exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
3377         fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
3378         g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
3379         g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
3380         krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
3381         mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
3382         osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
3383         prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
3384         rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
3385         s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
3386         s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
3387         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
3388         s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
3389         s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
3390         sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
3391         sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
3392         sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
3393         treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
3394         specific code and comments.
3396 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3398         * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
3399         Check_Reverse_Iteration, to verify the legality of the Reverse
3400         indicator on various container types, and to detect illegal
3401         reverse iterations on containers that only supoort forward
3402         iteration.
3404 2014-08-01  Vincent Celier  <celier@adacore.com>
3406         * gnatcmd.adb: Remove the VMS specific stuff.  Integrate in
3407         procedure GNATCmd the relevant declarations from packages VMS_Cmds
3408         and VMS_Conv.
3409         * gnatcmd.ads: Update comments to remove any trace of VMS
3411 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3413         * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
3414         defaulted actual that is an operator, before building wrapper
3415         for it in GNATprove mode. Restrict construction of wrapper to
3416         actuals that are operators.
3418 2014-08-01  Vincent Celier  <celier@adacore.com>
3420         * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
3421         specific packages no longer needed.
3423 2014-08-01  Pascal Obry  <obry@adacore.com>
3425         * s-os_lib.ads (System.CRTL): Move with clause to body.
3426         (File_Size): New type.
3427         (File_Length64): Use it.
3428         (File_Length): Restore previous spec returning a Long_Integer.
3429         * s-os_lib.adb (System.CRTL): Move with clause here.
3431 2014-08-01  Vincent Celier  <celier@adacore.com>
3433         * mlib-prj.adb: Update comments to remove any mention of VMS.
3435 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3437         * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
3438         xgnatugn.adb and ug_words.
3440 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3442         * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
3443         expansion can be avoid for Machine, Model and Rounding.
3444         (Is_Inline_Floating_Point_Attribute): Return true for Machine
3445         & Model, as well as Rounding if wrapped in a conversion to an
3446         integer type.
3447         * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
3448         * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
3449         * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
3450         * gcc-interface/misc.c (enumerate_modes): Compute it.
3451         * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
3452         (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
3453         Machine and Model.
3454         (Attribute_to_gnu) <Attr_Model>: New case.
3455         <Attr_Machine>): Likewise.
3456         (convert_with_check): Test
3457         fp_arith_may_widen variable.
3459 2014-08-01  Pascal Obry  <obry@adacore.com>
3461         * adaint.h (GNAT_FOPEN): New definition for Windows.
3462         (GNAT_OPEN): Likewise.
3463         (GNAT_STAT): Likewise.
3464         (GNAT_FSTAT): Likewise.
3465         (GNAT_LSTAT): Likewise.
3466         (GNAT_STRUCT_STAT): Likewise.
3467         * adaint.c (__gnat_stat): Fix computation of file size for
3468         Windows.
3470 2014-08-01  Vincent Celier  <celier@adacore.com>
3472         * Makefile.rtl: Minor comment update.
3474 2014-08-01  Vincent Celier  <celier@adacore.com>
3476         * Make-generated.in: Remove dependencies for vms-help.
3478 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
3480         * makeutl.ads, opt.ads: Minor grammar fixes.
3481         * makeutl.adb: Minor code reorganization.
3483 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3485         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
3486         gnatsym.adb: Remove gnatsym (VMS only tool).
3488 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
3490         * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
3491         conditionalization from gnat_ugn.texi and projects.texi, and updated
3492         (considerably simplified) xgnatugn.adb, to be removed soon.
3494 2014-08-01  Vincent Celier  <celier@adacore.com>
3496         * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
3497         * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
3498         instead of Debug.Debug_Flag_S.
3499         * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
3500         No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
3501         error messages.
3502         * makeutl.ads (No_Exit_Message_Option): New constant string
3503         for switch --no-exit-message.
3504         * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
3505         * switch-m.adb (Scan_Make_Switches): Recognize new switch
3506         --no-exit-message.
3508 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3510         * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
3511         * gcc-interface/Make-lang.in: Remove exp_vfpt.o
3513 2014-08-01  Javier Miranda  <miranda@adacore.com>
3515         * inline.ads (Inlined_Calls, Backend_Calls,
3516         Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
3517         moved to inline.adb (Cannot_Inline): Update documentation.
3518         (Check_And_Build_Body_To_Inline): Renamed.
3519         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
3520         * inline.adb (Check_Inlining_Restrictions): New local variable.
3521         (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
3522         Backend_Not_Inlined_Subps): Declarations moved here
3523         from inline.ads (Number_Of_Statements): Removed.
3524         (Remove_Pragmas): Avoid duplicated version of this subprogram.
3525         (Build_Body_To_Inline): Code cleanup.
3526         (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
3527         (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
3528         (Check_Body_To_Inline): Removed.
3529         (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
3530         (Has_Excluded_Declaration): No action if not
3531         Check_Inlining_Restrictions.
3532         (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
3533         (Initialize): Initialize the lists of inlined calls and subprograms.
3534         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
3535         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
3536         to Check_And_Build_Body_To_Inline since it has been renamed as
3537         Check_And_Split_Unconstrained_Function
3538         * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
3539         package inline.
3540         * gnat1drv.adb Update call to Inline.List_Inlining_Info.
3542 2014-08-01  Vincent Celier  <celier@adacore.com>
3544         * debug.adb: Add documentation for new debug switch -ds.
3545         * make.adb (List_Bad_Compilations): Do not issue any message
3546         when switch -ds is specified.
3547         * makeutl.adb (Fail_Program): Do not issue any message when
3548         -ds is specified.
3549         (Finish_Program): Ditto.
3551 2014-08-01  Robert Dewar  <dewar@adacore.com>
3553         * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
3554         s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
3555         s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
3556         indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
3557         indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
3558         s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
3559         s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
3560         s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
3561         s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
3562         s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
3563         s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
3564         s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
3565         g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
3566         s-tratas.ads: Minor fix to copyright notices.
3568 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3570         * sinfo.ads: Remove long obsolete comment.
3571 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3573         * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
3574         * sem_ch3.adb: Minor reformatting.
3576 2014-08-01  Pascal Obry  <obry@adacore.com>
3578         * cstreams.c: Only enable large file support on know supported
3579         platforms. Add missing defines/includes.
3581 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3583         * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
3584         No_Dynamic_Predicate_On_Actual, to enforce the generic contract
3585         on generic units that contain constructs that forbid subtypes
3586         with predicates.
3587         * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
3588         Inherit flags indicating the presence of predicates in subtype
3589         declarations with and without constraints.
3590         (Inherit_Predicate_Flags): Utility for the above.
3591         * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
3592         indicate that the actual cannot have predicates, and preserve
3593         warning. In an instance, report error if actual has predicates
3594         and the construct appears in a package declaration.
3595         * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
3596         for an actual with predicates, if the corresponding formal
3597         carries No_Predicate_On_Actual or (in the case of a loop)
3598         No_Dynamic_Predicate_On_Actual.
3599         * sem_ch13.adb (Build_Predicate_Functions); Do not build a
3600         Static_Predicate function if the type is non-static (in the
3601         presence of previous errors),
3602         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
3603         No_Dynamic_Predicate_On_Actual in a generic context, to enforce
3604         generic contract on actuals that cannot have predicates.
3606 2014-08-01  Pascal Obry  <obry@adacore.com>
3608         * a-direct.adb (C_Size): Returns an int64.
3609         * osint.adb (System.CRTL): New with clause.
3610         (File_Length.Internal): Returns an int64.
3611         * s-os_lib.ads (File_Length): Returns an int64.
3613 2014-08-01  Robert Dewar  <dewar@adacore.com>
3615         * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
3616         mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
3617         osint.adb, krunch.adb: Minor reformatting.
3619 2014-08-01  Robert Dewar  <dewar@adacore.com>
3621         * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
3622         sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
3623         sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
3624         Remove VMS-specific code.
3625         * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
3627 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3629         * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
3630         gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
3631         make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
3632         mlib.ads, tempdir.adb: Remove VMS handling.
3634 2014-08-01  Pascal Obry  <obry@adacore.com>
3636         * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
3637         (__gnat_named_file_length): Likewise.
3638         (__gnat_file_length_attr): Likewise.
3639         * a-direct.adb (C_Size): Use size_t as returned type.
3640         * osint.adb (File_Length): Adjust spec for Internal routine
3641         (returns size_t).
3642         * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
3643         (System.CRTL): With claused moved to spec.
3644         * s-os_lib.ads (System.CRTL): With clause moved to here.
3646 2014-08-01  Pascal Obry  <obry@adacore.com>
3648         * adaint.h, adaint.c (__gnat_open): Added.
3649         * s-crtl.ads (open): Import __gnat_open for large file support.
3651 2014-08-01  Robert Dewar  <dewar@adacore.com>
3653         * sem_case.adb (Dup_Choice): Improve message for integer constants.
3655 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3657         * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
3659 2014-08-01  Pascal Obry  <obry@adacore.com>
3661         * adaint.h (GNAT_OPEN): Defines as open64 where supported.
3662         * adaint.c (GNAT_OPEN): Uses new macro where needed.
3664 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
3666         * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
3667         extracted from...
3668         (maybe_pad_type): ...here.  Call it to canonicalize the pad type.
3669         * gcc-interface/gigi.h: Update comment.
3671 2014-07-31  Javier Miranda  <miranda@adacore.com>
3673         * debug.adb Remove documentation of -gnatd.k (no longer needed).
3674         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
3675         * inline.ads (Backend_Inlined_Subps): New
3676         Elist.  (Backend_Not_Inlined_Subps): New Elist.
3677         (Has_Excluded_Declaration): Declaration previously located in
3678         * inline.adb (Has_Excluded_Statement): Declaration previously
3679         located in inline.adb
3680         * inline.adb (Has_Single_Return): Moved out of
3681         Build_Body_To_Inline to avoid having duplicated code.
3682         (Number_Of_Statements): New subprogram.
3683         (Register_Backend_Inlined_Subprogram): New subprogram.
3684         (Register_Backend_Not_Inlined_Subprogram): New subprogram.
3685         (Add_Inlined_Subprogram): Register backend inlined subprograms and
3686         also register subprograms that cannot be inlined by the backend.
3687         (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
3688         to avoid having duplicated code.  Replace occurrences of
3689         Debug_Flag_Dot_K by Back_End_Inlining.
3690         * sem_res.adb (Resolve_Call): Code cleanup.
3691         * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
3692         occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
3693         (List_Inlining_Info): Add listing of subprograms passed to the
3694         backend and listing of subprograms that cannot be inlined by
3695         the backend.
3696         * sem_ch12.adb, sem_ch3.adb Replace occurrences of
3697         Debug_Flag_Dot_K by Back_End_Inlining.
3699 2014-07-31  Robert Dewar  <dewar@adacore.com>
3701         * nlists.ads: Minor code fix (remove unwise Inline for
3702         List_Length).
3704 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3706         * einfo.adb: Remove VMS specific code.
3707         * exp_attr.adb: Remove VAX specific code.
3708         * set_targ.adb: Remove handling of VAX_Float.
3709         * sem_vfpt.adb: Remove references to Vax_Native.
3710         * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
3712 2014-07-31  Robert Dewar  <dewar@adacore.com>
3714         * sem_ch4.adb: Minor reformatting.
3716 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3718         * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
3719         to VMS. Misc clean ups.
3720         * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
3722 2014-07-31  Robert Dewar  <dewar@adacore.com>
3724         * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
3725         exp_prag.adb, frontend.adb, interfac.ads,
3726         par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
3727         s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
3728         sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
3729         snames.ads-tmpl: Remove obsolete VMS-specific code.
3731 2014-07-31  Robert Dewar  <dewar@adacore.com>
3733         * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
3735 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3737         * a-intnam-linux.ads: Minor: update obsolete comments.
3738         * s-taasde.adb: Minor: fix comment header.
3740 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3742         * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
3743         s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
3744         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
3745         g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
3746         s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
3747         s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
3748         s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
3749         a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
3750         symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
3751         symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3752         s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
3753         symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
3754         s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
3755         s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
3756         s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
3757         a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
3758         * namet.h (Is_Non_Ada_Error): Remove.
3760 2014-07-31  Robert Dewar  <dewar@adacore.com>
3762         * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
3763         reformatting.
3765 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3767         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
3768         which demonstrates the expansion of while loops subject to
3769         attribute 'Loop_Entry. The condition of a while loop along with
3770         related condition actions is now wrapped in a function.  Instead
3771         of repeating the condition, the expansion now calls the function.
3773 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3775         * sem_case.adb (Check_Against_Predicate): Correct off-by-one
3776         error when reporting of missing values in a case statement for
3777         a type with a static predicate.
3778         (Check_Choices): Reject a choice given by a subtype to which a
3779         Dynamic_Predicate applies.
3780         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
3781         Has_Dynamic_Predicate_Aspect flag from parent.
3783 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3785         * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
3786         cannot apply to a subtype of an incomplete type.
3787         (Is_Static_Choice): Treat an Others_Clause as static. The
3788         staticness of the expression and of the range are checked
3789         elsewhere.
3791 2014-07-31  Pascal Obry  <obry@adacore.com>
3793         * adaint.h (__gnat_ftell64): Added.
3794         (__gnat_fseek64): Added.
3795         (__int64): Added.
3796         * cstreams.c (__int64): Removed.
3798 2014-07-31  Pascal Obry  <obry@adacore.com>
3800         * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
3801         * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
3802         (ftell64): Always returns a 64bit value.
3803         * cstreams.c (int64): New definition.
3804         (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
3805         (__gnat_ftell64): Always returns a 64bit value. The implemenation now
3806         uses ftello() on UNIX.
3807         (__gnat_fseek64): Offset is always a 64bit value. The
3808         implementation now uses fseeko() on UNIX.
3809         * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
3810         always use fseek64 to set the offset.
3811         (Size): Simplify code, always use fseek64/ftell64.
3812         * s-direio.ads (Count): Now an int64.
3813         * g-socket.ads (Vector_Element): Adjust definition for Length
3814         to be a size_t. This matches the C definition and avoid using
3815         a 64bit integer on 32bit platforms now that Count is always 64bit.
3816         * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
3817         (C_Recvmsg): Change some conversion to account for change in
3818         Vector_Element.
3819         (C_Sendmsg): Likewise.
3821 2014-07-31  Robert Dewar  <dewar@adacore.com>
3823         * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
3824         * debug.adb: Remove documentation of -gnatdm flag.
3825         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
3826         -gnatdm flag.
3828 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3830         * lib-writ.adb (Write_Unit_Information): Fix case where U =
3831         No_Unit.
3833 2014-07-31  Claire Dross  <dross@adacore.com>
3835         * exp_util.adb, exp_util.ads
3836         (Get_First_Parent_With_External_Axiomatization_For_Entity):
3837         New routine to find the first parent of an entity with
3838         a pragma Annotate (GNATprove, External_Axiomatization).
3839         (Has_Annotate_Pragma_For_External_Axiomatization): New function
3840         to check if a package has a pragma Annotate (GNATprove,
3841         External_Axiomatization).
3842         * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
3843         flag on the entity for the declaration created for a formal
3844         subprogram in an instance. This is a renaming declaration,
3845         or in GNATprove_Mode the declaration of an expression function
3846         that captures the axiomatization of the actual.
3847         * sem_ch6.adb (Analyze_Expression_Function): For a
3848         Generic_Actual_Subprogram, place body immediately after the
3849         declaration because it may be used in a subsequent declaration
3850         in the instance.
3851         * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
3852         the actual is a function, not an operator. Handle functions with
3853         one and two parameters and binary and unary operators.
3855 2014-07-31  Pascal Obry  <obry@adacore.com>
3857         * cstreams.c (__gnat_is_regular_file_fd): Removed.
3858         * adaint.c (__gnat_is_regular_file_fd): Added.
3860 2014-07-31  Robert Dewar  <dewar@adacore.com>
3862         * exp_strm.adb: Minor reformatting.
3864 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3866         * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
3867         Analyze_Associations, to create a wrapper around operators that
3868         are actuals to formal subprograms. This is done in GNATProve
3869         mode in order to propagate the contracts of the operators to
3870         the body of the instance.
3872 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3874         * sem_attr.adb (Analyze_Attribute, case 'Old):  The reference is
3875         legal if within an aspect specification for a generic subprogram.
3877 2014-07-31  Javier Miranda  <miranda@adacore.com>
3879         * gnat1drv.adb (Back_End_Inlining): Set to false if
3880         Suppress_All_Inlining is set.
3881         * debug.adb: Adding documentation for -gnatd.z.
3882         * inline.adb (Add_Inlined_Body): Extend the -gnatn2
3883         processing to -gnatn1 for calls to Inline_Always routines.
3884         (Add_Inlined_Subprogram): Remove previous patch.
3886 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3888         * sem_ch13.adb (Check_One_Function): Apply properly the static
3889         semantic rules for indexing aspects and the functions they denote.
3891 2014-07-31  Javier Miranda  <miranda@adacore.com>
3893         * debug.adb: Complete documentation of -gnatd.z.
3895 2014-07-31  Bob Duff  <duff@adacore.com>
3897         * gnat_ugn.texi: Minor doc fixes.
3899 2014-07-31  Robert Dewar  <dewar@adacore.com>
3901         * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
3902         index value.
3904 2014-07-31  Tristan Gingold  <gingold@adacore.com>
3906         * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
3907         (Packed_Bytes1): Make component aliased.
3909 2014-07-31  Robert Dewar  <dewar@adacore.com>
3911         * s-unstyp.ads, s-fileio.adb: Minor reformatting.
3913 2014-07-31  Robert Dewar  <dewar@adacore.com>
3915         * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
3916         reformatting.
3918 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
3920         * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
3921         on array references here, now done more selectively in trans.c.
3923 2014-07-31  Doug Rupp  <rupp@adacore.com>
3925         * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
3927 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3929         * sem_util.adb (Is_Effectively_Volatile): New routine.
3931 2014-07-31  Fedor Rybin  <frybin@adacore.com>
3933         * gnat_ugn.texi: Document --test-duration option for gnattest.
3935 2014-07-31  Javier Miranda  <miranda@adacore.com>
3936             Eric Botcazou  <ebotcazou@adacore.com>
3938         * opt.ads (Back_End_Inlining): New variable which controls
3939         activation of inlining by back-end expansion.
3940         * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
3941         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
3942         the body to be inlined by the frontend if Back_End_Inlining
3943         is enabled.
3944         * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
3945         (Expand_Call): If backend inlining is enabled let the backend to
3946         handle inlined subprograms.
3947         * inline.ads (Register_Backend_Call): Moved here from exp_ch6
3948         * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
3949         (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
3950         (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
3951         enabled.
3952         * debug.adb Document -gnatd.z
3953         * fe.h Import Back_End_Inlining variable.
3954         * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
3955         enabled then declare attribute "always inline"
3956         * gcc-interface/decl.c, gcc-interface/trans.c,
3957         gcc-interface/gigi.h: Add handling of Inline_Always pragma.
3959 2014-07-31  Robert Dewar  <dewar@adacore.com>
3961         * a-ngelfu.ads: Minor comment fix.
3963 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3965         * freeze.adb (Freeze_Record_Type): Replace all calls to
3966         Is_SPARK_Volatile with Is_Effectively_Volatile and update
3967         related comments.
3968         * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
3969         Replace all calls to Is_SPARK_Volatile with
3970         Is_Effectively_Volatile and update related comments.
3971         * sem_ch5.adb (Analyze_Iterator_Specification,
3972         Analyze_Loop_Parameter_Specification): Replace all calls to
3973         Is_SPARK_Volatile with Is_Effectively_Volatile and update
3974         related comments.
3975         * sem_ch6.adb (Process_Formals): Replace all calls to
3976         Is_SPARK_Volatile with Is_Effectively_Volatile and update
3977         related comments.
3978         * sem_ch12.adb (Instantiate_Object): Replace the call to
3979         Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
3980         and update related comment.
3981         * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
3982         Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
3983         with Is_Effectively_Volatile and update related comments.
3984         * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
3985         all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
3986         update related comments.
3987         * sem_util.adb (Has_Enabled_Property,
3988         Variable_Has_Enabled_Property): Replace all calls
3989         to Is_SPARK_Volatile with Is_Effectively_Volatile and
3990         update related comments.
3991         (Is_Effectively_Volatile): New routine.
3992         (Is_Effectively_Volatile_Object): New routine.
3993         (Is_SPARK_Volatile): Removed.
3994         (Is_SPARK_Volatile_Object): Removed.
3995         * sem_util.ads (Is_Effectively_Volatile): New routine.
3996         (Is_Effectively_Volatile_Object): New routine.
3997         (Is_SPARK_Volatile): Removed.
3998         (Is_SPARK_Volatile_Object): Removed.
4000 2014-07-31  Pascal Obry  <obry@adacore.com>
4002         * s-fileio.adb (Open): Make sure a shared file gets inserted into
4003         the global list atomically. This ensures that the file descriptor
4004         won't be freed because another tasks is closing the file.
4006 2014-07-31  Robert Dewar  <dewar@adacore.com>
4008         * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
4009         generation of _FIRST and _LAST variables even in GNATprove_Mode.
4010         * gnat_ugn.texi: Minor editing.
4011         * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
4012         aggregate is marked Comes_From_Source if argument is CFS.
4014 2014-07-31  Pascal Obry  <obry@adacore.com>
4016         * s-fileio.adb: Remove obsolete comment.
4018 2014-07-31  Vincent Celier  <celier@adacore.com>
4020         * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
4021         overriding keyword before function to avoid error when compiler
4022         is called with -gnatyO (check overriding indicators).
4024 2014-07-31  Tucker Taft  <taft@adacore.com>
4026         * gnat_ugn.texi: Add a paragraph pointing the reader
4027         to the "plugins" example.
4029 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4031         * freeze.adb (Freeze_Expression): Document the
4032         purpose of the parent chain traversal.
4034 2014-07-31  Robert Dewar  <dewar@adacore.com>
4036         * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
4037         unconstrained fpt ops.
4039 2014-07-31  Pascal Obry  <obry@adacore.com>
4041         * s-fileio.adb (Open): Make sure a shared file gets inserted into
4042         the global list atomically. This ensures that the file descriptor
4043         won't be freed because another tasks is closing the file.
4045 2014-07-31  Vincent Celier  <celier@adacore.com>
4047         * projects.texi: Minor spelling error fix.
4049 2014-07-31  Robert Dewar  <dewar@adacore.com>
4051         * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
4052         * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
4053         information.
4054         * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
4055         * restrict.adb (Process_Restriction_Synonyms): Add handling
4056         of No_Elaboration_Code_All.
4057         * restrict.ads (Process_Restriction_Synonyms): Now handles
4058         No_Elaboration_Code_All.
4059         * sem_ch10.adb (Analyze_Context): Enforce transitive with for
4060         No_Elaboration_Code_All.
4061         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
4062         Handle setting of No_Elab_Code in unit information. Handle
4063         No_Elaboration_Code_All.
4064         * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
4065         pragma processing.
4066         (Name_No_Elaboration_Code_All): New name for pragma processing.
4068 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4070         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
4071         types with a null range and use the Esize of the component
4072         instead of its RM_Size to identify appropriate values.
4074 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4076         * freeze.adb Add with and use clause for Aspects.
4077         (Freeze_Expression): Emit an error when a volatile constant lacks
4078         Boolean aspect Import.
4079         (Has_Boolean_Aspect_Import): New routine.
4081 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
4083         * exp_util.adb: Minor reformatting.
4085 2014-07-31  Vincent Celier  <celier@adacore.com>
4087         * errutil.adb (Error_Msg): Make sure that all components of
4088         the error message object are initialized.
4090 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4092         * sem_ch4.adb (Try_Container_Indexing): If the container type is
4093         class-wide, use specific type to locate iteration primitives.
4094         * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
4095         rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
4096         Minor error message reformating.
4097         * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
4098         aspect for a derived type.
4100 2014-07-31  Robert Dewar  <dewar@adacore.com>
4102         * debug.adb: Document debug flag d.X.
4104 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4106         * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
4107         * sem_util.adb (Find_Specific_Type): If type is untagged private,
4108         retrieve full view so that primitive operations can be located.
4109         * exp_disp.adb Move Find_Specific_Type to sem_util.
4110         * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
4111         Find_Specific_Type to locate primitive equality.
4112         * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
4113         type does not require initialization.
4114         * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
4115         body all visibility is established, and the enclosing package
4116         declarations must not be installed.
4118 2014-07-31  Yannick Moy  <moy@adacore.com>
4120         * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
4121         Make subprogram public.
4123 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4125         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
4126         predicate Discriminated_Size, to distinguish between private
4127         components that depend on discriminants from those whose size
4128         depends on some other non-static expression.
4130 2014-07-31  Nicolas Setton  <setton@adacore.com>
4132         * g-exptty.adb (Close): Fix binding to Waitpid: use the
4133         tty version.
4135 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4137         * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
4138         in a discrete range, when 'range was probably intended.
4140 2014-07-31  Robert Dewar  <dewar@adacore.com>
4142         * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
4144 2014-07-31  Robert Dewar  <dewar@adacore.com>
4146         * frontend.adb: Minor reformatting.
4147         * sem.adb: Minor reformatting.
4148         * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
4149         identifiers on rewrite.
4150         * par.adb: Minor comment updates.
4151         * a-ngelfu.adb (Cos): Minor simplification.
4152         * par-ch13.adb (Get_Aspect_Specifications): Improve messages
4153         and recovery for bad aspect.
4154         * exp_ch3.adb: Code clean up.
4155         * sem_util.ads: Minor comment correction.
4156         * sem_ch13.adb (Check_Array_Type): Properly handle large types.
4157         * sem_ch3.adb: Code clean up.
4158         * binderr.ads: Minor comment correction.
4160 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4162         * exp_disp.adb (Expand_Interface_Conversion): A call whose
4163         prefix is a static conversion to an interface type that is not
4164         class-wide is not dispatching.
4166 2014-07-31  Robert Dewar  <dewar@adacore.com>
4168         * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
4169         s-traceb-mastop.adb: Minor reformatting.
4171 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4173         * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
4174         expansion, to handle properly visibility of selected components
4175         in instance bodies.
4177 2014-07-31  Robert Dewar  <dewar@adacore.com>
4179         * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
4180         * par-ch2.adb (P_Pragma): Set Inside_Depends.
4181         * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
4182         Check_Unary_Plus_Or_Minus.
4183         * scans.ads (Inside_Depends): New flag.
4184         * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
4185         * style.ads: Add Inside_Depends parameter to Check_Arrow Add
4186         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
4187         * styleg.adb (Check_Arrow): Handle Inside_Depends case.
4188         (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
4189         * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
4190         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
4192 2014-07-31  Javier Miranda  <miranda@adacore.com>
4194         * s-vaflop.adb Move the body of function T_To_G before
4195         T_To_D. Required for frontend inlining.
4196         * inline.adb (Has_Excluded_Contract): New subprogram used to
4197         check if a subprogram inlined by the frontend has contracts
4198         which cannot be inlined.
4200 2014-07-31  Bob Duff  <duff@adacore.com>
4202         * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
4203         (Call_Chain): Add 1 to number of frames to skip, to account for
4204         the fact that there's one more frame on the stack.
4205         * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
4207 2014-07-31  Robert Dewar  <dewar@adacore.com>
4209         * checks.adb (Enable_Overflow_Check): More precise setting of
4210         Do_Overflow_Check flag for division.
4212 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
4214         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
4215         array types with implementation type.
4217 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4219         * sem_ch10.adb (Process_State): Remove local variable Name. Add
4220         local variable Decl. Partially declare an abstract state by
4221         generating an entity and storing it in the state declaration.
4222         * sem_prag.adb (Create_Abstract_State): Fully declare a
4223         semi-declared abstract state.
4225 2014-07-31  Robert Dewar  <dewar@adacore.com>
4227         * prj-nmsc.adb: Minor reformatting.
4229 2014-07-31  Bob Duff  <duff@adacore.com>
4231         * s-tasdeb.adb (System.Tasking.Debug): Remove
4232         all usage of the secondary stack from this package.
4234 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
4236         * freeze.adb (Freeze_Expression): Update the loop in charge
4237         of finding a proper insertion place for freeze nodes to handle
4238         N_Expression_With_Actions nodes.
4240 2014-07-31  Robert Dewar  <dewar@adacore.com>
4242         * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
4243         reformatting.
4245 2014-07-31  Pascal Obry  <obry@adacore.com>
4247         * prj-nmsc.adb: Minor reformatting.
4249 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4251         * sem_util.adb (Has_Preelaborable_Initialization): Check that
4252         type is tagged before checking whether a user-defined Initialize
4253         procedure is present.
4255 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
4257         * a-ngelfu.ads (Sqrt): Augment postcondition.
4259 2014-07-31  Pascal Obry  <obry@adacore.com>
4261         * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
4262         directory and ALI directory must be different than all object
4263         and library directories of aggregated projects.
4265 2014-07-31  Vincent Celier  <celier@adacore.com>
4267         * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
4268         to package body, as it is not called from outside. Remove argument
4269         Project_Tree, no longer used. When runtime cannot be found,
4270         call Raise_Invalid_Config instead of failing the program.
4272 2014-07-31  Robert Dewar  <dewar@adacore.com>
4274         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
4275         (Overflow_Check).
4276         * gnatlink.adb (Process_Args): Remove generation of -gnato0,
4277         no longer needed.
4279 2014-07-31  Robert Dewar  <dewar@adacore.com>
4281         * gnat_ugn.texi: Document new switch -gnato0.
4282         * sem_ch3.ads: Minor reformatting.
4283         * gnatlink.adb (Process_Args): Compile bind file with -gnato0
4284         (we do not want overflow checks when incrementing elaboration
4285         counters).
4286         * einfo.ads: Minor reformatting.
4288 2014-07-31  Robert Dewar  <dewar@adacore.com>
4290         * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
4291         * s-arit64.adb: Minor reformatting.
4293 2014-07-31  Robert Dewar  <dewar@adacore.com>
4295         * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
4296         checking is enabled except in GNAT_Mode.
4297         * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
4298         (suppress overflow checks).
4300 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4302         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
4303         invariant procedure for an internally generated subtype that is
4304         created for an object of a class-wide type.
4306 2014-07-31  Vincent Celier  <celier@adacore.com>
4308         * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
4310 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
4312         * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
4313         exp_disp.adb: Minor reformatting.
4315 2014-07-31  Robert Dewar  <dewar@adacore.com>
4317         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
4318         sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
4319         exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
4320         reformatting.
4322 2014-07-31  Robert Dewar  <dewar@adacore.com>
4324         * sem_ch13.adb: Minor reformatting.
4326 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4328         * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
4329         is an unchecked_union, warn that invariants will not be checked
4330         on components that have them.
4332 2014-07-31  Robert Dewar  <dewar@adacore.com>
4334         * freeze.adb (Freeze_Entity): Check for error of
4335         Type_Invariant'Class applied to a untagged type.
4336         * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
4337         as null body, so that we perform error checks even if expansion
4338         is off.
4340 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
4342         * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
4343         is already present, nothing to do.
4344         * exp_ch3.adb (Build_Component_Invariant_Call): For an access
4345         component, check whether the access type has an invariant before
4346         checking the designated type.
4347         (Build_Record_Invariant_Proc): Change suffix of generated
4348         name to prevent ambiguity when record type has invariants
4349         in addition to those of components, and two subprograms are
4350         constructed. Consistent with handling of array types.
4351         (Insert_Component_Invariant_Checks): Build invariant procedure
4352         body when one has not been created yet, in the case of composite
4353         types that are completions and whose full declarations carry
4354         invariants.
4356 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4358         * gnat_rm.texi: Minor doc fixes.
4360 2014-07-30  Robert Dewar  <dewar@adacore.com>
4362         * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
4364 2014-07-30  Vincent Celier  <celier@adacore.com>
4366         * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
4367         of error message.
4368         * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
4369         message to report that a directory cannot be created, to avoid
4370         processing of the directory path that may contains special
4371         insertion characters.
4373 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4375         * a-crdlli.ads: Place declaration of Empty_List after full type
4376         declaration for Curosr, to prevent freezing error.
4378 2014-07-30  Robert Dewar  <dewar@adacore.com>
4380         * get_targ.adb: Minor code reorganization.
4381         * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
4382         reformatting.
4384 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4386         * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
4387         not Program_Error, when attempting to remove an element not in
4388         the set. This is the given semantics for all set containers.
4390 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4392         * a-rbtgbo.adb (Delete_Node_Sans_Free): If
4393         element is not present in tree return rather than violating
4394         an assertion. Constraint_Error will be raised in the caller if
4395         element is not in the container.
4397 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
4399         * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
4400         (elab body): Add provision for default target config file.
4401         * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
4403 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4405         * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
4406         when attempting to remove an element not in the set. This is
4407         the given semantics for all set containers.
4408         * a-cborse.adb (Delete): Attempt removal first, to check for
4409         tampering, before checking whether this is an attempt to
4410         delete a  non-existing element, and in fthe latter case raise
4411         Constraint_Error.
4413 2014-07-30  Vincent Celier  <celier@adacore.com>
4415         * prj-proc.adb (Recursive_Process): Do not create a new
4416         Project_Id if the project is already in the list of projects of
4417         the tree.
4419 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4421         * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
4422         whose type is an incomplete formal type.
4423         (Analyze_Return_Type): Reject a return type that is an untagged
4424         imcomplete formal type.
4425         (Process_Formals): Reject a formal parameter whose type is an
4426         untagged formal incomplete type.
4427         * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
4428         an untagged formal incomplete type.
4430 2014-07-30  Robert Dewar  <dewar@adacore.com>
4432         * gnat_ugn.texi: Minor spelling correction.
4433         * makeutl.adb: Minor code reorganization.
4434         * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
4436 2014-07-30  Robert Dewar  <dewar@adacore.com>
4438         * einfo.ads (Has_Unchecked_Union): Document that this is used
4439         to check for illegal Valid_Scalars attribute references.
4440         * exp_attr.adb (Build_Record_VS_Func): New function
4441         (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
4442         function.
4443         * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
4444         Unchecked_Union Add note on 'Valid_Scalars generating a lot
4445         of code.
4446         * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
4447         error on attempt to apply Valid_Scalars to Unchecked_Union type.
4449 2014-07-30  Steve Baird  <baird@adacore.com>
4451         * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
4452         of A(I..J)(K) in CodePeer_Mode.
4454 2014-07-30  Ben Brosgol  <brosgol@adacore.com>
4456         * gnat_ugn.texi: Fix typo.
4458 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4460         * lib-writ.ads: document format change.
4462 2014-07-30  Pascal Obry  <obry@adacore.com>
4464         * prj-util.adb (For_Interface_Sources): Do not
4465         include sources from withed externally built projects.
4467 2014-07-30  Robert Dewar  <dewar@adacore.com>
4469         * lib.adb: Minor reformatting.
4470         * prj-util.adb: Minor reformatting.
4472 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4474         * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
4475         that depends on discriminants, and which is given by an others
4476         clause, create an explicit subtype with the discriminant values
4477         of the enclosing aggregate, because the backend cannot otherwise
4478         retrieve the actual bounds of the array.
4480 2014-07-30  Fedor Rybin  <frybin@adacore.com>
4482         * gnat_ugn.texi: Improve gnattest documentation.
4484 2014-07-30  Pascal Obry  <obry@adacore.com>
4486         * makeutl.adb (Insert_Project_Sources): Properly handle sources
4487         that are aggregated. We want to include sources not only part
4488         of libraries but also if part of an aggregated project from an
4489         aggregate library.
4490         * prj.adb (For_Project_And_Aggregated_Context): Properly check
4491         state of root project.
4493 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4495         * lib-load.ads: Minor reformatting.
4496         * sinfo.ads (Library_Unit): Update comment.
4497         * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
4498         is redundant. Instead used the pragma Node_Id directly as the
4499         element type.
4501 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4503         * lib.adb (Store_Note): Store only notes that do not come from
4504         an instance, and that are in the extended main source unit.
4505         * lib-writ (Write_Unit_Information): Annotations from subunits
4506         must be emitted along with those for the main unit, and they
4507         must carry a specific file name.
4508         * ali.ads (Notes_Record): Use a File_Name_Type instead of a
4509         Unit_Id for the source file containing the pragma, as in the
4510         case of annotations from subunits we might not have a readily
4511         available unit id.
4512         * ali.adb (Scan_ALI): Account for above change in data structure.
4514 2014-07-30  Vincent Celier  <celier@adacore.com>
4516         * makeutl.adb (Insert_Project_Sources): When the library project
4517         is an aggregate Stand-Alone Library, insert in the queue the
4518         Ada interface units, with Closure set to True;
4520 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4522         * sem_util.adb: Fix minor typo.
4523         * makeutl.adb: Minor reformatting.
4525 2014-07-30  Robert Dewar  <dewar@adacore.com>
4527         * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
4529 2014-07-30  Yannick Moy  <moy@adacore.com>
4531         * checks.ads: Fix typo in comment.
4533 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
4535         * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
4536         entities that materialize range bounds, if any.
4538 2014-07-30  Vincent Celier  <celier@adacore.com>
4540         * projects.texi: Minor spelling fix.
4542 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4544         * checks.adb (Make_Bignum_Block): Use the new secondary stack
4545         build routines to manage the mark.
4546         * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
4547         Use the new secodary stack build routines to manage the mark.
4548         (Insert_Actions_In_Scope_Around): Add new formal parameter
4549         Manage_SS along with comment on its usage. Code and comment
4550         reformatting. Mark and release the secondary stack when the
4551         context warrants it.
4552         (Make_Transient_Block): Update the call
4553         to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
4554         (Wrap_Transient_Declaration): Remove local variable
4555         Uses_SS. Ensure that the secondary stack is marked and released
4556         when the related object declaration appears in a library level
4557         package or package body. Code and comment reformatting.
4558         * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
4559         (Build_SS_Release_Call): New routine.
4561 2014-07-30  Steve Baird  <baird@adacore.com>
4563         * exp_attr.adb: Revert previous change, not needed after all.
4565 2014-07-30  Vincent Celier  <celier@adacore.com>
4567         * makeutl.adb (Queue.Insert_Project_Sources): Insert with
4568         Closure => True for interfaces of Stand-Alone Libraries.
4569         * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
4570         Boolean component Closure, defaulted to False.
4572 2014-07-30  Yannick Moy  <moy@adacore.com>
4574         * sem_res.adb: Fix typo in error message.
4576 2014-07-30  Robert Dewar  <dewar@adacore.com>
4578         * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
4579         as name suffixes rather than L/H for subtype bounds.
4580         * tbuild.ads: Minor comment improvements and fixes
4581         (Make_External_Name): Document that suffix can start with an
4582         underscore.
4584 2014-07-30  Bob Duff  <duff@adacore.com>
4586         * gnat_ugn.texi: Document --rep-clauses switch.
4588 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4590         * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
4591         Default_Component_Value can only be specified for scalar type or
4592         arrays of scalar types respectively.  This legality check must
4593         be performed at the point the aspect is analyzed, in order to
4594         reject aspect specifications that apply to a partial view.
4596 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4598         * freeze.adb: Minor reformatting.
4600 2014-07-30  Robert Dewar  <dewar@adacore.com>
4602         * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
4603         codepeer mode.
4605 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4607         * freeze.adb (Check_Expression_Function): At the freeze point
4608         of an expression function, verify that the expression in the
4609         function does not contain references to any deferred constants
4610         that have no completion yet.
4611         (Freeze_Expression, Freeze_Before): call
4612         Check_Expression_Function.
4613         * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
4614         * a-ciorse.adb: Add Adjust and Finalize routines for
4615         Reference_Control_Type. Use it in the construction of Reference
4616         and Constant_Reference values.
4618 2014-07-30  Robert Dewar  <dewar@adacore.com>
4620         * exp_aggr.adb: Update comments.
4621         * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
4622         reformatting.
4624 2014-07-30  Robert Dewar  <dewar@adacore.com>
4626         * cstand.adb (New_Standard_Entity): New version takes name
4627         string to call Make_Name.
4628         (Create_Standard): Use this routine to set name before setting other
4629         fields.
4631 2014-07-30  Robert Dewar  <dewar@adacore.com>
4633         * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
4634         entity reference.
4635         (Expand_Attribute, case Last): Ditto.
4636         * exp_ch3.adb (Constrain_Index): New calling sequence for
4637         Process_Range_Expr_In_Decl.
4638         (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
4639         problematical case.
4640         * sem_ch3.adb (Constrain_Index): New calling sequence for
4641         Process_Range_Expr_In_Decl.
4642         (Set_Scalar_Range_For_Subtype): ditto.
4643         (Process_Range_Expr_In_Decl): Create constants to hold bounds for
4644         subtype.
4645         * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
4646         * sem_eval.adb (Compile_Time_Compare): Make sure we use base
4647         types if we are not assuming no invalid values.
4649 2014-07-30  Robert Dewar  <dewar@adacore.com>
4651         * clean.adb: Minor reformatting.
4652         * opt.ads: Minor fix to incorrect comment.
4654 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4656         * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
4657         subprogram, used by bounded hashed sets, to delete a node at
4658         a given index, whose element may have been improperly updated
4659         through a Reference_Preserving key.
4660         * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
4661         * a-cbhase.adb: Add Adjust and Finalize routines for
4662         Reference_Control_Type.
4663         (Delete, Insert): Raise Program_Error, not Constraint_Error,
4664         when operation is illegal.
4665         (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
4666         * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
4667         private with_clause for Ada.Finalization.
4668         * a-cbmutr.adb: Add Adjust and Finalize routines for
4669         Reference_Control_Type. Use it in the construction of Reference
4670         and Constant_Reference values.
4672 2014-07-30  Robert Dewar  <dewar@adacore.com>
4674         * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
4676 2014-07-30  Pascal Obry  <obry@adacore.com>
4678         * clean.adb (Clean_Project): Properly check for directory
4679         existence before trying to enter it.
4681 2014-07-30  Robert Dewar  <dewar@adacore.com>
4683         * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
4685 2014-07-30  Robert Dewar  <dewar@adacore.com>
4687         * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
4688         missing semicolon after name.
4690 2014-07-30  Pascal Obry  <obry@adacore.com>
4692         * prj.ads (Gprinstall_Flags): New constant.
4693         * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
4694         missing library dir if Directories_Must_Exist_In_Projects
4695         is false.
4697 2014-07-30  Bob Duff  <duff@adacore.com>
4699         * a-except-2005.adb, a-except.adb: Remove obsolete comments.
4700         * s-traceb.ads: Updagte comments.
4702 2014-07-30  Robert Dewar  <dewar@adacore.com>
4704         * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
4705         a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
4706         a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
4707         reformatting.
4709 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4711         * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
4712         subprogram, used by all versions of hashed sets, to delete a node
4713         whose element has been improperly updated through a Reference_
4714         Preserving key.
4715         * a-cohase.adb: Remove Delete_Node, use new common procedure
4716         Delete_Node_At_Index.
4717         * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
4718         * a-cihase.adb: Add Adjust and Finalize routines for
4719         Reference_Control_Type.
4720         (Reference_Preserving_Key): Build aggregate for
4721         Reference_Control_Type
4723 2014-07-30  Yannick Moy  <moy@adacore.com>
4725         * checks.adb, checks.ads (Determine_Range_R): New procedure to
4726         determine the possible range of a floating-point expression.
4728 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4730         * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
4731         * a-cborse.adb: Add Adjust and Finalize routines for
4732         Reference_Control_Type.
4733         (Reference_Preserving_Key): Build aggregate for
4734         Reference_Control_Type.
4735         (Delete): Check for tampering, and raise Program_Error (not
4736         Constraint_Error) when attempting to delete an element not in
4737         the set.
4738         (Insert): Ditto.
4740 2014-07-30  Bob Duff  <duff@adacore.com>
4742         * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
4743         * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
4744         Exception_Information is used to produce useful debugging
4745         information for the programmer. However, it was also used to
4746         implement the stream attributes for type Exception_Occurrence. The
4747         latter requires a stable and portable interface, which meant
4748         that we couldn't include a symbolic traceback. A separate set of
4749         routines was used to provide symbolic tracebacks under program
4750         control (i.e. not automatically). The goal of this ticket is
4751         to provide such automatic tracebacks, so the change here is to
4752         split the two functionalities: Exception_Information gives the
4753         maximally useful information for debugging (i.e. it now includes
4754         a symbolic traceback when a decorator is set, and it can be
4755         improved freely in the future without disturbing streaming).
4756         Untailored_Exception_Information always uses hexadecimal addresses
4757         in the traceback, has a stable and portable output, and is now
4758         used for streaming.
4760 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4762         * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
4763         on the target of the assignment to find out whether it
4764         can be directly done by the back-end.
4765         * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
4767 2014-07-30  Robert Dewar  <dewar@adacore.com>
4769         * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
4770         a-tasatt.adb: Minor reformatting.
4772 2014-07-30  Robert Dewar  <dewar@adacore.com>
4774         * exp_ch4.adb: Minor reformatting.
4776 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4778         * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
4779         Reference_Control_Type to generic package, to keep additional
4780         information for Reference_Types that manipulate keys. Add Adjust and
4781         Finalize procedures for this type.
4782         (Finalize): When finalizing a reference_preserving_key, verify
4783         that the key of the new value is equivalent to the key of the
4784         original element, raise Program_Error otherwise.
4785         (Insert): Detect tampering.
4786         (Reference_Preserving_Key): Build proper Reference_Control_Type,
4787         and update Busy and Lock bits to detect tampering.
4788         * a-cohase.ads: Keep with-clause private.
4790 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4792         * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
4793         of an equality are of an Unchecked_Union type and lack inferable
4794         discriminants.
4796 2014-07-30  Bob Duff  <duff@adacore.com>
4798         * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
4799         g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
4800         GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
4801         hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
4802         we can call them from the runtimes. Leave renamings in place under GNAT.
4804 2014-07-30  Yannick Moy  <moy@adacore.com>
4806         * inline.adb (Check_And_Build_Body_To_Inline): Include code for
4807         inlining in GNATprove mode.
4809 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4811         * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
4812         Reference_Control_Type to generic package, to keep additional
4813         information for Reference_Types that manipulate keys. Add Adjust and
4814         Finalize procedures for this type.
4815         (Delete_Node): New procedure called when finalizing a
4816         Reference_Control_Type, to remove a node whose element has been
4817         improperly updated through a Reference.
4818         (Insert): Detect tampering.
4819         (Reference_Preserving_Key): Build proper Reference_Control_Type,
4820         and update Busy and Lock bits to detect tampering.
4822 2014-07-30  Bob Duff  <duff@adacore.com>
4824         * exp_intr.ads: Minor comment fix.
4826 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
4828         * exp_prag.adb, a-tags.ads: Minor typo fixes.
4830 2014-07-30  Bob Duff  <duff@adacore.com>
4832         * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
4833         a-except.ads, g-traceb.adb, memtrack.adb,
4834         s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
4835         Cleanup: Make the three versions of System.Traceback.Call_Chain
4836         have the same interface. Use an array for the Traceback parameter
4837         instead of an Address.  This will enable reduction in code
4838         duplication.
4840 2014-07-30  Pat Rogers  <rogers@adacore.com>
4842         * gnat_ugn.texi: Corrected minor textual error in description
4843         of switch -gnatwl.
4845 2014-07-30  Bob Duff  <duff@adacore.com>
4847         * Makefile.rtl: Sort file names.
4849 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
4851         * a-tasatt.adb: Complete previous change: kill spurious warning
4852         on e.g. sparc, and make sure we only use the fast path when the
4853         alignment is compatible.
4855 2014-07-30  Yannick Moy  <moy@adacore.com>
4857         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
4858         coming from source.
4860 2014-07-30  Yannick Moy  <moy@adacore.com>
4862         * inline.adb (Build_Body_To_Inline): Issue more precise messages
4863         for declarations that prevent inlining.
4864         (Cannot_Inline): Change usual start of message to refer to contextual
4865         analysis in GNATprove mode.
4866         * sem_res.adb (Resolve_Call): Change usual start of message to
4867         refer to contextual analysis in GNATprove mode, when inlining
4868         not possible.
4870 2014-07-30  Robert Dewar  <dewar@adacore.com>
4872         * sem_res.adb, sem_ch6.adb: Minor code reorganization.
4873         * inline.adb: Minor reformatting.
4875 2014-07-30  Javier Miranda  <miranda@adacore.com>
4877         * a-tags.ads: Add comments.
4879 2014-07-30  Pat Rogers  <rogers@adacore.com>
4881         * gnat_rm.texi: Minor word error.
4883 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4885         * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
4886         created to capture the value of the prefix of 'Old at the
4887         beginning of the current declarative part, to prevent data flow
4888         anomalies in the postcondition procedure that will follow.
4890 2014-07-30  Yannick Moy  <moy@adacore.com>
4892         * debug.adb: Retire debug flag -gnatdQ.
4893         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
4894         on decl, not on body.  Ignore predicate functions.
4895         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
4896         debug flag -gnatdQ.  Correctly analyze SPARK_Mode on decl and
4897         body when generating a decl for a body on which SPARK_Mode aspect
4898         is given.
4899         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
4900         attaching pragma to entity, to account for declaration not coming
4901         from source.
4902         * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
4903         as not always inlined in GNATprove mode, when called in an
4904         assertion context.
4906 2014-07-30  Vincent Celier  <celier@adacore.com>
4908         * debug.adb: Minor comment update.
4910 2014-07-30  Robert Dewar  <dewar@adacore.com>
4912         * s-tasuti.adb, s-tassta.adb: Minor reformatting.
4913         * sprint.adb (Sprint_Node): Handle N_Contract case.
4914         * exp_prag.adb: Minor reformatting.
4915         * freeze.adb (Freeze_Entity): Check useless postcondition for
4916         No_Return subprogram.
4917         * sem_prag.adb: Minor reformatting.
4919 2014-07-30  Javier Miranda  <miranda@adacore.com>
4921         * a-tags.ads: Complete comments about performance.
4923 2014-07-30  Fedor Rybin  <frybin@adacore.com>
4925         * gnat_ugn.texi: Adding description for --exit-status option to
4926         gnattest section.  Fixing index entry of --passed-tests option
4927         in gnattest section.
4929 2014-07-30  Javier Miranda  <miranda@adacore.com>
4931         * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
4932         rtsfind.ads: Remove references to package Interfaces.CPP since this
4933         package is no longer needed.
4935 2014-07-30  Bob Duff  <duff@adacore.com>
4937         * s-taasde.adb (Timer_Queue): Don't use a
4938         build-in-place function call to initialize the Timer_Queue.
4939         * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
4940         Turn off polling in these units, because otherwise we get
4941         elaboration circularities with Ada.Exceptions when the -gnatP
4942         switch is used.
4943         * s-tassta.adb (Create_Task): Make sure independent tasks
4944         are created with Parent = Environment_Task. This was not true,
4945         for example, in s-interr.adb, when Interrupt_Manager does "new
4946         Server_Task"; the Server_Task had Parent = Interrupt_Manager,
4947         which is wrong because the master is determined by the access
4948         type, which is at library level.
4949         * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
4950         now set correctly by Create_Task.
4951         (Make_Passive): Remove the workaround for the race condition in
4952         Make_Independent.
4953         * frontend.adb (Frontend): Revert to previous method of detecting
4954         temporary configuration pragma files, recognizing such files by
4955         ".tmp" in the name. This is more general than detecting pragmas
4956         Source_File_Name_Project, because it allows any tool to use
4957         this naming convention, no matter the content of the file.
4958         * gnat_ugn.texi: Document this naming convention.
4960 2014-07-30  Robert Dewar  <dewar@adacore.com>
4962         * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
4963         inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
4964         s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
4965         s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
4966         * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
4967         conversion.
4969 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4971         * sem_ch5.adb: Improve error recovery.
4972         * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
4973         before analyzing the body, so that in GNATprove mode there is
4974         no light expansion. Whatever expansion is required by SPARK will
4975         be performed when analysing the inlined code.
4977 2014-07-30  Bob Duff  <duff@adacore.com>
4979         * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
4981 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4983         * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
4984         verify that it is not hidden by an inner implicit declaration.
4986 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4988         * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
4989         * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
4990         * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
4991         the call returns an unconstrained type: in this case there is
4992         already a transient scope, and we should not establish a new one.
4993         * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
4994         True, also insert cleanup actions in the tree.
4995         (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
4996         with Clean set True.
4998 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5000         * s-taskin.ads (Direct_Index, Direct_Index_Range,
5001         Direct_Attribute_Element, Direct_Attribute_Array,
5002         Direct_Index_Vector, Direct_Attributes, Is_Defined,
5003         Indirect_Attributes): Removed.  (Atomic_Address,
5004         Attribute_Array, Attributes): New.
5005         * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
5006         Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
5007         (Finalize_Attributes): Reimplement.
5008         * s-tassta.adb (Create_Task): Remove call to
5009         Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
5010         Replace Finalize_Attributes_Link by Finalize_Attributes.
5011         * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
5012         Reimplement from scratch, using a simpler and more efficient
5013         implementation.
5014         * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
5015         * s-parame.ads, s-parame-hpux.ads,
5016         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
5017         * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
5018         Default_Attribute_Count.
5020 2014-07-30  Olivier Hainque  <hainque@adacore.com>
5022         * vxworks-ppc-link.spec: New file. Extra link
5023         instructions for ppc-vxworks.
5024         * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
5025         * system-vxworks-ppc.ads: Adjust linker options to use spec files.
5026         * system-vxworks-arm.ads: Likewise.
5027         * gcc-interface/Makefile.in: Enable .spec files.
5029 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5031         * sem_aggr.adb: Minor comment reformatting.
5033 2014-07-30  Robert Dewar  <dewar@adacore.com>
5035         * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
5036         * sem_warn.adb (Has_Junk_Name): New function
5037         (Check_References): Use Has_Junk_Name to delete junk warnings
5038         (Check_Unset_Reference): ditto.
5039         (Warn_On_Unreferenced_Entity): ditto.
5040         (Warn_On_Useless_Assignment): ditto.
5042 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5044         * checks.adb (Insert_Valid_Check): Do not check for the packed
5045         array type of a prefix that is an access type.
5047 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5049         * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
5050         Unconstrained_Array even if prefix is not frozen yet, as can
5051         occur with a private subtype used as a generic actual.
5053 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
5055         * sem_attr.adb: Minor reformatting.
5057 2014-07-30  Pat Rogers  <rogers@adacore.com>
5059         * gnat_rm.texi: Corrected minor wording error in description
5060         of No_Exception_Registration.
5062 2014-07-30  Yannick Moy  <moy@adacore.com>
5064         * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
5065         mode. Realphabetize two subprograms.
5066         * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
5067         (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
5068         (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
5069         mode.
5070         (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
5071         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
5072         Is_Inline in GNATprove mode.
5073         (Analyze_Subprogram_Specification):
5074         Set Is_Inlined_Always at subprogram entity creation.
5075         * sem_res.adb (Resolve_Call): Do not deal with inlining during
5076         pre-analysis.  Issue warning on call to possibly inlined
5077         subprogram when body not seen.
5079 2014-07-30  Yannick Moy  <moy@adacore.com>
5081         * lib-xref.adb (Generate_Reference): Add special
5082         case for compiler-generated formals in GNATprove mode.
5084 2014-07-30  Yannick Moy  <moy@adacore.com>
5086         * sem_ch6.adb: Add comments.
5088 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5090         * s-os_lib.ads (GM_Time_Of): Clarify documentation.
5092 2014-07-30  Robert Dewar  <dewar@adacore.com>
5094         * sem_aggr.adb, sem_res.adb: Minor reformatting.
5096 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5098         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
5099         Bit_Order): Set Reverse_Bit_Order on the base type of the
5100         specified first subtype.
5102 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5104         * inline.adb (Expand_Inlined_Call): Use a renaming declaration
5105         to capture the value of actuals of a limited type rather than
5106         an object declaration, to prevent spurious errors when analyzing
5107         the inlined body.
5109 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5111         * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
5112         as an instance, and inhibit semantic checks on already analyzed
5113         code to prevent spurious errors.
5115 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5117         * a-exctra.ads ("="): New function, to restore compatibility.
5119 2014-07-30  Pascal Obry  <obry@adacore.com>
5121         * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
5122         routine to use the OS dst setting.
5124 2014-07-30  Pat Rogers  <rogers@adacore.com>
5126         * gnat_ugn.texi: Minor correction to description of -gnatw.K.
5128 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5130         * sem_util.adb (Wrong_Type): Disable some checks equally within
5131         instances and within inlined bodies, to suppress spurious type
5132         errors on already analyzed code.
5133         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
5134         is legal in an inlined body, juts as it is in an instance body.
5136 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5138         * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
5139         body the operand of an unchecked conversion may be a literal, in
5140         which case its type is the target type of the conversion. This
5141         is in contrast to conversions in other contexts, where the
5142         operand cannot be a literal and must be resolvable independent
5143         of the context.
5145 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
5147         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
5148         mere scalar constant instead of a reference for a renaming of
5149         scalar literal.
5150         * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
5151         * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
5153 2014-07-30  Robert Dewar  <dewar@adacore.com>
5155         * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
5156         g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
5157         g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
5158         s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
5159         g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
5160         s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
5161         & code reorganization.
5163 2014-07-30  Bob Duff  <duff@adacore.com>
5165         * s-tassta.adb, sem_util.ads: Minor reformatting.
5167 2014-07-30  Yannick Moy  <moy@adacore.com>
5169         * inline.adb (Build_Body_To_Inline): Detect when
5170         subprogram has multiple returns, or not a single last return
5171         statement, in GNATprove mode.
5172         (Cannot_Inline): Simplify logic to handle case of GNATprove
5173         inlining first.
5175 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5177         * sem_ch6.adb: Stubs are not subject to inlining.
5179 2014-07-30  Bob Duff  <duff@adacore.com>
5181         * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
5182         from a procedure to a function, so that it can more easily be
5183         called before the "begin" of a task.
5184         * s-taasde.ads (Delay_Block): Make this type immutably limited,
5185         so we can use a build-in-place function call to initialize
5186         Timer_Queue in the body.
5187         * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
5188         * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
5189         * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
5190         Make_Independent before reaching its "begin", to avoid race
5191         conditions. This causes the activating task to wait until after
5192         Make_Independent is complete before proceeding.  In addition,
5193         we initialize data structures used by independent tasks before
5194         activating those tasks, to avoid possible use of uninitialized data.
5195         * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
5196         Minor comment fixes.
5198 2014-07-30  Bob Duff  <duff@adacore.com>
5200         * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
5201         the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
5202         System.Traceback_Entries (s-traent.ads and s-traent-vms.ads).  Add
5203         subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
5204         * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
5206 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
5208         * a-tasatt.adb: Remove old comments.
5210 2014-07-30  Yannick Moy  <moy@adacore.com>
5212         * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
5213         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
5214         to explain rationale for inlining or not in GNATprove mode.
5215         (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
5216         to False when inlining is not possible.
5217         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
5218         flag to indicate that subprogram is fully inlined. To be reversed
5219         if inlining problem is found.
5220         * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
5221         call in potentially unevaluated context.
5223 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
5225         * s-tarest.adb, s-tarest.ads: Fix comments.
5227 2014-07-30  Robert Dewar  <dewar@adacore.com>
5229         * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
5230         Change No_Scalar_Parts predicate to Scalar_Part_Present and
5231         invert sense of test. This avoids the "not No_xxx" situation
5232         which is always ugly.
5234 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5236         * inline.adb (Expand_Inlined_Call): When generating code for
5237         an internal subprogram the expansion uses the location of the
5238         call, so that gdb can skip over it. In GNATprove mode we want to
5239         preserve slocs of original subprogram when expanding an inlined
5240         call, to obtain better warnings, even though subprogram appears
5241         not to come from source if it is the inlining of a subprogram
5242         body without a previous spec.
5244 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5246         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
5247         types with atomic components.
5249 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5251         * Make-generated.in: Remove now unnecessary targets after s-oscons
5252         reorg.
5254 2014-07-30  Yannick Moy  <moy@adacore.com>
5256         * sem_res.adb (Resolve_Call): Use ultimate alias
5257         of callee when available.
5259 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5261         * sem_ch6.adb (Analyze_Expression_Function): To check whether
5262         an expression function is a completion, use the specification of
5263         the previous declaration, not its entity, which may be internally
5264         generated in an inlined context.
5266 2014-07-30  Doug Rupp  <rupp@adacore.com>
5268         * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
5269         temp files in /cache directory unless overridden by TMPDIR.
5271 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
5273         * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
5274         Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
5275         type CPU, so it can never be greater than CPU_Range'Last.
5277 2014-07-30  Bob Duff  <duff@adacore.com>
5279         * s-taskin.ads: Minor comment fix.
5281 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5283         * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
5284         clauses.
5286 2014-07-30  Yannick Moy  <moy@adacore.com>
5288         * debug.adb: Free debug flag dQ used for frontend inlining in
5289         GNATprove mode..
5290         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
5291         debug flag..
5293 2014-07-30  Thomas Quinot  <quinot@adacore.com>
5295         * Make-generated.in: Remove generation of s-oscons.ads, only
5296         generate the xoscons utility, in runtime-agnostic rules.
5297         * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
5298         no longer supported.
5300 2014-07-30  Bob Duff  <duff@adacore.com>
5302         * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
5303         parameter Chain to be used in the allocator case.
5304         (Make_Build_In_Place_Call_In_Allocator): If the allocated object
5305         has tasks, wrap the code in a block that will activate them,
5306         including the usual finalization code to kill them off in case
5307         of exception or abort.
5309 2014-07-30  Robert Dewar  <dewar@adacore.com>
5311         * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
5312         Remove renamings (don't work for gdb).
5313         (par): New synonym for p (avoid gdb ambiguities).
5314         * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
5316 2014-07-30  Bob Duff  <duff@adacore.com>
5318         * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
5319         fixes.
5320         * treepr.ads, treepr.adb (ppp): Make this debugging routine
5321         accept any type covered by Union_Id.
5323 2014-07-30  Robert Dewar  <dewar@adacore.com>
5325         * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
5326         analyzing branches.
5327         * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
5328         expression case.
5330 2014-07-30  Robert Dewar  <dewar@adacore.com>
5332         * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
5333         of predicate aspect on entity other than a type.
5335 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5337         * sem_ch6.adb (Body_Has_Contract): New predicate to determine
5338         when a subprogram body without a previous spec cannot be inlined
5339         in GNATprove mode, because it includes aspects or pragmas that
5340         generate a SPARK contract clause.
5341         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
5342         instance cannot be inlined.
5344 2014-07-30  Robert Dewar  <dewar@adacore.com>
5346         * debug.adb: Document that d7 suppresses compilation time output.
5347         * errout.adb (Write_Header): Include compilation time in
5348         header output.
5349         * exp_intr.adb (Expand_Intrinsic_Call): Add
5350         Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
5351         Compilation_Date/Compilation_Time.
5352         * g-souinf.ads (Compilation_Date): New function
5353         (Compilation_Time): New function.
5354         * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
5355         * gnat_rm.texi (Compilation_Date): New function
5356         (Compilation_Time): New function.
5357         * opt.ads (Compilation_Time): New variable.
5358         * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
5359         * sem_intr.adb (Compilation_Date): New function.
5360         (Compilation_Time): New function.
5361         * snames.ads-tmpl (Name_Compilation_Date): New entry.
5362         (Name_Compilation_Time): New entry.
5364 2014-07-30  Yannick Moy  <moy@adacore.com>
5366         * inline.adb: Add comment.
5368 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5370         * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
5371         parameterless attribute, and a postondition can mention an
5372         indexed component or a slice whose prefix is an attribute
5373         reference F'Result.
5375 2014-07-30  Robert Dewar  <dewar@adacore.com>
5377         * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
5378         Avoid bomb when printing package Standard.
5380 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5382         * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
5383         entity is created at this point, ensure that the name of the
5384         flag is unique, because the subprogram may be overloaded and
5385         other homonyms may also have elaboration flags created on the fly.
5387 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5389         * sem_attr.adb (Analyze_Array_Component_Update): New routine.
5390         (Analyze_Attribute): Major cleanup of attribute
5391         'Update. The logic is now split into two distinct routines
5392         depending on the type of the prefix. The use of <> is now illegal
5393         in attribute 'Update.
5394         (Analyze_Record_Component_Update): New routine.
5395         (Check_Component_Reference): Removed.
5396         (Resolve_Attribute): Remove the return statement and ??? comment
5397         following the processing for attribute 'Update. As a result,
5398         the attribute now freezes its prefix.
5400 2014-07-30  Javier Miranda  <miranda@adacore.com>
5402         * exp_ch4.adb (Apply_Accessibility_Check): Do
5403         not call Base_Address() in VM targets.
5405 2014-07-30  Yannick Moy  <moy@adacore.com>
5407         * gnat1drv.adb (Adjust_Global_Switches): Set
5408         Ineffective_Inline_Warnings to True in GNATprove mode.
5409         * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
5410         mode of inlining.
5411         * opt.ads (Ineffective_Inline_Warnings): Add comment that
5412         describes use in GNATprove mode.
5413         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
5414         pragma when applied to the special body created for inlining.
5416 2014-07-30  Robert Dewar  <dewar@adacore.com>
5418         * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
5419         Minor reformatting.
5421 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5423         * aspects.ads Add a comment explaining why SPARK 2014 aspects are
5424         not delayed. Update the delay status of most SPARK 2014 aspects.
5425         * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
5426         to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
5427         to Decorate and Insert_Pragma. Add various comments concerning
5428         the delay status of several SPARK 2014 aspects. The insertion
5429         of Refined_State now uses routine Insert_After_SPARK_Mode.
5430         (Decorate): New routine.
5431         (Decorate_Aspect_And_Pragma): Removed.
5432         (Insert_Delayed_Pragma): Removed.
5433         (Insert_Pragma): New routine.
5435 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5437         * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
5438         only a warning, not an error on an attempt to inline a recursive
5439         subprogram.
5441 2014-07-30  Robert Dewar  <dewar@adacore.com>
5443         * g-forstr.adb: Minor code reorganization (use J rather than I
5444         as a variable name).
5445         * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
5446         g-forstr.ads: Minor reformatting.
5448 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5450         * sprint.adb (Set_Debug_Sloc): Also reset the end location if
5451         we are debugging the generated code.
5453 2014-07-30  Yannick Moy  <moy@adacore.com>
5455         * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
5456         returns True for source pointer for an inlined body.
5458 2014-07-30  Javier Miranda  <miranda@adacore.com>
5460         * exp_ch4.adb (Apply_Accessibility_Check): Add
5461         missing calls to Base_Address().
5463 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5465         * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
5466         mode, subprogram bodies without a previous declaration are also
5467         candidates for front-end inlining.
5469 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5471         * aspects.ads Aspects Async_Readers, Async_Writers,
5472         Effective_Reads and Effective_Writes do not need to be delayed.
5473         * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
5474         optional Boolean expression when generating the corresponding
5475         pragma for an external property aspect.
5476         * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
5477         local constant Obj. Add local constant Obj_Id. Reimplement the
5478         check which ensures that the related variable is in fact volatile.
5479         (Analyze_Pragma): Reimplement the analysis of external property pragmas.
5480         * sem_util.adb (Is_Enabled): New routine.
5481         (Variable_Has_Enabled_Property): Reimplement the detection of
5482         an enabled external property.
5484 2014-07-30  Sergey Rybin  <rybin@adacore.com frybin>
5486         * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
5487         for body stubs.
5489 2014-07-30  Pascal Obry  <obry@adacore.com>
5491         * g-forstr.adb, g-forstr.ads: New.
5492         * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
5493         GNAT.Formatted_String.
5495 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5497         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
5498         (Expand_Array_Aggregate): Also enable in-place expansion for
5499         code generated by the compiler.  For an object declaration,
5500         set the kind of the object in addition to its type.  If an
5501         in-place assignment is to be generated and it can be directly
5502         done by the back-end, do not expand the aggregate.
5503         * fe.h (Is_Others_Aggregate): Declare.
5504         * gcc-interface/trans.c
5505         (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
5506         aggregate with a single Others choice on the RHS by means of
5507         __builtin_memset.  Tidy up.
5509 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5511         * gnat_rm.texi: minor reformatting.
5513 2014-07-30  Yannick Moy  <moy@adacore.com>
5515         * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
5516         in SPARK_Mode Off.
5518 2014-07-30  Robert Dewar  <dewar@adacore.com>
5520         * gnat_rm.texi: Document additional implementation-defined use
5521         of Constrained.
5523 2014-07-30  Robert Dewar  <dewar@adacore.com>
5525         * prj-proc.adb, prj-strt.adb: Update comments.
5527 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
5529         * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
5531 2014-07-30  Vincent Celier  <celier@adacore.com>
5533         * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
5534         parameter No_Extending, defaulted to False. When No_Extending
5535         is True, do not look for an extending project.
5536         (Expression): For a variable reference that is not for the current
5537         project, get its Id calling Imported_Or_Extended_Project_From
5538         with No_Extending set to True.
5539         * prj-strt.adb (Parse_Variable_Reference): If a referenced
5540         variable is not found in the current project, check if it is
5541         defined in one of the projects it extends.
5543 2014-07-30  Robert Dewar  <dewar@adacore.com>
5545         * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
5546         some additional cases of internally generated routines.
5548 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5550         * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
5551         if the compilation unit is a subunit, extend optional processing
5552         to all subunits of the current one. This allows gnatstub to
5553         supress generation of spurious bodies.
5555 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5557         * a-cbmutr.adb (Insert_Child): Use local variable First to keep
5558         track of the initial element's index within the tree.
5560 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5562         * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
5563         (Insert_Child): Add local variable First. Capture the index of the
5564         first node being created to ensure correct cursor construction
5565         later on. Use the three parameter version of Allocate_Node
5566         when creating multiple children as this method allows aspect
5567         Default_Value to take effect (if applicable).
5569 2014-07-29  Eric Botcazou  <ebotcazou@adacore.com>
5571         * exp_aggr.adb (Safe_Slice_Assignment): Remove.
5572         (Expand_Array_Aggregate): For a safe slice assignment, just set
5573         the target and use the common code path.
5575 2014-07-29  Robert Dewar  <dewar@adacore.com>
5577         * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
5578         predicate No_Predicate_Test_On_Arguments, new name is
5579         Predicate_Tests_On_Arguments (with the opposite sense).
5581 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5583         * sem_attr.adb (Resolve_Attribute): Clean up the code for
5584         attribute 'Access. Do not generate an elaboration flag for a
5585         stand alone expression function. The expression of an expression
5586         function is now frozen when the expression function appears as
5587         the prefix of attribute 'Access.
5588         * sem_ch6.adb (Analyze_Expression_Function): Remove local
5589         variable New_Decl and update all references to it after the
5590         rewriting has taken place. Establish the linkages between the
5591         generated spec and body.
5593 2014-07-29  Robert Dewar  <dewar@adacore.com>
5595         * sem_prag.adb (ip, rv): Prevent from being optimized away.
5596         * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
5597         * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
5598         reformatting.
5600 2014-07-29  Vincent Celier  <celier@adacore.com>
5602         * prj-pp.adb: Minor comment update.
5603         * frontend.adb: If a target dependency info file has been read
5604         through switch -gnateT= add it to the dependencies of the source
5605         being compiled.
5607 2014-07-29  Robert Dewar  <dewar@adacore.com>
5609         * sem_ch3.adb, prj.adb: Minor reformatting.
5611 2014-07-29  Vincent Celier  <celier@adacore.com>
5613         * prj-pp.adb (Pretty_Print.Output_Project_File): New
5614         procedure to output project file names between quotes without
5615         concatenation, even if the line is too long.
5616         (Pretty_Print): Use Output_Project_File for project being extended and
5617         project imported.
5619 2014-07-29  Vincent Celier  <celier@adacore.com>
5621         * gnat_ugn.texi: Document that configuration pragmas files are
5622         added to the dependencies, unless they contain only pragmas
5623         Source_File_Name_Project.
5625 2014-07-29  Robert Dewar  <dewar@adacore.com>
5627         * frontend.adb: Minor reformatting.
5629 2014-07-29  Robert Dewar  <dewar@adacore.com>
5631         * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
5632         (Expand_Actuals): Make sure predicate checks are properly applied
5633         for the case of OUT or IN OUT parameters.
5634         * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
5635         predicate tests on arguments for Finalize
5636         * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
5637         if predicate tests on subprogram arguments should be skipped.
5638         * sem_util.ads (No_Predicate_Test_On_Arguments): New function
5640 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5642         * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
5643         clause for the object and the expression is an aggregate, defer
5644         resolution and expansion of the aggregate until the freeze point
5645         of the entity.
5646         * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
5647         the parent node is an N_Reference generated during expansion.
5649 2014-07-29  Vincent Celier  <celier@adacore.com>
5651         * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
5653 2014-07-29  Robert Dewar  <dewar@adacore.com>
5655         * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
5656         prepcomp.ads: Minor reformatting and code clean up.
5657         * exp_ch6.adb (Expand_Actuals): Generate predicate test
5658         unconditionally for case of OUT or IN OUT actual (before this
5659         was generated only for certain subcases, which is wrong, the
5660         test is always needed).
5662 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5664         * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
5665         * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
5666         until context type is available.
5667         * sem_res.adb (Resolve_Allocator): In the case of a qualified
5668         expression, complete resolution of expression.
5669         (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
5670         to apply Ada2012 checks on aliased formals, as well as
5671         accesibility checks when the context of the call is an allocator
5672         or a qualified expression.
5673         * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
5674         Moved here from sem_ch3.
5675         (Object_Access_Level): Handle properly aliased formals and
5676         aggregates.
5677         * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
5678         now properly performed in sem_res (Resolve_Actuals,
5679         Check_Aliased_Parameter).
5681 2014-07-29  Yannick Moy  <moy@adacore.com>
5683         * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
5684         * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
5685         function to decide when a subprogram can be inlined in GNATprove mode.
5686         (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
5687         condition for possible inlining.
5688         * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
5689         for Inline_Always in GNATprove mode.
5690         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
5691         body for subprograms in GNATprove mode, under debug flag -gnatdQ.
5692         * sem_prag.adb Minor change in comments.
5693         * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
5694         inside subprograms marked as SPARK_Mode On.
5695         * sinfo.ads: Minor typo fix.
5697 2014-07-29  Vincent Celier  <celier@adacore.com>
5699         * frontend.adb: Add dependency on gnat.adc when taken into account
5700         and on non-temporary configuration pragmas files specified in
5701         switches -gnatec.
5702         * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
5703         dependencies on configuration pragmas files.
5705 2014-07-29  Pat Rogers  <rogers@adacore.com>
5707         * gnat_ugn.texi: Minor clarification to the explanation for the
5708         GNATtest -v switch.
5710 2014-07-29  Robert Dewar  <dewar@adacore.com>
5712         * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
5713         documentation that explains the need for this extended range
5714         (use by C_Pass_By_Copy).
5716 2014-07-29  Robert Dewar  <dewar@adacore.com>
5718         * gnat_rm.texi, sem_prag.adb: Minor reformatting.
5720 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
5722         * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
5723         complexity metrics.
5725 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5727         PR ada/60652
5728         * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
5729         CRTSCTS to be visible.
5731 2014-07-29  Bob Duff  <duff@adacore.com>
5733         * g-trasym.adb, g-trasym.ads: Code cleanup.
5735 2014-07-29  Doug Rupp  <rupp@adacore.com>
5737         * sigtramp-vxworks.c: Minor reformatting.
5739 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5741         * gnat_rm.texi: No doc needed for Ada2012 aspect
5742         Implicit_dereference.
5744 2014-07-29  Robert Dewar  <dewar@adacore.com>
5746         * sem_attr.adb (Attribute_12): New array
5747         (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
5748         (Check_Ada_2012_Attribute): Removed.
5750 2014-07-29  Doug Rupp  <rupp@adacore.com>
5752         * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
5753         PPC, and e500.
5754         * sigtramp-vxworks.c: New file.
5755         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
5757 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5759         * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
5760         derived array type, add information about component type, which
5761         was previously missing in ali file.
5762         * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
5764 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5766         * sem_ch3.adb (Constrain_Corresponding_Record): For the case
5767         of the subtype created for a record component, do not mark
5768         the subtype as frozen. For one thing, this is anomalous (in
5769         particular, the base type might not itself be frozen yet);
5770         furthermore, proper freezing of the subtype must happen in any
5771         case. So, we just mark the subtype as requiring delayed freezing
5772         (and we'll actually freeze it when generating the init_proc of
5773         the enclosing record).
5774         Also change the name of the constrained record subtype (append a
5775         'C' so that it is clearly different from the unconstrained record
5776         type, "related_idV") to make debugging easier.
5777         (Process_Full_View): When creating a full subtype for a pending
5778         private subtype, re-establish the scope of the private subtype
5779         so that we get proper visibility on outer discriminants.
5780         * exp_ch3.adb (Build_Init_Statements): Freeze any component
5781         subtype that is not frozen yet.
5783 2014-07-29  Vincent Celier  <celier@adacore.com>
5785         * prj-proc.adb (Recursive_Process): Always initialize the
5786         environment when the project is an aggregate project, even when
5787         it is not the root tree.
5788 2014-07-29  Robert Dewar  <dewar@adacore.com>
5790         * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
5791         * gnat_rm.texi: Complete list of implementation aspects.
5792         * aspects.ads: Minor comment clarification.
5794 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5796         * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
5797         is a null-excluding access type, do not generate a constraint
5798         check if Suppress_Assignment_Checks is set on assignment node.
5799         * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
5800         parameter of a null-excluding access type, there is access check
5801         on entry, so set Suppress_Assignment_Checks on generated statement
5802         that assigns actual to parameter block.
5803         * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
5805 2014-07-29  Robert Dewar  <dewar@adacore.com>
5807         * gnat_rm.texi: Change theta to @ in documentation of aspect
5808         Dimension_System.
5810 2014-07-29  Robert Dewar  <dewar@adacore.com>
5812         * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
5813         are now on pragma.
5814         * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
5815         of Uneval_Old_*
5816         * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
5817         * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
5819 2014-07-29  Javier Miranda  <miranda@adacore.com>
5821         * types.ads Update documentation on how to add new reason codes
5822         for exceptions.
5823         (RT_Exception_Code): Keep values ordered by their
5824         reason code.  Required by the .NET backend.
5825         (RT_CE_Exceptions): Subtype declaration removed.
5826         (RT_PE_Exceptions): Subtype declaration removed.
5827         (RT_SE_Exceptions): Subtype declaration removed.
5828         (Kind): New mapping table of RT_Exception_Codes.
5829         * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
5830         new mapping table.
5831         * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
5832         mapping table.  (Make_Raise_Program_Error): Updated to use the
5833         new mapping table.
5834         (Make_Raise_Storage_Error): Updated to use the new mapping table.
5835         * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
5836         their reason code.
5838 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5840         * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
5841         distributed stubs generation.
5842         * exp_ch3.adb: Minor reformatting.
5844 2014-07-29  Yannick Moy  <moy@adacore.com>
5846         * sinfo.ads: Document constraint between frontend and GNATprove.
5848 2014-07-29  Robert Dewar  <dewar@adacore.com>
5850         * a-except.adb: Minor comment clarification.
5852 2014-07-29  Robert Dewar  <dewar@adacore.com>
5854         * gnat_rm.texi: Complete list of implementation attributes.
5855         * snames.ads-tmpl: Clean up list of impl-defined attributes.
5857 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5859         * freeze.adb (Freeze_Record_Type): Perform various
5860         volatility-related checks.
5862 2014-07-29  Robert Dewar  <dewar@adacore.com>
5864         * sem_ch3.adb, sem_eval.adb: Minor reformatting.
5866 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5868         * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
5869         the case where the attribute reference appears in a nested scope
5870         from that of the subprogram prefix.
5871         * sem_attr.adb: Minor reformatting.
5873 2014-07-29  Robert Dewar  <dewar@adacore.com>
5875         * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
5876         initialization options.
5878 2014-07-29  Robert Dewar  <dewar@adacore.com>
5880         * sinfo.ads: Minor comment addition.
5882 2014-07-29  Bob Duff  <duff@adacore.com>
5884         * sem_eval.adb, sem_ch13.adb: Minor reformatting.
5886 2014-07-29  Doug Rupp  <rupp@adacore.com>
5888         * init.c: Complete previous change.
5890 2014-07-29  Robert Dewar  <dewar@adacore.com>
5892         * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
5893         array case.
5895 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5897         * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
5898         and the completion will appear in the same declarative part,
5899         create elaboration flag.
5900         * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
5901         is a completion of a declaration in the same declarative part,
5902         and the subprogram has had its address taken, add elaboration
5903         check inside the subprogram body, to detect elaboration errors
5904         that may occur through indirect calls.
5906 2014-07-29  Doug Rupp  <rupp@adacore.com>
5908         * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
5909         * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
5911 2014-07-29  Vincent Celier  <celier@adacore.com>
5913         * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
5914         runtime directorie specified with two switches --RTS= designate
5915         the same directory, even when there are no literarily the same.
5917 2014-07-29  Robert Dewar  <dewar@adacore.com>
5919         * gnat_ugn.texi: Minor documentation clarification.
5920         * switch-c.adb: Minor reformatting.
5922 2014-07-29  Robert Dewar  <dewar@adacore.com>
5924         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
5925         Fix incorrect RTE call which caused bomb if pragma was in
5926         configuration pragma file.
5928 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
5930         * expect.c (__gnat_expect_poll): Fix typo in previous change.
5931         * g-expect.adb: Update comments.
5933 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
5935         * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
5936         (Default_Attribute_Count): Bump to 16 on native platforms.
5938 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5940         * sem_res.adb: Add guard to front-end inlining for SPARK.
5942 2014-07-29  Robert Dewar  <dewar@adacore.com>
5944         * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
5945         Minor reformatting.
5947 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5949         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
5950         inline in GNATprove mode when subprogran is marked Inline_Always.
5951         * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
5952         mode if body to inline is available.
5953         * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
5954         effective in GNATprove mode.
5955         * sem_ch10.adb (Analyze_Compilation_Unit): Call
5956         Check_Package_Body_For_Inlining in GNATprove mode, so that body
5957         containing subprograms with Inline_Always can be available before
5958         calls to them.
5960 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5962         * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
5963         to Check_Package_Body_For_Inlining, to prevent confusion with other
5964         inlining subprograms.
5966 2014-07-29  Robert Dewar  <dewar@adacore.com>
5968         * opt.ads: Minor comment update.
5969         * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
5970         we want setting of Uneval_Old at time of encountering the aspect.
5971         * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
5972         of Opt.Uneval_Old.
5973         * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
5974         New function (Set_Uneval_Old_Accept): New procedure.
5975         (Set_Uneval_Old_Warn): New procedure.
5976         * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
5978 2014-07-29  Robert Dewar  <dewar@adacore.com>
5980         * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
5981         * snames.ads-tmpl: Minor reformatting.
5982         * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
5983         to give <Error>.  Not clear why this was there, but the compiler
5984         sources do not reference Name_Error, and this interfered with
5985         the circuits for pragma Unevaluated_Use_Of_Old.
5987 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5989         * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
5990         types in SPARK 2014 (again).
5991         * sem_res.adb (Is_OK_Volatile_Context): New routine.
5992         (Resolve_Entity_Name): Ensure that a volatile object with
5993         enabled properties Async_Writers or Effectire_Reads appears in
5994         a non-interfering context.
5996 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5998         * sem_ch6.adb: Move Build_Body_To_Inline,
5999         Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
6000         * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
6001         * inline.ads, inline.adb: Package now contains subprograms that
6002         implement front-end inlining.  No functional changes, no test
6003         needed.
6005 2014-07-29  Robert Dewar  <dewar@adacore.com>
6007         * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
6009 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6011         * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
6012         is a limited view when the context is a package body, because
6013         there is no subsequent place at which the non-limited view may
6014         become visible.
6015         (Process_Formals): Ditto.
6016         * sinfo.ads, par-ch3.adb: Minor reformatting.
6018 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
6020         * expect.c (__gnat_expect_poll): New parameter dead_process
6021         used to return the dead process among the array of file
6022         descriptors. The Windows, VMS and HPUX implementations now
6023         properly report the dead process via this parameter. Other unixes
6024         don't need it.
6025         * g-expect.adb (Poll): Adapt to the C profile.
6026         (Expect_Internal): Use the new parameter to properly close the
6027         File Descriptor.  This then can be properly reported by the
6028         function First_Dead_Process as is expected.
6030 2014-07-29  Robert Dewar  <dewar@adacore.com>
6032         * gnat_ugn.texi: Minor clarification of -gnatQ switch.
6034 2014-07-29  Robert Dewar  <dewar@adacore.com>
6036         * einfo.adb (Derived_Type_Link): New function
6037         (Set_Derived_Type_Link): New procedure.
6038         (Write_Field31_Name): Output Derived_Type_Link.
6039         * einfo.ads: New field Derived_Type_Link.
6040         * exp_ch6.adb (Expand_Call): Warn if change of representation
6041         needed on call.
6042         * sem_ch13.adb: Minor addition of ??? comment.
6043         (Rep_Item_Too_Late): Warn on case that is legal but could cause an
6044         expensive implicit conversion.
6045         * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
6047 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6049         * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
6050         to DF_Id. Add new local variable DF_Call. Do not perform any
6051         elaboration-related checks on the call to the partial finalization
6052         routine within an init proc to avoid generating bogus elaboration
6053         warnings on expansion-related code.
6054         * sem_elab.adb (Check_A_Call): Move constant Access_Case to
6055         the top level of the routine.  Ensure that Output_Calls takes
6056         into account flags -gnatel and -gnatwl when emitting warnings
6057         or info messages.
6058         (Check_Internal_Call_Continue): Update the call to Output_Calls.
6059         (Elab_Warning): Moved to the top level of routine Check_A_Call.
6060         (Emit): New routines.
6061         (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
6062         comment on usage. Output all warnings or info messages only when the
6063         caller context demands it and the proper elaboration flag is set.
6065 2014-07-29  Yannick Moy  <moy@adacore.com>
6067         * sem_attr.adb (Analyze_Attribute/Attribute_Old):
6068         Check rule about Old appearing in potentially unevaluated
6069         expression everywhere, not only in Post.
6071 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6073         * sem_prag.adb: Update comment.
6074         * a-except.adb, a-except-2005.adb: Minor editing.
6076 2014-07-29  Pierre-Marie Derodat  <derodat@adacore.com>
6078         * exp_dbug.adb (Debug_Renaming_Declaration):
6079         Do not create renaming entities for renamings of non-packed
6080         objects and for exceptions.
6082 2014-07-29  Robert Dewar  <dewar@adacore.com>
6084         * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
6085         sem_ch6.adb, par-ch3.adb: Minor reformatting.
6087 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6089         * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
6090         subtype indication in an extended return statement when the
6091         return value is an ancestor of the return type of the function,
6092         and that return type is a null record extension.
6094 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6096         * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
6097         message produced for the case of a type-related representation
6098         item that is made illegal by 13.10(1).
6099         * gnat_rm.texi (Scalar_Storage_Order): Minor change in
6100         documentation.
6102 2014-07-29  Robert Dewar  <dewar@adacore.com>
6104         * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
6105         * erroutc.adb (Output_Error_Msgs): Take wide characters into
6106         account in computing position of error flags.
6107         * sinput.adb (Get_Column_Number): Take wide characters into
6108         account.
6110 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6112         * par-ch3.adb (P_Access_Type_Definition): The subtype indication
6113         in an access type definition can carry a null_exclusion indicator.
6114         * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
6115         carries a null_exclusion indicator, verify that the subtype
6116         indication denotes an access type, and create a null-excluding
6117         subtype for it.
6118         * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
6119         defined on N_Access_To_Object_Definition to indicate that the
6120         subtype indication carries a null_exclusion indicator.
6122 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6124         * exp_ch6.adb (Add_Extra_Actual): Do not construct
6125         the extra actual by name, generate a reference instead.
6127 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6129         * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
6130         Allow_Integer_Address if already set.
6131         * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
6132         Fix order, for consistency with Rmsg_xx declarations.
6134 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6136         * sem_ch4.adb (Complete_Object_Operation): If the type of the
6137         candidate subprogram is a limited view, use non-limited view
6138         when available.
6140 2014-07-29  Robert Dewar  <dewar@adacore.com>
6142         * sem_ch13.adb: Minor change in RM reference.
6143         * sem_mech.ads: Minor reformatting.
6144         * einfo.ads: Minor comment fix.
6145         * types.ads: Minor correction to range given for Mechanism_Type.
6146         * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
6147         check predicate on way out for OUT or IN OUT parameters.
6148         * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
6149         better (P_Range_Constraint): Corresponding fix.
6150         * checks.ads: Minor comment clarification.
6152 2014-07-29  Gary Dismukes  <dismukes@adacore.com>
6154         * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
6155         and Treat_As_Volatile flags based on whether the renamed object
6156         is a volatile object.
6158 2014-07-29  Olivier Hainque  <hainque@adacore.com>
6160         * g-debpoo.adb
6161         (Default_Alignment): Rename as Storage_Alignment. This is not
6162         a "default" that can be overriden. Augment comment to clarify
6163         intent and document why we need to manage alignment padding.
6164         (Header_Offset): Set to Header'Object_Size instead of 'Size
6165         rounded up to Storage_Alignment. Storage_Alignment on the
6166         allocation header is not required by our internals so was
6167         overkill. 'Object_Size is enough to ensure proper alignment
6168         of the header address when substracted from a storage address
6169         aligned on Storage_Alignment.
6170         (Minimum_Allocation): Rename as Extra_Allocation, conveying that
6171         this is always added on top of the incoming allocation requests.
6172         (Align): New function, to perform alignment rounding operations.
6173         (Allocate): Add comments on the Storage_Address computation
6174         scheme and adjust so that the alignment padding applies to that
6175         (Storage_Address) only.
6177 2014-07-29  Robert Dewar  <dewar@adacore.com>
6179         * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
6180         pragma Unreferenced.
6181         * cstand.adb (Create_Standard): Use E_Array_Type for standard
6182         string types. Make sure index of Any_String/Any_Array is in a list.
6183         * errout.adb: Minor reformatting.
6185 2014-07-29  Robert Dewar  <dewar@adacore.com>
6187         * gnat_ugn.texi: Clean up and correct documentation of warnings.
6188         * usage.adb: Minor corrections to make sure warnings are properly
6189         documented.
6190         * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
6191         (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
6193 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6195         * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
6196         created to match internal sequence numbers between compilations
6197         with/without abort must have its type properly set.
6199 2014-07-29  Robert Dewar  <dewar@adacore.com>
6201         * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
6202         (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
6203         SSO_Default_Specified.
6204         * ali.ads (ALIs_Record): Add field SSO_Default
6205         (SSO_Default_Specified): New global switch.
6206         * bcheck.adb (Check_Consistent_SSO_Default): New procedure
6207         (Check_Configuration_Consistency): Call this procedure
6208         * einfo.adb (SSO_Set_High_By_Default): New
6209         function (SSO_Set_Low_By_Default): New function
6210         (Set_SSO_Set_High_By_Default): New procedure
6211         (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
6212         List new flags
6213         * einfo.ads (SSO_Set_Low_By_Default): New flag
6214         (SSO_Set_High_By_Default): New flag
6215         * freeze.adb (Set_SSO_From_Default): New procedure
6216         (Freeze_Array_Type): Call Set_SSO_From_Default
6217         (Freeze_Record_Type): Call Set_SSO_From_Default
6218         * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
6219         * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
6220         * lib-writ.ads: Add OL/OH parameters to P line
6221         * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
6222         * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
6223         New global switch
6224         * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
6225         set by default using pragma Default_Scalar_Storage_Order.
6226         * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
6227         * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
6228         Clear SSO defaults when explicit SSO is inherited.
6229         (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
6230         explicit SSO is specified.
6231         (Inherit_Aspects_At_Freeze_Point):
6232         Clear SSO default when inheriting SSO.
6233         * sem_ch3.adb (Set_Default_SSO): New procedure
6234         (Analyze_Private_Extension_Declaration): Set defualt SSO
6235         (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
6236         (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
6237         ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
6238         (Record_Type_Declaration): ditto
6239         * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
6240         Save Default_SSO
6241         * sem_prag.adb (Analyze_Pragma, case
6242         Default_Scalar_Storage_Order): Set Default_SSO
6244 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6246         * sem_ch6.adb (Valid_Operator_Definition): Verify that
6247         all parameter have mode IN. This check must be done here for
6248         subprogram instantiations that have operator names, because their
6249         analysis does not follow the same path as that for subprogram
6250         declarations.
6252 2014-07-29  Robert Dewar  <dewar@adacore.com>
6254         * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
6255         to make sure that the Etype of a component of the corresponding
6256         record type is present before trying to freeze it.
6257         * sem_ch5.adb: Minor reformatting.
6259 2014-07-29  Robert Dewar  <dewar@adacore.com>
6261         * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
6262         a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
6263         and then use it when a stream operation is used from a library generic
6264         when the restriction (No_Streams) is active.
6266 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6268         * projects.texi: Fix minor typo.
6270 2014-07-29  Yannick Moy  <moy@adacore.com>
6272         * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
6274 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
6276         * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
6277         CodePeer mode.
6279 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6281         * exp_ch7.adb (Find_Last_Init): Add local variable
6282         Deep_Init_Found. Check the statement immediately following the
6283         declaration if [Deep_]Initialization was not found.
6285 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6287         * exp_util.adb (Is_Aliased): It appears that
6288         'reference-d and renamed objects still play some role in Boolean
6289         expression with actions and cannot be finalized immediately.
6291 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6293         * exp_dbug.adb (Qualify_Needed):  For debugging purposes,
6294         Loop names are not part of the full qualification of entity names.
6296 2014-07-29  Robert Dewar  <dewar@adacore.com>
6298         * einfo.adb (Has_Protected): Test base type.
6299         * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
6300         that we always properly check No_Protected_Type_Allocators.
6302 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6304         * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
6305         loop declarations as well.
6306         * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
6307         to an iterator loop, because it may contain local renaming
6308         declarations that require debugging information.
6310 2014-07-29  Robert Dewar  <dewar@adacore.com>
6312         * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
6314 2014-07-29  Robert Dewar  <dewar@adacore.com>
6316         * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
6317         (Set_Static_Real_Or_String_Predicate): New procedure
6318         * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
6319         string predicates (Is_Predicate_Static): Handle static string
6320         predicates.
6321         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
6322         New procedure (Check_Expression_Against_Static_Predicate):
6323         Deal with static string predicates, now fully implemented
6324         (Eval_Relational_Op): Allow string equality/inequality as static
6325         if not comes from source.
6327 2014-07-29  Robert Dewar  <dewar@adacore.com>
6329         * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
6330         einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
6331         sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
6332         handling. Change name of Discrete_Predicate to
6333         Discrete_Static_Predicate, and replace testing of the presence of this
6334         field by testing the flag Has_Static_Expression.
6336 2014-07-29  Robert Dewar  <dewar@adacore.com>
6338         * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
6339         * opt.adb: Handle Uneval_Old.
6340         * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
6341         * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
6342         * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
6343         * sem_attr.adb (Uneval_Old_Msg): New procedure.
6344         * sem_ch8.adb (Push_Scope): Save Uneval_Old.
6345         (Pop_Scope): Restore Uneval_Old.
6346         * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
6347         Implemented.
6348         * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
6349         Add entries for Name_Warn, Name_Allow.
6351 2014-07-29  Robert Dewar  <dewar@adacore.com>
6353         * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
6354         to Is_OK_Static_Range.
6355         * sem_attr.adb (Eval_Attribute): Make sure we properly flag
6356         static attributes (Eval_Attribute, case Size): Handle size of
6357         zero properly (Eval_Attribute, case Value_Size): Handle size of
6358         zero properly.
6359         * sem_ch13.adb: Minor reformatting.
6360         * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
6361         Is_Static_Range to Is_OK_Static_Range.
6362         * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
6363         wrong in several ways (Is_Static_Range): Moved here from spec
6364         (Is_Static_Subtype): Moved here from spec Change some incorrect
6365         Is_Static_Subtype calls to Is_OK_Static_Subtype.
6366         * sem_eval.ads: Add comments to section on
6367         Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
6368         Add clarifying comments (Is_Static_Range): Moved to body
6369         (Is_Statically_Unevaluated): New function.
6370         * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
6371         Is_Static_Range to Is_OK_Static_Range.
6372         * sinfo.ads: Additional commments for Is_Static_Expression noting
6373         that clients should almost always use Is_OK_Static_Expression
6374         instead. Many other changes throughout front end units to obey
6375         this rule.
6376         * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
6377         for enumeration literal.
6378         * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
6379         lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
6380         sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
6381         exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
6382         Replace all occurrences of Is_Static_Expression by
6383         Is_OK_Static_Expression.
6385 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6387         * exp_ch4.adb (Process_Transient_Object): Remove constant
6388         In_Cond_Expr, use its initialization expression in place.
6389         * exp_ch7.adb (Process_Declarations): There is no need to check
6390         that a transient object being hooked is controlled as it would
6391         not have been hooked in the first place.
6392         * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
6393         objects are not considered aliased when the related context is
6394         a Boolean expression_with_actions.
6395         (Requires_Cleanup_Actions): There is no need to check that a transient
6396         object being hooked is controlled as it would not have been hooked in
6397         the first place.
6399 2014-07-29  Robert Dewar  <dewar@adacore.com>
6401         * errout.adb: Minor reformatting.
6403 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6405         * exp_ch3.adb (Default_Initialize_Object): Add new variables
6406         Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
6407         not allowed to ensure the symmetrical generation of symbols.
6408         * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
6409         and E_Decl. Add new variables Decl and Dummy. Generate a dummy
6410         temporary when aborts are not allowed to ensure symmertrical
6411         generation of symbols.
6412         * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
6413         Dummy. Generate a dummy temporary when aborts are not allowed
6414         to ensure symmertrical generation of symbols.
6416 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6418         * exp_dbug.adb (Debug_Renaming_Declaration): For an object
6419         renaming, indicate that the renamed entity itself needs debug
6420         information. This is necessary if that entity is a temporary,
6421         e.g. part of the expansion of an explicit dereference in an
6422         iterator.
6424 2014-07-29  Thomas Quinot  <quinot@adacore.com>
6426         * errout.adb (Set_Error_Posted): When propagating flag to
6427         an enclosing named association, also propagate to the parent
6428         of that node, so that named and positional associations are
6429         treated consistently.
6431 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6433         * sem_attr.adb (Resolve_Attribute, case 'Update):  Set
6434         Do_Range_Check properly on array component expressions that
6435         have a scalar type. In GNATprove mode, only checks on scalar
6436         components must be marked by the front-end.
6438 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6440         * sem_res.adb (Resolve_Type_Conversion): If the type of the
6441         expression is a limited view, use the non-limited view when
6442         available.
6444 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6446         * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
6447         case statement as coming from a conditional expression.
6448         (Expand_N_If_Expression): Mark the generated if statement as
6449         coming from a conditional expression.
6450         * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
6451         objects found in case statement alternatives when the case
6452         statement is actually a case expression.
6453         (Expand_N_If_Statement):
6454         Do not process controlled objects found in an if statement when
6455         the if statement is actually an if expression.
6456         * sinfo.adb (From_Conditional_Expression): New routine.
6457         (Set_From_Conditional_Expression): New routine.
6458         * sinfo.ads Add new semantic flag From_Conditional_Expression and
6459         update related nodes.
6460         (From_Conditional_Expression): New routine along with pragma Inline.
6461         (Set_From_Conditional_Expression): New routine along with pragma Inline.
6463 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6465         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
6466         formal parameter Obj_Id and update the comment on usage. Renamed
6467         Obj_Typ to Func_Typ and update all occurrences.
6468         (Find_Last_Init): Remove formal parameter Decl and update the comment
6469         on usage.
6470         Remove local constants Obj_Id and Obj_Typ. Remove local variables
6471         Init_Typ and Is_Conc. Remove the extraction of the initialization type.
6472         (Find_Last_Init_In_Block): Remove formal parameter
6473         Init_Typ and update the comment on usage.
6474         (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
6475         on usage. Check whether the procedure call is an initialization
6476         procedure of either the object type or the initialization type.
6477         (Is_Init_Proc_Of): New routine.
6478         (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
6479         routine. Add new variable Init_Typ. Add circuitry to extract the object
6480         type as well as the initialization type.
6482 2014-07-29  Robert Dewar  <dewar@adacore.com>
6484         * sem_case.adb: Minor reformatting.
6485         * sem_aux.ads: Minor reformatting.
6487 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6489         * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
6490         pointer on these fields, even though they are semantic, because
6491         subsequent analysis and expansion of action nades may require
6492         exploring the tree, for example to locate a node to be wrapped
6493         when a function with controlled result is called.
6495 2014-07-29  Claire Dross  <dross@adacore.com>
6497         * sem_aux.adb (Get_Binary_Nkind): Use case on
6498         Name_Id instead of an intermediate string.
6499         (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
6500         string.
6502 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
6504         * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
6505         about processing sources with preprocessor directives.
6507 2014-07-24  Martin Liska  <mliska@suse.cz>
6509         * gcc-interface/trans.c (finalize_nrv): Adjust function call.
6510         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
6511         (gnat_write_global_declarations): Likewise.
6513 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
6515         * gnat_rm.texi: Clean up for makeinfo 5.2.
6517 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
6519         * gnat_rm.texi (Machine Code Insertions): Clean up.
6521 2014-07-18  Robert Dewar  <dewar@adacore.com>
6523         * exp_ch7.adb: Minor reformatting.
6525 2014-07-18  Claire Dross  <dross@adacore.com>
6527         * sem_aux.ads (Get_Binary_Nkind): New function that returns
6528         the Node_Kind value of an entity defining a binary operator.
6529         (Get_Unary_Nkind): New function that returns the Node_Kind value
6530         of an entity defining a unary operator.
6532 2014-07-18  Pascal Obry  <obry@adacore.com>
6534         * sysdep.c: comment update.
6535         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
6536         platforms where it is known to be supported.
6538 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6540         * sem_dist.adb (Process_Remote_AST_Declaration): Need
6541         to set Fat_Type's Ekind in order to be able to use its
6542         Corresponding_Remote_Type attribute.
6544 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6546         * einfo.adb Last_Aggregate_Assignment is now Node 30.
6547         (Last_Aggregate_Assignment): Include
6548         constants in the assertion. Update the underlying node.
6549         (Set_Last_Aggregate_Assignment): Include constants in the
6550         assertion. Update the underlying node.  (Write_Field11_Name):
6551         Remove the entry for Last_Aggregate_Assignment.
6552         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
6553         * einfo.ads Update the node designation and usage of attribute
6554         Last_Aggregate_Assignment.
6555         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
6556         assignment statement used to initialize a controlled object.
6557         (Late_Expansion): Store the last assignment statement used to
6558         initialize a controlled record or an array of controlled objects.
6559         * exp_ch3.adb (Expand_N_Object_Declaration): Default
6560         initialization of objects is now performed in a separate routine.
6561         (Default_Initialize_Object): New routine.
6562         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
6563         Obj_Id. Update the comment on usage.
6564         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
6565         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
6566         (Is_Init_Call): Add formal parameter Init_Typ. Update the
6567         comment on usage.  Account for the type init proc when trying
6568         to determine whether a statement is an initialization call.
6569         (Make_Adjust_Call): Rename formal parameter For_Parent to
6570         Skip_Self. Update all occurrences of For_Parent. Account for
6571         non-tagged types. Update the call to Make_Call.
6572         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
6573         comment on usage. Update all occurrences of For_Parent.
6574         (Make_Final_Call): Rename formal parameter For_Parent to
6575         Skip_Self. Update all occurrences of For_Parent. Account
6576         for non-tagged types. Update the call to Make_Call.
6577         (Process_Object_Declaration): Most variables and constants are
6578         now local to the routine.
6579         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
6580         For_Parent to Skip_Self. Update the comment on usage.
6581         (Make_Final_Call): Rename formal parameter For_Parent to
6582         Skip_Self. Update the comment on usage.
6584 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6586         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
6587         can be a procedure that is implemented by entry, and have a
6588         formal that is a synchronized interface.  It does not have to
6589         be declared as a protected operation.
6591 2014-07-18  Robert Dewar  <dewar@adacore.com>
6593         * gnat_rm.texi: Remove mention of obsolete attributes
6594         Max[_Interrupt]_Priority, which have never been implemented
6595         (or at the very least were removed long ago if they ever were
6596         implemented.  Add documentation of Max[_Interrupt]_Priority
6597         constants in package System.
6598         * ttypes.ads: Document actual handling of package System,
6599         rather than a historical fantasy version.  Remove mention of
6600         non-existent attributes Max[_Interrupt]_Priority.
6602 2014-07-18  Pascal Obry  <obry@adacore.com>
6604         * a-witeio.adb (Put): No 16-bit character output when text
6605         translation is disabled.
6606         * i-cstrea.ads: Code clean up.
6608 2014-07-18  Robert Dewar  <dewar@adacore.com>
6610         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
6611         static attributes.
6613 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
6615         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
6617 2014-07-18  Pascal Obry  <obry@adacore.com>
6619         * adaint.c: Do not include wchar.h on VxWorks.
6620         * mingw32.h: Remove obsolete definition.
6622 2014-07-18  Pascal Obry  <obry@adacore.com>
6624         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
6625         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
6626         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
6627         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
6629 2014-07-18  Pascal Obry  <obry@adacore.com>
6631         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
6632         * a-ztexio.adb: Likewise.
6633         * a-witeio.adb: Likewise.
6634         (Open): Pass file's translation mode to set_text_mode.
6635         * s-ficobl.ads (Content_Encoding): New type.
6636         (Text_Content_Encoding): New subtype.
6637         (AFCB): Rename Is_Text_File to Text_Encoding.
6638         * s-fileio.adb (Open): Handles new text_translation
6639         values. Remove Is_Text_File which is equivalent to Text_Encoding
6640         in Text_Content_Encoding.
6641         * adaint.h (__gnat_set_mode): New routine.
6642         * sysdep.c (__gnat_set_wide_text_mode): Removed.
6643         (__gnat_set_mode): New routine.
6645 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
6647         * gcc-interface/decl.c, gcc-interface/trans.c,
6648         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
6649         Is_Packed_Array_Impl_Type.
6651 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6653         * sem_util.adb: Minor typo correction.
6655 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
6657         * gnat_rm.texi: Complete previous change.
6659 2014-07-18  Pascal Obry  <obry@adacore.com>
6661         * s-fileio.adb: Minor style fix.
6663 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6665         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
6666         specification of stream attributes for subtypes that are not
6667         first subtypes, to prevent malformed rep_item chains in the case
6668         of such illegal specifications for discriminated private subtypes.
6669         (Check_Overloaded_Name): Verify that the name is an entity name
6670         before other checks.
6672 2014-07-18  Pascal Obry  <obry@adacore.com>
6674         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
6676 2014-07-18  Robert Dewar  <dewar@adacore.com>
6678         * sem_prag.adb, sem_attr.adb,
6679         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
6681 2014-07-18  Pascal Obry  <obry@adacore.com>
6683         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
6684         * initialize.c (__gnat_wide_text_translation_required): Defined here.
6686 2014-07-18  Pascal Obry  <obry@adacore.com>
6688         * adaint.c (__gnat_fputwc): New routine.
6689         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
6691 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6693         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
6694         (Set_Stores_Attribute_Old_Prefix): New routine.
6695         (Stores_Attribute_Old_Prefix): New routine.
6696         (Write_Entity_Flags):
6697         Output flag Stores_Attribute_Old_Prefix.
6698         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
6699         comment on usage.
6700         (Set_Stores_Attribute_Old_Prefix): New routine
6701         along with pragma Inline.
6702         (Stores_Attribute_Old_Prefix): New
6703         routine along with pragma Inline.
6704         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
6705         constant which captures the result of attribute 'Old's prefix.
6706         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
6707         relocated expression which acted as a prefix of attribute 'Old.
6709 2014-07-18  Bob Duff  <duff@adacore.com>
6711         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
6712         null before dispatching to Deallocate_Subpool.
6713         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
6714         parameter of Default_Subpool_For_Pool to 'in out'.
6715         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
6716         a message to the raise.
6717         * sem_util.adb: Minor reformatting.
6719 2014-07-18  Robert Dewar  <dewar@adacore.com>
6721         * sem_util.adb (Check_Expression_Against_Static_Predicate):
6722         Mark expression as non-static if it fails static predicate check,
6723         and issue additional warning.
6725 2014-07-18  Pascal Obry  <obry@adacore.com>
6727         * a-witeio.adb (Put): Control translation based on
6728         wide_text_translation_required.
6729         * adaint.c (CurrentCCSEncoding): New variable.
6730         * initialize.c (__gnat_initialize): On Windows initialize
6731         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
6732         environment variable.
6733         * mingw32.h (CurrentCCSEncoding): New external.
6734         (__gnat_wide_text_translation_required): Likewise.
6735         * sysdep.c (wide_text_translation_required): New variable.
6736         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
6738 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6740         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
6741         variable Refined_States.  Add global variable Matched_Items.
6742         (Check_Dependency_Clause): Account for dependency
6743         clauses utilizing states with visible null refinements.
6744         (Is_Null_Refined_State): New routine.
6745         (Match_Items): Record each successfully matched item of pragma Depends.
6746         (Record_Item): New routine.
6748 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6750         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
6751         Do_Range_Check flag on a dynamic index expression used in a
6752         component association in the argument of Update.
6754 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6756         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
6758 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6760         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
6761         of enclosing blocks, loops and the enclosing function using a
6762         parent-based traversal.
6763         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
6764         stack reclamation if the iterator loop contains a return statement
6765         that uses the stack.
6766         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
6767         patch up the scope stack as the secondary stack management now
6768         takes into account the enclosing function of the iterator loop.
6770 2014-07-18  Robert Dewar  <dewar@adacore.com>
6772         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
6774 2014-07-18  Robert Dewar  <dewar@adacore.com>
6776         * einfo.adb (Has_Static_Predicate): New function.
6777         (Set_Has_Static_Predicate): New procedure.
6778         * einfo.ads (Has_Static_Predicate): New flag.
6779         * sem_ch13.adb (Is_Predicate_Static): New function
6780         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
6781         (Add_Call): Minor change in Sloc of generated expression
6782         (Add_Predicates): Remove setting of Static_Pred, no longer used.
6783         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
6784         replace by use of the entity flag Has_Static_Predicate_Aspect.
6785         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
6786         and issue warning that predicate is not checked for now.
6787         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
6788         spec.
6789         * sem_util.adb (Check_Expression_Against_Static_Predicate):
6790         Carry out check for any case where there is a static predicate,
6791         and output appropriate message.
6792         * sinfo.ads: Minor comment corrections.
6794 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6796         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
6797         from an untagged private type whose full view is tagged, the type
6798         is marked tagged for layout reasons, but it has no dispatch table,
6799         so Set_All_DT_Position must not be called.
6800         * exp_ch13.adb: If the freeze node is for a type internal to a
6801         record declaration, as is the case for a class-wide subtype
6802         of a parent component, the relevant scope is the scope of the
6803         enclosing record.
6805 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6807         * g-memdum.adb, g-memdum.ads: Code clean ups.
6809 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6811         * sem_prag.adb (Check_Dependency_Clause):
6812         Update the comment on usage. Reimplement the mechanism which
6813         attempts to match a single clause of Depends against one or
6814         more clauses of Refined_Depends.
6815         (Input_Match): Removed.
6816         (Inputs_Match): Removed.
6817         (Is_Self_Referential): Removed.
6818         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
6819         (Normalize_Outputs): Rename variable Split to New_Claue and update
6820         all its occurrences.
6821         (Report_Extra_Clauses): Update the comment on usage.
6822         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
6824 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6826         * i-cstrea.ads: Minor reformatting.
6828 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6830         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
6831         secondary stack-related flags to the generated block.
6832         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
6833         once the loop is relocated in a block.
6835 2014-07-18  Robert Dewar  <dewar@adacore.com>
6837         * repinfo.ads: Add documentation on handling of back annotation
6838         for dynamic case.
6840 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6842         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
6843         of full type declaration, denotes previous declaration for
6844         incomplete view of the type.
6845         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
6846         of declaration if one is present.
6847         (Replace_Type): When constructing the signature of an inherited
6848         operation, handle properly the case where the operation has a
6849         formal whose type is an incomplete view.
6850         * sem_util.adb (Collect_Primitive_Operations): Handle properly
6851         the case of an operation declared after an incomplete declaration
6852         for a type T and before the full declaration of T.
6854 2014-07-18  Pascal Obry  <obry@adacore.com>
6856         * i-cstrea.ads: Add documentation for set_wide_text_mode.
6858 2014-07-18  Robert Dewar  <dewar@adacore.com>
6860         * a-witeio.adb: Minor code reorganization.
6861         * i-cstrea.ads: Add comment.
6863 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6865         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
6866         clarifications.
6868 2014-07-18  Robert Dewar  <dewar@adacore.com>
6870         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
6872 2014-07-18  Pascal Obry  <obry@adacore.com>
6874         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
6875         * a-witeio.adb (Put): On platforms where there is translation
6876         done by the OS output the raw text.
6877         (New_Line): Use Put above to properly handle the LM wide characters.
6879 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6881         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
6882         to Absolute_Address.
6884 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
6886         * opt.ads (Suppress_Back_Annotation): Remove as unused.
6887         * fe.h (Back_Annotate_Rep_Info): Likewise.
6888         (Global_Discard_Names): Likewise.
6890 2014-07-18  Robert Dewar  <dewar@adacore.com>
6892         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
6893         parenthesized.
6895 2014-07-18  Vincent Celier  <celier@adacore.com>
6897         * s-osinte-vms.ads: Fix style errors.
6899 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6901         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
6902         NAME_MAX and PATH_MAX.
6904 2014-07-18  Bob Duff  <duff@adacore.com>
6906         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
6907         Build_Record_Or_Elementary_Output_Procedure): For Input and
6908         Output attributes, do not read/write the discriminants if they
6909         have default values; that will be done by Read/Write.
6911 2014-07-18  Robert Dewar  <dewar@adacore.com>
6913         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
6914         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
6915         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
6916         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
6917         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
6919 2014-07-18  Robert Dewar  <dewar@adacore.com>
6921         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
6923 2014-07-18  Vincent Celier  <celier@adacore.com>
6925         * lib-writ.ads: Update documentation about the D lines.
6927 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6929         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
6930         as a parameter, rather than its Chars field, in order to locate
6931         freeze node of type. If the predicate or invariant has references
6932         to types other than the one to which the contract applies, these
6933         types must be frozen, and the corresponding predicate functions
6934         created, before that freeze node.
6936 2014-07-18  Robert Dewar  <dewar@adacore.com>
6938         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
6939         * par_sco.adb: Minor reformatting.
6941 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6943         * exp_ch4.adb (Real_Range_Check): Turn off
6944         the Do_Range_Check flag on the conversion's current Expression
6945         argument rather than on the originally captured Operand node,
6946         as Expression may reflect a rewriting (as in conversions to a
6947         fixed-point type).
6949 2014-07-18  Vincent Celier  <celier@adacore.com>
6951         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
6952         is not a subunit.
6953         * ali.ads (Sdep_Record): New component Unit_Name.
6954         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
6955         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
6956         dependent unit is in a project and the source file name is not
6957         one of its sources.
6959 2014-07-18  Bob Duff  <duff@adacore.com>
6961         * s-addima.ads: Minor: add comment.
6963 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6965         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
6966         of nesting rules for composites with different SSOs.
6968 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6970         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
6971         a proper logical operator.
6972         (Has_Decision): An If_Expression indicates the presence of a decision
6973         although it is not a logical operator.
6975 2014-07-18  Robert Dewar  <dewar@adacore.com>
6977         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
6978         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
6980 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
6982         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
6983         on the null statement.
6985 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6987         * adaint.c: Minor comment rewording.
6988         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
6989         use of errno in this file is thread safe.
6991 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
6993         * gnat_ugn.texi: Doc clarification.
6994         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
6995         * sem_ch13.ads: Minor comment update.
6997 2014-07-18  Robert Dewar  <dewar@adacore.com>
6999         * repinfo.ads: Minor comment fix.
7001 2014-07-18  Robert Dewar  <dewar@adacore.com>
7003         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
7004         * sem_prag.adb: Add dummy implementation of
7005         Default_Scalar_Storage_Order.
7006         * snames.ads-tmpl: Add dummy entry for
7007         Default_Scalar_Storage_Order pragma.
7009 2014-07-18  Robert Dewar  <dewar@adacore.com>
7011         * opt.adb (Tree_Read): Read Address_Is_Private,
7012         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
7013         (Tree_Write): Corresponding writes
7014         * opt.ads: Minor comment reformatting and fixes.
7015         * tree_io.ads: Increment ASIS_Version_Number.
7017 2014-07-18  Robert Dewar  <dewar@adacore.com>
7019         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
7020         * types.h: Fix typo.
7022 2014-07-18  Robert Dewar  <dewar@adacore.com>
7024         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
7025         functional change).
7026         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
7027         ASIS trees.
7028         * sem_ch13.adb (Kill_Rep_Clause): New procedure
7029         (Analyze_Attribute_Definition_Clause): Use
7030         Kill_Rep_Clause. This is just a cleanup, no functional effect.
7031         (Analyze_Enumeration_Representation_Clause):
7032         Use Kill_Rep_Clause. This means that enum rep
7033         clauses are now properly removed from -gnatct trees.
7034         (Analyze_Record_Representation_Clause): Same change.
7035         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
7037 2014-07-18  Pascal Obry  <obry@adacore.com>
7039         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
7040         OS_Time from time parts.
7041         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
7043 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7045         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
7046         indexing over containers that are derived types: check whether
7047         signature of found operation has the correct first parameter
7048         before retrieving directly a primitive operation.
7050 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7052         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
7053         Do_Range_Check flag on dynamic bounds of a range used in a
7054         component association in the argument of Update.
7056 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7058         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
7059         accesses to errno(3) to be thread safe.
7061 2014-07-18  Vincent Celier  <celier@adacore.com>
7063         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
7064         limited imported project that is an extending project, return
7065         a project being extended if it has the expected name.
7067 2014-07-18  Pascal Obry  <obry@adacore.com>
7069         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
7070         routine to set the last modification time stamp for the given file.
7071         * gnatchop.adb (File_Time_Stamp): Removed.
7072         (Write_Unit): Use
7073         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
7075 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7077         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
7078         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
7079         Moved here, so it can be shared with the resolution of 'Update,
7080         whose argument shares some features with aggregates.
7081         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
7082         Aggregate_Constraint_Checks with the expression of each
7083         association, so that the Do_Range_Check flag is set when needed.
7085 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7087         * sem_ch4.adb (Try_Container_Indexing):  If the container
7088         type is a derived type, the value of the inherited  aspect is
7089         the Reference operation declared for the parent type. However,
7090         Reference is also a primitive operation of the new type, and
7091         the inherited operation has a different signature. We retrieve
7092         the right one from the list of primitive operations of the
7093         derived type.
7095 2014-07-18  Vincent Celier  <celier@adacore.com>
7097         * debug.adb: Update comment.
7099 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7101         * exp_util.adb (Needs_Finalization): There is no reason why a
7102         C type should not benefit from finalization actions.
7104 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7106         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
7107         (FILENAME_MAX): Remove unneeded definition.
7109 2014-07-18  Robert Dewar  <dewar@adacore.com>
7111         * exp_attr.adb, debug.adb: Update comments.
7113 2014-07-18  Vincent Celier  <celier@adacore.com>
7115         * par-ch4.adb (Simple_Expression): Add missing style check
7116         for binary adding operators.
7117         (Term): Add missing style check for multiplying operators.
7119 2014-07-18  Robert Dewar  <dewar@adacore.com>
7121         * impunit.adb: Minor comment correction.
7122         * widechar.adb, s-wchcon.ads: Minor comment corrections.
7124 2014-07-18  Robert Dewar  <dewar@adacore.com>
7126         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
7127         for Build_Static_Predicate (Build_Predicate_Functions):
7128         Don't try to build discrete predicate for real type.
7129         (Build_Predicate_Functions): Report attempt to use
7130         Static_Predicate function on real type as unimplemented.
7131         * sem_util.adb (Check_Expression_Against_Static_Predicate):
7132         Add guard to prevent blow up on predicate for real type.
7134 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7136         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
7137         properly static predicate on enumeration types and modular types
7138         (not subtypes).
7140 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
7142         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
7143         the corresponding source file index.
7144         * get_scos.ads (Get_SCOs): Add a default value for it.
7145         * par_sco.adb (SCO_Record): Fill the corresponding value.
7146         * scos.h: New.
7148 2014-07-18  Vincent Celier  <celier@adacore.com>
7150         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
7151         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
7152         reformatting.
7153         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
7155 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7157         * g-sercom.ads (Set): document possible data loss.
7159 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7161         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
7162         Output, Read, Write): If the restriction No_Streams is active,
7163         replace each occurrence of a stream attribute by an explicit
7164         Raise statement.
7166 2014-07-18  Robert Dewar  <dewar@adacore.com>
7168         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
7169         reformatting.
7171 2014-07-18  Robert Dewar  <dewar@adacore.com>
7173         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
7174         function.
7175         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
7176         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
7177         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
7178         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
7180 2014-07-18  Robert Dewar  <dewar@adacore.com>
7182         * bcheck.adb (Check_Consistent_Restrictions):
7183         Remove obsolete code checking for violation of
7184         No_Standard_Allocators_After_Elaboration (main program)
7185         * bindgen.adb (Gen_Adainit): Handle
7186         No_Standard_Allocators_After_Elaboration
7187         (Gen_Output_File_Ada): ditto.
7188         * exp_ch4.adb (Expand_N_Allocator): Handle
7189         No_Standard_Allocators_After_Elaboration.
7190         * Makefile.rtl: Add entry for s-elaall
7191         * rtsfind.ads: Add entry for Check_Standard_Allocator.
7192         * s-elaall.ads, s-elaall.adb: New files.
7193         * sem_ch4.adb (Analyze_Allocator): Handle
7194         No_Standard_Allocators_After_Elaboration.
7196 2014-07-18  Robert Dewar  <dewar@adacore.com>
7198         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
7199         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
7200         Remove AB parameter from ali files and all uses.
7201         Remove Allocator_In_Body and all uses.
7203 2014-07-18  Robert Dewar  <dewar@adacore.com>
7205         * g-expect-vms.adb: Add comment.
7207 2014-07-18  Thomas Quinot  <quinot@adacore.com>
7209         * par_sco.adb (Is_Logical_Operation): return True for
7210         N_If_Expression.
7212 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7214         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
7215         analysis and resolution of each choice in the associations within
7216         the argument of Update, because they may be variable names.
7218 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7220         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
7221         actions before the generated if statement.
7223 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
7225         * gnat_ugn.texi Enhance the documentation of
7226         switches -gnateA and -gnateV.
7228 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
7230         * sem_util.adb (Build_Default_Subtype): Add missing condition
7231         so that code matches description: use the full view of the base
7232         only if the base is private and the subtype is not.
7234 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
7236         * exp_disp.adb: Minor reformatting.
7237         * exp_disp.adb: Minor code reorganization.
7239 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7241         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
7242         require an explicit SSO attribute definition clause on a composite type
7243         just because one of its components has one.
7245 2014-07-17  Robert Dewar  <dewar@adacore.com>
7247         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
7248         attribute out of existence if the enclosing pragma is ignored.
7249         * sem_util.adb: Minor reformatting.
7251 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7253         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
7254         array aggregate expanded into assignments when it appears as a
7255         local declaration in an inlined body.
7257 2014-07-17  Doug Rupp  <rupp@adacore.com>
7259         * init.c [__ANDROID__]: Modify for ZCX.
7260         * exp_aggr.adb: Minor reformatting
7261         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
7263 2014-07-17  Robert Dewar  <dewar@adacore.com>
7265         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
7266         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
7267         scng.adb: Remove incorrect usage "allow to" and "allows to".
7269 2014-07-17  Robert Dewar  <dewar@adacore.com>
7271         * exp_dist.adb: Minor reformatting.
7273 2014-07-17  Bob Duff  <duff@adacore.com>
7275         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
7277 2014-07-17  Robert Dewar  <dewar@adacore.com>
7279         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
7280         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
7282 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7284         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
7285         non-bit-packed array, propagate Reverse_Storage_Order to the
7286         packed array type.
7288 2014-07-17  Javier Miranda  <miranda@adacore.com>
7290         * exp_disp.adb: Fix comment.
7291         * exp_pakd.adb: Minor reformatting.
7293 2014-07-17  Robert Dewar  <dewar@adacore.com>
7295         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
7296         entity if none exists (Gen_Elab_Calls): Complain if clash with
7297         No_Multiple_Elaboration.
7298         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
7299         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
7300         if not needed.
7301         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
7302         * sem_ch4.adb: Minor comment updates.
7304 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7306         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
7307         of function call for later use when shared passive objects
7308         are involved.
7310 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7312         * par-ch13.adb (Get_Aspect_Specifications):
7313         Catch a case where the argument of SPARK aspect Refined_State
7314         is not properly parenthesized.
7316 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7318         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
7319         the lifetime of a reference to an Ada 2012 container element.
7320         (Is_Element_Reference): New routine.
7322 2014-07-17  Robert Dewar  <dewar@adacore.com>
7324         * ali.ads: Minor comment fix.
7325         * lib-writ.adb: Minor reformatting.
7327 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7329         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
7330         in ASIS mode, load another subunit only if it a subunit of the
7331         current one, not a sibling that has been reached through the
7332         analysis of an ancestor. This allows the construction of the
7333         ASIS tree for the subunit even when sibling subunits have errors.
7335 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7337         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
7338         prevents the analysis of various contracts when the associated
7339         construct is erroneous.
7340         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
7341         SPARK_Pragma of an illegal or a partially decorated construct.
7343 2014-07-17  Robert Dewar  <dewar@adacore.com>
7345         * s-imguns.ads: Minor reformatting.
7347 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7349         * exp_ch7.adb (Build_Finalization_Master): Move all local
7350         variables to the proper code section. When looking for an existing
7351         finalization master, inspect the ultimate ancestor type of the
7352         full view.
7353         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
7355 2014-07-17  Robert Dewar  <dewar@adacore.com>
7357         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
7358         * gnat_rm.texi: Document Entity argument for pragma Annotate and
7359         Annotate aspect.
7360         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
7361         for Annotate aspect.
7362         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
7363         Entity argument at end.
7364         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
7366 2014-07-17  Tristan Gingold  <gingold@adacore.com>
7368         * s-imguns.ads: Fix minor typo.
7370 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7372         * sprint.adb: Minor reformatting.
7374 2014-07-17  Robert Dewar  <dewar@adacore.com>
7376         * sprint.adb (Write_Itype): Print proper header for string
7377         literal subtype.
7379 2014-07-17  Steve Baird  <baird@adacore.com>
7381         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
7383 2014-07-17  Vincent Celier  <celier@adacore.com>
7385         * gnatbind.adb: Change in message "try ... for more information".
7387 2014-07-17  Robert Dewar  <dewar@adacore.com>
7389         * sprint.adb: Code clean up.
7391 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7393         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
7394         the relevant code section. Add new local constant Obj_Id. When
7395         a limited controlled object is initialized by a function call,
7396         the build-in-place object access function call acts as the last
7397         initialization statement.
7398         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
7399         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
7400         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
7402 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7404         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
7405         propagate intrinsic flag to renamed entity, to allow e.g. renaming
7406         of Unchecked_Conversion.
7407         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
7408         if the declaration has errors.
7410 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7412         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
7413         container is busy before checking whether capacity allows for
7414         a further insertion. Insertion in a busy container that is full
7415         raises Program_Error rather than Capacity_Error. Previous to that
7416         patch which exception was raised varied among container types.
7418 2014-07-17  Robert Dewar  <dewar@adacore.com>
7420         * g-comlin.ads, g-comlin.adb: Minor clean up.
7422 2014-07-17  Bob Duff  <duff@adacore.com>
7424         * gnat_ugn.texi: Update gnatpp doc.
7426 2014-07-17  Robert Dewar  <dewar@adacore.com>
7428         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
7429         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
7430         could do this by actually expanding a real generic.
7431         * a-tags.ads: Add comments about performance.
7432         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
7433         Print Etype of defining identifier, rather than the object
7434         definition. More information.
7436 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7438         * exp_dist.adb: Minor documentation clarification.
7440 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7442         * exp_util.adb (Is_Aliased): Revert previous change.
7444 2014-07-17  Vincent Celier  <celier@adacore.com>
7446         * g-comlin.adb (Try_Help): New procedure.
7447         (Getopt): Use new procedure Try_Help.
7448         * g-comlin.ads (Try_Help): New procedure.
7450 2014-07-17  Bob Duff  <duff@adacore.com>
7452         * gnat_ugn.texi: Minor update.
7454 2014-07-17  Robert Dewar  <dewar@adacore.com>
7456         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
7457         * sinfo.ads: Document restriction on aggregates (must expand to
7458         assignments if one or more assignments needs expansion, e.g. for
7459         controlled types).
7460         * sem_ch13.adb: All warning messages regarding bit order should
7461         be info: messages.
7462         * gnat_ugn.texi: Minor correction of missing @ on @code
7464 2014-07-17  Robert Dewar  <dewar@adacore.com>
7466         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
7467         * s-rident.ads (Partition_Boolean_Restrictions): Add
7468         No_Long_Long_Integer.
7469         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
7470         Long_Integer'Size if restriction No_Long_Long_Integer is active.
7471         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
7472         as the implicit base type for a signed integer type declaration
7473         if restriction No_Long_Long_Integer is active.
7474         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
7475         No_Long_Long_Integer.
7477 2014-07-17  Robert Dewar  <dewar@adacore.com>
7479         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
7480         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
7481         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
7482         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
7483         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
7485 2014-07-17  Robert Dewar  <dewar@adacore.com>
7487         * debug.adb: Remove -gnatdQ.
7488         * exp_disp.adb: Remove -gnatdQ.
7489         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
7490         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
7491         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
7492         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
7493         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
7494         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
7496 2014-07-17  Robert Dewar  <dewar@adacore.com>
7498         * back_end.adb: Minor reformatting and comment additions.
7499         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
7500         function.
7501         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
7502         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
7503         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
7504         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
7505         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
7506         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
7508 2014-07-17  Robert Dewar  <dewar@adacore.com>
7510         * gnat_rm.texi: Minor comment updates.
7512 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7514         * sem_util.adb (Make_Explicit_Dereference): If the expression
7515         being dereferenced is a generalized indexing, reset the overloaded
7516         flag on the generalized indexing call, consistent with the
7517         resetting of the flag on the original indexed component.
7519 2014-07-17  Robert Dewar  <dewar@adacore.com>
7521         * gnat_ugn.texi: Document advise not to mix -gnatV? and
7522         optimization.
7524 2014-07-17  Robert Dewar  <dewar@adacore.com>
7526         * checks.adb (Insert_Valid_Check): Don't insist on a name
7527         for the prefix when we make calls to Force_Evaluation and
7528         Duplicate_Subexpr_No_Checks.
7529         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
7530         (Remove_Side_Effects): Handle all volatile references right
7531         (Side_Effect_Free): Volatile reference is never side effect free
7532         * sinfo.ads (N_Attribute_Reference): Add comments explaining
7533         that in the tree, the prefix can be a general expression.
7535 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7537         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
7538         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
7539         * sem_ch7.adb (Analyze_Package_Body_Contract,
7540         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
7542 2014-07-17  Robert Dewar  <dewar@adacore.com>
7544         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
7545         Store_After_Actions_In_Scope.
7547 2014-07-17  Robert Dewar  <dewar@adacore.com>
7549         * sem_aux.ads: Minor comment addition.
7551 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7553         * sem_res.adb (Make_Call_Into_Operator): If the call is already
7554         a rewriting of an operator node, there are no actuals to be
7555         propagated from original node to rewritten node when in ASIS mode.
7557 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7559         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
7560         Analyze_Subprogram_Contract): Add new local variable Mode. Save
7561         and restore the SPARK mode of the related construct in a
7562         stack-like fashion.
7563         * sem_ch7.adb (Analyze_Package_Body_Contract,
7564         Analyze_Package_Contract): Add new local variable Mode. Save and
7565         restore the SPARK mode of the related construct in a stack-like fashion.
7566         * sem_util.adb Remove with and use clause for Opt.
7567         (Restore_SPARK_Mode): New routine.
7568         (Save_SPARK_Mode_And_Set): New routine.
7569         * sem_util.ads Add with and use clause for Opt.
7570         (Restore_SPARK_Mode): New routine.
7571         (Save_SPARK_Mode_And_Set): New routine.
7573 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7575         * exp_util.adb (Is_Aliased): Transient objects
7576         within an expression with actions cannot be considered aliased.
7578 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7580         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
7581         introduce a new list (cleanup actions) for each (transient) scope.
7582         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
7583         N_Block_Statement
7584         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
7585         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
7586         processing for Store_xxx_Actions_In_Scope.
7587         (Build_Cleanup_Statements): Allow for a list of additional
7588         cleanup statements to be passed by the caller.
7589         (Expand_Cleanup_Actions): Take custom cleanup actions associated
7590         with an N_Block_Statement into account.
7591         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
7592         reorganization (refactoring only, no behaviour change).
7593         (Make_Transient_Block): Add assertion to ensure that the current
7594         scope is indeed a block (namely, the entity for the transient
7595         block being constructed syntactically, which has already been
7596         established as a scope).  If cleanup actions are present in the
7597         transient scope, transfer them now to the transient block.
7598         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
7599         called function while it is still present as the name in a call
7600         in the tree. This may not be the case later on if the call is
7601         rewritten into a transient block.
7602         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
7603         inserted after calling a protected operation on a shared passive
7604         protected must be performed in a block finalizer, not just
7605         inserted in the tree, so that they are executed even in case of
7606         a normal (RETURN) or abnormal (exception) transfer of control
7607         outside of the current scope.
7608         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
7609         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
7610         Scope_Stack_Entry reorganization.
7612 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7614         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
7615         call for types that do not have an explicit attribute definition
7616         clause for External_Tag, as their default tag may clash with an
7617         explicit tag defined for some other type.
7619 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7621         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
7622         controlled function call with multiple actual parameters that
7623         appears in Object.Operation form.
7625 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7627         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
7628         entity flag.
7629         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
7630         External_Tag): No need to set entity flag.
7631         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
7632         Reimplement correctly in terms of Has_Rep_Item.
7634 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7636         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
7637         Start examining the tree at the node passed to
7638         Establish_Transient_Scope (not its parent).
7639         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
7640         The access type for the variable storing the reference to
7641         the call must be declared and frozen prior to establishing a
7642         transient scope.
7643         * exp_ch9.adb: Minor reformatting.
7645 2014-07-17  Pascal Obry  <obry@adacore.com>
7647         * s-os_lib.ads: Minor comment update.
7649 2014-07-17  Tristan Gingold  <gingold@adacore.com>
7651         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
7652         indentation.
7653         * socket.c: Remove #warning to avoid warning.
7654         * expect.c: Indent some preprocessor directives to clarify
7655         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
7656         to remove warnings.
7657         * env.c: Fix indentation.  Port to PikeOS.
7658         * gsocket.h: Port to PikeOS.  Remove #warning.
7659         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
7660         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
7661         of stubbed __gnat_setup_parent_communication.
7662         * adaint.c: Port to PikeOS.  Reindent some preprocessor
7663         directives to clarify nested if.  Fix indentation.  Add missing
7664         ATTRIBUTE_UNUSED.
7666 2014-07-17  Robert Dewar  <dewar@adacore.com>
7668         * sem_attr.adb: Minor reformatting.
7670 2014-07-17  Robert Dewar  <dewar@adacore.com>
7672         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
7674 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7676         * sem_case.adb (Check_Choice_Set): If the case expression is the
7677         expression in a predicate, do not recheck coverage against itself,
7678         to prevent spurious errors.
7679         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
7680         expression comes from an aspect specification, to prevent spurious
7681         errors when expression is a case expression in a predicate.
7683 2014-07-17  Pascal Obry  <obry@adacore.com>
7685         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
7686         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
7688 2014-07-17  Vincent Celier  <celier@adacore.com>
7690         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
7691         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
7692         the usage for an erroneous invocation of a gnat tool.
7694 2014-07-16  Vincent Celier  <celier@adacore.com>
7696         * gnatls.adb: Get the target parameters only if -nostdinc was
7697         not specified.
7699 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7701         * checks.adb (Insert_Valid_Check): If the expression is a packed
7702         component of a modular type of the right size the data is always
7703         valid. This os particularly useful if the component is part of
7704         a volatile variable.
7706 2014-07-16  Robert Dewar  <dewar@adacore.com>
7708         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
7710 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7712         * exp_ch7.ads: Minor documentation fix.
7714 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7716         * sem_ch3.adb (Find_Type_Name): Diagnose properly
7717         a private extension completion that is an interface definition
7718         with an interface list.
7720 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
7722         * gnatls.adb (Gnatls): Code clean ups.
7724 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7726         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
7727         * sem.adb (Analyze): Handle N_Compound_Statement.
7728         * sprint.adb (Sprint_Node_Actual): Ditto.
7729         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
7730         procedure to handle N_Compound_Statement.
7731         * exp_aggr.adb (Collect_Initialization_Statements):
7732         Use a proper compound statement node, instead of a bogus
7733         expression-with-actions with a NULL statement as its expression,
7734         to wrap collected initialization statements.
7735         * freeze.ads, freeze.adb
7736         (Explode_Initialization_Compound_Statement): New public procedure,
7737         lifted from Freeze_Entity.
7738         (Freeze_Entity): When freezing
7739         an object with captured initialization statements and without
7740         delayed freezing, explode compount statement.
7741         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
7742         case that used to handle bogus EWAs with NULL statement as
7743         the expression.
7744         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
7745         delayed freezing and captured initialization statements, explode
7746         compound statement.
7748 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
7750         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
7752 2014-07-16  Doug Rupp  <rupp@adacore.com>
7754         * s-interr-hwint.adb: Casing error on parameter.
7756 2014-07-16  Pascal Obry  <obry@adacore.com>
7758         * Makefile.rtl: Add g-rewdat.o dependencies in
7759         GNATRTL_NONTASKING_OBJS.
7761 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7763         * sem_case.adb: Code clean up.
7765 2014-07-16  Vincent Celier  <celier@adacore.com>
7767         * make.adb: Do not read gnat.adc when gnatmake is invoked
7768         with -gnatA.
7770 2014-07-16  Pascal Obry  <obry@adacore.com>
7772         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
7773         implementation of GNAT.Rewrite_Data.
7775 2014-07-16  Vincent Celier  <celier@adacore.com>
7777         * gnatls.adb (Normalize): New function.
7778         (Gnatls): Get the target parameters. On targets other than VMS,
7779         normalize the path names in the source search path, the object search
7780         path and the project search path.
7782 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7784         * sem_case.adb: Avoid self-checking of case expressions in
7785         dynamic predicates.
7787 2014-07-16  Robert Dewar  <dewar@adacore.com>
7789         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
7790         discriminants.
7792 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
7794         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
7796 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
7798         * gnat_ugn.texi: Fix typo.
7800 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7802         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
7803         expression if it is the specification of a subtype predicate:
7804         it will be expanded when the return statement is analyzed, or
7805         when a static predicate is transformed into a static expression
7806         for evaluation by the front-end.
7807         * sem_ch13.adb (Get_RList): If the expression for a static
7808         predicate is a case expression, extract the alternatives of the
7809         branches with a True value to create the required statically
7810         evaluable expression.
7812 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7814         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
7815         expression, not the location of the aspect, for all generated
7816         code, so that in particular the call to raise_assert_failure
7817         gets the sloc of the associated condition.
7818         * exp_ch6.adb
7819         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
7820         Set an explicit End_Label on the handled sequence of statements
7821         for the _Postconditions procedure so that the implicit return
7822         statement does not erroneously get associated with code generated
7823         for the last condition in postconditions.
7825 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7827         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
7828         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
7829         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
7830         -gnatw.Z.
7832 2014-07-16  Robert Dewar  <dewar@adacore.com>
7834         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
7835         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
7836         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
7837         not in Access_Kind.
7838         * par-ch4.adb (At_Start_Of_Attribute): New function
7839         (P_Simple_Expression): Better msg for bad attribute prefix.
7840         * scans.ads: Minor reformatting.
7842 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7844         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
7845         static constant, check that in belongs to the corresponding index
7846         subtype, to produce the proer warning when expansion is disabled.
7848 2014-07-16  Robert Dewar  <dewar@adacore.com>
7850         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
7851         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
7852         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
7853         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
7854         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
7855         -gnatw.z/-gnatw.Z
7856         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
7857         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
7858         reformatting.
7860 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7862         * exp_ch7.adb (Process_Declarations): Reinstate the check on
7863         a hook object to ensure that the related transient declaration
7864         is finalizable.
7865         * exp_util.adb (Is_Aliased): Do not consider expresison with
7866         actions as a special context.
7867         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
7868         ensure that the related transient declaration is finalizable.
7870 2014-07-16  Robert Dewar  <dewar@adacore.com>
7872         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
7873         * snames.ads-tmpl: Add Allocation_Check to list of check names.
7874         * types.ads: Add Allocation_Check to list of check names.
7876 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7878         * sem_util.adb (Enter_Name): replace bogus test for presence of
7879         Corresponding_Remote_Type with correct test on Ekind.
7880         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
7881         of calls to Corresponding_ Remote_Type (documentation fix).
7883 2014-07-16  Robert Dewar  <dewar@adacore.com>
7885         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
7886         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
7887         where it applies.
7888         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
7889         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
7891 2014-07-16  Robert Dewar  <dewar@adacore.com>
7893         * gnat_ugn.texi: Document binder switch -Ra.
7894         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
7895         (List_Closure_All).
7896         * opt.ads (List_Closure_All): New switch.
7897         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
7898         List_Closure_All.
7900 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
7902         * gnat_rm.texi: Minor edits, to make case consistent in names
7903         of types and fields.
7905 2014-07-16  Robert Dewar  <dewar@adacore.com>
7907         * gnat_rm.texi: Document erroneous mixing of thin pointers and
7908         unrestricted access
7909         * gnat_ugn.texi: Add note on size of access types about thin
7910         pointers and the use of attribute Unrestricted_Access.
7912 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7914         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
7915         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
7916         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
7917         machinery to detect tampering on bounded vectors.
7919 2014-07-16  Robert Dewar  <dewar@adacore.com>
7921         * gnat_rm.texi: Document that leading/trailing asterisks are
7922         now implied for the pattern match string for pragma Warnings
7923         and Warning_As_Error.
7924         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
7925         (Analyze_Pragma, case Warning_As_Error): Call
7926         Acquire_Warning_Match_String.
7927         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
7929 2014-07-16  Bob Duff  <duff@adacore.com>
7931         * gnat_ugn.texi: Document need for project file
7932         for --incremental switch for gnat2xml.
7934 2014-07-16  Robert Dewar  <dewar@adacore.com>
7936         * gnat_rm.texi: Fix example of non-packable components in packed
7937         records section.
7939 2014-07-16  Robert Dewar  <dewar@adacore.com>
7941         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
7942         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
7943         upper case in exception messages.
7945 2014-07-16  Robert Dewar  <dewar@adacore.com>
7947         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
7948         is renamed Has_Same_Storage.
7949         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
7950         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
7951         descriptions).
7953 2014-07-16  Robert Dewar  <dewar@adacore.com>
7955         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
7956         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
7958 2014-07-16  Robert Dewar  <dewar@adacore.com>
7960         * gnat_ugn.texi: Add note that integrated
7961         preprocessing cannot be applied to configuration pragma files.
7963 2014-07-16  Yannick Moy  <moy@adacore.com>
7965         * sem_attr.adb (Analyze_Attribute/cases Pred
7966         and Succ): Always enable range check on fixed-point types if
7967         not suppressed for the type.
7969 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7971         * sem_util.adb (State_Has_Enabled_Property):
7972         Account for an external property denoted by an others choice.
7974 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7976         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
7977         * exp_ch7.adb (Process_Declarations): There is no need to check
7978         that a transient object being hooked is controlled as it would
7979         not have been hooked in the first place.
7980         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
7981         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
7982         (Is_Aliased): A renaming of a transient controlled object is
7983         not considered aliasing when it occurs within an expression
7984         with actions.
7985         (Requires_Cleanup_Actions): There is no need to
7986         check that a transient object being hooked is controlled as it
7987         would not have been hooked in the first place.
7988         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
7990 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7992         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
7993         the outer level of routine Analyze_Aspect_Specifications. Ensure
7994         that the corresponding pragmas of aspects Initial_Condition and
7995         Initializes are inserted after pragma SPARK_Mode.
7997 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7999         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
8000         properly a choice list with more than one choice, where each
8001         is an aggregate denoting a sequence of array indices for a
8002         multidimentional array. For SPARK use.
8004 2014-07-16  Vadim Godunko  <godunko@adacore.com>
8006         * a-coinho-shared.adb (Adjust): Create
8007         copy of internal shared object and element when source container
8008         is locked.
8009         (Copy): Likewise.
8010         (Query_Element): Likewise.
8011         (Update_Element): Likewise.
8012         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
8013         to get reference for empty holder.
8014         (Reference): Likewise.
8016 2014-07-16  Thomas Quinot  <quinot@adacore.com>
8018         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
8019         from Process_Transient_Oject.
8020         * exp_ch4.ads: Ditto.
8021         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
8022         declaration as an action on the topmost enclosing expression,
8023         not on a possibly conditional subexpreession.
8025 2014-07-16  Vadim Godunko  <godunko@adacore.com>
8027         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
8028         Fix parameter mode of Update_Element.
8030 2014-07-16  Robert Dewar  <dewar@adacore.com>
8032         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
8033         reformatting.
8035 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8037         * a-cohase.ads: Type Iterator must be controlled, so that the
8038         tampering bit is properly set through an iteration.
8039         * a-cohase.adb: Add Finalize operation for type Iterator.
8041 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8043         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
8044         tampering checks.
8046 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
8048         * a-coinho-shared.adb: Fix spurious accessibility check.
8050 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
8052         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
8054 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8056         PR ada/61505
8057         * gnat_rm.texi: Fix errors with makeinfo 5.1.
8059 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
8061         PR ada/61505
8062         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
8064 2014-06-13  Yannick Moy  <moy@adacore.com>
8066         * exp_attr.adb: Fix typo in comment.
8067         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
8068         checking in GNATprove_Mode.
8070 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8072         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
8074 2014-06-13  Robert Dewar  <dewar@adacore.com>
8076         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
8077         reformatting.
8079 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8081         * sem_prag.adb (Analyze_Pragma): Add local
8082         variable Missing_Parentheses. Emit an error when a state
8083         declaration with options appears without parentheses. Add a
8084         guard to prevent a bogus error when a state declaration may be
8085         interpreted as an option if a previous declaration with options
8086         was not parenthesized.
8088 2014-06-13  Robert Dewar  <dewar@adacore.com>
8090         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
8091         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
8092         * checks.ads (Alignment_Warnings_Record): New type.
8093         (Alignment_Warnings): New table
8094         (Validate_Alignment_Check_Warnings): New procedure.
8095         * errout.adb (Delete_Warning_And_Continuations): New procedure
8096         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
8097         Warnings_Treated_As_Errors (Finalize): Minor reformatting
8098         * errout.ads (Warning_Msg): New variable
8099         (Delete_Warning_And_Continuations): New procedure
8100         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
8101         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
8103 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8105         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
8107 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8109         * errout.adb (SPARK_Msg_N): New routine.
8110         (SPARK_Msg_NE): New routine.
8111         * errout.ads Add a section on SPARK-related error routines.
8112         (SPARK_Msg_N): New routine.
8113         (SPARK_Msg_NE): New routine.
8114         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
8115         pragma Abstract_State is always inserted after SPARK_Mode.
8116         (Insert_After_SPARK_Mode): New routine.
8117         * sem_prag.adb (Analyze_Abstract_State,
8118         Analyze_Constituent, Analyze_External_Property,
8119         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
8120         Analyze_Global_List, Analyze_Initialization_Item,
8121         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
8122         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
8123         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
8124         Analyze_Refined_Global_In_Decl_Part,
8125         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
8126         Check_Aspect_Specification_Order, Check_Constituent_Usage,
8127         Check_Declaration_Order, Check_Dependency_Clause,
8128         Check_Duplicate_Mode, Check_Duplicate_Option,
8129         Check_Duplicate_Property, Check_External_Properties,
8130         Check_External_Property, Check_Function_Return,
8131         Check_Matching_Constituent, Check_Matching_State,
8132         Check_Mode_Restriction_In_Enclosing_Context,
8133         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
8134         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
8135         Has_Extra_Parentheses, Inconsistent_Mode_Error,
8136         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
8137         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
8138         Report_Unrefined_States, Report_Unused_Constituents,
8139         Report_Unused_States, Role_Error, Usage_Error):
8140         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
8141         to report semantic errors only when SPARK_Mode is on.
8142         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
8143         pragma Depends explicitly, this is now done by the analysis.
8144         (Analyze_Global_In_Decl_List): Do not check the syntax of
8145         pragma Global explicitly, this is now done by the analysis.
8146         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
8147         pragma Initializes explicitly, this is now done by the analysis.
8148         (Analyze_Part_Of): Do not check the syntax of the encapsulating
8149         state, this is now done by the analysis.
8150         (Analyze_Pragma): Do
8151         not check the syntax of a state declaration, this is now done
8152         by the analysis.
8153         (Analyze_Refined_Depends_In_Decl_Part): Do not
8154         check the syntax of pragma Refined_Depends explicitly, this is now
8155         done by the analysis.
8156         (Analyze_Refined_Global_In_Decl_Part): Do
8157         not check the syntax of pragma Refined_Global explicitly, this is
8158         now done by the analysis.
8159         (Analyze_Refined_State_In_Decl_Part):
8160         Do not check the syntax of pragma Refined_State explicitly, this
8161         is now done by the analysis.
8162         (Check_Dependence_List_Syntax): Removed.
8163         (Check_Global_List_Syntax): Removed.
8164         (Check_Initialization_List_Syntax): Removed.
8165         (Check_Item_Syntax): Removed.
8166         (Check_Missing_Part_Of): Do not consider items from an instance.
8167         (Check_Refinement_List_Syntax): Removed.
8168         (Check_State_Declaration_Syntax): Removed.
8169         (Collect_Global_List): Do not raise Program_Error when the input is
8170         malformed.
8171         (Process_Global_List): Do not raise Program_Error when the input
8172         is malformed.
8173         * sem_ch13.adb: Minor reformatting.
8175 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8177         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
8178         that is an interface definition with an interface list.
8179         (Process_Full_View): Move error message on missmatched interfaces
8180         between views to the declaration of full view, for clarity.
8181         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
8182         for clarity.
8184 2014-06-13  Robert Dewar  <dewar@adacore.com>
8186         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
8187         reason to Overflow.
8189 2014-06-13  Robert Dewar  <dewar@adacore.com>
8191         * makeutl.adb: Minor reformatting.
8193 2014-06-13  Gail Schenker  <schenker@adacore.com>
8195         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
8196         associated flag (d.z), no longer needed.
8198 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8200         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
8201         Export aspects, do not check whether a corresponding Convention
8202         aspect has been specified. Convention is optional in Ada2012,
8203         and defaults to Convention_Ada.
8205 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
8207         * checks.adb (Apply_Address_Clause_Check): Only issue the new
8208         warning if the propagation warning is issued.
8210 2014-06-13  Thomas Quinot  <quinot@adacore.com>
8212         * exp_ch4.adb: Minor reformatting.
8214 2014-06-13  Robert Dewar  <dewar@adacore.com>
8216         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
8217         Handle float range check case (Expand_N_Attribute_Reference,
8218         case Succ): Handle float range check case.
8219         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
8220         range check case.
8222 2014-06-13  Vincent Celier  <celier@adacore.com>
8224         * makeutl.ads (Compute_Builder_Switches): Change name of
8225         parameter Root_Environment to Env.
8226         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
8227         Env parameter of procedure Get_Or_Create_Configuration_File.
8228         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
8229         of new parameter Env.
8230         * prj-conf.ads (Locate_Runtime): New parameter Env of type
8231         Prj.Tree.Environment.
8233 2014-06-13  Robert Dewar  <dewar@adacore.com>
8235         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
8237 2014-06-13  Robert Dewar  <dewar@adacore.com>
8239         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
8240         reformatting.
8241         * sem_attr.adb: Minor code reformatting and simplification.
8242         * checks.adb: Fix minor typo.
8244 2014-06-13  Emmanuel Briot  <briot@adacore.com>
8246         * g-comlin.adb (Get_Argument): fix expansion
8247         of command line arguments (e.g. "*.adb") when using a custom
8248         parser. The parser was not passed to the recursive call, and
8249         thus we were trying to do the expansion on the default command
8250         line parser.
8252 2014-06-13  Thomas Quinot  <quinot@adacore.com>
8254         * exp_ch9.adb: Minor reformatting.
8256 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8258         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
8259         To determine whether the attribute should be expanded, examine
8260         whether the enclosing postcondition pragma is to be checked,
8261         rather than using the internal flag Assertions_Enabled.
8263 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
8265         * gnat_rm.texi: Minor fixes.
8266         * gnat_ugn.texi: Added a missing "@itemize".
8268 2014-06-13  Robert Dewar  <dewar@adacore.com>
8270         * debug.adb: Remove -gnatd.1 flag documentation.
8271         * layout.adb (Layout_Type): Remove special handling of size
8272         for anonymous access type.
8273         * sem_ch3.adb (Replace_Type): Remove special handling of size
8274         for anonymous access type.
8276 2014-06-13  Robert Dewar  <dewar@adacore.com>
8278         * debug.adb: Document debug flag -gnatd.1.
8279         * layout.adb (Layout_Type): Size change for anonymous access
8280         types under -gnatd.1.
8281         * sem_ch3.adb (Replace_Type): Size change for anonymous access
8282         types under -gnatd.1.
8284 2014-06-13  Robert Dewar  <dewar@adacore.com>
8286         * layout.adb (Layout_Type): Anonymous access types designating
8287         unconstrained arrays are always thin pointers.
8288         * sem_ch3.adb (Replace_Type): Anonymous access types designating
8289         unconstrained arrays are always thin pointers.
8291 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8293         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
8294         to resolve the prefix of an attribute that is an entity name
8295         and may be a parameterless call.  Minor code reorganization.
8297 2014-06-13  Robert Dewar  <dewar@adacore.com>
8299         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
8300         Removed.
8301         * opt.ads (Compiler_Unit): New flag.
8302         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
8303         for null statement sequence (not allowed in compiler unit).
8304         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
8305         parsing.
8306         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
8307         calling sequence.
8308         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
8309         Check_Compiler_Unit.
8310         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
8311         Check_Compiler_Unit (this construct is not allowed in compiler
8312         units).
8313         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
8314         Set Opt.Compiler_Unit.
8316 2014-06-13  Geert Bosch  <bosch@adacore.com>
8318         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
8319         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
8320         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
8322 2014-06-13  Robert Dewar  <dewar@adacore.com>
8324         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
8326 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8328         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
8329         types in SPARK as it is poorly placed and poorly formulated. The
8330         check was flagging ALL volatile entities as illegal in SPARK.
8331         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
8332         types as illegal in SPARK.
8334 2014-06-13  Robert Dewar  <dewar@adacore.com>
8336         * sem_cat.adb: Minor reformatting.
8338 2014-06-13  Yannick Moy  <moy@adacore.com>
8340         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
8342 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
8344         * gnat_rm.texi: Add detail on SPARK_05 restriction.
8346 2014-06-13  Bob Duff  <duff@adacore.com>
8348         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
8349         Add assertions requiring the secondary stack to be initialized.
8350         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
8351         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
8352         secondary stack is initialized before calling Init_Tasking_Soft_Links,
8353         by adding pragmas Elaborate_Body.
8355 2014-06-13  Thomas Quinot  <quinot@adacore.com>
8357         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
8358         kludge disabling new legality check.
8360 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8362         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
8363         volatile types.
8364         (Freeze_Type): Volatile types are now illegal in SPARK.
8366 2014-06-13  Robert Dewar  <dewar@adacore.com>
8368         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
8369         * gnat_rm.texi: Document aspect Thread_Local_Storage.
8371 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8373         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
8374         value is a temporary that renames an aggregate is legal in a
8375         preelaborated unit. Illegalities, if any will be detected in
8376         the aggregate components.
8378 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
8380         * einfo.ads: Minor reformatting an comment expansion.
8382 2014-06-13  Robert Dewar  <dewar@adacore.com>
8384         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
8385         Tbuild.
8386         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
8387         Back_End.
8388         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
8389         * sem_warn.adb: Minor reformatting.
8391 2014-06-13  Doug Rupp  <rupp@adacore.com>
8393         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
8394         files with rfm=udf.
8396 2014-06-13  Yannick Moy  <moy@adacore.com>
8398         * sem_warn.adb (Check_Unset_References): Take
8399         case of Refined_Post into account in Within_Postcondition check.
8401 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
8403         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
8404         SPARK.
8406 2014-06-13  Yannick Moy  <moy@adacore.com>
8408         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
8409         Aspect_Export): Consider that variables may be set outside the program.
8411 2014-06-13  Robert Dewar  <dewar@adacore.com>
8413         * back_end.adb (Make_Id): New function.
8414         (Make_SC): New function.
8415         (Set_RND): New procedure.
8416         * back_end.ads (Make_Id): New function.
8417         (Make_SC): New function.
8418         (Set_RND): New procedure.
8419         * einfo.ads: Minor comment updates.
8420         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
8421         * gnat1drv.adb (Gnat1drv): New calling sequence for
8422         Get_Target_Parameters.
8423         (Gnat1drv): Move Atree.Initialize here from Frontend.
8424         * targparm.adb (Get_Target_Parameters): New calling
8425         sequence (Get_Target_Parameters): Handle pragma Restriction
8426         (No_Dependence,..)
8427         * targparm.ads (Get_Target_Parameters): New calling sequence.
8429 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
8431         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
8432         loop if the pragma does not come from source, so that an implicit
8433         pragma Import only applies to the first declaration, avoiding
8434         possible conflicts with earlier explicit and implicit declarations
8435         due to multiple Provide_Shift_Operators pragmas.
8436         (Set_Imported): Remove previous fix that bypassed pragma duplication
8437         error.
8438         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
8439         of Provide_Shift_Operators.
8441 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
8443         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
8444         string pointer directly to set_decl_section_name.
8446 2014-06-11  Robert Dewar  <dewar@adacore.com>
8448         * sem_ch13.adb: Minor reformatting.
8450 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8452         * sem_prag.adb (Check_Clause_Syntax): Add new
8453         local variable Outputs. Account for the case where multiple
8454         output items appear as an aggregate.
8456 2014-06-11  Robert Dewar  <dewar@adacore.com>
8458         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
8459         with ?j? not ??.
8461 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8463         * einfo.ads: Minor reformatting.
8465 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8467         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
8468         new variable First_Node. Update the position after all insertions have
8469         taken place to First_Node.
8471 2014-06-11  Robert Dewar  <dewar@adacore.com>
8473         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
8474         * layout.adb (Layout_Type): Remove test of -gnatd.1.
8476 2014-06-11  Robert Dewar  <dewar@adacore.com>
8478         * sem_ch13.adb: Minor reformatting.
8480 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8482         * sem_prag.adb (Check_Clause_Syntax): Add new
8483         local variable Outputs. Account for the case where multiple
8484         output items appear as an aggregate.
8486 2014-06-11  Robert Dewar  <dewar@adacore.com>
8488         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
8489         with ?j? not ??.
8491 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8493         * einfo.ads: Minor reformatting.
8495 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8497         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
8498         new variable First_Node. Update the position after all insertions have
8499         taken place to First_Node.
8501 2014-06-11  Robert Dewar  <dewar@adacore.com>
8503         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
8504         * layout.adb (Layout_Type): Remove test of -gnatd.1.
8506 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8508         * freeze.ads: Minor reformatting.
8509         * checks.adb (Determine_Range): Do not attempt to determine
8510         the range of a deferred constant whose full view has not been
8511         seen yet.
8512         * sem_res.adb (Resolve): Remove undesirable guard against
8513         resolving expressions from expression functions.
8515 2014-06-11  Robert Dewar  <dewar@adacore.com>
8517         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
8518         access types.
8519         * layout.adb (Layout_Type): Make anonymous access types for
8520         subprogram formal types and return types always thin. For now
8521         only enabled if -gnatd.1 set.
8523 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8525         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
8526         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
8527         subprogram must be a null procedure.
8529 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8531         * sem_prag.adb (Analyze_Input_Item): Allow formal
8532         parameters to appear as input_items in an initialization_list
8533         of pragma Initializes. Encapsulation now applies to states and
8534         variables only (as it should). Add RM references to key errors.
8535         * sem_prag.adb (Set_Imported): Suppress errors
8536         about preceding Imports when the pragma does not come from source,
8537         which can happen through use of pragma Provide_Shift_Operators.
8539 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8541         * sem_ch3.adb: Minor reformatting.
8542         * einfo.ads (Full_View): Minor comment update.
8544 2014-06-11  Robert Dewar  <dewar@adacore.com>
8546         * einfo.adb (Is_Independent): New flag.
8547         * einfo.ads (Is_Independent): New flag.
8548         (Has_Independent_Components): Clean up and fix comments.
8549         * sem_prag.adb (Fix_Error): Deal with changing argument
8550         [of] to entity [for].
8551         (Analyze_Pragma, case Independent): Set Is_Independent flag
8552         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
8553         in all components of specified record.
8555 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8557         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
8558         Set proper Etype on bounds of dummy type created for analysis
8559         of the generic.
8561 2014-06-11  Robert Dewar  <dewar@adacore.com>
8563         * debug.adb: Minor comment fix (add missing section of dot
8564         numeric flags).
8566 2014-06-11  Robert Dewar  <dewar@adacore.com>
8568         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
8569         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
8570         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
8571         * errout.adb (Output_Messages): Avoid duplicate output for
8572         library level instance.
8573         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
8574         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
8575         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
8576         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
8577         accomodate largest modulus value.
8578         * gnat_ugn.texi: Minor updates.
8580 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8582         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
8583         load body of generic package or its parent, if body is optional
8584         and the unit does not require a body.
8586 2014-06-11  Robert Dewar  <dewar@adacore.com>
8588         * gnat_rm.texi: Document System.Unsigned_Types.
8589         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
8590         * s-unstyp.ads: Update comments (this is now user available unit).
8592 2014-06-11  Robert Dewar  <dewar@adacore.com>
8594         * make.adb, sem_res.adb: Minor reformatting.
8596 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8598         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
8599         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
8600         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
8601         Preelaborate_05 to just Preelaborate in runtime units, and similarly
8602         change Pure_05 to just Pure.
8604 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8606         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
8607         analysis if error has been posted on subprogram body.
8609 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8611         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
8612         rule given in RM 13.1 (8/1) for operational attributes to stream
8613         attributes: the attribute must apply to a first subtype. Fixes
8614         missing errors in ACATS test bdd2004.
8616 2014-06-11  Robert Dewar  <dewar@adacore.com>
8618         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
8619         record type if restriction No_Implicit_Conditionals is active.
8620         (Expand_N_Object_Declaration): Don't allow default initialization
8621         for variant record type if restriction No_Implicit_Condition is active.
8622         (Build_Variant_Record_Equality): Don't build for variant
8623         record type if restriction No_Implicit_Conditionals is active.
8624         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
8625         No_Implicit_Conditionals.
8626         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
8628 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
8630         * i-cstrin.ads: Update comments.
8632 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8634         * sem_res.adb (Resolve_Selected_Component): Handle properly a
8635         selected component whose prefix is overloaded, when none of the
8636         interpretations matches the expected type.
8638 2014-06-11  Bob Duff  <duff@adacore.com>
8640         * make.adb (Wait_For_Available_Slot): Give a more
8641         informative error message; if the ALI file is not found, print
8642         the full path of what it's looking for.
8644 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
8646         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
8647         option to specify the result file encoding.
8649 2014-06-11  Robert Dewar  <dewar@adacore.com>
8651         * errout.ads, sem_ch12.adb: Minor reformatting.
8652         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
8653         * lib-xref.adb: Minor reformatting.
8654         * restrict.adb: Minor code reorganization (put routines in
8655         alpha order).
8657 2014-06-11  Yannick Moy  <moy@adacore.com>
8659         * einfo.ads: Minor typo in comment
8661 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8663         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
8664         formal private types and private type extensions, to indicate
8665         variable in a generic unit whose uninitialized use suggest that
8666         actual type should be fully initialized.
8667         Needs_Initialized_Actual:  removed, functionaity replaced by
8668         the above.
8669         * lib-xref.adb (Generate_Reference): Generate a reference for
8670         variables of a formal type when the unit is not the main unit,
8671         to enable appropriate warnings in an instance.
8672         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
8673         of variable in a generic unit that suggests that actual type
8674         should be full initialized.
8675         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
8676         and do not emot warning, which now only appears in an instance.
8678 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
8680         * gnat_ugn.texi: Fix minor typo.
8682 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8684         * sem_ch3.adb Add with and use clause for Sem_Ch10.
8685         (Analyze_Declarations): Code reformatting. Analyze the contract
8686         of a subprogram body stub at the end of the declarative region.
8687         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
8688         now a variable. Do not process the body if its contract is not
8689         available. Account for subprogram body stubs when extracting
8690         the corresponding spec.
8691         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
8692         on usage.
8693         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
8694         New routine.
8695         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
8696         Account for subprogram body stubs when extracting the
8697         corresponding spec.
8698         (Analyze_Global_In_Decl_List):
8699         Account for subprogram body stubs when extracting the
8700         corresponding spec.
8701         (Analyze_Refined_Depends_In_Decl_Part):
8702         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
8703         of the related body. Spec_Is now a variable. Account for
8704         subprogram body stubs when extracting the corresponding spec.
8705         (Analyze_Refined_Global_In_Decl_Part): Use
8706         Find_Related_Subprogram_Or_Body to retrieve the declaration
8707         of the related body. Spec_Is now a variable. Account for
8708         subprogram body stubs when extracting the corresponding spec.
8709         (Collect_Subprogram_Inputs_Output): Account for subprogram body
8710         stubs when extracting the corresponding spec.
8712 2014-06-11  Vincent Celier  <celier@adacore.com>
8714         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
8715         -lgnarl or -lgnat.
8717 2014-06-11  Robert Dewar  <dewar@adacore.com>
8719         * debug.adb: Add debug flag -gnatd.q.
8720         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
8721         -gnatd.q set.
8722         * styleg.adb (Check_Xtra_Parens): Message should be a style
8723         message.
8724         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
8725         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
8726         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
8727         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
8729 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
8731         * gnat_rm.texi: Revised chapter on Implementation Defined
8732         Characteristics.
8734 2014-06-11  Geert Bosch  <bosch@adacore.com>
8736         * s-exctab.adb: avoid race conditions in exception registration.
8738 2014-06-11  Robert Dewar  <dewar@adacore.com>
8740         * errout.adb (Warn_Insertion): New function.
8741         (Error_Msg): Use Warn_Insertion and Prescan_Message.
8742         (Error_Msg_Internal): Set Info field of error object.
8743         (Error_Msg_NEL): Use Prescan_Message.
8744         (Set_Msg_Text): Don't store info: at start of message.
8745         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
8746         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
8747         * errout.ads: Document new ?$? and >$> insertion sequences
8748         Document use of "(style)" and "info: "
8749         * erroutc.adb (dmsg): Print several missing fields
8750         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
8751         Deal with new tagging of info messages
8752         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
8753         Add field Info (Prescan_Message): New procedure, this procedure
8754         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
8755         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
8756         sem_elab.adb: Follow new rules for info message (info belongs
8757         only at the start of a message, and only in the first message,
8758         not in any of the continuations).
8759         * gnat_ugn.texi: Document full set of warning tags.
8761 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
8763         * sem_util.adb: Minor typo fix.
8765 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8767         * sem_warn.adb (Check_References): Do not emit spurious warnings
8768         on uninitialzed variable of a formal private type if variable
8769         is not read.
8771 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
8773         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
8774         set_decl_section_name accessor.
8776 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
8778         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
8779         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
8780         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
8782 2014-05-21  Robert Dewar  <dewar@adacore.com>
8784         * layout.adb: Minor reformatting.
8785         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
8786         dummy procedure ip.
8788 2014-05-21  Robert Dewar  <dewar@adacore.com>
8790         * restrict.ads (Implementation_Restriction): Add entry for
8791         No_Fixed_IO.
8792         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
8793         Ada.[Wide_[Wide_]Text_IO.
8794         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
8795         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
8796         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
8797         Wide_Wide_Value if restriction No_Fixed_IO is set.
8798         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
8800 2014-05-21  Robert Dewar  <dewar@adacore.com>
8802         * gnatcmd.adb: Minor error msg changes (no upper case letter
8803         at start).
8804         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
8805         reformatting.
8807 2014-05-21  Robert Dewar  <dewar@adacore.com>
8809         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
8810         via generic formals.
8811         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
8812         -gnatd.G is set.
8814 2014-05-21  Thomas Quinot  <quinot@adacore.com>
8816         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
8817         more accurately describe that this subprogram needs to come into
8818         play also in cases where no byte swapping is involved, because
8819         it also takes care of some required shifts (left-justification
8820         of values).
8822 2014-05-21  Thomas Quinot  <quinot@adacore.com>
8824         * freeze.adb (Check_Component_Storage_Order): Indicate whether
8825         a Scalar_Storage_Order attribute definition is present for the
8826         component's type.
8827         (Freeze_Record_Type): Suppress junk warnings
8828         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
8829         definitions.
8831 2014-05-21  Robert Dewar  <dewar@adacore.com>
8833         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
8834         to Kill_Elaboration_Checks.
8836 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
8838         * layout.adb (Assoc_Add): Suppress the optimization of the (E
8839         - C1) + C2 case, when the expression type is unsigned and C1 <
8840         C2, to avoid creating a negative literal when folding.
8842 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
8844         * freeze.adb (Freeze_Record_Type): Update the use of
8845         Is_SPARK_Volatile.
8846         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
8847         Is_SPARK_Volatile.
8848         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
8849         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
8850         of Is_SPARK_Volatile.
8851         (Analyze_Loop_Parameter_Specification):
8852         Update the use of Is_SPARK_Volatile.
8853         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
8854         formal parameter when its type is volatile.
8855         * sem_prag.adb (Analyze_Global_Item): Update the use of
8856         Is_SPARK_Volatile.
8857         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
8858         determines whether an entity is a volatile source SPARK object.
8859         * sem_util.adb (Has_Enabled_Property): Accout for external
8860         properties being set on objects other than abstract states
8861         and variables. An example would be a formal parameter.
8862         (Is_SPARK_Volatile): New routine.
8863         (Is_SPARK_Volatile_Object):
8864         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
8865         when checking entities and/or types.
8866         * sem_util.ads (Is_SPARK_Volatile): New routine.
8868 2014-05-21  Robert Dewar  <dewar@adacore.com>
8870         * sem_warn.adb: Minor fix to warning messages (use ?? instead
8871         of ?).
8873 2014-05-21  Vincent Celier  <celier@adacore.com>
8875         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
8876         switch --version and --help.
8878 2014-05-21  Robert Dewar  <dewar@adacore.com>
8880         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
8882 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8884         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
8885         iterator variable when the domain of iteration is a formal
8886         container and this is an element iterator.
8888 2014-05-21  Bob Duff  <duff@adacore.com>
8890         * sem_ch12.adb: Minor reformatting.
8892 2014-05-21  Robert Dewar  <dewar@adacore.com>
8894         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
8896 2014-05-21  Robert Dewar  <dewar@adacore.com>
8898         * sem_elab.adb: Minor reformatting.
8899         * s-taprop.ads: Minor comment fix.
8900         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
8901         Kill_Elaboration_Checks.
8902         * errout.adb, erroutc.adb: Minor reformatting.
8904 2014-05-21  Thomas Quinot  <quinot@adacore.com>
8906         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
8907         component. No byte swapping occurs, but this procedure also takes
8908         care of appropriately justifying the argument.
8910 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
8912         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
8913         New routine.
8914         (Analyze_Subprogram_Body_Helper): Move the
8915         analysis of aspect specifications and the processing of the
8916         subprogram body contract after inlining has taken place.
8917         (Diagnose_Misplaced_Aspect_Specifications): Removed.
8919 2014-05-21  Javier Miranda  <miranda@adacore.com>
8921         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
8923 2014-05-21  Robert Dewar  <dewar@adacore.com>
8925         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
8926         continuations any more.
8928 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8930         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
8931         present in formal_Private_Definitions and on private extension
8932         declarations of a formal derived type. Set when the use of the
8933         formal type in a generic suggests that the actual should be a
8934         fully initialized type.
8935         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
8936         to indicate that an entity of a generic type has default
8937         initialization, and that the corresponing actual type in any
8938         subsequent instantiation should be fully initialized.
8939         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
8940         to emit a warning if the actual for a generic type on which
8941         Needs_Initialized_Actual is set is not a fully initialized type.
8943 2014-05-21  Robert Dewar  <dewar@adacore.com>
8945         * sem_elab.adb, prj-dect.adb: Minor reformatting.
8947 2014-05-21  Robert Dewar  <dewar@adacore.com>
8949         * erroutc.ads: Minor comment addition.
8951 2014-05-21  Robert Dewar  <dewar@adacore.com>
8953         * errout.ads: Add documentation for use of >*> tag.
8954         * restrict.adb: Make sure we use >*> tag for restriction warnings.
8956 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
8958         * debug.adb: Add case of illegal overriding_indicator for a
8959         protected subprogram body to description of -gnatd.E switch.
8960         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
8961         for cases of giving overriding_indicators on protected subprogram
8962         bodies, but change this to a warning if -gnatd.E is enabled. No
8963         longer give a style warning about missing indicators on protected
8964         subprogram bodies.
8966 2014-05-21  Robert Dewar  <dewar@adacore.com>
8968         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
8969         sem_elab.ads: Minor reformatting.
8970         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
8971         parameter optional.
8973 2014-05-21  Pascal Obry  <obry@adacore.com>
8975         * prj-dect.adb: Allow package Install in aggregate project.
8977 2014-05-21  Robert Dewar  <dewar@adacore.com>
8979         * sem_ch13.adb (Analyze_Aspect_Specifications):
8980         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
8981         * sem_prag.adb: Minor comment improvements.
8983 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8985         * sem_ch12.adb (Install_Body): When checking whether freezing of
8986         instantiation must be delayed, verify that the common enclosing
8987         subprogram to generic and instance is in fact an overloadable
8988         entity.
8990 2014-05-21  Vincent Celier  <celier@adacore.com>
8992         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
8993         mains with the same name and fail if there is more than one.
8994         * prj.ads, prj.adb (Find_All_Sources): New function
8996 2014-05-21  Robert Dewar  <dewar@adacore.com>
8998         * sem_ch13.adb: Minor reformatting.
8999         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
9000         * sem_prag.adb: Minor error message improvement.
9002 2014-05-21  Yannick Moy  <moy@adacore.com>
9004         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
9005         (Enclosing_Subprogram_Or_Package): Only return a library-level
9006         package.
9008 2014-05-21  Javier Miranda  <miranda@adacore.com>
9010         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
9011         to the full view of the parent type when processing a derived type
9012         which is the full view of a private type not defined in a generic
9013         unit which is derived from a private type with discriminants
9014         whose full view is a non-tagged record type.
9016 2014-05-21  Javier Miranda  <miranda@adacore.com>
9018         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
9019         Complete previous patch.
9021 2014-05-21  Thomas Quinot  <quinot@adacore.com>
9023         PR ada/9535
9024         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
9025         Provide a behaviour more consistent with underlying datagram
9026         socket: do not attempt to loop over Send_Socket/Receive_Socket
9027         iterating along the buffer.
9029 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
9031         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
9032         or a tagged type is not labelled as volatile. Ensure that a
9033         non-volatile type has no volatile components.
9034         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
9035         Obj_Typ. Code reformatting.  Ensure that a discriminated or
9036         tagged object is not labelled as volatile.
9037         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
9038         pragma Volatile applies to a full type declaration or an object
9039         declaration when SPARK mode is on.
9041 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
9043         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
9044         providing options needed for compiling the argument source for
9045         the situation when a project file can be used as a tool parameter.
9047 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
9049         * gnat_rm.texi: Minor typo fix.
9051 2014-05-21  Robert Dewar  <dewar@adacore.com>
9053         * stand.adb (Tree_Read): Read missing entities.
9054         (Tree_Write): Write missing entities.
9056 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
9058         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
9059         section in gnatmetric chapter.
9061 2014-05-21  Robert Dewar  <dewar@adacore.com>
9063         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
9064         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
9065         post-call copy write back (see detailed comment in code).
9066         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
9067         Exp_Ch6.
9068         * tbuild.ads: Minor reformatting.
9070 2014-05-21  Robert Dewar  <dewar@adacore.com>
9072         * stand.ads: Add warning about adding new entities and
9073         Tree_Read/Tree_Write.
9075 2014-05-21  Robert Dewar  <dewar@adacore.com>
9077         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
9078         references to restricted entities within the units in which they
9079         are declared.
9081 2014-05-21  Robert Dewar  <dewar@adacore.com>
9083         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
9084         simplify the needed test, and also deal with failure to catch
9085         situations with non-standard names.
9086         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
9087         (Source_File_Is_Subunit): Removed, no longer used.
9089 2014-05-21  Javier Miranda  <miranda@adacore.com>
9091         * exp_ch4.adb
9092         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
9093         renaming of an access to interface object there is no need to
9094         generate extra code to reference the tag.
9096 2014-05-21  Robert Dewar  <dewar@adacore.com>
9098         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
9099         Warnings (Off, string).
9101 2014-05-21  Robert Dewar  <dewar@adacore.com>
9103         * osint.adb: Fix three error messages to say invalid instead
9104         of erroneous.
9105         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
9106         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
9107         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
9109 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9111         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
9112         sem_ch9.ads: Move discriminant manipulation routines for analysis of
9113         aspect specifications from sem_ch9 to sem_ch13, where they belong.
9115 2014-05-21  Robert Dewar  <dewar@adacore.com>
9117         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
9118         Clearly document -gnatyg (GNAT style switches).
9119         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
9120         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
9121         available for VMS after all.
9122         * warnsw.adb: Reorganize to eliminate duplicated code
9123         (Restore_Warnings): Add a couple of missing entries
9124         (Save_Warnings): Add a couple of missing entries.
9125         * warnsw.ads: Add missing entries to Warning_Record (not clear
9126         what the impact is).
9128 2014-05-21  Robert Dewar  <dewar@adacore.com>
9130         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
9131         warning) case.
9132         * errout.ads: Document ?*? (restriction warning) insertion.
9133         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
9134         warning) case.
9135         * erroutc.ads: Document use of * for restriction warning tag.
9136         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
9138 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9140         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
9141         make discriminants immediately visible when analyzing an aspect
9142         of a subtype declaration.
9143         (Uninstall_Discriminants): Do not apply to the entity in a
9144         subtype declaration.
9146 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9148         * sem_util.adb: Code clean up.
9150 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9152         * gnat_ugn.texi: Document -Werror.
9154 2014-05-21  Bob Duff  <duff@adacore.com>
9156         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
9157         This was returning False if the Object is a constant view. Fix
9158         it to return True in that case, because it might be a view of
9159         a variable.
9160         (Has_Discriminant_Dependent_Constraint): Fix latent
9161         bug; this function was crashing when passed a discriminant.
9163 2014-05-21  Robert Dewar  <dewar@adacore.com>
9165         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
9166         * s-arit64.adb: Minor code reorganization.
9167         * sem_prag.adb: Minor comment fix (remove erroneous use of the
9168         term erroneous).
9170 2014-05-21  Robert Dewar  <dewar@adacore.com>
9172         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
9173         computing new table size.
9175 2014-05-21  Robert Dewar  <dewar@adacore.com>
9177         * einfo.ads: Minor reformatting.
9178         * ceinfo.adb: Deal with slight format change of einfo.ads.
9180 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9182         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
9183         implementation of the SPARK 2014 rule concerning private child
9184         units (LRM 7.2.6).
9186 2014-05-21  Vincent Celier  <celier@adacore.com>
9188         * makeusg.adb: Add switch -d to usage.
9190 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
9192         * sem_util.adb (Find_Actual): If an actual that is the prefix
9193         of an enclosing prefixed call has been rewritten, use Nkind
9194         and Sloc to identify the corresponding formal, when handling
9195         deferred references.
9197 2014-05-21  Robert Dewar  <dewar@adacore.com>
9199         * debug.adb: Document -gnatd.z switch.
9200         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
9202 2014-05-21  Robert Dewar  <dewar@adacore.com>
9204         * einfo.ads (Can_Never_Be_Null): Minor comment update.
9205         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
9206         error message change.
9207         * s-arit64.adb ("abs"): New function. Use expression functions
9208         for the simple conversions and arithmetic.
9210 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9212         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
9213         set function_start_locus.
9215 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9217         * utils.c (gnat_write_global_declarations): Adjust the flags put on
9218         dummy_global.
9220 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9222         * gcc-interface/decl.c (change_qualified_type): New static function.
9223         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
9224         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
9225         <E_Array_Subtype>: Likewise.
9226         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
9227         (gnat_to_gnu_component_type): Likewise.
9228         (gnat_to_gnu_param): Likewise.
9230 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9232         * fe.h (Set_Present_Expr): Move around.
9233         (End_Location): New macro.
9234         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
9236 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9238         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
9239         lieu of more verbose construct.
9240         * gcc-interface/trans.c (Call_to_gnu): Likewise.
9241         (gnat_to_gnu): Likewise.  Remove obsolete code.
9243 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9245         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
9246         consider that regular packed arrays can never be superflat.
9248 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
9250         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
9251         annotation.
9252         * gcc-interface/decl.c (annotate_value): Adjust.
9253         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9254         (push_range_check_info): Likewise.
9255         (Loop_Statement_to_gnu): Likewise.
9256         (Subprogram_Body_to_gnu): Likewise.
9257         (Compilation_Unit_to_gnu): Likewise.
9258         (start_stmt_group): Likewise.
9259         * gcc-interface/utils.c (init_gnat_utils): Likewise.
9260         (gnat_pushlevel): Likewise.
9261         (maybe_pad_type): Likewise.
9263 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9265         * seh_init.c: Fix copyright year.
9267 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9269         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
9270         are defined.  Move include windows.h before system.h.
9271         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
9272         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
9274 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
9276         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
9277         to the appropriate type.
9278         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
9279         (pos_to_constructor): Likewise.
9281 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
9283         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
9285 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
9286             Mike Stump  <mikestump@comcast.net>
9287             Richard Sandiford  <rdsandiford@googlemail.com>
9289         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
9290         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
9291         (annotate_value): Use wide-int interfaces.
9292         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
9294 2014-04-28  Richard Henderson  <rth@redhat.com>
9296         * gcc-interface/Makefile.in: Support aarch64-linux.
9298 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9300         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
9301         add 'Suffix' parameter and adjust comment.
9302         (Get_External_Name_With_Suffix): Delete.
9303         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
9304         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
9305         'Suffix' parameter.
9306         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
9307         Call Get_External_Name instead of Get_External_Name_With_Suffix.
9308         (Get_Secondary_DT_External_Name): Likewise.
9309         * exp_cg.adb (Write_Call_Info): Likewise.
9310         * exp_disp.adb (Export_DT): Likewise.
9311         (Import_DT): Likewise.
9312         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
9313         parameter with False default.
9314         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
9315         * types.h (Fat_Pointer): Rename into...
9316         (String_Pointer): ...this.  Add comment on interfacing rules.
9317         * fe.h (Compiler_Abort): Adjust for above renaming.
9318         (Error_Msg_N): Likewise.
9319         (Error_Msg_NE): Likewise.
9320         (Get_External_Name): Likewise.  Add third parameter.
9321         (Get_External_Name_With_Suffix): Delete.
9322         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
9323         (create_concat_name): Adjust call to Get_External_Name, remove call to
9324         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
9325         * gcc-interface/trans.c (post_error): Likewise.
9326         (post_error_ne): Likewise.
9327         * gcc-interface/misc.c (internal_error_function): Likewise.
9329 2014-04-28  Richard Biener  <rguenther@suse.de>
9331         PR middle-end/60092
9332         * gcc-interface/utils.c: Define flag_isoc11.
9334 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
9336         * gnatvsn.ads (Library_Version): Bump to 4.10.
9338 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
9340         Revert
9341         2014-04-22  Richard Henderson  <rth@redhat.com>
9343         * gcc-interface/Makefile.in: Support aarch64-linux.
9345         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
9347         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
9348         (Error_Msg_N): Likewise.
9349         (Error_Msg_NE): Likewise.
9350         (Get_External_Name_With_Suffix): Likewise.
9351         * types.h (Fat_Pointer): Delete.
9352         (String_Pointer): New type.
9353         (DECLARE_STRING_POINTER): New macro.
9354         * gcc-interface/decl.c (create_concat_name): Adjust.
9355         * gcc-interface/trans.c (post_error): Likewise.
9356         (post_error_ne): Likewise.
9357         * gcc-interface/misc.c (internal_error_function): Likewise.
9359 2014-04-22  Richard Henderson  <rth@redhat.com>
9361         * gcc-interface/Makefile.in: Support aarch64-linux.
9363         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
9364         (__gnat_alternate_stack): Enable for all linux except ia64.
9366 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
9368         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
9369         (Error_Msg_N): Likewise.
9370         (Error_Msg_NE): Likewise.
9371         (Get_External_Name_With_Suffix): Likewise.
9372         * types.h (Fat_Pointer): Delete.
9373         (String_Pointer): New type.
9374         (DECLARE_STRING_POINTER): New macro.
9375         * gcc-interface/decl.c (create_concat_name): Adjust.
9376         * gcc-interface/trans.c (post_error): Likewise.
9377         (post_error_ne): Likewise.
9378         * gcc-interface/misc.c (internal_error_function): Likewise.
9380 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9381             Pierre-Marie de Rodat  <derodat@adacore.com>
9383         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
9384         scalar constant instead of a reference for renaming of scalar literal.
9385         Do not create a new object for constant renaming except for a function
9386         call.  Make sure a VAR_DECL is created for the renaming pointer.
9387         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
9388         (fold_constant_decl_in_expr): New function.
9389         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
9390         For a constant renaming, try to fold a constant DECL in the result.
9391         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
9392         (Identifier_to_gnu): Reference the renamed object of constant renaming
9393         pointers directly.
9394         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
9395         invalidate constant renaming pointers.
9397 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9399         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
9400         (build_vector_type_for_size): New function.
9401         (build_vector_type_for_array): Likewise.
9402         (unchecked_convert): Build an intermediate vector type to convert
9403         from a generic array type to a vector type.
9404         (handle_vector_size_attribute): Reimplement.
9405         (handle_vector_type_attribute): Likewise.
9407 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9409         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
9410         Is_OK_Static_Expression in lieu of Is_Static_Expression to
9411         detect valid arguments.
9413 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9415         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
9417 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
9419         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
9420         (components_to_record): Likewise.
9421         * gcc-interface/utils.c (make_aligning_type): Likewise.
9422         (maybe_pad_type): Likewise.
9423         (finish_record_type): Likewise.
9424         (rest_of_record_type_compilation): Likewise.
9426 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
9428         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
9429         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
9430         for Ivdep hint.
9431         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
9432         hint for Loop_Optimize.
9433         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
9434         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
9435         with new Ivdep hint.
9436         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
9437         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
9438         with new Ivdep hint.
9439         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
9441 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
9442             Robert Dewar  <dewar@adacore.com>
9444         * opt.ads (Suppress_Back_Annotation): Remove as unused.
9445         * fe.h (Back_Annotate_Rep_Info): Likewise.
9446         (Global_Discard_Names): Likewise.
9447         (List_Representation_Info): Declare.
9448         * types.h (Uint_Minus_1): Likewise.
9449         * repinfo.ads: Document back-annotation change.
9450         * gcc-interface/gigi.h (init_gnat_decl): Declare.
9451         (destroy_gnat_decl): Likewise.
9452         * gcc-interface/decl.c (annotate_value): Do not create the cache of
9453         annotated values here but...
9454         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
9455         in ASIS mode.
9456         (init_gnat_decl): ...here instead.  New function.
9457         (destroy_gnat_decl): Likewise.
9458         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
9459         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
9461 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
9463         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
9464         offset for the field, if any.
9466 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
9467             Svante Signell  <svante.signell@gmail.com>
9469         PR ada/54040
9470         PR ada/59346
9471         * s-osinte-x32.adb: New file.
9472         * s-linux.ads (Time): New section.
9473         * s-linux-alpha.ads (Time): Likewise.
9474         * s-linux-android.ads (Time: Likewise.
9475         * s-linux-hppa.ads (Time): Likewise.
9476         * s-linux-mipsel.ads (Time): Likewise.
9477         * s-linux-sparc.ads (Time): Likewise.
9478         * s-linux-x32.ads (Time): Likewise.
9479         * s-osprim-x32.ads (timespec): Adjust.
9480         (Clock): Likewise.
9481         (To_Timespec): Likewise.
9482         * s-osinte-linux.ads (Time): Define local subtypes for those defined
9483         in System.Linux.
9484         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
9485         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
9486         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
9487         * s-osinte-solaris-posix.ads (timespec): Likewise.
9488         * s-osinte-posix.adb (To_Timespec): Likewise.
9489         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
9491 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
9493         PR ada/60411
9494         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
9495         * s-linux-android.ads: New file.
9496         * s-intman-android.adb: Likewise.
9497         * s-osinte-android.ads: Adjust.
9498         * sigtramp-armdroid.c: Likewise.
9499         * sigtramp.h: Add Android support.
9501 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9503         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
9505 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9507         PR ada/60703
9508         * system-linux-alpha.ads: Adjust for Ada 2005.
9509         * system-linux-mips.ads: Likewise.
9510         * system-linux-mips64el.ads: Likewise.
9511         * system-linux-mipsel.ads: Likewise.
9512         * system-linux-s390.ads: Likewise.
9513         * system-linux-s390x.ads: Likewise.
9514         * system-linux-sparc.ads: Likewise.
9515         * system-linux-sparcv9.ads: Likewise.
9516         * system-rtems.ads: Likewise.
9517         * system-vxworks-arm.ads: Likewise.
9519 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
9521         PR ada/39172
9522         * gcc-interface/Makefile.in (target_cpu_default): Revert
9523         2013-10-11 change.
9525 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
9527         PR ada/51483
9528         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
9529         it to set the RM size.  Use directly 'size' for the Esize.
9530         (Create_Back_End_Float_Types): Adjust call to above.
9531         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
9532         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
9533         (Write_Target_Dependent_Values): Adjust comment.
9534         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
9535         deal with it.
9536         (Write_Target_Dependent_Values): Write the precision in lieu of size.
9537         (Initialization): Read the precision in lieu of size and compute the
9538         size from the precision and the alignment.
9539         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
9540         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
9541         types for vector modes, pass the size in addition to the precision.
9543 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
9545         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
9547 2014-03-07  Doug Rupp  <rupp@adacore.com>
9549         PR ada/60411
9550         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
9551         (Support_64_Bit_Divides): Removed, no longer used.
9552         (ZCX_By_Default): Enabled.
9554 2014-02-25  Doug Rupp  <rupp@adacore.com>
9556         * gcc-interface/Makefile.in (arm-linux):
9557         (EH_MECHANISM): Use ARM unwinder (-arm)
9558         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
9559         s-excmac-arm.ads.
9560         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
9561         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
9562         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
9563         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
9564         Add dependencies for sigtramp-armvxw.o.
9566 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9568         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
9570 2014-02-25  Robert Dewar  <dewar@adacore.com>
9572         * rtsfind.adb (Is_RTE): Protect against entity with no scope
9573         field (previously this call blew up on the Standard entity).
9574         * sem_attr.adb (Analyze_Attribute, case Access): Remove
9575         test for No_Abort_Statements, this is now handled in
9576         Set_Entity_With_Checks.
9577         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
9578         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
9579         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
9580         Set_Entity_With_Checks.
9581         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
9582         Add checks for No_Abort_Statements.
9584 2014-02-25  Robert Dewar  <dewar@adacore.com>
9586         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
9587         Check_Restriction is OK.
9589 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9591         * sem_ch3.adb (Process_Full_View): Better error message when
9592         the full view of  a private type without discriminants is an
9593         unconstrained type.
9594         * sem_ch7.adb (Uninstall_Declarations): Ditto.
9596 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9598         * sigtramp-armvxw.c: Also restore r0.
9600 2014-02-25  Robert Dewar  <dewar@adacore.com>
9602         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
9603         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
9604         set unconditionally.
9605         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
9606         any more (Output_Msg_Text): Rewritten with new convention on
9607         output of warnings that are treated as errors.
9608         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
9609         if Warn is False.
9610         * gnat_rm.texi: Updates to documentation on pragma
9611         Warning_As_Error.
9612         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
9613         set Warning_Doc_Switch.
9614         * lib-writ.ads: Add documentation note on ALI file generation
9615         for C.
9616         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
9617         (belongs in Sem).
9618         * sem_attr.adb (Resolve_Attribute, case Access):
9619         Abort_Task'Access violates the No_Abort_Statements restriction.
9620         * sem_res.adb (Resolve_Call): Check restriction
9621         No_Abort_Statements for call to Abort_Task or a renaming of it.
9623 2014-02-25  Robert Dewar  <dewar@adacore.com>
9625         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
9626         type name as index.
9627         * lib.ads: Minor reformatting.
9628         * einfo.ads: Minor reformatting.
9630 2014-02-25  Doug Rupp  <rupp@adacore.com>
9632         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
9633         use Short_Descriptor(S) as the argument passing mechanism.
9635 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9637         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
9639 2014-02-25  Robert Dewar  <dewar@adacore.com>
9641         * atree.ads (Warnings_Treated_As_Errors): New variable.
9642         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
9643         error object (Initialize): Initialize Warnings_As_Errors_Count
9644         (Write_Error_Summary): Include count of warnings treated as errors.
9645         * erroutc.adb (Warning_Treated_As_Error): New function.
9646         (Matches): Function moved to outer level of package.
9647         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
9648         (Warning_Treated_As_Error): New function.
9649         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
9650         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
9651         * opt.ads (Config_Switches_Type): Add entry for
9652         Warnings_As_Errors_Count.
9653         (Warnings_As_Errors_Count): New variable.
9654         (Warnings_As_Errors): New array.
9655         * par-prag.adb: Add dummy entry for Warning_As_Error.
9656         * sem_prag.adb (Analyze_Pragma): Implement new pragma
9657         Warning_As_Error.
9658         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
9660 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9662         * sigtramp.h: Fix minor inaccuracy.
9664 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
9666         * gnat_ugn.texi: Added description of kill command.
9668 2014-02-25  Robert Dewar  <dewar@adacore.com>
9670         * gnat_rm.texi (Address_Clauses): Add a section discussing the
9671         problem of address clauses causing unexpected initialization,
9672         including the effect of Initialize_Scalars.
9674 2014-02-25  Robert Dewar  <dewar@adacore.com>
9676         * errout.adb: Various changes for better msgs for anonmous access
9677         subprogram types.
9678         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
9679         argument.
9680         (Buffer_Remove): Version with character argument.
9681         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
9682         of mismatching conventions for access-to-subprogram case.
9683         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
9684         access types in record.
9685         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
9686         types, including in records.
9688 2014-02-25  Doug Rupp  <rupp@adacore.com>
9690         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
9691         enhancements and corrections.
9693 2014-02-25  Robert Dewar  <dewar@adacore.com>
9695         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
9697 2014-02-25  Robert Dewar  <dewar@adacore.com>
9699         * gnat_rm.texi: First set of documentation additions for
9700         predefined RM units.
9701         * checks.adb: Minor reformatting.
9702         * sem_elab.adb (Check_Task_Activation): Minor fix to error
9703         message.
9704         * sem_util.adb: Minor reformatting.
9706 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
9708         * usage.adb (Usage): Add help on -gnateC.
9709         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
9710         * opt.ads (Generate_CodePeer_Messages): New flag.
9711         * gnat_ugn.texi: Document new switch -gnateC.
9713 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
9715         * gnat_rm.texi: Corrected minor typos in Implementation Defined
9716         Aspects.
9717         * opt.ads: Minor reformatting.
9719 2014-02-25  Robert Dewar  <dewar@adacore.com>
9721         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
9722         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
9723         of -gnatel/-gnateL.
9724         * opt.ads (Warn_Info_Messages): New flag.
9725         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
9726         messages.
9727         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
9728         messages.
9729         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
9730         * usage.adb: Add documentation of -gnatel/-gnateL Update
9731         documentation of -gnatwl/-gnatwL.
9732         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
9733         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
9735 2014-02-25  Robert Dewar  <dewar@adacore.com>
9737         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
9738         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
9739         * interfac.ads: Minor code reorganization (add pragma
9740         Compiler_Unit_Warning).
9741         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
9742         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
9743         Has_Shift_Operator flag.
9744         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
9745         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
9746         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
9747         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
9748         Add entry for Name_Amount.
9749         * checks.adb (Selected_Range_Checks): When checking for a null
9750         range, make sure we use the base type, and not the subtype for
9751         deciding a range is null.
9752         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
9753         for suspicious loop bound which is outside the range of the
9754         loop subtype.
9755         * gnat_ugn.texi: Add documentation section "Determining the
9756         Chosen Elaboration Order"
9757         * sem_ch13.adb (UC_Entry): Add field Act_Unit
9758         (Validate_Unchecked_Conversion): Store Act_Unit
9759         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
9760         * treepr.adb: Minor reformatting.
9762 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
9764         * usage.adb: Minor: fix typo.
9766 2014-02-25  Robert Dewar  <dewar@adacore.com>
9768         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
9769         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
9770         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
9771         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
9772         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
9773         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
9774         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
9775         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
9776         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
9777         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
9778         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
9779         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
9780         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
9781         Compiler_Unit_Warning, change Compiler_Unit everywhere to
9782         Compiler_Unit_Warning.
9784 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
9786         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
9787         in ASIS mode aggregates that are used as aspect definitions.
9789 2014-02-25  Robert Dewar  <dewar@adacore.com>
9791         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
9792         reformatting.
9794 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9796         * freeze.adb (Freeze_Entity): If the return type of a function
9797         is a limited view, and the non-limited view has not been seen yet,
9798         defer freezing to some later point.
9800 2014-02-25  Robert Dewar  <dewar@adacore.com>
9802         * sem_ch3.adb: Minor reformatting.
9804 2014-02-25  Robert Dewar  <dewar@adacore.com>
9806         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
9807         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
9808         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
9809         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
9810         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
9811         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
9812         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9813         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
9814         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
9815         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
9816         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
9817         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
9818         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
9819         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
9820         snames.ads-tmpl: Change Compiler_Unit everywhere to
9821         Compiler_Unit_Warning.
9823 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9825         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
9826         (Collect_Body_Postconditions_In_Decls): New routine.
9827         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
9828         postcondition aspects or pragmas that appear on a subprogram
9829         body stub.
9830         (Collect_Spec_Preconditions): Factor out code. Handle
9831         precondition aspects or pragmas that appear on a subprogram
9832         body stub.
9833         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
9834         aspects that apply to a subprogram body stub is no longer delayed,
9835         the aspects are analyzed on the spot.
9836         (SPARK_Aspect_Error):
9837         Aspects that apply to a subprogram declaration cannot appear in
9838         a subunit.
9839         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
9840         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
9841         is now a local variable. Code cleanup. Analysis related to
9842         the aspects of a subprogram body stub is now carried out by
9843         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
9844         and/or pragmas of a subprogram body stub to the proper body
9845         as this is no longer needed. Do not analyze the aspects of a
9846         subprogram stub when the corresponding source unit is missing.
9847         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
9848         on a stub.
9849         (Analyze_Task_Body_Stub): Flag the illegal use of
9850         aspects on a stub.
9851         (Optional_Subunit): Add local variable Unum.
9852         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
9853         pragma when it applies to a subprogram body stub.
9854         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
9855         Depends and Global can now apply to a subprogram body stub as
9856         long as it acts as its own spec.
9857         (Analyze_Refined_Pragma):
9858         Code reformatting. Refinement pragmas cannot apply to a subunit.
9860 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9862         * einfo.ads Update the usage of flag
9863         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
9864         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
9865         now starts with the letter 'C'. This makes reading expanded
9866         code easier.
9867         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
9868         Iter_Loop. Signal that an Ada 2012 iterator loop requires
9869         secondary stack management when creating a transient scope for
9870         an element reference.
9871         * exp_util.adb (Process_Statements_For_Controlled_Objects):
9872         When wrapping the statements of a loop, pass the E_Loop entity
9873         to the wrapping machinery.
9874         (Wrap_Statements_In_Block): Add
9875         formal parameter Scop along with comment on usage. Add local
9876         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
9877         block as requiring secondary stack management when the block is
9878         created inside an Ada 2012 iterator loop. This ensures that any
9879         reference objects are reclaimed on each iteration of the loop.
9880         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
9881         tasked with the handling of container iterators as requiring
9882         secondary stack management. This ensures that iterators are
9883         reclaimed when the loop terminates or is exited in any fashion.
9884         * sem_util.adb (Add_Block_Identifier): New routine.
9885         (Find_Enclosing_Iterator_Loop): New routine.
9886         * sem_util.ads (Add_Block_Identifier): New routine.
9887         (Find_Enclosing_Iterator_Loop): New routine.
9889 2014-02-25  Robert Dewar  <dewar@adacore.com>
9891         * sinfo.ads: Minor reformatting.
9893 2014-02-25  Tristan Gingold  <gingold@adacore.com>
9895         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
9897 2014-02-25  Pascal Obry  <obry@adacore.com>
9899         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
9901 2014-02-25  Tristan Gingold  <gingold@adacore.com>
9903         * sem_ch10.adb: Minor comment fix.
9905 2014-02-25  Bob Duff  <duff@adacore.com>
9907         * s-tasdeb.adb: Misc cleanup of this package,
9908         including printing addresses in hexadecimal.
9909         (Write): Fix minor bug when taking 'Address of an empty string.
9911 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9913         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
9914         public child unit when it does not refer to the abstract state
9915         of a public ancestor.
9917 2014-02-25  Yannick Moy  <moy@adacore.com>
9919         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
9920         Validity_Checks in GNATprove and CodePeer modes.
9922 2014-02-25  Pascal Obry  <obry@adacore.com>
9924         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
9925         Artifacts attribute.
9927 2014-02-25  Yannick Moy  <moy@adacore.com>
9929         * sem_prag.adb: Minor reformatting to get consistent messages.
9931 2014-02-25  Robert Dewar  <dewar@adacore.com>
9933         * checks.adb: Minor reformatting.
9934         * sinfo.ads (Do_Range_Check): Document that this flag is never
9935         passed to the back end.
9937 2014-02-25  Yannick Moy  <moy@adacore.com>
9939         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
9940         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
9942 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9944         * sem_res.adb (Appears_In_Check): New routine.
9945         (Resolve_Entity_Name): Remove local variables Prev and
9946         Usage_OK. Par is now a constant. Remove the parent chain traversal
9947         as the placement of a volatile object with enabled property
9948         Async_Writers and/or Effective_Reads must appear immediately
9949         within a legal construct.
9951 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9953         * checks.adb (Apply_Selected_Range_Checks):
9954         Alphabetize local constants and variables. Add comments.
9955         Always insert a range check that requires runtime evaluation into
9956         the tree.
9958 2014-02-25  Robert Dewar  <dewar@adacore.com>
9960         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
9962 2014-02-25  Bob Duff  <duff@adacore.com>
9964         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
9965         iterations while waiting for independent tasks to terminate;
9966         if an independent task does not terminate, we do not want to
9967         hang here. In that case, the thread will be terminated when the
9968         process exits.
9969         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
9971 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9973         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
9974         used to perform pre-analysis of the expression for SPARK
9975         aspects that have a non-standard syntax, such as GLobal and
9976         Initializes. The procedure applies to the original expression
9977         in an aspect specification, prior to the analysis of the
9978         corresponding pragma, in order to provide semantic information
9979         for ASIS navigation purposes.
9980         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
9981         Call new subprogram.
9983 2014-02-25  Yannick Moy  <moy@adacore.com>
9985         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
9987 2014-02-25  Doug Rupp  <rupp@adacore.com>
9989         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
9990         (__gnat_adjust_context_for_raise): Bump the PC by 2.
9992 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9994         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
9995         misplaced IS, add a statement sequence to improper body only if
9996         one has not been parsed already.
9998 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
10000         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
10001         mismatch when multidimensional array is updated with a single
10002         index.
10004 2014-02-25  Yannick Moy  <moy@adacore.com>
10006         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
10007         sem_ch6.adb: Mark most references to SPARK RM in error messages
10008         for removal.
10010 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10012         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
10013         appears in a list of basic declarations, complete the tree with
10014         an empty statement list, to prevent cascaded errors and crashes
10015         if semantic analysis is attempted.
10017 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10019         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
10020         value.
10021         * erroutc.adb: Minor reformatting.
10023 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10025         * sem_prag.adb (Check_Clause_Syntax): Account
10026         for a solitary input item in a dependency list.
10028 2014-02-24  Yannick Moy  <moy@adacore.com>
10030         * gnat1drv.adb (Adjust_Global_Switches): Do not
10031         use validity checks at all in GNATprove_Mode.
10033 2014-02-24  Robert Dewar  <dewar@adacore.com>
10035         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
10036         atree.adb, atree.ads: Minor reformatting.
10038 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10040         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
10041         global and dependence refinement when SPARK_Mode is off.
10042         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
10043         state refinement when SPARK_Mode is off.
10044         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
10045         variable Decl. Insert the generated pragma for Refined_State
10046         after a potential pragma SPARK_Mode.
10047         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
10048         constant Deps. Remove local variable Expr. Check the syntax
10049         of pragma Depends when SPARK_Mode is off. Factor out the
10050         processing for extra parenthesis around individual clauses.
10051         (Analyze_Global_In_Decl_List): Items is now a constant. Check
10052         the syntax of pragma Global when SPARK_Mode is off.
10053         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
10054         Initializes when SPARK_Mode is off.
10055         (Analyze_Part_Of): Check
10056         the syntax of the encapsulating state when SPARK_Mode is off.
10057         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
10058         SPARK_Mode is off. Move the declaration order check with respect
10059         to pragma Initializes to the end of the processing. Do not verify
10060         the declaration order for pragma Initial_Condition when SPARK_Mode
10061         is off. Do not complain about a useless package refinement when
10062         SPARK_Mode is off.
10063         (Analyze_Refined_Depends_In_Decl_Part): Refs
10064         is now a constant. Check the syntax of pragma Refined_Depends
10065         when SPARK_Mode is off.
10066         (Analyze_Refined_Global_In_Decl_Part):
10067         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
10068         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
10069         Refined_State when SPARK_Mode is off.
10070         (Check_Dependence_List_Syntax): New routine.
10071         (Check_Global_List_Syntax): New routine.
10072         (Check_Initialization_List_Syntax): New routine.
10073         (Check_Item_Syntax): New routine.
10074         (Check_State_Declaration_Syntax): New routine.
10075         (Check_Refinement_List_Syntax): New routine.
10076         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
10078 2014-02-24  Robert Dewar  <dewar@adacore.com>
10080         * a-tags.adb, s-os_lib.adb: Minor reformatting.
10082 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10084         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
10085         strerror message, not just numeric errno value.
10087 2014-02-24  Doug Rupp  <rupp@adacore.com>
10089         * raise-gcc.c (exception_class_eq): Make endian neutral.
10091 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10093         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
10094         flag, and reset Etype and Analyzed attributes unconditionally
10095         when copying a tree that may be partly analyzed.
10096         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
10097         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
10098         within a subprogram body and applies to it, remove it from the
10099         body before making a copy of it, to prevent spurious errors when
10100         analyzing the copied body.
10102 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10104         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
10105         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
10106         vxWorks.h has been included.  Also ensure that file attributes
10107         related definitions are output even in cases where socket support
10108         is not enabled.
10109         * a-tags.adb: Code clean up.
10110         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
10111         instead of -I to add the main ada source directory to the header
10112         search path, in order to avoid conflict between our own "types.h"
10113         and VxWork's <types.h>.
10115 2014-02-24  Robert Dewar  <dewar@adacore.com>
10117         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
10118         * debug.adb: Remove documentation of -gnatd.X, no longer used.
10119         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
10121 2014-02-24  Bob Duff  <duff@adacore.com>
10123         * gnat_ugn.texi: Improve documentation of gnatpp.
10125 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10127         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
10128         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
10129         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
10130         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
10131         a chars_ptr, because on Windows this is a renaming of
10132         Socket_Error_Message.
10134 2014-02-24  Robert Dewar  <dewar@adacore.com>
10136         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
10137         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
10138         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
10139         reorganization.
10141 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10143         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
10144         that the source directory containing s-oscons-tmplt.c is on the
10145         include path, so that all internal header files are available.
10147 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10149         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
10150         domain of iteration is an attribute reference 'Old, this is an
10151         Ada 2012 iterator and the loop must be rewritten as such.
10153 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10155         * s-fileio.adb (Errno_Message): Remove, use shared version from
10156         s-os_lib instead.
10157         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
10158         * g-stseme (Socket_Error_Message): Reimplement in terms of new
10159         s-os_lib function.
10160         * g-socthi.ads, g-socthi.adb: Change profile of
10161         Socket_Error_Message to return String to allow the above.
10162         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
10163         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10164         * g-socthi-vxworks.ads: Update to account for the above profile
10165         change.
10166         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
10167         * s-crtl.ads (strncpy): New procedure.
10168         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
10169         Use import from s-crtl.
10170         * a-envvar.adb, osint.adb: Use imports of C runtime functions
10171         from s-crtl instead of re-importing locally.
10173 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10175         * sem_prag.adb (Analyze_Global_Item): Emit the
10176         variable related checks concerning volatile objects only when
10177         SPARK_Mode is on.
10179 2014-02-24  Robert Dewar  <dewar@adacore.com>
10181         * sem_ch5.adb (Analyze_Iterator_Specification): use
10182         Error_Msg_Ada_2012_Feature.
10184 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
10186         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
10187         No_Local_Timing_Events and No_Specific_Termination_Handlers
10188         must be set, according to the Ravenscar profile definition
10189         in D.13(6/3).
10191 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10193         * sem_ch6.adb (Analyze_Expression_Function): If this is a
10194         completion, freeze return type and its designated type if needed.
10196 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10198         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
10199         'Address): When moving initialization statements to a freeze
10200         entity, keep them under a single node (i.e. do not unwrap
10201         expressions with actions), and set the Initialization_Statements
10202         attribute again so that processing of a later pragma Import can
10203         still remove them.
10205 2014-02-24  Claire Dross  <dross@adacore.com>
10207         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
10208         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
10209         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
10210         Left/Right to First_To_Previous/Current_To_Last.
10212 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10214         * adaint.h (struct file_attributes): New component "error"
10215         (__gnat_error_attributes): Accessor for the above.
10216         * adaint.c (__gnat_error_attributes): New subprogram
10217         (__gnat_stat): Fix returned value (expect errno value)
10218         (__gnat_stat_to_attr): Add management of error component (set to
10219         stat errno value, except for missing files where it is set to 0,
10220         and exists is set to 0).
10221         * osint.ads (File_Attributes_Size): Update per change above,
10222         also clarify documentation.
10223         * s-filatt.ads: New file, binding to file attributes related
10224         functions.
10225         * Makefile.rtl (s-filatt): New runtime unit.
10226         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
10227         to library function if not available on target).
10228         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
10229         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
10230         SIZEOF_struct_dirent_alloc): New constants.
10231         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
10232         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
10233         Perform appropriate error checking if stat fails (do not just
10234         ignore existing files if stat fails)
10235         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
10236         dependencies.
10238 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10240         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
10241         the use of volatile objects as global items in a function to
10242         the variable related checks section.
10243         * sem_util.adb (Async_Readers_Enabled): Directly call
10244         Has_Enabled_Property.
10245         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
10246         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
10247         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
10248         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
10249         Update the comment on usage. State_Has_Enabled_Property how handles
10250         the original logic of the routine. Add processing for variables.
10251         (State_Has_Enabled_Property): New routine.
10252         (Variable_Has_Enabled_Property): New routine.
10254 2014-02-24  Robert Dewar  <dewar@adacore.com>
10256         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
10257         Minor reformatting.
10258         * atree.ads, atree.adb (Node35): New function.
10259         (Set_Node35): New procedure.
10260         * debug.adb: Define new debug flag -gnatd.X.
10261         * einfo.ads, einfo.adb (Import_Pragma): New field.
10262         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
10263         really active yet, has to be activated with -gnatd.X.
10264         * sem_prag.adb (Set_Imported): Set new Import_Pragma
10265         field (Set_Imported): Don't set Is_Public (see
10266         Freeze.Wrap_Imported_Subprogram)
10267         * par-ch3.adb (P_Component_List): Handle unexpected null component.
10269 2014-02-24  Yannick Moy  <moy@adacore.com>
10271         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
10272         * gnat_rm.texi: Correct documentation of attribute Update.
10274 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10276         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
10277         iterator in older versions of Ada.
10279 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
10281         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
10282         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
10284 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10286         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
10287         indexed_components that are instances of Ada 2012 container
10288         indexing operations. Analysis and resolution of such nodes
10289         is performed on the attribute, and the original source is
10290         preserved for ASIS operations. If expansion is enabled, the
10291         indexed component is replaced by the value of this attribute,
10292         which is in a call to an Indexing aspect, in most case wrapped
10293         in a dereference operation.
10294         * sem_ch4.adb (Analyze_Indexed_Component): Create
10295         Generalized_Indexing attribute when appropriate.
10296         (Analyze_Call): If prefix is not overloadable and has an indexing
10297         aspect, transform into an indexed component so it can be analyzed
10298         as a potential container indexing.
10299         (Analyze_Expression): If node is an indexed component with a
10300         Generalized_ Indexing, do not re-analyze.
10301         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
10302         of an indexed_component that has been transformed into a container
10303         indexing operation.
10304         (Resolve_Indexed_Component): Call the above when required.
10305         (Resolve): Do not insert an explicit dereference operation on
10306         an indexed_component whose type has an implicit dereference:
10307         the operation is inserted when resolving the related
10308         Generalized_Indexing.
10310 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
10312         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
10313         Environment.
10315 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10317         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
10318         error messages.
10319         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
10320         Merge the expected and available mode errors.
10321         (Report_Unused_Constituents): Remove leading spaces in error messages.
10322         (Report_Unused_States): Remove leading spaces in error messages.
10324 2014-02-24  Thomas Quinot  <quinot@adacore.com>
10326         * par_sco.adb (Traverse_One): Refine categorization of statement
10327         SCOs.
10329 2014-02-24  Robert Dewar  <dewar@adacore.com>
10331         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
10332         Pure_05, Pure_12 and Preelaborate_05.
10333         * gnat_rm.texi: Update accordingly.
10334         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
10335         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
10336         Recognize one argument form of these pragmas only in GNAT mode
10337         (-gnatg).
10339 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10341         * s-dimmks.ads: Replace symbol for temperature, previously the
10342         Greek letter Theta, by the ASCII @ sign.
10343         * s-diflio.ads: ditto.
10345 2014-02-24  Robert Dewar  <dewar@adacore.com>
10347         * exp_ch4.adb: Minor code reorganization (use OR for boolean
10348         variables).
10349         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
10351 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
10353         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
10354         so that references to gnatmem and ASIS tools do not appear in the FSF
10355         edition of the GNAT User's Guide.
10357 2014-02-24  Yannick Moy  <moy@adacore.com>
10359         * freeze.adb (Freeze_Entity): Do not issue warning
10360         for pre/post being ignored on imported subprogram in GNATprove
10361         mode.
10363 2014-02-24  Robert Dewar  <dewar@adacore.com>
10365         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
10366         stand.ads, sem_eval.adb: Minor reformatting.
10368 2014-02-24  Yannick Moy  <moy@adacore.com>
10370         * sem_prag.adb: Minor rewording in error message.
10372 2014-02-24  Johannes Kanig  <kanig@adacore.com>
10374         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
10375         GNATprove_mode, gnat2why doesn't need nor use these types.
10377 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
10379         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
10380         target, in the case of signed integer exponentiation that uses a
10381         run-time routine, always select the Exp_* versions, since overflow
10382         checking is automatically done by AAMP arithmetic instructions.
10384 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10386         * sem_ch13.adb (Analyze_Aspect_Specifications):
10387         When the related context is a package instace, insert pragma
10388         Abstract_State after all internally-generated renamings related
10389         to the instance "header".
10391 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
10393         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
10394         subprograms.
10395         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
10396         call to an abstract subprogram is legal if it appears in a
10397         pre/postcondition of another abstract operation.
10399 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
10401         * gnat_ugn.texi: Misc updates.
10403 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
10405         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
10407 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
10409         * layout.adb (Layout_Variant_Record): Instantiate
10410         Generic_Check_Choices and call Check_Choices before calling
10411         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
10412         set to prevent generating incorrect discriminant-checking
10413         functions for 'others' variants (functions that unconditionally
10414         return True rather than accounting for the values covered by the
10415         'others' choice).
10416         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
10417         Formal_Derived_Matching.
10418         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
10419         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
10420         Formal_Derived_Matching formal to Subtypes_Statically_Match.
10421         (Subtypes_Statically_Match): Suppress the Object_Size matching
10422         test in the case where Formal_Derived_Matching is True.
10423         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
10424         True for Formal_Derived_Matching_Formal on the call to
10425         Subtypes_Statically_Compatible.
10427 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
10429         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
10431 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
10433         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
10434         Look through a conversion between original and packable version to get
10435         the base object.
10436         (build_component_ref): Rework comment and fix formatting.
10438 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
10440         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
10441         project-specific options.
10443 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10445         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
10446         not Constraint_Error.
10447         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
10448         * sem_ch5.adb: Code clean up.
10450 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
10452         * sem_prag.adb (Usage_Error): Remove local
10453         constant Typ. Remove the specialized diagnostics for unconstrained
10454         or tagged items as those are not part of the explicit input set
10455         of the related subprogram and should not be flagged.
10457 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10459         * sem_attr.adb: Add guard to preserve all errors.
10461 2014-02-20  Vincent Celier  <celier@adacore.com>
10463         * switch-m.adb (Normalize_Compiler_Switches): Take into account
10464         switches that are recorded in ALI files: -gnateA, -gnateE,
10465         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
10467 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10469         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
10470         of an element iterator form over a formal container with an
10471         Iterable aspect.
10472         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
10473         to create declaration and loop statements for both forms of
10474         container iterators.
10475         (Expand_Formal_Container_Element_Iterator): New procedure
10476         to handle loops of the form  "for E of C" when C is a formal
10477         container.
10478         (Expand_Formal_Container_Iterator): Code cleanup.
10480 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
10482         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
10483         (Analyze_Contract_Case): Remove the use of
10484         "may". Replace "aspect Contract_Cases" to avoid categorization
10485         of aspect vs pragma.
10486         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
10487         (Analyze_Global_Item): Remove
10488         the use of "formal", specify the subprogram.  Split the
10489         error message about a state with visible refinement into
10490         two. Remove the use of "global" from "volatile global item".
10491         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
10492         is on one line.
10493         (Analyze_Input_Output): Update the call to
10494         Check_Mode. Specify the duplicated item. Reword the error
10495         message concerning an input of a null output list. Use "\"
10496         for error message continuation.
10497         (Analyze_Part_Of): Remove
10498         the use of "may". Use "\" for error message continuation.
10499         (Analyze_Refined_Depends_In_Decl_Part): Update the error
10500         message concerning a useless refinement to match the format
10501         of Refined_Global.
10502         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
10503         concerning a useless refinement.
10504         (Analyze_Refinement_Clause): Use "\" for error message continuation.
10505         (Check_Constituent_Usage): Use "\" for error message continuation.
10506         (Check_Dependency_Clause): Use "\" for error message continuation.
10507         (Check_Matching_Constituent): Use "\" for error message continuation.
10508         (Check_Missing_Part_Of): Use "\" for error message continuation.
10509         (Check_Mode): Renamed to
10510         Check_Role. Update the comment on usage. Redo the error reporting
10511         to use Role_Error.
10512         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
10513         message continuation.
10514         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
10515         with comment on usage. Update all occurrences of Is_Input and Is_Output.
10516         (Inconsistent_Mode_Error): Use "\" for error message continuation.
10517         (Input_Match): Use "\" for error message continuation.
10518         (Role_Error): New routine.
10519         (Set_Convention_From_Pragma): Use "\" for error message continuation.
10520         (Usage_Error): Add local variable Error_Msg. Build specialized error
10521         message showcasing the offending item kind. Redo the diagnostics for
10522         unconstrained types.
10524 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10526         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
10527         to determine whether a type is a container type, rather than
10528         examining only its type declaration, so that subtypes and derived
10529         types are handled properly.
10531 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
10533         * gnat_ugn.texi: gnatmetric: add description of project-specific
10534         options.
10536 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10538         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
10539         all choices in an association for a record type have the same
10540         type, as is done for record aggregates.
10542 2014-02-20  Robert Dewar  <dewar@adacore.com>
10544         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
10545         Unmodified rather than Warnings (Off). Make comments
10546         uniform in the four affected units.
10548 2014-02-20  Robert Dewar  <dewar@adacore.com>
10550         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
10551         Object_Size): For non-scalar types allow any value that is a
10552         multiple of 8.
10553         * gnat_rm.texi: Document Object_Size for composites more clearly.
10555 2014-02-20  Yannick Moy  <moy@adacore.com>
10557         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
10559 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10561         * stand.ads: Raise_Type: new predefined entity, used as the type
10562         of a Raise_Expression prior to resolution.
10563         * cstand.adb: Build entity for Raise_Type.
10564         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
10565         initial type of the node.
10566         * sem_type.adb (Covers): Raise_Type is compatible with all
10567         other types.
10568         * sem_res.adb (Resolve): Remove special handling of Any_Type on
10569         Raise_Expression nodes.
10570         (Resolve_Raise_Expression): Signal ambiguity if the type of the
10571         context is still Raise_Type.
10573 2014-02-20  Robert Dewar  <dewar@adacore.com>
10575         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
10576         mismatching predicates.
10577         * sem_ch6.adb (Check_Conformance): Give better messages on
10578         predicate mismatch.
10579         * sem_eval.adb (Predicates_Match): Move to spec.
10580         * sem_eval.ads (Predicates_Match): Moved here from body.
10582 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10584         * a-cbmutr.adb: Use default value in Insert_Child.
10586 2014-02-20  Vincent Celier  <celier@adacore.com>
10588         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
10589         Stringt.Initialize in all project aware tools.
10591 2014-02-20  Doug Rupp  <rupp@adacore.com>
10593         * gnat_ugn.texi: Document gnatbind -X option.
10594         * vms_data.ads: Minor warnings documentation reformatting.
10596 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10598         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
10599         procedure for a base type.
10601 2014-02-20  Robert Dewar  <dewar@adacore.com>
10603         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
10604         expression with type info.
10605         * sem_ch13.adb: Minor reformatting.
10606         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
10607         False if predicates do not match on the two types.
10609 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
10611         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
10612         In Relaxed_RM_Semantics mode, allow any static integer value,
10613         for compatibility with other compilers.
10615 2014-02-20  Vincent Celier  <celier@adacore.com>
10617         * errutil.adb (Initialize): Properly initialize entry in table
10618         Warnings when warnings are suppressed.
10620 2014-02-20  Robert Dewar  <dewar@adacore.com>
10622         * s-os_lib.ads: Add warning about non-portability of Rename_File.
10623         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
10624         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
10625         * gnat_ugn.texi: Document no warnings on junk variable names.
10626         * layout.adb: Minor code reorganization (use Ekind_In).
10627         * stringt.adb: Move initialization of Null_String_Id to Initialize
10628         routine.
10630 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10632         * sem_ch13.adb: Initialize optional Element_Id.
10634 2014-02-20  Robert Dewar  <dewar@adacore.com>
10636         * s-os_lib.ads (Rename_File): Minor commment addition.
10638 2014-02-20  Thomas Quinot  <quinot@adacore.com>
10640         * einfo.ads: Minor reformatting.
10642 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
10644         * aspects.adb (Exchange_Aspects): New routine.
10645         * aspects.ads (Exchange_Aspects): New routine.
10646         * atree.adb (Rewrite): Do not check whether the save node has
10647         aspects as it never will, instead check the node about to be clobbered.
10648         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
10649         entities of generic packages.
10650         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
10651         pointer of an aspect specification list after rewriting takes place.
10652         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
10653         specifications of the generic template and the copy used for analysis.
10654         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
10655         the aspect specifications of the generic template and the
10656         copy used for analysis.
10657         (Analyze_Package_Instantiation): Propagate the aspect specifications
10658         from the generic template to the instantiation.
10659         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
10660         specifications from the generic template to the instantiation.
10661         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
10662         Abstract_State, Initializes and Initial_Condition when they
10663         apply to a package instantiation.
10665 2014-02-20  Robert Dewar  <dewar@adacore.com>
10667         * stringt.adb: Add call to Initialize in package initialization.
10669 2014-02-20  Robert Dewar  <dewar@adacore.com>
10671         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
10672         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
10673         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
10674         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
10675         reformatting.
10677 2014-02-20  Bob Duff  <duff@adacore.com>
10679         * s-os_lib.ads: Minor: Remove incorrect comment.
10681 2014-02-20  Robert Dewar  <dewar@adacore.com>
10683         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
10685 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10687         * a-cborma.adb (Assign): When creating a node without a specified
10688         element, insert an uninitialized element in the map, because
10689         the instance may provide an element type with a default
10690         initialization, e.g a scalar with a Default_Value aspect.
10691         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
10692         (Insert): In the version without explicit element, provide an
10693         uninitialized element, as above.
10694         * a-cbdlli.adb (Append): In the version without explicit element,
10695         provide an uninitalized element, as above.
10696         (Allocate): Remove unused version.
10698 2014-02-20  Robert Dewar  <dewar@adacore.com>
10700         * sem_elab.adb: Minor code reorganization (use Nkind_In).
10701         * stringt.adb: Remove temporary pragma Warnings (Off).
10702         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
10703         of Null_String_Id.
10705 2014-02-20  Matthew Heaney  <heaney@adacore.com>
10707         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
10708         index.
10710 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10712         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
10713         properly the cursor type for subsequent volatile testing in SPARK
10714         mode, when domain is a formal container with an Iterabe aspect.
10716 2014-02-20  Robert Dewar  <dewar@adacore.com>
10718         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
10719         (Set_Specific_Warning_Off): Add Reason argument.
10720         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
10721         (Set_Specific_Warning_Off): Add Reason argument.
10722         * erroutc.adb (Warnings_Entry): Add Reason field
10723         (Specific_Warning_Entry): Add Reason field.
10724         (Warnings_Suppressed): return String_Id for Reason.
10725         (Warning_Specifically_Suppressed): return String_Id for Reason.
10726         * erroutc.ads (Warnings_Entry): Add Reason field.
10727         (Specific_Warning_Entry): Add Reason field.
10728         (Set_Specific_Warning_Off): Add Reason argument.
10729         (Set_Warnings_Mode_Off): Add Reason argument.
10730         (Warnings_Suppressed): return String_Id for Reason.
10731         (Warning_Specifically_Suppressed): return String_Id for Reason.
10732         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
10733         (Warning_Specifically_Suppressed): returns String_Id for Reason
10734         * gnat_rm.texi: Document that Warning parameter is string literal
10735         or a concatenation of string literals.
10736         * par-prag.adb: New handling for Reason argument.
10737         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
10738         for Reason argument.
10739         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
10740         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
10741         * stringt.adb: Set Null_String_Id.
10742         * stringt.ads (Null_String_Id): New constant.
10744 2014-02-20  Robert Dewar  <dewar@adacore.com>
10746         * einfo.ads: Minor comment addition: Etype of package is
10747         Standard_Void_Type.
10748         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
10749         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
10750         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
10751         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
10752         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
10753         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
10754         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
10755         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
10756         Replace all calls with calls to New_Occurrence_Of.
10758 2014-02-20  Robert Dewar  <dewar@adacore.com>
10760         * par-util.adb (Ignore, case of right paren): Make this a
10761         serious error.
10763 2014-02-19  Robert Dewar  <dewar@adacore.com>
10765         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
10766         * debug.adb: Remove -gnatd.X switch, no longer used.
10767         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
10768         now always made.
10770 2014-02-19  Bob Duff  <duff@adacore.com>
10772         * g-socket.ads: Minor: Correct some comments.
10774 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10776         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
10778 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
10780         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
10781         an error on out of range priorities if Relaxed_RM_Semantics.
10782         * sem_prag.adb (Analyze_Pragma): Ditto.
10784 2014-02-19  Bob Duff  <duff@adacore.com>
10786         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
10787         where F denotes the renaming of an enumeration literal, and
10788         issue a specialized error message.
10790 2014-02-19  Matthew Heaney  <heaney@adacore.com>
10792         * a-chtgop.ads (Checked_Index): New operation.
10793         (Next): Changed mode of hash table.
10794         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
10795         (Generic_Read, Reserve_Capacity): Ditto.
10796         (Generic_Equal): Detect tampering.
10797         (Next): Changed mode of hash table, detect tampering.
10798         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
10799         operation.
10800         (Find): Changed mode of hash table.
10801         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
10802         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
10803         tampering.
10804         (Find): Changed mode of hash table, check for tampering.
10805         (Generic_Replace_Element): Check for tampering.
10806         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
10807         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
10808         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
10809         Detect tampering.
10810         (Find, Generic_Replace_Element): Check for tampering.
10811         * a-chtgbo.ads (Checked_Index): New operation.
10812         * a-chtgbo.adb (Checked_Index): New operation
10813         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
10814         (Generic_Read, Next): Ditto.
10815         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
10816         table (Difference, Intersection): Use variable view of
10817         source, detect tampering (Find, Is_Subset, Overlap): Use
10818         variable view of container (Symmetric_Difference, Union):
10819         Detect tampering (Vet): Use Checked_Index to detect tampering
10820         (Constant_Reference, Element, Find): Use variable view of
10821         container.
10822         (Update_Element_Preserving_Key): Detect tampering.
10823         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
10824         of container.
10825         (Is_Subset): Ditto.
10826         (Equivalent_Sets, Overlap): Use Node's Next component.
10827         (Vet): Use Checked_Index to detect tampering.
10828         (Constant_Reference, Element, Find): Use variable view of container.
10829         (Update_Element_Preserving_Key): Detect tampering.
10830         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
10831         Element, Find): Use variable view of container.
10832         (Reference): Rename hash table component.
10833         (Vet): Use Checked_Index to detect tampering.
10835 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
10837         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
10838         of -nostdinc.
10840 2014-02-19  Thomas Quinot  <quinot@adacore.com>
10842         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
10843         against calls without Def_Id.
10845 2014-02-19  Claire Dross  <dross@adacore.com>
10847         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
10848         a-cofove.ads: Add global annotations to subprograms.
10850 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10852         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
10853         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
10854         Initial_Condition no longer requires the presence of pragma
10855         Initialized. Do not try to diagnose whether all variables mentioned in
10856         pragma Initializes also appear in Initial_Condition.
10857         (Collect_Variables): Removed.
10858         (Match_Variable): Removed.
10859         (Match_Variables): Removed.
10860         (Report_Unused_Variables): Removed.
10862 2014-02-19  Thomas Quinot  <quinot@adacore.com>
10864         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
10866 2014-02-19  Robert Dewar  <dewar@adacore.com>
10868         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
10869         reformatting.
10871 2014-02-19  Vincent Celier  <celier@adacore.com>
10873         * prj-part.adb (Parse_Single_Project): Use the fully resolved
10874         project path, with all symbolic links resolved, to check if the
10875         same project is imported with a different unresolved path.
10876         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
10877         changed to Resolved_Path to reflect that all symbolic links
10878         are resolved.
10880 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10882         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
10883         from sem_ch13, for use elsewhere.
10884         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
10885         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
10886         cursor type on the loop variable when the iteration is over o
10887         formal container.
10889 2014-02-19  Vincent Celier  <celier@adacore.com>
10891         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
10892         for an empty Target (Check_Target): Never fail when an empty
10893         target is declared in the configuration project.
10895 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10897         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
10898         the pragma comes fron a predicate aspect and the context is a
10899         record declaration within the scope that declares the type.
10901 2014-02-19  Robert Dewar  <dewar@adacore.com>
10903         * gnat_rm.texi: Minor clarifications.
10904         * expander.adb, sem_aggr.adb: Add comments.
10906 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10908         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
10909         applies to a subprogram body, the name is the current scope,
10910         rather than being declared in the current scope.
10911         (Analyze_Pragma, case No_Return): Handle properly a No_Return
10912         aspect applied to a subprogram body.
10914 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10916         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
10917         of overloaded subprograms, and fix bug in handling of primitive
10918         operation Element.
10920 2014-02-19  Pascal Obry  <obry@adacore.com>
10922         * s-os_lib.adb: Minor reformatting.
10924 2014-02-19  Yannick Moy  <moy@adacore.com>
10926         * expander.adb (Expand): Do nothing inside generics.
10927         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
10928         generics.
10930 2014-02-19  Yannick Moy  <moy@adacore.com>
10932         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
10934 2014-02-19  Robert Dewar  <dewar@adacore.com>
10936         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
10937         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
10938         longer needed).
10940 2014-02-19  Claire Dross  <dross@adacore.com>
10942         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
10943         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
10945 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10947         * sem_ch3.adb (Analyze_Declarations): Analyze
10948         a package contract at the end of the private declarations (if
10949         applicable), otherwise analyze it and the end of the visible
10950         declarations.
10952 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10954         * style.adb (Missing_Overriding): If subprogram is an
10955         instantiation, place warning on the instance node itself,
10956         without mention of the original generic. Do not emit message
10957         if explicit Ada version is older than the introduction of the
10958         overriding indicator.
10960 2014-02-19  Yannick Moy  <moy@adacore.com>
10962         * gnat_rm.texi: Doc clarifications.
10964 2014-02-19  Yannick Moy  <moy@adacore.com>
10966         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
10967         inside a generic.
10969 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10971         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
10972         specified First primitive, rather than by name.
10973         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
10974         and extend error checking for missing primitives and incorrect
10975         signatures.
10977 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10979         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
10980         errors when a Synchronization aspect on an overriding protected
10981         operation does not match the given aspect on the overridden
10982         operation of an ancestor interface.
10984 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10986         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
10987         (Check_Loop_Pragma_Placement): Update
10988         comment on usage. Remove local variables Orig_Stmt and
10989         Within_Same_Sequence. Check that the current Loop_Invariant or
10990         Loop_Variant pragma is grouped together with other such pragmas.
10991         (Is_Loop_Pragma): New routine.
10992         (Prev_In_Loop): Removed.
10994 2014-02-19  Robert Dewar  <dewar@adacore.com>
10996         * par-ch6.adb (P_Return): For extended return, end column lines
10997         up with RETURN.
10998         * par.adb: Minor documentation clarification.
11000 2014-02-19  Yannick Moy  <moy@adacore.com>
11002         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
11003         that Loop_Invariant and Loop_Variant appear consecutively.
11004         * gnat_rm.texi Update documentation of Loop_Invariant and
11005         Loop_Variant pragmas.
11007 2014-02-19  Robert Dewar  <dewar@adacore.com>
11009         * debug.adb: Document -gnatd.X.
11010         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
11011         first token
11012         (Check_Then_Column): Ditto.
11013         * styleg.adb (Check_Then): Allow THEN on line after IF.
11014         (Check_Then): Check THEN placement under control of -gnatd.X
11015         * styleg.ads (Check_Then): Now called even if THEN is not first
11016         token on line.
11017         * stylesw.ads (Style_Check_If_Then_Layout): Document new
11018         relaxed rules.
11019         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
11021 2014-02-19  Robert Dewar  <dewar@adacore.com>
11023         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
11024         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
11025         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
11026         vms_conv.adb: Fix bad layout of IF statements
11028 2014-02-19  Robert Dewar  <dewar@adacore.com>
11030         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
11032 2014-02-19  Robert Dewar  <dewar@adacore.com>
11034         * exp_util.adb: Update comments.
11036 2014-02-19  Doug Rupp  <rupp@adacore.com>
11038         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
11039         * init.c (__gl_float_format): [VMS] New global.
11040         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
11041         representation in effect.
11043 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11045         * exp_ch6.adb Add with and use clause for Exp_Prag.
11046         (Expand_Contract_Cases): Relocated to Exp_Prag.
11047         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
11048         * exp_prag.adb Add with and use clauses for Checks and Validsw.
11049         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
11050         structure of the expanded code to showcase the evaluation of
11051         attribute 'Old prefixes. Add local variable Old_Evals. Expand
11052         any attribute 'Old references found within a consequence. Add
11053         circuitry to evaluate the prefixes of attribute 'Old that
11054         belong to a selected consequence.
11055         (Expand_Old_In_Consequence): New routine.
11056         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
11057         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
11058         potentially unevaluated prefix is always evaluated.
11060 2014-02-19  Robert Dewar  <dewar@adacore.com>
11062         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
11063         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
11064         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
11065         handling for the case of Modify_Tree_For_C, this approach did
11066         not work.
11067         * exp_util.adb (Matching_Standard_Type): New function
11068         (Side_Effect_Free): New top level functions (from
11069         Remove_Side_Effects).
11070         * exp_util.ads (Side_Effect_Free): New top level functions
11071         (moved from body).
11072         * sinfo.ads: Minor comment updates.
11074 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11076         * exp_ch6.adb (Expand_Simple_Function_Return): If return
11077         type is unconstrained and uses the secondary stack, mark the
11078         enclosing function accordingly, to ensure that the value is not
11079         prematurely removed.
11081 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11083         * par.adb Alphabetize the routines in Par.Sync.
11084         (Resync_Past_Malformed_Aspect): New routine.
11085         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
11086         variables. Code and comment reformatting. Detect missing
11087         parentheses on aspects [Refined_]Global and [Refined_]Depends
11088         with a non-null definition.
11089         * par-sync.adb: Alphabetize all routines in this separate unit.
11090         (Resync_Past_Malformed_Aspect): New routine.
11092 2014-02-19  Robert Dewar  <dewar@adacore.com>
11094         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
11095         if Esize values do not match.
11097 2014-02-19  Yannick Moy  <moy@adacore.com>
11099         * sinfo.ads: Minor comment update.
11101 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11103         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
11105 2014-02-19  Thomas Quinot  <quinot@adacore.com>
11107         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
11108         that has the No_Ctrl_Actions flag is a suitable node to be
11109         wrapped if the assigned expression has no finalization actions.
11110         * sem_eval.adb (Eval_Entity_Name): For a compile time known
11111         boolean value, mark the corresponding condition SCO as constant.
11113 2014-02-19  Robert Dewar  <dewar@adacore.com>
11115         * exp_util.adb: Minor reformatting.
11116         * exp_util.ads (Matching_Standard_Type): New function.
11117         * exp_ch7.adb: Minor reformatting.
11119 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11121         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
11122         to find declaration for Cursor, to handle properly the case of
11123         a discriminated iterable type.
11125 2014-02-19  Vincent Celier  <celier@adacore.com>
11127         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
11128         imported library projects with the library ALI dirs, when setting
11129         the object paths.
11130         * prj-env.ads (Ada_Objects_Path): Correct comments about
11131         argument Including_Libraries.
11133 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
11135         * gnat_rm.texi: Minor spelling fixes.
11137 2014-02-19  Doug Rupp  <rupp@adacore.com>
11139         * init.c: Remove unneeded code.
11140         * fe.h (Float_Format): New macro
11141         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
11143 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11145         * sem_prag.adb (Check_Refined_Global_Item):
11146         A state or variable acts as a constituent only it is part of an
11147         encapsulating state and the state has visible refinement.
11149 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11151         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
11152         postcondition for a function when the expression does not mention
11153         'Result but the function has in-out parameters.
11155 2014-02-19  Robert Dewar  <dewar@adacore.com>
11157         * gnat_rm.texi: Add documentation on Value_Size forcing biased
11158         representation.
11160 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11162         * lib-xref.ads Remove the small table of letter and symbol usage as we
11163         already have one.
11165 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11167         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
11168         messages depending on the offending misplaced aspect specifications.
11169         (Diagnose_Misplaced_Aspect_Specifications): New routine.
11171 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11173         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
11174         for iterable aspect primitives.
11175         (Resolve_Iterable_Operation): Use expected signature of iterable
11176         aspect to resolve primitive when overloading is present.
11177         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
11178         (Check_Signature): Removed.
11180 2014-02-19  Yannick Moy  <moy@adacore.com>
11182         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
11183         subunit in GNATprove_Mode.
11184         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
11186 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11188         * lib-xref.ads Alphabetize the contents of table
11189         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
11190         for E_Abstract_State. List all letters and symbols in use.
11191         * sem_prag.adb (Analyze_Abstract_State): Update all calls
11192         to Create_Abstract_State to reflect the new signature.
11193         (Create_Abstract_State): Change subprogram profile and update
11194         the comment on usage. Use the proper location of the state
11195         declaration when creating a new abstract state entity. Do not
11196         generate an external name, but simply reuse the name coming from
11197         the state declaration.
11199 2014-02-19  Robert Dewar  <dewar@adacore.com>
11201         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
11202         declarations get properly inserted in Modify_Tree_For_C mode.
11203         * sinfo.ads: Minor comment addition.
11205 2014-02-19  Robert Dewar  <dewar@adacore.com>
11207         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
11208         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
11210 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11212         * style.adb (Missing_Overriding): Warning does not apply in
11213         language versions prior to Ada 2005.
11214         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
11215         * sem_attr.adb: Add Attribute_Iterable where needed.
11216         * exp_attr.adb: ditto.
11217         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
11218         handle loops and quantified expressions over types that have an
11219         iterable aspect.  Called from Expand_Iterator_Loop.
11220         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
11221         with Iterable aspect.
11222         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
11223         subprograms specified in the Iterable aspect have the proper
11224         signature involving container and cursor.
11225         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
11226         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
11227         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
11228         New procedure to retrieve one of the primitives First, Last,
11229         or Has_Element, from the value of the iterable aspect of a
11230         formal container.
11231         (Is_Container_Element): Predicate to recognize expressions
11232         that denote an element of one of the predefined containers,
11233         for possible optimization.  This subprogram is not currently
11234         used, pending ARG discussions on the legality of the proposed
11235         optimization. Worth preserving for eventual use.
11236         (Is_Iterator): Recognize formal container types.
11237         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
11239 2014-02-19  Robert Dewar  <dewar@adacore.com>
11241         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
11242         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
11243         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
11244         declarations from list of actions.
11245         * output.ads, output.adb (Delete_Last_Char): New procedure.
11246         * sinfo.ads: Document handling of Mod and expression with actions
11247         in Modify_Tree_For_C mode.
11249 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
11251         * par-ch9.adb (P_Task): Add a null statement to produce a
11252         well-formed task body when due to a previous syntax error the
11253         statement list is empty.
11255 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
11257         * sem_prag.adb (Check_Dependency_Clause): Account
11258         for the case where a state with a non-null refinement matches a
11259         null output list. Comment reformatting.
11260         (Inputs_Match): Copy a solitary input to avoid an assertion failure
11261         when trying to match the same input in multiple clauses.
11263 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
11265         * sem_attr.adb: Minor typo fix.
11267 2014-02-18  Robert Dewar  <dewar@adacore.com>
11269         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
11270         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
11271         (Create_Standard): Create new unsigned types.
11272         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
11273         mode (Expand_N_Reference): Removed, problematic and not needed
11274         for now.
11275         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
11276         not needed for now.
11277         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
11278         * expander.adb: Remove call to Expand_N_Reference (problematic,
11279         and not needed now).
11280         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
11281         * stand.adb: Read and write unsigned type entities.
11282         * stand.ads: Add new unsigned types.
11284 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
11286         * sem_ch4.adb (Analyze_Call): Do not mark a function call
11287         as being inside an assertion expression as the flag is now removed.
11288         (Check_Ghost_Subprogram_Call): Do not query the
11289         In_Assertion_Expression flag as it is now removed, instead use
11290         a predicate function.
11291         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
11292         In_Assertion_Expression flag as it is now removed, instead use
11293         a predicate function.
11294         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
11295         * sem_util.adb Add with and use clause for Sem_Prag.
11296         (In_Assertion_Expression_Pragma): New routine.
11297         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
11298         * sinfo.adb (In_Assertion_Expression): Removed.
11299         (Set_In_Assertion_Expression): Removed.
11300         * sinfo.ads Remove flag In_Assertion_Expression along with its
11301         use in nodes.
11302         (In_Assertion_Expression): Removed along with
11303         pragma Inline.  (Set_In_Assertion_Expression): Removed along
11304         with pragma Inline.
11306 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
11308         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
11309         used together with '-r', '-rf' or '-rnb' options.
11311 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
11313         * sem_attr.adb (Analyze_Attribute): Comment
11314         and code reformatting. Use separate routines to check the
11315         legality of attribute 'Old in certain pragmas. Verify
11316         the use of 'Old, 'Result and locally declared entities
11317         within the prefix of 'Old.
11318         (Check_References_In_Prefix): New routine.
11319         (Check_Use_In_Contract_Cases): New routine.
11320         (Check_Use_In_Test_Case): New routine.
11322 2014-02-18  Vincent Celier  <celier@adacore.com>
11324         * sem_aux.adb (Is_By_Reference_Type): For each components of
11325         a record type, check also if the component is volatile as it
11326         may have an aspect that makes it volatile. If it is, then the
11327         record type is a by reference type.
11329 2014-02-18  Robert Dewar  <dewar@adacore.com>
11331         * exp_attr.adb: Minor reformatting.
11332         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
11333         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
11334         as another case where we don't generate N_Reference nodes for
11335         primitive types.
11336         * expander.adb (Expand): Add call to Expand_N_Reference.
11338 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11340         * sem_prag.adb (Analyze_Refined_Pragma): Remove
11341         local variable Pack_Spec. Refinement pragmas may now apply to
11342         bodies of both visible and private subprograms.
11344 2014-02-06  Robert Dewar  <dewar@adacore.com>
11346         * exp_attr.adb (Expand_Loop_Entry_Attribute):
11347         Minor change (Attr => N) (Expand_Pred_Succ): New name
11348         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
11349         Max): Expand into if expression if Modify_Tree_For_C mode.
11350         (Expand_N_Attribute_Reference, case Min): ditto
11351         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
11352         Max attributes.
11354 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11356         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
11357         predicate check if this is an internal declaration with
11358         No_Initialization set, as for an expanded aggregate component.
11360 2014-02-06  Doug Rupp  <rupp@adacore.com>
11362         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
11363         conditions with severity of "SUCCESS" or "INFORMATIONAL".
11365 2014-02-06  Yannick Moy  <moy@adacore.com>
11367         * sem_prag.adb (Analyze_Pragma): Analyze pragma
11368         Debug rewritten node before rewriting it as a null statement in
11369         GNATprove mode.
11371 2014-02-06  Robert Dewar  <dewar@adacore.com>
11373         * sem_attr.adb (Min_Max): New procedure.
11374         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
11375         procedure.
11377 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
11379         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
11380         gnatmetric/gnatpp.
11382 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11384         * sem_prag.adb (Analyze_Abstract_State): Update
11385         all calls to Create_Abstract_State to pass the proper state
11386         "declaration".
11387         (Create_Abstract_State): Add new formal parameter
11388         State_Decl along with comment on usage. Establish a link between
11389         the abstract state entity and the state declaration.
11391 2014-02-06  Robert Dewar  <dewar@adacore.com>
11393         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
11394         comparison of unordered enumeration type.
11395         (Analyze_Attribute, case Max): Check for improper comparison of
11396         unordered enumeration type.
11397         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
11398         sem_util.adb.
11399         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
11400         Moved here from Sem_Res.
11402 2014-02-06  Robert Dewar  <dewar@adacore.com>
11404         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
11405         reformatting.
11407 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11409         * sem_ch6.adb (Process_Formals): Error message reformatting.
11411 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11413         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
11414         variable Spec. Do not inherit the null indicator from the
11415         subprogram body when generating the spec.
11417 2014-02-06  Robert Dewar  <dewar@adacore.com>
11419         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
11420         mixed case.
11422 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11424         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
11425         when the function has a foreign convention, but not if only the
11426         limited return type has such a convention.
11428 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11430         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
11431         variable Spec. Comment reformatting. Use Copy_Separate_Tree
11432         rather than New_Copy_Tree when building the corresponding
11433         subprogram declaration.
11435 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11437         * sem_prag.adb (Analyze_Global_Item): Remove
11438         the mode-related checks on abstract states with enabled external
11439         properties.
11440         (Property_Error): Removed.
11442 2014-02-06  Javier Miranda  <miranda@adacore.com>
11444         * lib-xref.adb (Generate_Reference): When
11445         generating the reference to the first private entity take care
11446         of handling swapped entities.
11448 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
11450         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
11451         gnatmetric.
11453 2014-02-06  Robert Dewar  <dewar@adacore.com>
11455         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
11456         than the word size when operating in Modify_Tree_For_C mode.
11457         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
11459 2014-02-06  Robert Dewar  <dewar@adacore.com>
11461         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
11462         compare is case insensitive.
11463         * gnat_rm.texi: Document that string compare for Warnings Off
11464         is now case insensitive.
11466 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
11468         * gnat_rm.texi: Small wording tweak.
11470 2014-02-06  Pascal Obry  <obry@adacore.com>
11472         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
11473         and Included_Artifact_Patterns attribute definitions.
11475 2014-02-06  Yannick Moy  <moy@adacore.com>
11477         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
11478         SPARK_Mode pragma component for all subprograms, including stubs.
11480 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11482         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
11483         the configuration options of the enclosing context in a
11484         stack-like fasion.
11485         (Analyze_Subprogram_Body_Stub): Maintain the
11486         configuration options of the enclosing context in a stack-like
11487         fashion.
11489 2014-02-06  Robert Dewar  <dewar@adacore.com>
11491         * debug.adb: -gnatd.u sets Modify_Tree_For C
11492         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
11493         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
11494         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
11495         * exp_intr.adb (Expand_Shift): Call expander so we do
11496         Modify_Tree_For_C expansions.
11497         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
11498         if -gnatd.u set.
11500 2014-02-06  Fedor Rybin  <frybin@adacore.com>
11502         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
11503         after the phase 1 of the processing of each aggregated project
11504         to get access to project trees of aggregated projects.
11505         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
11506         If specified, On_New_Tree_Loaded is called after each aggregated
11507         project has been processed succesfully.
11508         (Process): new parameter On_New_Tree_Loaded.
11509         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
11510         callback added after processing of each aggregated project.
11511         (Recursive_Process): new parameter On_New_Tree_Loaded.
11512         (Process): new parameter On_New_Tree_Loaded.
11513         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
11514         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
11515         On_New_Tree_Loaded.
11516         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
11517         On_New_Tree_Loaded.
11519 2014-02-06  Bob Duff  <duff@adacore.com>
11521         * gnat_ugn.texi: Implement --insert-blank-lines and
11522         --preserve-blank-lines switches.
11524 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
11526         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
11527         gnatelim.
11529 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
11531         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
11532         of the pragma on individual objects.
11534 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11536         * einfo.adb Node29 is now used as BIP_Initialization_Call.
11537         (BIP_Initialization_Call): New routine.
11538         (Set_BIP_Initialization_Call): New routine.
11539         (Write_Field29_Name): Add an entry for constants and variables.
11540         * einfo.ads Add new attribute BIP_Initialization_Call and update
11541         its usage in nodes.
11542         (BIP_Initialization_Call): New routine along with pragma Inline.
11543         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
11544         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
11545         Add local declaration Res_Decl. Capture the build-in-place
11546         initialization call when the related object declaration has
11547         created a transient block.
11548         * exp_ch7.adb (Process_Transient_Objects): Add local variable
11549         Fin_Insrt. Recognize a scenario where an object declaration acts
11550         as a transient context and is initialized by a build-in-place
11551         function call.
11553 2014-02-06  Pascal Obry  <obry@adacore.com>
11555         * prj-util.adb (For_Interface_Sources): Fix handling of required
11556         bodies for aggregate libs.
11558 2014-02-06  Robert Dewar  <dewar@adacore.com>
11560         * nlists.ads: Minor comment clarifications.
11562 2014-02-06  Robert Dewar  <dewar@adacore.com>
11564         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
11565         if gnatd.V set.
11566         * opt.ads (Modify_Tree_For_C): New flag.
11567         * output.ads, output.adb (Last_Char): New function.
11569 2014-02-06  Pascal Obry  <obry@adacore.com>
11571         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
11572         share/gpr for cross-builds.
11574 2014-02-06  Robert Dewar  <dewar@adacore.com>
11576         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
11577         Minor reformatting and code clean ups.
11579 2014-02-06  Pascal Obry  <obry@adacore.com>
11581         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
11582         * prj.ads: Minor typo fix in comment.
11584 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11586         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
11587         local variable Expr. Flag clauses with extra parenthesis as this
11588         is not allowed by the syntax of the pragma. Code reformatting.
11590 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11592         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
11593         variables. Rename variabme Tnn to Temp. Do not create a temporary
11594         if assertions are disabled. Find enclosing routine _Postconditions
11595         and insert the temporary that captures the value of the prefix
11596         before the routine.
11597         * exp_ch6.adb (Build_Postconditions_Procedure):
11598         Insert the generated _Postconditions routine
11599         before the first source declaration of the related
11600         subprogram.
11601         (Insert_After_Last_Declaration): Removed.
11602         (Insert_Before_First_Source_Declaration): New routine.
11604 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11606         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
11607         Utility to determine whether current expansion is for the body
11608         of a predefined primitive operation.
11609         (Make_Predicate_Check): Use Within_Internal_Subpgram
11610         * checks.adb (Apply_Predicate_Check): Use
11611         Within_Internal_Subprogram
11612         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
11614 2014-02-06  Pascal Obry  <obry@adacore.com>
11616         * prj.ads, prj-util.adb: Minor reformatting.
11618 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11620         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
11621         Take into account the Split_PPC flag to ensure that conjuncts
11622         in a composite postcondition aspect are tested in source order.
11624 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11626         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
11627         use of SPARK_Mode.
11628         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
11629         illegal use of SPARK_Mode.
11630         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
11631         * sem_prag.adb (Analyze_Pragma): Code reformatting.
11632         * sem_util.adb Add with and use clause for Aspects.
11633         (Check_SPARK_Mode_In_Generic): New routine.
11634         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
11636 2014-02-06  Thomas Quinot  <quinot@adacore.com>
11638         * a-calend.adb (Formatting_Operations.Split): Ensure that
11639         Time_Error is raised for invalid time values.
11641 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
11643         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
11644         in GNATprove_Mode.
11646 2014-02-06  Robert Dewar  <dewar@adacore.com>
11648         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
11649         * exp_ch3.adb (Build_Dcheck_Function): Set
11650         Is_Discriminant_Check_Function.
11652 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11654         * exp_ch7.adb (Is_Subprogram_Call): Inspect
11655         the original tree in certain cases where a construct has been
11656         factored out and replaced by a reference to a temporary.
11658 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11660         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
11661         parameters when propagating predicate function to full view.
11662         (Find_Type_Of_Object): Freeze base type of object type to catch
11663         premature use of discriminated private type without a full view.
11665 2014-02-06  Robert Dewar  <dewar@adacore.com>
11667         * sprint.adb: Minor reformatting.
11669 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11671         * exp_ch4.adb (Process_Transient_Object): Add local variable
11672         Temp_Ins. When the transient object is initialized by an
11673         aggregate, the hook must capture the object after the last
11674         component assignment takes place.
11675         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
11676         routine Is_Subprogram_Call.
11677         (Is_Subprogram_Call): Inspect an
11678         aggregate that has been heavily expanded for subprogram calls.
11679         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
11680         and Temp_Ins.  Remove the nested declare block and adjust the
11681         indentation. When the transient object is initialized by an
11682         aggregate, the hook must capture the object after the last
11683         component assignment takes place.
11685 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11687         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
11688         external states with enabled properties that do not match the
11689         global mode.
11690         (Property_Error): New routine.
11691         * sem_res.adb (Property_Error): New routine.
11692         (Resolve_Actuals): Detect illegal uses of external variables with
11693         enabled properties in procedure calls that do not match the mode of
11694         the corresponding formal parameter.
11696 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11698         * sem_util.adb (Has_Enabled_Property): Rename
11699         formal parameter Prop_Nam to Property. Update the comment on usage
11700         and all occurrences in the body. Add local variable Prop_Nam. When
11701         inspecting a property with an expression, the property name
11702         appears as the first choice of the component association.
11704 2014-02-04  Robert Dewar  <dewar@adacore.com>
11706         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
11708 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
11710         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
11711         for consistency with other messages.
11713 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11715         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
11716         iterator, indicate that the element is a constant if the container
11717         type does not have a variable indexing aspect.
11718         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
11719         marked as constant, do not reset its Ekind, to ensure that
11720         container elements in an element loop are not modified if the
11721         container (e.g. a hashed set) only has a constant indexing aspect.
11723 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
11725         * g-souinf.ads: Subprograms in this unit are actually not pure.
11726         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
11727         * einfo.ads (Is_Pure): Update doc to match implementation.
11729 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
11731         * exp_ch13.adb: Minor spelling fix.
11733 2014-02-04  Robert Dewar  <dewar@adacore.com>
11735         * opt.ads: Minor comment update.
11737 2014-02-04  Robert Dewar  <dewar@adacore.com>
11739         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
11740         instead of Replace.
11742 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11744         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
11745         on null expressions if component type is non-null, when the
11746         corresponding association covers an empty range of index values.
11748 2014-02-04  Robert Dewar  <dewar@adacore.com>
11750         * sinfo.ads: Further comments on N_Expression_With_Actions node.
11752 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
11754         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
11755         variables Out_Items and Ref_Global. Remove local constant
11756         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
11757         and D8. Remove the useless collection of global items as this
11758         was a leftover from an earlier version of the routine. Move
11759         several routines out to avoid deep nesting and indentation.
11760         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
11761         parameter Do_Checks to Post_Errors. Update the comment on usage.
11762         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
11763         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
11764         to Post_Errors. Update the comment on usage. Account for the
11765         case where a self referential state may have a null input_list.
11766         (Is_Self_Referential): New routine.
11768 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11770         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
11771         entity renames an expression, as in the case of an object of
11772         an unconstrained type initialized by a function call, defer the
11773         rewriting of the expression to the expander.
11774         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11775         'Alignment): If the entity renames an expression, introduce
11776         temporary to capture value, and rewrite original declaration to
11777         use temporary.
11779 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
11781         * g-comlin.adb: Minor typo fix.
11783 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11785         * freeze.adb (Freeze_All): Types derived from a formal
11786         access_to_classwide type do not have a finalization master.
11788 2014-02-04  Robert Dewar  <dewar@adacore.com>
11790         * sprint.adb: Minor reformatting.
11792 2014-02-04  Robert Dewar  <dewar@adacore.com>
11794         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
11795         cases where Actions is a null list.
11796         * sinfo.ads (N_Expression_With_Actions): Actions can be
11797         temporarily empty during semantic analysis, but must be non-empty
11798         in the final expanded tree.
11800 2014-01-31  Robert Dewar  <dewar@adacore.com>
11802         * exp_ch9.adb: Minor reformatting.
11804 2014-01-31  Emmanuel Briot  <briot@adacore.com>
11806         * g-comlin.adb (Set_Command_Line): Take the switches
11807         configuration from the Command_Line_Config.
11809 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
11811         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
11812         refinement clause.
11814 2014-01-31  Vincent Celier  <celier@adacore.com>
11816         * projects.texi: Add more documentation about others used as an
11817         index in indexed attributes.
11819 2014-01-31  Robert Dewar  <dewar@adacore.com>
11821         * gnat_ugn.texi: Minor update.
11822         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
11823         * exp_util.adb: Minor reformatting.
11825 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11827         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
11828         depends on data that is not private to the protected object,
11829         and potentially modifiable in unsynchronized fashion.
11831 2014-01-31  Yannick Moy  <moy@adacore.com>
11833         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
11834         GNATprove_Mode.
11836 2014-01-31  Robert Dewar  <dewar@adacore.com>
11838         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
11839         for Unknown_Package.
11840         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
11842 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
11844         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
11845         the logic that generates a runtime check to determine the
11846         controlled status of the object about to be allocated or
11847         deallocated. Class-wide types now always use a runtime check
11848         even if they appear as generic actuals.
11849         (Find_Object): Detect
11850         a special case that involves interface class-wide types because
11851         the object appears as a complex expression.
11853 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11855         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
11856         subprogram with an incomplete untagged formals on the list of
11857         private dependents, to verify that the type is properly completed
11858         in the private part.
11859         * sem_attr.adb: Code clean up.
11861 2014-01-31  Robert Dewar  <dewar@adacore.com>
11863         * exp_ch6.adb: Minor reformatting.
11865 2014-01-31  Vincent Celier  <celier@adacore.com>
11867         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
11868         when Pkg is unknown.
11870 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
11872         * sem_res.adb (Resolve_Entity_Name): Comment
11873         reformatting. Allow volatile objects in various generated checks.
11875 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11877         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
11878         component association, set the etype of the identifier, for
11879         SPARK use.
11881 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11883         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
11884         declared in a package, not checks can apply to the subprogram.
11886 2014-01-31  Robert Dewar  <dewar@adacore.com>
11888         * erroutc.adb (Validate_Specific_Warnings): Warnings are
11889         controlled -gnatw.W.
11890         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
11891         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
11893 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
11895         * exp_disp.adb: Update comments.
11897 2014-01-31  Yannick Moy  <moy@adacore.com>
11899         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
11900         Save_Global_References): Guard access to expression in aspect.
11902 2014-01-31  Yannick Moy  <moy@adacore.com>
11904         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
11905         Issue an error when the pragma is applied to a generic unit,
11906         a generic declaration, or inside a generic.
11908 2014-01-31  Yannick Moy  <moy@adacore.com>
11910         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
11911         entity.
11913 2014-01-31  Robert Dewar  <dewar@adacore.com>
11915         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
11916         reformatting.
11918 2014-01-31  Tristan Gingold  <gingold@adacore.com>
11920         * exp_disp.adb: Add a historic note.
11922 2014-01-31  Robert Dewar  <dewar@adacore.com>
11924         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
11925         Process_Deferred_References.
11927 2014-01-31  Yannick Moy  <moy@adacore.com>
11929         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
11930         ineffective pragma Warnings(Off) in GNATprove_Mode.
11932 2014-01-31  Bob Duff  <duff@adacore.com>
11934         * s-taskin.ads: Minor comment fix.
11935         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
11936         just direct dependents. If this is actually an abort, each task
11937         will take care of aborting its dependents, so all dependents will
11938         get aborted, as before. However, when this is called the second
11939         time from Vulnerable_Complete_Master "for convenience" (i.e. to
11940         kill off tasks waiting at terminate alternatives), aborting
11941         indirect dependents is wrong, because it causes some unrelated
11942         tasks to get aborted.
11944 2014-01-31  Robert Dewar  <dewar@adacore.com>
11946         * sem_ch4.adb: Minor reformatting.
11948 2014-01-31  Robert Dewar  <dewar@adacore.com>
11950         * exp_ch2.adb: New calling sequence for Is_LHS.
11951         * frontend.adb: Add call to Process_Deferred_References.
11952         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
11953         (Deferred_References): New table.
11954         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
11955         entries.
11956         (Find_Expanded_Name): Ditto.
11957         * sem_res.adb: New calling sequence for Is_LHS.
11958         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
11959         * sem_warn.adb: Call Process_Deferred_References before issuing
11960         warnings.
11962 2014-01-31  Tristan Gingold  <gingold@adacore.com>
11964         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
11965         use of System_Tasking_Protected_Objects_Single_Entry.
11966         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
11967         of Protected_Single_Entry_Call.
11968         (Expand_N_Timed_Entry_Call): Remove single_entry case.
11969         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
11970         single_entry case.
11971         (Make_Disp_Timed_Select_Body): Likewise.
11972         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
11973         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
11974         Self_Id parameter.
11975         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
11976         (Wait_For_Completion_With_Timeout): Remove.
11977         (Protected_Single_Entry_Call): Remove Mode parameter
11978         (always Simple_Call).
11979         (Service_Entry): Remove Self_Id constant (not used anymore).
11980         (Timed_Protected_Single_Entry_Call): Remove.
11981         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
11982         (Protected_Single_Entry_Call): Remove Mode parameter.
11984 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11986         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
11987         * einfo.ads (Get_Pragma): Update the comment on special pragmas
11988         handled by this routine.
11989         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
11990         to the contract of the related subprogram body.
11991         * sem_util.adb (Add_Contract_Item): Handle the insertion of
11992         pragma Refined_Post into the contract of a subprogram body.
11993         * sinfo.ads Update the documentation of node N_Contract.
11994         * sem_res.adb (Resolve_Entity_Name): Add a guard
11995         to detect abstract states and variables only when checking the
11996         SPARK 2014 rules concerning volatile object placement.
11998 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12000         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
12001         null is compatible with any access type.
12003 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12005         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
12006         placement is not in a package.
12008 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12010         * sem_util.adb (Has_Enabled_Property): Compare the character field of
12011         the sole property.
12013 2014-01-29  Robert Dewar  <dewar@adacore.com>
12015         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
12016         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
12017         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
12019 2014-01-29  Robert Dewar  <dewar@adacore.com>
12021         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
12022         * sem_warn.adb (Check_References): Suppress warnings if inside
12023         Initial_Condition pragma.
12025 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12027         * sem_prag.adb (Check_Missing_Part_Of): List all values of
12028         State_Space_Kind for readability reasons. Do not emit an error on
12029         a private item when the enclosing package lacks aspect/pragma
12030         Abstract_State. Do not emit an error on a private package
12031         instantiation when the corresponding generic template lacks
12032         visible state.
12033         (Has_Visible_State): New routine.
12034         * sem_util.adb (Find_Placement_In_State_Space): The visible
12035         declarations of any kind of child units in general act as proper
12036         placement location.
12038 2014-01-29  Robert Dewar  <dewar@adacore.com>
12040         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
12041         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
12042         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
12043         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
12044         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
12045         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
12046         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
12047         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
12048         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
12049         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
12050         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
12051         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
12052         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
12053         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
12054         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
12055         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
12056         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
12057         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
12058         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
12059         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
12060         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
12061         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
12062         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
12063         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
12064         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
12065         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
12066         s-regpat.adb, s-secsta.adb, s-stalib.ads,
12067         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
12068         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
12069         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
12070         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
12071         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
12073 2014-01-29  Robert Dewar  <dewar@adacore.com>
12075         * expander.adb: Minor reformatting.
12077 2014-01-29  Javier Miranda  <miranda@adacore.com>
12079         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
12080         previous patch.
12082 2014-01-29  Javier Miranda  <miranda@adacore.com>
12084         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
12085         that checks if an interface types defines the predefined "="
12086         function because the compiler was erroneously not generating the
12087         predefined "=" primitive as soon as the name of some interface
12088         primitive is "=" (formals were not checked).
12090 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12092         * expander.adb (Expander): In GNATprove mode, do not process
12093         transient scopes: they are in general not created in this mode,
12094         and an attempt to examine them will lead to constraint errors when
12095         processing configuration pragmas that have analyzable expressions.
12097 2014-01-29  Vincent Celier  <celier@adacore.com>
12099         * clean.adb (Gnatclean): Fail if main project is an aggregate
12100         project or if there is an aggregate library project in the
12101         project tree.
12102         * gnatcmd.adb: Fail if the main project is an aggregate project
12103         or if there is an aggegate library project in the project tree.
12104         * make.adb (Initialize): : Fail if main project is an aggregate
12105         project or if there is an aggregate library project in the
12106         project tree.
12107         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
12108         * prj-makr.adb (Initialize): Fail if the main project is an
12109         aggregate project or an aggregate library project.
12111 2014-01-29  Vincent Celier  <celier@adacore.com>
12113         * prj-part.adb (Check_Import_Aggregate): New procedure
12114         to check if an imported project is an aggregate project.
12115         (Parse_Single_Project): Call Check_Import_Aggregate
12116         * projects.texi: Document that aggregate projects cannot be
12117         extended or imported.
12119 2014-01-29  Robert Dewar  <dewar@adacore.com>
12121         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
12122         reformatting and code clean up.
12123         * gnat_ugn.texi: Add documentation section on Atomic Variables
12124         and Optimization.
12126 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12128         * einfo.adb Flag264 is now unused.
12129         (Has_Body_References): Removed.
12130         (Set_Has_Body_References): Removed.
12131         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
12132         * einfo.ads Update the comment on usage of attribute
12133         Body_References. Remove attribute Has_Body_References and its
12134         usage in nodes.
12135         (Has_Body_References): Removed along with pragma Inline.
12136         (Set_Has_Body_References): Removed along with pragma Inline.
12137         * sem_prag.adb (Analyze_Global_Item): Move the call to
12138         Record_Possible_Body_Reference in the state related checks
12139         section. Add a comment intended function.
12140         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
12141         in the state related checks section. Add a comment intended function.
12142         (Analyze_Refinement_Clause): Cleanup the illegal body reference
12143         reporting. Add a comment on timing of error reporting.
12144         (Record_Possible_Body_Reference): Reimplement the routine.
12146 2014-01-29  Vincent Celier  <celier@adacore.com>
12148         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
12149         unit-based languages.
12150         (Mains.Complete_Mains.Do_Complete): Use the source file project
12151         tree when calling Find_File_Add_Extension. Use the correct
12152         project name when reporting an error.
12154 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
12156         * aspects.adb Add an entry for aspect Part_Of in table
12157         Canonical_Aspect.
12158         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
12159         Aspect_Argument, Aspect_Names and Aspect_Delay.
12160         * atree.h Define Elist9.
12161         * atree.adb (Elist9): New routine.
12162         (Set_Elist9): New routine.
12163         * atree.ads (Elist9): New routine.
12164         (Set_Elist9): New routine.
12165         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
12166         the list of node usage.  Remove Refined_State from the list of
12167         node usage.
12168         (Encapsulating_State): New routine.
12169         (Get_Pragma):
12170         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
12171         (Refined_State): Removed.
12172         (Set_Encapsulating_State): New routine.
12173         (Set_Part_Of_Constituents): New routine.
12174         (Set_Refined_State): Removed.
12175         (Write_Field9_Name): Add an entry
12176         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
12177         Encapsulating_State. Remove the entry for Refined_State.
12178         * einfo.ads Add new attributes Encapsulating_State
12179         and Part_Of_Constituents alond with their usage in
12180         entities. Remove attribute Refined_State along with its
12181         usage in entities.
12182         (Encapsulating_State): New routine and
12183         pragma Inline.  (Get_Pragma): Update the comment on usage.
12184         (Part_Of_Constituents): New routine and pragma Inline.
12185         (Refined_State): Removed along with pragma Inline.
12186         (Set_Encapsulating_State): New routine and pragma Inline.
12187         (Set_Part_Of_Constituents): New routine and pragma Inline.
12188         (Set_Refined_State): Removed along with pragma Inline.
12189         * par-prag.adb Pragma Part_Of does not need any special processing
12190         by the parser.
12191         * sem_ch3.adb (Analyze_Declarations): Remove local variables
12192         Body_Id and Prag. Call separate routines to analyze the
12193         contract of a package [body].
12194         (Analyze_Object_Contract):
12195         Update the comment on usage. Remove local variables
12196         Items and Nam. Use Get_Pragma rather than traversing the
12197         classification list.  Verify whether the lack of indicator
12198         Part_Of agrees with the placement of the variable in state space.
12199         (Analyze_Object_Declaration): Initialize the encapsulating state
12200         of a variable.  (Requires_State_Refinement): Moved to sem_util.
12201         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
12202         (Analyze_Package_Contract): New routine.
12203         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
12204         (Analyze_Package_Contract): New routine.
12205         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
12206         state and Part_Of constituents.
12207         * sem_ch13.adb (Analyze_Aspect_Specifications):
12208         Add processing for aspect Part_Of. Update all
12209         calls to Decorate_Delayed_Aspect_And_Pragma.
12210         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
12211         not need any special processing at freeze time.
12212         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
12213         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
12214         update the associated comment.
12215         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
12216         (Analyze_Abstract_State): Add new global variable State_Id. Remove
12217         local constants Errors and Loc. Remove local variables Is_Null
12218         and State_Nam. Create the entity of the abstract state on the
12219         spot, before all remaining checks are performed. Verify that a
12220         missing Part_Of option agrees with the placement of the abstract
12221         state within the state space.
12222         (Analyze_Depends_In_Decl_Part):
12223         Add new global variables Constits_Seen and States_Seen. Check
12224         that a state and a corresponding constituent do not appear
12225         in pragma [Refined_]Depends.
12226         (Analyze_Global_In_Decl_Part):
12227         Add new global variables Constits_Seen and States_Seen. Check
12228         that a state and a corresponding constituent do not appear
12229         in pragma [Refined_]Global.
12230         (Analyze_Global_Item):
12231         Remove the now obsolete code that deals with Part_Of.
12232         Add the entity of the global item to the list of processed
12233         items.  (Analyze_Initializes_In_Decl_Part): Add new global
12234         variables Constits_Seen and States_Seen. Check that a state
12235         and a corresponding constituent do not appear in pragma
12236         Initializes.
12237         (Analyze_Initialization_Item): Add the entity
12238         of the initialization item to the list of processed items.
12239         (Analyze_Input_Item): Add the entity of the initialization
12240         item to the list of processed items.
12241         (Analyze_Input_Output):
12242         Remove the now obsolete code that deals with Part_Of.  Add the
12243         entity of the input/output to the list of processed items.
12244         (Analyze_Part_Of): New routine.
12245         (Analyze_Part_Of_Option): Remove
12246         local constant Par_State. Add local constant Encaps and local
12247         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
12248         the option. Turn the related state into a Part_Of constituent
12249         if the option is legal.
12250         (Analyze_Pragma): Add processing
12251         for pragma Part_Of.
12252         (Analyze_Refined_State_In_Decl_Part):
12253         Remove global constants Pack_Body and Spec_Id. Remove
12254         global variables Abstr_States and Hidden_States. Add new
12255         global variables Available_States, Body_Id, Body_States and
12256         Spec_Id. Add new local constant Body_Decl. Reimplement the
12257         logic that extracts the states available for refinement from
12258         the related package and the body hidden states of the said
12259         package.
12260         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
12261         (Check_Applicable_Policy): Alphabetize body.
12262         (Check_Dependency_Clause): Replace Refined_State
12263         with Encapsulating_State.
12264         (Check_Matching_Constituent):
12265         Reimplement the logic that determines whether an item is a valid
12266         / invalid constituent of the current refined state. Return when
12267         a construct does not denote a valid abstract state. Extract the
12268         list of Part_Of constituents for further analysis. Check that all
12269         Part_Of constituents of a state have been used in its refinement.
12270         (Check_Matching_State): Update the comment on usage. Operate
12271         on the list of available states.
12272         (Check_Missing_Part_Of): New routine.
12273         (Check_Refined_Global_Item): Replace Refined_State
12274         with Encapsulating_State.
12275         (Check_State_And_Constituent_Use): New routine.
12276         (Create_Abstract_State): New routine.
12277         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
12278         (Is_Part_Of): Removed.
12279         (Collect_Body_States): New routine.
12280         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
12281         (Collect_Hidden_States): Removed.
12282         (Report_Unrefined_States): Change the profile of the procedure along
12283         with the comment on usage.
12284         (Report_Unused_Constituents): New routine.
12285         (Report_Unused_Hidden_States): Removed.
12286         (Report_Unused_States): New routine.
12287         * sem_prag.ads (Check_Missing_Part_Of): New routine.
12288         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
12289         appear in the classification pragmas of a package instantiation
12290         or a variable.
12291         (Find_Placement_In_State_Space): New routine.
12292         (Is_Child): Removed.
12293         (Is_Child_Or_Sibling): Remove formal
12294         parameter Private_Child. Remove the private child checks.
12295         (Requires_State_Refinement): Moved from sem_ch3.
12296         * sem_util.ads Add new type State_Space_Kind along with
12297         comment on its usage and values.
12298         (Add_Contract_Item): Update the comment on usage.
12299         (Find_Body_Discriminal): Alphabetize spec.
12300         (Find_Placement_In_State_Space): New routine.
12301         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
12302         and update the comment on usage.
12303         (Requires_State_Refinement): Moved from sem_ch3.
12304         * sinfo.ads: Update the documentation of N_Contract.
12305         * snames.ads-tmpl The predefined name for Part_Of is now used
12306         to denote a pragma. Add Pragma_Id for Part_Of.
12308 2014-01-29  Emmanuel Briot  <briot@adacore.com>
12310         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
12311         machine as needed.
12312         (Dump): New subprogram.
12314 2014-01-29  Tristan Gingold  <gingold@adacore.com>
12316         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
12317         Expand_Entry_Declaration to factorize code.
12319 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12321         * checks.adb: minor clarification.
12322         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
12323         search for primitive operations to the entities that immediately
12324         follow the type declaration.
12326 2014-01-29  Tristan Gingold  <gingold@adacore.com>
12328         * exp_ch9.adb (Build_Protected_Entry): Do not call
12329         Complete_Entry_Body anymore.
12330         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
12331         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
12333 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
12335         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
12336         string when the Name input bigger than allowed. Adapt the function
12337         specification.
12339 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12341         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
12342         if expression is within a case_expression of if_expression.
12344 2014-01-29  Robert Dewar  <dewar@adacore.com>
12346         * exp_ch9.adb, inline.ads: Minor reformatting.
12348 2014-01-29  Tristan Gingold  <gingold@adacore.com>
12350         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
12352 2014-01-29  Yannick Moy  <moy@adacore.com>
12354         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
12355         SPARK_Mode_Pragma components to be able to analyze generic
12356         instance.
12357         * sem_ch12.adb (Analyze_Package_Instantiation,
12358         Inline_Instance_Body, Need_Subprogram_Instance_Body,
12359         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
12360         for future analysis of the instance.
12361         (Instantiate_Package_Body,
12362         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
12363         from instantiation to analyze the instance.
12365 2014-01-29  Robert Dewar  <dewar@adacore.com>
12367         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
12368         reorganization.
12370 2014-01-29  Yannick Moy  <moy@adacore.com>
12372         * gnat_rm.texi: Update description of SPARK_Mode pragma.
12374 2014-01-29  Tristan Gingold  <gingold@adacore.com>
12376         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
12378 2014-01-29  Thomas Quinot  <quinot@adacore.com>
12380         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
12382 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
12384         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
12385         resulting string is an internal entity. and thus requires no
12386         initialization. This is relevant when Initialize_ Scalars is
12387         enabled, because the resultant spurious initialization may lead to
12388         secondary stack anomalies that produce a mangled name for a task.
12390 2014-01-29  Yannick Moy  <moy@adacore.com>
12392         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
12393         not inherited from spec anymore. Check consistency
12394         rules after processing of declarations.
12395         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
12396         from spec anymore. Check consistency rules after processing of
12397         declarations.
12398         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
12399         packages.
12400         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
12401         consistency rules.
12403 2014-01-27  Robert Dewar  <dewar@adacore.com>
12405         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
12406         to unordered msg.
12407         (Resolve_Range): Add type name/location to unordered msg.
12409 2014-01-27  Claire Dross  <dross@adacore.com>
12411         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
12412         Capacity) is only called with Capacity >= Length (Source) and
12413         Capacity in Capacity_Range.
12414         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
12415         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
12416         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
12417         in the code is this is not the case.
12419 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12421         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
12422         selected component in an instance where the component of the
12423         actual is not visibile at instantiation.
12425 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12427         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
12428         has a dynamic predicate, generate freeze node for Actual_Subtype
12429         at once, because the declaration of the corresponding predicate
12430         function will make reference to it.
12432 2014-01-27  Tristan Gingold  <gingold@adacore.com>
12434         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
12436 2014-01-27  Robert Dewar  <dewar@adacore.com>
12438         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
12439         for 2**X optimization.
12441 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12443         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
12444         explicitly whether value is in range of Character, because the
12445         library is typically compiled with range checks disabled, and
12446         we cannot rely on the implicit check on the argument of 'Val.
12448 2014-01-27  Vincent Celier  <celier@adacore.com>
12450         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
12451         not the Target to itself.
12453 2014-01-27  Robert Dewar  <dewar@adacore.com>
12455         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
12456         changes to avoid incorrect use of unordered enum types.
12458 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12460         * sem_ch4.adb: Minor reformatting.
12462 2014-01-27  Robert Dewar  <dewar@adacore.com>
12464         * scn.adb (Check_End_Of_Line): Removed.
12465         (Error_Long_Line): Removed.
12466         (Determine_License): Use versions of above routines from Scanner.
12467         * scng.adb (Check_End_Of_Line): Moved to spec.
12468         (Error_Long_Line): Removed, no longer used.
12469         * scng.ads (Check_End_Of_Line): Moved here from body.
12471 2014-01-27  Tristan Gingold  <gingold@adacore.com>
12473         * exp_ch7.adb (Build_Cleanup_Statements): Call
12474         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
12475         for protected body.
12476         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
12477          Remove Service_Name variable.
12478         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
12479         factorize code from the above subprograms.
12480         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
12482 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
12484         * einfo.adb (Has_Option): Reimplemented.
12485         * sem_prag.adb (Analyze_Refinement_Clause): Add global
12486         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
12487         External_Constit_Seen and State. Add local variables Body_Ref,
12488         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
12489         avoid a cumbersome while pool. Verify the legality of an external
12490         state and relevant properties.
12491         (Check_External_Property): New routine.
12492         (Check_Matching_State): Remove parameter profile
12493         and update comment on usage.
12494         (Collect_Constituent): Store the
12495         relevant external property of a constituent.
12496         * sem_util.adb (Async_Readers_Enabled): Update the call to
12497         Has_Enabled_Property.
12498         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
12499         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
12500         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
12501         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
12502         Update comment on usage. Reimplement the logic to recognize the various
12503         formats of properties.
12505 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12507         * par-ch5.adb: Minor reformatting.
12509 2014-01-27  Tristan Gingold  <gingold@adacore.com>
12511         * s-tposen.ads: Harmonize style and comments.
12513 2014-01-27  Vincent Celier  <celier@adacore.com>
12515         * projects.texi: Document that shared library projects, by
12516         default, cannot import projects that are not shared library
12517         projects.
12519 2014-01-27  Robert Dewar  <dewar@adacore.com>
12521         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
12522         of Rewrite.
12524 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12526         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
12527         any other exception is raised.
12528         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
12529         still necessary to perform a conversion in order to remove overlong
12530         encodings.
12532 2014-01-27  Robert Dewar  <dewar@adacore.com>
12534         * exp_smem.adb: Minor reformatting.
12536 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12538         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
12540 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12542         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
12543         nodes for operands to the original node for the call, to preserve
12544         Original_Node pointers within the resolved operands, given that
12545         they may have been rewritten as well. Previous approach copied
12546         the operands into a new tree and lost those pointers.
12548 2014-01-27  Claire Dross  <dross@adacore.com>
12551         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
12553 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12555         * sem_util.adb (Check_Internal_Protected_Use): A call through
12556         an anonymous access parameter of the current protected function
12557         is not a potential modification of the current object.
12559 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12561         * a-cobove.adb (Reserve_Capacity): Procedure raises
12562         Capacity_Error, not Constraint_Error, when request cannot be
12563         satisfied.
12565 2014-01-27  Vincent Celier  <celier@adacore.com>
12567         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
12568         not the Target to itself.
12570 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12572         * exp_ch4.adb (Expand_Concatenate): If the target of the
12573         concatenation is a library-level entity, always use the off-line
12574         version of concatenation, regardless of optimization level. This
12575         is space-efficient, and prevents linking problems when some
12576         units are compiled with different optimization levels.
12578 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12580         * sem_ch5.adb: Code clean up.
12582 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12584         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
12585         when an array or container iterator includes a subtype indication,
12586         which is only legal in an element iterator.
12588 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12590         * exp_ch7.adb: Minor reformatting.
12592 2014-01-27  Robert Dewar  <dewar@adacore.com>
12594         * opt.adb (SPARK_Mode): Default for library units is None rather
12595         than Off.
12596         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
12597         no longer ordered.
12598         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
12599         possibility.
12600         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
12602 2014-01-27  Robert Dewar  <dewar@adacore.com>
12604         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
12605         Suspicious_Labels table if we have identifier; followed by loop
12606         or block.
12607         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
12608         * par.adb (Suspicious_Labels): New table.
12610 2014-01-27  Robert Dewar  <dewar@adacore.com>
12612         * exp_aggr.adb (Check_Bounds): Reason is range check, not
12613         length check.
12615 2014-01-27  Yannick Moy  <moy@adacore.com>
12617         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
12618         reference.
12619         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
12620         function now.
12621         (Add_SPARK_Xrefs): Include references to constants.
12622         * spark_xrefs.ads Document new character 'c' for references to
12623         constants.
12625 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12627         * exp_smem.adb (Add_Write_After): For a function call, insert write as
12628         an after action in a transient scope.
12630 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12632         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
12633         to a shared variable as an OUT formal in a call to an init proc,
12634         the 'Read call must be emitted after, not before, the call.
12636 2014-01-27  Robert Dewar  <dewar@adacore.com>
12638         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
12640 2014-01-27  Robert Dewar  <dewar@adacore.com>
12642         * a-wichha.adb (Character_Set_Version): Change to output proper
12643         value.
12645 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
12647         * einfo.adb (Is_Input_Only_State): Removed.
12648         (Is_Non_Volatile_State): Removed.
12649         (Is_Output_State): Removed.
12650         * einfo.ads (Is_Input_Only_State): Remove attribute and
12651         subprogram. Update related entity.
12652         (Is_Non_Volatile_State):
12653         Remove attribute and subprogram. Update related entity.
12654         (Is_Output_State): Removed attribute and subprogram. Update
12655         related entity.
12656         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
12657         generated code.
12658         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
12659         an object, not just variables.
12660         (Analyze_Object_Contract): New routine.
12661         (Analyze_Variable_Contract): Removed.
12662         (Process_Discriminants): Detect an illegal use of volatile
12663         discriminant in SPARK mode.
12664         * sem_ch5.adb (Analyze_Iterator_Specification):
12665         Detect an illegal use of volatile loop variable.
12666         (Analyze_Loop_Parameter_Specification): Detect an illegal use
12667         of volatile loop variable.
12668         * sem_ch6.adb (Process_Formals): Update the volatile object
12669         detection. Detect an illegal formal of mode IN OUT or OUT in
12670         SPARK mode. Enhance the error messages with references.
12671         * sem_ch12.adb (Instantiate_Object): Update the volatile object
12672         detection. Enhance the error messages with references.
12673         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
12674         messages with references.
12675         (Analyze_Contract_Case): Enhance the error messages with references.
12676         (Analyze_External_Property): Call Check_Duplicate_Property to process
12677         an external property.
12678         (Analyze_External_Property_In_Decl_Part): New routine.
12679         (Analyze_External_State_In_Decl_Part): Removed.
12680         (Analyze_Global_Item): Detect an illegal
12681         use of a volatile constant. Detect an illegal use
12682         of a variable with enabled Effective_Reads. Enhance
12683         the error messages with references. Remove obsolete
12684         checks concerning Input_Only and Output_Only states.
12685         (Analyze_Initialization_Item): Enhance the error messages
12686         with references.
12687         (Analyze_Initializes_In_Decl_Part): Do not
12688         collect the states and variables when the initialization list
12689         is null.
12690         (Analyze_Input_Item): Enhance the error messages with references.
12691         (Analyze_Input_Output): Enhance the error messages with references.
12692         (Analyze_Pragma): Enhance the error messages with references.
12693         (Analyze_Refinement_Clause): Code reformatting.
12694         (Analyze_Refined_Depends_In_Decl_Part):
12695         Rename global variable Global to Reg_Global and update all
12696         occurrences. Add local variables D7 and D8. Update the error
12697         messages with references. Update the call to Collect_Global_Items.
12698         (Analyze_Refined_Global_In_Decl_Part): Add local variables
12699         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
12700         the call to Collect_Global_Items.  Account for a Proof_In state
12701         in null / useless refinement checks. Verify the coverage of
12702         Proof_In states.
12703         (Check_Dependency_Clause): Remove local variable
12704         Out_Constits. Remove the retrieval and removal of constituents
12705         for an Output_Only state. Remove the reporting of unused
12706         Output_Only state constituents.
12707         (Check_Duplicate_Mode): Enhance
12708         the error message with a reference.
12709         (Check_Duplicate_Property): New routine.
12710         (Check_Duplicate_Option): Enhance the error message with a reference.
12711         (Check_External_Properties): Enhance the error message with a reference.
12712         (Check_Function_Return): Enhance the error message with a reference.
12713         (Check_In_Out_States): Update
12714         comment on usage. Add a specialized error message for Proof_In
12715         constituents. Enhance the error message with a reference.
12716         (Check_Input_States): Update comment on usage. Account for
12717         possible Proof_In constituents. Enhance the error message
12718         with a areference.
12719         (Check_Matching_Constituent): Enhance the error message with a
12720         reference.
12721         (Check_Matching_State): Enchance the error message with a reference.
12722         (Check_Mode): Add local variable From_Global. Update the call to
12723         Find_Mode.  Emit more precise error messages concerning extra items
12724         (Check_Mode_Restriction_In_Enclosing_Context): Consider
12725         pragma Refined_Global.  Enhance the error message with a
12726         reference.
12727         (Check_Mode_Restriction_In_Function): Enhance the error message with
12728         a reference.
12729         (Check_Output_States): Update comment on usage. Add local variable
12730         Posted.  Account for possible Proof_In constituents. Produce a detailed
12731         list of missing constituents.
12732         (Check_Proof_In_States): New routine.
12733         (Check_Refined_Global_Item): Handle Proof_In
12734         constituents. Enchance the error message with a reference.
12735         (Collect_Global_Items): Add formal parameters Proof_In_Items
12736         and Has_Proof_In_State. Update the comment on usage. Account
12737         for Proof_In items.
12738         (Create_Or_Modify_Clause): Enchance
12739         the error message with a reference.
12740         (Find_Mode): Add
12741         formal parameter From_Global. Update the comment on usage.
12742         Detect when the mode is governed by pragma [Refined_]Global.
12743         (Output_Constituents): Removed.
12744         (Report_Extra_Constituents):
12745         Report extra Proof_In constituents.
12746         (Report_Unused_Constituents): Removed.
12747         (Usage_Error): Code reformatting. Enhance the error
12748         messages with reference.
12749         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
12750         (Analyze_External_State_In_Decl_Part): Removed.
12751         * sem_res.adb (Resolve_Actuals): Update the volatile object
12752         detection. Enhance the error message with a reference.
12753         (Resolve_Entity_Name): Update the volatile object
12754         detection. Enhance the error message with a reference.
12755         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
12756         (Is_SPARK_Volatile_Object): New routine.
12757         (Has_Volatile_Component): New routine.
12758         * sem_util.ads (Is_Delegate): Alphabetized.
12759         (Is_SPARK_Volatile_Object): New routine.
12760         (Has_Volatile_Component): New routine.
12761         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
12763 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12765         * sem_attr.adb: Resolve fully prefix of 'Update.
12767 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
12769         * gnat_rm.texi: Minor clarifications.
12771 2014-01-27  Robert Dewar  <dewar@adacore.com>
12773         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
12774         about call that is generated as part of an Initial_Condition
12775         check.
12776         * sem_prag.adb: Minor spelling correction.
12778 2014-01-27  Robert Dewar  <dewar@adacore.com>
12780         * sem_prag.adb (Set_Convention_From_Pragma): Check that
12781         convention Ghost can only apply to functions.
12782         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
12784 2014-01-27  Robert Dewar  <dewar@adacore.com>
12786         * gnat_ugn.texi: Add Short_Enums to documentation of
12787         -gnatet/-gnateT.
12789 2014-01-27  Robert Dewar  <dewar@adacore.com>
12791         * sem_prag.adb (Analyze_Input_Item): Correct check for input
12792         item in same package.
12793         * sem_util.ads, sem_util.adb (Within_Scope): New function.
12795 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
12797         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
12798         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
12799         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
12800         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
12801         maintained.
12803 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
12805         * gcc-interface/Makefile.in: Fix oversight.
12807 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
12809         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
12810         conversion from a thin pointer with a shifted value.
12811         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
12812         read-only flag from the values onto the result.
12813         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
12815 2014-01-25  Tristan Gingold  <gingold@adacore.com>
12817         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
12818         for E_Variable with a pragma Linker_Section.
12820 2014-01-25  Robert Dewar  <dewar@adacore.com>
12822         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
12823         with Default_Value aspect is passed in by copy.
12825 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12827         * set_targ.adb: Set Short_Enums.
12828         * gcc-interface/lang.opt (fshort-enums): New option.
12829         * gcc-interface/misc.c (gnat_handle_option): Handle it.
12830         (gnat_post_options): Do not modify the global settings.
12832 2014-01-24  Robert Dewar  <dewar@adacore.com>
12834         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
12835         function.
12836         (Random_Decimal_Fixed): New generic function.
12837         * s-rannum.ads: Minor comment clarifications.
12839 2014-01-24  Robert Dewar  <dewar@adacore.com>
12841         * back_end.adb: Remove Short_Enums handling (handled in
12842         Ttypes/Get_Targ now) Minor added comments.
12843         * freeze.adb: Change name Short_Enums_On_Target to
12844         Target_Short_Enums.
12845         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
12846         * opt.ads: Minor comment updates.
12847         * sem_ch13.adb: Change name Short_Enums_On_Target to
12848         Target_Short_Enums.
12849         * set_targ.adb: Set Short_Enums from gcc back end.
12850         * set_targ.ads (Short_Enums): New variable.
12851         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
12852         Ttypes/Get_Targ now).
12853         * ttypes.ads (Target_Short_Enums): New constant boolean switch
12855 2014-01-24  Pascal Obry  <obry@adacore.com>
12857         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
12859 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
12861         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
12862         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
12863         stripped off.
12865 2014-01-24  Robert Dewar  <dewar@adacore.com>
12867         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
12869 2014-01-24  Vincent Celier  <celier@adacore.com>
12871         * prj.adb (Add_Aggregated_Project): Do not add a project in
12872         the list if it is already there.
12874 2014-01-24  Yannick Moy  <moy@adacore.com>
12876         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
12877         Correct the search for a subrogram declaration to which a pragma is
12878         attached.
12880 2014-01-24  Bob Duff  <duff@adacore.com>
12882         * gnat_ugn.texi: Document --decimal-grouping and
12883         --based-grouping switches in gnatpp.
12885 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12887         * sinfo.ads: Documentation update.
12889 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12891         * sem_ch3.adb (Constant_Redeclaration): New declaration is
12892         illegal if previous one has an initial expression that is an
12893         aggregate expanded into assignments.
12895 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12897         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
12898         code reorganization to remove spurious warning on a loop with
12899         an array element iterator that has a null range.
12901 2014-01-24  Vincent Celier  <celier@adacore.com>
12903         * make.adb (Binding_Phase): When setting the Ada paths, use
12904         the library ALI dir, not the object dir in libraries.
12906 2014-01-24  Yannick Moy  <moy@adacore.com>
12908         * sinfo.ads: Add documentation of check flag fields.
12910 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12912         * sem_res.adb (Resolve_Actuals): If an actual is a view
12913         conversion of a discriminated object, and the formal type is
12914         discriminated and constrained, apply a discriminant check to
12915         the object itself.
12917 2014-01-24  Robert Dewar  <dewar@adacore.com>
12919         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
12921 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12923         * sem_ch3.adb (Analyze_Declarations): At the end of an
12924         appropriate declarative part, call Freeze_All from the first
12925         declaration in the scope, not from the first unfrozen one. This
12926         is necessary to apply visibility checks to entities with delayed
12927         aspects. Otherwise, in the presence of instantiations and cleanups
12928         that they may generate, the delayed aspects may be analyzed too
12929         late and produce spurious visibility errors.
12930         * sem_attr.adb: Place etype on range.
12931         * sem_ch6.adb: Documentation expression functions.
12933 2014-01-24  Robert Dewar  <dewar@adacore.com>
12935         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
12936         terminology in compiler).
12938 2014-01-24  Robert Dewar  <dewar@adacore.com>
12940         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
12941         categories, now that Ada 95 supports raise expressions.
12943 2014-01-24  Robert Dewar  <dewar@adacore.com>
12945         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
12946         Short_Enums_On_Target.
12947         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
12948         into account.
12949         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
12951 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12953         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
12954         indication is given explicity, check that it matches the array
12955         component type or the container element type of the domain
12956         of iteration.
12958 2014-01-24  Tristan Gingold  <gingold@adacore.com>
12960         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
12961         * gcc-interface/misc.c (flag_short_enums): Declare.
12962         (gnat_post_options): Set it.
12964 2014-01-24  Vincent Celier  <celier@adacore.com>
12966         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
12967         to cache the result when Including_Libraries is False.
12968         * prj-env.ads (Ada_Objects_Path): Update documentation
12969         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
12970         (Get_Object_Directory): Return the Library_Ali_Dir only when
12971         when Including_Libraries is True.
12972         * prj.ads (Get_Object_Directory): Fix and complete documentation
12973         (Project_Data): New component Ada_Objects_Path_No_Libs
12975 2014-01-24  Robert Dewar  <dewar@adacore.com>
12977         * checks.adb (Expr_Known_Valid): Result of fpt operator never
12978         considered valid.
12980 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12982         * back_end.adb: Minor fix in comment.
12984 2014-01-24  Javier Miranda  <miranda@adacore.com>
12986         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
12987         required to report the error in case of task types.
12989 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12991         * sem_attr.adb: Additional index checking.
12993 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12995         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
12996         expressions in each component association, and for records note
12997         the entity in each association choice, for subsequent resolution.
12998         (Resolve_Attribute, case 'Update): Complete resolution of
12999         expressions in each component association.
13001 2014-01-24  Robert Dewar  <dewar@adacore.com>
13003         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
13004         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
13005         leading to wrong handling of SPARK_Mode for library units).
13007 2014-01-24  Robert Dewar  <dewar@adacore.com>
13009         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
13010         on generic instances (do not consider them to be internally
13011         generated)
13013 2014-01-24  Doug Rupp  <rupp@adacore.com>
13015         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
13016         vice pthread_sigmask.
13018 2014-01-24  Vincent Celier  <celier@adacore.com>
13020         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
13021         not default.
13023 2014-01-24  Vincent Celier  <celier@adacore.com>
13025         * prj-ext.adb (Add): Do not output anything when Silent is True,
13026         whatever the verbosity. When Source is From_External_Attribute,
13027         set the corresponding environment variable if it is not already set.
13028         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
13029         to False
13030         * prj-proc.adb (Process_Expression_For_Associative_Array):
13031         For attribute External, call Prj.Ext.Add with Silent set to
13032         True for the child environment, to avoid useless output in non
13033         default verbosity.
13035 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13037         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
13038         range given by a subtype indication, and force evaluation of
13039         the bounds, as for a simple range.
13040         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
13041         of bounds of slice for various kinds of discrete ranges.
13042         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
13043         Evaluate_Slice_Bounds.
13045 2014-01-24  Bob Duff  <duff@adacore.com>
13047         * s-taskin.ads (Activator): Make this Atomic, because
13048         Activation_Is_Complete reads it, and that can be called
13049         from any task. Previously, this component was only
13050         modified by the activator before activation, and by
13051         Self after activation.
13052         * a-taside.ads, a-taside.adb (Environment_Task,
13053         Activation_Is_Complete): Implement these missing functions.
13055 2014-01-24  Doug Rupp  <rupp@adacore.com>
13057         * init.c: Add a handler section for Android.
13059 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
13061         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
13063 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13065         * sem_ch4.adb (Operator_Check): If one operand is a
13066         Raise_Expression, set its type to that of the other operand.
13067         * sem_res.adb (Resolve_Raise_Expression): new procedure.
13068         (Resolve_Actuals): For an actual that is a Raise_Expression,
13069         set the type to that of the formal.
13070         * sem_type.adb (Find_Unique_Type): If one of the operands is a
13071         Raise_Expression, return type of the other operand.
13073 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13075         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
13076         component of the record has a type with a default aspect, and
13077         the corresponding aggregate component is initiaized with a box,
13078         use the default value in the rewritten aggregate.
13080 2014-01-24  Tristan Gingold  <gingold@adacore.com>
13082         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
13083         s-interr-sigaction.adb,
13084         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
13085         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
13086         to the call to Install_Restricted_Handlers.
13088 2014-01-24  Emmanuel Briot  <briot@adacore.com>
13090         * prj-nmsc.adb (Check_File): Add protection when the source is
13091         not fully initialized.
13093 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
13095         * sem_util.adb (Is_Post_State): In a postcondition, a selected
13096         component that denotes an implicit dereference is a reference
13097         to the post state of the subprogram.
13099 2014-01-24  Robert Dewar  <dewar@adacore.com>
13101         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
13102         for generated subprograms.
13103         (Analyze_Subprogram_Specification): Ditto.
13105 2014-01-24  Vincent Celier  <celier@adacore.com>
13107         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
13108         attributes in package Builder of aggregate and aggregate library
13109         projects.
13110         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
13111         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
13112         Remove parameters.  Change error message from "... externally
13113         build library ..." to "... externally built project ...".
13114         (Process_Naming_Scheme.Check): Do not do any check in aggregate
13115         project, as attribute Library_Dir and Library_Name have already
13116         been detected as forbidden.
13118 2014-01-24  Vincent Celier  <celier@adacore.com>
13120         * prj-env.adb (Find_Project): If cached project path is not in
13121         project directory, look in current directory first and use cached
13122         project path only if project is not found in project directory.
13124 2014-01-24  Robert Dewar  <dewar@adacore.com>
13126         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
13128 2014-01-24  Vincent Celier  <celier@adacore.com>
13130         * projects.texi: Document that aggregate projects are only
13131         supported by gprbuild, but not by gnatmake.  Document that the
13132         only attribute Switches in package Binder of aggregate projects
13133         will be ignored if its index is not others.  Document that
13134         attribute Global_Config_File is allowed in package Binder of
13135         aggregate projects.
13137 2014-01-24  Robert Dewar  <dewar@adacore.com>
13139         * sem_prag.adb: Minor code reorganization.
13140         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
13142 2014-01-24  Pascal Obry  <obry@adacore.com>
13144         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
13145         attribute definition.
13147 2014-01-24  Vincent Celier  <celier@adacore.com>
13149         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
13150         in the Queue the same source (same path, same multi-source index)
13151         from the same project file, to avoid compiling several times
13152         the same source.
13154 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
13156         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
13157         (Has_Gigi_Rep_Item): Likewise.
13158         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
13159         Has_Gigi_Rep_Item for objects.
13160         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
13161         (prepend_one_attribute): ...this.
13162         (prepend_one_attribute_pragma): New function extracted from...
13163         (prepend_attributes): ...here.  Swap the parameters for consistency.
13164         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
13165         prepend_attributes.
13166         <object>: Deal with a pragma Linker_Section on a constant
13167         or variable.  <E_Function>: Deal with a pragma Linker_Section
13168         on a subprogram.
13169         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
13171 2014-01-24  Vincent Celier  <celier@adacore.com>
13173         * opt.ads: Minor comment update.
13175 2014-01-24  Robert Dewar  <dewar@adacore.com>
13177         * sem_prag.adb (Analyze_Input_Output): Add missing error check
13178         for junk operand.
13179         * sem_util.adb (Is_Refined_State): Add defense against junk
13180         tree from error.
13182 2014-01-24  Pascal Obry  <obry@adacore.com>
13184         * projects.texi: Removes Build_Slaves attribute documentation.
13186 2014-01-23  Robert Dewar  <dewar@adacore.com>
13188         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
13189         setting.
13191 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13193         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
13194         applies to expressions that come from source.
13195         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
13196         message.
13197         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
13198         rule regarding potentially unevaluated expressions, to prefix
13199         of attribute.
13201 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13203         * exp_util.adb (Make_Invqriant_Call): If type of expression is
13204         a private extension, get invariant from base type.
13206 2014-01-23  Robert Dewar  <dewar@adacore.com>
13208         * sem_util.adb, sem_attr.adb: Minor reformatting.
13210 2014-01-23  Robert Dewar  <dewar@adacore.com>
13212         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
13213         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
13214         * sem.adb (Semantics): Remove save/restore of
13215         SPARK_Mode[_Pragma]. Not needed since already done in
13216         Save/Restore_Opt_Config_Switches.
13218 2014-01-23  Robert Dewar  <dewar@adacore.com>
13220         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
13221         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
13222         Linker_Section enhancements.
13224 2014-01-23  Tristan Gingold  <gingold@adacore.com>
13226         * gnat_rm.texi: Minor editing.
13228 2014-01-23  Robert Dewar  <dewar@adacore.com>
13230         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
13231         with'ed internal units.
13232         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
13234 2014-01-23  Javier Miranda  <miranda@adacore.com>
13236         * lib-xref.adb (Generate_Reference): As part of processing the
13237         "end-of-spec" reference generate an extra reference to the first
13238         private entity of the package.
13239         * xr_tabls.adb (Add_Reference): No action needed for the extra
13240         'E' reference associated; similar to the processing of the
13241         'e' reference.
13243 2014-01-23  Bob Duff  <duff@adacore.com>
13245         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
13247 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13249         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
13250         predicate to implement rule given in 6.1.1 (20/3).
13251         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
13252         'Old in a postcondition, if it is potentially unevaluated and
13253         it is not an entity name.
13255 2014-01-23  Bob Duff  <duff@adacore.com>
13257         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
13259 2014-01-23  Robert Dewar  <dewar@adacore.com>
13261         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
13262         msg on VMS.
13264 2014-01-23  Bob Duff  <duff@adacore.com>
13266         * g-dynhta.ads: Minor comment fix.
13268 2014-01-23  Yannick Moy  <moy@adacore.com>
13270         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
13271         from spec on body only when not already inherited on spec. Set
13272         SPARK_Mode from context on body without previous spec.  *
13273         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
13274         library-level entities.  Correct retrieval of entity from
13275         declaration, for cases where the declaration is not a unit.
13276         * sem_ch12.adb (Instantiate_Object): Avoid
13277         calling Is_Volatile_Object on an empty node.
13279 2014-01-23  Robert Dewar  <dewar@adacore.com>
13281         * gnatlink.adb (Gnatlink): Check for suspicious executable file
13282         names on windows.
13284 2014-01-23  Robert Dewar  <dewar@adacore.com>
13286         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
13287         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
13288         style errors in instances.
13289         * g-dynhta.ads (Static_HTable): Comment updates.
13291 2014-01-23  Vincent Celier  <celier@adacore.com>
13293         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
13294         to find a configuration project file when Config_File_Name is
13295         No_Configuration_File.
13296         * prj-conf.ads (No_Configuration_File): New constant String.
13297         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
13298         with Config_File_Name set to No_Configuration_File, so that
13299         no existing configuration project file will be used, and the
13300         configuration project will be only created in memory when
13301         Add_Default_GNAT_Naming_Scheme is called.
13302         * projects.texi: Minor reformatting.
13304 2014-01-23  Vincent Celier  <celier@adacore.com>
13306         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
13307         a config project file if On_Load_Config is not null.
13308         * prj-pars.adb: Minor comment changes.
13310 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
13312         * lib-xref.adb (Output_References): Output progenitors of
13313         synchronized tagged types, for source navigation.
13315 2014-01-23  Robert Dewar  <dewar@adacore.com>
13317         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
13318         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
13319         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
13321 2014-01-23  Emmanuel Briot  <briot@adacore.com>
13323         * prj-conf.adb (Get_Or_Create_Configuration_File): call
13324         On_Load_Config later.
13326 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
13328         * sem_ch3.adb (Analyze_Declarations): Do not
13329         generate the spec of the late primitive in ASIS mode. Add two
13330         comments to explain the special cases when the expansion is
13331         not performed.
13333 2014-01-23  Robert Dewar  <dewar@adacore.com>
13335         * sem_util.adb (Note_Possible_Modification): Fix error of
13336         misbehaving for implicit dereference cases in -gnatc mode.
13338 2014-01-23  Emmanuel Briot  <briot@adacore.com>
13340         * prj-pars.adb: Minor reformatting.
13342 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13344         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
13345         body generated for an expression function within a protected body
13346         needs a set of renaming declarations if the expression function
13347         comes from source.
13349 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13351         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
13352         list interface progenitor of a tagged concurrent type, for better
13353         source navigation.
13355 2014-01-22  Robert Dewar  <dewar@adacore.com>
13357         * lib.adb (In_Extended_Main_Code_Unit): Return False for
13358         Standard_Location.
13359         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
13360         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
13361         treatment of Slocs No_Location and Standard_Location.
13362         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
13363         check for entity with Standard_Location Sloc, rather than relying
13364         on Lib routines to do that.
13365         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
13366         that a call cannot occur before a later occuring body within
13367         the same unit.
13369 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13371         * rtsfind.adb: Update comment.
13373 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
13375         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
13376         * sem_ch3.adb (Analyze_Declarations): Add local variable
13377         Body_Seen. Generate the spec of a late controlled
13378         primitive body that is about to freeze its related type.
13379         (Handle_Late_Controlled_Primitive): New routine.
13381 2014-01-22  Robert Dewar  <dewar@adacore.com>
13383         * a-stream.adb: Minor reformatting.
13385 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13387         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
13388         sub-procedure Declared_In_Actual to handle properly the visibility
13389         of actuals in actual packages, that are themselves actuals to a
13390         actual package of the current instance. This mimics properly the
13391         visibility of formals of formal packages declared with a box,
13392         within the corresponding generic unit.
13394 2014-01-22  Robert Dewar  <dewar@adacore.com>
13396         * checks.adb: Do not assume that a volatile variable is valid.
13398 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13400         * g-catiio.ads (Image, Value): Clarify that these functions
13401         operate in the local time zone.  Minor documentation update.
13403 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13405         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
13407 2014-01-22  Robert Dewar  <dewar@adacore.com>
13409         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
13410         Moved to sem_aux.adb.
13412 2014-01-22  Robert Dewar  <dewar@adacore.com>
13414         * vms_data.ads: Minor reformatting.
13416 2014-01-22  Robert Dewar  <dewar@adacore.com>
13418         * debug.adb: Document messages affected by -gnatd.E including
13419         the new ones that relate to late definition of equality.
13420         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
13421         debug flag -gnatd.E is set, then generate warnings rather than
13422         errors.
13423         (Check_Untagged_Equality): In earlier versions of Ada,
13424         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
13426 2014-01-22  Robert Dewar  <dewar@adacore.com>
13428         * sem_prag.adb (Usage_Error): Output additional messages for
13429         unconstrained OUT parameters lacking an input dependency.
13431 2014-01-22  Robert Dewar  <dewar@adacore.com>
13433         * sem_ch4.adb: Minor reformatting.
13435 2014-01-22  Robert Dewar  <dewar@adacore.com>
13437         * restrict.ads: Minor reformatting.
13438         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
13439         forbids a call from within a subprogram to the same subprogram.
13441 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13443         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
13444         stream attributes for Stream_Element_Array.
13445         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
13446         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
13447         defined in the current scope.
13449 2014-01-22  Robert Dewar  <dewar@adacore.com>
13451         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
13453 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13455         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
13457 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13459         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
13460         declaration initialized with a function call, whose type
13461         has variable size, need to remove side effects so that the
13462         initialization expression becomes a dereference of a temporary
13463         reference to the function result.
13465 2014-01-22  Yannick Moy  <moy@adacore.com>
13467         * errout.adb (Initialize): Remove trick to add dummy entry
13468         in Warnings table.
13469         * erroutc.adb (Set_Warnings_Mode_Off,
13470         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
13471         command line switch.
13472         * opt.ads (Warning_Mode): Document behavior
13473         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
13475 2014-01-22  Robert Dewar  <dewar@adacore.com>
13477         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
13479 2014-01-22  Robert Dewar  <dewar@adacore.com>
13481         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
13482         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
13483         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
13484         case Storage_Size): call Check_Pool_Size_Clash.
13486 2014-01-22  Robert Dewar  <dewar@adacore.com>
13488         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
13489         sem_eval.ads: Minor reformatting.
13491 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13493         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
13494         Any_Composite to prevent cascaded errors.
13496 2014-01-22  Yannick Moy  <moy@adacore.com>
13498         * errout.adb (Initialize): Do not insert special entry in Warnings
13499         table in GNATprove_Mode.
13500         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
13501         GNATprove_Mode.
13502         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
13503         warnings anymore.
13505 2014-01-22  Robert Dewar  <dewar@adacore.com>
13507         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
13508         initializes case.
13510 2014-01-22  Robert Dewar  <dewar@adacore.com>
13512         * snames.ads-tmpl: Update header.
13514 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13516         * exp_util.adb (Insert_Actions): When inserting actions on a
13517         short circuit operator that has already been analyzed, do not park
13518         actions in node; instead introduce an N_Expression_With_Actions
13519         and insert actions immediately.
13520         Add guard for unexpected case of climbing up through statement
13521         in Actions list of an N_Expression_With_Actions.
13522         * sem_elab.adb (Insert_Elab_Check): Remove complex
13523         specialized circuitry for the case where the context is already
13524         analyzed, as it is not needed and introduces irregularities in
13525         finalization. Instead rely on the above change to Insert_Actions
13526         to ensure that late insertion on short circuit operators works
13527         as expected.
13529 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13531         * sem_ch4.adb (Operator_Check): Improve error message when an
13532         operand of concatenation is an access type.
13534 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13536         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
13537         cascaded error.
13539 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13541         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
13542         of an expanded name in a proper body, whose prefix is a package
13543         in the context of the proper body, when there is a homonym of
13544         the package declared in the parent unit.
13546 2014-01-22  Robert Dewar  <dewar@adacore.com>
13548         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
13549         msg if errors found.
13550         (Check_One_Unit): Same change.
13552 2014-01-22  Robert Dewar  <dewar@adacore.com>
13554         * ug_words: Add missing/wrong entries for VMS warning switches.
13555         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
13557 2014-01-22  Jerome Guitton  <guitton@adacore.com>
13559         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
13560         arm.
13562 2014-01-22  Robert Dewar  <dewar@adacore.com>
13564         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
13566 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13568         * gcc-interface/Makefile.in: Minor fixes.
13570 2014-01-21  Robert Dewar  <dewar@adacore.com>
13572         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
13573         * par-ch5.adb (P_Condition): New version with expression prescanned.
13574         * par.adb (P_Condition): New version with expression prescanned.
13576 2014-01-21  Robert Dewar  <dewar@adacore.com>
13578         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
13579         if Address is not a private type.
13580         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13581         Ignore pragma if System.Address is not a private type.
13583 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13585         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
13586         uninitialized value.
13588 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13590         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
13592 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13594         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
13595         the value of Assertions_Enabled flag when compiling an instance of
13596         an internal unit. This facilitates the use of pre/postconditions
13597         in generic internal units, such as the new elementary function
13598         libraries.
13600 2014-01-21  Robert Dewar  <dewar@adacore.com>
13602         * exp_aggr.adb: Minor reformatting.
13603         * sem_attr.adb: Minor reformatting.
13604         * sem_res.adb: Minor comment addition.
13605         * einfo.adb: Minor comment updates.
13606         * freeze.adb: Minor reformatting and code reorganization.
13608 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13610         * par-ch4.adb (P_If_Expression): Handle more gracefully an
13611         elsif clause that does not have an else part.
13613 2014-01-21  Robert Dewar  <dewar@adacore.com>
13615         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
13616         * gcc-interface/Makefile.in: clean up target pairs.
13618 2014-01-21  Pascal Obry  <obry@adacore.com>
13620         * projects.texi: Minor typo fix.
13622 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13624         * freeze.adb (Check_Component_Storage_Order): If a record type
13625         has an explicit Scalar_Storage_Order attribute definition clause,
13626         reject any component that itself is of a composite type and does
13627         not have one.
13629 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13631         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
13632         can be used to generate proper cross-reference information for
13633         the parent units of proper bodies.
13635 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13637         * exp_pakd.adb (Expand_Packed_Element_Set,
13638         Expand_Packed_Element_Reference): No byte swapping required in
13639         the front-end for the case of a reverse storage order array,
13640         as this is now handled uniformly in the back-end.  However we
13641         still need to swap back an extracted element if it is itself a
13642         nested composite with reverse storage order.
13644 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
13646         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
13647         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
13648         include "others".
13650 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13652         * gnat_ugn.texi: Minor updates.
13654 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13656         * exp_pakd.adb: Update comment, minor reformatting.
13658 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
13660         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
13661         object check when SPARK_Mode is on.
13662         * sem_ch6.adb (Process_Formals): Trigger the volatile object
13663         check when SPARK_Mode is on.
13664         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
13665         check when SPARK_Mode is on.
13666         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
13667         corresponding pragma of aspect SPARK_Mode in the visible
13668         declarations of a package declaration.
13669         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
13670         check when SPARK_Mode is on.
13671         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
13672         check when SPARK_Mode is on.
13673         (Resolve_Entity_Name): Trigger
13674         the volatile object check when SPARK_Mode is on.
13676 2014-01-21  Robert Dewar  <dewar@adacore.com>
13678         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
13679         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
13681 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13683         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
13684         object is declared, it is rewritten as a renaming of an dynamic
13685         expression that wraps the initial value.  The renaming declaration
13686         is first given an internal name, to prevent collisions with the
13687         entity already declared, and then the name is modified to reflect
13688         the original one. the modification of the name must preserve
13689         the source location of the original, to prevent spurious errors
13690         when compiling with style checks if the declaration involves
13691         more than one entity.
13693 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
13695         * aspects.adb Add entries for Async_Readers, Async_Writers,
13696         Effective_Reads and Effective_Writes in table Canonical_Aspect.
13697         * aspects.ads Add entries for Async_Readers, Async_Writers,
13698         Effective_Reads and Effective_Writes in tables Aspect_Id,
13699         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
13700         * atree.adb (Ekind_In): New version with 8 parameters.
13701         (Node34): New routine.
13702         (Set_Node34): New routine.
13703         * atree.ads (Ekind_In): New version with 8 parameters.
13704         (Node34): New routine.
13705         (Set_Node34): New routine.
13706         * einfo.adb Contract is now Node34.
13707         (Contract): Update the assertion and node usage.
13708         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
13709         Effective_Reads and Effective_Writes.
13710         (Set_Contract): Update the assertion and node usage.
13711         (Write_Field24_Name): Remove the output for a contract.
13712         (Write_Field34_Name): Add output for a contract.
13713         * einfo.ads Contract is now Node34. Update the comment on
13714         attribute usage and related node structures.
13715         (Get_Pragma): Update the comment on usage.
13716         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
13717         Effective_Reads and Effective_Writes do not require special
13718         processing by the parser.
13719         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
13720         (Analyze_Declarations): Analyze the contract of a variable at
13721         the end of the declarative region.
13722         (Analyze_Object_Declaration): Create a contract for a variable.
13723         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
13724         of classification pragmas.
13725         (Process_Formals): Detect an illegal
13726         use of a volatile object as a formal in a function.
13727         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
13728         a volatile object as an actual in generic instantiation.
13729         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
13730         Effective_Reads and Effective_Writes in table Sig_Flags.
13731         (Analyze_External_State_In_Decl_Part): New routine.
13732         (Analyze_Global_Item): Detect an illegal use of a volatile object
13733         as a global item of a function.
13734         (Analyze_Pragma): Reimplement
13735         pragma Abstract_State. Add support for pragmas Async_Readers,
13736         Async_Writers, Effective_Reads and Effective_Writes.
13737         (Check_External_Properties): New routine.
13738         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
13739         (Check_External_Properties): New routine.
13740         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
13741         volatile object as an actual in a call.
13742         (Resolve_Entity_Name):
13743         Add local variables Par, Prev and Usage_OK. Detect illegal
13744         contexts of volatile objects.
13745         * sem_util.adb (Add_Contract_Item): Add support for
13746         pragmas associated with the contract of a variable.
13747         (Async_Readers_Enabled): New routine.
13748         (Async_Writers_Enabled): New routine.
13749         (Effective_Reads_Enabled): New routine.
13750         (Effective_Writes_Enabled): New routine.
13751         (Has_Enabled_Property):
13752         New routine.
13753         (Is_Unchecked_Conversion_Instance): New routine.
13754         (Is_Volatile_Object): Add support for entities that may denote
13755         a volatile object.
13756         * sem_util.ads (Add_Contract_Item): Update the
13757         comment on usage.
13758         (Async_Readers_Enabled): New routine.
13759         (Async_Writers_Enabled): New routine.
13760         (Effective_Reads_Enabled): New routine.
13761         (Effective_Writes_Enabled): New routine.
13762         (Is_Unchecked_Conversion_Instance): New routine.
13763         * sinfo.ads Update the comment on the structure of N_Contract.
13764         * snames.ads-tmpl Add predefined names for Async_Readers,
13765         Async_Writers, Effective_Reads and Effective_Writes. Add
13766         pragma ids for Async_Readers, Async_Writers, Effective_Reads
13767         and Effective_Writes.
13769 2014-01-21  Robert Dewar  <dewar@adacore.com>
13771         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
13772         * sem_eval.adb (Compile_Time_Known_Value): Remove special
13773         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
13774         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
13775         (Test_Foldable): Add CRT_Safe parameter
13776         * sem_eval.ads (Compile_Time_Known_Value): Remove special
13777         handling of CRT mode.
13778         (CRT_Safe_Compile_Time_Known_Value): New function.
13780 2014-01-21  Robert Dewar  <dewar@adacore.com>
13782         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
13783         with pragma or aspect that applies to package spec or subprogram
13784         spec.
13786 2014-01-21  Robert Dewar  <dewar@adacore.com>
13788         * exp_aggr.adb: Minor reformatting.
13790 2014-01-21  Johannes Kanig  <kanig@adacore.com>
13792         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
13794 2014-01-21  Bob Duff  <duff@adacore.com>
13796         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
13798 2014-01-21  Steve Baird  <baird@adacore.com>
13800         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
13802 2014-01-21  Vincent Celier  <celier@adacore.com>
13804         * prj-part.adb (Parse_Single_Project): Accept to extend a project
13805         if it has only be imported by an project being extended. When a
13806         project that has only been imported by a project being extended
13807         is imported by another project that is not being extended,
13808         reset the previous indication, so that it will be an error if
13809         this project is extended later.
13810         * prj-tree.adb (Create_Project): Include component From_Extended
13811         in table Projects_HT
13812         * prj-tree.ads (Project_Name_And_Node): New Boolean component
13813         From_Extended
13815 2014-01-21  Robert Dewar  <dewar@adacore.com>
13817         * atree.ads, atree.adb: Add Node33 and Set_Node33.
13818         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
13819         New field (SPARK_Pragma_Inherited): New flag
13820         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
13821         Removed.
13822         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
13823         * opt.ads (SPARK_Mode_Pragma): New global variable.
13824         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
13825         * sem_ch3.adb: Use new SPARK_Mode data structures.
13826         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
13827         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
13828         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
13829         (Pop_Scope): Restore SPARK_Mode_Pragma.
13830         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
13831         new data structures.
13833 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13835         * back_end.adb: Undo previous change, not needed. Minor reformatting.
13837 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13839         * exp_ch5.adb: Fix comment.
13840         * switch-c.adb: Minor comment update.
13841         * exp_ch3.adb: Minor reformatting.
13843 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13845         * back_end.adb (Scan_Compiler_Arguments): Do not store object
13846         filename in gnatprove mode.
13848 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13850         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
13851         suppresses usage of primitive _assign for tagged types).
13852         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
13853         No_Ctrl_Actions for a tagged type that does not require
13854         finalization, as we want to disable usage of _assign (which
13855         may cause undesirable discriminant checks on an uninitialized,
13856         invalid target).
13858 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13860         * sem_prag.adb: Reject invariant'class on completion.
13862 2014-01-21  Javier Miranda  <miranda@adacore.com>
13864         * exp_ch3.adb (Build_Init_Procedure): For
13865         derivations of interfaces, do not move the the initialization
13866         of the _parent field since such assignment is not generated.
13868 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13870         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
13871         with the operator it renames if we are within an expression of
13872         a pre/postcondition, because the expression will be reanalyzed
13873         at a later point, and the analysis of the renaming may affect
13874         the visibility of the operator when in an instance.
13876 2014-01-21  Robert Dewar  <dewar@adacore.com>
13878         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
13879         Add this flag to type conversion nodes and assignment nodes.
13880         * treepr.adb: Deal properly with Flag 1,2,3.
13881         * treeprs.adt: Minor comment update.
13883 2014-01-21  Robert Dewar  <dewar@adacore.com>
13885         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
13886         parameter.
13887         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
13888         parameter, completely rewrite spec.
13890 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13892         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
13893         instance that is inlined, it may have been rewritten as a wrapper
13894         package. In that case the unit that must be made visible is the
13895         related instance of the package.
13897 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13899         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
13900         previous change in codepeer mode.
13902 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13904         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
13905         call to Abort_Undefer, as expected by the runtime.
13906         * s-tasren.adb (Local_Complete_Rendezvous): Replace
13907         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
13908         deferred at this point. Update comments.
13910 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13912         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
13914 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13916         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
13917         remove from doc.
13919 2014-01-21  Robert Dewar  <dewar@adacore.com>
13921         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
13923 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13925         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
13926         this is value is used in Node_Id arithmetic operations.
13927         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
13928         instead of hard-coded unrolled code.
13930 2014-01-21  Yannick Moy  <moy@adacore.com>
13932         * gnat1drv.adb: Minor code cleanup, removing useless code.
13934 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13936         * opt.ads (SPARK_Switches_File_Name): New.
13937         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
13938         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
13939         * gnat_ugn.texi: Document -gnates.
13941 2014-01-21  Yannick Moy  <moy@adacore.com>
13943         * errout.adb (Special_Msg_Delete): Update comment. Remove
13944         special case for GNATprove which should not ignore mismatch
13945         in sizes for representation clauses.
13946         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
13947         which should not ignore pragma Pack.
13949 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13951         * sem_ch4.adb: Code clean up.
13953 2014-01-21  Steve Baird  <baird@adacore.com>
13955         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
13957 2014-01-21  Robert Dewar  <dewar@adacore.com>
13959         * gcc-interface/gigi.h: Get Flags array address.
13960         * gcc-interface/trans.c: Acquire Flags array address.
13961         * atree.adb: Add support for Flags array and Flag0,1,2,3.
13962         * atree.ads: Add support for Flags array and Flag0,1,2,3.
13963         * atree.h: Add support for Flags array and Flag0,1,2,3.
13964         * back_end.adb: Pass Flags array address to gigi.
13966 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13968         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
13969         reference to generated body so that legality checks on stream
13970         attributes are properly applied. If type is tagged and already
13971         frozen, insert generated body at the point of the renaming
13972         declaration.
13974 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13976         * sem_ch12.adb: Code clean up.
13977         * sem_ch8.adb: Minor reformatting
13979 2014-01-20  Robert Dewar  <dewar@adacore.com>
13981         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
13982         converting warnings on inevitable exceptions to errors.
13983         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
13984         converting warnings on inevitable exceptions to errors.
13985         * opt.adb (SPARK_Mode_Config): Handled like other config flags
13986         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
13987         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
13988         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
13989         New flag (Config_Switches_Type): Add SPARK_Mode field
13990         * sem.adb: Minor code reorganization (remove unnecessary with)
13991         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
13992         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
13993         converting warnings on inevitable exceptions to errors.
13994         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
13995         converting warnings on inevitable exceptions to errors.
13996         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
13997         converting warnings on inevitable exceptions to errors.
13998         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
13999         converting warnings on inevitable exceptions to errors.
14000         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
14001         from spec if needed
14002         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
14003         from spec if needed
14004         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
14005         Restore SPARK_Mode
14006         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
14007         converting warnings on inevitable exceptions to errors.
14008         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
14009         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
14010         of Get_SPARK_Mode_Id
14011         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
14012         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
14013         converting warnings on inevitable exceptions to errors.
14014         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
14015         converting warnings on inevitable exceptions to errors.
14016         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
14017         SPARK_Mode_Type
14019 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14021         * sem_ch13.adb: Add semantic information to rewritten type
14022         reference.
14024 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14026         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
14027         are of a type with unknown discriminants, convert both to the
14028         underlying view of the type, so that the proper constraint check
14029         can be applied to the right-hand side.
14031 2014-01-20  Robert Dewar  <dewar@adacore.com>
14033         * atree.adb (Copy_Node): Fix failure to copy last component
14034         (Exchange_Entities): Fix failure to exchange last entity
14036 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14038         * sem_ch12.adb: Code clean up.
14040 2014-01-20  Robert Dewar  <dewar@adacore.com>
14042         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
14044 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14046         * sem_ch4.adb (Analyze_Quantified_Expression): If after
14047         pre-analysis  the loop parameter specification has been
14048         rewritten as a iterator specification, propagate the change to
14049         the quantified expression, for ASIS navigtion needs.
14051 2014-01-20  Vincent Celier  <celier@adacore.com>
14053         * par-ch10.adb: Minor error message change: escape [ and ].
14055 2014-01-20  Robert Dewar  <dewar@adacore.com>
14057         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
14058         * errout.adb: Implement [ and ] insertion characters.
14059         * errout.ads: Document new [ and ] insertion characters.
14060         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
14061         addition of ??? comment.
14062         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
14063         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
14064         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
14065         Make warnings on exceptions into errors in GNATprove mode.
14066         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
14067         in error messages.
14069 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14071         * sem_ch13.adb: Code clean up.
14073 2014-01-20  Robert Dewar  <dewar@adacore.com>
14075         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
14076         messages.
14077         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
14078         error in GNATprove mode.
14080 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14082         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
14083         reference 'Old takes no parameters, and thus can appear as a
14084         prefix of a slice.
14086 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14088         * exp_aggr.adb: Fix minor typos.
14090 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14092         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
14093         instance the attribute is legal, and its value is determined
14094         statically if the type has no discriminants. This choice is
14095         more useful than rechecking the legality rule in the instance,
14096         is consistent with older usage, and is also consistent with all
14097         existing tests.
14099 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14101         * sem_cat.adb (Validate_Static_Object_Name): Change error into
14102         warning in Relaxed_Semantic_Mode.
14104 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14106         * sem_attr.adb: Code and comments cleanup.
14108 2014-01-20  Yannick Moy  <moy@adacore.com>
14110         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
14111         * errout.adb (Compilation_Errors): Remove special handling in
14112         GNATprove mode.
14113         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
14114         removed debug flags.
14115         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
14116         Global, Initial_Condition, Initializes and Refined_State pragmas and
14117         aspects.
14118         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
14119         SPARK_Strict_Mode): Remove global flags.
14120         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
14121         always performed now, on packages declaring a null state.
14122         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
14123         at providing pedantic mode for bounds of integer types.
14124         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
14125         "some" quantified expression now issued under control of -gnatw.t,
14126         like the other warning on unused bound variable.
14127         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
14128         on removed flag.
14129         (Analyze_Pragma): Remove tests for SPARK 2014
14130         pragmas, not officially allowed by GNAT.
14132 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14134         * sem_prag.adb (Analyze_Pragma): Ensure that
14135         the sole argument of pragmas Abstract_State, Contract_Cases,
14136         Depends, Global and Initializes in in aggregate form.
14137         (Analyze_Refined_Pragma): Ensure that the sole argument of
14138         pragmas Refined_Depends, Refined_Global and Refined_State is in
14139         aggregate form.
14140         (Ensure_Aggregate_Form): New routine.
14142 2014-01-20  Doug Rupp  <rupp@adacore.com>
14144         * sem_attr.adb (Analyze_Attribute): case
14145         Attribute_Constrained => treat all prefixes as legal for Declib
14146         compatibility.
14148 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14150         * sem_prag.adb (Check_Mode): Reimplement the routine.
14151         (Find_Mode): New routine.
14153 2014-01-20  Robert Dewar  <dewar@adacore.com>
14155         * sem_ch4.adb (Operator_Check): Handle additional
14156         Allow_Integer_Address cases.
14158 2014-01-20  Robert Dewar  <dewar@adacore.com>
14160         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
14161         allowed if address is non-private, no longer true.
14162         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
14163         Remove check for address being private, causes difficulty when
14164         pragma used in gnat.adc file and is not needed, since we guard
14165         this in Address_Integer_Convert_OK.
14166         * exp_ch7.adb: Minor reformatting.
14167         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
14169 2014-01-20  Robert Dewar  <dewar@adacore.com>
14171         * checks.adb (Apply_Range_Check): Remove gnatprove special
14172         casing of exponentiation.
14173         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
14174         operand for integer case to check range against Natural.
14176 2014-01-20  Robert Dewar  <dewar@adacore.com>
14178         * s-tataat.adb: Minor reformatting.
14180 2014-01-20  Robert Dewar  <dewar@adacore.com>
14182         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
14183         entities, and also fix documentation to remove mention of visible
14184         integer type, since this is not what the implementation does.
14185         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
14186         entities, and also fix documentation to remove mention of visible
14187         integer type, since this is not what the implementation does.
14188         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
14189         function.
14190         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
14191         case for parameter type check.
14192         * sem_res.adb (Resolve): Use new function
14193         Address_Integer_Convert_OK.
14194         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
14195         reformatting throughout.
14196         * sem_util.adb (Address_Integer_Convert_OK): New function.
14197         * sem_util.ads: Minor reformatting (put specs in alpha order)
14198         (Address_Integer_Convert_OK): New function.
14200 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14202         * exp_ch7.adb (Wrap_Transient_Expression):
14203         Insertion extra conditional expression only if
14204         Opt.Suppress_Control_Flow_Optimizations is set.
14206 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14208         * s-tataat.adb (Initialize_Attributes): Abort might already be
14209         deferred in Create_Task.
14211 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14213         * checks.adb (Apply_Scalar_Range_Check): Flag
14214         the exponent as requiring a range check when the expression is
14215         an exponentiation.
14217 2014-01-20  Fedor Rybin  <frybin@adacore.com>
14219         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
14221 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14223         * sem_util.adb (Default_Initialization): New routine.
14224         * sem_util.ads: Add new type Default_Initialization_Kind.
14225         (Default_Initialization): New routine.
14227 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14229         * sem_prag.adb (Check_Mode): Correct all error
14230         message logic dealing with in/in out parameters that may appear
14231         as inputs or have a self reference.
14233 2014-01-20  Robert Dewar  <dewar@adacore.com>
14235         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
14236         * sem_res.adb (Resolve): Fix error causing infinite loop for
14237         integer used as address. Allow addresses as integers.
14239 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14241         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
14243 2014-01-20  Bob Duff  <duff@adacore.com>
14245         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
14246         error when "use all" is not followed by "type".
14248 2014-01-20  Bob Duff  <duff@adacore.com>
14250         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
14251         followed by free.
14253 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14255         * checks.adb (Apply_Address_Clause_Check): If there is an
14256         alignment check on the expression in an address clause, and there
14257         is no local exception propagation, add an additional explanatory
14258         message to clarify the cause of previous warning.
14260 2014-01-20  Robert Dewar  <dewar@adacore.com>
14262         * exp_ch7.adb: Minor reformatting.
14263         * opt.ads: Minor comment updates.
14264         * sem.adb: Minor name change Is_Main_Unit =>
14265         Is_Main_Unit_Or_Main_Unit_Spec.
14266         * sem_ch6.adb: Minor reformatting and code reorganization.
14268 2014-01-20  Bob Duff  <duff@adacore.com>
14270         * gnat_ugn.texi: Update gnatpp switches.
14272 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14274         * exp_ch9.adb: Minor comment edit.
14276 2014-01-20  Robert Dewar  <dewar@adacore.com>
14278         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
14279         only if System.Address is a private type.
14280         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
14281         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
14282         Allowed only if type System.Address is private, since otherwise
14283         it makes no sense.
14284         * sem_res.adb: Fix failure to properly Analyze unchecked
14285         conversions that were introduced by Allow_Integer_Address.
14286         * switch-c.adb: Remove -gnates switch.
14287         * usage.adb: Remove -gnates switch.
14288         * gnat_ugn.texi: Remove documentation of -gnates flag.
14290 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14292         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
14293         resolve expression to perform proper name capture.
14295 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14297         * sem.adb (Semantics): When saving/restoring configuration
14298         switches, the spec of a pre- defined unit that is the main unit
14299         must be treated as a predefined unit as well.
14301 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14303         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
14304         expression, insert an extra conditional expression when saving
14305         the value of the expression, for the benefit of control flow
14306         graph based coverage analysis.
14307         * exp_ch3.adb: Minor reformatting.
14309 2014-01-20  Robert Dewar  <dewar@adacore.com>
14311         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
14312         * gnat_rm.texi: Document pragma Allow_Integer_Address.
14313         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
14314         * opt.ads: New flag Allow_Integer_Address.
14315         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
14316         * sem_ch5.adb: Minor reformatting.
14317         * sem_prag.adb: Implement pragma Allow_Integer_Address.
14318         * sem_res.adb (Resolve): Allow integer address value if
14319         switch set.
14320         * sem_util.adb: Minor reformatting.
14321         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
14322         * switch-c.adb: Recognize flag -gnates.
14323         * usage.adb: Document flag -gnates.
14325 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14327         * s-tadeca.adb: Fix minor typos in comment.
14329 2014-01-20  Pascal Obry  <obry@adacore.com>
14331         * s-win32.ads (FreeLibrary): New import.
14333 2014-01-20  Robert Dewar  <dewar@adacore.com>
14335         * sem_res.adb, sem_cat.adb: Minor reformatting.
14336         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
14337         assigning to OUT parameters for the current subprogram scope.
14338         * exp_ch4.adb: Minor reformatting.
14340 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14342         * exp_ch4.adb (Process_Transient_Object,
14343         Find_Enclosing_Contexts): If the top-level if-expression that
14344         generated the transient object is an actual in a call, the proper
14345         Hook_Context is a construct enclosing the call.
14346         * einfo.ads: Indicate that Related_Expression is used to link a
14347         loop variable to the container expression over which the loop
14348         takes place.
14349         (Analyze_Iterator_Specification): Set the Related_Expression of
14350         the loop variable in a container element iterator.
14351         (Note_Possible_Modification): If the variable is the loop
14352         variable in a container element iterator, indicate that the
14353         enclosing container is also modified.
14355 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14357         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
14359 2014-01-20  Robert Dewar  <dewar@adacore.com>
14361         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
14362         Minor reformatting and code clean up.
14364 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14366         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
14367         of objects of private type if Relaxed_RM_Semantics.
14369 2014-01-20  Claire Dross  <dross@adacore.com>
14371         * a-cofove.ads (Vector): Capacity discriminant
14372         should be in range of the index.
14374 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14376         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
14377         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
14378         possible difference between epoch of Ada.Calendar clock and Ada
14379         real-time/tasking clock.
14380         * s-taprop-posix.adb: Minor comment fix.
14382 2014-01-20  Doug Rupp  <rupp@adacore.com>
14384         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
14386 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14388         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
14389         checks on the prefix of attribute 'Old.
14390         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
14391         generation of validity checks on a range that belongs to the
14392         iteration scheme of a quantified expression.
14393         * sem_ch5.adb (One_Bound): Suppress the generation of validity
14394         checks on a bound that belongs to the iteration scheme of a
14395         quantified expression, generate the check in all other cases.
14397 2014-01-20  Bob Duff  <duff@adacore.com>
14399         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
14401 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14403         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
14404         interpretations that do not come from other predefined units,
14405         to prevent spurious ambiguities in the presence of user-defined
14406         operators in the context of (an instance of) a predefined unit.
14408 2014-01-20  Robert Dewar  <dewar@adacore.com>
14410         * gnat_rm.texi: Document that Loop_Variant is included in
14411         Statement_Assertions.
14412         * sem_prag.adb (Check_Kind): Add Loop_Variant to
14413         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
14414         to Statement_Assertions.
14416 2014-01-20  Doug Rupp  <rupp@adacore.com>
14418         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
14419         for errno ENOENT from RTP on NFS mounted file system.
14421 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
14423         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
14424         examine code that does not come from source. The check does not
14425         apply to code generated for constraint checks, and such code may
14426         generate spurious error messages when compiled with expansion
14427         disabled (as in a generic unit) because side effects may not
14428         have been removed.
14429         2) Make error messages more explicit: indicate the component
14430         of the  construct whose value is indeterminate because of a
14431         call to a function with in-out parameter in another component,
14432         when there is no mandated order of execution between the two
14433         components (actuals, aggregate components, alternatives).
14435 2014-01-20  Robert Dewar  <dewar@adacore.com>
14437         * gnat_rm.texi: Minor cleanup.
14439 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14441         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
14442         can now apply to a refined postcondition.
14443         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
14444         variable Result_Seen. Add variables Case_Prag, Post_Prag,
14445         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
14446         whether postconditions and/or constract-cases mention attribute
14447         'Result and introduce a post-state when applied to functions.
14448         (Check_Result_And_Post_State): Removed.
14449         * sem_prag.adb (Analyze_Pragma): Add local variable
14450         Result_Seen. Verify that the expression of pragma Refined_Post
14451         mentions attribute 'Result and introduces a post-state.
14452         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
14454 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14456         * exp_ch7.adb (Is_Subprogram_Call): New routine.
14457         (Process_Transient_Objects): Make variable Must_Hook global with
14458         respect to all locally declared subprograms. Search the context
14459         for at least one subprogram call.
14460         (Requires_Hooking): Removed.
14462 2014-01-20  Claire Dross  <dross@adacore.com>
14464         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
14465         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
14466         External_Axiomatization);
14468 2014-01-20  Robert Dewar  <dewar@adacore.com>
14470         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
14471         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
14472         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
14473         Allow Loop_Entry to be used in these pragmas if they appear in
14474         an appropriate context.
14475         (Placement_Error): Specialize error
14476         message for pragma Assert[_And_Cut] or pragma Assume containing
14477         Loop_Entry attribute.
14478         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
14479         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
14480         and code clean ups.
14482 2014-01-20  Robert Dewar  <dewar@adacore.com>
14484         * gnat1drv.adb: Minor comment update.
14486 2014-01-20  Tristan Gingold  <gingold@adacore.com>
14488         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
14489         variables, comment out unused code.
14490         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
14491         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
14492         * s-excmac-arm.ads: New file.
14494 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14496         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
14497         Drange and Index_Typ. Remove the circuitry which creates a
14498         range check to compare the index type of the array against the
14499         discrete_range.
14500         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
14501         the circuitry which creates a range check to handle a
14502         discrete_range denoted by a subtype indication.
14504 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
14506         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
14507         nodes to get the original sloc range.
14509 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14511         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
14512         entity of a [library level] package.
14514 2014-01-20  Tristan Gingold  <gingold@adacore.com>
14516         * raise-gcc.c (exception_class_eq): New function.
14517         (is_handled_by): Use it to compare exception classes.
14518         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
14519         be called to return URC_CONTINUE_UNWIND.
14520         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
14521         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
14523 2014-01-20  Robert Dewar  <dewar@adacore.com>
14525         * opt.ads: Minor comment update.
14527 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14529         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
14530         constants to the "Local variables" area. Add new constant D. Add
14531         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
14532         to Pref_Typ and update all occurrences. Add circuitry to extract
14533         the discrete_range and the index type and build a range check.
14535 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14537         * gnat1drv.adb (Adjust_Global_Switches): Enable
14538         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
14539         is set.
14541 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14543         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
14545 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14547         * sem_ch13.adb (Analyze_Aspect_Specifications):
14548         When aspect SPARK_Mode appears on a package body, insert the
14549         generated pragma at the top of the body declarations.
14551 2014-01-20  Robert Dewar  <dewar@adacore.com>
14553         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
14554         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
14555         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
14556         sem_ch8.adb, exp_dist.adb: Minor reformatting.
14558 2014-01-20  Yannick Moy  <moy@adacore.com>
14560         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
14561         mode.
14563 2014-01-20  Pascal Obry  <obry@adacore.com>
14565         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
14566         write scheme).
14567         * g-arrspl.adb: Adapt all routine to this new implementation.
14568         (Set): Copy the Slice_Set definition before reusing it.
14570 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14572         * sem_prag.adb (Process_Import_Or_Interface): In
14573         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
14574         (Analyze_Pragma): Ditto for pragma Export.
14575         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
14576         Import style.
14578 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14580         * einfo.ads: E_Abstract_State is now part of the entities that
14581         can be overloaded. Update type Overloadable_Kind to reflect the
14582         inclusion of abstract states.
14583         * sem_ch6.adb (New_Overloaded_Entity): A function can now
14584         overload an abstract state.
14585         * sem_prag.adb (Analyze_Constituent): Handle the overloading
14586         of states by functions. Use Entity_Of to obtain the entity of
14587         a constituent.  (Analyze_Global_Item): Handle the overloading of
14588         states by functions.
14589         (Analyze_Initialization_Item): Handle the
14590         overloading of states by functions.  Use Entity_Of to obtain the
14591         entity of an item.
14592         (Analyze_Input_Item): Handle the overloading
14593         of states by functions. Use Entity_Of to obtain the entity of an item.
14594         (Analyze_Input_Output): Handle the overloading of states by functions.
14595         (Analyze_Refinement_Clause): Handle the overloading
14596         of states by functions.  Use Entity_Of to obtain the entity of an item.
14597         (Appears_In): Use Entity_Of to obtain the entity of an element.
14598         (Check_Usage): Use Entity_Of to obtain the entity of
14599         an item. Add a guard to prevent a crash due to a previous error.
14600         (Resolve_State): New routine.
14602 2014-01-20  Yannick Moy  <moy@adacore.com>
14604         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
14605         opt.ads: Minor comments updates.
14607 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14609         * einfo.adb (Non_Limited_View): Applies to abstract states.
14610         (Set_From_Limited_With): Applies to abstract states.
14611         (Set_Non_Limited_View): Applies to abstract states.
14612         (Write_Field17): Output the non-limited view of an abstract state.
14613         * einfo.ads: Update the comment on usage and occurrences in
14614         nodes for attributes From_Limited_With and Non_Limited_View.
14615         * sem_aux.adb (Available_View): This routine can now handle
14616         abstract states.
14617         * sem_aux.ads (Available_View): This routine can now handle
14618         abstract states. Update the comment on usage.
14619         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
14620         of states and variables.
14621         (In_Pragmas_Depends_Or_Global): New routine.
14622         * sem_ch10.adb (Build_Limited_Views): Implement
14623         abstract (limited) views of variables and states.
14624         (Build_Shadow_Entity): This routine is now a procedure. Add
14625         formal parameter Shadow. Update the comment on usage. Add
14626         context-specific decoration for states and variables.
14627         (Decorate_State): New routine.  (Decorate_Variable): New routine.
14628         (Find_And_Process_States): New routine.
14629         (Process_Declarations): Renamed to Process_Declarations_And_States.
14630         (Process_Declarations_And_States): Add formal parameters
14631         Pack and Create_Abstract_Views. Update the comment on usage.
14632         (Process_States): New routine.
14633         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
14634         views of states and variables. Match the abstract view of a state
14635         against its corresponding non-abstract view.
14636         (Is_Matching_Input):
14637         Handle abstract views of states and variables. Match the abstract
14638         view of a state against its corresponding non-abstract view.
14639         (Process_Global_Item): Handle abstract views of states and
14640         variables.
14642 2014-01-20  Bob Duff  <duff@adacore.com>
14644         * sem_ch10.adb (Expand_With_Clause): Don't
14645         recurse on the prefix if the current with-ed name refers to a
14646         package that renames its own parent, eg "package P.Q renames P;".
14648 2014-01-20  Yannick Moy  <moy@adacore.com>
14650         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
14651         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
14652         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
14653         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
14654         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
14655         Expander_Active.
14657 2014-01-20  Yannick Moy  <moy@adacore.com>
14659         * sinfo.ads Update documentation of GNATprove mode.
14661 2014-01-20  Yannick Moy  <moy@adacore.com>
14663         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
14664         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
14665         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
14666         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
14667         GNATprove_Mode.
14668         * sem_ch13.adb: Remove blank.
14669         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
14670         subprograms by alias for renamings, not for inherited primitive
14671         operations.
14672         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
14673         in GNATprove mode.
14674         (Remove_Side_Effects): Apply the removal in
14675         GNATprove mode, for the full analysis of expressions.
14676         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
14677         mode.
14678         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
14679         save/restore actions for Expander_Active flag in GNATprove mode,
14680         similar to what is done in ASIS mode.
14681         * frontend.adb (Frontend): Generic bodies are instantiated in
14682         GNATprove mode.
14683         * gnat1drv.adb (Adjust_Global_Switches): Set operating
14684         mode to Check_Semantics in GNATprove mode, although a light
14685         expansion is still performed.
14686         (Gnat1drv): Set Back_End_Mode to
14687         Declarations_Only in GNATprove mode, and later on special case
14688         the GNATprove mode to continue analysis anyway.
14689         * lib-writ.adb (Write_ALI): Always generate ALI files in
14690         GNATprove mode.
14691         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
14692         Expander_Active.
14693         (SPARK_Mode): Renamed as GNATprove_Mode.
14694         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
14695         tree in GNATprove_Mode.
14696         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
14697         body in GNATprove mode.
14698         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
14699         mode.
14700         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
14701         Make sure side effects are removed in GNATprove mode.
14703 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14705         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
14706         for aliased objects with an unconstrained nominal subtype.
14707         * gcc-interface/trans.c (Call_to_gnu): Likewise.
14708         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
14709         <case N_Op_Minus>: Remove useless code.
14710         (Exception_Handler_to_gnu_zcx): Minor tweaks.
14712 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14714         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
14715         Tidy up.  For a subtype with discriminants and variant part, if a
14716         variant is statically selected and the fields all have a constant
14717         position, put them in order of increasing position.  Likewise if
14718         no variant part but representation clause is present.
14719         * gcc-interface/utils.c (make_packable_type): Robustify.
14720         (maybe_pad_type): Use local variable and tidy up condition.  If no
14721         alignment is specified, use the original one.
14722         (create_type_stub_decl): Minor tweak.
14723         (convert) <case VECTOR_CST>: Fix typo.
14724         <case CONSTRUCTOR>: Deal with padding types around the same type.
14725         Do not punt on missing fields.
14726         (unchecked_convert): Call finish_record_type to lay out the special
14727         record types made for conversions from/to problematic integer types.
14728         Bump the alignment of CONSTRUCTORs before converting them to a more
14729         aligned type.
14731 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14733         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
14734         obsolete code for type_annotate_only mode, simplify code and slightly
14735         improve wording of comments.
14737 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
14739         PR ada/59772
14740         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
14741         as intermediate type.
14742         (UI_To_gnu): Likewise.
14744 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14746         * gnatvsn.ads (Current_Year): Bump to 2014.
14748 2014-01-02  Tobias Burnus  <burnus@net-b.de>
14750         * gnat_ugn.texi: Bump @copying's copyright year.
14752 Copyright (C) 2014 Free Software Foundation, Inc.
14754 Copying and distribution of this file, with or without modification,
14755 are permitted in any medium without royalty provided the copyright
14756 notice and this notice are preserved.