* cgraph.h: Flatten. Remove all include files.
[official-gcc.git] / gcc / ada / ChangeLog
blobaab7f4cc6188bf3897b2cf2707652886a58feaf2
1 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
3         * gcc-interface/trans.c: Adjust include files.
4         * gcc-interface/utils.c: Ditto.
6 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
8         * gcc-interface/utils.c (create_subprog_decl): Adjust condition.
10 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
12         * gcc-interface/misc.c (gnat_init_options_struct): Parameterize errno
13         support here instead of...
14         Do not set flag_delete_dead_exceptions to 1 unconditionally.
15         (gnat_init_gcc_eh): Set flag_delete_dead_exceptions to 1.
16         (gnat_init_gcc_fp): ...here.
18 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
20         * gcc-interface/trans.c (gnat_to_gnu) <N_Real_Literal>: Minor tweaks.
22 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
24         * gcc-interface/utils.c (create_var_decl_1): For a variable declared
25         in the unit, set TREE_PUBLIC only if it has static storage duration.
27 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
29         * gcc-interface/decl.c (gnat_to_gnu_entity): Apply special treatment
30         of derived packed array types to constrained subtypes only.
32 2014-10-27  Eric Botcazou  <ebotcazou@adacore.com>
34         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove
35         superfluous computation for the max size.
36         <E_Array_Subtype>: Likewise.  Make sure that the max size calculation
37         does not overflow at compile time.
39 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
41         * sem_eval.adb (Check_Non_Static_Context): Do not set
42         Is_Machine_Number on a literal of a fixed-point type.
44 2014-10-23  Robert Dewar  <dewar@adacore.com>
46         * mlib-prj.adb, sem_ch4.adb, exp_ch3.adb: Minor reformatting.
48 2014-10-23  Pierre-Marie Derodat  <derodat@adacore.com>
50         * exp_dbug.ads: Update ___XA parallel type specification.
52 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
54         * sem_ch3.adb (Copy_Array_Subtype_Attributes): Inherit the rep
55         chain of the source type.
56         * sem_ch13.adb (Analyze_Aspect_Specifications): Minor
57         reformatting of an error message.
58         * sem_util.adb (Inherit_Rep_Item_Chain): Do not inherit a rep
59         chain that has been inherited already.
61 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
63         * sem_ch6.adb (Analyze_Expression_Function): Simplify analysis
64         in generic context, and generate body in this case as well,
65         to simplify ASIS traversals on the construct.
67 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
69         * sem_ch4.adb (Complete_Object_Operation): Indicate that the
70         scope of the operation (s) is referenced, to prevent spurious
71         warnings about unused units.
73 2014-10-23  Johannes Kanig  <kanig@adacore.com>
75         * errout.adb (Error_Msg_Internal): Copy check flag, increment
76         check msg count.
77         * erroutc.adb (Delete_Msg) adjust check msg count.
78         (Output_Msg_Text) handle check msg case (do nothing).
79         (Prescan_Message) recognize check messages with severity prefixes.
80         * errutil.adb (Error_Msg) handle check flag, adjust counter.
82 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
84         * sem_eval.adb (Subtypes_Statically_Match): For a generic actual
85         type, check for the presence of discriminants in its parent type,
86         against the presence of discriminants in the context type.
88 2014-10-23  Tristan Gingold  <gingold@adacore.com>
90         * adaint.c: __gnat_get_file_names_case_sensitive: Default is
91         true on arm-darwin.
93 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
95         * pprint.adb (Expression_Image): Add handling of quantifiers.
97 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
99         * exp_pakd.adb (Expand_Packed_Element_Reference): If the
100         prefix is a source entity, generate a reference to it before
101         transformation, because rewritten node might not generate a
102         proper reference, leading to spurious warnings.
104 2014-10-23  Tristan Gingold  <gingold@adacore.com>
106         * init.c: Fix thinko in previous patch.
108 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
110         * sem_ch3.adb (Decimal_Fixed_Point_Type_Declaration):
111         Inherit the rep chain of the implicit base type.
112         (Floating_Point_Type_Declaration): Inherit the rep chain of the
113         implicit base type.
114         (Ordinary_Fixed_Point_Type_Declaration): Inherit the rep chain of the
115         implicit base type.
116         (Signed_Integer_Type_Declaration): Inherit the rep chain of the
117         implicit base type.
118         * sem_util.ads, sem_util.adb (Inherit_Rep_Item_Chain): New routine.
120 2014-10-23  Pascal Obry  <obry@adacore.com>
122         * g-regist.adb, g-regist.ads: Add support for reading 32bit or 64bit
123         view of the registry.
125 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
127         * exp_ch3.adb (Expand_N_Object_Declaration): If type is abstract,
128         return without expanding expression, to prevent subsequent crash.
129         * freeze.adb: better error message for illegal declaration.
131 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
133         * sysdep.c (__gnat_localtime_tzoff): Properly delimit the
134         substring which represents the time zone on VxWorks.
136 2014-10-23  Vincent Celier  <celier@adacore.com>
138         * gnatls.adb: If --RTS= was not used, check if there is a default
139         runtime. If there is none, in verbose mode, indicate that the
140         default runtime is not available and show only the current
141         directory in the source and the object search paths.
143 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
145         * sem_ch6.adb (Process_Formals): A thunk procedure with a
146         parameter of a limited view does not need a freeze node.
148 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
150         * sem_ch7.adb (Analyze_Package_Body_Helper):
151         The logic which hides local entities from external
152         visibility is now contained in routine Hide_Public_Entities.
153         (Hide_Public_Entities): New routine. Object and subprogram
154         renamings are now hidden from external visibility the same way
155         objects are.
157 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
159         * sem_attr.adb (Analyze_Attribute): The prefix of attribute Elaborated
160         does not require freezing, in particular if it denotes a generic
161         function.
163 2014-10-23  Yannick Moy  <moy@adacore.com>
165         * sem_prag.adb (Analyze_Pragma/Pragma_Inline & Pragma_Inline_Always):
166         Disable analysis in GNATprove mode.
168 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
170         * mlib-prj.adb: Remove obsolete references to libdecgnat (VMS only).
172 2014-10-23  Arnaud Charlet  <charlet@adacore.com>
174         * gnat1drv.adb (Adjust_Global_Switches): Ignore style check
175         pragmas in codepeer mode.
177 2014-10-23  Gary Dismukes  <dismukes@adacore.com>
179         * gnat_rm.texi: Minor syntax fix for pragma Annotate (missing ',').
181 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
183         * sem_ch12.adb (Inline_Instance_Body): Alphabetize
184         local variables and constants. Add constants Save_SM and Save_SMP
185         to capture SPARK_Mode-related attributes.  Compile the inlined
186         body with the SPARK_Mode of the enclosing context.
188 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
190         * sinfo.adb (Elaboration_Boolean): Removed.
191         (Set_Elaboration_Boolean): Removed.
192         * sinfo.ads Remove attribute Elaboration_Boolean along with its
193         occurrence in nodes.
194         (Elaboration_Boolean): Removed along with pragma Inline.
195         (Set_Elaboration_Boolean): Removed along with pragma Inline.
197 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
199         * sem_ch3.adb (Constant_Redeclaration): Make error message more
200         explicit on a deferred constant whose object_definition is an
201         anonymous array.
203 2014-10-23  Vincent Celier  <celier@adacore.com>
205         * gnatls.adb: Never call Targparm.Get_Target_Parameters.
207 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
209         * sem_ch6.adb (Analyze_Expression_Function): In a generic
210         context do not create a body, and only pre-analyze the expression,
211         which may include incomplete views.
213 2014-10-23  Robert Dewar  <dewar@adacore.com>
215         * sem_type.adb: Minor code reorganization (use Nkind_In, Ekind_In).
216         * sem_ch3.adb: Minor reformatting.
218 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
220         * sem_ch12.adb (Analyze_Associations): If an actual for a formal
221         object is a call to a parameterless expression function, add
222         the function to the list of actuals to freeze.
223         * freeze.adb (Check_Expression_Function): Create freeze nodes of
224         outer types that may be references in the body of the expression.
226 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
228         * exp_util.ads, checks.ads: Minor comment reformatting.
230 2014-10-23  Javier Miranda  <miranda@adacore.com>
232         * sem_eval (Test_In_Range): Disable removal of range_check for
233         VM targets.
235 2014-10-23  Robert Dewar  <dewar@adacore.com>
237         * erroutc.adb (Validate_Specific_Warnings): Fix test for -W
238         messages, which got disabled when we unconditionally added an
239         asterisk at the start of the string.
241 2014-10-23  Vincent Celier  <celier@adacore.com>
243         * gnatls.adb: Ensure that "gnatls -l" works even when there is
244         no default runtime.
246 2014-10-23  Eric Botcazou  <ebotcazou@adacore.com>
248         * sem_ch3.adb (Build_Derived_Private_Type): When the parent is
249         untagged and has discriminants, build the implicit full view after
250         building the derived type. Capture original declaration and type
251         here instead of...
252         (Copy_And_Build): ...here.
253         * sem_type.adb (Full_View_Covers): Handle the Underlying_Full_View.
255 2014-10-23  Hristian Kirtchev  <kirtchev@adacore.com>
257         * checks.adb (Ensure_Valid): Update the subprogram
258         profile. Propagate the contex attributes to Insert_Valid_Check.
259         (Insert_Valid_Check): Update the subprogram profile. Propagate
260         the attributes of the context to Duplicate_Subexpr_No_Checks.
261         (Validity_Check_Range): Update the subprogram profile. Propagate
262         the context attribute to Ensure_Valid.
263         * checks.ads (Ensure_Valid): Update the subprogram profile
264         along with the comment on usage.
265         (Insert_Valid_Check): Update the subprogram profile along with the
266         comment on usage.
267         (Validity_Check_Range): Update the subprogram profile along with
268         the comment on usage.
269         * exp_util.adb (Build_Temporary): New routine.
270         (Duplicate_Subexpr_No_Checks): Update the subprogram
271         profile. Propagate the attributes of the context to Remove_Side_Effects.
272         (Remove_Side_Effects): Update the subprogram profile. Update all calls
273         to Make_Temporary to invoke Build_Temporary.
274         * exp_util.ads (Duplicate_Subexpr_No_Checks): Update
275         the subprogram profile along with the comment on usage.
276         (Remove_Side_Effects): Update the subprogram profile along with
277         the comment on usage.
278         * sem_ch3.adb (Process_Range_Expr_In_Decl): Pass the subtype
279         to the validity check machinery.  Explain the reason for this
280         propagation.
282 2014-10-23  Robert Dewar  <dewar@adacore.com>
284         * a-strsea.adb: Minor reformatting.
286 2014-10-23  Thomas Quinot  <quinot@adacore.com>
288         * bcheck.adb (Check_Consistent_SSO_Default): Exclude internal
289         units from consistency check.
290         * gnat_rm.texi (Default_Scalar_Storage_Order): Document that
291         consistency check excludes run-time units.
293 2014-10-23  Ed Schonberg  <schonberg@adacore.com>
295         * a-strsea.adb (Find_Token): Enable constraint checking in this
296         procedure, so that even when compiling with checks suppressed, as is
297         the case for the run-time, an exception is raised in this routine when
298         the input meets the conditions described in RM 2005 A.4.3 (68/1).
300 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
302         * sem_ch3.adb (Build_Derived_Private_Type): When the parent
303         is untagged and has discriminants, build the implicit full
304         view even if the derived type is a completion, and make it
305         the Underlying_Full_View of the type.
306         (Copy_And_Build): Fix Is_Completion actual parameter in the calls to
307         Build_Derived_Type.
308         (Build_Derived_Record_Type): Likewise.
310 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
312         * sem_ch13.adb: Add guard to convention setting.
314 2014-10-20  Robert Dewar  <dewar@adacore.com>
316         * sem_ch3.adb, prj-proc.adb, prj-proc.ads, prj-conf.adb: Minor
317         reformatting.
319 2014-10-20  Robert Dewar  <dewar@adacore.com>
321         * par-prag.adb (Add_List_Pragma_Entry): New procedure.
322         * par.adb (P_Pragma): Document requirement to handle multiple calls.
324 2014-10-20  Robert Dewar  <dewar@adacore.com>
326         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
327         Fix error of bad inheritance of this pragma from with'ed unit.
329 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
331         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): For a subtype,
332         inherit convention from parent type, because the subtype may
333         have been declared on a partial view, prior to the pragma on
334         the parent.
336 2014-10-20  Olivier Hainque  <hainque@adacore.com>
337             Tristan Gingold  <gingold@adacore.com>
339         * gcc-interface/Makefile.in: Handle arm-darwin and VxWorks 7.
340         Misc clean ups.
342 2014-10-20  Nicolas Roche  <roche@adacore.com>
344         * gcc-interface/Make-lang.in: ensure that automatically generated
345         dependency are referencing generated gnatvsn rather than original
346         one.
348 2014-10-20  Gary Dismukes  <dismukes@adacore.com>
350         * gnat_ugn.texi: Minor reformatting.
351         * sem_ch3.adb: Minor reformatting.
353 2014-10-20  Vincent Celier  <celier@adacore.com>
355         * prj-attr.adb: New project level attribute Runtime.
356         * prj-conf.adb (Get_Project_Runtimes): New procedure to get
357         the attributes Runtime declared in the main project, to use
358         in auto-configuration.
359         (Get_Or_Create_Configuration_File): Call Get_Project_Runtimes.
360         * prj-proc.adb (Runtime_Defaults): New table to store
361         the default values of attributes Runtime (<language>).
362         (Set_Default_Runtime_For): New procedure to store the default
363         value of a Runtime (<language>) in table Runtime_Defaults.
364         (Expression): Use the value stored in table Runtime_Defaults as
365         the default for Runtime (<language>).
366         * prj-proc.ads (Set_Default_Runtime_For): New procedure.
367         * prj.ads (Attribute_Default_Value): New enumerated value
368         Runtime_Value.
370 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
372         * sem_ch3.adb (Analyze_Object_Declaration): If the type is
373         an unconstrained unchecked_union type, rewrite declaration
374         as a renaming to prevent attempt to retrieve non- existent
375         discriminants from expression.
377 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
379         * gnat_ugn.texi: Minor reformatting.
381 2014-10-20  Tristan Gingold  <gingold@adacore.com>
383         * init.c (__gnat_is_stack_guard): Don't use mach_vm_region_recurse on
384         arm-darwin.
385         * raise-gcc.c: Add ATTRIBUTE_UNUSED to remove warnings for
386         unused arguments.
388 2014-10-20  Hristian Kirtchev  <kirtchev@adacore.com>
390         * sem_attr.adb (Analyze_Attribute): Replace
391         variables CS and PS with Proc_Id and Subp_Id to better illustrate
392         their purpose. Account for the case where _Postconditions
393         has not been generated yet and the context is aspect/pragma
394         Refined_Post. In that scenario the expected prefix of attribute
395         'Result is the current scope.
397 2014-10-20  Robert Dewar  <dewar@adacore.com>
399         * par-ch4.adb (P_Expression): Handle extraneous comma/semicolon
400         in middle of expression with logical operators.
402 2014-10-20  Robert Dewar  <dewar@adacore.com>
404         * par-ch13.adb (Possible_Misspelled_Aspect): New function.
406 2014-10-20  Steve Baird  <baird@adacore.com>
408         * pprint.adb: Improve Expression_Image function.
410 2014-10-20  Robert Dewar  <dewar@adacore.com>
412         * gnat_rm.texi: Document No_Tagged_Streams pragma and aspect.
413         * snames.ads-tmpl: Add entry for pragma No_Tagged_Streams.
414         * aspects.ads, aspects.adb: Add aspect No_Tagged_Streams.
415         * einfo.adb (No_Tagged_Streams_Pragma): New field.
416         * einfo.ads: Minor reformatting (reorder entries).
417         (No_Tagged_Streams_Pragma): New field.
418         * exp_ch3.adb: Minor comment update.
419         * opt.ads (No_Tagged_Streams): New variable.
420         * par-prag.adb: Add dummy entry for pragma No_Tagged_Streams.
421         * sem.ads (Save_No_Tagged_Streams): New field in scope record.
422         * sem_attr.adb (Check_Stream_Attribute): Check stream ops
423         prohibited by No_Tagged_Streams.
424         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set
425         No_Tagged_Streams_Pragma.
426         (Analyze_Subtype_Declaration): ditto.
427         (Build_Derived_Record_Type): ditto.
428         (Record_Type_Declaration): ditto.
429         * sem_ch8.adb (Pop_Scope): Restore No_Tagged_Streams.
430         (Push_Scope): Save No_Tagged_Streams.
431         * sem_prag.adb (Analyze_Pragma, case No_Tagged_Streams): Implement new
432         pragma.
434 2014-10-20  Robert Dewar  <dewar@adacore.com>
436         * sem_ch3.adb, prj-proc.adb, sem_ch4.adb, prj-env.adb, lib.ads,
437         sem_ch13.adb: Minor reformatting.
439 2014-10-20  Javier Miranda  <miranda@adacore.com>
441         * exp_ch3.adb (Expand_N_Object_Declaration): Expand the
442         declaration of a class-wide limited object containing an
443         initializing expression into a renaming declaration.  Required to
444         avoid passing such declaration to the backend and also to avoid
445         generating an extra copy.
447 2014-10-20  Eric Botcazou  <ebotcazou@adacore.com>
449         * inline.adb (List_Inlining_Info): Minor tweaks.
450         (Add_Inlined_Body): Inline the enclosing package
451         if it is not internally generated, even if it doesn't come
452         from source.
454 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
456         * sem_ch4.adb (Process_Function_Call): If the first actual
457         denotes a discrete type, the mode must be interpreted as a slice
458         of an array returned by a parameterless call.
460 2014-10-20  Vasiliy Fofanov  <fofanov@adacore.com>
462         * prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit
463         searching for runtime referenced by a simple name on a project path.
465 2014-10-20  Olivier Hainque  <hainque@adacore.com>
467         * vxworks-x86-link.spec: New file.
468         * system-vxworks-x86.ads: Add pragma Linker_Options to link with
469         vxworks-x86-link.spec.
471 2014-10-20  Vincent Celier  <celier@adacore.com>
473         * opt.ads (Origin_Of_Target): New type.
474         (Target_Origin): New variable.
475         * prj-conf.adb (Parse_Project_And_Apply_Config): Record
476         Target_Value and Target_Origin.  If target was not specified
477         on the command line with --target=, check if attribute Target
478         is declared in the main project. If it is and it is not the
479         native target, parse again the projects so that 'Target get
480         the new value. Fail if the target has changed again.  Invoke
481         Process_Project_And_Apply_Config with Do_Phase_1 set to False
482         is Process_Project_Tree_Phase_1 has already been invoked.
483         * prj-conf.ads (Process_Project_And_Apply_Config): New Boolean
484         parameter Do_Phase_1, defaulted to True.
485         * prj-proc.adb (Expression): Check the special values and
486         defaults for attribute Target.
488 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
490         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze
491         the subprogram spec of the body in full, because it will be
492         reanalyzed when the declaration itself is analyzed;  otherwise. a
493         formal may end up duplicated in the list of formals leading to
494         spurious conformance errors with an existing declaration.
496 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
498         * sem_ch13.adb: Improve error recovery on illegal aspect.
500 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
502         * set_targ.adb (Write_Target_Dependent_Values, Write_Line):
503         Fix calling C APIs with no trailing NUL char by calling better
504         wrappers instead.
506 2014-10-20  Tristan Gingold  <gingold@adacore.com>
508         * gnat_ugn.texi: Document that gdb users must be in group
509         _developer on mac os.
511 2014-10-20  Arnaud Charlet  <charlet@adacore.com>
513         * a-tgdico.ads: Fix typo.
515 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
517         * exp_aggr.adb (Convert_To_Assignments): Do not create a
518         transient scope for a component whose type requires it, if the
519         context is an initialization procedure, because the target of
520         the assignment must be visible outside of the block.
522 2014-10-20  Tristan Gingold  <gingold@adacore.com>
524         * tracebak.c: Define PC_ADJUST for arm-darwin.
525         * env.c: Remove darwin specific code.
526         * raise-gcc.c (__gnat_Unwind_ForcedUnwind): Error on arm-darwin.
528 2014-10-20  Ed Schonberg  <schonberg@adacore.com>
530         * sem_ch3.adb (Analyze_Full_Type_Declaration): If previous view
531         is incomplete rather than private, and full type declaration
532         has aspects, analyze aspects on the full view rather than
533         the incomplete view, to prevent freezing anomalies with the
534         class-wide type.
536 2014-10-17  Robert Dewar  <dewar@adacore.com>
538         * exp_ch9.adb (Expand_N_Task_Body): Add defense against
539         previous errors.
540         * freeze.adb (Freeze_Entity): Add defense against checking null
541         scope for generic.
542         * restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode.
543         * sem_ch13.adb (Freeze_Entity_Checks): Add defense against
544         previous errors.
545         * sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if
546         in No_Run_Time mode.
548 2014-10-17  Robert Dewar  <dewar@adacore.com>
550         * prj-makr.adb: Minor reformatting.
552 2014-10-17  Robert Dewar  <dewar@adacore.com>
554         * gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb,
555         prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible.
557 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
559         * exp_prag.adb (Undo_Initialization): If Initialize_Scalars
560         is enabled, code will be generated for some composite types
561         to initialize an object after its declaration. If there is
562         a subsequent Import pragma for the object, that code must be
563         removed as specified byw the semantics of the pragma, and to
564         prevent out-of-order elaboration issues in the back-end.
566 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
568         * exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator
569         wrapping mechanism under debug flag -gnatd.h.
570         * debug.adb: Claim debug switch -gnatd.h.
572 2014-10-17  Doug Rupp  <rupp@adacore.com>
574         * gcc-interface/Makefile.in: Enable the socket runtime bits
575         for Android.
577 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
579         * sem_ch13.adb (Add_Invariants, Replace_Type_References): Do
580         not perform the replacement on the expression for an inherited
581         class-wide invariant if in ASIS_Mode and the type reference is
582         already the prefix of a 'Class attribute reference: the expression
583         has already been preanalyzed and the replacement performed when
584         first encountered on the declaration of the parent type.
586 2014-10-17  Robert Dewar  <dewar@adacore.com>
588         * sem_ch5.adb, sem_ch7.adb, prj-nmsc.adb, sem_ch13.adb, exp_ch3.adb:
589         Minor reformatting.
591 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
593         * exp_ch3.adb (Build_Component_Invariant_Call): Retrieve Invariant
594         subprogram from base type.
595         * sem_ch7.adb (Analyze_Package_Specification): Build invariant
596         subprogram for private type, not any of its subtypes.
597         * sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set type
598         of procedure entity, because a call to it may be generated in
599         a client unit before the corresponding subprogram declaration
600         is analyzed.
602 2014-10-17  Vincent Celier  <celier@adacore.com>
604         * prj-nmsc.adb (Get_Directories): Do not create directories
605         when a project is abstract.
607 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
609         * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
610         of iteration is given by an expression that is not an array type,
611         verify that its type implements an iterator iterface.
613 2014-10-17  Robert Dewar  <dewar@adacore.com>
615         * sem_attr.adb (Eval_Attribute): Ensure that attribute
616         reference is not marked as being a static expression if the
617         prefix evaluation raises CE.
619 2014-10-17  Robert Dewar  <dewar@adacore.com>
621         * exp_pakd.adb: Move bit packed entity tables to spec.
622         * exp_pakd.ads: Move bit packed entity tables here from body.
623         * freeze.adb (Freeze_Array_Type): Check that packed array type
624         is supported.
625         * rtsfind.adb (PRE_Id_Table): New table (Entity_Not_Defined):
626         Specialize messages using PRE_Id_Table.
627         * uintp.ads, uintp.adb (UI_Image): New functional form.
629 2014-10-17  Robert Dewar  <dewar@adacore.com>
631         * aspects.ads, aspects.adb: Add Suppress_Initialization aspect.
632         * einfo.ads, einfo.adb (Suppress_Initialization): Now applies to
633         E_Variable.
634         * exp_ch3.adb (Default_Initialize_Object): Handle
635         Suppress_Initialization.
636         * exp_prag.adb (Expand_Pragma_Suppress_Initialization): New
637         procedure (Expand_N_Pragma): Handle Suppress_Initialization
638         (Expand_Pragma_Import_Or_Interface): Use Undo_Initialization
639         (Undo_Initialization): New procedure.
640         * sem_prag.adb (Analyze_Pragma, case Suppress_Initialization):
641         This is now allowed for E_Variable case.
642         * gnat_rm.texi: Document new aspect Suppress_Initialization
643         Suppress_Initialization aspect/pragma can apply to variable.
644         * einfo.ads: Minor reformatting.
646 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
648         * spark_xrefs.ads: Add documentation pointer to Flow_Computed_Globals.
650 2014-10-17  Robert Dewar  <dewar@adacore.com>
652         * cstand.adb (Create_Standard): Mark Short_Integer as
653         implementation defined.
654         * sem_util.adb (Set_Entity_With_Checks): Avoid blow up for
655         compiler built with assertions for No_Implementation_Identifiers test.
657 2014-10-17  Robert Dewar  <dewar@adacore.com>
659         * aspects.ads: Documentation fix, aspect Lock_Free does have a
660         corresponding pragma.
661         * gnat_rm.texi: Document implementation defined boolean aspects
662         as boolean.
664 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
666         * sem_ch13.adb (Add_Invariants): For a class-wide type invariant,
667         preserve semantic information on the invariant expression
668         (typically a function call) because it may be inherited by a
669         type extension in a different unit, and it cannot be resolved
670         by visibility elsewhere because it may refer to local entities.
672 2014-10-17  Robert Dewar  <dewar@adacore.com>
674         * gnat_rm.texi: Document that string literal can be used for
675         pragma Warnings when operating in Ada 83 mode.
677 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
679         * freeze.adb (Find_Aggregate_Component_Desig_Type): New
680         subsidiary function to Freeze_ Expression, used to determine
681         whether an aggregate for an array of access types also freezes the
682         designated type, when some aggregate components are allocators.
684 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
686         * a-strsea.adb (Find_Token): AI05-031 indicates that the
687         procedure must raise Index_Error when Source is not empty and
688         the From parameter is not within the range of the Source string.
690 2014-10-17  Robert Dewar  <dewar@adacore.com>
692         * sem_prag.adb (Is_Static_String_Expression): Allow string
693         literal in Ada 83 mode.
695 2014-10-17  Vincent Celier  <celier@adacore.com>
697         * prj-conf.adb (Get_Config_Switches): In CodePeer mode, do
698         not take into account any compiler command from package IDE.
700 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
702         * sem_ch12.adb (Build_Function_Wrapper): The formals of the
703         wrapper must have the same identifiers as those of the formal
704         subprogram, because calls within the generic may use named
705         associations.
707 2014-10-17  Robert Dewar  <dewar@adacore.com>
709         * sem_ch3.adb, a-strsea.adb: Minor reformatting.
710         * par-ch6.adb (P_Subprogram): Fix bad handling of null procedures.
712 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
714         * sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect
715         specfications from original type declaration to declaration of
716         implicit base, because original node is rewritten as a subtype
717         declaration on which type aspects do not belong.
719 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
721         * sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type
722         inherits the attributes related to pragma Default_Initial_Condition
723         from its parent type.
725 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
727         * a-strsea.adb (Index - versions with a From parameter):
728         According to AI05-056, the Index functions with a From parameter
729         return 0 if the source is an empty string.
731 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
733         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable
734         the consistency checks in ASIS mode.
736 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
738         * s-expmod.ads: Minor typo fix.
740 2014-10-17  Robert Dewar  <dewar@adacore.com>
742         * sem_util.adb: Minor reformatting.
744 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
746         * sem_ch12.adb (Build_Function_Wrapper): Build wrappers for
747         actuals that are defaulted subprograms of the formal subprogram
748         declaration.
750 2014-10-17  Robert Dewar  <dewar@adacore.com>
752         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the
753         implementation base type.
754         * sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record
755         operands are always expanded out into component comparisons.
757 2014-10-17  Robert Dewar  <dewar@adacore.com>
759         * s-vallli.adb: Minor comment correction.
760         * s-valuti.ads: Minor comment reformatting.
762 2014-10-17  Robert Dewar  <dewar@adacore.com>
764         * gnat_rm.texi: Document System.Atomic_Counters.
765         * impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the
766         list of user- accessible units added as children of System.
767         * s-atocou.ads: Update comment.
769 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
771         * s-expmod.ads: Add comments.
773 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
775         * sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation
776         of all attributes related to pragma Default_Initial_Condition.
777         (Build_Derived_Type): Propagation of all attributes related
778         to pragma Default_Initial_Condition.
779         (Process_Full_View): Account for the case where the full view derives
780         from another private type and propagate the attributes related
781         to pragma Default_Initial_Condition to the private view.
782         (Propagate_Default_Init_Cond_Attributes): New routine.
783         * sem_util.adb: Alphabetize various routines.
784         (Build_Default_Init_Cond_Call): Use an unchecked type conversion
785         when calling the default initial condition procedure of a private type.
786         (Build_Default_Init_Cond_Procedure_Declaration): Prevent
787         the generation of multiple default initial condition procedures.
789 2014-10-17  Robert Dewar  <dewar@adacore.com>
791         * prj-conf.adb: Revert previous change.
793 2014-10-17  Robert Dewar  <dewar@adacore.com>
795         * lib-writ.ads, s-valdec.ads: Minor reformatting.
797 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
799         * sem_ch12.adb: Additional work on function wrappers.
801 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
803         * exp_util.adb (Possible_Bit_Aligned_Component): Also recurse
804         on the renamed object of renamings.
806 2014-10-17  Vincent Celier  <celier@adacore.com>
808         * prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer
809         mode, always use the native target.
811 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
813         * gcc-interface/misc.c: Adjust include files.
815 2014-10-13  Eric Botcazou  <ebotcazou@adacore.com>
816             Alan Modra  <amodra@gmail.com>
818         PR ada/63225
819         * uintp.adb (Vector_To_Uint): Move from here to...
820         * uintp.ads (UI_Vector): Make public.
821         (Vector_To_Uint): ...here.
823 2014-10-10  Robert Dewar  <dewar@adacore.com>
825         * freeze.adb, sem_attr.adb: Minor reformatting.
827 2014-10-10  Johannes Kanig  <kanig@adacore.com>
829         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
830         a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
831         to container type.
833 2014-10-10  Vincent Celier  <celier@adacore.com>
835         * prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
836         any configuration switches from the project file.
838 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
840         * sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
841         (Build_Function_Wrapper): New function, to construct a wrapper
842         function for actuals that are functions with an arbitrary
843         number of parameters. Used in GNATProve mode to simplify proof
844         propagation in instantiations.
846 2014-10-10  Robert Dewar  <dewar@adacore.com>
848         * freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
849         code clean up.
851 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
853         * sem_res.adb (Is_OK_Volatile_Context): Allow
854         a volatile object reference to appear as the expression of a
855         type conversion.
857 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
859         * sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
860         Aspect specification is legal on a local instantiation of a
861         library-level generic unit.
863 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
865         * gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
866         if inlining has been enabled via -gnatn and the target is not GCC.
868 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
870         * freeze.adb (Freeze_Entity): Freezing a subprogram does
871         not always freeze its profile.  In particular, an attribute
872         reference that takes the access type does not freeze the types
873         of the formals.
875 2014-10-10  Robert Dewar  <dewar@adacore.com>
877         * errout.adb (Adjust_Name_Case): New procedure.
878         (Set_Msg_Node): Use Adjust_Name_Case.
879         * errout.ads (Adjust_Name_Case): New procedure.
880         * exp_intr.adb (Add_Source_Info): Minor code reorganization
881         (use Ekind_In).
882         (Write_Entity_Name): Use Errout.Adjust_Name_Case.
883         * sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
884         and fix up entries in Sig_Flags, and correct logical errors in
885         function itself.
886         * sprint.adb (Sprint_Node_Actual): Properly print string for
887         raise statement.
889 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
891         * sem_ch3.adb (Analyze_Object_Declaration): For an object of an
892         anonymous array type with delayed aspects, defer freezing of
893         type until object itself is frozen.
894         * freeze.adb (Freeze_Entity): When freezing an object of an
895         anonymous array type with delayed aspects, remove freeze node of
896         object after freezing type, to prevent out-of-order elaboration
897         in the back-end. The initialization call for the object has
898         already been constructed when expanding the object declaration.
900 2014-10-10  Robert Dewar  <dewar@adacore.com>
902         * exp_intr.adb (Write_Entity_Name): Moved to outer level
903         (Write_Entity_Name): Properly handle operator names
904         (Expand_Source_Info): New procedure.
905         * exp_intr.ads (Add_Source_Info): New procedure.
907 2014-10-10  Robert Dewar  <dewar@adacore.com>
909         * butil.ads: Minor reformatting.
910         * sem_ch5.adb: Code clean up.
912 2014-10-10  Robert Dewar  <dewar@adacore.com>
914         * exp_ch11.adb (Expand_N_Raise_Statement): Handle
915         Prefix_Exception_Messages.
916         * opt.adb: Handle new flags Prefix_Exception_Message[_Config].
917         * opt.ads: New flags Prefix_Exception_Message[_Config].
918         * par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
919         * snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
920         * sem_prag.adb: Implement new pragma Prefix_Exception_Messages
921         * gnat_rm.texi: Document pragma Prefix_Exception_Messages.
923 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
925         * sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
926         raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).
928 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
930         * sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
931         contain pragmas generated for loop invariants and type predicates.
932         Clarify use of this subprogram.
934 2014-10-10  Yannick Moy  <moy@adacore.com>
936         * sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
937         contracts.
938         * errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
939         SPARK_Mode is Off.
941 2014-10-10  Vadim Godunko  <godunko@adacore.com>
943         * a-stwima.adb (To_Sequence): Compute size of result array.
945 2014-10-10  Javier Miranda  <miranda@adacore.com>
947         * gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
948         sources of the example to avoid a warning when the Ada files are
949         automatically generated by the binding generator.
951 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
953         * sem_attr.adb (Resolve_Attribute, case 'Update): Set
954         Do_Range_Check on the expression of a record component
955         association when needed, as is done for array components, when
956         the corresponding type is a scalar type.
958 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
960         * a-coinho-shared.adb: Minor typo fix.
961         * prj-env.ads: Minor reformatting.
963 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
965         * sem_res.adb (Resolve_String_Literal): Do not
966         generate a string literal subtype for the default expression of
967         a formal parameter in GNATprove mode.
969 2014-10-10  Yannick Moy  <moy@adacore.com>
971         * errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.
973 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
975         * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
976         declaration for loop parameter before rest of loop, and set
977         entity kind to prevent assignments to it in the user code.
978         * sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
979         loop parameter in an element iteration over o formal container.
981 2014-10-10  Robert Dewar  <dewar@adacore.com>
983         * gnat_ugn.texi: Document use of user-level routines to handle
984         e.g. col major arrays.
986 2014-10-10  Doug Rupp  <rupp@adacore.com>
988         * s-osinte-android.adb: Fix misspelling.
989         * gsocket.h: Tweak the Android quirks.
991 2014-10-10  Robert Dewar  <dewar@adacore.com>
993         * errout.ads (SPARK_Msg_N): Fix spec to match change in body.
995 2014-10-10  Robert Dewar  <dewar@adacore.com>
997         * sem_ch13.adb: Minor code reorganization.
999 2014-10-10  Pat Rogers  <rogers@adacore.com>
1001         * gnat_rm.texi: Text now indicates pragma No_Run_Time is not
1002         for users.
1004 2014-10-10  Vadim Godunko  <godunko@adacore.com>
1006         * a-coinho-shared.adb: Add minor comment.
1007         * a-stzmap.adb (To_Sequence): Compute size of result array.
1009 2014-10-10  Javier Miranda  <miranda@adacore.com>
1011         * exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
1012         if-stmt to match its current documentation.
1014 2014-10-10  Robert Dewar  <dewar@adacore.com>
1016         * sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
1017         freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
1018         sem_ch6.adb, sem_cat.adb, sem_disp.adb
1019         (Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
1020         throughout where appropriate.
1022 2014-10-10  Bob Duff  <duff@adacore.com>
1024         * a-coinho-shared.ads: Minor reformatting.
1025         * s-traceb.adb: Minor clean up.
1027 2014-10-10  Robert Dewar  <dewar@adacore.com>
1029         * ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
1030         * ali.ads (GNATprove_Mode): New component in ALI table.
1031         (GNATprove_Mode_Specified): New global.
1032         * gnatbind.adb (Gnatbind): Give fatal error if any file compiled
1033         in GNATProve mode.
1034         * lib-writ.ads, lib-writ.adb (GP): New flag on P line for
1035         GNATProve_Mode.
1037 2014-10-10  Javier Miranda  <miranda@adacore.com>
1039         * exp_ch3.adb (Build_Init_Procedure): Adding assertion.
1040         (Build_Init_Statement): Ensure that statements
1041         associated with the parent components are located at the beginning
1042         of the returned list of statements.
1044 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
1046         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
1047         view of a private type T that has a type invariant is a scalar
1048         or constrained array type, the base type created for the full
1049         view has the same type invariant.
1051 2014-10-10  Robert Dewar  <dewar@adacore.com>
1053         * exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
1054         reorganization.
1056 2014-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1058         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
1059         * gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
1061 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
1063         * gcc-interface/Make-lang.in (check_acats_numbers0,
1064         check_acats_numbers1, check_acats_numbers2, check_acats_numbers3,
1065         check_acats_numbers4, check_acats_numbers5, check_acats_numbers6,
1066         check_acats_numbers, check_acats_subdirs): New variables.
1067         (check_acats_targets): Use $(check_acats_subdirs).
1068         (check-acats, check-acats%): Rewritten so that for parallelized
1069         testing each job runs all the chapters files, with
1070         GCC_RUNTEST_PARALLELIZE_DIR set in environment.  Prepare the support
1071         directory sequentially and share it.
1072         (check-acats-subtargets): Always print just check-acats.
1074 2014-08-25  Martin Liska  <mliska@suse.cz>
1076         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to
1077         new cgraph interface.
1078         (gnat_write_global_declarations): Likewise.
1080 2014-08-13  Sylvestre Ledru  <sylvestre@debian.org>
1082         * 9drpc.adb: Fix a typo
1083         * s-interr.ads: Likewise
1084         * s-taskin.ads: Likewise
1085         * s-traces.ads: Likewise
1086         * sysdep.c: Likewise
1088 2014-08-12  Joel Sherrill <joel.sherrill@oarcorp.com>
1090         * socket.c: For RTEMS, use correct prototype of gethostbyname_r().
1091         * gsocket.h Add include of <unistd.h> on RTEMS.
1093 2014-08-11  Joel Sherrill <joel.sherrill@oarcorp.com>
1095         * s-osinte-rtems.adb: Correct formatting of line in license block.
1097 2014-08-04  Claire Dross  <dross@adacore.com>
1099         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
1100         For an instance, look at the scope before the generic parent.
1102 2014-08-04  Yannick Moy  <moy@adacore.com>
1104         * lib-writ.ads: Update comments.
1105         * sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add
1106         parameters to filter inherited subprograms.
1108 2014-08-04  Robert Dewar  <dewar@adacore.com>
1110         * gnat_rm.texi: Add section on use of address clause for memory
1111         mapped I/O.
1113 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1115         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in
1116         particular the subtype created for a generic actual, inherits
1117         invariant information from the base type.
1119 2014-08-04  Robert Dewar  <dewar@adacore.com>
1121         * aspects.ads, aspects.adb: Add entries for aspect Obsolescent.
1122         * gnat_rm.texi: Add documentation for aspect Obsolescent.
1123         * sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect
1124         Obsolescent.
1125         (Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent.
1126         * s-osprim-mingw.adb: Minor reformatting.
1127         * sem_res.adb (Is_Atomic_Ref_With_Address): New function
1128         (Resolve_Indexed_Component): Rework warnings for non-atomic access
1129         (Resolve_Selected_Component): Add warnings for non-atomic access.
1131 2014-08-04  Doug Rupp  <rupp@adacore.com>
1133         * g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec
1134         formal to long_long.
1135         * g-calend.ads (timeval): Bump up size to accomodate sec type.
1136         * s-taprop-linux.adb (timeval_to_duration): Change sec formal to
1137         long_long
1138         * s-osprim-posix.adb (timeval): Bump up size to accomodate
1139         new sec type.
1140         (timeval_to_duration): Change sec formal to Long_Long_Integer
1141         * s-osinte-darwin.adb (timeval): Bump up
1142         size to accomodate new sec type.
1143         (timeval_to_duration): Change sec formal to long_long
1144         * s-osinte-android.adb: Likewise.
1145         * cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change
1146         sec formal from long to long long.
1148 2014-08-04  Robert Dewar  <dewar@adacore.com>
1150         * sem_res.adb (Resolve_Qualified_Expression): Make sure
1151         Do_Range_Check flag gets set.
1153 2014-08-04  Robert Dewar  <dewar@adacore.com>
1155         * einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
1156         * exp_ch3.adb (Build_Array_Init_Proc): Use
1157         Is_Standard_String_Type.
1158         (Expand_Freeze_Array_Type): ditto.
1159         (Get_Simple_Init_Val): ditto.
1160         (Needs_Simple_Initialization): ditto.
1161         * sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
1162         * sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
1164 2014-08-04  Pascal Obry  <obry@adacore.com>
1166         * adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
1167         _stprintf which insert garbage into the wfull_path buffer.
1169 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1171         * cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
1172         code.
1173         * fe.h: Minor reformatting.
1175 2014-08-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1177         * cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
1179 2014-08-04  Robert Dewar  <dewar@adacore.com>
1181         * par-ch13.adb (Get_Aspect_Specifications): Improve error
1182         recovery, fixing a -gnatQ bomb.
1184 2014-08-04  Yannick Moy  <moy@adacore.com>
1186         * sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode,
1187         do not generate two Itypes with the same name for an array
1188         definition.
1189         * sinfo.ads: Expand doc on GNATprove mode.
1191 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1193         * exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization
1194         master and storage pool attributes on the root type of an
1195         anonymous access type.
1196         * exp_ch4.adb (Expand_N_Allocator): Set the finalization master
1197         and storage pool attributes on the root type of an anonymous
1198         access type.
1200 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1202         * exp_ch3.adb: Minor reformatting.
1203         * tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed.
1204         * tracebak.c: Remove use of above files.
1205         * gcc-interface/Makefile.in: Update dependencies.
1207 2014-08-04  Pierre-Marie Derodat  <derodat@adacore.com>
1209         * gcc-interface/utils.c (gnat_set_type_context): Also set the
1210         context for parallel types' TYPE_STUB_DECL.  Do not change
1211         anything if the context is already set for them.
1212         (gnat_pushdecl): Update the comment for calls to
1213         gnat_set_type_context to mention parallel types.
1214         (add_parallel_type): When adding a context-less parallel type to
1215         a type that has a context, propagate the context from the latter
1216         type to the former.
1217         (process_deferred_decl_context): Call gnat_set_type_context
1218         rather than manually setting the type context.
1219         (build_unc_object_type): Call gnat_set_type_context on the
1220         template type.
1222 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1224         * exp_ch5.adb (Expand_N_Case_Statement): If a choice is a
1225         subtype indication and the case statement has only two choices,
1226         replace subtype indication with its range, because the resulting
1227         membership test cannot have a subtype indication as an operand.
1229 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1231         * exp_ch3.adb: Update comments, minor reformatting.
1233 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1235         * sem_ch3.adb (Analyze_Declarations): Explain why the bodies of
1236         the default initial condition procedures are build here.
1237         * sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the
1238         analyzed argument of pragma Default_Initial_Condition in some
1239         dummy code as GNATprove mode disables assertions, but still
1240         needs to see the argument.
1242 2014-08-04  Robert Dewar  <dewar@adacore.com>
1244         * exp_ch6.adb, sem_util.adb: Minor reformatting.
1246 2014-08-04  Olivier Hainque  <hainque@adacore.com>
1248         * a-comutr.ads: Set Root_Node_Type'Alignment to
1249         Standard'Maximum_Alignment, so that it is at least as large as
1250         the max default for Tree_Node_Type'Alignment.
1252 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1254         * exp_ch3.adb (Freeze_Type): Remove the generation and inheritance
1255         of the default initial condition procedure [body].
1256         * sem_ch3.adb (Analyze_Declarations): Create the bodies of
1257         all default initial condition procedures at the end of private
1258         declaration analysis.
1259         * sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New
1260         routine.
1261         (Build_Default_Init_Cond_Procedure_Body): Merged in the
1262         processing of routine Build_Default_Init_Cond_Procedure_Bodies.
1263         * sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies):
1264         New routine.
1265         (Build_Default_Init_Cond_Procedure_Body): Removed.
1267 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1269         * sem_elab.adb (Check_Elab_Call): Do not check a call to a
1270         postcondtion.
1271         * exp_ch6.adb (Expand_Call): Clarify handling of inserted
1272         postcondition call.
1274 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1276         * sem_prag.adb (Analyze_Pragma): Ensure that an
1277         internally generated spec for a stand alone body is recognized
1278         as a proper context for pragma SPARK_Mode.
1280 2014-08-04  Robert Dewar  <dewar@adacore.com>
1282         * erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors.
1284 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1286         * adabkend.adb (Scan_Back_End_Switches): Ignore extra -o
1287         when -gnatO has already been specified, for compatibility
1288         with gcc driver.
1289         (Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in
1290         codepeer mode.
1291         * g-expect.ads: Fix typo.
1293 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1295         * exp_ch4.adb (Insert_Dereference_Action): the actual Size
1296         must account for the bounds template if the designated type is
1297         an unconstrained array.
1299 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1301         * a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add
1302         SPARK_Mode in the body.
1303         * sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original
1304         way to verify the consistency of SPARK_Mode between a spec and
1305         a body.
1306         * sem_ch12.adb (Analyze_Package_Instantiation): Remove the call
1307         to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
1308         manually.
1309         (Analyze_Subprogram_Instantiation): Remove the call to
1310         Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
1311         manually.
1312         * sem_prag.adb (Analyze_Pragma): Remove local variable
1313         Inst_Id. SPARK_Mode can no longer be applied to a package or
1314         subprogram instantiation.
1315         * sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode):
1316         Removed.
1318 2014-08-04  Robert Dewar  <dewar@adacore.com>
1320         * sem_prag.adb, osint.adb, osint.ads: Minor reformatting.
1322 2014-08-04  Yannick Moy  <moy@adacore.com>
1324         * sem_ch3.adb (Derive_Type_Declaration,
1325         Process_Discriminants): Remove SPARK-specific legality checks.
1327 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1329         * g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram.
1330         * gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support
1331         for HMAC.
1333 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1335         * sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the
1336         compatibility of SPARK_Mode between a spec and a body, use the
1337         SPARK_Mode of the public part.
1338         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use
1339         the already available routine to exchange the aspects between
1340         the template and its copy. Analyze the aspects of copy to
1341         ensure that the corresponding pragmas perform their semantic
1342         effects.  The partial analysis of aspects is no longer needed.
1343         (Analyze_Package_Instantiation): Save and restore the SPARK_Mode
1344         of the context.
1345         (Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of
1346         the context.
1347         * sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram
1348         instantiation which does not come from source.
1350 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1352         * a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add
1353         SPARK_Mode pragmas to the public and private part of the unit.
1354         * sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived
1355         type cannot have discriminants if the parent type already has
1356         discriminants.
1357         (Process_Discriminants): Ensure that the type of a discriminant is
1358         discrete.
1359         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on
1360         SPARK_Mode compatibility between a spec and a body can now be
1361         safely performed while processing a generic.
1362         * sem_ch7.adb (Analyze_Package_Body_Helper): The check on
1363         SPARK_Mode compatibility between a spec and a body can now be
1364         safely performed while processing a generic.
1365         * sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be
1366         safely analyzed when processing a generic.
1368 2014-08-04  Nicolas Roche  <roche@adacore.com>
1370         * g-dirope.adb: Minor reformating.
1372 2014-08-04  Robert Dewar  <dewar@adacore.com>
1374         * sem_ch6.adb: Minor reformatting.
1376 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1378         * sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
1379         Before normalizing these pragmas into a pragma Check, preanalyze
1380         the optional Message argument, (which is subsequently copied)
1381         so that it has the proper semantic information for ASIS use.
1382         * sem_case.adb: Initialize flag earlier.
1383         * osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
1384         the full source path of a configuration file is requested.
1385         (Read_Source_File): Use Full_Name parameter..
1387 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1389         * opt.ads Alphabetize various global flags. New flag
1390         Ignore_Pragma_SPARK_Mode along with a comment on usage.
1391         * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
1392         Pragma SPARK_Mode is now allowed in generic units.
1393         (Analyze_Subprogram_Body_Helper): Do not verify the compatibility
1394         between the SPARK_Mode of a spec and that of a body when inside
1395         a generic.
1396         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the
1397         compatibility between the SPARK_Mode of a spec and that of a
1398         body when inside a generic.
1399         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
1400         Pragma SPARK_Mode is now allowed in generic units.
1401         (Analyze_Package_Instantiation): Save and restore the value of
1402         flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
1403         the governing SPARK_Mode before analyzing the instance.
1404         (Analyze_Subprogram_Instantiation): Save and restore the value
1405         of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
1406         the governing SPARK_Mode before analyzing the instance.
1407         * sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the
1408         placement of a source pragma when inserting the generated pragma
1409         for aspect SPARK_Mode.
1410         * sem_prag.adb (Analyze_Pragma): Reimplement the handling of
1411         pragma SPARK_Mode to allow for generics and their respective
1412         instantiations.
1413         * sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed.
1414         (Set_Ignore_Pragma_SPARK_Mode): New routine.
1416 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
1418         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with
1419         renaming discriminants in tagged types first.
1420         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test
1421         the underlying type of the prefix.
1422         (Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..."
1423         (process_freeze_entity): Reset the nodes of all the view of a type,
1424         if any.
1426 2014-08-04  Doug Rupp  <rupp@adacore.com>
1427             Olivier Hainque  <hainque@adacore.com>
1429         * gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7
1430         and remove incorrect EH_MECHANISM macros.
1431         Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to
1432         EXTRA_LIBGNAT_OBJS.
1434 2014-08-04  Robert Dewar  <dewar@adacore.com>
1436         * exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix
1437         of constructed 'Valid attribute in -gnatVa mode does not appear
1438         to come from source.
1439         * sem_attr.adb (Analyze_Access_Attribute): Don't set
1440         Never_Set_In_Source for non-source reference.
1441         * sem_util.adb: Minor reformatting.
1442         * sem_warn.adb (Check_References): Don't check Address_Taken,
1443         not necessary, see comment.
1445 2014-08-04  Robert Dewar  <dewar@adacore.com>
1447         * sem_util.adb, sem_case.adb: Minor reformatting.
1449 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1451         * exp_ch9.adb (Extract_Entry): If the synchronized object is a
1452         limited view, replace with non-limited view, which is available
1453         at the point of an entry call.
1455 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1457         * exp_ch6.adb (Expand_Call): If the call is to a function in
1458         a run-time unit that is marked Inline_Always, we must suppress
1459         debugging information on it, so that the code that is eventually
1460         inlined will not affect debugging of the user program.
1462 2014-08-04  Robert Dewar  <dewar@adacore.com>
1464         * inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
1465         fixes.
1467 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1469         * sem_prag.adb (Process_Import_Or_Interface): Handle properly
1470         an aspect Import that specifies a False value.
1472 2014-08-04  Robert Dewar  <dewar@adacore.com>
1474         * gnat_rm.texi: Add section on aspect Invariant'Class.
1476 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1478         * sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
1479         for better control of cascaded error messages when some choice
1480         in a case statement over a predicated type violates the given
1481         static predicate.
1483 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1485         * sem_ch3.adb (Build_Derived_Type): Modify the
1486         inheritance of the rep chain to ensure that a non-tagged type's
1487         items are not clobbered during the inheritance.
1489 2014-08-04  Robert Dewar  <dewar@adacore.com>
1491         * sem_ch3.adb, einfo.ads: Minor reformatting.
1493 2014-08-04  Yannick Moy  <moy@adacore.com>
1495         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix
1496         detection of subprograms that cannot be inlined in GNATprove mode.
1498 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1500         * einfo.adb: Add guard to Returns_Limited_View.
1502 2014-08-04  Jose Ruiz  <ruiz@adacore.com>
1504         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of
1505         the secondary stack to respect the alignments of the returned objects.
1507 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1509         * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
1510         on function entities whose return type is a limited view.
1511         * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
1512         where to place the freeze node for a function that returns the
1513         limited view of a type, when the function is called and frozen
1514         in a different unit.
1516 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
1518         * sem_ch3.adb (Build_Derived_Private_Type): Minor code
1519         refactoring.
1521 2014-08-04  Robert Dewar  <dewar@adacore.com>
1523         * gnat_ugn.texi: Clarify documentation on assertions.
1525 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1527         * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
1528         if a component association has a box initialization when the
1529         component type has no default initialization, either through an
1530         initial value, an aspect, or an implicit initialization procedure.
1532 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1534         * freeze.adb: Code clean up.
1536 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1538         * sem_ch5.adb: Minor reformatting.
1540 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1542         * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
1543         a function can return a limited view of a type declared
1544         elsewhere. In that case the function cannot be frozen at the end
1545         of its enclosing package. If its first use is in a different unit,
1546         it cannot be frozen there, but if the call is legal the full view
1547         of the return type is available and the subprogram can now be
1548         frozen. However the freeze node cannot be inserted at the point
1549         of call, but rather must go in the package holding the function,
1550         so that the backend can process it in the proper context.
1552 2014-08-04  Robert Dewar  <dewar@adacore.com>
1554         * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
1556 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1558         * sem_ch4.adb (Operator_Check): Refine previous change.
1560 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1562         * sem_scil.ads: Improve comments.
1563         * sem_ch4.adb (Analyze_Equality_Op): Add support for
1564         Allow_Integer_Address (equality between Address and Integer).
1566 2014-08-04  Yannick Moy  <moy@adacore.com>
1568         * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
1569         notation on untagged objects.
1570         * sem.ads: Update comment.
1571         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
1572         not inline subprograms declared in the visible part of a package.
1574 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1576         * exp_ch5.adb: minor reformatting.
1577         * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
1578         parameters.
1580 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1582         * s-fatgen.adb: Minor reformatting.
1584 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1586         * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
1587         False on .NET.
1589 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1591         * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
1592         the loop parameter for element iterators over containers and
1593         arrays, so that improper uses of it are detected in the loop
1594         body when expansion is disabled.
1595         * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
1596         generated cursor is that of the analyzed loop parameter.
1598 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1600         * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
1601         Flag_Decl. Do not analyze the declaration of the flag as it is
1602         not part of the tree yet, instead add it to the freeze actions
1603         of the C++ type.
1605 2014-08-04  Robert Dewar  <dewar@adacore.com>
1607         * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
1608         case of OUT and IN OUT parameter correctly (where Source_Typ is
1609         set), we were missing one case where a check must be applied.
1611 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1613         * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
1614         the generated code. Instead of hiding the renaming and using the
1615         wrapper as the proper association, have the subprogram renaming
1616         alias the wrapper.
1617         (Build_Spec): The entity of the wrapper is
1618         now derived from the entity of the related primitive.
1620 2014-08-04  Emmanuel Briot  <briot@adacore.com>
1622         * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
1623         using non-capturing groups.
1625 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1627         * inline.adb (Build_Body_To_Inline): Remove Unmodified and
1628         related pragmas before copying the original body, to prevent
1629         spurious errors when the pragmas apply to formals that will not
1630         appear in the inlined body.
1632 2014-08-04  Robert Dewar  <dewar@adacore.com>
1634         * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
1635         exp_ch3.adb: Minor reformatting.
1637 2014-08-04  Robert Dewar  <dewar@adacore.com>
1639         * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
1641 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1643         * aspects.adb Add an entry in table Canonical_Aspect for
1644         Default_Initial_Condition.
1645         * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
1646         Aspect_Names and Aspect_Delay for Default_Initial_Condition.
1647         * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
1648         is now Is_Default_Init_Cond_ Procedure. Flag133 is now
1649         Has_Inherited_Default_Init_Cond.
1650         (Default_Init_Cond_Procedure): New routine.
1651         (Has_Default_Init_Cond): New routine.
1652         (Has_Inherited_Default_Init_Cond): New routine.
1653         (Is_Default_Init_Cond_Procedure): New routine.
1654         (Set_Default_Init_Cond_Procedure): New routine.
1655         (Set_Has_Default_Init_Cond): New routine.
1656         (Set_Has_Inherited_Default_Init_Cond): New routine.
1657         (Set_Is_Default_Init_Cond_Procedure): New routine.
1658         (Write_Entity_Flags): Output all the new flags.
1659         * einfo.ads New attributes Default_Init_Cond_Procedure,
1660         Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
1661         along with usage in nodes.
1662         (Default_Init_Cond_Procedure): New routine.
1663         (Has_Default_Init_Cond): New routine and pragma Inline.
1664         (Has_Inherited_Default_Init_Cond): New routine and
1665         pragma Inline.
1666         (Is_Default_Init_Cond_Procedure): New routine and
1667         pragma Inline.
1668         (Set_Default_Init_Cond_Procedure): New routine.
1669         (Set_Has_Default_Init_Cond): New routine and pragma Inline.
1670         (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
1671         (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
1672         * exp_ch3.adb (Expand_N_Object_Declaration): New constant
1673         Next_N. Generate a call to the default initial condition procedure
1674         if the object's type is subject to the pragma.  (Freeze_Type):
1675         Generate the body of the default initial condition procedure or
1676         inherit the spec from a parent type.
1677         * exp_ch7.adb Add with and use clause for Exp_Prag.
1678         (Expand_Pragma_Initial_Condition): Removed.
1679         * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
1680         routine.
1681         * par-prag.adb (Prag): Pragma Default_Initial_Condition does
1682         not need special treatment by the parser.
1683         * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
1684         attributes related to pragma Default_Initial_Condition to the
1685         derived type.
1686         (Process_Full_View): Propagate the attributes
1687         related to pragma Default_Initial_Condition to the full view.
1688         * sem_ch7.adb (Analyze_Package_Specification): Build the
1689         declaration of the default initial condition procedure for all
1690         types that qualify or inherit the one from the parent type.
1691         * sem_ch13.adb (Analyze_Aspect_Specifications):
1692         Add processing for aspect Default_Initial_Condition.
1693         (Check_Aspect_At_Freeze_Point): Aspect
1694         Default_Initial_Condition does not require delayed analysis.
1695         (Replace_Type_References_Generic): Moved to spec.
1696         * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
1697         * sem_prag.adb Add an entry in table Sif_Glags for
1698         Default_Initial_Condition.
1699         (Analyze_Pragma): Pragma
1700         Default_Initial_Condition is now part of assertion
1701         policy. Add processing for pragma Default_Initial_Condition.
1702         (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
1703         now recognized as a proper assertion policy.
1704         * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
1705         routine.
1706         (Build_Default_Init_Cond_Procedure_Body): New routine.
1707         (Build_Default_Init_Cond_Procedure_Declaration): New routine.
1708         (Inherit_Default_Init_Cond_Procedure): New routine.
1709         * snames.ads-tmpl Add new predefined name and pragma id for
1710         Default_Initial_Condition.
1712 2014-08-04  Vincent Celier  <celier@adacore.com>
1714         * prj-dect.adb (Parse_Case_Construction): It is no longer
1715         an error if the variable for a case construction is not
1716         typed, only if the variable value is not a single string. Call
1717         Parse_Choice_List and End_Case_Construction with the new parameter
1718         to indicate that the variable is typed.
1719         * prj-strt.adb (End_Case_Construction): Only check the labels
1720         if the variable is typed.  If the variable is not typed,
1721         issue a warning when there is no "when others" allternative.
1722         (Parse_Choice_List): Manage the labels only if the variable
1723         is typed.
1724         * prj-strt.ads (End_Case_Construction): New Boolean parameter
1725         String_Type.
1726         (Parse_Choice_List): Ditto.
1728 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1730         * sem_ch5.adb: Additional fix to Check_Predicate_Use.
1732 2014-08-04  Vincent Celier  <celier@adacore.com>
1734         * projects.texi: Update documentation of case constructions with
1735         variables that are not typed.
1737 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1739         * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
1740         an Eliminated pragma, indicate that the wrapper is also to be
1741         eliminated, to prevent spurious errors when using gnatelim on
1742         programs that include box-initialization of equality operators
1743         (consequence of AI05-071)..
1745 2014-08-04  Robert Dewar  <dewar@adacore.com>
1747         * checks.adb (Activate_Overflow_Check): Handle floating-point
1748         case correctly.
1749         * checks.ads (Activate_Overflow_Check): Clarify handling of
1750         floating-point cases.
1751         * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
1752         flag if we generate an explicit overflow check (for
1753         Check_Float_Overflow mode).
1755 2014-08-04  Robert Dewar  <dewar@adacore.com>
1757         * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
1758         prj-attr.adb, prj-attr.ads: Minor reformatting.
1760 2014-08-04  Yannick Moy  <moy@adacore.com>
1762         * expander.adb (Expand): Always perform special
1763         expansion in GNATprove mode, even when doing pre-analysis.
1765 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1767         * repinfo.adb (List_Scalar_Storage_Order): List bit order if
1768         not default. Also list bit order if SSO is specified. Do not
1769         assume that bit order is always equal to scalar storage order.
1771 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1773         * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
1774         order to reverse SSO for a type that has an explicit native
1775         Bit_Order.
1777 2014-08-04  Doug Rupp  <rupp@adacore.com>
1779         * cal.c: Macro check for VxWorks7.
1780         * init.c (getpid): Likewise.
1781         * mkdir.c (__gnat_mkdir): Likewise.
1782         * sysdep.c (__gnat_is_file_not_found_error): Likewise.
1784 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
1786         * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
1787         of an invariant check in the case where No_Initialization is set,
1788         since the object is uninitialized.
1790 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1792         * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
1793         name, in addition to a pragma name.
1794         * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
1795         Is_Pragma_Name): Adjust accordingly.
1796         * sem_attr.ads, sem_attr.adb, exp_attr.adb
1797         (Attribute_Default_Scalar_Storage_Order): Add handling of new
1798         attribute.
1799         * gnat_rm.texi: Document the above.
1801 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1803         * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
1804         mode for now, to revert to previous behavior.
1805         * checks.adb: Revert previous change, no longer needed.
1807 2014-08-04  Robert Dewar  <dewar@adacore.com>
1809         * gnat1drv.adb (Adjust_Global_Switches): Don't set
1810         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1811         * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
1812         set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1813         * switch-c.adb (Scan_Front_End_Switches): Don't set
1814         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1816 2014-08-04  Vincent Celier  <celier@adacore.com>
1818         * prj-attr.adb: Add new default indications for
1819         attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
1820         (Attribute_Default_Of): New function (Initialize): Set the
1821         default for those attributes that have one specified.
1822         * prj-attr.ads (Attribute_Data): New component Default.
1823         * prj-proc.adb (Expression): Take into account the new defaults
1824         for attributes Object_Dir, Exec_Dir and Source_Dirs.
1825         * prj-strt.adb (Attribute_Reference): Set the default for
1826         the attribute.
1827         * prj-tree.ads, prj-tree.adb (Default_Of): New function.
1828         (Set_Default_Of): New procedure.
1829         * prj.adb (The_Dot_String): New global Name_Id variable,
1830         initialized in procedure Initialize.
1831         (Dot_String): New function
1832         (Initialize): Initialize The_Dot_String.
1833         (Reset): Create the string list Shared.Dot_String_List.
1834         * prj.ads (Attribute_Default_Value): New enumeration type.
1835         (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
1836         (Dot_String): New function.
1837         (Shared_Project_Tree_Data): New string list component Dot_String_List.
1838         * projects.texi: Document new defaults for attribute Object_Dir,
1839         Exec_Dir and Source_Dirs.
1841 2014-08-04  Robert Dewar  <dewar@adacore.com>
1843         * sem_ch12.adb: Minor reformatting.
1845 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1847         * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
1848         expansion in CodePeer_Mode.
1849         (Selected_Range_Checks): Add handling of overflow checks in
1850         CodePeer_Mode.
1852 2014-08-04  Robert Dewar  <dewar@adacore.com>
1854         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
1855         Remove special test for Float'First, no longer required.
1856         (Expand_N_Attribute_Reference, case Succ): Remove special test
1857         for Float'First, no longer required.
1858         * s-fatgen.adb (Pred): return infinity unchanged.
1859         (Succ): ditto.
1861 2014-08-04  Claire Dross  <dross@adacore.com>
1863         * sem_ch12.adb (Analyze_Associations): Defaults should only be
1864         used if there is no explicit match.
1865         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
1866         Also check for pragma external_axiomatization on generic units.
1868 2014-08-04  Robert Dewar  <dewar@adacore.com>
1870         * checks.adb (Activate_Overflow_Check): Remove
1871         Check_Float_Overflow processing.
1872         (Apply_Scalar_Range_Check): Ditto.
1873         (Generate_Range_Check): Ditto.
1874         * exp_ch4.adb (Expand_N_Op_Add): Add call to
1875         Check_Float_Op_Overflow.
1876         (Expand_N_Op_Divide): ditto.
1877         (Expand_N_Op_Multiply): ditto.
1878         (Expand_N_Op_Subtract): ditto.
1879         * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
1880         * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
1881         Do_Range_Check is set for floating-point case in -gnatc or
1882         GNATprove mode.
1883         (Analyze_Attribute, case Succ): Make sure
1884         Do_Range_Check is set for floating-point case in -gnatc or
1885         GNATprove mode.
1886         * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
1887         flag is set for real to integer conversion in GNATprove or
1888         -gnatc mode.
1890 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
1892         * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
1893         the expression of an Import or Export aspect as type Boolean
1894         and require it to be static. Add ??? comment. Also, set the
1895         Is_Exported flag when appropriate.
1897 2014-08-04  Robert Dewar  <dewar@adacore.com>
1899         * exp_ch4.adb: Minor reformatting.
1900         * exp_attr.adb: Minor reformatting.
1902 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1904         * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
1905         (Unaligned_Valid): Remove now unused subprogram.
1906         * exp_attr.adb (Expand_N_Attribute_Reference, case
1907         Attribute_Valid): If the prefix is in reverse SSO or potentially
1908         unaligned, copy it using a byte copy operation to a temporary
1909         variable.
1910         * einfo.adb: Minor comment fix.
1912 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1914         * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
1916 2014-08-04  Robert Dewar  <dewar@adacore.com>
1918         * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
1919         * s-fatgen.adb (Pred): Handle Float'First.
1920         (Succ): Handle Float'Last.
1922 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1924         * sem_util.adb (Is_Potentially_Unevaluated): If the original
1925         node of a parent node in the tree is a short-circuit operation,
1926         the node is potentially unevaluated.
1928 2014-08-04  Robert Dewar  <dewar@adacore.com>
1930         * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
1931         conversion from a real type to an integer type.
1933 2014-08-04  Yannick Moy  <moy@adacore.com>
1935         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
1936         sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
1937         exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
1938         sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
1939         SPARK_05 instead of SPARK.
1941 2014-08-04  Robert Dewar  <dewar@adacore.com>
1943         * sem.ads: Minor reformatting.
1944         * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
1945         reformatting.
1946         (Analyze_Aspect_Specifications, case Convention): Put External_Name
1947         before Link_Name when constructing pragma.
1949 2014-08-04  Yannick Moy  <moy@adacore.com>
1951         * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
1952         to True during analysis of a default component expression.
1953         (Semantics): Save and restore In_Default_Expr around analysis.
1954         * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
1955         Call new wrapper Preanalyze_Default_Expression.
1956         (Preanalyze_Default_Expression): New wrapper on
1957         Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
1958         * sem_res.adb (Resolve_Call): Mark calls inside default
1959         expressions as not inlined in GNATprove mode.
1961 2014-08-04  Robert Dewar  <dewar@adacore.com>
1963         * exp_ch4.adb: Minor reformatting.
1965 2014-08-04  Olivier Hainque  <hainque@adacore.com>
1967         * link.c: remove const on __gnat_objlist_file_supported for AIX
1969 2014-08-04  Robert Dewar  <dewar@adacore.com>
1971         * sem_util.ads: Minor addition of comment.
1973 2014-08-04  Vincent Celier  <celier@adacore.com>
1975         * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
1976         all projects, including aggregate and aggregate library projects.
1978 2014-08-04  Yannick Moy  <moy@adacore.com>
1980         * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
1982 2014-08-04  Robert Dewar  <dewar@adacore.com>
1984         * sem_eval.adb (Test_In_Range): Always in range for
1985         Is_Known_Valid target type, where input type has smaller or
1986         equal size and does not have biased rep.
1988 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1990         * sem_attr.adb (Eval_Attribute): Constrained is not treated as
1991         a static attribute, and the Static flag must not be set on it
1992         during resolution. It may be constant-folded during expansion,
1993         but if expansion is disabled it is not a static expression.
1995 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1997         * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
1998         referenced once resolution has taken place.
2000 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2002         * exp_ch4.adb (Expand_N_Type_Conversion): Don't
2003         compare access levels in the case where the target type is the
2004         anonymous type of an access discriminant, since the level of
2005         such types is defined based on context. Add comment.
2007 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2009         * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
2010         cases related to equality.  Remove the special processing
2011         for dispatching abstract subprograms as it is not needed.
2012         (Interpretation_Error): Add a specialized error message for
2013         predefined operators.
2014         (Is_Intrinsic_Equality): New routine.
2015         (Is_Suitable_Candidate): New routine.
2017 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2019         * checks.adb: Minor comment reformatting.
2021 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2023         * restrict.adb (Check_Restriction): For checked max_parameter
2024         restrictions reset Violated flag, so that subsequent violations
2025         are properly detected.
2027 2014-08-04  Robert Dewar  <dewar@adacore.com>
2029         * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
2030         mode.
2031         (Process_Discriminants): Fix bad test of GNATprove mode
2033 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
2035         * sem_ch12.adb (Instantiate_Formal_Subprogram):
2036         Move variable to their own section. Propagate the source
2037         location of a formal parameter to the corresponding formal of
2038         the subprogram renaming declaration. Code reformatting.
2040 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
2042         * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
2044 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
2046         * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
2047         if error already detected.  We may reach this point in spite of
2048         previous errors when compiling with -gnatq, to force all possible
2049         errors (this is the usual ACATS mode).
2051 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
2053         * checks.adb (Generate_Range_Check): For the case of converting
2054         a base type with a larger range to a smaller target subtype, only
2055         use unchecked conversions of bounds in the range check followed
2056         by conversion in the case where both types are discrete. In other
2057         cases, convert to the target base type and save in a temporary
2058         followed by the range check.
2059         (Convert_And_Check_Range): New procedure factoring code to save
2060         conversion to a temporary followed by a range check (called two
2061         places in Generate_Range_Check).
2062         * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
2063         check-in, to generate range checks for conversions between
2064         any floating-point types rather than limiting it to matching
2065         base types.
2067 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
2069         * gcc-interface/trans.c: Use hash_set instead of pointer_set.
2071 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2073         * restrict.adb (Update_Restrictions): For restrictions with a
2074         maximum parameter (e.g. number of protected entries in Ravenscar)
2075         do not compute the maximum of the violation over several objects,
2076         because the restriction is per-object.
2077         (Check_Restriction): After possible message, reset the value
2078         of of a checked max_parameter restriction to zero, to prevent
2079         cascaded errors.
2080         * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
2081         (sub)type to determine whether derived type should be on the
2082         list of private dependents of a type whose full view may become
2083         visible subsequently.
2085 2014-08-01  Olivier Hainque  <hainque@adacore.com>
2087         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
2088         $(CXX) instead of ../../xg++ to feed CXX.
2089         (CXX_LFLAGS): Remove. Now unused as the proper flags
2090         are expected to be included in the CXX variable.
2092 2014-08-01  Pierre-Marie Derodat  <derodat@adacore.com>
2094         * gcc-interface/decl.c (elaborate_expression_1): Return the new
2095         variable when debug info is needed and the expression is not
2096         constant.  Tag as external only new variables that are global.
2097         (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
2098         * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
2099         attributes for IN array parameters when their actual subtype
2100         needs debug info.
2101         (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
2102         * gcc-interface/gigi.h (process_deferred_decl_context): New.
2103         * gcc-interface/utils.c (gnat_write_global_declarations): Do not
2104         emit debug info for ignored global declarations.
2105         (struct deferred_decl_context_node,
2106         add_deferred_decl_context, add_deferred_type_context,
2107         compute_deferred_decl_context, defer_or_set_type_context,
2108         deferred_decl_context_queue, get_debug_scope,
2109         get_global_context, process_deferred_decl_context): New.
2110         (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
2111         computation machinery to rely on the GNAT Scope attribute.
2113 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2115         * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
2117 2014-08-01  Robert Dewar  <dewar@adacore.com>
2119         * sem_ch8.adb, opt.ads Minor comment updates.
2121 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2123         * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
2124         from the side effects removal machinery.
2125         * exp_util.adb (Duplicate_Subexpr): Add formal parameter
2126         Renaming_Req. Update the nested call to Remove_Side_Effects.
2127         (Duplicate_Subexpr_No_Checks): Add formal parameter
2128         Renaming_Req. Update the nested call to Remove_Side_Effects.
2129         (Duplicate_Subexpr_Move_Checks): Add formal parameter
2130         Renaming_Req. Update the nested call to Remove_Side_Effects.
2131         (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
2132         an object renaming declaration when the caller requests it.
2133         * exp_util.ads (Duplicate_Subexpr): Add formal
2134         parameter Renaming_Req. Update comment on usage.
2135         (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
2136         (Duplicate_Subexpr_Move_Checks): Add formal parameter
2137         Renaming_Req.
2139 2014-08-01  Bob Duff  <duff@adacore.com>
2141         * gnat_ugn.texi: Minor updates.
2143 2014-08-01  Robert Dewar  <dewar@adacore.com>
2145         * atree.adb: Minor reformatting.
2147 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2149         * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
2150         private extension, get stored constraint, if any, from full view.
2152 2014-08-01  Robert Dewar  <dewar@adacore.com>
2154         * opt.ads (No_Elab_Code_All_Pragma): New global variable.
2155         * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
2156         (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
2157         (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
2158         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
2159         Remove code for checking with's, now in sem_ch10.adb, set
2160         Opt.No_Elab_Code_All_Pragma.
2162 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2164         * sem_ch3.adb (Copy_And_Build): Copy the declaration for
2165         access types as well and adjust the subtype mark if there are
2166         no constraints.
2168 2014-08-01  Robert Dewar  <dewar@adacore.com>
2170         * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
2172 2014-08-01  Robert Dewar  <dewar@adacore.com>
2174         * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
2176 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2178         * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
2179         * exp_ch4.adb (Expand_Composite_Equality): Add conversion
2180         of the actuals in the case of untagged record types too.
2181         * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
2182         full derivation of a derived private type, extracted from...
2183         (Copy_And_Build): In the case of record types and most
2184         enumeration types, copy the original declaration.  Build the
2185         full derivation according to the approach extracted from...
2186         (Build_Derived_Private_Type): ...here.  Call Build_Full_Derivation
2187         to create the full derivation in all existing cases and also
2188         create it in the no-discriminants/discriminants case instead of
2189         deriving directly from the full view.
2190         (Is_Visible_Component): Remove obsolete code.
2191         * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
2193 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2195         * fe.h (GNAT_Mode): New.
2196         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
2197         reverse SSO in GNAT mode.
2199 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2201         * freeze.adb: Minor reformatting.
2203 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2205         * exp_ch3.adb (Default_Initialize_Object): Do not generate
2206         default initialization for an imported object.
2208 2014-08-01  Olivier Hainque  <hainque@adacore.com>
2210         * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
2211         to the expected FARPROC type instead of void *.
2212         * adaint.c (f2t): Expect __time64_t * as second argument, in line with
2213         other datastructures.
2214         (__gnat_file_time_name_attr): Adjust accordingly.
2215         (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
2216         in line with uses.
2217         (__gnat_check_OWNER_ACL): Declare AccessMode
2218         parameter as ACCESS_MODE instead of DWORD, in line with callers
2219         and uses.
2220         (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
2221         unused on win32.  Correct cast of "args" on call to spawnvp.
2222         (add_handle): Cast realloc calls into their destination types.
2223         (win32_wait): Remove declaration and initialization of unused variable.
2224         (__gnat_locate_exec_on_path): Cast alloca calls
2225         into their destination types.
2226         * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
2227         their destination types.
2229 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
2231         * exp_ch4.adb (Expand_N_Type_Conversion): Expand
2232         range checks for conversions between floating-point subtypes
2233         when the target and source types are the same.
2235 2014-08-01  Robert Dewar  <dewar@adacore.com>
2237         * exp_aggr.adb: Minor reformatting.
2239 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2241         * sem_ch13.adb (Check_Indexing_Functions): Initialize
2242         Indexing_Found.
2244 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2246         * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
2247         ALI file before we call the backend (so that gnat2why can append
2248         to it).
2250 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2252         * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
2253         Expand_Packed_Element_Reference): Pass additional Rev_SSO
2254         parameter indicating whether the packed array type has reverse
2255         scalar storage order to the s-pack* Set/Get routines.
2256         * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
2257         indicating reverse scalar storage order.
2259 2014-08-01  Robert Dewar  <dewar@adacore.com>
2261         * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
2262         for initial component value in -gnatc or GNATprove mode.
2263         (Process_Discriminants): Same fix for default discriminant values.
2264         * sem_eval.adb (Test_In_Range): Improve accuracy of results by
2265         checking subtypes.
2267 2014-08-01  Robert Dewar  <dewar@adacore.com>
2269         * sinfo.ads: Minor comment clarification.
2271 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2273         * sem_ch13.adb (Analyze_Aspect_Specifications): Code
2274         reformatting. Store the generated pragma Import in the related
2275         subprogram as routine Wrap_Imported_Subprogram will need it later.
2276         * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
2277         a private type with discriminants is considered to fall in the
2278         category of unconstrained or tagged items.
2280 2014-08-01  Arnaud charlet  <charlet@adacore.com>
2282         * s-os_lib.adb (Open_Append): New functions to open a file for
2283         appending. This binds to the already existing (but not used)
2284         __gnat_open_append.
2285         * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
2286         to open a file for appending.
2287         * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
2288         to open the ALI file for appending.
2290 2014-08-01  Robert Dewar  <dewar@adacore.com>
2292         * sem_ch8.adb: Minor reformatting.
2294 2014-08-01  Yannick Moy  <moy@adacore.com>
2296         * sem_ch13.adb (Insert_Pragma): Add special case for precondition
2297         pragmas from aspects, which need to be inserted in proper order.
2299 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2301         * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
2302         Handle properly a type extension that constrains a discriminated
2303         derived type that renames other discriminants of an ancestor.
2305 2014-08-01  Thomas Quinot  <quinot@adacore.com>
2307         * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
2308         s-pack25.adb: Fix minor inconsistencies and typos.
2310 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2312         * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
2313         globals and move certain variables to the "local
2314         variable" section. Call Build_Class_Wide_Wrapper when
2315         renaming a default actual subprogram with a class-wide actual.
2316         (Build_Class_Wide_Wrapper): New routine.
2317         (Check_Class_Wide_Actual): Removed.
2318         (Find_Renamed_Entity): Code reformatting.
2319         (Has_Class_Wide_Actual): Alphabetize. Change the
2320         logic of the predicate as the renamed name may not necessarely
2321         denote the correct subprogram.
2323 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2325         * sem_ch7.adb: Fix minor oversight in condition.
2327 2014-08-01  Bob Duff  <duff@adacore.com>
2329         * projects.texi: Minor documentation improvements.
2331 2014-08-01  Robert Dewar  <dewar@adacore.com>
2333         * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
2334         * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
2335         * lib-load.adb: Initialize No_Elab_Code_All field.
2336         * lib-writ.adb: Initialize No_Elab_Code_All.
2337         * lib.ads, lib.adb: New field No_Elab_Code_All.
2338         * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
2339         * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
2340         longer exists.
2341         * sem_ch10.adb (Analyze_Context): Processing for
2342         No_Elaboration_Code_All removed.
2343         (Generate_Parent_References): Moved to Sem_Util.
2344         * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
2345         * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
2346         Sem_Ch10.
2347         * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
2348         * targparm.adb: Minor comment updates Add comments on ignoring
2349         pragma No_Elaboration_Code_All.
2351 2014-08-01  Nicolas Roche  <roche@adacore.com>
2353         * adaint.c (__gnat_set_close_on_exec): Ensure that
2354         we can unset "close_on_exec" flag.
2356 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2358         * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
2359         the parameter specs of the wrapper program for a primitive operation
2360         of a synchronized type that implements an interface, copy the
2361         null_exclusion indicator as well.
2363 2014-08-01  Robert Dewar  <dewar@adacore.com>
2365         * sem_eval.ads: Minor reformatting.
2367 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2369         * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
2370         to go down the chain of private derivations.
2371         * freeze.adb (Freeze_Entity): Fix typo in comment.
2373 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2375         * sem_ch3.adb (Access_Type_Declaration): If designated type is
2376         a limited view, create a master entity (as is already done for
2377         class-wide types) in case the full view designates a type that
2378         contains tasks.
2379         * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
2380         and the designated type is a limited view, use the non-limited
2381         view if available.
2383 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2385         * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
2386         (DECL_FUNCTION_STUB): Likewise.
2387         (SET_DECL_FUNCTION_STUB): Likewise.
2388         (DECL_PARM_ALT_TYPE): Likewise.
2389         (SET_DECL_PARM_ALT_TYPE): Likewise.
2390         (TYPE_VAX_FLOATING_POINT_P): Delete.
2391         (TYPE_DIGITS_VALUE): Likewise.
2392         (SET_TYPE_DIGITS_VALUE): Likewise.
2393         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
2394         (malloc32_decl): Delete.
2395         (build_vms_descriptor): Likewise.
2396         (build_vms_descriptor32): Likewise.
2397         (fill_vms_descriptor): Likewise.
2398         (convert_vms_descriptor): Likewise.
2399         (TARGET_ABI_OPEN_VMS): Likewise.
2400         (TARGET_MALLOC64): Likewise.
2401         * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
2402         (gnat_to_gnu_entity): Call it to add the original type as a parallel
2403         type to the implementation type of a packed array type.
2404         <E_Procedure>: Remove now obsolete kludge.
2405         <E_Exception>: Delete obsolete comment.
2406         <object>: Small tweak.
2407         <E_Subprogram_Type>: Remove support for stub subprograms, as well as
2408         for the descriptor passing mechanism.
2409         (gnat_to_gnu_param): Likewise.
2410         * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
2411         (gnat_print_type): Adjust.
2412         * gcc-interface/trans.c (gigi): Remove obsolete initializations.
2413         (vms_builtin_establish_handler_decl): Delete.
2414         (gnat_vms_condition_handler_decl): Likewise.
2415         (establish_gnat_vms_condition_handler): Likewise.
2416         (build_function_stub): Likewise.
2417         (Subprogram_Body_to_gnu): Do not call above functions.
2418         (Call_to_gnu): Remove support for the descriptor passing mechanism.
2419         * gcc-interface/utils.c (make_descriptor_field): Delete.
2420         (build_vms_descriptor32): Likewise.
2421         (build_vms_descriptor): Likewise.
2422         (fill_vms_descriptor): Likewise.
2423         (convert_vms_descriptor64): Likewise.
2424         (convert_vms_descriptor32): Likewise.
2425         (convert_vms_descriptor): Likewise.
2426         * gcc-interface/utils.c (unchecked_convert): Likewise.
2427         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
2429 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2431         * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
2432         type and get_unpadded_type for the longest FP type.
2433         (Attribute_to_gnu) <Machine>: Compare the precision of the types.
2434         (convert_with_check): Adjust formatting and remove FIXME.
2436 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2438         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2439         Do not convert the RM bounds to the base type.
2440         (E_Floating_Point_Subtype): Likewise.
2441         (E_Array_Subtype): Convert the bounds to the base type.
2442         * gcc-interface/trans.c (get_type_length): New function.
2443         (Attribute_to_gnu) <Range_Length>: Call it.
2444         <Length>: Likewise.
2445         (Loop_Statement_to_gnu): Convert the bounds to the base type.
2446         (gnat_to_gnu) <N_In>: Likewise.
2447         * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
2448         bounds to the base type.
2449         (create_range_type): Likewise.
2450         (convert): Convert the bounds to the base type for biased types.
2451         * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
2452         base type.
2454 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2456         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
2457         incorrect implicit type derivation.
2458         * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
2459         to the base type.
2461 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2463         * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
2464         prefix of attribute Loop_Entry.
2465         * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
2466         Loop_Variant with respect to an enclosing loop (if any).
2467         (Contains_Loop_Entry): Update the parameter profile and all
2468         calls to this routine.
2469         * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
2470         for the corresponding body before determining the nature of the
2471         ultimate alias's declarative node.
2473 2014-08-01  Robert Dewar  <dewar@adacore.com>
2475         * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
2477 2014-08-01  Robert Dewar  <dewar@adacore.com>
2479         * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
2480         constraint error node since it is a list member.
2482 2014-08-01  Robert Dewar  <dewar@adacore.com>
2484         * sem_warn.adb: Minor reformatting.
2486 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2488         * einfo.adb (Underlying_Type): Return the underlying full view
2489         of a private type if present.
2490         * freeze.adb (Freeze_Entity):
2491         Build a single freeze node for partial, full and underlying full
2492         views, if any.
2493         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
2494         missing guard before the access to the Underlying_Full_View.
2495         * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
2496         full view if present.
2497         * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
2499 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2501         * sem_res.adb (Resolve_Entry_Call): When an entry has
2502         preconditions, the entry call is wrapped in a procedure call
2503         that incorporates the precondition checks. To prevent a double
2504         expansion, with possible duplication of extra formals, that
2505         procedure call must only be pre-analyzed and resolved. Expansion
2506         takes place upon return to the caller Resolve_Call.
2508 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2510         * sem_res.adb (Resolve_Call): Do not perform
2511         GNATprove-specific inlining while within a generic.
2513 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2515         * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
2516         case expression with incompatible alternatives, when the first
2517         alternative is overloaded.
2519 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2521         * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
2522         to create the name of the parameterless call, rather than
2523         New_Copy, to preserve the tree structure when the name is a
2524         complex expression, e.g. a selected component that denotes a
2525         protected operation, whose prefix is itself a selected component.
2527 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2529         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
2530         Unit_Declaration_Node to retrieve body when inlining, to handle
2531         properly subprogram child units.
2533 2014-08-01  Robert Dewar  <dewar@adacore.com>
2535         * sem_attr.adb: Minor reformatting.
2537 2014-08-01  Vincent Celier  <celier@adacore.com>
2539         * debug.adb: Minor documentation addition for -dn switch.
2541 2014-08-01  Robert Dewar  <dewar@adacore.com>
2543         * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
2544         sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
2545         documentation of Is_Static_Expression vs Is_OK_Static_Expression.
2546         In several places, use the Is_OK version as suggested by the spec.
2548 2014-08-01  Vincent Celier  <celier@adacore.com>
2550         * gnatcmd.adb: Revert last change which was not correct.
2552 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2554         * freeze.adb (Find_Constant): Ensure that the constant being
2555         inspected is still an object declaration (i.e. not a renaming).
2557 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2559         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
2560         An attribute_reference to Loop_Entry denotes an iterator
2561         specification: its prefix is an object, as is the case for 'Old.
2562         b) If the domain of iteration is an expression whose type has
2563         the Iterable aspect defined, this is an iterator specification.
2565 2014-08-01  Robert Dewar  <dewar@adacore.com>
2567         * gnatcmd.adb: Minor reformatting.
2569 2014-08-01  Robert Dewar  <dewar@adacore.com>
2571         * atree.ads (Info_Messages): New counter.
2572         * err_vars.ads: Minor comment update.
2573         * errout.adb (Delete_Warning_And_Continuations): Deal
2574         with new Info_Messages counter.
2575         (Error_Msg_Internal): ditto.
2576         (Delete_Warning): ditto.
2577         (Initialize): ditto.
2578         (Write_Error_Summary): ditto.
2579         (Output_Messages): ditto.
2580         (To_Be_Removed): ditto.
2581         * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
2582         (Compilation_Errors): ditto.
2583         * errutil.adb (Error_Msg): Deal with Info_Messages counter.
2584         (Finalize): ditto.
2585         (Initialize): ditto.
2586         * sem_prag.adb (Analyze_Pragma): Minor comment addition.
2587         * gnat_ugn.texi: Document that -gnatwe does not affect info
2588         messages.
2590 2014-08-01  Robert Dewar  <dewar@adacore.com>
2592         * debug.adb: Document debug switch -gnatd.Z.
2593         * sem.adb (Semantics): Force expansion on in no or configurable
2594         run time mode.
2596 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2598         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
2599         unchecked conversion denotes an iterator specification. Such a
2600         conversion will be inserted in the context of an inlined call
2601         when needed, and its argument is always an object.
2603 2014-08-01  Robert Dewar  <dewar@adacore.com>
2605         * make.adb, makeutl.ads: Minor reformatting.
2606         * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
2607         Back_End_Inlining.
2609 2014-08-01  Tristan Gingold  <gingold@adacore.com>
2611         * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
2613 2014-08-01  Javier Miranda  <miranda@adacore.com>
2615         * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
2616         -gnatd.z.
2617         * debug.adb: Updating documentation.
2618         * exp_ch6.adb (Expand_Call): Remove assertion.
2620 2014-08-01  Robert Dewar  <dewar@adacore.com>
2622         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
2623         sem_res.adb: Minor reformatting.
2625 2014-08-01  Vincent Celier  <celier@adacore.com>
2627         * make.adb (Initialize): Set Keep_Temporary_Files to True when
2628         -dn is specified.
2629         * makeusg.adb: Add line for new switch --keep-temp-files.
2630         * makeutl.ads (Keep_Temp_Files_Option): New constant String.
2631         * opt.ads (Keep_Temporary_Files): Document that it is also used
2632         by gnatmake and gprbuild.
2633         * switch-m.adb: Recognize new switch --keep-temp-files.
2635 2014-08-01  Tristan Gingold  <gingold@adacore.com>
2637         * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
2638         * exp_ch9.adb (Make_Task_Create_Call): ... here.
2640 2014-08-01  Vincent Celier  <celier@adacore.com>
2642         * gnat1drv.adb: Do not try to get the target parameters when
2643         invoked with -gnats.
2645 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2647         * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
2648         declaration subject to No_Initialization.
2650 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2652         * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
2653         is a subtype with dynamic predicates, or a non-static subtype
2654         with predicates.
2655         * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
2656         expression if subtype has a dynamic predicate.
2657         (Constrain_Index): Reject subtype indication if subtype mark
2658         has predicates.
2659         (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
2660         (Make_Index): If index is a subtype indication, itype inhereits
2661         predicate flags for subsequent testing.
2662         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
2663         procedure Check_Predicate_Use, to reject illegal uses of domains
2664         of iteration that have dynamic predicates.
2665         * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
2666         indication to which a predicate applies.
2667         * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
2668         prevent cascaded errors when subtype is invalid.
2670 2014-08-01  Robert Dewar  <dewar@adacore.com>
2672         * sem_ch10.adb: Minor reformatting.
2674 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2676         * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
2677         because either type may be a subtype of the other.
2679 2014-08-01  Vincent Celier  <celier@adacore.com>
2681         * makeusg.adb: Add documentation for debug switch -dn.
2683 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2685         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
2686         expression with standard operator and type, for pretty-printing
2687         use, when in ASIS_Mode. When generating code dimensional analysis
2688         is not involved and dimension expressions are handled statically,
2689         and other operators are resolved in the usual way.
2691 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2693         * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
2694         Parent_Subtype in ASIS mode, leads to several failures.
2695         * sem_ch4.adb (Analyze_Selected_Component): In an instance,
2696         if the prefix is a type extension, check whether component is
2697         declared in the parent type, possibly in a parent unit. Needed
2698         in ASIS mode when Parent_Subtype is not set.
2700 2014-08-01  Robert Dewar  <dewar@adacore.com>
2702         * sem_prag.adb: Minor reformatting.
2703         * s-regpat.adb: Minor reformatting.
2704         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
2705         Treat_As_Volatile on constants.
2707 2014-08-01  Tristan Gingold  <gingold@adacore.com>
2709         * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
2711 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2713         * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
2714         warning on a with_clause created for the renaming of a parent
2715         unit in an explicit with_clause.
2717 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2719         * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
2720         Set Is_Imported flag at once, to simplify subsequent legality
2721         checks. Reject the aspect on an object whose declaration has an
2722         explicit initial value.
2723         * sem_prag.adb (Process_Import_Or_Interface): Use original node
2724         to check legality of an initial value for an imported entity.
2725         Set Is_Imported flag in case of error to prevent cascaded errors.
2726         Do not set the Is_Imported flag if the pragma comes from an
2727         aspect, because it is already done when analyzing the aspect.
2729 2014-08-01  Emmanuel Briot  <briot@adacore.com>
2731         * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
2733 2014-08-01  Robert Dewar  <dewar@adacore.com>
2735         * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
2736         identifier name.
2738 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2740         * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
2741         checks when the related variable comes from source.
2742         * sem_res.adb (Resolve_Actuals): Enable the volatility checks
2743         when the related actual parameter comes from source. Update comment.
2744         * freeze.adb (Freeze_Record_Type): Do not freeze the designated
2745         type of an array of pointers when the designated type is
2746         class-wide and its root type is the record being currently frozen.
2748 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2750         * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
2751         of renaming declaration created for domain of iteration.
2752         * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
2753         for error messages on aggregates whose index subtypes have
2754         predicates. The new placement avoids posting messages on previous
2755         subtype declarations rather than on the aggregate itself.
2756         * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
2757         Add_Dispatching_Operation, to handle properly the overriding of
2758         the predefined operations on controlled types, when the partial
2759         view of a type is not visibly controlled.
2761 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
2763         * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
2764         appendix.
2766 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2768         * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
2769         assertion check as the attribute is defined for all entities.
2770         (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
2771         check as the attribute is defined for all entities.
2772         * einfo.ads Update the documentation of attribute
2773         Is_Hidden_Non_Overridden_Subprogram.
2774         * sem_ch7.adb (Install_Package_Entity): No need to check the
2775         entity kind of the Id.
2776         * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
2777         usage. Ensure that the homographs are of the same entity kind
2778         and not fully conformant.
2779         (Hide_Non_Overridden_Subprograms): Update the comment on usage.
2781 2014-08-01  Robert Dewar  <dewar@adacore.com>
2783         * inline.adb: Minor code reorganization.
2784         * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
2786 2014-08-01  Robert Dewar  <dewar@adacore.com>
2788         * inline.adb, s-os_lib.ads: Minor reformatting.
2790 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2792         * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
2793         * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
2794         hooks.
2796 2014-08-01  Yannick Moy  <moy@adacore.com>
2798         * inline.adb (Cannot_Inline): Issue info message instead of
2799         warning for subprograms not inlined in GNATprove mode.
2800         * sem_res.adb (Resolve_Call): Take body into account for deciding
2801         whether subprogram can be inlined in GNATprove mode or not.
2803 2014-08-01  Claire Dross  <dross@adacore.com>
2805         * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
2806         of Get_First_Parent_With_External_Axiomatization_For_Entity for
2807         shorter.
2808         * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
2809         for parameters of packages with external axiomatization.
2811 2014-08-01  Robert Dewar  <dewar@adacore.com>
2813         * sem_res.adb: Minor comment addition.
2815 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2817         * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
2818         s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
2819         no longer used.
2820         * s-os_lib.ads: Minor reformatting.
2822 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2824         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
2825         completely previous code since only GCC back-ends are prepared
2826         to handle e.g. 'Machine attribute.
2827         * targparm.adb, targparm.ads: Remove remaining refs and
2828         handling of OpenVMS_On_Target, VAX_Float_On_Target and
2829         RTX_RTSS_Kernel_Module_On_Target.
2830         * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
2831         no longer used.
2833 2014-08-01  Robert Dewar  <dewar@adacore.com>
2835         * exp_dist.adb, exp_attr.adb: Minor reformatting.
2836         * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
2837         a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
2838         sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
2839         g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
2840         improper use of shall.
2842 2014-08-01  Robert Dewar  <dewar@adacore.com>
2844         * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
2845         exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
2846         exp_ch3.adb: Minor reformatting & code reorganization.
2848 2014-08-01  Robert Dewar  <dewar@adacore.com>
2850         * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
2851         * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
2852         s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2853         s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
2854         s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
2855         code.
2856         * gcc-interface/decl.c, gcc-interface/Makefile.in,
2857         gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
2859 2014-08-01  Pascal Obry  <obry@adacore.com>
2861         * s-os_lib.ads: Rename File_Size to Large_File_Size.
2863 2014-08-01  Robert Dewar  <dewar@adacore.com>
2865         * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
2866         a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
2867         a-numaux-libc-x86.ads: Fix bad package header comments.
2868         * elists.ads, elists.adb (Append_New_Elmt): New procedure.
2869         * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
2870         checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
2871         sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
2872         targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
2873         stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
2874         s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
2875         s-os_lib.adb: Remove VMS-specific code.
2877 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2879         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
2880         previous state in CodePeer_Mode.
2882 2014-08-01  Robert Dewar  <dewar@adacore.com>
2884         * hostparm.ads: Put back definition of OpenVMS as False to aid
2885         the transition process.
2886         * sem_ch7.adb: Minor reformatting.
2887         * prj-env.adb: Minor code fix.
2888         * gnat_rm.texi: Complete previous change.
2889         * sem_ch3.adb: Minor reformatting.
2890         * sem_ch6.adb: Minor reformatting.
2891         * sem_elab.adb: Minor reformatting.
2892         * exp_strm.adb: Complete previous change.
2894 2014-08-01  Vincent Celier  <celier@adacore.com>
2896         * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
2897         warning when a constant is unreferenced and its type has pragma
2898         Unreferenced_Objects.
2900 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2902         * einfo.adb: Flag2 is now known as
2903         Is_Hidden_Non_Overridden_Subprogram.
2904         (Is_Hidden_Non_Overridden_Subprogram): New routine.
2905         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
2906         (Write_Entity_Fields): Output Flag2.
2907         * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
2908         along with occurrences in entities.
2909         (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
2910         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
2911         and pragma Inline.
2912         * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
2913         declared non-overriden homographs into visibility.
2914         * sem_ch13.adb (Freeze_Entity_Checks): Hide all
2915         implicitly declared non-overriden homographs.
2916         (Hide_Non_Overridden_Subprograms): New routine.
2918 2014-08-01  Robert Dewar  <dewar@adacore.com>
2920         * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
2921         VMS-specific code.
2922         * prj-conf.adb: Minor reformatting.
2923         * xr_tabls.adb (Read_File): Restore code which was enabled on
2924         non VMS platforms before.
2925         * prj-env.adb (Initialize_Default_Project_Path): Ditto.
2926         * sem_ch5.adb: Minor reformatting.
2927         * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
2928         sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
2929         Remove VMS-specific code.
2931 2014-08-01  Vincent Celier  <celier@adacore.com>
2933         * make.adb (Await_Compile): Remove loop that was only needed
2934         for VMS.
2936 2014-08-01  Robert Dewar  <dewar@adacore.com>
2938         * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
2939         a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
2940         a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
2941         einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
2942         exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
2943         fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
2944         g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
2945         g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
2946         krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
2947         mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
2948         osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
2949         prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
2950         rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
2951         s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
2952         s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
2953         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
2954         s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
2955         s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
2956         sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
2957         sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
2958         sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
2959         treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
2960         specific code and comments.
2962 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2964         * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
2965         Check_Reverse_Iteration, to verify the legality of the Reverse
2966         indicator on various container types, and to detect illegal
2967         reverse iterations on containers that only supoort forward
2968         iteration.
2970 2014-08-01  Vincent Celier  <celier@adacore.com>
2972         * gnatcmd.adb: Remove the VMS specific stuff.  Integrate in
2973         procedure GNATCmd the relevant declarations from packages VMS_Cmds
2974         and VMS_Conv.
2975         * gnatcmd.ads: Update comments to remove any trace of VMS
2977 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2979         * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
2980         defaulted actual that is an operator, before building wrapper
2981         for it in GNATprove mode. Restrict construction of wrapper to
2982         actuals that are operators.
2984 2014-08-01  Vincent Celier  <celier@adacore.com>
2986         * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
2987         specific packages no longer needed.
2989 2014-08-01  Pascal Obry  <obry@adacore.com>
2991         * s-os_lib.ads (System.CRTL): Move with clause to body.
2992         (File_Size): New type.
2993         (File_Length64): Use it.
2994         (File_Length): Restore previous spec returning a Long_Integer.
2995         * s-os_lib.adb (System.CRTL): Move with clause here.
2997 2014-08-01  Vincent Celier  <celier@adacore.com>
2999         * mlib-prj.adb: Update comments to remove any mention of VMS.
3001 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3003         * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
3004         xgnatugn.adb and ug_words.
3006 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3008         * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
3009         expansion can be avoid for Machine, Model and Rounding.
3010         (Is_Inline_Floating_Point_Attribute): Return true for Machine
3011         & Model, as well as Rounding if wrapped in a conversion to an
3012         integer type.
3013         * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
3014         * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
3015         * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
3016         * gcc-interface/misc.c (enumerate_modes): Compute it.
3017         * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
3018         (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
3019         Machine and Model.
3020         (Attribute_to_gnu) <Attr_Model>: New case.
3021         <Attr_Machine>): Likewise.
3022         (convert_with_check): Test
3023         fp_arith_may_widen variable.
3025 2014-08-01  Pascal Obry  <obry@adacore.com>
3027         * adaint.h (GNAT_FOPEN): New definition for Windows.
3028         (GNAT_OPEN): Likewise.
3029         (GNAT_STAT): Likewise.
3030         (GNAT_FSTAT): Likewise.
3031         (GNAT_LSTAT): Likewise.
3032         (GNAT_STRUCT_STAT): Likewise.
3033         * adaint.c (__gnat_stat): Fix computation of file size for
3034         Windows.
3036 2014-08-01  Vincent Celier  <celier@adacore.com>
3038         * Makefile.rtl: Minor comment update.
3040 2014-08-01  Vincent Celier  <celier@adacore.com>
3042         * Make-generated.in: Remove dependencies for vms-help.
3044 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
3046         * makeutl.ads, opt.ads: Minor grammar fixes.
3047         * makeutl.adb: Minor code reorganization.
3049 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3051         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
3052         gnatsym.adb: Remove gnatsym (VMS only tool).
3054 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
3056         * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
3057         conditionalization from gnat_ugn.texi and projects.texi, and updated
3058         (considerably simplified) xgnatugn.adb, to be removed soon.
3060 2014-08-01  Vincent Celier  <celier@adacore.com>
3062         * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
3063         * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
3064         instead of Debug.Debug_Flag_S.
3065         * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
3066         No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
3067         error messages.
3068         * makeutl.ads (No_Exit_Message_Option): New constant string
3069         for switch --no-exit-message.
3070         * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
3071         * switch-m.adb (Scan_Make_Switches): Recognize new switch
3072         --no-exit-message.
3074 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3076         * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
3077         * gcc-interface/Make-lang.in: Remove exp_vfpt.o
3079 2014-08-01  Javier Miranda  <miranda@adacore.com>
3081         * inline.ads (Inlined_Calls, Backend_Calls,
3082         Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
3083         moved to inline.adb (Cannot_Inline): Update documentation.
3084         (Check_And_Build_Body_To_Inline): Renamed.
3085         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
3086         * inline.adb (Check_Inlining_Restrictions): New local variable.
3087         (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
3088         Backend_Not_Inlined_Subps): Declarations moved here
3089         from inline.ads (Number_Of_Statements): Removed.
3090         (Remove_Pragmas): Avoid duplicated version of this subprogram.
3091         (Build_Body_To_Inline): Code cleanup.
3092         (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
3093         (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
3094         (Check_Body_To_Inline): Removed.
3095         (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
3096         (Has_Excluded_Declaration): No action if not
3097         Check_Inlining_Restrictions.
3098         (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
3099         (Initialize): Initialize the lists of inlined calls and subprograms.
3100         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
3101         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
3102         to Check_And_Build_Body_To_Inline since it has been renamed as
3103         Check_And_Split_Unconstrained_Function
3104         * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
3105         package inline.
3106         * gnat1drv.adb Update call to Inline.List_Inlining_Info.
3108 2014-08-01  Vincent Celier  <celier@adacore.com>
3110         * debug.adb: Add documentation for new debug switch -ds.
3111         * make.adb (List_Bad_Compilations): Do not issue any message
3112         when switch -ds is specified.
3113         * makeutl.adb (Fail_Program): Do not issue any message when
3114         -ds is specified.
3115         (Finish_Program): Ditto.
3117 2014-08-01  Robert Dewar  <dewar@adacore.com>
3119         * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
3120         s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
3121         s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
3122         indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
3123         indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
3124         s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
3125         s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
3126         s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
3127         s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
3128         s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
3129         s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
3130         s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
3131         g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
3132         s-tratas.ads: Minor fix to copyright notices.
3134 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
3136         * sinfo.ads: Remove long obsolete comment.
3137 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3139         * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
3140         * sem_ch3.adb: Minor reformatting.
3142 2014-08-01  Pascal Obry  <obry@adacore.com>
3144         * cstreams.c: Only enable large file support on know supported
3145         platforms. Add missing defines/includes.
3147 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
3149         * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
3150         No_Dynamic_Predicate_On_Actual, to enforce the generic contract
3151         on generic units that contain constructs that forbid subtypes
3152         with predicates.
3153         * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
3154         Inherit flags indicating the presence of predicates in subtype
3155         declarations with and without constraints.
3156         (Inherit_Predicate_Flags): Utility for the above.
3157         * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
3158         indicate that the actual cannot have predicates, and preserve
3159         warning. In an instance, report error if actual has predicates
3160         and the construct appears in a package declaration.
3161         * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
3162         for an actual with predicates, if the corresponding formal
3163         carries No_Predicate_On_Actual or (in the case of a loop)
3164         No_Dynamic_Predicate_On_Actual.
3165         * sem_ch13.adb (Build_Predicate_Functions); Do not build a
3166         Static_Predicate function if the type is non-static (in the
3167         presence of previous errors),
3168         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
3169         No_Dynamic_Predicate_On_Actual in a generic context, to enforce
3170         generic contract on actuals that cannot have predicates.
3172 2014-08-01  Pascal Obry  <obry@adacore.com>
3174         * a-direct.adb (C_Size): Returns an int64.
3175         * osint.adb (System.CRTL): New with clause.
3176         (File_Length.Internal): Returns an int64.
3177         * s-os_lib.ads (File_Length): Returns an int64.
3179 2014-08-01  Robert Dewar  <dewar@adacore.com>
3181         * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
3182         mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
3183         osint.adb, krunch.adb: Minor reformatting.
3185 2014-08-01  Robert Dewar  <dewar@adacore.com>
3187         * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
3188         sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
3189         sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
3190         Remove VMS-specific code.
3191         * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
3193 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3195         * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
3196         gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
3197         make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
3198         mlib.ads, tempdir.adb: Remove VMS handling.
3200 2014-08-01  Pascal Obry  <obry@adacore.com>
3202         * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
3203         (__gnat_named_file_length): Likewise.
3204         (__gnat_file_length_attr): Likewise.
3205         * a-direct.adb (C_Size): Use size_t as returned type.
3206         * osint.adb (File_Length): Adjust spec for Internal routine
3207         (returns size_t).
3208         * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
3209         (System.CRTL): With claused moved to spec.
3210         * s-os_lib.ads (System.CRTL): With clause moved to here.
3212 2014-08-01  Pascal Obry  <obry@adacore.com>
3214         * adaint.h, adaint.c (__gnat_open): Added.
3215         * s-crtl.ads (open): Import __gnat_open for large file support.
3217 2014-08-01  Robert Dewar  <dewar@adacore.com>
3219         * sem_case.adb (Dup_Choice): Improve message for integer constants.
3221 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
3223         * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
3225 2014-08-01  Pascal Obry  <obry@adacore.com>
3227         * adaint.h (GNAT_OPEN): Defines as open64 where supported.
3228         * adaint.c (GNAT_OPEN): Uses new macro where needed.
3230 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
3232         * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
3233         extracted from...
3234         (maybe_pad_type): ...here.  Call it to canonicalize the pad type.
3235         * gcc-interface/gigi.h: Update comment.
3237 2014-07-31  Javier Miranda  <miranda@adacore.com>
3239         * debug.adb Remove documentation of -gnatd.k (no longer needed).
3240         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
3241         * inline.ads (Backend_Inlined_Subps): New
3242         Elist.  (Backend_Not_Inlined_Subps): New Elist.
3243         (Has_Excluded_Declaration): Declaration previously located in
3244         * inline.adb (Has_Excluded_Statement): Declaration previously
3245         located in inline.adb
3246         * inline.adb (Has_Single_Return): Moved out of
3247         Build_Body_To_Inline to avoid having duplicated code.
3248         (Number_Of_Statements): New subprogram.
3249         (Register_Backend_Inlined_Subprogram): New subprogram.
3250         (Register_Backend_Not_Inlined_Subprogram): New subprogram.
3251         (Add_Inlined_Subprogram): Register backend inlined subprograms and
3252         also register subprograms that cannot be inlined by the backend.
3253         (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
3254         to avoid having duplicated code.  Replace occurrences of
3255         Debug_Flag_Dot_K by Back_End_Inlining.
3256         * sem_res.adb (Resolve_Call): Code cleanup.
3257         * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
3258         occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
3259         (List_Inlining_Info): Add listing of subprograms passed to the
3260         backend and listing of subprograms that cannot be inlined by
3261         the backend.
3262         * sem_ch12.adb, sem_ch3.adb Replace occurrences of
3263         Debug_Flag_Dot_K by Back_End_Inlining.
3265 2014-07-31  Robert Dewar  <dewar@adacore.com>
3267         * nlists.ads: Minor code fix (remove unwise Inline for
3268         List_Length).
3270 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3272         * einfo.adb: Remove VMS specific code.
3273         * exp_attr.adb: Remove VAX specific code.
3274         * set_targ.adb: Remove handling of VAX_Float.
3275         * sem_vfpt.adb: Remove references to Vax_Native.
3276         * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
3278 2014-07-31  Robert Dewar  <dewar@adacore.com>
3280         * sem_ch4.adb: Minor reformatting.
3282 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3284         * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
3285         to VMS. Misc clean ups.
3286         * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
3288 2014-07-31  Robert Dewar  <dewar@adacore.com>
3290         * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
3291         exp_prag.adb, frontend.adb, interfac.ads,
3292         par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
3293         s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
3294         sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
3295         snames.ads-tmpl: Remove obsolete VMS-specific code.
3297 2014-07-31  Robert Dewar  <dewar@adacore.com>
3299         * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
3301 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3303         * a-intnam-linux.ads: Minor: update obsolete comments.
3304         * s-taasde.adb: Minor: fix comment header.
3306 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3308         * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
3309         s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
3310         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
3311         g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
3312         s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
3313         s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
3314         s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
3315         a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
3316         symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
3317         symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3318         s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
3319         symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
3320         s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
3321         s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
3322         s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
3323         a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
3324         * namet.h (Is_Non_Ada_Error): Remove.
3326 2014-07-31  Robert Dewar  <dewar@adacore.com>
3328         * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
3329         reformatting.
3331 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3333         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
3334         which demonstrates the expansion of while loops subject to
3335         attribute 'Loop_Entry. The condition of a while loop along with
3336         related condition actions is now wrapped in a function.  Instead
3337         of repeating the condition, the expansion now calls the function.
3339 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3341         * sem_case.adb (Check_Against_Predicate): Correct off-by-one
3342         error when reporting of missing values in a case statement for
3343         a type with a static predicate.
3344         (Check_Choices): Reject a choice given by a subtype to which a
3345         Dynamic_Predicate applies.
3346         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
3347         Has_Dynamic_Predicate_Aspect flag from parent.
3349 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3351         * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
3352         cannot apply to a subtype of an incomplete type.
3353         (Is_Static_Choice): Treat an Others_Clause as static. The
3354         staticness of the expression and of the range are checked
3355         elsewhere.
3357 2014-07-31  Pascal Obry  <obry@adacore.com>
3359         * adaint.h (__gnat_ftell64): Added.
3360         (__gnat_fseek64): Added.
3361         (__int64): Added.
3362         * cstreams.c (__int64): Removed.
3364 2014-07-31  Pascal Obry  <obry@adacore.com>
3366         * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
3367         * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
3368         (ftell64): Always returns a 64bit value.
3369         * cstreams.c (int64): New definition.
3370         (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
3371         (__gnat_ftell64): Always returns a 64bit value. The implemenation now
3372         uses ftello() on UNIX.
3373         (__gnat_fseek64): Offset is always a 64bit value. The
3374         implementation now uses fseeko() on UNIX.
3375         * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
3376         always use fseek64 to set the offset.
3377         (Size): Simplify code, always use fseek64/ftell64.
3378         * s-direio.ads (Count): Now an int64.
3379         * g-socket.ads (Vector_Element): Adjust definition for Length
3380         to be a size_t. This matches the C definition and avoid using
3381         a 64bit integer on 32bit platforms now that Count is always 64bit.
3382         * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
3383         (C_Recvmsg): Change some conversion to account for change in
3384         Vector_Element.
3385         (C_Sendmsg): Likewise.
3387 2014-07-31  Robert Dewar  <dewar@adacore.com>
3389         * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
3390         * debug.adb: Remove documentation of -gnatdm flag.
3391         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
3392         -gnatdm flag.
3394 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
3396         * lib-writ.adb (Write_Unit_Information): Fix case where U =
3397         No_Unit.
3399 2014-07-31  Claire Dross  <dross@adacore.com>
3401         * exp_util.adb, exp_util.ads
3402         (Get_First_Parent_With_External_Axiomatization_For_Entity):
3403         New routine to find the first parent of an entity with
3404         a pragma Annotate (GNATprove, External_Axiomatization).
3405         (Has_Annotate_Pragma_For_External_Axiomatization): New function
3406         to check if a package has a pragma Annotate (GNATprove,
3407         External_Axiomatization).
3408         * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
3409         flag on the entity for the declaration created for a formal
3410         subprogram in an instance. This is a renaming declaration,
3411         or in GNATprove_Mode the declaration of an expression function
3412         that captures the axiomatization of the actual.
3413         * sem_ch6.adb (Analyze_Expression_Function): For a
3414         Generic_Actual_Subprogram, place body immediately after the
3415         declaration because it may be used in a subsequent declaration
3416         in the instance.
3417         * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
3418         the actual is a function, not an operator. Handle functions with
3419         one and two parameters and binary and unary operators.
3421 2014-07-31  Pascal Obry  <obry@adacore.com>
3423         * cstreams.c (__gnat_is_regular_file_fd): Removed.
3424         * adaint.c (__gnat_is_regular_file_fd): Added.
3426 2014-07-31  Robert Dewar  <dewar@adacore.com>
3428         * exp_strm.adb: Minor reformatting.
3430 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3432         * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
3433         Analyze_Associations, to create a wrapper around operators that
3434         are actuals to formal subprograms. This is done in GNATProve
3435         mode in order to propagate the contracts of the operators to
3436         the body of the instance.
3438 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3440         * sem_attr.adb (Analyze_Attribute, case 'Old):  The reference is
3441         legal if within an aspect specification for a generic subprogram.
3443 2014-07-31  Javier Miranda  <miranda@adacore.com>
3445         * gnat1drv.adb (Back_End_Inlining): Set to false if
3446         Suppress_All_Inlining is set.
3447         * debug.adb: Adding documentation for -gnatd.z.
3448         * inline.adb (Add_Inlined_Body): Extend the -gnatn2
3449         processing to -gnatn1 for calls to Inline_Always routines.
3450         (Add_Inlined_Subprogram): Remove previous patch.
3452 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3454         * sem_ch13.adb (Check_One_Function): Apply properly the static
3455         semantic rules for indexing aspects and the functions they denote.
3457 2014-07-31  Javier Miranda  <miranda@adacore.com>
3459         * debug.adb: Complete documentation of -gnatd.z.
3461 2014-07-31  Bob Duff  <duff@adacore.com>
3463         * gnat_ugn.texi: Minor doc fixes.
3465 2014-07-31  Robert Dewar  <dewar@adacore.com>
3467         * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
3468         index value.
3470 2014-07-31  Tristan Gingold  <gingold@adacore.com>
3472         * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
3473         (Packed_Bytes1): Make component aliased.
3475 2014-07-31  Robert Dewar  <dewar@adacore.com>
3477         * s-unstyp.ads, s-fileio.adb: Minor reformatting.
3479 2014-07-31  Robert Dewar  <dewar@adacore.com>
3481         * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
3482         reformatting.
3484 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
3486         * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
3487         on array references here, now done more selectively in trans.c.
3489 2014-07-31  Doug Rupp  <rupp@adacore.com>
3491         * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
3493 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3495         * sem_util.adb (Is_Effectively_Volatile): New routine.
3497 2014-07-31  Fedor Rybin  <frybin@adacore.com>
3499         * gnat_ugn.texi: Document --test-duration option for gnattest.
3501 2014-07-31  Javier Miranda  <miranda@adacore.com>
3502             Eric Botcazou  <ebotcazou@adacore.com>
3504         * opt.ads (Back_End_Inlining): New variable which controls
3505         activation of inlining by back-end expansion.
3506         * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
3507         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
3508         the body to be inlined by the frontend if Back_End_Inlining
3509         is enabled.
3510         * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
3511         (Expand_Call): If backend inlining is enabled let the backend to
3512         handle inlined subprograms.
3513         * inline.ads (Register_Backend_Call): Moved here from exp_ch6
3514         * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
3515         (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
3516         (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
3517         enabled.
3518         * debug.adb Document -gnatd.z
3519         * fe.h Import Back_End_Inlining variable.
3520         * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
3521         enabled then declare attribute "always inline"
3522         * gcc-interface/decl.c, gcc-interface/trans.c,
3523         gcc-interface/gigi.h: Add handling of Inline_Always pragma.
3525 2014-07-31  Robert Dewar  <dewar@adacore.com>
3527         * a-ngelfu.ads: Minor comment fix.
3529 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3531         * freeze.adb (Freeze_Record_Type): Replace all calls to
3532         Is_SPARK_Volatile with Is_Effectively_Volatile and update
3533         related comments.
3534         * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
3535         Replace all calls to Is_SPARK_Volatile with
3536         Is_Effectively_Volatile and update related comments.
3537         * sem_ch5.adb (Analyze_Iterator_Specification,
3538         Analyze_Loop_Parameter_Specification): Replace all calls to
3539         Is_SPARK_Volatile with Is_Effectively_Volatile and update
3540         related comments.
3541         * sem_ch6.adb (Process_Formals): Replace all calls to
3542         Is_SPARK_Volatile with Is_Effectively_Volatile and update
3543         related comments.
3544         * sem_ch12.adb (Instantiate_Object): Replace the call to
3545         Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
3546         and update related comment.
3547         * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
3548         Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
3549         with Is_Effectively_Volatile and update related comments.
3550         * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
3551         all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
3552         update related comments.
3553         * sem_util.adb (Has_Enabled_Property,
3554         Variable_Has_Enabled_Property): Replace all calls
3555         to Is_SPARK_Volatile with Is_Effectively_Volatile and
3556         update related comments.
3557         (Is_Effectively_Volatile): New routine.
3558         (Is_Effectively_Volatile_Object): New routine.
3559         (Is_SPARK_Volatile): Removed.
3560         (Is_SPARK_Volatile_Object): Removed.
3561         * sem_util.ads (Is_Effectively_Volatile): New routine.
3562         (Is_Effectively_Volatile_Object): New routine.
3563         (Is_SPARK_Volatile): Removed.
3564         (Is_SPARK_Volatile_Object): Removed.
3566 2014-07-31  Pascal Obry  <obry@adacore.com>
3568         * s-fileio.adb (Open): Make sure a shared file gets inserted into
3569         the global list atomically. This ensures that the file descriptor
3570         won't be freed because another tasks is closing the file.
3572 2014-07-31  Robert Dewar  <dewar@adacore.com>
3574         * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
3575         generation of _FIRST and _LAST variables even in GNATprove_Mode.
3576         * gnat_ugn.texi: Minor editing.
3577         * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
3578         aggregate is marked Comes_From_Source if argument is CFS.
3580 2014-07-31  Pascal Obry  <obry@adacore.com>
3582         * s-fileio.adb: Remove obsolete comment.
3584 2014-07-31  Vincent Celier  <celier@adacore.com>
3586         * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
3587         overriding keyword before function to avoid error when compiler
3588         is called with -gnatyO (check overriding indicators).
3590 2014-07-31  Tucker Taft  <taft@adacore.com>
3592         * gnat_ugn.texi: Add a paragraph pointing the reader
3593         to the "plugins" example.
3595 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3597         * freeze.adb (Freeze_Expression): Document the
3598         purpose of the parent chain traversal.
3600 2014-07-31  Robert Dewar  <dewar@adacore.com>
3602         * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
3603         unconstrained fpt ops.
3605 2014-07-31  Pascal Obry  <obry@adacore.com>
3607         * s-fileio.adb (Open): Make sure a shared file gets inserted into
3608         the global list atomically. This ensures that the file descriptor
3609         won't be freed because another tasks is closing the file.
3611 2014-07-31  Vincent Celier  <celier@adacore.com>
3613         * projects.texi: Minor spelling error fix.
3615 2014-07-31  Robert Dewar  <dewar@adacore.com>
3617         * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
3618         * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
3619         information.
3620         * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
3621         * restrict.adb (Process_Restriction_Synonyms): Add handling
3622         of No_Elaboration_Code_All.
3623         * restrict.ads (Process_Restriction_Synonyms): Now handles
3624         No_Elaboration_Code_All.
3625         * sem_ch10.adb (Analyze_Context): Enforce transitive with for
3626         No_Elaboration_Code_All.
3627         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
3628         Handle setting of No_Elab_Code in unit information. Handle
3629         No_Elaboration_Code_All.
3630         * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
3631         pragma processing.
3632         (Name_No_Elaboration_Code_All): New name for pragma processing.
3634 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
3636         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
3637         types with a null range and use the Esize of the component
3638         instead of its RM_Size to identify appropriate values.
3640 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3642         * freeze.adb Add with and use clause for Aspects.
3643         (Freeze_Expression): Emit an error when a volatile constant lacks
3644         Boolean aspect Import.
3645         (Has_Boolean_Aspect_Import): New routine.
3647 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
3649         * exp_util.adb: Minor reformatting.
3651 2014-07-31  Vincent Celier  <celier@adacore.com>
3653         * errutil.adb (Error_Msg): Make sure that all components of
3654         the error message object are initialized.
3656 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3658         * sem_ch4.adb (Try_Container_Indexing): If the container type is
3659         class-wide, use specific type to locate iteration primitives.
3660         * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
3661         rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
3662         Minor error message reformating.
3663         * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
3664         aspect for a derived type.
3666 2014-07-31  Robert Dewar  <dewar@adacore.com>
3668         * debug.adb: Document debug flag d.X.
3670 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3672         * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
3673         * sem_util.adb (Find_Specific_Type): If type is untagged private,
3674         retrieve full view so that primitive operations can be located.
3675         * exp_disp.adb Move Find_Specific_Type to sem_util.
3676         * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
3677         Find_Specific_Type to locate primitive equality.
3678         * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
3679         type does not require initialization.
3680         * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
3681         body all visibility is established, and the enclosing package
3682         declarations must not be installed.
3684 2014-07-31  Yannick Moy  <moy@adacore.com>
3686         * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
3687         Make subprogram public.
3689 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3691         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
3692         predicate Discriminated_Size, to distinguish between private
3693         components that depend on discriminants from those whose size
3694         depends on some other non-static expression.
3696 2014-07-31  Nicolas Setton  <setton@adacore.com>
3698         * g-exptty.adb (Close): Fix binding to Waitpid: use the
3699         tty version.
3701 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3703         * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
3704         in a discrete range, when 'range was probably intended.
3706 2014-07-31  Robert Dewar  <dewar@adacore.com>
3708         * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
3710 2014-07-31  Robert Dewar  <dewar@adacore.com>
3712         * frontend.adb: Minor reformatting.
3713         * sem.adb: Minor reformatting.
3714         * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
3715         identifiers on rewrite.
3716         * par.adb: Minor comment updates.
3717         * a-ngelfu.adb (Cos): Minor simplification.
3718         * par-ch13.adb (Get_Aspect_Specifications): Improve messages
3719         and recovery for bad aspect.
3720         * exp_ch3.adb: Code clean up.
3721         * sem_util.ads: Minor comment correction.
3722         * sem_ch13.adb (Check_Array_Type): Properly handle large types.
3723         * sem_ch3.adb: Code clean up.
3724         * binderr.ads: Minor comment correction.
3726 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3728         * exp_disp.adb (Expand_Interface_Conversion): A call whose
3729         prefix is a static conversion to an interface type that is not
3730         class-wide is not dispatching.
3732 2014-07-31  Robert Dewar  <dewar@adacore.com>
3734         * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
3735         s-traceb-mastop.adb: Minor reformatting.
3737 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3739         * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
3740         expansion, to handle properly visibility of selected components
3741         in instance bodies.
3743 2014-07-31  Robert Dewar  <dewar@adacore.com>
3745         * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
3746         * par-ch2.adb (P_Pragma): Set Inside_Depends.
3747         * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
3748         Check_Unary_Plus_Or_Minus.
3749         * scans.ads (Inside_Depends): New flag.
3750         * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
3751         * style.ads: Add Inside_Depends parameter to Check_Arrow Add
3752         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
3753         * styleg.adb (Check_Arrow): Handle Inside_Depends case.
3754         (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
3755         * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
3756         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
3758 2014-07-31  Javier Miranda  <miranda@adacore.com>
3760         * s-vaflop.adb Move the body of function T_To_G before
3761         T_To_D. Required for frontend inlining.
3762         * inline.adb (Has_Excluded_Contract): New subprogram used to
3763         check if a subprogram inlined by the frontend has contracts
3764         which cannot be inlined.
3766 2014-07-31  Bob Duff  <duff@adacore.com>
3768         * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
3769         (Call_Chain): Add 1 to number of frames to skip, to account for
3770         the fact that there's one more frame on the stack.
3771         * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
3773 2014-07-31  Robert Dewar  <dewar@adacore.com>
3775         * checks.adb (Enable_Overflow_Check): More precise setting of
3776         Do_Overflow_Check flag for division.
3778 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
3780         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
3781         array types with implementation type.
3783 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3785         * sem_ch10.adb (Process_State): Remove local variable Name. Add
3786         local variable Decl. Partially declare an abstract state by
3787         generating an entity and storing it in the state declaration.
3788         * sem_prag.adb (Create_Abstract_State): Fully declare a
3789         semi-declared abstract state.
3791 2014-07-31  Robert Dewar  <dewar@adacore.com>
3793         * prj-nmsc.adb: Minor reformatting.
3795 2014-07-31  Bob Duff  <duff@adacore.com>
3797         * s-tasdeb.adb (System.Tasking.Debug): Remove
3798         all usage of the secondary stack from this package.
3800 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3802         * freeze.adb (Freeze_Expression): Update the loop in charge
3803         of finding a proper insertion place for freeze nodes to handle
3804         N_Expression_With_Actions nodes.
3806 2014-07-31  Robert Dewar  <dewar@adacore.com>
3808         * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
3809         reformatting.
3811 2014-07-31  Pascal Obry  <obry@adacore.com>
3813         * prj-nmsc.adb: Minor reformatting.
3815 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3817         * sem_util.adb (Has_Preelaborable_Initialization): Check that
3818         type is tagged before checking whether a user-defined Initialize
3819         procedure is present.
3821 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
3823         * a-ngelfu.ads (Sqrt): Augment postcondition.
3825 2014-07-31  Pascal Obry  <obry@adacore.com>
3827         * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
3828         directory and ALI directory must be different than all object
3829         and library directories of aggregated projects.
3831 2014-07-31  Vincent Celier  <celier@adacore.com>
3833         * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
3834         to package body, as it is not called from outside. Remove argument
3835         Project_Tree, no longer used. When runtime cannot be found,
3836         call Raise_Invalid_Config instead of failing the program.
3838 2014-07-31  Robert Dewar  <dewar@adacore.com>
3840         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
3841         (Overflow_Check).
3842         * gnatlink.adb (Process_Args): Remove generation of -gnato0,
3843         no longer needed.
3845 2014-07-31  Robert Dewar  <dewar@adacore.com>
3847         * gnat_ugn.texi: Document new switch -gnato0.
3848         * sem_ch3.ads: Minor reformatting.
3849         * gnatlink.adb (Process_Args): Compile bind file with -gnato0
3850         (we do not want overflow checks when incrementing elaboration
3851         counters).
3852         * einfo.ads: Minor reformatting.
3854 2014-07-31  Robert Dewar  <dewar@adacore.com>
3856         * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
3857         * s-arit64.adb: Minor reformatting.
3859 2014-07-31  Robert Dewar  <dewar@adacore.com>
3861         * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
3862         checking is enabled except in GNAT_Mode.
3863         * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
3864         (suppress overflow checks).
3866 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3868         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
3869         invariant procedure for an internally generated subtype that is
3870         created for an object of a class-wide type.
3872 2014-07-31  Vincent Celier  <celier@adacore.com>
3874         * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
3876 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
3878         * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
3879         exp_disp.adb: Minor reformatting.
3881 2014-07-31  Robert Dewar  <dewar@adacore.com>
3883         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
3884         sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
3885         exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
3886         reformatting.
3888 2014-07-31  Robert Dewar  <dewar@adacore.com>
3890         * sem_ch13.adb: Minor reformatting.
3892 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3894         * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
3895         is an unchecked_union, warn that invariants will not be checked
3896         on components that have them.
3898 2014-07-31  Robert Dewar  <dewar@adacore.com>
3900         * freeze.adb (Freeze_Entity): Check for error of
3901         Type_Invariant'Class applied to a untagged type.
3902         * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
3903         as null body, so that we perform error checks even if expansion
3904         is off.
3906 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3908         * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
3909         is already present, nothing to do.
3910         * exp_ch3.adb (Build_Component_Invariant_Call): For an access
3911         component, check whether the access type has an invariant before
3912         checking the designated type.
3913         (Build_Record_Invariant_Proc): Change suffix of generated
3914         name to prevent ambiguity when record type has invariants
3915         in addition to those of components, and two subprograms are
3916         constructed. Consistent with handling of array types.
3917         (Insert_Component_Invariant_Checks): Build invariant procedure
3918         body when one has not been created yet, in the case of composite
3919         types that are completions and whose full declarations carry
3920         invariants.
3922 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3924         * gnat_rm.texi: Minor doc fixes.
3926 2014-07-30  Robert Dewar  <dewar@adacore.com>
3928         * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
3930 2014-07-30  Vincent Celier  <celier@adacore.com>
3932         * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
3933         of error message.
3934         * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
3935         message to report that a directory cannot be created, to avoid
3936         processing of the directory path that may contains special
3937         insertion characters.
3939 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3941         * a-crdlli.ads: Place declaration of Empty_List after full type
3942         declaration for Curosr, to prevent freezing error.
3944 2014-07-30  Robert Dewar  <dewar@adacore.com>
3946         * get_targ.adb: Minor code reorganization.
3947         * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
3948         reformatting.
3950 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3952         * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
3953         not Program_Error, when attempting to remove an element not in
3954         the set. This is the given semantics for all set containers.
3956 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3958         * a-rbtgbo.adb (Delete_Node_Sans_Free): If
3959         element is not present in tree return rather than violating
3960         an assertion. Constraint_Error will be raised in the caller if
3961         element is not in the container.
3963 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3965         * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
3966         (elab body): Add provision for default target config file.
3967         * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
3969 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3971         * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
3972         when attempting to remove an element not in the set. This is
3973         the given semantics for all set containers.
3974         * a-cborse.adb (Delete): Attempt removal first, to check for
3975         tampering, before checking whether this is an attempt to
3976         delete a  non-existing element, and in fthe latter case raise
3977         Constraint_Error.
3979 2014-07-30  Vincent Celier  <celier@adacore.com>
3981         * prj-proc.adb (Recursive_Process): Do not create a new
3982         Project_Id if the project is already in the list of projects of
3983         the tree.
3985 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3987         * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
3988         whose type is an incomplete formal type.
3989         (Analyze_Return_Type): Reject a return type that is an untagged
3990         imcomplete formal type.
3991         (Process_Formals): Reject a formal parameter whose type is an
3992         untagged formal incomplete type.
3993         * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
3994         an untagged formal incomplete type.
3996 2014-07-30  Robert Dewar  <dewar@adacore.com>
3998         * gnat_ugn.texi: Minor spelling correction.
3999         * makeutl.adb: Minor code reorganization.
4000         * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
4002 2014-07-30  Robert Dewar  <dewar@adacore.com>
4004         * einfo.ads (Has_Unchecked_Union): Document that this is used
4005         to check for illegal Valid_Scalars attribute references.
4006         * exp_attr.adb (Build_Record_VS_Func): New function
4007         (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
4008         function.
4009         * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
4010         Unchecked_Union Add note on 'Valid_Scalars generating a lot
4011         of code.
4012         * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
4013         error on attempt to apply Valid_Scalars to Unchecked_Union type.
4015 2014-07-30  Steve Baird  <baird@adacore.com>
4017         * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
4018         of A(I..J)(K) in CodePeer_Mode.
4020 2014-07-30  Ben Brosgol  <brosgol@adacore.com>
4022         * gnat_ugn.texi: Fix typo.
4024 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4026         * lib-writ.ads: document format change.
4028 2014-07-30  Pascal Obry  <obry@adacore.com>
4030         * prj-util.adb (For_Interface_Sources): Do not
4031         include sources from withed externally built projects.
4033 2014-07-30  Robert Dewar  <dewar@adacore.com>
4035         * lib.adb: Minor reformatting.
4036         * prj-util.adb: Minor reformatting.
4038 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4040         * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
4041         that depends on discriminants, and which is given by an others
4042         clause, create an explicit subtype with the discriminant values
4043         of the enclosing aggregate, because the backend cannot otherwise
4044         retrieve the actual bounds of the array.
4046 2014-07-30  Fedor Rybin  <frybin@adacore.com>
4048         * gnat_ugn.texi: Improve gnattest documentation.
4050 2014-07-30  Pascal Obry  <obry@adacore.com>
4052         * makeutl.adb (Insert_Project_Sources): Properly handle sources
4053         that are aggregated. We want to include sources not only part
4054         of libraries but also if part of an aggregated project from an
4055         aggregate library.
4056         * prj.adb (For_Project_And_Aggregated_Context): Properly check
4057         state of root project.
4059 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4061         * lib-load.ads: Minor reformatting.
4062         * sinfo.ads (Library_Unit): Update comment.
4063         * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
4064         is redundant. Instead used the pragma Node_Id directly as the
4065         element type.
4067 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4069         * lib.adb (Store_Note): Store only notes that do not come from
4070         an instance, and that are in the extended main source unit.
4071         * lib-writ (Write_Unit_Information): Annotations from subunits
4072         must be emitted along with those for the main unit, and they
4073         must carry a specific file name.
4074         * ali.ads (Notes_Record): Use a File_Name_Type instead of a
4075         Unit_Id for the source file containing the pragma, as in the
4076         case of annotations from subunits we might not have a readily
4077         available unit id.
4078         * ali.adb (Scan_ALI): Account for above change in data structure.
4080 2014-07-30  Vincent Celier  <celier@adacore.com>
4082         * makeutl.adb (Insert_Project_Sources): When the library project
4083         is an aggregate Stand-Alone Library, insert in the queue the
4084         Ada interface units, with Closure set to True;
4086 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4088         * sem_util.adb: Fix minor typo.
4089         * makeutl.adb: Minor reformatting.
4091 2014-07-30  Robert Dewar  <dewar@adacore.com>
4093         * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
4095 2014-07-30  Yannick Moy  <moy@adacore.com>
4097         * checks.ads: Fix typo in comment.
4099 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
4101         * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
4102         entities that materialize range bounds, if any.
4104 2014-07-30  Vincent Celier  <celier@adacore.com>
4106         * projects.texi: Minor spelling fix.
4108 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4110         * checks.adb (Make_Bignum_Block): Use the new secondary stack
4111         build routines to manage the mark.
4112         * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
4113         Use the new secodary stack build routines to manage the mark.
4114         (Insert_Actions_In_Scope_Around): Add new formal parameter
4115         Manage_SS along with comment on its usage. Code and comment
4116         reformatting. Mark and release the secondary stack when the
4117         context warrants it.
4118         (Make_Transient_Block): Update the call
4119         to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
4120         (Wrap_Transient_Declaration): Remove local variable
4121         Uses_SS. Ensure that the secondary stack is marked and released
4122         when the related object declaration appears in a library level
4123         package or package body. Code and comment reformatting.
4124         * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
4125         (Build_SS_Release_Call): New routine.
4127 2014-07-30  Steve Baird  <baird@adacore.com>
4129         * exp_attr.adb: Revert previous change, not needed after all.
4131 2014-07-30  Vincent Celier  <celier@adacore.com>
4133         * makeutl.adb (Queue.Insert_Project_Sources): Insert with
4134         Closure => True for interfaces of Stand-Alone Libraries.
4135         * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
4136         Boolean component Closure, defaulted to False.
4138 2014-07-30  Yannick Moy  <moy@adacore.com>
4140         * sem_res.adb: Fix typo in error message.
4142 2014-07-30  Robert Dewar  <dewar@adacore.com>
4144         * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
4145         as name suffixes rather than L/H for subtype bounds.
4146         * tbuild.ads: Minor comment improvements and fixes
4147         (Make_External_Name): Document that suffix can start with an
4148         underscore.
4150 2014-07-30  Bob Duff  <duff@adacore.com>
4152         * gnat_ugn.texi: Document --rep-clauses switch.
4154 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4156         * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
4157         Default_Component_Value can only be specified for scalar type or
4158         arrays of scalar types respectively.  This legality check must
4159         be performed at the point the aspect is analyzed, in order to
4160         reject aspect specifications that apply to a partial view.
4162 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4164         * freeze.adb: Minor reformatting.
4166 2014-07-30  Robert Dewar  <dewar@adacore.com>
4168         * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
4169         codepeer mode.
4171 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4173         * freeze.adb (Check_Expression_Function): At the freeze point
4174         of an expression function, verify that the expression in the
4175         function does not contain references to any deferred constants
4176         that have no completion yet.
4177         (Freeze_Expression, Freeze_Before): call
4178         Check_Expression_Function.
4179         * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
4180         * a-ciorse.adb: Add Adjust and Finalize routines for
4181         Reference_Control_Type. Use it in the construction of Reference
4182         and Constant_Reference values.
4184 2014-07-30  Robert Dewar  <dewar@adacore.com>
4186         * exp_aggr.adb: Update comments.
4187         * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
4188         reformatting.
4190 2014-07-30  Robert Dewar  <dewar@adacore.com>
4192         * cstand.adb (New_Standard_Entity): New version takes name
4193         string to call Make_Name.
4194         (Create_Standard): Use this routine to set name before setting other
4195         fields.
4197 2014-07-30  Robert Dewar  <dewar@adacore.com>
4199         * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
4200         entity reference.
4201         (Expand_Attribute, case Last): Ditto.
4202         * exp_ch3.adb (Constrain_Index): New calling sequence for
4203         Process_Range_Expr_In_Decl.
4204         (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
4205         problematical case.
4206         * sem_ch3.adb (Constrain_Index): New calling sequence for
4207         Process_Range_Expr_In_Decl.
4208         (Set_Scalar_Range_For_Subtype): ditto.
4209         (Process_Range_Expr_In_Decl): Create constants to hold bounds for
4210         subtype.
4211         * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
4212         * sem_eval.adb (Compile_Time_Compare): Make sure we use base
4213         types if we are not assuming no invalid values.
4215 2014-07-30  Robert Dewar  <dewar@adacore.com>
4217         * clean.adb: Minor reformatting.
4218         * opt.ads: Minor fix to incorrect comment.
4220 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4222         * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
4223         subprogram, used by bounded hashed sets, to delete a node at
4224         a given index, whose element may have been improperly updated
4225         through a Reference_Preserving key.
4226         * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
4227         * a-cbhase.adb: Add Adjust and Finalize routines for
4228         Reference_Control_Type.
4229         (Delete, Insert): Raise Program_Error, not Constraint_Error,
4230         when operation is illegal.
4231         (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
4232         * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
4233         private with_clause for Ada.Finalization.
4234         * a-cbmutr.adb: Add Adjust and Finalize routines for
4235         Reference_Control_Type. Use it in the construction of Reference
4236         and Constant_Reference values.
4238 2014-07-30  Robert Dewar  <dewar@adacore.com>
4240         * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
4242 2014-07-30  Pascal Obry  <obry@adacore.com>
4244         * clean.adb (Clean_Project): Properly check for directory
4245         existence before trying to enter it.
4247 2014-07-30  Robert Dewar  <dewar@adacore.com>
4249         * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
4251 2014-07-30  Robert Dewar  <dewar@adacore.com>
4253         * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
4254         missing semicolon after name.
4256 2014-07-30  Pascal Obry  <obry@adacore.com>
4258         * prj.ads (Gprinstall_Flags): New constant.
4259         * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
4260         missing library dir if Directories_Must_Exist_In_Projects
4261         is false.
4263 2014-07-30  Bob Duff  <duff@adacore.com>
4265         * a-except-2005.adb, a-except.adb: Remove obsolete comments.
4266         * s-traceb.ads: Updagte comments.
4268 2014-07-30  Robert Dewar  <dewar@adacore.com>
4270         * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
4271         a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
4272         a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
4273         reformatting.
4275 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4277         * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
4278         subprogram, used by all versions of hashed sets, to delete a node
4279         whose element has been improperly updated through a Reference_
4280         Preserving key.
4281         * a-cohase.adb: Remove Delete_Node, use new common procedure
4282         Delete_Node_At_Index.
4283         * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
4284         * a-cihase.adb: Add Adjust and Finalize routines for
4285         Reference_Control_Type.
4286         (Reference_Preserving_Key): Build aggregate for
4287         Reference_Control_Type
4289 2014-07-30  Yannick Moy  <moy@adacore.com>
4291         * checks.adb, checks.ads (Determine_Range_R): New procedure to
4292         determine the possible range of a floating-point expression.
4294 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4296         * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
4297         * a-cborse.adb: Add Adjust and Finalize routines for
4298         Reference_Control_Type.
4299         (Reference_Preserving_Key): Build aggregate for
4300         Reference_Control_Type.
4301         (Delete): Check for tampering, and raise Program_Error (not
4302         Constraint_Error) when attempting to delete an element not in
4303         the set.
4304         (Insert): Ditto.
4306 2014-07-30  Bob Duff  <duff@adacore.com>
4308         * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
4309         * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
4310         Exception_Information is used to produce useful debugging
4311         information for the programmer. However, it was also used to
4312         implement the stream attributes for type Exception_Occurrence. The
4313         latter requires a stable and portable interface, which meant
4314         that we couldn't include a symbolic traceback. A separate set of
4315         routines was used to provide symbolic tracebacks under program
4316         control (i.e. not automatically). The goal of this ticket is
4317         to provide such automatic tracebacks, so the change here is to
4318         split the two functionalities: Exception_Information gives the
4319         maximally useful information for debugging (i.e. it now includes
4320         a symbolic traceback when a decorator is set, and it can be
4321         improved freely in the future without disturbing streaming).
4322         Untailored_Exception_Information always uses hexadecimal addresses
4323         in the traceback, has a stable and portable output, and is now
4324         used for streaming.
4326 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4328         * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
4329         on the target of the assignment to find out whether it
4330         can be directly done by the back-end.
4331         * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
4333 2014-07-30  Robert Dewar  <dewar@adacore.com>
4335         * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
4336         a-tasatt.adb: Minor reformatting.
4338 2014-07-30  Robert Dewar  <dewar@adacore.com>
4340         * exp_ch4.adb: Minor reformatting.
4342 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4344         * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
4345         Reference_Control_Type to generic package, to keep additional
4346         information for Reference_Types that manipulate keys. Add Adjust and
4347         Finalize procedures for this type.
4348         (Finalize): When finalizing a reference_preserving_key, verify
4349         that the key of the new value is equivalent to the key of the
4350         original element, raise Program_Error otherwise.
4351         (Insert): Detect tampering.
4352         (Reference_Preserving_Key): Build proper Reference_Control_Type,
4353         and update Busy and Lock bits to detect tampering.
4354         * a-cohase.ads: Keep with-clause private.
4356 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4358         * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
4359         of an equality are of an Unchecked_Union type and lack inferable
4360         discriminants.
4362 2014-07-30  Bob Duff  <duff@adacore.com>
4364         * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
4365         g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
4366         GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
4367         hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
4368         we can call them from the runtimes. Leave renamings in place under GNAT.
4370 2014-07-30  Yannick Moy  <moy@adacore.com>
4372         * inline.adb (Check_And_Build_Body_To_Inline): Include code for
4373         inlining in GNATprove mode.
4375 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4377         * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
4378         Reference_Control_Type to generic package, to keep additional
4379         information for Reference_Types that manipulate keys. Add Adjust and
4380         Finalize procedures for this type.
4381         (Delete_Node): New procedure called when finalizing a
4382         Reference_Control_Type, to remove a node whose element has been
4383         improperly updated through a Reference.
4384         (Insert): Detect tampering.
4385         (Reference_Preserving_Key): Build proper Reference_Control_Type,
4386         and update Busy and Lock bits to detect tampering.
4388 2014-07-30  Bob Duff  <duff@adacore.com>
4390         * exp_intr.ads: Minor comment fix.
4392 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
4394         * exp_prag.adb, a-tags.ads: Minor typo fixes.
4396 2014-07-30  Bob Duff  <duff@adacore.com>
4398         * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
4399         a-except.ads, g-traceb.adb, memtrack.adb,
4400         s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
4401         Cleanup: Make the three versions of System.Traceback.Call_Chain
4402         have the same interface. Use an array for the Traceback parameter
4403         instead of an Address.  This will enable reduction in code
4404         duplication.
4406 2014-07-30  Pat Rogers  <rogers@adacore.com>
4408         * gnat_ugn.texi: Corrected minor textual error in description
4409         of switch -gnatwl.
4411 2014-07-30  Bob Duff  <duff@adacore.com>
4413         * Makefile.rtl: Sort file names.
4415 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
4417         * a-tasatt.adb: Complete previous change: kill spurious warning
4418         on e.g. sparc, and make sure we only use the fast path when the
4419         alignment is compatible.
4421 2014-07-30  Yannick Moy  <moy@adacore.com>
4423         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
4424         coming from source.
4426 2014-07-30  Yannick Moy  <moy@adacore.com>
4428         * inline.adb (Build_Body_To_Inline): Issue more precise messages
4429         for declarations that prevent inlining.
4430         (Cannot_Inline): Change usual start of message to refer to contextual
4431         analysis in GNATprove mode.
4432         * sem_res.adb (Resolve_Call): Change usual start of message to
4433         refer to contextual analysis in GNATprove mode, when inlining
4434         not possible.
4436 2014-07-30  Robert Dewar  <dewar@adacore.com>
4438         * sem_res.adb, sem_ch6.adb: Minor code reorganization.
4439         * inline.adb: Minor reformatting.
4441 2014-07-30  Javier Miranda  <miranda@adacore.com>
4443         * a-tags.ads: Add comments.
4445 2014-07-30  Pat Rogers  <rogers@adacore.com>
4447         * gnat_rm.texi: Minor word error.
4449 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4451         * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
4452         created to capture the value of the prefix of 'Old at the
4453         beginning of the current declarative part, to prevent data flow
4454         anomalies in the postcondition procedure that will follow.
4456 2014-07-30  Yannick Moy  <moy@adacore.com>
4458         * debug.adb: Retire debug flag -gnatdQ.
4459         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
4460         on decl, not on body.  Ignore predicate functions.
4461         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
4462         debug flag -gnatdQ.  Correctly analyze SPARK_Mode on decl and
4463         body when generating a decl for a body on which SPARK_Mode aspect
4464         is given.
4465         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
4466         attaching pragma to entity, to account for declaration not coming
4467         from source.
4468         * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
4469         as not always inlined in GNATprove mode, when called in an
4470         assertion context.
4472 2014-07-30  Vincent Celier  <celier@adacore.com>
4474         * debug.adb: Minor comment update.
4476 2014-07-30  Robert Dewar  <dewar@adacore.com>
4478         * s-tasuti.adb, s-tassta.adb: Minor reformatting.
4479         * sprint.adb (Sprint_Node): Handle N_Contract case.
4480         * exp_prag.adb: Minor reformatting.
4481         * freeze.adb (Freeze_Entity): Check useless postcondition for
4482         No_Return subprogram.
4483         * sem_prag.adb: Minor reformatting.
4485 2014-07-30  Javier Miranda  <miranda@adacore.com>
4487         * a-tags.ads: Complete comments about performance.
4489 2014-07-30  Fedor Rybin  <frybin@adacore.com>
4491         * gnat_ugn.texi: Adding description for --exit-status option to
4492         gnattest section.  Fixing index entry of --passed-tests option
4493         in gnattest section.
4495 2014-07-30  Javier Miranda  <miranda@adacore.com>
4497         * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
4498         rtsfind.ads: Remove references to package Interfaces.CPP since this
4499         package is no longer needed.
4501 2014-07-30  Bob Duff  <duff@adacore.com>
4503         * s-taasde.adb (Timer_Queue): Don't use a
4504         build-in-place function call to initialize the Timer_Queue.
4505         * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
4506         Turn off polling in these units, because otherwise we get
4507         elaboration circularities with Ada.Exceptions when the -gnatP
4508         switch is used.
4509         * s-tassta.adb (Create_Task): Make sure independent tasks
4510         are created with Parent = Environment_Task. This was not true,
4511         for example, in s-interr.adb, when Interrupt_Manager does "new
4512         Server_Task"; the Server_Task had Parent = Interrupt_Manager,
4513         which is wrong because the master is determined by the access
4514         type, which is at library level.
4515         * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
4516         now set correctly by Create_Task.
4517         (Make_Passive): Remove the workaround for the race condition in
4518         Make_Independent.
4519         * frontend.adb (Frontend): Revert to previous method of detecting
4520         temporary configuration pragma files, recognizing such files by
4521         ".tmp" in the name. This is more general than detecting pragmas
4522         Source_File_Name_Project, because it allows any tool to use
4523         this naming convention, no matter the content of the file.
4524         * gnat_ugn.texi: Document this naming convention.
4526 2014-07-30  Robert Dewar  <dewar@adacore.com>
4528         * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
4529         inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
4530         s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
4531         s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
4532         * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
4533         conversion.
4535 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4537         * sem_ch5.adb: Improve error recovery.
4538         * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
4539         before analyzing the body, so that in GNATprove mode there is
4540         no light expansion. Whatever expansion is required by SPARK will
4541         be performed when analysing the inlined code.
4543 2014-07-30  Bob Duff  <duff@adacore.com>
4545         * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
4547 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4549         * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
4550         verify that it is not hidden by an inner implicit declaration.
4552 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4554         * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
4555         * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
4556         * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
4557         the call returns an unconstrained type: in this case there is
4558         already a transient scope, and we should not establish a new one.
4559         * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
4560         True, also insert cleanup actions in the tree.
4561         (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
4562         with Clean set True.
4564 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
4566         * s-taskin.ads (Direct_Index, Direct_Index_Range,
4567         Direct_Attribute_Element, Direct_Attribute_Array,
4568         Direct_Index_Vector, Direct_Attributes, Is_Defined,
4569         Indirect_Attributes): Removed.  (Atomic_Address,
4570         Attribute_Array, Attributes): New.
4571         * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
4572         Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
4573         (Finalize_Attributes): Reimplement.
4574         * s-tassta.adb (Create_Task): Remove call to
4575         Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
4576         Replace Finalize_Attributes_Link by Finalize_Attributes.
4577         * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
4578         Reimplement from scratch, using a simpler and more efficient
4579         implementation.
4580         * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
4581         * s-parame.ads, s-parame-hpux.ads,
4582         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
4583         * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
4584         Default_Attribute_Count.
4586 2014-07-30  Olivier Hainque  <hainque@adacore.com>
4588         * vxworks-ppc-link.spec: New file. Extra link
4589         instructions for ppc-vxworks.
4590         * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
4591         * system-vxworks-ppc.ads: Adjust linker options to use spec files.
4592         * system-vxworks-arm.ads: Likewise.
4593         * gcc-interface/Makefile.in: Enable .spec files.
4595 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4597         * sem_aggr.adb: Minor comment reformatting.
4599 2014-07-30  Robert Dewar  <dewar@adacore.com>
4601         * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
4602         * sem_warn.adb (Has_Junk_Name): New function
4603         (Check_References): Use Has_Junk_Name to delete junk warnings
4604         (Check_Unset_Reference): ditto.
4605         (Warn_On_Unreferenced_Entity): ditto.
4606         (Warn_On_Useless_Assignment): ditto.
4608 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4610         * checks.adb (Insert_Valid_Check): Do not check for the packed
4611         array type of a prefix that is an access type.
4613 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4615         * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
4616         Unconstrained_Array even if prefix is not frozen yet, as can
4617         occur with a private subtype used as a generic actual.
4619 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
4621         * sem_attr.adb: Minor reformatting.
4623 2014-07-30  Pat Rogers  <rogers@adacore.com>
4625         * gnat_rm.texi: Corrected minor wording error in description
4626         of No_Exception_Registration.
4628 2014-07-30  Yannick Moy  <moy@adacore.com>
4630         * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
4631         mode. Realphabetize two subprograms.
4632         * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
4633         (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
4634         (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
4635         mode.
4636         (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
4637         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
4638         Is_Inline in GNATprove mode.
4639         (Analyze_Subprogram_Specification):
4640         Set Is_Inlined_Always at subprogram entity creation.
4641         * sem_res.adb (Resolve_Call): Do not deal with inlining during
4642         pre-analysis.  Issue warning on call to possibly inlined
4643         subprogram when body not seen.
4645 2014-07-30  Yannick Moy  <moy@adacore.com>
4647         * lib-xref.adb (Generate_Reference): Add special
4648         case for compiler-generated formals in GNATprove mode.
4650 2014-07-30  Yannick Moy  <moy@adacore.com>
4652         * sem_ch6.adb: Add comments.
4654 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4656         * s-os_lib.ads (GM_Time_Of): Clarify documentation.
4658 2014-07-30  Robert Dewar  <dewar@adacore.com>
4660         * sem_aggr.adb, sem_res.adb: Minor reformatting.
4662 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4664         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4665         Bit_Order): Set Reverse_Bit_Order on the base type of the
4666         specified first subtype.
4668 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4670         * inline.adb (Expand_Inlined_Call): Use a renaming declaration
4671         to capture the value of actuals of a limited type rather than
4672         an object declaration, to prevent spurious errors when analyzing
4673         the inlined body.
4675 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4677         * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
4678         as an instance, and inhibit semantic checks on already analyzed
4679         code to prevent spurious errors.
4681 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
4683         * a-exctra.ads ("="): New function, to restore compatibility.
4685 2014-07-30  Pascal Obry  <obry@adacore.com>
4687         * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
4688         routine to use the OS dst setting.
4690 2014-07-30  Pat Rogers  <rogers@adacore.com>
4692         * gnat_ugn.texi: Minor correction to description of -gnatw.K.
4694 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4696         * sem_util.adb (Wrong_Type): Disable some checks equally within
4697         instances and within inlined bodies, to suppress spurious type
4698         errors on already analyzed code.
4699         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
4700         is legal in an inlined body, juts as it is in an instance body.
4702 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4704         * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
4705         body the operand of an unchecked conversion may be a literal, in
4706         which case its type is the target type of the conversion. This
4707         is in contrast to conversions in other contexts, where the
4708         operand cannot be a literal and must be resolvable independent
4709         of the context.
4711 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
4713         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
4714         mere scalar constant instead of a reference for a renaming of
4715         scalar literal.
4716         * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
4717         * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
4719 2014-07-30  Robert Dewar  <dewar@adacore.com>
4721         * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
4722         g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
4723         g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
4724         s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
4725         g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
4726         s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
4727         & code reorganization.
4729 2014-07-30  Bob Duff  <duff@adacore.com>
4731         * s-tassta.adb, sem_util.ads: Minor reformatting.
4733 2014-07-30  Yannick Moy  <moy@adacore.com>
4735         * inline.adb (Build_Body_To_Inline): Detect when
4736         subprogram has multiple returns, or not a single last return
4737         statement, in GNATprove mode.
4738         (Cannot_Inline): Simplify logic to handle case of GNATprove
4739         inlining first.
4741 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4743         * sem_ch6.adb: Stubs are not subject to inlining.
4745 2014-07-30  Bob Duff  <duff@adacore.com>
4747         * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
4748         from a procedure to a function, so that it can more easily be
4749         called before the "begin" of a task.
4750         * s-taasde.ads (Delay_Block): Make this type immutably limited,
4751         so we can use a build-in-place function call to initialize
4752         Timer_Queue in the body.
4753         * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
4754         * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
4755         * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
4756         Make_Independent before reaching its "begin", to avoid race
4757         conditions. This causes the activating task to wait until after
4758         Make_Independent is complete before proceeding.  In addition,
4759         we initialize data structures used by independent tasks before
4760         activating those tasks, to avoid possible use of uninitialized data.
4761         * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
4762         Minor comment fixes.
4764 2014-07-30  Bob Duff  <duff@adacore.com>
4766         * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
4767         the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
4768         System.Traceback_Entries (s-traent.ads and s-traent-vms.ads).  Add
4769         subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
4770         * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
4772 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
4774         * a-tasatt.adb: Remove old comments.
4776 2014-07-30  Yannick Moy  <moy@adacore.com>
4778         * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
4779         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
4780         to explain rationale for inlining or not in GNATprove mode.
4781         (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
4782         to False when inlining is not possible.
4783         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
4784         flag to indicate that subprogram is fully inlined. To be reversed
4785         if inlining problem is found.
4786         * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
4787         call in potentially unevaluated context.
4789 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
4791         * s-tarest.adb, s-tarest.ads: Fix comments.
4793 2014-07-30  Robert Dewar  <dewar@adacore.com>
4795         * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
4796         Change No_Scalar_Parts predicate to Scalar_Part_Present and
4797         invert sense of test. This avoids the "not No_xxx" situation
4798         which is always ugly.
4800 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4802         * inline.adb (Expand_Inlined_Call): When generating code for
4803         an internal subprogram the expansion uses the location of the
4804         call, so that gdb can skip over it. In GNATprove mode we want to
4805         preserve slocs of original subprogram when expanding an inlined
4806         call, to obtain better warnings, even though subprogram appears
4807         not to come from source if it is the inlining of a subprogram
4808         body without a previous spec.
4810 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4812         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
4813         types with atomic components.
4815 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4817         * Make-generated.in: Remove now unnecessary targets after s-oscons
4818         reorg.
4820 2014-07-30  Yannick Moy  <moy@adacore.com>
4822         * sem_res.adb (Resolve_Call): Use ultimate alias
4823         of callee when available.
4825 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4827         * sem_ch6.adb (Analyze_Expression_Function): To check whether
4828         an expression function is a completion, use the specification of
4829         the previous declaration, not its entity, which may be internally
4830         generated in an inlined context.
4832 2014-07-30  Doug Rupp  <rupp@adacore.com>
4834         * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
4835         temp files in /cache directory unless overridden by TMPDIR.
4837 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
4839         * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
4840         Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
4841         type CPU, so it can never be greater than CPU_Range'Last.
4843 2014-07-30  Bob Duff  <duff@adacore.com>
4845         * s-taskin.ads: Minor comment fix.
4847 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4849         * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
4850         clauses.
4852 2014-07-30  Yannick Moy  <moy@adacore.com>
4854         * debug.adb: Free debug flag dQ used for frontend inlining in
4855         GNATprove mode..
4856         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
4857         debug flag..
4859 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4861         * Make-generated.in: Remove generation of s-oscons.ads, only
4862         generate the xoscons utility, in runtime-agnostic rules.
4863         * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
4864         no longer supported.
4866 2014-07-30  Bob Duff  <duff@adacore.com>
4868         * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
4869         parameter Chain to be used in the allocator case.
4870         (Make_Build_In_Place_Call_In_Allocator): If the allocated object
4871         has tasks, wrap the code in a block that will activate them,
4872         including the usual finalization code to kill them off in case
4873         of exception or abort.
4875 2014-07-30  Robert Dewar  <dewar@adacore.com>
4877         * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
4878         Remove renamings (don't work for gdb).
4879         (par): New synonym for p (avoid gdb ambiguities).
4880         * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
4882 2014-07-30  Bob Duff  <duff@adacore.com>
4884         * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
4885         fixes.
4886         * treepr.ads, treepr.adb (ppp): Make this debugging routine
4887         accept any type covered by Union_Id.
4889 2014-07-30  Robert Dewar  <dewar@adacore.com>
4891         * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
4892         analyzing branches.
4893         * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
4894         expression case.
4896 2014-07-30  Robert Dewar  <dewar@adacore.com>
4898         * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
4899         of predicate aspect on entity other than a type.
4901 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4903         * sem_ch6.adb (Body_Has_Contract): New predicate to determine
4904         when a subprogram body without a previous spec cannot be inlined
4905         in GNATprove mode, because it includes aspects or pragmas that
4906         generate a SPARK contract clause.
4907         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
4908         instance cannot be inlined.
4910 2014-07-30  Robert Dewar  <dewar@adacore.com>
4912         * debug.adb: Document that d7 suppresses compilation time output.
4913         * errout.adb (Write_Header): Include compilation time in
4914         header output.
4915         * exp_intr.adb (Expand_Intrinsic_Call): Add
4916         Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
4917         Compilation_Date/Compilation_Time.
4918         * g-souinf.ads (Compilation_Date): New function
4919         (Compilation_Time): New function.
4920         * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
4921         * gnat_rm.texi (Compilation_Date): New function
4922         (Compilation_Time): New function.
4923         * opt.ads (Compilation_Time): New variable.
4924         * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
4925         * sem_intr.adb (Compilation_Date): New function.
4926         (Compilation_Time): New function.
4927         * snames.ads-tmpl (Name_Compilation_Date): New entry.
4928         (Name_Compilation_Time): New entry.
4930 2014-07-30  Yannick Moy  <moy@adacore.com>
4932         * inline.adb: Add comment.
4934 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4936         * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
4937         parameterless attribute, and a postondition can mention an
4938         indexed component or a slice whose prefix is an attribute
4939         reference F'Result.
4941 2014-07-30  Robert Dewar  <dewar@adacore.com>
4943         * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
4944         Avoid bomb when printing package Standard.
4946 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4948         * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
4949         entity is created at this point, ensure that the name of the
4950         flag is unique, because the subprogram may be overloaded and
4951         other homonyms may also have elaboration flags created on the fly.
4953 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4955         * sem_attr.adb (Analyze_Array_Component_Update): New routine.
4956         (Analyze_Attribute): Major cleanup of attribute
4957         'Update. The logic is now split into two distinct routines
4958         depending on the type of the prefix. The use of <> is now illegal
4959         in attribute 'Update.
4960         (Analyze_Record_Component_Update): New routine.
4961         (Check_Component_Reference): Removed.
4962         (Resolve_Attribute): Remove the return statement and ??? comment
4963         following the processing for attribute 'Update. As a result,
4964         the attribute now freezes its prefix.
4966 2014-07-30  Javier Miranda  <miranda@adacore.com>
4968         * exp_ch4.adb (Apply_Accessibility_Check): Do
4969         not call Base_Address() in VM targets.
4971 2014-07-30  Yannick Moy  <moy@adacore.com>
4973         * gnat1drv.adb (Adjust_Global_Switches): Set
4974         Ineffective_Inline_Warnings to True in GNATprove mode.
4975         * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
4976         mode of inlining.
4977         * opt.ads (Ineffective_Inline_Warnings): Add comment that
4978         describes use in GNATprove mode.
4979         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
4980         pragma when applied to the special body created for inlining.
4982 2014-07-30  Robert Dewar  <dewar@adacore.com>
4984         * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
4985         Minor reformatting.
4987 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4989         * aspects.ads Add a comment explaining why SPARK 2014 aspects are
4990         not delayed. Update the delay status of most SPARK 2014 aspects.
4991         * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
4992         to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
4993         to Decorate and Insert_Pragma. Add various comments concerning
4994         the delay status of several SPARK 2014 aspects. The insertion
4995         of Refined_State now uses routine Insert_After_SPARK_Mode.
4996         (Decorate): New routine.
4997         (Decorate_Aspect_And_Pragma): Removed.
4998         (Insert_Delayed_Pragma): Removed.
4999         (Insert_Pragma): New routine.
5001 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5003         * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
5004         only a warning, not an error on an attempt to inline a recursive
5005         subprogram.
5007 2014-07-30  Robert Dewar  <dewar@adacore.com>
5009         * g-forstr.adb: Minor code reorganization (use J rather than I
5010         as a variable name).
5011         * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
5012         g-forstr.ads: Minor reformatting.
5014 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5016         * sprint.adb (Set_Debug_Sloc): Also reset the end location if
5017         we are debugging the generated code.
5019 2014-07-30  Yannick Moy  <moy@adacore.com>
5021         * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
5022         returns True for source pointer for an inlined body.
5024 2014-07-30  Javier Miranda  <miranda@adacore.com>
5026         * exp_ch4.adb (Apply_Accessibility_Check): Add
5027         missing calls to Base_Address().
5029 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5031         * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
5032         mode, subprogram bodies without a previous declaration are also
5033         candidates for front-end inlining.
5035 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5037         * aspects.ads Aspects Async_Readers, Async_Writers,
5038         Effective_Reads and Effective_Writes do not need to be delayed.
5039         * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
5040         optional Boolean expression when generating the corresponding
5041         pragma for an external property aspect.
5042         * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
5043         local constant Obj. Add local constant Obj_Id. Reimplement the
5044         check which ensures that the related variable is in fact volatile.
5045         (Analyze_Pragma): Reimplement the analysis of external property pragmas.
5046         * sem_util.adb (Is_Enabled): New routine.
5047         (Variable_Has_Enabled_Property): Reimplement the detection of
5048         an enabled external property.
5050 2014-07-30  Sergey Rybin  <rybin@adacore.com frybin>
5052         * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
5053         for body stubs.
5055 2014-07-30  Pascal Obry  <obry@adacore.com>
5057         * g-forstr.adb, g-forstr.ads: New.
5058         * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
5059         GNAT.Formatted_String.
5061 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5063         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
5064         (Expand_Array_Aggregate): Also enable in-place expansion for
5065         code generated by the compiler.  For an object declaration,
5066         set the kind of the object in addition to its type.  If an
5067         in-place assignment is to be generated and it can be directly
5068         done by the back-end, do not expand the aggregate.
5069         * fe.h (Is_Others_Aggregate): Declare.
5070         * gcc-interface/trans.c
5071         (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
5072         aggregate with a single Others choice on the RHS by means of
5073         __builtin_memset.  Tidy up.
5075 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5077         * gnat_rm.texi: minor reformatting.
5079 2014-07-30  Yannick Moy  <moy@adacore.com>
5081         * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
5082         in SPARK_Mode Off.
5084 2014-07-30  Robert Dewar  <dewar@adacore.com>
5086         * gnat_rm.texi: Document additional implementation-defined use
5087         of Constrained.
5089 2014-07-30  Robert Dewar  <dewar@adacore.com>
5091         * prj-proc.adb, prj-strt.adb: Update comments.
5093 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
5095         * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
5097 2014-07-30  Vincent Celier  <celier@adacore.com>
5099         * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
5100         parameter No_Extending, defaulted to False. When No_Extending
5101         is True, do not look for an extending project.
5102         (Expression): For a variable reference that is not for the current
5103         project, get its Id calling Imported_Or_Extended_Project_From
5104         with No_Extending set to True.
5105         * prj-strt.adb (Parse_Variable_Reference): If a referenced
5106         variable is not found in the current project, check if it is
5107         defined in one of the projects it extends.
5109 2014-07-30  Robert Dewar  <dewar@adacore.com>
5111         * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
5112         some additional cases of internally generated routines.
5114 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
5116         * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
5117         if the compilation unit is a subunit, extend optional processing
5118         to all subunits of the current one. This allows gnatstub to
5119         supress generation of spurious bodies.
5121 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
5123         * a-cbmutr.adb (Insert_Child): Use local variable First to keep
5124         track of the initial element's index within the tree.
5126 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5128         * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
5129         (Insert_Child): Add local variable First. Capture the index of the
5130         first node being created to ensure correct cursor construction
5131         later on. Use the three parameter version of Allocate_Node
5132         when creating multiple children as this method allows aspect
5133         Default_Value to take effect (if applicable).
5135 2014-07-29  Eric Botcazou  <ebotcazou@adacore.com>
5137         * exp_aggr.adb (Safe_Slice_Assignment): Remove.
5138         (Expand_Array_Aggregate): For a safe slice assignment, just set
5139         the target and use the common code path.
5141 2014-07-29  Robert Dewar  <dewar@adacore.com>
5143         * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
5144         predicate No_Predicate_Test_On_Arguments, new name is
5145         Predicate_Tests_On_Arguments (with the opposite sense).
5147 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5149         * sem_attr.adb (Resolve_Attribute): Clean up the code for
5150         attribute 'Access. Do not generate an elaboration flag for a
5151         stand alone expression function. The expression of an expression
5152         function is now frozen when the expression function appears as
5153         the prefix of attribute 'Access.
5154         * sem_ch6.adb (Analyze_Expression_Function): Remove local
5155         variable New_Decl and update all references to it after the
5156         rewriting has taken place. Establish the linkages between the
5157         generated spec and body.
5159 2014-07-29  Robert Dewar  <dewar@adacore.com>
5161         * sem_prag.adb (ip, rv): Prevent from being optimized away.
5162         * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
5163         * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
5164         reformatting.
5166 2014-07-29  Vincent Celier  <celier@adacore.com>
5168         * prj-pp.adb: Minor comment update.
5169         * frontend.adb: If a target dependency info file has been read
5170         through switch -gnateT= add it to the dependencies of the source
5171         being compiled.
5173 2014-07-29  Robert Dewar  <dewar@adacore.com>
5175         * sem_ch3.adb, prj.adb: Minor reformatting.
5177 2014-07-29  Vincent Celier  <celier@adacore.com>
5179         * prj-pp.adb (Pretty_Print.Output_Project_File): New
5180         procedure to output project file names between quotes without
5181         concatenation, even if the line is too long.
5182         (Pretty_Print): Use Output_Project_File for project being extended and
5183         project imported.
5185 2014-07-29  Vincent Celier  <celier@adacore.com>
5187         * gnat_ugn.texi: Document that configuration pragmas files are
5188         added to the dependencies, unless they contain only pragmas
5189         Source_File_Name_Project.
5191 2014-07-29  Robert Dewar  <dewar@adacore.com>
5193         * frontend.adb: Minor reformatting.
5195 2014-07-29  Robert Dewar  <dewar@adacore.com>
5197         * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
5198         (Expand_Actuals): Make sure predicate checks are properly applied
5199         for the case of OUT or IN OUT parameters.
5200         * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
5201         predicate tests on arguments for Finalize
5202         * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
5203         if predicate tests on subprogram arguments should be skipped.
5204         * sem_util.ads (No_Predicate_Test_On_Arguments): New function
5206 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5208         * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
5209         clause for the object and the expression is an aggregate, defer
5210         resolution and expansion of the aggregate until the freeze point
5211         of the entity.
5212         * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
5213         the parent node is an N_Reference generated during expansion.
5215 2014-07-29  Vincent Celier  <celier@adacore.com>
5217         * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
5219 2014-07-29  Robert Dewar  <dewar@adacore.com>
5221         * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
5222         prepcomp.ads: Minor reformatting and code clean up.
5223         * exp_ch6.adb (Expand_Actuals): Generate predicate test
5224         unconditionally for case of OUT or IN OUT actual (before this
5225         was generated only for certain subcases, which is wrong, the
5226         test is always needed).
5228 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5230         * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
5231         * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
5232         until context type is available.
5233         * sem_res.adb (Resolve_Allocator): In the case of a qualified
5234         expression, complete resolution of expression.
5235         (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
5236         to apply Ada2012 checks on aliased formals, as well as
5237         accesibility checks when the context of the call is an allocator
5238         or a qualified expression.
5239         * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
5240         Moved here from sem_ch3.
5241         (Object_Access_Level): Handle properly aliased formals and
5242         aggregates.
5243         * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
5244         now properly performed in sem_res (Resolve_Actuals,
5245         Check_Aliased_Parameter).
5247 2014-07-29  Yannick Moy  <moy@adacore.com>
5249         * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
5250         * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
5251         function to decide when a subprogram can be inlined in GNATprove mode.
5252         (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
5253         condition for possible inlining.
5254         * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
5255         for Inline_Always in GNATprove mode.
5256         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
5257         body for subprograms in GNATprove mode, under debug flag -gnatdQ.
5258         * sem_prag.adb Minor change in comments.
5259         * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
5260         inside subprograms marked as SPARK_Mode On.
5261         * sinfo.ads: Minor typo fix.
5263 2014-07-29  Vincent Celier  <celier@adacore.com>
5265         * frontend.adb: Add dependency on gnat.adc when taken into account
5266         and on non-temporary configuration pragmas files specified in
5267         switches -gnatec.
5268         * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
5269         dependencies on configuration pragmas files.
5271 2014-07-29  Pat Rogers  <rogers@adacore.com>
5273         * gnat_ugn.texi: Minor clarification to the explanation for the
5274         GNATtest -v switch.
5276 2014-07-29  Robert Dewar  <dewar@adacore.com>
5278         * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
5279         documentation that explains the need for this extended range
5280         (use by C_Pass_By_Copy).
5282 2014-07-29  Robert Dewar  <dewar@adacore.com>
5284         * gnat_rm.texi, sem_prag.adb: Minor reformatting.
5286 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
5288         * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
5289         complexity metrics.
5291 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5293         PR ada/60652
5294         * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
5295         CRTSCTS to be visible.
5297 2014-07-29  Bob Duff  <duff@adacore.com>
5299         * g-trasym.adb, g-trasym.ads: Code cleanup.
5301 2014-07-29  Doug Rupp  <rupp@adacore.com>
5303         * sigtramp-vxworks.c: Minor reformatting.
5305 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5307         * gnat_rm.texi: No doc needed for Ada2012 aspect
5308         Implicit_dereference.
5310 2014-07-29  Robert Dewar  <dewar@adacore.com>
5312         * sem_attr.adb (Attribute_12): New array
5313         (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
5314         (Check_Ada_2012_Attribute): Removed.
5316 2014-07-29  Doug Rupp  <rupp@adacore.com>
5318         * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
5319         PPC, and e500.
5320         * sigtramp-vxworks.c: New file.
5321         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
5323 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5325         * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
5326         derived array type, add information about component type, which
5327         was previously missing in ali file.
5328         * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
5330 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5332         * sem_ch3.adb (Constrain_Corresponding_Record): For the case
5333         of the subtype created for a record component, do not mark
5334         the subtype as frozen. For one thing, this is anomalous (in
5335         particular, the base type might not itself be frozen yet);
5336         furthermore, proper freezing of the subtype must happen in any
5337         case. So, we just mark the subtype as requiring delayed freezing
5338         (and we'll actually freeze it when generating the init_proc of
5339         the enclosing record).
5340         Also change the name of the constrained record subtype (append a
5341         'C' so that it is clearly different from the unconstrained record
5342         type, "related_idV") to make debugging easier.
5343         (Process_Full_View): When creating a full subtype for a pending
5344         private subtype, re-establish the scope of the private subtype
5345         so that we get proper visibility on outer discriminants.
5346         * exp_ch3.adb (Build_Init_Statements): Freeze any component
5347         subtype that is not frozen yet.
5349 2014-07-29  Vincent Celier  <celier@adacore.com>
5351         * prj-proc.adb (Recursive_Process): Always initialize the
5352         environment when the project is an aggregate project, even when
5353         it is not the root tree.
5354 2014-07-29  Robert Dewar  <dewar@adacore.com>
5356         * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
5357         * gnat_rm.texi: Complete list of implementation aspects.
5358         * aspects.ads: Minor comment clarification.
5360 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5362         * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
5363         is a null-excluding access type, do not generate a constraint
5364         check if Suppress_Assignment_Checks is set on assignment node.
5365         * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
5366         parameter of a null-excluding access type, there is access check
5367         on entry, so set Suppress_Assignment_Checks on generated statement
5368         that assigns actual to parameter block.
5369         * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
5371 2014-07-29  Robert Dewar  <dewar@adacore.com>
5373         * gnat_rm.texi: Change theta to @ in documentation of aspect
5374         Dimension_System.
5376 2014-07-29  Robert Dewar  <dewar@adacore.com>
5378         * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
5379         are now on pragma.
5380         * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
5381         of Uneval_Old_*
5382         * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
5383         * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
5385 2014-07-29  Javier Miranda  <miranda@adacore.com>
5387         * types.ads Update documentation on how to add new reason codes
5388         for exceptions.
5389         (RT_Exception_Code): Keep values ordered by their
5390         reason code.  Required by the .NET backend.
5391         (RT_CE_Exceptions): Subtype declaration removed.
5392         (RT_PE_Exceptions): Subtype declaration removed.
5393         (RT_SE_Exceptions): Subtype declaration removed.
5394         (Kind): New mapping table of RT_Exception_Codes.
5395         * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
5396         new mapping table.
5397         * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
5398         mapping table.  (Make_Raise_Program_Error): Updated to use the
5399         new mapping table.
5400         (Make_Raise_Storage_Error): Updated to use the new mapping table.
5401         * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
5402         their reason code.
5404 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5406         * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
5407         distributed stubs generation.
5408         * exp_ch3.adb: Minor reformatting.
5410 2014-07-29  Yannick Moy  <moy@adacore.com>
5412         * sinfo.ads: Document constraint between frontend and GNATprove.
5414 2014-07-29  Robert Dewar  <dewar@adacore.com>
5416         * a-except.adb: Minor comment clarification.
5418 2014-07-29  Robert Dewar  <dewar@adacore.com>
5420         * gnat_rm.texi: Complete list of implementation attributes.
5421         * snames.ads-tmpl: Clean up list of impl-defined attributes.
5423 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5425         * freeze.adb (Freeze_Record_Type): Perform various
5426         volatility-related checks.
5428 2014-07-29  Robert Dewar  <dewar@adacore.com>
5430         * sem_ch3.adb, sem_eval.adb: Minor reformatting.
5432 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5434         * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
5435         the case where the attribute reference appears in a nested scope
5436         from that of the subprogram prefix.
5437         * sem_attr.adb: Minor reformatting.
5439 2014-07-29  Robert Dewar  <dewar@adacore.com>
5441         * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
5442         initialization options.
5444 2014-07-29  Robert Dewar  <dewar@adacore.com>
5446         * sinfo.ads: Minor comment addition.
5448 2014-07-29  Bob Duff  <duff@adacore.com>
5450         * sem_eval.adb, sem_ch13.adb: Minor reformatting.
5452 2014-07-29  Doug Rupp  <rupp@adacore.com>
5454         * init.c: Complete previous change.
5456 2014-07-29  Robert Dewar  <dewar@adacore.com>
5458         * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
5459         array case.
5461 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5463         * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
5464         and the completion will appear in the same declarative part,
5465         create elaboration flag.
5466         * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
5467         is a completion of a declaration in the same declarative part,
5468         and the subprogram has had its address taken, add elaboration
5469         check inside the subprogram body, to detect elaboration errors
5470         that may occur through indirect calls.
5472 2014-07-29  Doug Rupp  <rupp@adacore.com>
5474         * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
5475         * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
5477 2014-07-29  Vincent Celier  <celier@adacore.com>
5479         * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
5480         runtime directorie specified with two switches --RTS= designate
5481         the same directory, even when there are no literarily the same.
5483 2014-07-29  Robert Dewar  <dewar@adacore.com>
5485         * gnat_ugn.texi: Minor documentation clarification.
5486         * switch-c.adb: Minor reformatting.
5488 2014-07-29  Robert Dewar  <dewar@adacore.com>
5490         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
5491         Fix incorrect RTE call which caused bomb if pragma was in
5492         configuration pragma file.
5494 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
5496         * expect.c (__gnat_expect_poll): Fix typo in previous change.
5497         * g-expect.adb: Update comments.
5499 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
5501         * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
5502         (Default_Attribute_Count): Bump to 16 on native platforms.
5504 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5506         * sem_res.adb: Add guard to front-end inlining for SPARK.
5508 2014-07-29  Robert Dewar  <dewar@adacore.com>
5510         * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
5511         Minor reformatting.
5513 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5515         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
5516         inline in GNATprove mode when subprogran is marked Inline_Always.
5517         * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
5518         mode if body to inline is available.
5519         * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
5520         effective in GNATprove mode.
5521         * sem_ch10.adb (Analyze_Compilation_Unit): Call
5522         Check_Package_Body_For_Inlining in GNATprove mode, so that body
5523         containing subprograms with Inline_Always can be available before
5524         calls to them.
5526 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5528         * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
5529         to Check_Package_Body_For_Inlining, to prevent confusion with other
5530         inlining subprograms.
5532 2014-07-29  Robert Dewar  <dewar@adacore.com>
5534         * opt.ads: Minor comment update.
5535         * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
5536         we want setting of Uneval_Old at time of encountering the aspect.
5537         * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
5538         of Opt.Uneval_Old.
5539         * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
5540         New function (Set_Uneval_Old_Accept): New procedure.
5541         (Set_Uneval_Old_Warn): New procedure.
5542         * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
5544 2014-07-29  Robert Dewar  <dewar@adacore.com>
5546         * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
5547         * snames.ads-tmpl: Minor reformatting.
5548         * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
5549         to give <Error>.  Not clear why this was there, but the compiler
5550         sources do not reference Name_Error, and this interfered with
5551         the circuits for pragma Unevaluated_Use_Of_Old.
5553 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5555         * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
5556         types in SPARK 2014 (again).
5557         * sem_res.adb (Is_OK_Volatile_Context): New routine.
5558         (Resolve_Entity_Name): Ensure that a volatile object with
5559         enabled properties Async_Writers or Effectire_Reads appears in
5560         a non-interfering context.
5562 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5564         * sem_ch6.adb: Move Build_Body_To_Inline,
5565         Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
5566         * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
5567         * inline.ads, inline.adb: Package now contains subprograms that
5568         implement front-end inlining.  No functional changes, no test
5569         needed.
5571 2014-07-29  Robert Dewar  <dewar@adacore.com>
5573         * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
5575 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5577         * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
5578         is a limited view when the context is a package body, because
5579         there is no subsequent place at which the non-limited view may
5580         become visible.
5581         (Process_Formals): Ditto.
5582         * sinfo.ads, par-ch3.adb: Minor reformatting.
5584 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
5586         * expect.c (__gnat_expect_poll): New parameter dead_process
5587         used to return the dead process among the array of file
5588         descriptors. The Windows, VMS and HPUX implementations now
5589         properly report the dead process via this parameter. Other unixes
5590         don't need it.
5591         * g-expect.adb (Poll): Adapt to the C profile.
5592         (Expect_Internal): Use the new parameter to properly close the
5593         File Descriptor.  This then can be properly reported by the
5594         function First_Dead_Process as is expected.
5596 2014-07-29  Robert Dewar  <dewar@adacore.com>
5598         * gnat_ugn.texi: Minor clarification of -gnatQ switch.
5600 2014-07-29  Robert Dewar  <dewar@adacore.com>
5602         * einfo.adb (Derived_Type_Link): New function
5603         (Set_Derived_Type_Link): New procedure.
5604         (Write_Field31_Name): Output Derived_Type_Link.
5605         * einfo.ads: New field Derived_Type_Link.
5606         * exp_ch6.adb (Expand_Call): Warn if change of representation
5607         needed on call.
5608         * sem_ch13.adb: Minor addition of ??? comment.
5609         (Rep_Item_Too_Late): Warn on case that is legal but could cause an
5610         expensive implicit conversion.
5611         * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
5613 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5615         * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
5616         to DF_Id. Add new local variable DF_Call. Do not perform any
5617         elaboration-related checks on the call to the partial finalization
5618         routine within an init proc to avoid generating bogus elaboration
5619         warnings on expansion-related code.
5620         * sem_elab.adb (Check_A_Call): Move constant Access_Case to
5621         the top level of the routine.  Ensure that Output_Calls takes
5622         into account flags -gnatel and -gnatwl when emitting warnings
5623         or info messages.
5624         (Check_Internal_Call_Continue): Update the call to Output_Calls.
5625         (Elab_Warning): Moved to the top level of routine Check_A_Call.
5626         (Emit): New routines.
5627         (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
5628         comment on usage. Output all warnings or info messages only when the
5629         caller context demands it and the proper elaboration flag is set.
5631 2014-07-29  Yannick Moy  <moy@adacore.com>
5633         * sem_attr.adb (Analyze_Attribute/Attribute_Old):
5634         Check rule about Old appearing in potentially unevaluated
5635         expression everywhere, not only in Post.
5637 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
5639         * sem_prag.adb: Update comment.
5640         * a-except.adb, a-except-2005.adb: Minor editing.
5642 2014-07-29  Pierre-Marie Derodat  <derodat@adacore.com>
5644         * exp_dbug.adb (Debug_Renaming_Declaration):
5645         Do not create renaming entities for renamings of non-packed
5646         objects and for exceptions.
5648 2014-07-29  Robert Dewar  <dewar@adacore.com>
5650         * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
5651         sem_ch6.adb, par-ch3.adb: Minor reformatting.
5653 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5655         * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
5656         subtype indication in an extended return statement when the
5657         return value is an ancestor of the return type of the function,
5658         and that return type is a null record extension.
5660 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5662         * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
5663         message produced for the case of a type-related representation
5664         item that is made illegal by 13.10(1).
5665         * gnat_rm.texi (Scalar_Storage_Order): Minor change in
5666         documentation.
5668 2014-07-29  Robert Dewar  <dewar@adacore.com>
5670         * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
5671         * erroutc.adb (Output_Error_Msgs): Take wide characters into
5672         account in computing position of error flags.
5673         * sinput.adb (Get_Column_Number): Take wide characters into
5674         account.
5676 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5678         * par-ch3.adb (P_Access_Type_Definition): The subtype indication
5679         in an access type definition can carry a null_exclusion indicator.
5680         * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
5681         carries a null_exclusion indicator, verify that the subtype
5682         indication denotes an access type, and create a null-excluding
5683         subtype for it.
5684         * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
5685         defined on N_Access_To_Object_Definition to indicate that the
5686         subtype indication carries a null_exclusion indicator.
5688 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5690         * exp_ch6.adb (Add_Extra_Actual): Do not construct
5691         the extra actual by name, generate a reference instead.
5693 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
5695         * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
5696         Allow_Integer_Address if already set.
5697         * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
5698         Fix order, for consistency with Rmsg_xx declarations.
5700 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5702         * sem_ch4.adb (Complete_Object_Operation): If the type of the
5703         candidate subprogram is a limited view, use non-limited view
5704         when available.
5706 2014-07-29  Robert Dewar  <dewar@adacore.com>
5708         * sem_ch13.adb: Minor change in RM reference.
5709         * sem_mech.ads: Minor reformatting.
5710         * einfo.ads: Minor comment fix.
5711         * types.ads: Minor correction to range given for Mechanism_Type.
5712         * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
5713         check predicate on way out for OUT or IN OUT parameters.
5714         * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
5715         better (P_Range_Constraint): Corresponding fix.
5716         * checks.ads: Minor comment clarification.
5718 2014-07-29  Gary Dismukes  <dismukes@adacore.com>
5720         * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
5721         and Treat_As_Volatile flags based on whether the renamed object
5722         is a volatile object.
5724 2014-07-29  Olivier Hainque  <hainque@adacore.com>
5726         * g-debpoo.adb
5727         (Default_Alignment): Rename as Storage_Alignment. This is not
5728         a "default" that can be overriden. Augment comment to clarify
5729         intent and document why we need to manage alignment padding.
5730         (Header_Offset): Set to Header'Object_Size instead of 'Size
5731         rounded up to Storage_Alignment. Storage_Alignment on the
5732         allocation header is not required by our internals so was
5733         overkill. 'Object_Size is enough to ensure proper alignment
5734         of the header address when substracted from a storage address
5735         aligned on Storage_Alignment.
5736         (Minimum_Allocation): Rename as Extra_Allocation, conveying that
5737         this is always added on top of the incoming allocation requests.
5738         (Align): New function, to perform alignment rounding operations.
5739         (Allocate): Add comments on the Storage_Address computation
5740         scheme and adjust so that the alignment padding applies to that
5741         (Storage_Address) only.
5743 2014-07-29  Robert Dewar  <dewar@adacore.com>
5745         * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
5746         pragma Unreferenced.
5747         * cstand.adb (Create_Standard): Use E_Array_Type for standard
5748         string types. Make sure index of Any_String/Any_Array is in a list.
5749         * errout.adb: Minor reformatting.
5751 2014-07-29  Robert Dewar  <dewar@adacore.com>
5753         * gnat_ugn.texi: Clean up and correct documentation of warnings.
5754         * usage.adb: Minor corrections to make sure warnings are properly
5755         documented.
5756         * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
5757         (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
5759 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5761         * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
5762         created to match internal sequence numbers between compilations
5763         with/without abort must have its type properly set.
5765 2014-07-29  Robert Dewar  <dewar@adacore.com>
5767         * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
5768         (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
5769         SSO_Default_Specified.
5770         * ali.ads (ALIs_Record): Add field SSO_Default
5771         (SSO_Default_Specified): New global switch.
5772         * bcheck.adb (Check_Consistent_SSO_Default): New procedure
5773         (Check_Configuration_Consistency): Call this procedure
5774         * einfo.adb (SSO_Set_High_By_Default): New
5775         function (SSO_Set_Low_By_Default): New function
5776         (Set_SSO_Set_High_By_Default): New procedure
5777         (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
5778         List new flags
5779         * einfo.ads (SSO_Set_Low_By_Default): New flag
5780         (SSO_Set_High_By_Default): New flag
5781         * freeze.adb (Set_SSO_From_Default): New procedure
5782         (Freeze_Array_Type): Call Set_SSO_From_Default
5783         (Freeze_Record_Type): Call Set_SSO_From_Default
5784         * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
5785         * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
5786         * lib-writ.ads: Add OL/OH parameters to P line
5787         * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
5788         * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
5789         New global switch
5790         * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
5791         set by default using pragma Default_Scalar_Storage_Order.
5792         * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
5793         * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
5794         Clear SSO defaults when explicit SSO is inherited.
5795         (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
5796         explicit SSO is specified.
5797         (Inherit_Aspects_At_Freeze_Point):
5798         Clear SSO default when inheriting SSO.
5799         * sem_ch3.adb (Set_Default_SSO): New procedure
5800         (Analyze_Private_Extension_Declaration): Set defualt SSO
5801         (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
5802         (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
5803         ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
5804         (Record_Type_Declaration): ditto
5805         * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
5806         Save Default_SSO
5807         * sem_prag.adb (Analyze_Pragma, case
5808         Default_Scalar_Storage_Order): Set Default_SSO
5810 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5812         * sem_ch6.adb (Valid_Operator_Definition): Verify that
5813         all parameter have mode IN. This check must be done here for
5814         subprogram instantiations that have operator names, because their
5815         analysis does not follow the same path as that for subprogram
5816         declarations.
5818 2014-07-29  Robert Dewar  <dewar@adacore.com>
5820         * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
5821         to make sure that the Etype of a component of the corresponding
5822         record type is present before trying to freeze it.
5823         * sem_ch5.adb: Minor reformatting.
5825 2014-07-29  Robert Dewar  <dewar@adacore.com>
5827         * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
5828         a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
5829         and then use it when a stream operation is used from a library generic
5830         when the restriction (No_Streams) is active.
5832 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5834         * projects.texi: Fix minor typo.
5836 2014-07-29  Yannick Moy  <moy@adacore.com>
5838         * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
5840 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
5842         * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
5843         CodePeer mode.
5845 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5847         * exp_ch7.adb (Find_Last_Init): Add local variable
5848         Deep_Init_Found. Check the statement immediately following the
5849         declaration if [Deep_]Initialization was not found.
5851 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5853         * exp_util.adb (Is_Aliased): It appears that
5854         'reference-d and renamed objects still play some role in Boolean
5855         expression with actions and cannot be finalized immediately.
5857 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5859         * exp_dbug.adb (Qualify_Needed):  For debugging purposes,
5860         Loop names are not part of the full qualification of entity names.
5862 2014-07-29  Robert Dewar  <dewar@adacore.com>
5864         * einfo.adb (Has_Protected): Test base type.
5865         * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
5866         that we always properly check No_Protected_Type_Allocators.
5868 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5870         * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
5871         loop declarations as well.
5872         * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
5873         to an iterator loop, because it may contain local renaming
5874         declarations that require debugging information.
5876 2014-07-29  Robert Dewar  <dewar@adacore.com>
5878         * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
5880 2014-07-29  Robert Dewar  <dewar@adacore.com>
5882         * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
5883         (Set_Static_Real_Or_String_Predicate): New procedure
5884         * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
5885         string predicates (Is_Predicate_Static): Handle static string
5886         predicates.
5887         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
5888         New procedure (Check_Expression_Against_Static_Predicate):
5889         Deal with static string predicates, now fully implemented
5890         (Eval_Relational_Op): Allow string equality/inequality as static
5891         if not comes from source.
5893 2014-07-29  Robert Dewar  <dewar@adacore.com>
5895         * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
5896         einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
5897         sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
5898         handling. Change name of Discrete_Predicate to
5899         Discrete_Static_Predicate, and replace testing of the presence of this
5900         field by testing the flag Has_Static_Expression.
5902 2014-07-29  Robert Dewar  <dewar@adacore.com>
5904         * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
5905         * opt.adb: Handle Uneval_Old.
5906         * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
5907         * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
5908         * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
5909         * sem_attr.adb (Uneval_Old_Msg): New procedure.
5910         * sem_ch8.adb (Push_Scope): Save Uneval_Old.
5911         (Pop_Scope): Restore Uneval_Old.
5912         * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
5913         Implemented.
5914         * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
5915         Add entries for Name_Warn, Name_Allow.
5917 2014-07-29  Robert Dewar  <dewar@adacore.com>
5919         * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
5920         to Is_OK_Static_Range.
5921         * sem_attr.adb (Eval_Attribute): Make sure we properly flag
5922         static attributes (Eval_Attribute, case Size): Handle size of
5923         zero properly (Eval_Attribute, case Value_Size): Handle size of
5924         zero properly.
5925         * sem_ch13.adb: Minor reformatting.
5926         * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
5927         Is_Static_Range to Is_OK_Static_Range.
5928         * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
5929         wrong in several ways (Is_Static_Range): Moved here from spec
5930         (Is_Static_Subtype): Moved here from spec Change some incorrect
5931         Is_Static_Subtype calls to Is_OK_Static_Subtype.
5932         * sem_eval.ads: Add comments to section on
5933         Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
5934         Add clarifying comments (Is_Static_Range): Moved to body
5935         (Is_Statically_Unevaluated): New function.
5936         * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
5937         Is_Static_Range to Is_OK_Static_Range.
5938         * sinfo.ads: Additional commments for Is_Static_Expression noting
5939         that clients should almost always use Is_OK_Static_Expression
5940         instead. Many other changes throughout front end units to obey
5941         this rule.
5942         * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
5943         for enumeration literal.
5944         * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
5945         lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
5946         sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
5947         exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
5948         Replace all occurrences of Is_Static_Expression by
5949         Is_OK_Static_Expression.
5951 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5953         * exp_ch4.adb (Process_Transient_Object): Remove constant
5954         In_Cond_Expr, use its initialization expression in place.
5955         * exp_ch7.adb (Process_Declarations): There is no need to check
5956         that a transient object being hooked is controlled as it would
5957         not have been hooked in the first place.
5958         * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
5959         objects are not considered aliased when the related context is
5960         a Boolean expression_with_actions.
5961         (Requires_Cleanup_Actions): There is no need to check that a transient
5962         object being hooked is controlled as it would not have been hooked in
5963         the first place.
5965 2014-07-29  Robert Dewar  <dewar@adacore.com>
5967         * errout.adb: Minor reformatting.
5969 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5971         * exp_ch3.adb (Default_Initialize_Object): Add new variables
5972         Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
5973         not allowed to ensure the symmetrical generation of symbols.
5974         * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
5975         and E_Decl. Add new variables Decl and Dummy. Generate a dummy
5976         temporary when aborts are not allowed to ensure symmertrical
5977         generation of symbols.
5978         * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
5979         Dummy. Generate a dummy temporary when aborts are not allowed
5980         to ensure symmertrical generation of symbols.
5982 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5984         * exp_dbug.adb (Debug_Renaming_Declaration): For an object
5985         renaming, indicate that the renamed entity itself needs debug
5986         information. This is necessary if that entity is a temporary,
5987         e.g. part of the expansion of an explicit dereference in an
5988         iterator.
5990 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5992         * errout.adb (Set_Error_Posted): When propagating flag to
5993         an enclosing named association, also propagate to the parent
5994         of that node, so that named and positional associations are
5995         treated consistently.
5997 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5999         * sem_attr.adb (Resolve_Attribute, case 'Update):  Set
6000         Do_Range_Check properly on array component expressions that
6001         have a scalar type. In GNATprove mode, only checks on scalar
6002         components must be marked by the front-end.
6004 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6006         * sem_res.adb (Resolve_Type_Conversion): If the type of the
6007         expression is a limited view, use the non-limited view when
6008         available.
6010 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6012         * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
6013         case statement as coming from a conditional expression.
6014         (Expand_N_If_Expression): Mark the generated if statement as
6015         coming from a conditional expression.
6016         * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
6017         objects found in case statement alternatives when the case
6018         statement is actually a case expression.
6019         (Expand_N_If_Statement):
6020         Do not process controlled objects found in an if statement when
6021         the if statement is actually an if expression.
6022         * sinfo.adb (From_Conditional_Expression): New routine.
6023         (Set_From_Conditional_Expression): New routine.
6024         * sinfo.ads Add new semantic flag From_Conditional_Expression and
6025         update related nodes.
6026         (From_Conditional_Expression): New routine along with pragma Inline.
6027         (Set_From_Conditional_Expression): New routine along with pragma Inline.
6029 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
6031         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
6032         formal parameter Obj_Id and update the comment on usage. Renamed
6033         Obj_Typ to Func_Typ and update all occurrences.
6034         (Find_Last_Init): Remove formal parameter Decl and update the comment
6035         on usage.
6036         Remove local constants Obj_Id and Obj_Typ. Remove local variables
6037         Init_Typ and Is_Conc. Remove the extraction of the initialization type.
6038         (Find_Last_Init_In_Block): Remove formal parameter
6039         Init_Typ and update the comment on usage.
6040         (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
6041         on usage. Check whether the procedure call is an initialization
6042         procedure of either the object type or the initialization type.
6043         (Is_Init_Proc_Of): New routine.
6044         (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
6045         routine. Add new variable Init_Typ. Add circuitry to extract the object
6046         type as well as the initialization type.
6048 2014-07-29  Robert Dewar  <dewar@adacore.com>
6050         * sem_case.adb: Minor reformatting.
6051         * sem_aux.ads: Minor reformatting.
6053 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
6055         * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
6056         pointer on these fields, even though they are semantic, because
6057         subsequent analysis and expansion of action nades may require
6058         exploring the tree, for example to locate a node to be wrapped
6059         when a function with controlled result is called.
6061 2014-07-29  Claire Dross  <dross@adacore.com>
6063         * sem_aux.adb (Get_Binary_Nkind): Use case on
6064         Name_Id instead of an intermediate string.
6065         (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
6066         string.
6068 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
6070         * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
6071         about processing sources with preprocessor directives.
6073 2014-07-24  Martin Liska  <mliska@suse.cz>
6075         * gcc-interface/trans.c (finalize_nrv): Adjust function call.
6076         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
6077         (gnat_write_global_declarations): Likewise.
6079 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
6081         * gnat_rm.texi: Clean up for makeinfo 5.2.
6083 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
6085         * gnat_rm.texi (Machine Code Insertions): Clean up.
6087 2014-07-18  Robert Dewar  <dewar@adacore.com>
6089         * exp_ch7.adb: Minor reformatting.
6091 2014-07-18  Claire Dross  <dross@adacore.com>
6093         * sem_aux.ads (Get_Binary_Nkind): New function that returns
6094         the Node_Kind value of an entity defining a binary operator.
6095         (Get_Unary_Nkind): New function that returns the Node_Kind value
6096         of an entity defining a unary operator.
6098 2014-07-18  Pascal Obry  <obry@adacore.com>
6100         * sysdep.c: comment update.
6101         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
6102         platforms where it is known to be supported.
6104 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6106         * sem_dist.adb (Process_Remote_AST_Declaration): Need
6107         to set Fat_Type's Ekind in order to be able to use its
6108         Corresponding_Remote_Type attribute.
6110 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6112         * einfo.adb Last_Aggregate_Assignment is now Node 30.
6113         (Last_Aggregate_Assignment): Include
6114         constants in the assertion. Update the underlying node.
6115         (Set_Last_Aggregate_Assignment): Include constants in the
6116         assertion. Update the underlying node.  (Write_Field11_Name):
6117         Remove the entry for Last_Aggregate_Assignment.
6118         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
6119         * einfo.ads Update the node designation and usage of attribute
6120         Last_Aggregate_Assignment.
6121         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
6122         assignment statement used to initialize a controlled object.
6123         (Late_Expansion): Store the last assignment statement used to
6124         initialize a controlled record or an array of controlled objects.
6125         * exp_ch3.adb (Expand_N_Object_Declaration): Default
6126         initialization of objects is now performed in a separate routine.
6127         (Default_Initialize_Object): New routine.
6128         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
6129         Obj_Id. Update the comment on usage.
6130         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
6131         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
6132         (Is_Init_Call): Add formal parameter Init_Typ. Update the
6133         comment on usage.  Account for the type init proc when trying
6134         to determine whether a statement is an initialization call.
6135         (Make_Adjust_Call): Rename formal parameter For_Parent to
6136         Skip_Self. Update all occurrences of For_Parent. Account for
6137         non-tagged types. Update the call to Make_Call.
6138         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
6139         comment on usage. Update all occurrences of For_Parent.
6140         (Make_Final_Call): Rename formal parameter For_Parent to
6141         Skip_Self. Update all occurrences of For_Parent. Account
6142         for non-tagged types. Update the call to Make_Call.
6143         (Process_Object_Declaration): Most variables and constants are
6144         now local to the routine.
6145         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
6146         For_Parent to Skip_Self. Update the comment on usage.
6147         (Make_Final_Call): Rename formal parameter For_Parent to
6148         Skip_Self. Update the comment on usage.
6150 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6152         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
6153         can be a procedure that is implemented by entry, and have a
6154         formal that is a synchronized interface.  It does not have to
6155         be declared as a protected operation.
6157 2014-07-18  Robert Dewar  <dewar@adacore.com>
6159         * gnat_rm.texi: Remove mention of obsolete attributes
6160         Max[_Interrupt]_Priority, which have never been implemented
6161         (or at the very least were removed long ago if they ever were
6162         implemented.  Add documentation of Max[_Interrupt]_Priority
6163         constants in package System.
6164         * ttypes.ads: Document actual handling of package System,
6165         rather than a historical fantasy version.  Remove mention of
6166         non-existent attributes Max[_Interrupt]_Priority.
6168 2014-07-18  Pascal Obry  <obry@adacore.com>
6170         * a-witeio.adb (Put): No 16-bit character output when text
6171         translation is disabled.
6172         * i-cstrea.ads: Code clean up.
6174 2014-07-18  Robert Dewar  <dewar@adacore.com>
6176         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
6177         static attributes.
6179 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
6181         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
6183 2014-07-18  Pascal Obry  <obry@adacore.com>
6185         * adaint.c: Do not include wchar.h on VxWorks.
6186         * mingw32.h: Remove obsolete definition.
6188 2014-07-18  Pascal Obry  <obry@adacore.com>
6190         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
6191         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
6192         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
6193         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
6195 2014-07-18  Pascal Obry  <obry@adacore.com>
6197         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
6198         * a-ztexio.adb: Likewise.
6199         * a-witeio.adb: Likewise.
6200         (Open): Pass file's translation mode to set_text_mode.
6201         * s-ficobl.ads (Content_Encoding): New type.
6202         (Text_Content_Encoding): New subtype.
6203         (AFCB): Rename Is_Text_File to Text_Encoding.
6204         * s-fileio.adb (Open): Handles new text_translation
6205         values. Remove Is_Text_File which is equivalent to Text_Encoding
6206         in Text_Content_Encoding.
6207         * adaint.h (__gnat_set_mode): New routine.
6208         * sysdep.c (__gnat_set_wide_text_mode): Removed.
6209         (__gnat_set_mode): New routine.
6211 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
6213         * gcc-interface/decl.c, gcc-interface/trans.c,
6214         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
6215         Is_Packed_Array_Impl_Type.
6217 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6219         * sem_util.adb: Minor typo correction.
6221 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
6223         * gnat_rm.texi: Complete previous change.
6225 2014-07-18  Pascal Obry  <obry@adacore.com>
6227         * s-fileio.adb: Minor style fix.
6229 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6231         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
6232         specification of stream attributes for subtypes that are not
6233         first subtypes, to prevent malformed rep_item chains in the case
6234         of such illegal specifications for discriminated private subtypes.
6235         (Check_Overloaded_Name): Verify that the name is an entity name
6236         before other checks.
6238 2014-07-18  Pascal Obry  <obry@adacore.com>
6240         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
6242 2014-07-18  Robert Dewar  <dewar@adacore.com>
6244         * sem_prag.adb, sem_attr.adb,
6245         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
6247 2014-07-18  Pascal Obry  <obry@adacore.com>
6249         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
6250         * initialize.c (__gnat_wide_text_translation_required): Defined here.
6252 2014-07-18  Pascal Obry  <obry@adacore.com>
6254         * adaint.c (__gnat_fputwc): New routine.
6255         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
6257 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6259         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
6260         (Set_Stores_Attribute_Old_Prefix): New routine.
6261         (Stores_Attribute_Old_Prefix): New routine.
6262         (Write_Entity_Flags):
6263         Output flag Stores_Attribute_Old_Prefix.
6264         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
6265         comment on usage.
6266         (Set_Stores_Attribute_Old_Prefix): New routine
6267         along with pragma Inline.
6268         (Stores_Attribute_Old_Prefix): New
6269         routine along with pragma Inline.
6270         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
6271         constant which captures the result of attribute 'Old's prefix.
6272         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
6273         relocated expression which acted as a prefix of attribute 'Old.
6275 2014-07-18  Bob Duff  <duff@adacore.com>
6277         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
6278         null before dispatching to Deallocate_Subpool.
6279         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
6280         parameter of Default_Subpool_For_Pool to 'in out'.
6281         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
6282         a message to the raise.
6283         * sem_util.adb: Minor reformatting.
6285 2014-07-18  Robert Dewar  <dewar@adacore.com>
6287         * sem_util.adb (Check_Expression_Against_Static_Predicate):
6288         Mark expression as non-static if it fails static predicate check,
6289         and issue additional warning.
6291 2014-07-18  Pascal Obry  <obry@adacore.com>
6293         * a-witeio.adb (Put): Control translation based on
6294         wide_text_translation_required.
6295         * adaint.c (CurrentCCSEncoding): New variable.
6296         * initialize.c (__gnat_initialize): On Windows initialize
6297         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
6298         environment variable.
6299         * mingw32.h (CurrentCCSEncoding): New external.
6300         (__gnat_wide_text_translation_required): Likewise.
6301         * sysdep.c (wide_text_translation_required): New variable.
6302         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
6304 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6306         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
6307         variable Refined_States.  Add global variable Matched_Items.
6308         (Check_Dependency_Clause): Account for dependency
6309         clauses utilizing states with visible null refinements.
6310         (Is_Null_Refined_State): New routine.
6311         (Match_Items): Record each successfully matched item of pragma Depends.
6312         (Record_Item): New routine.
6314 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6316         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
6317         Do_Range_Check flag on a dynamic index expression used in a
6318         component association in the argument of Update.
6320 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6322         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
6324 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6326         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
6327         of enclosing blocks, loops and the enclosing function using a
6328         parent-based traversal.
6329         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
6330         stack reclamation if the iterator loop contains a return statement
6331         that uses the stack.
6332         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
6333         patch up the scope stack as the secondary stack management now
6334         takes into account the enclosing function of the iterator loop.
6336 2014-07-18  Robert Dewar  <dewar@adacore.com>
6338         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
6340 2014-07-18  Robert Dewar  <dewar@adacore.com>
6342         * einfo.adb (Has_Static_Predicate): New function.
6343         (Set_Has_Static_Predicate): New procedure.
6344         * einfo.ads (Has_Static_Predicate): New flag.
6345         * sem_ch13.adb (Is_Predicate_Static): New function
6346         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
6347         (Add_Call): Minor change in Sloc of generated expression
6348         (Add_Predicates): Remove setting of Static_Pred, no longer used.
6349         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
6350         replace by use of the entity flag Has_Static_Predicate_Aspect.
6351         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
6352         and issue warning that predicate is not checked for now.
6353         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
6354         spec.
6355         * sem_util.adb (Check_Expression_Against_Static_Predicate):
6356         Carry out check for any case where there is a static predicate,
6357         and output appropriate message.
6358         * sinfo.ads: Minor comment corrections.
6360 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6362         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
6363         from an untagged private type whose full view is tagged, the type
6364         is marked tagged for layout reasons, but it has no dispatch table,
6365         so Set_All_DT_Position must not be called.
6366         * exp_ch13.adb: If the freeze node is for a type internal to a
6367         record declaration, as is the case for a class-wide subtype
6368         of a parent component, the relevant scope is the scope of the
6369         enclosing record.
6371 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6373         * g-memdum.adb, g-memdum.ads: Code clean ups.
6375 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6377         * sem_prag.adb (Check_Dependency_Clause):
6378         Update the comment on usage. Reimplement the mechanism which
6379         attempts to match a single clause of Depends against one or
6380         more clauses of Refined_Depends.
6381         (Input_Match): Removed.
6382         (Inputs_Match): Removed.
6383         (Is_Self_Referential): Removed.
6384         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
6385         (Normalize_Outputs): Rename variable Split to New_Claue and update
6386         all its occurrences.
6387         (Report_Extra_Clauses): Update the comment on usage.
6388         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
6390 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6392         * i-cstrea.ads: Minor reformatting.
6394 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6396         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
6397         secondary stack-related flags to the generated block.
6398         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
6399         once the loop is relocated in a block.
6401 2014-07-18  Robert Dewar  <dewar@adacore.com>
6403         * repinfo.ads: Add documentation on handling of back annotation
6404         for dynamic case.
6406 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6408         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
6409         of full type declaration, denotes previous declaration for
6410         incomplete view of the type.
6411         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
6412         of declaration if one is present.
6413         (Replace_Type): When constructing the signature of an inherited
6414         operation, handle properly the case where the operation has a
6415         formal whose type is an incomplete view.
6416         * sem_util.adb (Collect_Primitive_Operations): Handle properly
6417         the case of an operation declared after an incomplete declaration
6418         for a type T and before the full declaration of T.
6420 2014-07-18  Pascal Obry  <obry@adacore.com>
6422         * i-cstrea.ads: Add documentation for set_wide_text_mode.
6424 2014-07-18  Robert Dewar  <dewar@adacore.com>
6426         * a-witeio.adb: Minor code reorganization.
6427         * i-cstrea.ads: Add comment.
6429 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6431         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
6432         clarifications.
6434 2014-07-18  Robert Dewar  <dewar@adacore.com>
6436         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
6438 2014-07-18  Pascal Obry  <obry@adacore.com>
6440         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
6441         * a-witeio.adb (Put): On platforms where there is translation
6442         done by the OS output the raw text.
6443         (New_Line): Use Put above to properly handle the LM wide characters.
6445 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6447         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
6448         to Absolute_Address.
6450 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
6452         * opt.ads (Suppress_Back_Annotation): Remove as unused.
6453         * fe.h (Back_Annotate_Rep_Info): Likewise.
6454         (Global_Discard_Names): Likewise.
6456 2014-07-18  Robert Dewar  <dewar@adacore.com>
6458         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
6459         parenthesized.
6461 2014-07-18  Vincent Celier  <celier@adacore.com>
6463         * s-osinte-vms.ads: Fix style errors.
6465 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6467         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
6468         NAME_MAX and PATH_MAX.
6470 2014-07-18  Bob Duff  <duff@adacore.com>
6472         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
6473         Build_Record_Or_Elementary_Output_Procedure): For Input and
6474         Output attributes, do not read/write the discriminants if they
6475         have default values; that will be done by Read/Write.
6477 2014-07-18  Robert Dewar  <dewar@adacore.com>
6479         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
6480         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
6481         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
6482         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
6483         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
6485 2014-07-18  Robert Dewar  <dewar@adacore.com>
6487         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
6489 2014-07-18  Vincent Celier  <celier@adacore.com>
6491         * lib-writ.ads: Update documentation about the D lines.
6493 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6495         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
6496         as a parameter, rather than its Chars field, in order to locate
6497         freeze node of type. If the predicate or invariant has references
6498         to types other than the one to which the contract applies, these
6499         types must be frozen, and the corresponding predicate functions
6500         created, before that freeze node.
6502 2014-07-18  Robert Dewar  <dewar@adacore.com>
6504         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
6505         * par_sco.adb: Minor reformatting.
6507 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
6509         * exp_ch4.adb (Real_Range_Check): Turn off
6510         the Do_Range_Check flag on the conversion's current Expression
6511         argument rather than on the originally captured Operand node,
6512         as Expression may reflect a rewriting (as in conversions to a
6513         fixed-point type).
6515 2014-07-18  Vincent Celier  <celier@adacore.com>
6517         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
6518         is not a subunit.
6519         * ali.ads (Sdep_Record): New component Unit_Name.
6520         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
6521         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
6522         dependent unit is in a project and the source file name is not
6523         one of its sources.
6525 2014-07-18  Bob Duff  <duff@adacore.com>
6527         * s-addima.ads: Minor: add comment.
6529 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6531         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
6532         of nesting rules for composites with different SSOs.
6534 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6536         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
6537         a proper logical operator.
6538         (Has_Decision): An If_Expression indicates the presence of a decision
6539         although it is not a logical operator.
6541 2014-07-18  Robert Dewar  <dewar@adacore.com>
6543         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
6544         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
6546 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
6548         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
6549         on the null statement.
6551 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6553         * adaint.c: Minor comment rewording.
6554         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
6555         use of errno in this file is thread safe.
6557 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
6559         * gnat_ugn.texi: Doc clarification.
6560         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
6561         * sem_ch13.ads: Minor comment update.
6563 2014-07-18  Robert Dewar  <dewar@adacore.com>
6565         * repinfo.ads: Minor comment fix.
6567 2014-07-18  Robert Dewar  <dewar@adacore.com>
6569         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
6570         * sem_prag.adb: Add dummy implementation of
6571         Default_Scalar_Storage_Order.
6572         * snames.ads-tmpl: Add dummy entry for
6573         Default_Scalar_Storage_Order pragma.
6575 2014-07-18  Robert Dewar  <dewar@adacore.com>
6577         * opt.adb (Tree_Read): Read Address_Is_Private,
6578         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
6579         (Tree_Write): Corresponding writes
6580         * opt.ads: Minor comment reformatting and fixes.
6581         * tree_io.ads: Increment ASIS_Version_Number.
6583 2014-07-18  Robert Dewar  <dewar@adacore.com>
6585         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
6586         * types.h: Fix typo.
6588 2014-07-18  Robert Dewar  <dewar@adacore.com>
6590         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
6591         functional change).
6592         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
6593         ASIS trees.
6594         * sem_ch13.adb (Kill_Rep_Clause): New procedure
6595         (Analyze_Attribute_Definition_Clause): Use
6596         Kill_Rep_Clause. This is just a cleanup, no functional effect.
6597         (Analyze_Enumeration_Representation_Clause):
6598         Use Kill_Rep_Clause. This means that enum rep
6599         clauses are now properly removed from -gnatct trees.
6600         (Analyze_Record_Representation_Clause): Same change.
6601         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
6603 2014-07-18  Pascal Obry  <obry@adacore.com>
6605         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
6606         OS_Time from time parts.
6607         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
6609 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6611         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
6612         indexing over containers that are derived types: check whether
6613         signature of found operation has the correct first parameter
6614         before retrieving directly a primitive operation.
6616 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6618         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
6619         Do_Range_Check flag on dynamic bounds of a range used in a
6620         component association in the argument of Update.
6622 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6624         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
6625         accesses to errno(3) to be thread safe.
6627 2014-07-18  Vincent Celier  <celier@adacore.com>
6629         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
6630         limited imported project that is an extending project, return
6631         a project being extended if it has the expected name.
6633 2014-07-18  Pascal Obry  <obry@adacore.com>
6635         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
6636         routine to set the last modification time stamp for the given file.
6637         * gnatchop.adb (File_Time_Stamp): Removed.
6638         (Write_Unit): Use
6639         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
6641 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6643         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
6644         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
6645         Moved here, so it can be shared with the resolution of 'Update,
6646         whose argument shares some features with aggregates.
6647         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
6648         Aggregate_Constraint_Checks with the expression of each
6649         association, so that the Do_Range_Check flag is set when needed.
6651 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6653         * sem_ch4.adb (Try_Container_Indexing):  If the container
6654         type is a derived type, the value of the inherited  aspect is
6655         the Reference operation declared for the parent type. However,
6656         Reference is also a primitive operation of the new type, and
6657         the inherited operation has a different signature. We retrieve
6658         the right one from the list of primitive operations of the
6659         derived type.
6661 2014-07-18  Vincent Celier  <celier@adacore.com>
6663         * debug.adb: Update comment.
6665 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6667         * exp_util.adb (Needs_Finalization): There is no reason why a
6668         C type should not benefit from finalization actions.
6670 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6672         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
6673         (FILENAME_MAX): Remove unneeded definition.
6675 2014-07-18  Robert Dewar  <dewar@adacore.com>
6677         * exp_attr.adb, debug.adb: Update comments.
6679 2014-07-18  Vincent Celier  <celier@adacore.com>
6681         * par-ch4.adb (Simple_Expression): Add missing style check
6682         for binary adding operators.
6683         (Term): Add missing style check for multiplying operators.
6685 2014-07-18  Robert Dewar  <dewar@adacore.com>
6687         * impunit.adb: Minor comment correction.
6688         * widechar.adb, s-wchcon.ads: Minor comment corrections.
6690 2014-07-18  Robert Dewar  <dewar@adacore.com>
6692         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
6693         for Build_Static_Predicate (Build_Predicate_Functions):
6694         Don't try to build discrete predicate for real type.
6695         (Build_Predicate_Functions): Report attempt to use
6696         Static_Predicate function on real type as unimplemented.
6697         * sem_util.adb (Check_Expression_Against_Static_Predicate):
6698         Add guard to prevent blow up on predicate for real type.
6700 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6702         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
6703         properly static predicate on enumeration types and modular types
6704         (not subtypes).
6706 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
6708         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
6709         the corresponding source file index.
6710         * get_scos.ads (Get_SCOs): Add a default value for it.
6711         * par_sco.adb (SCO_Record): Fill the corresponding value.
6712         * scos.h: New.
6714 2014-07-18  Vincent Celier  <celier@adacore.com>
6716         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
6717         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
6718         reformatting.
6719         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
6721 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6723         * g-sercom.ads (Set): document possible data loss.
6725 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6727         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
6728         Output, Read, Write): If the restriction No_Streams is active,
6729         replace each occurrence of a stream attribute by an explicit
6730         Raise statement.
6732 2014-07-18  Robert Dewar  <dewar@adacore.com>
6734         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
6735         reformatting.
6737 2014-07-18  Robert Dewar  <dewar@adacore.com>
6739         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
6740         function.
6741         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
6742         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
6743         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
6744         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
6746 2014-07-18  Robert Dewar  <dewar@adacore.com>
6748         * bcheck.adb (Check_Consistent_Restrictions):
6749         Remove obsolete code checking for violation of
6750         No_Standard_Allocators_After_Elaboration (main program)
6751         * bindgen.adb (Gen_Adainit): Handle
6752         No_Standard_Allocators_After_Elaboration
6753         (Gen_Output_File_Ada): ditto.
6754         * exp_ch4.adb (Expand_N_Allocator): Handle
6755         No_Standard_Allocators_After_Elaboration.
6756         * Makefile.rtl: Add entry for s-elaall
6757         * rtsfind.ads: Add entry for Check_Standard_Allocator.
6758         * s-elaall.ads, s-elaall.adb: New files.
6759         * sem_ch4.adb (Analyze_Allocator): Handle
6760         No_Standard_Allocators_After_Elaboration.
6762 2014-07-18  Robert Dewar  <dewar@adacore.com>
6764         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
6765         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
6766         Remove AB parameter from ali files and all uses.
6767         Remove Allocator_In_Body and all uses.
6769 2014-07-18  Robert Dewar  <dewar@adacore.com>
6771         * g-expect-vms.adb: Add comment.
6773 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6775         * par_sco.adb (Is_Logical_Operation): return True for
6776         N_If_Expression.
6778 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6780         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
6781         analysis and resolution of each choice in the associations within
6782         the argument of Update, because they may be variable names.
6784 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6786         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
6787         actions before the generated if statement.
6789 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6791         * gnat_ugn.texi Enhance the documentation of
6792         switches -gnateA and -gnateV.
6794 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6796         * sem_util.adb (Build_Default_Subtype): Add missing condition
6797         so that code matches description: use the full view of the base
6798         only if the base is private and the subtype is not.
6800 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
6802         * exp_disp.adb: Minor reformatting.
6803         * exp_disp.adb: Minor code reorganization.
6805 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6807         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
6808         require an explicit SSO attribute definition clause on a composite type
6809         just because one of its components has one.
6811 2014-07-17  Robert Dewar  <dewar@adacore.com>
6813         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
6814         attribute out of existence if the enclosing pragma is ignored.
6815         * sem_util.adb: Minor reformatting.
6817 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6819         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
6820         array aggregate expanded into assignments when it appears as a
6821         local declaration in an inlined body.
6823 2014-07-17  Doug Rupp  <rupp@adacore.com>
6825         * init.c [__ANDROID__]: Modify for ZCX.
6826         * exp_aggr.adb: Minor reformatting
6827         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
6829 2014-07-17  Robert Dewar  <dewar@adacore.com>
6831         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
6832         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
6833         scng.adb: Remove incorrect usage "allow to" and "allows to".
6835 2014-07-17  Robert Dewar  <dewar@adacore.com>
6837         * exp_dist.adb: Minor reformatting.
6839 2014-07-17  Bob Duff  <duff@adacore.com>
6841         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
6843 2014-07-17  Robert Dewar  <dewar@adacore.com>
6845         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
6846         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
6848 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6850         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
6851         non-bit-packed array, propagate Reverse_Storage_Order to the
6852         packed array type.
6854 2014-07-17  Javier Miranda  <miranda@adacore.com>
6856         * exp_disp.adb: Fix comment.
6857         * exp_pakd.adb: Minor reformatting.
6859 2014-07-17  Robert Dewar  <dewar@adacore.com>
6861         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
6862         entity if none exists (Gen_Elab_Calls): Complain if clash with
6863         No_Multiple_Elaboration.
6864         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
6865         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
6866         if not needed.
6867         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
6868         * sem_ch4.adb: Minor comment updates.
6870 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6872         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
6873         of function call for later use when shared passive objects
6874         are involved.
6876 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6878         * par-ch13.adb (Get_Aspect_Specifications):
6879         Catch a case where the argument of SPARK aspect Refined_State
6880         is not properly parenthesized.
6882 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6884         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
6885         the lifetime of a reference to an Ada 2012 container element.
6886         (Is_Element_Reference): New routine.
6888 2014-07-17  Robert Dewar  <dewar@adacore.com>
6890         * ali.ads: Minor comment fix.
6891         * lib-writ.adb: Minor reformatting.
6893 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6895         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
6896         in ASIS mode, load another subunit only if it a subunit of the
6897         current one, not a sibling that has been reached through the
6898         analysis of an ancestor. This allows the construction of the
6899         ASIS tree for the subunit even when sibling subunits have errors.
6901 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6903         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
6904         prevents the analysis of various contracts when the associated
6905         construct is erroneous.
6906         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
6907         SPARK_Pragma of an illegal or a partially decorated construct.
6909 2014-07-17  Robert Dewar  <dewar@adacore.com>
6911         * s-imguns.ads: Minor reformatting.
6913 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6915         * exp_ch7.adb (Build_Finalization_Master): Move all local
6916         variables to the proper code section. When looking for an existing
6917         finalization master, inspect the ultimate ancestor type of the
6918         full view.
6919         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
6921 2014-07-17  Robert Dewar  <dewar@adacore.com>
6923         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
6924         * gnat_rm.texi: Document Entity argument for pragma Annotate and
6925         Annotate aspect.
6926         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
6927         for Annotate aspect.
6928         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
6929         Entity argument at end.
6930         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
6932 2014-07-17  Tristan Gingold  <gingold@adacore.com>
6934         * s-imguns.ads: Fix minor typo.
6936 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6938         * sprint.adb: Minor reformatting.
6940 2014-07-17  Robert Dewar  <dewar@adacore.com>
6942         * sprint.adb (Write_Itype): Print proper header for string
6943         literal subtype.
6945 2014-07-17  Steve Baird  <baird@adacore.com>
6947         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
6949 2014-07-17  Vincent Celier  <celier@adacore.com>
6951         * gnatbind.adb: Change in message "try ... for more information".
6953 2014-07-17  Robert Dewar  <dewar@adacore.com>
6955         * sprint.adb: Code clean up.
6957 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6959         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
6960         the relevant code section. Add new local constant Obj_Id. When
6961         a limited controlled object is initialized by a function call,
6962         the build-in-place object access function call acts as the last
6963         initialization statement.
6964         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
6965         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
6966         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
6968 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6970         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
6971         propagate intrinsic flag to renamed entity, to allow e.g. renaming
6972         of Unchecked_Conversion.
6973         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
6974         if the declaration has errors.
6976 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6978         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
6979         container is busy before checking whether capacity allows for
6980         a further insertion. Insertion in a busy container that is full
6981         raises Program_Error rather than Capacity_Error. Previous to that
6982         patch which exception was raised varied among container types.
6984 2014-07-17  Robert Dewar  <dewar@adacore.com>
6986         * g-comlin.ads, g-comlin.adb: Minor clean up.
6988 2014-07-17  Bob Duff  <duff@adacore.com>
6990         * gnat_ugn.texi: Update gnatpp doc.
6992 2014-07-17  Robert Dewar  <dewar@adacore.com>
6994         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
6995         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
6996         could do this by actually expanding a real generic.
6997         * a-tags.ads: Add comments about performance.
6998         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
6999         Print Etype of defining identifier, rather than the object
7000         definition. More information.
7002 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7004         * exp_dist.adb: Minor documentation clarification.
7006 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7008         * exp_util.adb (Is_Aliased): Revert previous change.
7010 2014-07-17  Vincent Celier  <celier@adacore.com>
7012         * g-comlin.adb (Try_Help): New procedure.
7013         (Getopt): Use new procedure Try_Help.
7014         * g-comlin.ads (Try_Help): New procedure.
7016 2014-07-17  Bob Duff  <duff@adacore.com>
7018         * gnat_ugn.texi: Minor update.
7020 2014-07-17  Robert Dewar  <dewar@adacore.com>
7022         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
7023         * sinfo.ads: Document restriction on aggregates (must expand to
7024         assignments if one or more assignments needs expansion, e.g. for
7025         controlled types).
7026         * sem_ch13.adb: All warning messages regarding bit order should
7027         be info: messages.
7028         * gnat_ugn.texi: Minor correction of missing @ on @code
7030 2014-07-17  Robert Dewar  <dewar@adacore.com>
7032         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
7033         * s-rident.ads (Partition_Boolean_Restrictions): Add
7034         No_Long_Long_Integer.
7035         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
7036         Long_Integer'Size if restriction No_Long_Long_Integer is active.
7037         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
7038         as the implicit base type for a signed integer type declaration
7039         if restriction No_Long_Long_Integer is active.
7040         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
7041         No_Long_Long_Integer.
7043 2014-07-17  Robert Dewar  <dewar@adacore.com>
7045         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
7046         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
7047         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
7048         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
7049         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
7051 2014-07-17  Robert Dewar  <dewar@adacore.com>
7053         * debug.adb: Remove -gnatdQ.
7054         * exp_disp.adb: Remove -gnatdQ.
7055         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
7056         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
7057         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
7058         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
7059         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
7060         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
7062 2014-07-17  Robert Dewar  <dewar@adacore.com>
7064         * back_end.adb: Minor reformatting and comment additions.
7065         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
7066         function.
7067         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
7068         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
7069         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
7070         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
7071         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
7072         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
7074 2014-07-17  Robert Dewar  <dewar@adacore.com>
7076         * gnat_rm.texi: Minor comment updates.
7078 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7080         * sem_util.adb (Make_Explicit_Dereference): If the expression
7081         being dereferenced is a generalized indexing, reset the overloaded
7082         flag on the generalized indexing call, consistent with the
7083         resetting of the flag on the original indexed component.
7085 2014-07-17  Robert Dewar  <dewar@adacore.com>
7087         * gnat_ugn.texi: Document advise not to mix -gnatV? and
7088         optimization.
7090 2014-07-17  Robert Dewar  <dewar@adacore.com>
7092         * checks.adb (Insert_Valid_Check): Don't insist on a name
7093         for the prefix when we make calls to Force_Evaluation and
7094         Duplicate_Subexpr_No_Checks.
7095         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
7096         (Remove_Side_Effects): Handle all volatile references right
7097         (Side_Effect_Free): Volatile reference is never side effect free
7098         * sinfo.ads (N_Attribute_Reference): Add comments explaining
7099         that in the tree, the prefix can be a general expression.
7101 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7103         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
7104         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
7105         * sem_ch7.adb (Analyze_Package_Body_Contract,
7106         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
7108 2014-07-17  Robert Dewar  <dewar@adacore.com>
7110         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
7111         Store_After_Actions_In_Scope.
7113 2014-07-17  Robert Dewar  <dewar@adacore.com>
7115         * sem_aux.ads: Minor comment addition.
7117 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7119         * sem_res.adb (Make_Call_Into_Operator): If the call is already
7120         a rewriting of an operator node, there are no actuals to be
7121         propagated from original node to rewritten node when in ASIS mode.
7123 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7125         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
7126         Analyze_Subprogram_Contract): Add new local variable Mode. Save
7127         and restore the SPARK mode of the related construct in a
7128         stack-like fashion.
7129         * sem_ch7.adb (Analyze_Package_Body_Contract,
7130         Analyze_Package_Contract): Add new local variable Mode. Save and
7131         restore the SPARK mode of the related construct in a stack-like fashion.
7132         * sem_util.adb Remove with and use clause for Opt.
7133         (Restore_SPARK_Mode): New routine.
7134         (Save_SPARK_Mode_And_Set): New routine.
7135         * sem_util.ads Add with and use clause for Opt.
7136         (Restore_SPARK_Mode): New routine.
7137         (Save_SPARK_Mode_And_Set): New routine.
7139 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7141         * exp_util.adb (Is_Aliased): Transient objects
7142         within an expression with actions cannot be considered aliased.
7144 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7146         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
7147         introduce a new list (cleanup actions) for each (transient) scope.
7148         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
7149         N_Block_Statement
7150         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
7151         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
7152         processing for Store_xxx_Actions_In_Scope.
7153         (Build_Cleanup_Statements): Allow for a list of additional
7154         cleanup statements to be passed by the caller.
7155         (Expand_Cleanup_Actions): Take custom cleanup actions associated
7156         with an N_Block_Statement into account.
7157         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
7158         reorganization (refactoring only, no behaviour change).
7159         (Make_Transient_Block): Add assertion to ensure that the current
7160         scope is indeed a block (namely, the entity for the transient
7161         block being constructed syntactically, which has already been
7162         established as a scope).  If cleanup actions are present in the
7163         transient scope, transfer them now to the transient block.
7164         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
7165         called function while it is still present as the name in a call
7166         in the tree. This may not be the case later on if the call is
7167         rewritten into a transient block.
7168         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
7169         inserted after calling a protected operation on a shared passive
7170         protected must be performed in a block finalizer, not just
7171         inserted in the tree, so that they are executed even in case of
7172         a normal (RETURN) or abnormal (exception) transfer of control
7173         outside of the current scope.
7174         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
7175         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
7176         Scope_Stack_Entry reorganization.
7178 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7180         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
7181         call for types that do not have an explicit attribute definition
7182         clause for External_Tag, as their default tag may clash with an
7183         explicit tag defined for some other type.
7185 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
7187         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
7188         controlled function call with multiple actual parameters that
7189         appears in Object.Operation form.
7191 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7193         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
7194         entity flag.
7195         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
7196         External_Tag): No need to set entity flag.
7197         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
7198         Reimplement correctly in terms of Has_Rep_Item.
7200 2014-07-17  Thomas Quinot  <quinot@adacore.com>
7202         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
7203         Start examining the tree at the node passed to
7204         Establish_Transient_Scope (not its parent).
7205         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
7206         The access type for the variable storing the reference to
7207         the call must be declared and frozen prior to establishing a
7208         transient scope.
7209         * exp_ch9.adb: Minor reformatting.
7211 2014-07-17  Pascal Obry  <obry@adacore.com>
7213         * s-os_lib.ads: Minor comment update.
7215 2014-07-17  Tristan Gingold  <gingold@adacore.com>
7217         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
7218         indentation.
7219         * socket.c: Remove #warning to avoid warning.
7220         * expect.c: Indent some preprocessor directives to clarify
7221         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
7222         to remove warnings.
7223         * env.c: Fix indentation.  Port to PikeOS.
7224         * gsocket.h: Port to PikeOS.  Remove #warning.
7225         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
7226         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
7227         of stubbed __gnat_setup_parent_communication.
7228         * adaint.c: Port to PikeOS.  Reindent some preprocessor
7229         directives to clarify nested if.  Fix indentation.  Add missing
7230         ATTRIBUTE_UNUSED.
7232 2014-07-17  Robert Dewar  <dewar@adacore.com>
7234         * sem_attr.adb: Minor reformatting.
7236 2014-07-17  Robert Dewar  <dewar@adacore.com>
7238         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
7240 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
7242         * sem_case.adb (Check_Choice_Set): If the case expression is the
7243         expression in a predicate, do not recheck coverage against itself,
7244         to prevent spurious errors.
7245         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
7246         expression comes from an aspect specification, to prevent spurious
7247         errors when expression is a case expression in a predicate.
7249 2014-07-17  Pascal Obry  <obry@adacore.com>
7251         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
7252         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
7254 2014-07-17  Vincent Celier  <celier@adacore.com>
7256         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
7257         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
7258         the usage for an erroneous invocation of a gnat tool.
7260 2014-07-16  Vincent Celier  <celier@adacore.com>
7262         * gnatls.adb: Get the target parameters only if -nostdinc was
7263         not specified.
7265 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7267         * checks.adb (Insert_Valid_Check): If the expression is a packed
7268         component of a modular type of the right size the data is always
7269         valid. This os particularly useful if the component is part of
7270         a volatile variable.
7272 2014-07-16  Robert Dewar  <dewar@adacore.com>
7274         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
7276 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7278         * exp_ch7.ads: Minor documentation fix.
7280 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7282         * sem_ch3.adb (Find_Type_Name): Diagnose properly
7283         a private extension completion that is an interface definition
7284         with an interface list.
7286 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
7288         * gnatls.adb (Gnatls): Code clean ups.
7290 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7292         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
7293         * sem.adb (Analyze): Handle N_Compound_Statement.
7294         * sprint.adb (Sprint_Node_Actual): Ditto.
7295         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
7296         procedure to handle N_Compound_Statement.
7297         * exp_aggr.adb (Collect_Initialization_Statements):
7298         Use a proper compound statement node, instead of a bogus
7299         expression-with-actions with a NULL statement as its expression,
7300         to wrap collected initialization statements.
7301         * freeze.ads, freeze.adb
7302         (Explode_Initialization_Compound_Statement): New public procedure,
7303         lifted from Freeze_Entity.
7304         (Freeze_Entity): When freezing
7305         an object with captured initialization statements and without
7306         delayed freezing, explode compount statement.
7307         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
7308         case that used to handle bogus EWAs with NULL statement as
7309         the expression.
7310         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
7311         delayed freezing and captured initialization statements, explode
7312         compound statement.
7314 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
7316         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
7318 2014-07-16  Doug Rupp  <rupp@adacore.com>
7320         * s-interr-hwint.adb: Casing error on parameter.
7322 2014-07-16  Pascal Obry  <obry@adacore.com>
7324         * Makefile.rtl: Add g-rewdat.o dependencies in
7325         GNATRTL_NONTASKING_OBJS.
7327 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7329         * sem_case.adb: Code clean up.
7331 2014-07-16  Vincent Celier  <celier@adacore.com>
7333         * make.adb: Do not read gnat.adc when gnatmake is invoked
7334         with -gnatA.
7336 2014-07-16  Pascal Obry  <obry@adacore.com>
7338         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
7339         implementation of GNAT.Rewrite_Data.
7341 2014-07-16  Vincent Celier  <celier@adacore.com>
7343         * gnatls.adb (Normalize): New function.
7344         (Gnatls): Get the target parameters. On targets other than VMS,
7345         normalize the path names in the source search path, the object search
7346         path and the project search path.
7348 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7350         * sem_case.adb: Avoid self-checking of case expressions in
7351         dynamic predicates.
7353 2014-07-16  Robert Dewar  <dewar@adacore.com>
7355         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
7356         discriminants.
7358 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
7360         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
7362 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
7364         * gnat_ugn.texi: Fix typo.
7366 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7368         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
7369         expression if it is the specification of a subtype predicate:
7370         it will be expanded when the return statement is analyzed, or
7371         when a static predicate is transformed into a static expression
7372         for evaluation by the front-end.
7373         * sem_ch13.adb (Get_RList): If the expression for a static
7374         predicate is a case expression, extract the alternatives of the
7375         branches with a True value to create the required statically
7376         evaluable expression.
7378 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7380         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
7381         expression, not the location of the aspect, for all generated
7382         code, so that in particular the call to raise_assert_failure
7383         gets the sloc of the associated condition.
7384         * exp_ch6.adb
7385         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
7386         Set an explicit End_Label on the handled sequence of statements
7387         for the _Postconditions procedure so that the implicit return
7388         statement does not erroneously get associated with code generated
7389         for the last condition in postconditions.
7391 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7393         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
7394         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
7395         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
7396         -gnatw.Z.
7398 2014-07-16  Robert Dewar  <dewar@adacore.com>
7400         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
7401         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
7402         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
7403         not in Access_Kind.
7404         * par-ch4.adb (At_Start_Of_Attribute): New function
7405         (P_Simple_Expression): Better msg for bad attribute prefix.
7406         * scans.ads: Minor reformatting.
7408 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7410         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
7411         static constant, check that in belongs to the corresponding index
7412         subtype, to produce the proer warning when expansion is disabled.
7414 2014-07-16  Robert Dewar  <dewar@adacore.com>
7416         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
7417         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
7418         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
7419         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
7420         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
7421         -gnatw.z/-gnatw.Z
7422         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
7423         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
7424         reformatting.
7426 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7428         * exp_ch7.adb (Process_Declarations): Reinstate the check on
7429         a hook object to ensure that the related transient declaration
7430         is finalizable.
7431         * exp_util.adb (Is_Aliased): Do not consider expresison with
7432         actions as a special context.
7433         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
7434         ensure that the related transient declaration is finalizable.
7436 2014-07-16  Robert Dewar  <dewar@adacore.com>
7438         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
7439         * snames.ads-tmpl: Add Allocation_Check to list of check names.
7440         * types.ads: Add Allocation_Check to list of check names.
7442 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7444         * sem_util.adb (Enter_Name): replace bogus test for presence of
7445         Corresponding_Remote_Type with correct test on Ekind.
7446         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
7447         of calls to Corresponding_ Remote_Type (documentation fix).
7449 2014-07-16  Robert Dewar  <dewar@adacore.com>
7451         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
7452         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
7453         where it applies.
7454         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
7455         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
7457 2014-07-16  Robert Dewar  <dewar@adacore.com>
7459         * gnat_ugn.texi: Document binder switch -Ra.
7460         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
7461         (List_Closure_All).
7462         * opt.ads (List_Closure_All): New switch.
7463         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
7464         List_Closure_All.
7466 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
7468         * gnat_rm.texi: Minor edits, to make case consistent in names
7469         of types and fields.
7471 2014-07-16  Robert Dewar  <dewar@adacore.com>
7473         * gnat_rm.texi: Document erroneous mixing of thin pointers and
7474         unrestricted access
7475         * gnat_ugn.texi: Add note on size of access types about thin
7476         pointers and the use of attribute Unrestricted_Access.
7478 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7480         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
7481         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
7482         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
7483         machinery to detect tampering on bounded vectors.
7485 2014-07-16  Robert Dewar  <dewar@adacore.com>
7487         * gnat_rm.texi: Document that leading/trailing asterisks are
7488         now implied for the pattern match string for pragma Warnings
7489         and Warning_As_Error.
7490         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
7491         (Analyze_Pragma, case Warning_As_Error): Call
7492         Acquire_Warning_Match_String.
7493         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
7495 2014-07-16  Bob Duff  <duff@adacore.com>
7497         * gnat_ugn.texi: Document need for project file
7498         for --incremental switch for gnat2xml.
7500 2014-07-16  Robert Dewar  <dewar@adacore.com>
7502         * gnat_rm.texi: Fix example of non-packable components in packed
7503         records section.
7505 2014-07-16  Robert Dewar  <dewar@adacore.com>
7507         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
7508         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
7509         upper case in exception messages.
7511 2014-07-16  Robert Dewar  <dewar@adacore.com>
7513         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
7514         is renamed Has_Same_Storage.
7515         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
7516         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
7517         descriptions).
7519 2014-07-16  Robert Dewar  <dewar@adacore.com>
7521         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
7522         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
7524 2014-07-16  Robert Dewar  <dewar@adacore.com>
7526         * gnat_ugn.texi: Add note that integrated
7527         preprocessing cannot be applied to configuration pragma files.
7529 2014-07-16  Yannick Moy  <moy@adacore.com>
7531         * sem_attr.adb (Analyze_Attribute/cases Pred
7532         and Succ): Always enable range check on fixed-point types if
7533         not suppressed for the type.
7535 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7537         * sem_util.adb (State_Has_Enabled_Property):
7538         Account for an external property denoted by an others choice.
7540 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7542         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
7543         * exp_ch7.adb (Process_Declarations): There is no need to check
7544         that a transient object being hooked is controlled as it would
7545         not have been hooked in the first place.
7546         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
7547         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
7548         (Is_Aliased): A renaming of a transient controlled object is
7549         not considered aliasing when it occurs within an expression
7550         with actions.
7551         (Requires_Cleanup_Actions): There is no need to
7552         check that a transient object being hooked is controlled as it
7553         would not have been hooked in the first place.
7554         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
7556 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
7558         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
7559         the outer level of routine Analyze_Aspect_Specifications. Ensure
7560         that the corresponding pragmas of aspects Initial_Condition and
7561         Initializes are inserted after pragma SPARK_Mode.
7563 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7565         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
7566         properly a choice list with more than one choice, where each
7567         is an aggregate denoting a sequence of array indices for a
7568         multidimentional array. For SPARK use.
7570 2014-07-16  Vadim Godunko  <godunko@adacore.com>
7572         * a-coinho-shared.adb (Adjust): Create
7573         copy of internal shared object and element when source container
7574         is locked.
7575         (Copy): Likewise.
7576         (Query_Element): Likewise.
7577         (Update_Element): Likewise.
7578         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
7579         to get reference for empty holder.
7580         (Reference): Likewise.
7582 2014-07-16  Thomas Quinot  <quinot@adacore.com>
7584         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
7585         from Process_Transient_Oject.
7586         * exp_ch4.ads: Ditto.
7587         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
7588         declaration as an action on the topmost enclosing expression,
7589         not on a possibly conditional subexpreession.
7591 2014-07-16  Vadim Godunko  <godunko@adacore.com>
7593         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
7594         Fix parameter mode of Update_Element.
7596 2014-07-16  Robert Dewar  <dewar@adacore.com>
7598         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
7599         reformatting.
7601 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7603         * a-cohase.ads: Type Iterator must be controlled, so that the
7604         tampering bit is properly set through an iteration.
7605         * a-cohase.adb: Add Finalize operation for type Iterator.
7607 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7609         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
7610         tampering checks.
7612 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
7614         * a-coinho-shared.adb: Fix spurious accessibility check.
7616 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
7618         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
7620 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7622         PR ada/61505
7623         * gnat_rm.texi: Fix errors with makeinfo 5.1.
7625 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
7627         PR ada/61505
7628         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
7630 2014-06-13  Yannick Moy  <moy@adacore.com>
7632         * exp_attr.adb: Fix typo in comment.
7633         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
7634         checking in GNATprove_Mode.
7636 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7638         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
7640 2014-06-13  Robert Dewar  <dewar@adacore.com>
7642         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
7643         reformatting.
7645 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7647         * sem_prag.adb (Analyze_Pragma): Add local
7648         variable Missing_Parentheses. Emit an error when a state
7649         declaration with options appears without parentheses. Add a
7650         guard to prevent a bogus error when a state declaration may be
7651         interpreted as an option if a previous declaration with options
7652         was not parenthesized.
7654 2014-06-13  Robert Dewar  <dewar@adacore.com>
7656         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
7657         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
7658         * checks.ads (Alignment_Warnings_Record): New type.
7659         (Alignment_Warnings): New table
7660         (Validate_Alignment_Check_Warnings): New procedure.
7661         * errout.adb (Delete_Warning_And_Continuations): New procedure
7662         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
7663         Warnings_Treated_As_Errors (Finalize): Minor reformatting
7664         * errout.ads (Warning_Msg): New variable
7665         (Delete_Warning_And_Continuations): New procedure
7666         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
7667         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
7669 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7671         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
7673 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7675         * errout.adb (SPARK_Msg_N): New routine.
7676         (SPARK_Msg_NE): New routine.
7677         * errout.ads Add a section on SPARK-related error routines.
7678         (SPARK_Msg_N): New routine.
7679         (SPARK_Msg_NE): New routine.
7680         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
7681         pragma Abstract_State is always inserted after SPARK_Mode.
7682         (Insert_After_SPARK_Mode): New routine.
7683         * sem_prag.adb (Analyze_Abstract_State,
7684         Analyze_Constituent, Analyze_External_Property,
7685         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
7686         Analyze_Global_List, Analyze_Initialization_Item,
7687         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
7688         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
7689         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
7690         Analyze_Refined_Global_In_Decl_Part,
7691         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
7692         Check_Aspect_Specification_Order, Check_Constituent_Usage,
7693         Check_Declaration_Order, Check_Dependency_Clause,
7694         Check_Duplicate_Mode, Check_Duplicate_Option,
7695         Check_Duplicate_Property, Check_External_Properties,
7696         Check_External_Property, Check_Function_Return,
7697         Check_Matching_Constituent, Check_Matching_State,
7698         Check_Mode_Restriction_In_Enclosing_Context,
7699         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
7700         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
7701         Has_Extra_Parentheses, Inconsistent_Mode_Error,
7702         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
7703         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
7704         Report_Unrefined_States, Report_Unused_Constituents,
7705         Report_Unused_States, Role_Error, Usage_Error):
7706         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
7707         to report semantic errors only when SPARK_Mode is on.
7708         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
7709         pragma Depends explicitly, this is now done by the analysis.
7710         (Analyze_Global_In_Decl_List): Do not check the syntax of
7711         pragma Global explicitly, this is now done by the analysis.
7712         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
7713         pragma Initializes explicitly, this is now done by the analysis.
7714         (Analyze_Part_Of): Do not check the syntax of the encapsulating
7715         state, this is now done by the analysis.
7716         (Analyze_Pragma): Do
7717         not check the syntax of a state declaration, this is now done
7718         by the analysis.
7719         (Analyze_Refined_Depends_In_Decl_Part): Do not
7720         check the syntax of pragma Refined_Depends explicitly, this is now
7721         done by the analysis.
7722         (Analyze_Refined_Global_In_Decl_Part): Do
7723         not check the syntax of pragma Refined_Global explicitly, this is
7724         now done by the analysis.
7725         (Analyze_Refined_State_In_Decl_Part):
7726         Do not check the syntax of pragma Refined_State explicitly, this
7727         is now done by the analysis.
7728         (Check_Dependence_List_Syntax): Removed.
7729         (Check_Global_List_Syntax): Removed.
7730         (Check_Initialization_List_Syntax): Removed.
7731         (Check_Item_Syntax): Removed.
7732         (Check_Missing_Part_Of): Do not consider items from an instance.
7733         (Check_Refinement_List_Syntax): Removed.
7734         (Check_State_Declaration_Syntax): Removed.
7735         (Collect_Global_List): Do not raise Program_Error when the input is
7736         malformed.
7737         (Process_Global_List): Do not raise Program_Error when the input
7738         is malformed.
7739         * sem_ch13.adb: Minor reformatting.
7741 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7743         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
7744         that is an interface definition with an interface list.
7745         (Process_Full_View): Move error message on missmatched interfaces
7746         between views to the declaration of full view, for clarity.
7747         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
7748         for clarity.
7750 2014-06-13  Robert Dewar  <dewar@adacore.com>
7752         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
7753         reason to Overflow.
7755 2014-06-13  Robert Dewar  <dewar@adacore.com>
7757         * makeutl.adb: Minor reformatting.
7759 2014-06-13  Gail Schenker  <schenker@adacore.com>
7761         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
7762         associated flag (d.z), no longer needed.
7764 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7766         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
7767         Export aspects, do not check whether a corresponding Convention
7768         aspect has been specified. Convention is optional in Ada2012,
7769         and defaults to Convention_Ada.
7771 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
7773         * checks.adb (Apply_Address_Clause_Check): Only issue the new
7774         warning if the propagation warning is issued.
7776 2014-06-13  Thomas Quinot  <quinot@adacore.com>
7778         * exp_ch4.adb: Minor reformatting.
7780 2014-06-13  Robert Dewar  <dewar@adacore.com>
7782         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
7783         Handle float range check case (Expand_N_Attribute_Reference,
7784         case Succ): Handle float range check case.
7785         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
7786         range check case.
7788 2014-06-13  Vincent Celier  <celier@adacore.com>
7790         * makeutl.ads (Compute_Builder_Switches): Change name of
7791         parameter Root_Environment to Env.
7792         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
7793         Env parameter of procedure Get_Or_Create_Configuration_File.
7794         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
7795         of new parameter Env.
7796         * prj-conf.ads (Locate_Runtime): New parameter Env of type
7797         Prj.Tree.Environment.
7799 2014-06-13  Robert Dewar  <dewar@adacore.com>
7801         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
7803 2014-06-13  Robert Dewar  <dewar@adacore.com>
7805         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
7806         reformatting.
7807         * sem_attr.adb: Minor code reformatting and simplification.
7808         * checks.adb: Fix minor typo.
7810 2014-06-13  Emmanuel Briot  <briot@adacore.com>
7812         * g-comlin.adb (Get_Argument): fix expansion
7813         of command line arguments (e.g. "*.adb") when using a custom
7814         parser. The parser was not passed to the recursive call, and
7815         thus we were trying to do the expansion on the default command
7816         line parser.
7818 2014-06-13  Thomas Quinot  <quinot@adacore.com>
7820         * exp_ch9.adb: Minor reformatting.
7822 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7824         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
7825         To determine whether the attribute should be expanded, examine
7826         whether the enclosing postcondition pragma is to be checked,
7827         rather than using the internal flag Assertions_Enabled.
7829 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
7831         * gnat_rm.texi: Minor fixes.
7832         * gnat_ugn.texi: Added a missing "@itemize".
7834 2014-06-13  Robert Dewar  <dewar@adacore.com>
7836         * debug.adb: Remove -gnatd.1 flag documentation.
7837         * layout.adb (Layout_Type): Remove special handling of size
7838         for anonymous access type.
7839         * sem_ch3.adb (Replace_Type): Remove special handling of size
7840         for anonymous access type.
7842 2014-06-13  Robert Dewar  <dewar@adacore.com>
7844         * debug.adb: Document debug flag -gnatd.1.
7845         * layout.adb (Layout_Type): Size change for anonymous access
7846         types under -gnatd.1.
7847         * sem_ch3.adb (Replace_Type): Size change for anonymous access
7848         types under -gnatd.1.
7850 2014-06-13  Robert Dewar  <dewar@adacore.com>
7852         * layout.adb (Layout_Type): Anonymous access types designating
7853         unconstrained arrays are always thin pointers.
7854         * sem_ch3.adb (Replace_Type): Anonymous access types designating
7855         unconstrained arrays are always thin pointers.
7857 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7859         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
7860         to resolve the prefix of an attribute that is an entity name
7861         and may be a parameterless call.  Minor code reorganization.
7863 2014-06-13  Robert Dewar  <dewar@adacore.com>
7865         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
7866         Removed.
7867         * opt.ads (Compiler_Unit): New flag.
7868         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
7869         for null statement sequence (not allowed in compiler unit).
7870         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
7871         parsing.
7872         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
7873         calling sequence.
7874         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
7875         Check_Compiler_Unit.
7876         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
7877         Check_Compiler_Unit (this construct is not allowed in compiler
7878         units).
7879         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
7880         Set Opt.Compiler_Unit.
7882 2014-06-13  Geert Bosch  <bosch@adacore.com>
7884         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
7885         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
7886         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
7888 2014-06-13  Robert Dewar  <dewar@adacore.com>
7890         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
7892 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7894         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
7895         types in SPARK as it is poorly placed and poorly formulated. The
7896         check was flagging ALL volatile entities as illegal in SPARK.
7897         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
7898         types as illegal in SPARK.
7900 2014-06-13  Robert Dewar  <dewar@adacore.com>
7902         * sem_cat.adb: Minor reformatting.
7904 2014-06-13  Yannick Moy  <moy@adacore.com>
7906         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
7908 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
7910         * gnat_rm.texi: Add detail on SPARK_05 restriction.
7912 2014-06-13  Bob Duff  <duff@adacore.com>
7914         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
7915         Add assertions requiring the secondary stack to be initialized.
7916         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
7917         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
7918         secondary stack is initialized before calling Init_Tasking_Soft_Links,
7919         by adding pragmas Elaborate_Body.
7921 2014-06-13  Thomas Quinot  <quinot@adacore.com>
7923         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
7924         kludge disabling new legality check.
7926 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7928         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
7929         volatile types.
7930         (Freeze_Type): Volatile types are now illegal in SPARK.
7932 2014-06-13  Robert Dewar  <dewar@adacore.com>
7934         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
7935         * gnat_rm.texi: Document aspect Thread_Local_Storage.
7937 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7939         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
7940         value is a temporary that renames an aggregate is legal in a
7941         preelaborated unit. Illegalities, if any will be detected in
7942         the aggregate components.
7944 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7946         * einfo.ads: Minor reformatting an comment expansion.
7948 2014-06-13  Robert Dewar  <dewar@adacore.com>
7950         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
7951         Tbuild.
7952         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
7953         Back_End.
7954         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
7955         * sem_warn.adb: Minor reformatting.
7957 2014-06-13  Doug Rupp  <rupp@adacore.com>
7959         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
7960         files with rfm=udf.
7962 2014-06-13  Yannick Moy  <moy@adacore.com>
7964         * sem_warn.adb (Check_Unset_References): Take
7965         case of Refined_Post into account in Within_Postcondition check.
7967 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7969         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
7970         SPARK.
7972 2014-06-13  Yannick Moy  <moy@adacore.com>
7974         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
7975         Aspect_Export): Consider that variables may be set outside the program.
7977 2014-06-13  Robert Dewar  <dewar@adacore.com>
7979         * back_end.adb (Make_Id): New function.
7980         (Make_SC): New function.
7981         (Set_RND): New procedure.
7982         * back_end.ads (Make_Id): New function.
7983         (Make_SC): New function.
7984         (Set_RND): New procedure.
7985         * einfo.ads: Minor comment updates.
7986         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
7987         * gnat1drv.adb (Gnat1drv): New calling sequence for
7988         Get_Target_Parameters.
7989         (Gnat1drv): Move Atree.Initialize here from Frontend.
7990         * targparm.adb (Get_Target_Parameters): New calling
7991         sequence (Get_Target_Parameters): Handle pragma Restriction
7992         (No_Dependence,..)
7993         * targparm.ads (Get_Target_Parameters): New calling sequence.
7995 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
7997         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
7998         loop if the pragma does not come from source, so that an implicit
7999         pragma Import only applies to the first declaration, avoiding
8000         possible conflicts with earlier explicit and implicit declarations
8001         due to multiple Provide_Shift_Operators pragmas.
8002         (Set_Imported): Remove previous fix that bypassed pragma duplication
8003         error.
8004         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
8005         of Provide_Shift_Operators.
8007 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
8009         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
8010         string pointer directly to set_decl_section_name.
8012 2014-06-11  Robert Dewar  <dewar@adacore.com>
8014         * sem_ch13.adb: Minor reformatting.
8016 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8018         * sem_prag.adb (Check_Clause_Syntax): Add new
8019         local variable Outputs. Account for the case where multiple
8020         output items appear as an aggregate.
8022 2014-06-11  Robert Dewar  <dewar@adacore.com>
8024         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
8025         with ?j? not ??.
8027 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8029         * einfo.ads: Minor reformatting.
8031 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8033         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
8034         new variable First_Node. Update the position after all insertions have
8035         taken place to First_Node.
8037 2014-06-11  Robert Dewar  <dewar@adacore.com>
8039         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
8040         * layout.adb (Layout_Type): Remove test of -gnatd.1.
8042 2014-06-11  Robert Dewar  <dewar@adacore.com>
8044         * sem_ch13.adb: Minor reformatting.
8046 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8048         * sem_prag.adb (Check_Clause_Syntax): Add new
8049         local variable Outputs. Account for the case where multiple
8050         output items appear as an aggregate.
8052 2014-06-11  Robert Dewar  <dewar@adacore.com>
8054         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
8055         with ?j? not ??.
8057 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8059         * einfo.ads: Minor reformatting.
8061 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8063         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
8064         new variable First_Node. Update the position after all insertions have
8065         taken place to First_Node.
8067 2014-06-11  Robert Dewar  <dewar@adacore.com>
8069         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
8070         * layout.adb (Layout_Type): Remove test of -gnatd.1.
8072 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8074         * freeze.ads: Minor reformatting.
8075         * checks.adb (Determine_Range): Do not attempt to determine
8076         the range of a deferred constant whose full view has not been
8077         seen yet.
8078         * sem_res.adb (Resolve): Remove undesirable guard against
8079         resolving expressions from expression functions.
8081 2014-06-11  Robert Dewar  <dewar@adacore.com>
8083         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
8084         access types.
8085         * layout.adb (Layout_Type): Make anonymous access types for
8086         subprogram formal types and return types always thin. For now
8087         only enabled if -gnatd.1 set.
8089 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8091         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
8092         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
8093         subprogram must be a null procedure.
8095 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8097         * sem_prag.adb (Analyze_Input_Item): Allow formal
8098         parameters to appear as input_items in an initialization_list
8099         of pragma Initializes. Encapsulation now applies to states and
8100         variables only (as it should). Add RM references to key errors.
8101         * sem_prag.adb (Set_Imported): Suppress errors
8102         about preceding Imports when the pragma does not come from source,
8103         which can happen through use of pragma Provide_Shift_Operators.
8105 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8107         * sem_ch3.adb: Minor reformatting.
8108         * einfo.ads (Full_View): Minor comment update.
8110 2014-06-11  Robert Dewar  <dewar@adacore.com>
8112         * einfo.adb (Is_Independent): New flag.
8113         * einfo.ads (Is_Independent): New flag.
8114         (Has_Independent_Components): Clean up and fix comments.
8115         * sem_prag.adb (Fix_Error): Deal with changing argument
8116         [of] to entity [for].
8117         (Analyze_Pragma, case Independent): Set Is_Independent flag
8118         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
8119         in all components of specified record.
8121 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8123         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
8124         Set proper Etype on bounds of dummy type created for analysis
8125         of the generic.
8127 2014-06-11  Robert Dewar  <dewar@adacore.com>
8129         * debug.adb: Minor comment fix (add missing section of dot
8130         numeric flags).
8132 2014-06-11  Robert Dewar  <dewar@adacore.com>
8134         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
8135         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
8136         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
8137         * errout.adb (Output_Messages): Avoid duplicate output for
8138         library level instance.
8139         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
8140         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
8141         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
8142         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
8143         accomodate largest modulus value.
8144         * gnat_ugn.texi: Minor updates.
8146 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8148         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
8149         load body of generic package or its parent, if body is optional
8150         and the unit does not require a body.
8152 2014-06-11  Robert Dewar  <dewar@adacore.com>
8154         * gnat_rm.texi: Document System.Unsigned_Types.
8155         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
8156         * s-unstyp.ads: Update comments (this is now user available unit).
8158 2014-06-11  Robert Dewar  <dewar@adacore.com>
8160         * make.adb, sem_res.adb: Minor reformatting.
8162 2014-06-11  Thomas Quinot  <quinot@adacore.com>
8164         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
8165         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
8166         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
8167         Preelaborate_05 to just Preelaborate in runtime units, and similarly
8168         change Pure_05 to just Pure.
8170 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8172         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
8173         analysis if error has been posted on subprogram body.
8175 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8177         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
8178         rule given in RM 13.1 (8/1) for operational attributes to stream
8179         attributes: the attribute must apply to a first subtype. Fixes
8180         missing errors in ACATS test bdd2004.
8182 2014-06-11  Robert Dewar  <dewar@adacore.com>
8184         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
8185         record type if restriction No_Implicit_Conditionals is active.
8186         (Expand_N_Object_Declaration): Don't allow default initialization
8187         for variant record type if restriction No_Implicit_Condition is active.
8188         (Build_Variant_Record_Equality): Don't build for variant
8189         record type if restriction No_Implicit_Conditionals is active.
8190         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
8191         No_Implicit_Conditionals.
8192         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
8194 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
8196         * i-cstrin.ads: Update comments.
8198 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8200         * sem_res.adb (Resolve_Selected_Component): Handle properly a
8201         selected component whose prefix is overloaded, when none of the
8202         interpretations matches the expected type.
8204 2014-06-11  Bob Duff  <duff@adacore.com>
8206         * make.adb (Wait_For_Available_Slot): Give a more
8207         informative error message; if the ALI file is not found, print
8208         the full path of what it's looking for.
8210 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
8212         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
8213         option to specify the result file encoding.
8215 2014-06-11  Robert Dewar  <dewar@adacore.com>
8217         * errout.ads, sem_ch12.adb: Minor reformatting.
8218         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
8219         * lib-xref.adb: Minor reformatting.
8220         * restrict.adb: Minor code reorganization (put routines in
8221         alpha order).
8223 2014-06-11  Yannick Moy  <moy@adacore.com>
8225         * einfo.ads: Minor typo in comment
8227 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8229         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
8230         formal private types and private type extensions, to indicate
8231         variable in a generic unit whose uninitialized use suggest that
8232         actual type should be fully initialized.
8233         Needs_Initialized_Actual:  removed, functionaity replaced by
8234         the above.
8235         * lib-xref.adb (Generate_Reference): Generate a reference for
8236         variables of a formal type when the unit is not the main unit,
8237         to enable appropriate warnings in an instance.
8238         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
8239         of variable in a generic unit that suggests that actual type
8240         should be full initialized.
8241         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
8242         and do not emot warning, which now only appears in an instance.
8244 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
8246         * gnat_ugn.texi: Fix minor typo.
8248 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
8250         * sem_ch3.adb Add with and use clause for Sem_Ch10.
8251         (Analyze_Declarations): Code reformatting. Analyze the contract
8252         of a subprogram body stub at the end of the declarative region.
8253         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
8254         now a variable. Do not process the body if its contract is not
8255         available. Account for subprogram body stubs when extracting
8256         the corresponding spec.
8257         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
8258         on usage.
8259         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
8260         New routine.
8261         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
8262         Account for subprogram body stubs when extracting the
8263         corresponding spec.
8264         (Analyze_Global_In_Decl_List):
8265         Account for subprogram body stubs when extracting the
8266         corresponding spec.
8267         (Analyze_Refined_Depends_In_Decl_Part):
8268         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
8269         of the related body. Spec_Is now a variable. Account for
8270         subprogram body stubs when extracting the corresponding spec.
8271         (Analyze_Refined_Global_In_Decl_Part): Use
8272         Find_Related_Subprogram_Or_Body to retrieve the declaration
8273         of the related body. Spec_Is now a variable. Account for
8274         subprogram body stubs when extracting the corresponding spec.
8275         (Collect_Subprogram_Inputs_Output): Account for subprogram body
8276         stubs when extracting the corresponding spec.
8278 2014-06-11  Vincent Celier  <celier@adacore.com>
8280         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
8281         -lgnarl or -lgnat.
8283 2014-06-11  Robert Dewar  <dewar@adacore.com>
8285         * debug.adb: Add debug flag -gnatd.q.
8286         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
8287         -gnatd.q set.
8288         * styleg.adb (Check_Xtra_Parens): Message should be a style
8289         message.
8290         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
8291         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
8292         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
8293         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
8295 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
8297         * gnat_rm.texi: Revised chapter on Implementation Defined
8298         Characteristics.
8300 2014-06-11  Geert Bosch  <bosch@adacore.com>
8302         * s-exctab.adb: avoid race conditions in exception registration.
8304 2014-06-11  Robert Dewar  <dewar@adacore.com>
8306         * errout.adb (Warn_Insertion): New function.
8307         (Error_Msg): Use Warn_Insertion and Prescan_Message.
8308         (Error_Msg_Internal): Set Info field of error object.
8309         (Error_Msg_NEL): Use Prescan_Message.
8310         (Set_Msg_Text): Don't store info: at start of message.
8311         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
8312         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
8313         * errout.ads: Document new ?$? and >$> insertion sequences
8314         Document use of "(style)" and "info: "
8315         * erroutc.adb (dmsg): Print several missing fields
8316         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
8317         Deal with new tagging of info messages
8318         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
8319         Add field Info (Prescan_Message): New procedure, this procedure
8320         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
8321         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
8322         sem_elab.adb: Follow new rules for info message (info belongs
8323         only at the start of a message, and only in the first message,
8324         not in any of the continuations).
8325         * gnat_ugn.texi: Document full set of warning tags.
8327 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
8329         * sem_util.adb: Minor typo fix.
8331 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
8333         * sem_warn.adb (Check_References): Do not emit spurious warnings
8334         on uninitialzed variable of a formal private type if variable
8335         is not read.
8337 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
8339         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
8340         set_decl_section_name accessor.
8342 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
8344         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
8345         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
8346         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
8348 2014-05-21  Robert Dewar  <dewar@adacore.com>
8350         * layout.adb: Minor reformatting.
8351         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
8352         dummy procedure ip.
8354 2014-05-21  Robert Dewar  <dewar@adacore.com>
8356         * restrict.ads (Implementation_Restriction): Add entry for
8357         No_Fixed_IO.
8358         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
8359         Ada.[Wide_[Wide_]Text_IO.
8360         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
8361         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
8362         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
8363         Wide_Wide_Value if restriction No_Fixed_IO is set.
8364         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
8366 2014-05-21  Robert Dewar  <dewar@adacore.com>
8368         * gnatcmd.adb: Minor error msg changes (no upper case letter
8369         at start).
8370         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
8371         reformatting.
8373 2014-05-21  Robert Dewar  <dewar@adacore.com>
8375         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
8376         via generic formals.
8377         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
8378         -gnatd.G is set.
8380 2014-05-21  Thomas Quinot  <quinot@adacore.com>
8382         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
8383         more accurately describe that this subprogram needs to come into
8384         play also in cases where no byte swapping is involved, because
8385         it also takes care of some required shifts (left-justification
8386         of values).
8388 2014-05-21  Thomas Quinot  <quinot@adacore.com>
8390         * freeze.adb (Check_Component_Storage_Order): Indicate whether
8391         a Scalar_Storage_Order attribute definition is present for the
8392         component's type.
8393         (Freeze_Record_Type): Suppress junk warnings
8394         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
8395         definitions.
8397 2014-05-21  Robert Dewar  <dewar@adacore.com>
8399         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
8400         to Kill_Elaboration_Checks.
8402 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
8404         * layout.adb (Assoc_Add): Suppress the optimization of the (E
8405         - C1) + C2 case, when the expression type is unsigned and C1 <
8406         C2, to avoid creating a negative literal when folding.
8408 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
8410         * freeze.adb (Freeze_Record_Type): Update the use of
8411         Is_SPARK_Volatile.
8412         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
8413         Is_SPARK_Volatile.
8414         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
8415         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
8416         of Is_SPARK_Volatile.
8417         (Analyze_Loop_Parameter_Specification):
8418         Update the use of Is_SPARK_Volatile.
8419         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
8420         formal parameter when its type is volatile.
8421         * sem_prag.adb (Analyze_Global_Item): Update the use of
8422         Is_SPARK_Volatile.
8423         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
8424         determines whether an entity is a volatile source SPARK object.
8425         * sem_util.adb (Has_Enabled_Property): Accout for external
8426         properties being set on objects other than abstract states
8427         and variables. An example would be a formal parameter.
8428         (Is_SPARK_Volatile): New routine.
8429         (Is_SPARK_Volatile_Object):
8430         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
8431         when checking entities and/or types.
8432         * sem_util.ads (Is_SPARK_Volatile): New routine.
8434 2014-05-21  Robert Dewar  <dewar@adacore.com>
8436         * sem_warn.adb: Minor fix to warning messages (use ?? instead
8437         of ?).
8439 2014-05-21  Vincent Celier  <celier@adacore.com>
8441         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
8442         switch --version and --help.
8444 2014-05-21  Robert Dewar  <dewar@adacore.com>
8446         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
8448 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8450         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
8451         iterator variable when the domain of iteration is a formal
8452         container and this is an element iterator.
8454 2014-05-21  Bob Duff  <duff@adacore.com>
8456         * sem_ch12.adb: Minor reformatting.
8458 2014-05-21  Robert Dewar  <dewar@adacore.com>
8460         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
8462 2014-05-21  Robert Dewar  <dewar@adacore.com>
8464         * sem_elab.adb: Minor reformatting.
8465         * s-taprop.ads: Minor comment fix.
8466         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
8467         Kill_Elaboration_Checks.
8468         * errout.adb, erroutc.adb: Minor reformatting.
8470 2014-05-21  Thomas Quinot  <quinot@adacore.com>
8472         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
8473         component. No byte swapping occurs, but this procedure also takes
8474         care of appropriately justifying the argument.
8476 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
8478         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
8479         New routine.
8480         (Analyze_Subprogram_Body_Helper): Move the
8481         analysis of aspect specifications and the processing of the
8482         subprogram body contract after inlining has taken place.
8483         (Diagnose_Misplaced_Aspect_Specifications): Removed.
8485 2014-05-21  Javier Miranda  <miranda@adacore.com>
8487         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
8489 2014-05-21  Robert Dewar  <dewar@adacore.com>
8491         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
8492         continuations any more.
8494 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8496         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
8497         present in formal_Private_Definitions and on private extension
8498         declarations of a formal derived type. Set when the use of the
8499         formal type in a generic suggests that the actual should be a
8500         fully initialized type.
8501         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
8502         to indicate that an entity of a generic type has default
8503         initialization, and that the corresponing actual type in any
8504         subsequent instantiation should be fully initialized.
8505         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
8506         to emit a warning if the actual for a generic type on which
8507         Needs_Initialized_Actual is set is not a fully initialized type.
8509 2014-05-21  Robert Dewar  <dewar@adacore.com>
8511         * sem_elab.adb, prj-dect.adb: Minor reformatting.
8513 2014-05-21  Robert Dewar  <dewar@adacore.com>
8515         * erroutc.ads: Minor comment addition.
8517 2014-05-21  Robert Dewar  <dewar@adacore.com>
8519         * errout.ads: Add documentation for use of >*> tag.
8520         * restrict.adb: Make sure we use >*> tag for restriction warnings.
8522 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
8524         * debug.adb: Add case of illegal overriding_indicator for a
8525         protected subprogram body to description of -gnatd.E switch.
8526         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
8527         for cases of giving overriding_indicators on protected subprogram
8528         bodies, but change this to a warning if -gnatd.E is enabled. No
8529         longer give a style warning about missing indicators on protected
8530         subprogram bodies.
8532 2014-05-21  Robert Dewar  <dewar@adacore.com>
8534         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
8535         sem_elab.ads: Minor reformatting.
8536         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
8537         parameter optional.
8539 2014-05-21  Pascal Obry  <obry@adacore.com>
8541         * prj-dect.adb: Allow package Install in aggregate project.
8543 2014-05-21  Robert Dewar  <dewar@adacore.com>
8545         * sem_ch13.adb (Analyze_Aspect_Specifications):
8546         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
8547         * sem_prag.adb: Minor comment improvements.
8549 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8551         * sem_ch12.adb (Install_Body): When checking whether freezing of
8552         instantiation must be delayed, verify that the common enclosing
8553         subprogram to generic and instance is in fact an overloadable
8554         entity.
8556 2014-05-21  Vincent Celier  <celier@adacore.com>
8558         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
8559         mains with the same name and fail if there is more than one.
8560         * prj.ads, prj.adb (Find_All_Sources): New function
8562 2014-05-21  Robert Dewar  <dewar@adacore.com>
8564         * sem_ch13.adb: Minor reformatting.
8565         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
8566         * sem_prag.adb: Minor error message improvement.
8568 2014-05-21  Yannick Moy  <moy@adacore.com>
8570         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
8571         (Enclosing_Subprogram_Or_Package): Only return a library-level
8572         package.
8574 2014-05-21  Javier Miranda  <miranda@adacore.com>
8576         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
8577         to the full view of the parent type when processing a derived type
8578         which is the full view of a private type not defined in a generic
8579         unit which is derived from a private type with discriminants
8580         whose full view is a non-tagged record type.
8582 2014-05-21  Javier Miranda  <miranda@adacore.com>
8584         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
8585         Complete previous patch.
8587 2014-05-21  Thomas Quinot  <quinot@adacore.com>
8589         PR ada/9535
8590         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
8591         Provide a behaviour more consistent with underlying datagram
8592         socket: do not attempt to loop over Send_Socket/Receive_Socket
8593         iterating along the buffer.
8595 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
8597         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
8598         or a tagged type is not labelled as volatile. Ensure that a
8599         non-volatile type has no volatile components.
8600         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
8601         Obj_Typ. Code reformatting.  Ensure that a discriminated or
8602         tagged object is not labelled as volatile.
8603         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
8604         pragma Volatile applies to a full type declaration or an object
8605         declaration when SPARK mode is on.
8607 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
8609         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
8610         providing options needed for compiling the argument source for
8611         the situation when a project file can be used as a tool parameter.
8613 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
8615         * gnat_rm.texi: Minor typo fix.
8617 2014-05-21  Robert Dewar  <dewar@adacore.com>
8619         * stand.adb (Tree_Read): Read missing entities.
8620         (Tree_Write): Write missing entities.
8622 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
8624         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
8625         section in gnatmetric chapter.
8627 2014-05-21  Robert Dewar  <dewar@adacore.com>
8629         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
8630         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
8631         post-call copy write back (see detailed comment in code).
8632         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
8633         Exp_Ch6.
8634         * tbuild.ads: Minor reformatting.
8636 2014-05-21  Robert Dewar  <dewar@adacore.com>
8638         * stand.ads: Add warning about adding new entities and
8639         Tree_Read/Tree_Write.
8641 2014-05-21  Robert Dewar  <dewar@adacore.com>
8643         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
8644         references to restricted entities within the units in which they
8645         are declared.
8647 2014-05-21  Robert Dewar  <dewar@adacore.com>
8649         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
8650         simplify the needed test, and also deal with failure to catch
8651         situations with non-standard names.
8652         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
8653         (Source_File_Is_Subunit): Removed, no longer used.
8655 2014-05-21  Javier Miranda  <miranda@adacore.com>
8657         * exp_ch4.adb
8658         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
8659         renaming of an access to interface object there is no need to
8660         generate extra code to reference the tag.
8662 2014-05-21  Robert Dewar  <dewar@adacore.com>
8664         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
8665         Warnings (Off, string).
8667 2014-05-21  Robert Dewar  <dewar@adacore.com>
8669         * osint.adb: Fix three error messages to say invalid instead
8670         of erroneous.
8671         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
8672         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
8673         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
8675 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8677         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
8678         sem_ch9.ads: Move discriminant manipulation routines for analysis of
8679         aspect specifications from sem_ch9 to sem_ch13, where they belong.
8681 2014-05-21  Robert Dewar  <dewar@adacore.com>
8683         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
8684         Clearly document -gnatyg (GNAT style switches).
8685         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
8686         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
8687         available for VMS after all.
8688         * warnsw.adb: Reorganize to eliminate duplicated code
8689         (Restore_Warnings): Add a couple of missing entries
8690         (Save_Warnings): Add a couple of missing entries.
8691         * warnsw.ads: Add missing entries to Warning_Record (not clear
8692         what the impact is).
8694 2014-05-21  Robert Dewar  <dewar@adacore.com>
8696         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
8697         warning) case.
8698         * errout.ads: Document ?*? (restriction warning) insertion.
8699         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
8700         warning) case.
8701         * erroutc.ads: Document use of * for restriction warning tag.
8702         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
8704 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8706         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
8707         make discriminants immediately visible when analyzing an aspect
8708         of a subtype declaration.
8709         (Uninstall_Discriminants): Do not apply to the entity in a
8710         subtype declaration.
8712 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8714         * sem_util.adb: Code clean up.
8716 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8718         * gnat_ugn.texi: Document -Werror.
8720 2014-05-21  Bob Duff  <duff@adacore.com>
8722         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
8723         This was returning False if the Object is a constant view. Fix
8724         it to return True in that case, because it might be a view of
8725         a variable.
8726         (Has_Discriminant_Dependent_Constraint): Fix latent
8727         bug; this function was crashing when passed a discriminant.
8729 2014-05-21  Robert Dewar  <dewar@adacore.com>
8731         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
8732         * s-arit64.adb: Minor code reorganization.
8733         * sem_prag.adb: Minor comment fix (remove erroneous use of the
8734         term erroneous).
8736 2014-05-21  Robert Dewar  <dewar@adacore.com>
8738         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
8739         computing new table size.
8741 2014-05-21  Robert Dewar  <dewar@adacore.com>
8743         * einfo.ads: Minor reformatting.
8744         * ceinfo.adb: Deal with slight format change of einfo.ads.
8746 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8748         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
8749         implementation of the SPARK 2014 rule concerning private child
8750         units (LRM 7.2.6).
8752 2014-05-21  Vincent Celier  <celier@adacore.com>
8754         * makeusg.adb: Add switch -d to usage.
8756 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8758         * sem_util.adb (Find_Actual): If an actual that is the prefix
8759         of an enclosing prefixed call has been rewritten, use Nkind
8760         and Sloc to identify the corresponding formal, when handling
8761         deferred references.
8763 2014-05-21  Robert Dewar  <dewar@adacore.com>
8765         * debug.adb: Document -gnatd.z switch.
8766         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
8768 2014-05-21  Robert Dewar  <dewar@adacore.com>
8770         * einfo.ads (Can_Never_Be_Null): Minor comment update.
8771         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
8772         error message change.
8773         * s-arit64.adb ("abs"): New function. Use expression functions
8774         for the simple conversions and arithmetic.
8776 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8778         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
8779         set function_start_locus.
8781 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8783         * utils.c (gnat_write_global_declarations): Adjust the flags put on
8784         dummy_global.
8786 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8788         * gcc-interface/decl.c (change_qualified_type): New static function.
8789         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
8790         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
8791         <E_Array_Subtype>: Likewise.
8792         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
8793         (gnat_to_gnu_component_type): Likewise.
8794         (gnat_to_gnu_param): Likewise.
8796 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8798         * fe.h (Set_Present_Expr): Move around.
8799         (End_Location): New macro.
8800         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
8802 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8804         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
8805         lieu of more verbose construct.
8806         * gcc-interface/trans.c (Call_to_gnu): Likewise.
8807         (gnat_to_gnu): Likewise.  Remove obsolete code.
8809 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8811         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
8812         consider that regular packed arrays can never be superflat.
8814 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8816         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
8817         annotation.
8818         * gcc-interface/decl.c (annotate_value): Adjust.
8819         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8820         (push_range_check_info): Likewise.
8821         (Loop_Statement_to_gnu): Likewise.
8822         (Subprogram_Body_to_gnu): Likewise.
8823         (Compilation_Unit_to_gnu): Likewise.
8824         (start_stmt_group): Likewise.
8825         * gcc-interface/utils.c (init_gnat_utils): Likewise.
8826         (gnat_pushlevel): Likewise.
8827         (maybe_pad_type): Likewise.
8829 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8831         * seh_init.c: Fix copyright year.
8833 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8835         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
8836         are defined.  Move include windows.h before system.h.
8837         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
8838         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
8840 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
8842         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
8843         to the appropriate type.
8844         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
8845         (pos_to_constructor): Likewise.
8847 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8849         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
8851 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
8852             Mike Stump  <mikestump@comcast.net>
8853             Richard Sandiford  <rdsandiford@googlemail.com>
8855         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
8856         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
8857         (annotate_value): Use wide-int interfaces.
8858         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
8860 2014-04-28  Richard Henderson  <rth@redhat.com>
8862         * gcc-interface/Makefile.in: Support aarch64-linux.
8864 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8866         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
8867         add 'Suffix' parameter and adjust comment.
8868         (Get_External_Name_With_Suffix): Delete.
8869         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
8870         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
8871         'Suffix' parameter.
8872         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
8873         Call Get_External_Name instead of Get_External_Name_With_Suffix.
8874         (Get_Secondary_DT_External_Name): Likewise.
8875         * exp_cg.adb (Write_Call_Info): Likewise.
8876         * exp_disp.adb (Export_DT): Likewise.
8877         (Import_DT): Likewise.
8878         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
8879         parameter with False default.
8880         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
8881         * types.h (Fat_Pointer): Rename into...
8882         (String_Pointer): ...this.  Add comment on interfacing rules.
8883         * fe.h (Compiler_Abort): Adjust for above renaming.
8884         (Error_Msg_N): Likewise.
8885         (Error_Msg_NE): Likewise.
8886         (Get_External_Name): Likewise.  Add third parameter.
8887         (Get_External_Name_With_Suffix): Delete.
8888         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
8889         (create_concat_name): Adjust call to Get_External_Name, remove call to
8890         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
8891         * gcc-interface/trans.c (post_error): Likewise.
8892         (post_error_ne): Likewise.
8893         * gcc-interface/misc.c (internal_error_function): Likewise.
8895 2014-04-28  Richard Biener  <rguenther@suse.de>
8897         PR middle-end/60092
8898         * gcc-interface/utils.c: Define flag_isoc11.
8900 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
8902         * gnatvsn.ads (Library_Version): Bump to 4.10.
8904 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
8906         Revert
8907         2014-04-22  Richard Henderson  <rth@redhat.com>
8909         * gcc-interface/Makefile.in: Support aarch64-linux.
8911         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
8913         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
8914         (Error_Msg_N): Likewise.
8915         (Error_Msg_NE): Likewise.
8916         (Get_External_Name_With_Suffix): Likewise.
8917         * types.h (Fat_Pointer): Delete.
8918         (String_Pointer): New type.
8919         (DECLARE_STRING_POINTER): New macro.
8920         * gcc-interface/decl.c (create_concat_name): Adjust.
8921         * gcc-interface/trans.c (post_error): Likewise.
8922         (post_error_ne): Likewise.
8923         * gcc-interface/misc.c (internal_error_function): Likewise.
8925 2014-04-22  Richard Henderson  <rth@redhat.com>
8927         * gcc-interface/Makefile.in: Support aarch64-linux.
8929         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
8930         (__gnat_alternate_stack): Enable for all linux except ia64.
8932 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
8934         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
8935         (Error_Msg_N): Likewise.
8936         (Error_Msg_NE): Likewise.
8937         (Get_External_Name_With_Suffix): Likewise.
8938         * types.h (Fat_Pointer): Delete.
8939         (String_Pointer): New type.
8940         (DECLARE_STRING_POINTER): New macro.
8941         * gcc-interface/decl.c (create_concat_name): Adjust.
8942         * gcc-interface/trans.c (post_error): Likewise.
8943         (post_error_ne): Likewise.
8944         * gcc-interface/misc.c (internal_error_function): Likewise.
8946 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8947             Pierre-Marie de Rodat  <derodat@adacore.com>
8949         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
8950         scalar constant instead of a reference for renaming of scalar literal.
8951         Do not create a new object for constant renaming except for a function
8952         call.  Make sure a VAR_DECL is created for the renaming pointer.
8953         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
8954         (fold_constant_decl_in_expr): New function.
8955         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
8956         For a constant renaming, try to fold a constant DECL in the result.
8957         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
8958         (Identifier_to_gnu): Reference the renamed object of constant renaming
8959         pointers directly.
8960         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
8961         invalidate constant renaming pointers.
8963 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8965         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
8966         (build_vector_type_for_size): New function.
8967         (build_vector_type_for_array): Likewise.
8968         (unchecked_convert): Build an intermediate vector type to convert
8969         from a generic array type to a vector type.
8970         (handle_vector_size_attribute): Reimplement.
8971         (handle_vector_type_attribute): Likewise.
8973 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8975         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
8976         Is_OK_Static_Expression in lieu of Is_Static_Expression to
8977         detect valid arguments.
8979 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8981         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
8983 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
8985         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
8986         (components_to_record): Likewise.
8987         * gcc-interface/utils.c (make_aligning_type): Likewise.
8988         (maybe_pad_type): Likewise.
8989         (finish_record_type): Likewise.
8990         (rest_of_record_type_compilation): Likewise.
8992 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
8994         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
8995         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
8996         for Ivdep hint.
8997         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
8998         hint for Loop_Optimize.
8999         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
9000         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
9001         with new Ivdep hint.
9002         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
9003         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
9004         with new Ivdep hint.
9005         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
9007 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
9008             Robert Dewar  <dewar@adacore.com>
9010         * opt.ads (Suppress_Back_Annotation): Remove as unused.
9011         * fe.h (Back_Annotate_Rep_Info): Likewise.
9012         (Global_Discard_Names): Likewise.
9013         (List_Representation_Info): Declare.
9014         * types.h (Uint_Minus_1): Likewise.
9015         * repinfo.ads: Document back-annotation change.
9016         * gcc-interface/gigi.h (init_gnat_decl): Declare.
9017         (destroy_gnat_decl): Likewise.
9018         * gcc-interface/decl.c (annotate_value): Do not create the cache of
9019         annotated values here but...
9020         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
9021         in ASIS mode.
9022         (init_gnat_decl): ...here instead.  New function.
9023         (destroy_gnat_decl): Likewise.
9024         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
9025         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
9027 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
9029         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
9030         offset for the field, if any.
9032 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
9033             Svante Signell  <svante.signell@gmail.com>
9035         PR ada/54040
9036         PR ada/59346
9037         * s-osinte-x32.adb: New file.
9038         * s-linux.ads (Time): New section.
9039         * s-linux-alpha.ads (Time): Likewise.
9040         * s-linux-android.ads (Time: Likewise.
9041         * s-linux-hppa.ads (Time): Likewise.
9042         * s-linux-mipsel.ads (Time): Likewise.
9043         * s-linux-sparc.ads (Time): Likewise.
9044         * s-linux-x32.ads (Time): Likewise.
9045         * s-osprim-x32.ads (timespec): Adjust.
9046         (Clock): Likewise.
9047         (To_Timespec): Likewise.
9048         * s-osinte-linux.ads (Time): Define local subtypes for those defined
9049         in System.Linux.
9050         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
9051         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
9052         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
9053         * s-osinte-solaris-posix.ads (timespec): Likewise.
9054         * s-osinte-posix.adb (To_Timespec): Likewise.
9055         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
9057 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
9059         PR ada/60411
9060         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
9061         * s-linux-android.ads: New file.
9062         * s-intman-android.adb: Likewise.
9063         * s-osinte-android.ads: Adjust.
9064         * sigtramp-armdroid.c: Likewise.
9065         * sigtramp.h: Add Android support.
9067 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9069         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
9071 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9073         PR ada/60703
9074         * system-linux-alpha.ads: Adjust for Ada 2005.
9075         * system-linux-mips.ads: Likewise.
9076         * system-linux-mips64el.ads: Likewise.
9077         * system-linux-mipsel.ads: Likewise.
9078         * system-linux-s390.ads: Likewise.
9079         * system-linux-s390x.ads: Likewise.
9080         * system-linux-sparc.ads: Likewise.
9081         * system-linux-sparcv9.ads: Likewise.
9082         * system-rtems.ads: Likewise.
9083         * system-vxworks-arm.ads: Likewise.
9085 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
9087         PR ada/39172
9088         * gcc-interface/Makefile.in (target_cpu_default): Revert
9089         2013-10-11 change.
9091 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
9093         PR ada/51483
9094         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
9095         it to set the RM size.  Use directly 'size' for the Esize.
9096         (Create_Back_End_Float_Types): Adjust call to above.
9097         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
9098         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
9099         (Write_Target_Dependent_Values): Adjust comment.
9100         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
9101         deal with it.
9102         (Write_Target_Dependent_Values): Write the precision in lieu of size.
9103         (Initialization): Read the precision in lieu of size and compute the
9104         size from the precision and the alignment.
9105         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
9106         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
9107         types for vector modes, pass the size in addition to the precision.
9109 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
9111         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
9113 2014-03-07  Doug Rupp  <rupp@adacore.com>
9115         PR ada/60411
9116         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
9117         (Support_64_Bit_Divides): Removed, no longer used.
9118         (ZCX_By_Default): Enabled.
9120 2014-02-25  Doug Rupp  <rupp@adacore.com>
9122         * gcc-interface/Makefile.in (arm-linux):
9123         (EH_MECHANISM): Use ARM unwinder (-arm)
9124         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
9125         s-excmac-arm.ads.
9126         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
9127         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
9128         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
9129         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
9130         Add dependencies for sigtramp-armvxw.o.
9132 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9134         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
9136 2014-02-25  Robert Dewar  <dewar@adacore.com>
9138         * rtsfind.adb (Is_RTE): Protect against entity with no scope
9139         field (previously this call blew up on the Standard entity).
9140         * sem_attr.adb (Analyze_Attribute, case Access): Remove
9141         test for No_Abort_Statements, this is now handled in
9142         Set_Entity_With_Checks.
9143         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
9144         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
9145         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
9146         Set_Entity_With_Checks.
9147         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
9148         Add checks for No_Abort_Statements.
9150 2014-02-25  Robert Dewar  <dewar@adacore.com>
9152         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
9153         Check_Restriction is OK.
9155 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9157         * sem_ch3.adb (Process_Full_View): Better error message when
9158         the full view of  a private type without discriminants is an
9159         unconstrained type.
9160         * sem_ch7.adb (Uninstall_Declarations): Ditto.
9162 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9164         * sigtramp-armvxw.c: Also restore r0.
9166 2014-02-25  Robert Dewar  <dewar@adacore.com>
9168         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
9169         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
9170         set unconditionally.
9171         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
9172         any more (Output_Msg_Text): Rewritten with new convention on
9173         output of warnings that are treated as errors.
9174         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
9175         if Warn is False.
9176         * gnat_rm.texi: Updates to documentation on pragma
9177         Warning_As_Error.
9178         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
9179         set Warning_Doc_Switch.
9180         * lib-writ.ads: Add documentation note on ALI file generation
9181         for C.
9182         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
9183         (belongs in Sem).
9184         * sem_attr.adb (Resolve_Attribute, case Access):
9185         Abort_Task'Access violates the No_Abort_Statements restriction.
9186         * sem_res.adb (Resolve_Call): Check restriction
9187         No_Abort_Statements for call to Abort_Task or a renaming of it.
9189 2014-02-25  Robert Dewar  <dewar@adacore.com>
9191         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
9192         type name as index.
9193         * lib.ads: Minor reformatting.
9194         * einfo.ads: Minor reformatting.
9196 2014-02-25  Doug Rupp  <rupp@adacore.com>
9198         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
9199         use Short_Descriptor(S) as the argument passing mechanism.
9201 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9203         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
9205 2014-02-25  Robert Dewar  <dewar@adacore.com>
9207         * atree.ads (Warnings_Treated_As_Errors): New variable.
9208         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
9209         error object (Initialize): Initialize Warnings_As_Errors_Count
9210         (Write_Error_Summary): Include count of warnings treated as errors.
9211         * erroutc.adb (Warning_Treated_As_Error): New function.
9212         (Matches): Function moved to outer level of package.
9213         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
9214         (Warning_Treated_As_Error): New function.
9215         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
9216         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
9217         * opt.ads (Config_Switches_Type): Add entry for
9218         Warnings_As_Errors_Count.
9219         (Warnings_As_Errors_Count): New variable.
9220         (Warnings_As_Errors): New array.
9221         * par-prag.adb: Add dummy entry for Warning_As_Error.
9222         * sem_prag.adb (Analyze_Pragma): Implement new pragma
9223         Warning_As_Error.
9224         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
9226 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9228         * sigtramp.h: Fix minor inaccuracy.
9230 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
9232         * gnat_ugn.texi: Added description of kill command.
9234 2014-02-25  Robert Dewar  <dewar@adacore.com>
9236         * gnat_rm.texi (Address_Clauses): Add a section discussing the
9237         problem of address clauses causing unexpected initialization,
9238         including the effect of Initialize_Scalars.
9240 2014-02-25  Robert Dewar  <dewar@adacore.com>
9242         * errout.adb: Various changes for better msgs for anonmous access
9243         subprogram types.
9244         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
9245         argument.
9246         (Buffer_Remove): Version with character argument.
9247         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
9248         of mismatching conventions for access-to-subprogram case.
9249         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
9250         access types in record.
9251         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
9252         types, including in records.
9254 2014-02-25  Doug Rupp  <rupp@adacore.com>
9256         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
9257         enhancements and corrections.
9259 2014-02-25  Robert Dewar  <dewar@adacore.com>
9261         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
9263 2014-02-25  Robert Dewar  <dewar@adacore.com>
9265         * gnat_rm.texi: First set of documentation additions for
9266         predefined RM units.
9267         * checks.adb: Minor reformatting.
9268         * sem_elab.adb (Check_Task_Activation): Minor fix to error
9269         message.
9270         * sem_util.adb: Minor reformatting.
9272 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
9274         * usage.adb (Usage): Add help on -gnateC.
9275         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
9276         * opt.ads (Generate_CodePeer_Messages): New flag.
9277         * gnat_ugn.texi: Document new switch -gnateC.
9279 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
9281         * gnat_rm.texi: Corrected minor typos in Implementation Defined
9282         Aspects.
9283         * opt.ads: Minor reformatting.
9285 2014-02-25  Robert Dewar  <dewar@adacore.com>
9287         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
9288         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
9289         of -gnatel/-gnateL.
9290         * opt.ads (Warn_Info_Messages): New flag.
9291         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
9292         messages.
9293         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
9294         messages.
9295         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
9296         * usage.adb: Add documentation of -gnatel/-gnateL Update
9297         documentation of -gnatwl/-gnatwL.
9298         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
9299         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
9301 2014-02-25  Robert Dewar  <dewar@adacore.com>
9303         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
9304         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
9305         * interfac.ads: Minor code reorganization (add pragma
9306         Compiler_Unit_Warning).
9307         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
9308         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
9309         Has_Shift_Operator flag.
9310         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
9311         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
9312         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
9313         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
9314         Add entry for Name_Amount.
9315         * checks.adb (Selected_Range_Checks): When checking for a null
9316         range, make sure we use the base type, and not the subtype for
9317         deciding a range is null.
9318         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
9319         for suspicious loop bound which is outside the range of the
9320         loop subtype.
9321         * gnat_ugn.texi: Add documentation section "Determining the
9322         Chosen Elaboration Order"
9323         * sem_ch13.adb (UC_Entry): Add field Act_Unit
9324         (Validate_Unchecked_Conversion): Store Act_Unit
9325         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
9326         * treepr.adb: Minor reformatting.
9328 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
9330         * usage.adb: Minor: fix typo.
9332 2014-02-25  Robert Dewar  <dewar@adacore.com>
9334         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
9335         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
9336         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
9337         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
9338         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
9339         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
9340         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
9341         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
9342         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
9343         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
9344         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
9345         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
9346         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
9347         Compiler_Unit_Warning, change Compiler_Unit everywhere to
9348         Compiler_Unit_Warning.
9350 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
9352         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
9353         in ASIS mode aggregates that are used as aspect definitions.
9355 2014-02-25  Robert Dewar  <dewar@adacore.com>
9357         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
9358         reformatting.
9360 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9362         * freeze.adb (Freeze_Entity): If the return type of a function
9363         is a limited view, and the non-limited view has not been seen yet,
9364         defer freezing to some later point.
9366 2014-02-25  Robert Dewar  <dewar@adacore.com>
9368         * sem_ch3.adb: Minor reformatting.
9370 2014-02-25  Robert Dewar  <dewar@adacore.com>
9372         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
9373         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
9374         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
9375         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
9376         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
9377         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
9378         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9379         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
9380         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
9381         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
9382         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
9383         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
9384         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
9385         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
9386         snames.ads-tmpl: Change Compiler_Unit everywhere to
9387         Compiler_Unit_Warning.
9389 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9391         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
9392         (Collect_Body_Postconditions_In_Decls): New routine.
9393         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
9394         postcondition aspects or pragmas that appear on a subprogram
9395         body stub.
9396         (Collect_Spec_Preconditions): Factor out code. Handle
9397         precondition aspects or pragmas that appear on a subprogram
9398         body stub.
9399         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
9400         aspects that apply to a subprogram body stub is no longer delayed,
9401         the aspects are analyzed on the spot.
9402         (SPARK_Aspect_Error):
9403         Aspects that apply to a subprogram declaration cannot appear in
9404         a subunit.
9405         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
9406         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
9407         is now a local variable. Code cleanup. Analysis related to
9408         the aspects of a subprogram body stub is now carried out by
9409         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
9410         and/or pragmas of a subprogram body stub to the proper body
9411         as this is no longer needed. Do not analyze the aspects of a
9412         subprogram stub when the corresponding source unit is missing.
9413         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
9414         on a stub.
9415         (Analyze_Task_Body_Stub): Flag the illegal use of
9416         aspects on a stub.
9417         (Optional_Subunit): Add local variable Unum.
9418         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
9419         pragma when it applies to a subprogram body stub.
9420         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
9421         Depends and Global can now apply to a subprogram body stub as
9422         long as it acts as its own spec.
9423         (Analyze_Refined_Pragma):
9424         Code reformatting. Refinement pragmas cannot apply to a subunit.
9426 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9428         * einfo.ads Update the usage of flag
9429         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
9430         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
9431         now starts with the letter 'C'. This makes reading expanded
9432         code easier.
9433         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
9434         Iter_Loop. Signal that an Ada 2012 iterator loop requires
9435         secondary stack management when creating a transient scope for
9436         an element reference.
9437         * exp_util.adb (Process_Statements_For_Controlled_Objects):
9438         When wrapping the statements of a loop, pass the E_Loop entity
9439         to the wrapping machinery.
9440         (Wrap_Statements_In_Block): Add
9441         formal parameter Scop along with comment on usage. Add local
9442         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
9443         block as requiring secondary stack management when the block is
9444         created inside an Ada 2012 iterator loop. This ensures that any
9445         reference objects are reclaimed on each iteration of the loop.
9446         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
9447         tasked with the handling of container iterators as requiring
9448         secondary stack management. This ensures that iterators are
9449         reclaimed when the loop terminates or is exited in any fashion.
9450         * sem_util.adb (Add_Block_Identifier): New routine.
9451         (Find_Enclosing_Iterator_Loop): New routine.
9452         * sem_util.ads (Add_Block_Identifier): New routine.
9453         (Find_Enclosing_Iterator_Loop): New routine.
9455 2014-02-25  Robert Dewar  <dewar@adacore.com>
9457         * sinfo.ads: Minor reformatting.
9459 2014-02-25  Tristan Gingold  <gingold@adacore.com>
9461         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
9463 2014-02-25  Pascal Obry  <obry@adacore.com>
9465         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
9467 2014-02-25  Tristan Gingold  <gingold@adacore.com>
9469         * sem_ch10.adb: Minor comment fix.
9471 2014-02-25  Bob Duff  <duff@adacore.com>
9473         * s-tasdeb.adb: Misc cleanup of this package,
9474         including printing addresses in hexadecimal.
9475         (Write): Fix minor bug when taking 'Address of an empty string.
9477 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9479         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
9480         public child unit when it does not refer to the abstract state
9481         of a public ancestor.
9483 2014-02-25  Yannick Moy  <moy@adacore.com>
9485         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
9486         Validity_Checks in GNATprove and CodePeer modes.
9488 2014-02-25  Pascal Obry  <obry@adacore.com>
9490         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
9491         Artifacts attribute.
9493 2014-02-25  Yannick Moy  <moy@adacore.com>
9495         * sem_prag.adb: Minor reformatting to get consistent messages.
9497 2014-02-25  Robert Dewar  <dewar@adacore.com>
9499         * checks.adb: Minor reformatting.
9500         * sinfo.ads (Do_Range_Check): Document that this flag is never
9501         passed to the back end.
9503 2014-02-25  Yannick Moy  <moy@adacore.com>
9505         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
9506         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
9508 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9510         * sem_res.adb (Appears_In_Check): New routine.
9511         (Resolve_Entity_Name): Remove local variables Prev and
9512         Usage_OK. Par is now a constant. Remove the parent chain traversal
9513         as the placement of a volatile object with enabled property
9514         Async_Writers and/or Effective_Reads must appear immediately
9515         within a legal construct.
9517 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
9519         * checks.adb (Apply_Selected_Range_Checks):
9520         Alphabetize local constants and variables. Add comments.
9521         Always insert a range check that requires runtime evaluation into
9522         the tree.
9524 2014-02-25  Robert Dewar  <dewar@adacore.com>
9526         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
9528 2014-02-25  Bob Duff  <duff@adacore.com>
9530         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
9531         iterations while waiting for independent tasks to terminate;
9532         if an independent task does not terminate, we do not want to
9533         hang here. In that case, the thread will be terminated when the
9534         process exits.
9535         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
9537 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9539         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
9540         used to perform pre-analysis of the expression for SPARK
9541         aspects that have a non-standard syntax, such as GLobal and
9542         Initializes. The procedure applies to the original expression
9543         in an aspect specification, prior to the analysis of the
9544         corresponding pragma, in order to provide semantic information
9545         for ASIS navigation purposes.
9546         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
9547         Call new subprogram.
9549 2014-02-25  Yannick Moy  <moy@adacore.com>
9551         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
9553 2014-02-25  Doug Rupp  <rupp@adacore.com>
9555         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
9556         (__gnat_adjust_context_for_raise): Bump the PC by 2.
9558 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9560         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
9561         misplaced IS, add a statement sequence to improper body only if
9562         one has not been parsed already.
9564 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
9566         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
9567         mismatch when multidimensional array is updated with a single
9568         index.
9570 2014-02-25  Yannick Moy  <moy@adacore.com>
9572         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
9573         sem_ch6.adb: Mark most references to SPARK RM in error messages
9574         for removal.
9576 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9578         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
9579         appears in a list of basic declarations, complete the tree with
9580         an empty statement list, to prevent cascaded errors and crashes
9581         if semantic analysis is attempted.
9583 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9585         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
9586         value.
9587         * erroutc.adb: Minor reformatting.
9589 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9591         * sem_prag.adb (Check_Clause_Syntax): Account
9592         for a solitary input item in a dependency list.
9594 2014-02-24  Yannick Moy  <moy@adacore.com>
9596         * gnat1drv.adb (Adjust_Global_Switches): Do not
9597         use validity checks at all in GNATprove_Mode.
9599 2014-02-24  Robert Dewar  <dewar@adacore.com>
9601         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
9602         atree.adb, atree.ads: Minor reformatting.
9604 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9606         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
9607         global and dependence refinement when SPARK_Mode is off.
9608         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
9609         state refinement when SPARK_Mode is off.
9610         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
9611         variable Decl. Insert the generated pragma for Refined_State
9612         after a potential pragma SPARK_Mode.
9613         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
9614         constant Deps. Remove local variable Expr. Check the syntax
9615         of pragma Depends when SPARK_Mode is off. Factor out the
9616         processing for extra parenthesis around individual clauses.
9617         (Analyze_Global_In_Decl_List): Items is now a constant. Check
9618         the syntax of pragma Global when SPARK_Mode is off.
9619         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
9620         Initializes when SPARK_Mode is off.
9621         (Analyze_Part_Of): Check
9622         the syntax of the encapsulating state when SPARK_Mode is off.
9623         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
9624         SPARK_Mode is off. Move the declaration order check with respect
9625         to pragma Initializes to the end of the processing. Do not verify
9626         the declaration order for pragma Initial_Condition when SPARK_Mode
9627         is off. Do not complain about a useless package refinement when
9628         SPARK_Mode is off.
9629         (Analyze_Refined_Depends_In_Decl_Part): Refs
9630         is now a constant. Check the syntax of pragma Refined_Depends
9631         when SPARK_Mode is off.
9632         (Analyze_Refined_Global_In_Decl_Part):
9633         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
9634         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
9635         Refined_State when SPARK_Mode is off.
9636         (Check_Dependence_List_Syntax): New routine.
9637         (Check_Global_List_Syntax): New routine.
9638         (Check_Initialization_List_Syntax): New routine.
9639         (Check_Item_Syntax): New routine.
9640         (Check_State_Declaration_Syntax): New routine.
9641         (Check_Refinement_List_Syntax): New routine.
9642         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
9644 2014-02-24  Robert Dewar  <dewar@adacore.com>
9646         * a-tags.adb, s-os_lib.adb: Minor reformatting.
9648 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9650         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
9651         strerror message, not just numeric errno value.
9653 2014-02-24  Doug Rupp  <rupp@adacore.com>
9655         * raise-gcc.c (exception_class_eq): Make endian neutral.
9657 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9659         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
9660         flag, and reset Etype and Analyzed attributes unconditionally
9661         when copying a tree that may be partly analyzed.
9662         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
9663         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
9664         within a subprogram body and applies to it, remove it from the
9665         body before making a copy of it, to prevent spurious errors when
9666         analyzing the copied body.
9668 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9670         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
9671         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
9672         vxWorks.h has been included.  Also ensure that file attributes
9673         related definitions are output even in cases where socket support
9674         is not enabled.
9675         * a-tags.adb: Code clean up.
9676         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
9677         instead of -I to add the main ada source directory to the header
9678         search path, in order to avoid conflict between our own "types.h"
9679         and VxWork's <types.h>.
9681 2014-02-24  Robert Dewar  <dewar@adacore.com>
9683         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
9684         * debug.adb: Remove documentation of -gnatd.X, no longer used.
9685         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
9687 2014-02-24  Bob Duff  <duff@adacore.com>
9689         * gnat_ugn.texi: Improve documentation of gnatpp.
9691 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9693         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
9694         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
9695         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
9696         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
9697         a chars_ptr, because on Windows this is a renaming of
9698         Socket_Error_Message.
9700 2014-02-24  Robert Dewar  <dewar@adacore.com>
9702         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
9703         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
9704         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
9705         reorganization.
9707 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9709         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
9710         that the source directory containing s-oscons-tmplt.c is on the
9711         include path, so that all internal header files are available.
9713 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9715         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
9716         domain of iteration is an attribute reference 'Old, this is an
9717         Ada 2012 iterator and the loop must be rewritten as such.
9719 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9721         * s-fileio.adb (Errno_Message): Remove, use shared version from
9722         s-os_lib instead.
9723         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
9724         * g-stseme (Socket_Error_Message): Reimplement in terms of new
9725         s-os_lib function.
9726         * g-socthi.ads, g-socthi.adb: Change profile of
9727         Socket_Error_Message to return String to allow the above.
9728         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
9729         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9730         * g-socthi-vxworks.ads: Update to account for the above profile
9731         change.
9732         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
9733         * s-crtl.ads (strncpy): New procedure.
9734         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
9735         Use import from s-crtl.
9736         * a-envvar.adb, osint.adb: Use imports of C runtime functions
9737         from s-crtl instead of re-importing locally.
9739 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9741         * sem_prag.adb (Analyze_Global_Item): Emit the
9742         variable related checks concerning volatile objects only when
9743         SPARK_Mode is on.
9745 2014-02-24  Robert Dewar  <dewar@adacore.com>
9747         * sem_ch5.adb (Analyze_Iterator_Specification): use
9748         Error_Msg_Ada_2012_Feature.
9750 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
9752         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
9753         No_Local_Timing_Events and No_Specific_Termination_Handlers
9754         must be set, according to the Ravenscar profile definition
9755         in D.13(6/3).
9757 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9759         * sem_ch6.adb (Analyze_Expression_Function): If this is a
9760         completion, freeze return type and its designated type if needed.
9762 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9764         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
9765         'Address): When moving initialization statements to a freeze
9766         entity, keep them under a single node (i.e. do not unwrap
9767         expressions with actions), and set the Initialization_Statements
9768         attribute again so that processing of a later pragma Import can
9769         still remove them.
9771 2014-02-24  Claire Dross  <dross@adacore.com>
9773         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
9774         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
9775         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
9776         Left/Right to First_To_Previous/Current_To_Last.
9778 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9780         * adaint.h (struct file_attributes): New component "error"
9781         (__gnat_error_attributes): Accessor for the above.
9782         * adaint.c (__gnat_error_attributes): New subprogram
9783         (__gnat_stat): Fix returned value (expect errno value)
9784         (__gnat_stat_to_attr): Add management of error component (set to
9785         stat errno value, except for missing files where it is set to 0,
9786         and exists is set to 0).
9787         * osint.ads (File_Attributes_Size): Update per change above,
9788         also clarify documentation.
9789         * s-filatt.ads: New file, binding to file attributes related
9790         functions.
9791         * Makefile.rtl (s-filatt): New runtime unit.
9792         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
9793         to library function if not available on target).
9794         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
9795         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
9796         SIZEOF_struct_dirent_alloc): New constants.
9797         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
9798         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
9799         Perform appropriate error checking if stat fails (do not just
9800         ignore existing files if stat fails)
9801         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
9802         dependencies.
9804 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9806         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
9807         the use of volatile objects as global items in a function to
9808         the variable related checks section.
9809         * sem_util.adb (Async_Readers_Enabled): Directly call
9810         Has_Enabled_Property.
9811         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
9812         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
9813         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
9814         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
9815         Update the comment on usage. State_Has_Enabled_Property how handles
9816         the original logic of the routine. Add processing for variables.
9817         (State_Has_Enabled_Property): New routine.
9818         (Variable_Has_Enabled_Property): New routine.
9820 2014-02-24  Robert Dewar  <dewar@adacore.com>
9822         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
9823         Minor reformatting.
9824         * atree.ads, atree.adb (Node35): New function.
9825         (Set_Node35): New procedure.
9826         * debug.adb: Define new debug flag -gnatd.X.
9827         * einfo.ads, einfo.adb (Import_Pragma): New field.
9828         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
9829         really active yet, has to be activated with -gnatd.X.
9830         * sem_prag.adb (Set_Imported): Set new Import_Pragma
9831         field (Set_Imported): Don't set Is_Public (see
9832         Freeze.Wrap_Imported_Subprogram)
9833         * par-ch3.adb (P_Component_List): Handle unexpected null component.
9835 2014-02-24  Yannick Moy  <moy@adacore.com>
9837         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
9838         * gnat_rm.texi: Correct documentation of attribute Update.
9840 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9842         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
9843         iterator in older versions of Ada.
9845 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
9847         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
9848         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
9850 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9852         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
9853         indexed_components that are instances of Ada 2012 container
9854         indexing operations. Analysis and resolution of such nodes
9855         is performed on the attribute, and the original source is
9856         preserved for ASIS operations. If expansion is enabled, the
9857         indexed component is replaced by the value of this attribute,
9858         which is in a call to an Indexing aspect, in most case wrapped
9859         in a dereference operation.
9860         * sem_ch4.adb (Analyze_Indexed_Component): Create
9861         Generalized_Indexing attribute when appropriate.
9862         (Analyze_Call): If prefix is not overloadable and has an indexing
9863         aspect, transform into an indexed component so it can be analyzed
9864         as a potential container indexing.
9865         (Analyze_Expression): If node is an indexed component with a
9866         Generalized_ Indexing, do not re-analyze.
9867         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
9868         of an indexed_component that has been transformed into a container
9869         indexing operation.
9870         (Resolve_Indexed_Component): Call the above when required.
9871         (Resolve): Do not insert an explicit dereference operation on
9872         an indexed_component whose type has an implicit dereference:
9873         the operation is inserted when resolving the related
9874         Generalized_Indexing.
9876 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
9878         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
9879         Environment.
9881 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9883         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
9884         error messages.
9885         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
9886         Merge the expected and available mode errors.
9887         (Report_Unused_Constituents): Remove leading spaces in error messages.
9888         (Report_Unused_States): Remove leading spaces in error messages.
9890 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9892         * par_sco.adb (Traverse_One): Refine categorization of statement
9893         SCOs.
9895 2014-02-24  Robert Dewar  <dewar@adacore.com>
9897         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
9898         Pure_05, Pure_12 and Preelaborate_05.
9899         * gnat_rm.texi: Update accordingly.
9900         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
9901         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
9902         Recognize one argument form of these pragmas only in GNAT mode
9903         (-gnatg).
9905 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9907         * s-dimmks.ads: Replace symbol for temperature, previously the
9908         Greek letter Theta, by the ASCII @ sign.
9909         * s-diflio.ads: ditto.
9911 2014-02-24  Robert Dewar  <dewar@adacore.com>
9913         * exp_ch4.adb: Minor code reorganization (use OR for boolean
9914         variables).
9915         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
9917 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
9919         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
9920         so that references to gnatmem and ASIS tools do not appear in the FSF
9921         edition of the GNAT User's Guide.
9923 2014-02-24  Yannick Moy  <moy@adacore.com>
9925         * freeze.adb (Freeze_Entity): Do not issue warning
9926         for pre/post being ignored on imported subprogram in GNATprove
9927         mode.
9929 2014-02-24  Robert Dewar  <dewar@adacore.com>
9931         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
9932         stand.ads, sem_eval.adb: Minor reformatting.
9934 2014-02-24  Yannick Moy  <moy@adacore.com>
9936         * sem_prag.adb: Minor rewording in error message.
9938 2014-02-24  Johannes Kanig  <kanig@adacore.com>
9940         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
9941         GNATprove_mode, gnat2why doesn't need nor use these types.
9943 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
9945         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
9946         target, in the case of signed integer exponentiation that uses a
9947         run-time routine, always select the Exp_* versions, since overflow
9948         checking is automatically done by AAMP arithmetic instructions.
9950 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9952         * sem_ch13.adb (Analyze_Aspect_Specifications):
9953         When the related context is a package instace, insert pragma
9954         Abstract_State after all internally-generated renamings related
9955         to the instance "header".
9957 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9959         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
9960         subprograms.
9961         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
9962         call to an abstract subprogram is legal if it appears in a
9963         pre/postcondition of another abstract operation.
9965 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
9967         * gnat_ugn.texi: Misc updates.
9969 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9971         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
9973 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
9975         * layout.adb (Layout_Variant_Record): Instantiate
9976         Generic_Check_Choices and call Check_Choices before calling
9977         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
9978         set to prevent generating incorrect discriminant-checking
9979         functions for 'others' variants (functions that unconditionally
9980         return True rather than accounting for the values covered by the
9981         'others' choice).
9982         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
9983         Formal_Derived_Matching.
9984         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
9985         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
9986         Formal_Derived_Matching formal to Subtypes_Statically_Match.
9987         (Subtypes_Statically_Match): Suppress the Object_Size matching
9988         test in the case where Formal_Derived_Matching is True.
9989         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
9990         True for Formal_Derived_Matching_Formal on the call to
9991         Subtypes_Statically_Compatible.
9993 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
9995         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
9997 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
9999         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
10000         Look through a conversion between original and packable version to get
10001         the base object.
10002         (build_component_ref): Rework comment and fix formatting.
10004 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
10006         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
10007         project-specific options.
10009 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10011         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
10012         not Constraint_Error.
10013         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
10014         * sem_ch5.adb: Code clean up.
10016 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
10018         * sem_prag.adb (Usage_Error): Remove local
10019         constant Typ. Remove the specialized diagnostics for unconstrained
10020         or tagged items as those are not part of the explicit input set
10021         of the related subprogram and should not be flagged.
10023 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10025         * sem_attr.adb: Add guard to preserve all errors.
10027 2014-02-20  Vincent Celier  <celier@adacore.com>
10029         * switch-m.adb (Normalize_Compiler_Switches): Take into account
10030         switches that are recorded in ALI files: -gnateA, -gnateE,
10031         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
10033 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10035         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
10036         of an element iterator form over a formal container with an
10037         Iterable aspect.
10038         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
10039         to create declaration and loop statements for both forms of
10040         container iterators.
10041         (Expand_Formal_Container_Element_Iterator): New procedure
10042         to handle loops of the form  "for E of C" when C is a formal
10043         container.
10044         (Expand_Formal_Container_Iterator): Code cleanup.
10046 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
10048         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
10049         (Analyze_Contract_Case): Remove the use of
10050         "may". Replace "aspect Contract_Cases" to avoid categorization
10051         of aspect vs pragma.
10052         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
10053         (Analyze_Global_Item): Remove
10054         the use of "formal", specify the subprogram.  Split the
10055         error message about a state with visible refinement into
10056         two. Remove the use of "global" from "volatile global item".
10057         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
10058         is on one line.
10059         (Analyze_Input_Output): Update the call to
10060         Check_Mode. Specify the duplicated item. Reword the error
10061         message concerning an input of a null output list. Use "\"
10062         for error message continuation.
10063         (Analyze_Part_Of): Remove
10064         the use of "may". Use "\" for error message continuation.
10065         (Analyze_Refined_Depends_In_Decl_Part): Update the error
10066         message concerning a useless refinement to match the format
10067         of Refined_Global.
10068         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
10069         concerning a useless refinement.
10070         (Analyze_Refinement_Clause): Use "\" for error message continuation.
10071         (Check_Constituent_Usage): Use "\" for error message continuation.
10072         (Check_Dependency_Clause): Use "\" for error message continuation.
10073         (Check_Matching_Constituent): Use "\" for error message continuation.
10074         (Check_Missing_Part_Of): Use "\" for error message continuation.
10075         (Check_Mode): Renamed to
10076         Check_Role. Update the comment on usage. Redo the error reporting
10077         to use Role_Error.
10078         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
10079         message continuation.
10080         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
10081         with comment on usage. Update all occurrences of Is_Input and Is_Output.
10082         (Inconsistent_Mode_Error): Use "\" for error message continuation.
10083         (Input_Match): Use "\" for error message continuation.
10084         (Role_Error): New routine.
10085         (Set_Convention_From_Pragma): Use "\" for error message continuation.
10086         (Usage_Error): Add local variable Error_Msg. Build specialized error
10087         message showcasing the offending item kind. Redo the diagnostics for
10088         unconstrained types.
10090 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10092         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
10093         to determine whether a type is a container type, rather than
10094         examining only its type declaration, so that subtypes and derived
10095         types are handled properly.
10097 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
10099         * gnat_ugn.texi: gnatmetric: add description of project-specific
10100         options.
10102 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10104         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
10105         all choices in an association for a record type have the same
10106         type, as is done for record aggregates.
10108 2014-02-20  Robert Dewar  <dewar@adacore.com>
10110         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
10111         Unmodified rather than Warnings (Off). Make comments
10112         uniform in the four affected units.
10114 2014-02-20  Robert Dewar  <dewar@adacore.com>
10116         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
10117         Object_Size): For non-scalar types allow any value that is a
10118         multiple of 8.
10119         * gnat_rm.texi: Document Object_Size for composites more clearly.
10121 2014-02-20  Yannick Moy  <moy@adacore.com>
10123         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
10125 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10127         * stand.ads: Raise_Type: new predefined entity, used as the type
10128         of a Raise_Expression prior to resolution.
10129         * cstand.adb: Build entity for Raise_Type.
10130         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
10131         initial type of the node.
10132         * sem_type.adb (Covers): Raise_Type is compatible with all
10133         other types.
10134         * sem_res.adb (Resolve): Remove special handling of Any_Type on
10135         Raise_Expression nodes.
10136         (Resolve_Raise_Expression): Signal ambiguity if the type of the
10137         context is still Raise_Type.
10139 2014-02-20  Robert Dewar  <dewar@adacore.com>
10141         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
10142         mismatching predicates.
10143         * sem_ch6.adb (Check_Conformance): Give better messages on
10144         predicate mismatch.
10145         * sem_eval.adb (Predicates_Match): Move to spec.
10146         * sem_eval.ads (Predicates_Match): Moved here from body.
10148 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10150         * a-cbmutr.adb: Use default value in Insert_Child.
10152 2014-02-20  Vincent Celier  <celier@adacore.com>
10154         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
10155         Stringt.Initialize in all project aware tools.
10157 2014-02-20  Doug Rupp  <rupp@adacore.com>
10159         * gnat_ugn.texi: Document gnatbind -X option.
10160         * vms_data.ads: Minor warnings documentation reformatting.
10162 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10164         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
10165         procedure for a base type.
10167 2014-02-20  Robert Dewar  <dewar@adacore.com>
10169         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
10170         expression with type info.
10171         * sem_ch13.adb: Minor reformatting.
10172         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
10173         False if predicates do not match on the two types.
10175 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
10177         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
10178         In Relaxed_RM_Semantics mode, allow any static integer value,
10179         for compatibility with other compilers.
10181 2014-02-20  Vincent Celier  <celier@adacore.com>
10183         * errutil.adb (Initialize): Properly initialize entry in table
10184         Warnings when warnings are suppressed.
10186 2014-02-20  Robert Dewar  <dewar@adacore.com>
10188         * s-os_lib.ads: Add warning about non-portability of Rename_File.
10189         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
10190         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
10191         * gnat_ugn.texi: Document no warnings on junk variable names.
10192         * layout.adb: Minor code reorganization (use Ekind_In).
10193         * stringt.adb: Move initialization of Null_String_Id to Initialize
10194         routine.
10196 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10198         * sem_ch13.adb: Initialize optional Element_Id.
10200 2014-02-20  Robert Dewar  <dewar@adacore.com>
10202         * s-os_lib.ads (Rename_File): Minor commment addition.
10204 2014-02-20  Thomas Quinot  <quinot@adacore.com>
10206         * einfo.ads: Minor reformatting.
10208 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
10210         * aspects.adb (Exchange_Aspects): New routine.
10211         * aspects.ads (Exchange_Aspects): New routine.
10212         * atree.adb (Rewrite): Do not check whether the save node has
10213         aspects as it never will, instead check the node about to be clobbered.
10214         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
10215         entities of generic packages.
10216         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
10217         pointer of an aspect specification list after rewriting takes place.
10218         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
10219         specifications of the generic template and the copy used for analysis.
10220         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
10221         the aspect specifications of the generic template and the
10222         copy used for analysis.
10223         (Analyze_Package_Instantiation): Propagate the aspect specifications
10224         from the generic template to the instantiation.
10225         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
10226         specifications from the generic template to the instantiation.
10227         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
10228         Abstract_State, Initializes and Initial_Condition when they
10229         apply to a package instantiation.
10231 2014-02-20  Robert Dewar  <dewar@adacore.com>
10233         * stringt.adb: Add call to Initialize in package initialization.
10235 2014-02-20  Robert Dewar  <dewar@adacore.com>
10237         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
10238         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
10239         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
10240         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
10241         reformatting.
10243 2014-02-20  Bob Duff  <duff@adacore.com>
10245         * s-os_lib.ads: Minor: Remove incorrect comment.
10247 2014-02-20  Robert Dewar  <dewar@adacore.com>
10249         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
10251 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10253         * a-cborma.adb (Assign): When creating a node without a specified
10254         element, insert an uninitialized element in the map, because
10255         the instance may provide an element type with a default
10256         initialization, e.g a scalar with a Default_Value aspect.
10257         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
10258         (Insert): In the version without explicit element, provide an
10259         uninitialized element, as above.
10260         * a-cbdlli.adb (Append): In the version without explicit element,
10261         provide an uninitalized element, as above.
10262         (Allocate): Remove unused version.
10264 2014-02-20  Robert Dewar  <dewar@adacore.com>
10266         * sem_elab.adb: Minor code reorganization (use Nkind_In).
10267         * stringt.adb: Remove temporary pragma Warnings (Off).
10268         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
10269         of Null_String_Id.
10271 2014-02-20  Matthew Heaney  <heaney@adacore.com>
10273         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
10274         index.
10276 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
10278         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
10279         properly the cursor type for subsequent volatile testing in SPARK
10280         mode, when domain is a formal container with an Iterabe aspect.
10282 2014-02-20  Robert Dewar  <dewar@adacore.com>
10284         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
10285         (Set_Specific_Warning_Off): Add Reason argument.
10286         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
10287         (Set_Specific_Warning_Off): Add Reason argument.
10288         * erroutc.adb (Warnings_Entry): Add Reason field
10289         (Specific_Warning_Entry): Add Reason field.
10290         (Warnings_Suppressed): return String_Id for Reason.
10291         (Warning_Specifically_Suppressed): return String_Id for Reason.
10292         * erroutc.ads (Warnings_Entry): Add Reason field.
10293         (Specific_Warning_Entry): Add Reason field.
10294         (Set_Specific_Warning_Off): Add Reason argument.
10295         (Set_Warnings_Mode_Off): Add Reason argument.
10296         (Warnings_Suppressed): return String_Id for Reason.
10297         (Warning_Specifically_Suppressed): return String_Id for Reason.
10298         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
10299         (Warning_Specifically_Suppressed): returns String_Id for Reason
10300         * gnat_rm.texi: Document that Warning parameter is string literal
10301         or a concatenation of string literals.
10302         * par-prag.adb: New handling for Reason argument.
10303         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
10304         for Reason argument.
10305         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
10306         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
10307         * stringt.adb: Set Null_String_Id.
10308         * stringt.ads (Null_String_Id): New constant.
10310 2014-02-20  Robert Dewar  <dewar@adacore.com>
10312         * einfo.ads: Minor comment addition: Etype of package is
10313         Standard_Void_Type.
10314         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
10315         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
10316         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
10317         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
10318         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
10319         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
10320         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
10321         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
10322         Replace all calls with calls to New_Occurrence_Of.
10324 2014-02-20  Robert Dewar  <dewar@adacore.com>
10326         * par-util.adb (Ignore, case of right paren): Make this a
10327         serious error.
10329 2014-02-19  Robert Dewar  <dewar@adacore.com>
10331         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
10332         * debug.adb: Remove -gnatd.X switch, no longer used.
10333         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
10334         now always made.
10336 2014-02-19  Bob Duff  <duff@adacore.com>
10338         * g-socket.ads: Minor: Correct some comments.
10340 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10342         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
10344 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
10346         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
10347         an error on out of range priorities if Relaxed_RM_Semantics.
10348         * sem_prag.adb (Analyze_Pragma): Ditto.
10350 2014-02-19  Bob Duff  <duff@adacore.com>
10352         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
10353         where F denotes the renaming of an enumeration literal, and
10354         issue a specialized error message.
10356 2014-02-19  Matthew Heaney  <heaney@adacore.com>
10358         * a-chtgop.ads (Checked_Index): New operation.
10359         (Next): Changed mode of hash table.
10360         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
10361         (Generic_Read, Reserve_Capacity): Ditto.
10362         (Generic_Equal): Detect tampering.
10363         (Next): Changed mode of hash table, detect tampering.
10364         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
10365         operation.
10366         (Find): Changed mode of hash table.
10367         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
10368         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
10369         tampering.
10370         (Find): Changed mode of hash table, check for tampering.
10371         (Generic_Replace_Element): Check for tampering.
10372         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
10373         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
10374         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
10375         Detect tampering.
10376         (Find, Generic_Replace_Element): Check for tampering.
10377         * a-chtgbo.ads (Checked_Index): New operation.
10378         * a-chtgbo.adb (Checked_Index): New operation
10379         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
10380         (Generic_Read, Next): Ditto.
10381         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
10382         table (Difference, Intersection): Use variable view of
10383         source, detect tampering (Find, Is_Subset, Overlap): Use
10384         variable view of container (Symmetric_Difference, Union):
10385         Detect tampering (Vet): Use Checked_Index to detect tampering
10386         (Constant_Reference, Element, Find): Use variable view of
10387         container.
10388         (Update_Element_Preserving_Key): Detect tampering.
10389         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
10390         of container.
10391         (Is_Subset): Ditto.
10392         (Equivalent_Sets, Overlap): Use Node's Next component.
10393         (Vet): Use Checked_Index to detect tampering.
10394         (Constant_Reference, Element, Find): Use variable view of container.
10395         (Update_Element_Preserving_Key): Detect tampering.
10396         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
10397         Element, Find): Use variable view of container.
10398         (Reference): Rename hash table component.
10399         (Vet): Use Checked_Index to detect tampering.
10401 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
10403         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
10404         of -nostdinc.
10406 2014-02-19  Thomas Quinot  <quinot@adacore.com>
10408         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
10409         against calls without Def_Id.
10411 2014-02-19  Claire Dross  <dross@adacore.com>
10413         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
10414         a-cofove.ads: Add global annotations to subprograms.
10416 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10418         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
10419         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
10420         Initial_Condition no longer requires the presence of pragma
10421         Initialized. Do not try to diagnose whether all variables mentioned in
10422         pragma Initializes also appear in Initial_Condition.
10423         (Collect_Variables): Removed.
10424         (Match_Variable): Removed.
10425         (Match_Variables): Removed.
10426         (Report_Unused_Variables): Removed.
10428 2014-02-19  Thomas Quinot  <quinot@adacore.com>
10430         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
10432 2014-02-19  Robert Dewar  <dewar@adacore.com>
10434         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
10435         reformatting.
10437 2014-02-19  Vincent Celier  <celier@adacore.com>
10439         * prj-part.adb (Parse_Single_Project): Use the fully resolved
10440         project path, with all symbolic links resolved, to check if the
10441         same project is imported with a different unresolved path.
10442         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
10443         changed to Resolved_Path to reflect that all symbolic links
10444         are resolved.
10446 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10448         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
10449         from sem_ch13, for use elsewhere.
10450         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
10451         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
10452         cursor type on the loop variable when the iteration is over o
10453         formal container.
10455 2014-02-19  Vincent Celier  <celier@adacore.com>
10457         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
10458         for an empty Target (Check_Target): Never fail when an empty
10459         target is declared in the configuration project.
10461 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10463         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
10464         the pragma comes fron a predicate aspect and the context is a
10465         record declaration within the scope that declares the type.
10467 2014-02-19  Robert Dewar  <dewar@adacore.com>
10469         * gnat_rm.texi: Minor clarifications.
10470         * expander.adb, sem_aggr.adb: Add comments.
10472 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10474         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
10475         applies to a subprogram body, the name is the current scope,
10476         rather than being declared in the current scope.
10477         (Analyze_Pragma, case No_Return): Handle properly a No_Return
10478         aspect applied to a subprogram body.
10480 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10482         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
10483         of overloaded subprograms, and fix bug in handling of primitive
10484         operation Element.
10486 2014-02-19  Pascal Obry  <obry@adacore.com>
10488         * s-os_lib.adb: Minor reformatting.
10490 2014-02-19  Yannick Moy  <moy@adacore.com>
10492         * expander.adb (Expand): Do nothing inside generics.
10493         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
10494         generics.
10496 2014-02-19  Yannick Moy  <moy@adacore.com>
10498         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
10500 2014-02-19  Robert Dewar  <dewar@adacore.com>
10502         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
10503         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
10504         longer needed).
10506 2014-02-19  Claire Dross  <dross@adacore.com>
10508         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
10509         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
10511 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10513         * sem_ch3.adb (Analyze_Declarations): Analyze
10514         a package contract at the end of the private declarations (if
10515         applicable), otherwise analyze it and the end of the visible
10516         declarations.
10518 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10520         * style.adb (Missing_Overriding): If subprogram is an
10521         instantiation, place warning on the instance node itself,
10522         without mention of the original generic. Do not emit message
10523         if explicit Ada version is older than the introduction of the
10524         overriding indicator.
10526 2014-02-19  Yannick Moy  <moy@adacore.com>
10528         * gnat_rm.texi: Doc clarifications.
10530 2014-02-19  Yannick Moy  <moy@adacore.com>
10532         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
10533         inside a generic.
10535 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10537         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
10538         specified First primitive, rather than by name.
10539         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
10540         and extend error checking for missing primitives and incorrect
10541         signatures.
10543 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10545         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
10546         errors when a Synchronization aspect on an overriding protected
10547         operation does not match the given aspect on the overridden
10548         operation of an ancestor interface.
10550 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10552         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
10553         (Check_Loop_Pragma_Placement): Update
10554         comment on usage. Remove local variables Orig_Stmt and
10555         Within_Same_Sequence. Check that the current Loop_Invariant or
10556         Loop_Variant pragma is grouped together with other such pragmas.
10557         (Is_Loop_Pragma): New routine.
10558         (Prev_In_Loop): Removed.
10560 2014-02-19  Robert Dewar  <dewar@adacore.com>
10562         * par-ch6.adb (P_Return): For extended return, end column lines
10563         up with RETURN.
10564         * par.adb: Minor documentation clarification.
10566 2014-02-19  Yannick Moy  <moy@adacore.com>
10568         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
10569         that Loop_Invariant and Loop_Variant appear consecutively.
10570         * gnat_rm.texi Update documentation of Loop_Invariant and
10571         Loop_Variant pragmas.
10573 2014-02-19  Robert Dewar  <dewar@adacore.com>
10575         * debug.adb: Document -gnatd.X.
10576         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
10577         first token
10578         (Check_Then_Column): Ditto.
10579         * styleg.adb (Check_Then): Allow THEN on line after IF.
10580         (Check_Then): Check THEN placement under control of -gnatd.X
10581         * styleg.ads (Check_Then): Now called even if THEN is not first
10582         token on line.
10583         * stylesw.ads (Style_Check_If_Then_Layout): Document new
10584         relaxed rules.
10585         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
10587 2014-02-19  Robert Dewar  <dewar@adacore.com>
10589         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
10590         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
10591         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
10592         vms_conv.adb: Fix bad layout of IF statements
10594 2014-02-19  Robert Dewar  <dewar@adacore.com>
10596         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
10598 2014-02-19  Robert Dewar  <dewar@adacore.com>
10600         * exp_util.adb: Update comments.
10602 2014-02-19  Doug Rupp  <rupp@adacore.com>
10604         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
10605         * init.c (__gl_float_format): [VMS] New global.
10606         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
10607         representation in effect.
10609 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10611         * exp_ch6.adb Add with and use clause for Exp_Prag.
10612         (Expand_Contract_Cases): Relocated to Exp_Prag.
10613         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
10614         * exp_prag.adb Add with and use clauses for Checks and Validsw.
10615         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
10616         structure of the expanded code to showcase the evaluation of
10617         attribute 'Old prefixes. Add local variable Old_Evals. Expand
10618         any attribute 'Old references found within a consequence. Add
10619         circuitry to evaluate the prefixes of attribute 'Old that
10620         belong to a selected consequence.
10621         (Expand_Old_In_Consequence): New routine.
10622         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
10623         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
10624         potentially unevaluated prefix is always evaluated.
10626 2014-02-19  Robert Dewar  <dewar@adacore.com>
10628         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
10629         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
10630         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
10631         handling for the case of Modify_Tree_For_C, this approach did
10632         not work.
10633         * exp_util.adb (Matching_Standard_Type): New function
10634         (Side_Effect_Free): New top level functions (from
10635         Remove_Side_Effects).
10636         * exp_util.ads (Side_Effect_Free): New top level functions
10637         (moved from body).
10638         * sinfo.ads: Minor comment updates.
10640 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10642         * exp_ch6.adb (Expand_Simple_Function_Return): If return
10643         type is unconstrained and uses the secondary stack, mark the
10644         enclosing function accordingly, to ensure that the value is not
10645         prematurely removed.
10647 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10649         * par.adb Alphabetize the routines in Par.Sync.
10650         (Resync_Past_Malformed_Aspect): New routine.
10651         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
10652         variables. Code and comment reformatting. Detect missing
10653         parentheses on aspects [Refined_]Global and [Refined_]Depends
10654         with a non-null definition.
10655         * par-sync.adb: Alphabetize all routines in this separate unit.
10656         (Resync_Past_Malformed_Aspect): New routine.
10658 2014-02-19  Robert Dewar  <dewar@adacore.com>
10660         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
10661         if Esize values do not match.
10663 2014-02-19  Yannick Moy  <moy@adacore.com>
10665         * sinfo.ads: Minor comment update.
10667 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10669         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
10671 2014-02-19  Thomas Quinot  <quinot@adacore.com>
10673         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
10674         that has the No_Ctrl_Actions flag is a suitable node to be
10675         wrapped if the assigned expression has no finalization actions.
10676         * sem_eval.adb (Eval_Entity_Name): For a compile time known
10677         boolean value, mark the corresponding condition SCO as constant.
10679 2014-02-19  Robert Dewar  <dewar@adacore.com>
10681         * exp_util.adb: Minor reformatting.
10682         * exp_util.ads (Matching_Standard_Type): New function.
10683         * exp_ch7.adb: Minor reformatting.
10685 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10687         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
10688         to find declaration for Cursor, to handle properly the case of
10689         a discriminated iterable type.
10691 2014-02-19  Vincent Celier  <celier@adacore.com>
10693         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
10694         imported library projects with the library ALI dirs, when setting
10695         the object paths.
10696         * prj-env.ads (Ada_Objects_Path): Correct comments about
10697         argument Including_Libraries.
10699 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
10701         * gnat_rm.texi: Minor spelling fixes.
10703 2014-02-19  Doug Rupp  <rupp@adacore.com>
10705         * init.c: Remove unneeded code.
10706         * fe.h (Float_Format): New macro
10707         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
10709 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10711         * sem_prag.adb (Check_Refined_Global_Item):
10712         A state or variable acts as a constituent only it is part of an
10713         encapsulating state and the state has visible refinement.
10715 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10717         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
10718         postcondition for a function when the expression does not mention
10719         'Result but the function has in-out parameters.
10721 2014-02-19  Robert Dewar  <dewar@adacore.com>
10723         * gnat_rm.texi: Add documentation on Value_Size forcing biased
10724         representation.
10726 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10728         * lib-xref.ads Remove the small table of letter and symbol usage as we
10729         already have one.
10731 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10733         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
10734         messages depending on the offending misplaced aspect specifications.
10735         (Diagnose_Misplaced_Aspect_Specifications): New routine.
10737 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10739         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
10740         for iterable aspect primitives.
10741         (Resolve_Iterable_Operation): Use expected signature of iterable
10742         aspect to resolve primitive when overloading is present.
10743         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
10744         (Check_Signature): Removed.
10746 2014-02-19  Yannick Moy  <moy@adacore.com>
10748         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
10749         subunit in GNATprove_Mode.
10750         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
10752 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10754         * lib-xref.ads Alphabetize the contents of table
10755         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
10756         for E_Abstract_State. List all letters and symbols in use.
10757         * sem_prag.adb (Analyze_Abstract_State): Update all calls
10758         to Create_Abstract_State to reflect the new signature.
10759         (Create_Abstract_State): Change subprogram profile and update
10760         the comment on usage. Use the proper location of the state
10761         declaration when creating a new abstract state entity. Do not
10762         generate an external name, but simply reuse the name coming from
10763         the state declaration.
10765 2014-02-19  Robert Dewar  <dewar@adacore.com>
10767         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
10768         declarations get properly inserted in Modify_Tree_For_C mode.
10769         * sinfo.ads: Minor comment addition.
10771 2014-02-19  Robert Dewar  <dewar@adacore.com>
10773         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
10774         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
10776 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10778         * style.adb (Missing_Overriding): Warning does not apply in
10779         language versions prior to Ada 2005.
10780         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
10781         * sem_attr.adb: Add Attribute_Iterable where needed.
10782         * exp_attr.adb: ditto.
10783         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
10784         handle loops and quantified expressions over types that have an
10785         iterable aspect.  Called from Expand_Iterator_Loop.
10786         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
10787         with Iterable aspect.
10788         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
10789         subprograms specified in the Iterable aspect have the proper
10790         signature involving container and cursor.
10791         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
10792         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
10793         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
10794         New procedure to retrieve one of the primitives First, Last,
10795         or Has_Element, from the value of the iterable aspect of a
10796         formal container.
10797         (Is_Container_Element): Predicate to recognize expressions
10798         that denote an element of one of the predefined containers,
10799         for possible optimization.  This subprogram is not currently
10800         used, pending ARG discussions on the legality of the proposed
10801         optimization. Worth preserving for eventual use.
10802         (Is_Iterator): Recognize formal container types.
10803         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
10805 2014-02-19  Robert Dewar  <dewar@adacore.com>
10807         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
10808         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
10809         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
10810         declarations from list of actions.
10811         * output.ads, output.adb (Delete_Last_Char): New procedure.
10812         * sinfo.ads: Document handling of Mod and expression with actions
10813         in Modify_Tree_For_C mode.
10815 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10817         * par-ch9.adb (P_Task): Add a null statement to produce a
10818         well-formed task body when due to a previous syntax error the
10819         statement list is empty.
10821 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10823         * sem_prag.adb (Check_Dependency_Clause): Account
10824         for the case where a state with a non-null refinement matches a
10825         null output list. Comment reformatting.
10826         (Inputs_Match): Copy a solitary input to avoid an assertion failure
10827         when trying to match the same input in multiple clauses.
10829 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
10831         * sem_attr.adb: Minor typo fix.
10833 2014-02-18  Robert Dewar  <dewar@adacore.com>
10835         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
10836         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
10837         (Create_Standard): Create new unsigned types.
10838         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
10839         mode (Expand_N_Reference): Removed, problematic and not needed
10840         for now.
10841         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
10842         not needed for now.
10843         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
10844         * expander.adb: Remove call to Expand_N_Reference (problematic,
10845         and not needed now).
10846         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
10847         * stand.adb: Read and write unsigned type entities.
10848         * stand.ads: Add new unsigned types.
10850 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
10852         * sem_ch4.adb (Analyze_Call): Do not mark a function call
10853         as being inside an assertion expression as the flag is now removed.
10854         (Check_Ghost_Subprogram_Call): Do not query the
10855         In_Assertion_Expression flag as it is now removed, instead use
10856         a predicate function.
10857         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
10858         In_Assertion_Expression flag as it is now removed, instead use
10859         a predicate function.
10860         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
10861         * sem_util.adb Add with and use clause for Sem_Prag.
10862         (In_Assertion_Expression_Pragma): New routine.
10863         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
10864         * sinfo.adb (In_Assertion_Expression): Removed.
10865         (Set_In_Assertion_Expression): Removed.
10866         * sinfo.ads Remove flag In_Assertion_Expression along with its
10867         use in nodes.
10868         (In_Assertion_Expression): Removed along with
10869         pragma Inline.  (Set_In_Assertion_Expression): Removed along
10870         with pragma Inline.
10872 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
10874         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
10875         used together with '-r', '-rf' or '-rnb' options.
10877 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
10879         * sem_attr.adb (Analyze_Attribute): Comment
10880         and code reformatting. Use separate routines to check the
10881         legality of attribute 'Old in certain pragmas. Verify
10882         the use of 'Old, 'Result and locally declared entities
10883         within the prefix of 'Old.
10884         (Check_References_In_Prefix): New routine.
10885         (Check_Use_In_Contract_Cases): New routine.
10886         (Check_Use_In_Test_Case): New routine.
10888 2014-02-18  Vincent Celier  <celier@adacore.com>
10890         * sem_aux.adb (Is_By_Reference_Type): For each components of
10891         a record type, check also if the component is volatile as it
10892         may have an aspect that makes it volatile. If it is, then the
10893         record type is a by reference type.
10895 2014-02-18  Robert Dewar  <dewar@adacore.com>
10897         * exp_attr.adb: Minor reformatting.
10898         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
10899         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
10900         as another case where we don't generate N_Reference nodes for
10901         primitive types.
10902         * expander.adb (Expand): Add call to Expand_N_Reference.
10904 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10906         * sem_prag.adb (Analyze_Refined_Pragma): Remove
10907         local variable Pack_Spec. Refinement pragmas may now apply to
10908         bodies of both visible and private subprograms.
10910 2014-02-06  Robert Dewar  <dewar@adacore.com>
10912         * exp_attr.adb (Expand_Loop_Entry_Attribute):
10913         Minor change (Attr => N) (Expand_Pred_Succ): New name
10914         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
10915         Max): Expand into if expression if Modify_Tree_For_C mode.
10916         (Expand_N_Attribute_Reference, case Min): ditto
10917         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
10918         Max attributes.
10920 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
10922         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
10923         predicate check if this is an internal declaration with
10924         No_Initialization set, as for an expanded aggregate component.
10926 2014-02-06  Doug Rupp  <rupp@adacore.com>
10928         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
10929         conditions with severity of "SUCCESS" or "INFORMATIONAL".
10931 2014-02-06  Yannick Moy  <moy@adacore.com>
10933         * sem_prag.adb (Analyze_Pragma): Analyze pragma
10934         Debug rewritten node before rewriting it as a null statement in
10935         GNATprove mode.
10937 2014-02-06  Robert Dewar  <dewar@adacore.com>
10939         * sem_attr.adb (Min_Max): New procedure.
10940         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
10941         procedure.
10943 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
10945         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
10946         gnatmetric/gnatpp.
10948 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10950         * sem_prag.adb (Analyze_Abstract_State): Update
10951         all calls to Create_Abstract_State to pass the proper state
10952         "declaration".
10953         (Create_Abstract_State): Add new formal parameter
10954         State_Decl along with comment on usage. Establish a link between
10955         the abstract state entity and the state declaration.
10957 2014-02-06  Robert Dewar  <dewar@adacore.com>
10959         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
10960         comparison of unordered enumeration type.
10961         (Analyze_Attribute, case Max): Check for improper comparison of
10962         unordered enumeration type.
10963         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
10964         sem_util.adb.
10965         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
10966         Moved here from Sem_Res.
10968 2014-02-06  Robert Dewar  <dewar@adacore.com>
10970         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
10971         reformatting.
10973 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10975         * sem_ch6.adb (Process_Formals): Error message reformatting.
10977 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10979         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
10980         variable Spec. Do not inherit the null indicator from the
10981         subprogram body when generating the spec.
10983 2014-02-06  Robert Dewar  <dewar@adacore.com>
10985         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
10986         mixed case.
10988 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
10990         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
10991         when the function has a foreign convention, but not if only the
10992         limited return type has such a convention.
10994 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10996         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
10997         variable Spec. Comment reformatting. Use Copy_Separate_Tree
10998         rather than New_Copy_Tree when building the corresponding
10999         subprogram declaration.
11001 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11003         * sem_prag.adb (Analyze_Global_Item): Remove
11004         the mode-related checks on abstract states with enabled external
11005         properties.
11006         (Property_Error): Removed.
11008 2014-02-06  Javier Miranda  <miranda@adacore.com>
11010         * lib-xref.adb (Generate_Reference): When
11011         generating the reference to the first private entity take care
11012         of handling swapped entities.
11014 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
11016         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
11017         gnatmetric.
11019 2014-02-06  Robert Dewar  <dewar@adacore.com>
11021         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
11022         than the word size when operating in Modify_Tree_For_C mode.
11023         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
11025 2014-02-06  Robert Dewar  <dewar@adacore.com>
11027         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
11028         compare is case insensitive.
11029         * gnat_rm.texi: Document that string compare for Warnings Off
11030         is now case insensitive.
11032 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
11034         * gnat_rm.texi: Small wording tweak.
11036 2014-02-06  Pascal Obry  <obry@adacore.com>
11038         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
11039         and Included_Artifact_Patterns attribute definitions.
11041 2014-02-06  Yannick Moy  <moy@adacore.com>
11043         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
11044         SPARK_Mode pragma component for all subprograms, including stubs.
11046 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11048         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
11049         the configuration options of the enclosing context in a
11050         stack-like fasion.
11051         (Analyze_Subprogram_Body_Stub): Maintain the
11052         configuration options of the enclosing context in a stack-like
11053         fashion.
11055 2014-02-06  Robert Dewar  <dewar@adacore.com>
11057         * debug.adb: -gnatd.u sets Modify_Tree_For C
11058         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
11059         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
11060         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
11061         * exp_intr.adb (Expand_Shift): Call expander so we do
11062         Modify_Tree_For_C expansions.
11063         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
11064         if -gnatd.u set.
11066 2014-02-06  Fedor Rybin  <frybin@adacore.com>
11068         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
11069         after the phase 1 of the processing of each aggregated project
11070         to get access to project trees of aggregated projects.
11071         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
11072         If specified, On_New_Tree_Loaded is called after each aggregated
11073         project has been processed succesfully.
11074         (Process): new parameter On_New_Tree_Loaded.
11075         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
11076         callback added after processing of each aggregated project.
11077         (Recursive_Process): new parameter On_New_Tree_Loaded.
11078         (Process): new parameter On_New_Tree_Loaded.
11079         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
11080         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
11081         On_New_Tree_Loaded.
11082         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
11083         On_New_Tree_Loaded.
11085 2014-02-06  Bob Duff  <duff@adacore.com>
11087         * gnat_ugn.texi: Implement --insert-blank-lines and
11088         --preserve-blank-lines switches.
11090 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
11092         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
11093         gnatelim.
11095 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
11097         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
11098         of the pragma on individual objects.
11100 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11102         * einfo.adb Node29 is now used as BIP_Initialization_Call.
11103         (BIP_Initialization_Call): New routine.
11104         (Set_BIP_Initialization_Call): New routine.
11105         (Write_Field29_Name): Add an entry for constants and variables.
11106         * einfo.ads Add new attribute BIP_Initialization_Call and update
11107         its usage in nodes.
11108         (BIP_Initialization_Call): New routine along with pragma Inline.
11109         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
11110         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
11111         Add local declaration Res_Decl. Capture the build-in-place
11112         initialization call when the related object declaration has
11113         created a transient block.
11114         * exp_ch7.adb (Process_Transient_Objects): Add local variable
11115         Fin_Insrt. Recognize a scenario where an object declaration acts
11116         as a transient context and is initialized by a build-in-place
11117         function call.
11119 2014-02-06  Pascal Obry  <obry@adacore.com>
11121         * prj-util.adb (For_Interface_Sources): Fix handling of required
11122         bodies for aggregate libs.
11124 2014-02-06  Robert Dewar  <dewar@adacore.com>
11126         * nlists.ads: Minor comment clarifications.
11128 2014-02-06  Robert Dewar  <dewar@adacore.com>
11130         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
11131         if gnatd.V set.
11132         * opt.ads (Modify_Tree_For_C): New flag.
11133         * output.ads, output.adb (Last_Char): New function.
11135 2014-02-06  Pascal Obry  <obry@adacore.com>
11137         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
11138         share/gpr for cross-builds.
11140 2014-02-06  Robert Dewar  <dewar@adacore.com>
11142         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
11143         Minor reformatting and code clean ups.
11145 2014-02-06  Pascal Obry  <obry@adacore.com>
11147         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
11148         * prj.ads: Minor typo fix in comment.
11150 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11152         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
11153         local variable Expr. Flag clauses with extra parenthesis as this
11154         is not allowed by the syntax of the pragma. Code reformatting.
11156 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11158         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
11159         variables. Rename variabme Tnn to Temp. Do not create a temporary
11160         if assertions are disabled. Find enclosing routine _Postconditions
11161         and insert the temporary that captures the value of the prefix
11162         before the routine.
11163         * exp_ch6.adb (Build_Postconditions_Procedure):
11164         Insert the generated _Postconditions routine
11165         before the first source declaration of the related
11166         subprogram.
11167         (Insert_After_Last_Declaration): Removed.
11168         (Insert_Before_First_Source_Declaration): New routine.
11170 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11172         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
11173         Utility to determine whether current expansion is for the body
11174         of a predefined primitive operation.
11175         (Make_Predicate_Check): Use Within_Internal_Subpgram
11176         * checks.adb (Apply_Predicate_Check): Use
11177         Within_Internal_Subprogram
11178         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
11180 2014-02-06  Pascal Obry  <obry@adacore.com>
11182         * prj.ads, prj-util.adb: Minor reformatting.
11184 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11186         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
11187         Take into account the Split_PPC flag to ensure that conjuncts
11188         in a composite postcondition aspect are tested in source order.
11190 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11192         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
11193         use of SPARK_Mode.
11194         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
11195         illegal use of SPARK_Mode.
11196         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
11197         * sem_prag.adb (Analyze_Pragma): Code reformatting.
11198         * sem_util.adb Add with and use clause for Aspects.
11199         (Check_SPARK_Mode_In_Generic): New routine.
11200         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
11202 2014-02-06  Thomas Quinot  <quinot@adacore.com>
11204         * a-calend.adb (Formatting_Operations.Split): Ensure that
11205         Time_Error is raised for invalid time values.
11207 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
11209         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
11210         in GNATprove_Mode.
11212 2014-02-06  Robert Dewar  <dewar@adacore.com>
11214         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
11215         * exp_ch3.adb (Build_Dcheck_Function): Set
11216         Is_Discriminant_Check_Function.
11218 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11220         * exp_ch7.adb (Is_Subprogram_Call): Inspect
11221         the original tree in certain cases where a construct has been
11222         factored out and replaced by a reference to a temporary.
11224 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
11226         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
11227         parameters when propagating predicate function to full view.
11228         (Find_Type_Of_Object): Freeze base type of object type to catch
11229         premature use of discriminated private type without a full view.
11231 2014-02-06  Robert Dewar  <dewar@adacore.com>
11233         * sprint.adb: Minor reformatting.
11235 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11237         * exp_ch4.adb (Process_Transient_Object): Add local variable
11238         Temp_Ins. When the transient object is initialized by an
11239         aggregate, the hook must capture the object after the last
11240         component assignment takes place.
11241         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
11242         routine Is_Subprogram_Call.
11243         (Is_Subprogram_Call): Inspect an
11244         aggregate that has been heavily expanded for subprogram calls.
11245         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
11246         and Temp_Ins.  Remove the nested declare block and adjust the
11247         indentation. When the transient object is initialized by an
11248         aggregate, the hook must capture the object after the last
11249         component assignment takes place.
11251 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11253         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
11254         external states with enabled properties that do not match the
11255         global mode.
11256         (Property_Error): New routine.
11257         * sem_res.adb (Property_Error): New routine.
11258         (Resolve_Actuals): Detect illegal uses of external variables with
11259         enabled properties in procedure calls that do not match the mode of
11260         the corresponding formal parameter.
11262 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
11264         * sem_util.adb (Has_Enabled_Property): Rename
11265         formal parameter Prop_Nam to Property. Update the comment on usage
11266         and all occurrences in the body. Add local variable Prop_Nam. When
11267         inspecting a property with an expression, the property name
11268         appears as the first choice of the component association.
11270 2014-02-04  Robert Dewar  <dewar@adacore.com>
11272         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
11274 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
11276         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
11277         for consistency with other messages.
11279 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11281         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
11282         iterator, indicate that the element is a constant if the container
11283         type does not have a variable indexing aspect.
11284         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
11285         marked as constant, do not reset its Ekind, to ensure that
11286         container elements in an element loop are not modified if the
11287         container (e.g. a hashed set) only has a constant indexing aspect.
11289 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
11291         * g-souinf.ads: Subprograms in this unit are actually not pure.
11292         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
11293         * einfo.ads (Is_Pure): Update doc to match implementation.
11295 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
11297         * exp_ch13.adb: Minor spelling fix.
11299 2014-02-04  Robert Dewar  <dewar@adacore.com>
11301         * opt.ads: Minor comment update.
11303 2014-02-04  Robert Dewar  <dewar@adacore.com>
11305         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
11306         instead of Replace.
11308 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11310         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
11311         on null expressions if component type is non-null, when the
11312         corresponding association covers an empty range of index values.
11314 2014-02-04  Robert Dewar  <dewar@adacore.com>
11316         * sinfo.ads: Further comments on N_Expression_With_Actions node.
11318 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
11320         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
11321         variables Out_Items and Ref_Global. Remove local constant
11322         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
11323         and D8. Remove the useless collection of global items as this
11324         was a leftover from an earlier version of the routine. Move
11325         several routines out to avoid deep nesting and indentation.
11326         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
11327         parameter Do_Checks to Post_Errors. Update the comment on usage.
11328         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
11329         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
11330         to Post_Errors. Update the comment on usage. Account for the
11331         case where a self referential state may have a null input_list.
11332         (Is_Self_Referential): New routine.
11334 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11336         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
11337         entity renames an expression, as in the case of an object of
11338         an unconstrained type initialized by a function call, defer the
11339         rewriting of the expression to the expander.
11340         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
11341         'Alignment): If the entity renames an expression, introduce
11342         temporary to capture value, and rewrite original declaration to
11343         use temporary.
11345 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
11347         * g-comlin.adb: Minor typo fix.
11349 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
11351         * freeze.adb (Freeze_All): Types derived from a formal
11352         access_to_classwide type do not have a finalization master.
11354 2014-02-04  Robert Dewar  <dewar@adacore.com>
11356         * sprint.adb: Minor reformatting.
11358 2014-02-04  Robert Dewar  <dewar@adacore.com>
11360         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
11361         cases where Actions is a null list.
11362         * sinfo.ads (N_Expression_With_Actions): Actions can be
11363         temporarily empty during semantic analysis, but must be non-empty
11364         in the final expanded tree.
11366 2014-01-31  Robert Dewar  <dewar@adacore.com>
11368         * exp_ch9.adb: Minor reformatting.
11370 2014-01-31  Emmanuel Briot  <briot@adacore.com>
11372         * g-comlin.adb (Set_Command_Line): Take the switches
11373         configuration from the Command_Line_Config.
11375 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
11377         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
11378         refinement clause.
11380 2014-01-31  Vincent Celier  <celier@adacore.com>
11382         * projects.texi: Add more documentation about others used as an
11383         index in indexed attributes.
11385 2014-01-31  Robert Dewar  <dewar@adacore.com>
11387         * gnat_ugn.texi: Minor update.
11388         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
11389         * exp_util.adb: Minor reformatting.
11391 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11393         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
11394         depends on data that is not private to the protected object,
11395         and potentially modifiable in unsynchronized fashion.
11397 2014-01-31  Yannick Moy  <moy@adacore.com>
11399         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
11400         GNATprove_Mode.
11402 2014-01-31  Robert Dewar  <dewar@adacore.com>
11404         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
11405         for Unknown_Package.
11406         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
11408 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
11410         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
11411         the logic that generates a runtime check to determine the
11412         controlled status of the object about to be allocated or
11413         deallocated. Class-wide types now always use a runtime check
11414         even if they appear as generic actuals.
11415         (Find_Object): Detect
11416         a special case that involves interface class-wide types because
11417         the object appears as a complex expression.
11419 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11421         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
11422         subprogram with an incomplete untagged formals on the list of
11423         private dependents, to verify that the type is properly completed
11424         in the private part.
11425         * sem_attr.adb: Code clean up.
11427 2014-01-31  Robert Dewar  <dewar@adacore.com>
11429         * exp_ch6.adb: Minor reformatting.
11431 2014-01-31  Vincent Celier  <celier@adacore.com>
11433         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
11434         when Pkg is unknown.
11436 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
11438         * sem_res.adb (Resolve_Entity_Name): Comment
11439         reformatting. Allow volatile objects in various generated checks.
11441 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11443         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
11444         component association, set the etype of the identifier, for
11445         SPARK use.
11447 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
11449         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
11450         declared in a package, not checks can apply to the subprogram.
11452 2014-01-31  Robert Dewar  <dewar@adacore.com>
11454         * erroutc.adb (Validate_Specific_Warnings): Warnings are
11455         controlled -gnatw.W.
11456         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
11457         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
11459 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
11461         * exp_disp.adb: Update comments.
11463 2014-01-31  Yannick Moy  <moy@adacore.com>
11465         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
11466         Save_Global_References): Guard access to expression in aspect.
11468 2014-01-31  Yannick Moy  <moy@adacore.com>
11470         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
11471         Issue an error when the pragma is applied to a generic unit,
11472         a generic declaration, or inside a generic.
11474 2014-01-31  Yannick Moy  <moy@adacore.com>
11476         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
11477         entity.
11479 2014-01-31  Robert Dewar  <dewar@adacore.com>
11481         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
11482         reformatting.
11484 2014-01-31  Tristan Gingold  <gingold@adacore.com>
11486         * exp_disp.adb: Add a historic note.
11488 2014-01-31  Robert Dewar  <dewar@adacore.com>
11490         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
11491         Process_Deferred_References.
11493 2014-01-31  Yannick Moy  <moy@adacore.com>
11495         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
11496         ineffective pragma Warnings(Off) in GNATprove_Mode.
11498 2014-01-31  Bob Duff  <duff@adacore.com>
11500         * s-taskin.ads: Minor comment fix.
11501         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
11502         just direct dependents. If this is actually an abort, each task
11503         will take care of aborting its dependents, so all dependents will
11504         get aborted, as before. However, when this is called the second
11505         time from Vulnerable_Complete_Master "for convenience" (i.e. to
11506         kill off tasks waiting at terminate alternatives), aborting
11507         indirect dependents is wrong, because it causes some unrelated
11508         tasks to get aborted.
11510 2014-01-31  Robert Dewar  <dewar@adacore.com>
11512         * sem_ch4.adb: Minor reformatting.
11514 2014-01-31  Robert Dewar  <dewar@adacore.com>
11516         * exp_ch2.adb: New calling sequence for Is_LHS.
11517         * frontend.adb: Add call to Process_Deferred_References.
11518         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
11519         (Deferred_References): New table.
11520         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
11521         entries.
11522         (Find_Expanded_Name): Ditto.
11523         * sem_res.adb: New calling sequence for Is_LHS.
11524         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
11525         * sem_warn.adb: Call Process_Deferred_References before issuing
11526         warnings.
11528 2014-01-31  Tristan Gingold  <gingold@adacore.com>
11530         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
11531         use of System_Tasking_Protected_Objects_Single_Entry.
11532         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
11533         of Protected_Single_Entry_Call.
11534         (Expand_N_Timed_Entry_Call): Remove single_entry case.
11535         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
11536         single_entry case.
11537         (Make_Disp_Timed_Select_Body): Likewise.
11538         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
11539         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
11540         Self_Id parameter.
11541         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
11542         (Wait_For_Completion_With_Timeout): Remove.
11543         (Protected_Single_Entry_Call): Remove Mode parameter
11544         (always Simple_Call).
11545         (Service_Entry): Remove Self_Id constant (not used anymore).
11546         (Timed_Protected_Single_Entry_Call): Remove.
11547         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
11548         (Protected_Single_Entry_Call): Remove Mode parameter.
11550 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11552         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
11553         * einfo.ads (Get_Pragma): Update the comment on special pragmas
11554         handled by this routine.
11555         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
11556         to the contract of the related subprogram body.
11557         * sem_util.adb (Add_Contract_Item): Handle the insertion of
11558         pragma Refined_Post into the contract of a subprogram body.
11559         * sinfo.ads Update the documentation of node N_Contract.
11560         * sem_res.adb (Resolve_Entity_Name): Add a guard
11561         to detect abstract states and variables only when checking the
11562         SPARK 2014 rules concerning volatile object placement.
11564 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11566         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
11567         null is compatible with any access type.
11569 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11571         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
11572         placement is not in a package.
11574 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11576         * sem_util.adb (Has_Enabled_Property): Compare the character field of
11577         the sole property.
11579 2014-01-29  Robert Dewar  <dewar@adacore.com>
11581         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
11582         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
11583         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
11585 2014-01-29  Robert Dewar  <dewar@adacore.com>
11587         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
11588         * sem_warn.adb (Check_References): Suppress warnings if inside
11589         Initial_Condition pragma.
11591 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11593         * sem_prag.adb (Check_Missing_Part_Of): List all values of
11594         State_Space_Kind for readability reasons. Do not emit an error on
11595         a private item when the enclosing package lacks aspect/pragma
11596         Abstract_State. Do not emit an error on a private package
11597         instantiation when the corresponding generic template lacks
11598         visible state.
11599         (Has_Visible_State): New routine.
11600         * sem_util.adb (Find_Placement_In_State_Space): The visible
11601         declarations of any kind of child units in general act as proper
11602         placement location.
11604 2014-01-29  Robert Dewar  <dewar@adacore.com>
11606         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
11607         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
11608         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
11609         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
11610         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
11611         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
11612         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
11613         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
11614         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
11615         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
11616         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
11617         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
11618         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
11619         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
11620         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
11621         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
11622         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
11623         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
11624         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
11625         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
11626         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
11627         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
11628         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
11629         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
11630         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
11631         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
11632         s-regpat.adb, s-secsta.adb, s-stalib.ads,
11633         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
11634         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
11635         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
11636         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
11637         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
11639 2014-01-29  Robert Dewar  <dewar@adacore.com>
11641         * expander.adb: Minor reformatting.
11643 2014-01-29  Javier Miranda  <miranda@adacore.com>
11645         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
11646         previous patch.
11648 2014-01-29  Javier Miranda  <miranda@adacore.com>
11650         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
11651         that checks if an interface types defines the predefined "="
11652         function because the compiler was erroneously not generating the
11653         predefined "=" primitive as soon as the name of some interface
11654         primitive is "=" (formals were not checked).
11656 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11658         * expander.adb (Expander): In GNATprove mode, do not process
11659         transient scopes: they are in general not created in this mode,
11660         and an attempt to examine them will lead to constraint errors when
11661         processing configuration pragmas that have analyzable expressions.
11663 2014-01-29  Vincent Celier  <celier@adacore.com>
11665         * clean.adb (Gnatclean): Fail if main project is an aggregate
11666         project or if there is an aggregate library project in the
11667         project tree.
11668         * gnatcmd.adb: Fail if the main project is an aggregate project
11669         or if there is an aggegate library project in the project tree.
11670         * make.adb (Initialize): : Fail if main project is an aggregate
11671         project or if there is an aggregate library project in the
11672         project tree.
11673         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
11674         * prj-makr.adb (Initialize): Fail if the main project is an
11675         aggregate project or an aggregate library project.
11677 2014-01-29  Vincent Celier  <celier@adacore.com>
11679         * prj-part.adb (Check_Import_Aggregate): New procedure
11680         to check if an imported project is an aggregate project.
11681         (Parse_Single_Project): Call Check_Import_Aggregate
11682         * projects.texi: Document that aggregate projects cannot be
11683         extended or imported.
11685 2014-01-29  Robert Dewar  <dewar@adacore.com>
11687         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
11688         reformatting and code clean up.
11689         * gnat_ugn.texi: Add documentation section on Atomic Variables
11690         and Optimization.
11692 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11694         * einfo.adb Flag264 is now unused.
11695         (Has_Body_References): Removed.
11696         (Set_Has_Body_References): Removed.
11697         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
11698         * einfo.ads Update the comment on usage of attribute
11699         Body_References. Remove attribute Has_Body_References and its
11700         usage in nodes.
11701         (Has_Body_References): Removed along with pragma Inline.
11702         (Set_Has_Body_References): Removed along with pragma Inline.
11703         * sem_prag.adb (Analyze_Global_Item): Move the call to
11704         Record_Possible_Body_Reference in the state related checks
11705         section. Add a comment intended function.
11706         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
11707         in the state related checks section. Add a comment intended function.
11708         (Analyze_Refinement_Clause): Cleanup the illegal body reference
11709         reporting. Add a comment on timing of error reporting.
11710         (Record_Possible_Body_Reference): Reimplement the routine.
11712 2014-01-29  Vincent Celier  <celier@adacore.com>
11714         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
11715         unit-based languages.
11716         (Mains.Complete_Mains.Do_Complete): Use the source file project
11717         tree when calling Find_File_Add_Extension. Use the correct
11718         project name when reporting an error.
11720 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11722         * aspects.adb Add an entry for aspect Part_Of in table
11723         Canonical_Aspect.
11724         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
11725         Aspect_Argument, Aspect_Names and Aspect_Delay.
11726         * atree.h Define Elist9.
11727         * atree.adb (Elist9): New routine.
11728         (Set_Elist9): New routine.
11729         * atree.ads (Elist9): New routine.
11730         (Set_Elist9): New routine.
11731         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
11732         the list of node usage.  Remove Refined_State from the list of
11733         node usage.
11734         (Encapsulating_State): New routine.
11735         (Get_Pragma):
11736         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
11737         (Refined_State): Removed.
11738         (Set_Encapsulating_State): New routine.
11739         (Set_Part_Of_Constituents): New routine.
11740         (Set_Refined_State): Removed.
11741         (Write_Field9_Name): Add an entry
11742         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
11743         Encapsulating_State. Remove the entry for Refined_State.
11744         * einfo.ads Add new attributes Encapsulating_State
11745         and Part_Of_Constituents alond with their usage in
11746         entities. Remove attribute Refined_State along with its
11747         usage in entities.
11748         (Encapsulating_State): New routine and
11749         pragma Inline.  (Get_Pragma): Update the comment on usage.
11750         (Part_Of_Constituents): New routine and pragma Inline.
11751         (Refined_State): Removed along with pragma Inline.
11752         (Set_Encapsulating_State): New routine and pragma Inline.
11753         (Set_Part_Of_Constituents): New routine and pragma Inline.
11754         (Set_Refined_State): Removed along with pragma Inline.
11755         * par-prag.adb Pragma Part_Of does not need any special processing
11756         by the parser.
11757         * sem_ch3.adb (Analyze_Declarations): Remove local variables
11758         Body_Id and Prag. Call separate routines to analyze the
11759         contract of a package [body].
11760         (Analyze_Object_Contract):
11761         Update the comment on usage. Remove local variables
11762         Items and Nam. Use Get_Pragma rather than traversing the
11763         classification list.  Verify whether the lack of indicator
11764         Part_Of agrees with the placement of the variable in state space.
11765         (Analyze_Object_Declaration): Initialize the encapsulating state
11766         of a variable.  (Requires_State_Refinement): Moved to sem_util.
11767         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
11768         (Analyze_Package_Contract): New routine.
11769         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
11770         (Analyze_Package_Contract): New routine.
11771         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
11772         state and Part_Of constituents.
11773         * sem_ch13.adb (Analyze_Aspect_Specifications):
11774         Add processing for aspect Part_Of. Update all
11775         calls to Decorate_Delayed_Aspect_And_Pragma.
11776         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
11777         not need any special processing at freeze time.
11778         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
11779         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
11780         update the associated comment.
11781         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
11782         (Analyze_Abstract_State): Add new global variable State_Id. Remove
11783         local constants Errors and Loc. Remove local variables Is_Null
11784         and State_Nam. Create the entity of the abstract state on the
11785         spot, before all remaining checks are performed. Verify that a
11786         missing Part_Of option agrees with the placement of the abstract
11787         state within the state space.
11788         (Analyze_Depends_In_Decl_Part):
11789         Add new global variables Constits_Seen and States_Seen. Check
11790         that a state and a corresponding constituent do not appear
11791         in pragma [Refined_]Depends.
11792         (Analyze_Global_In_Decl_Part):
11793         Add new global variables Constits_Seen and States_Seen. Check
11794         that a state and a corresponding constituent do not appear
11795         in pragma [Refined_]Global.
11796         (Analyze_Global_Item):
11797         Remove the now obsolete code that deals with Part_Of.
11798         Add the entity of the global item to the list of processed
11799         items.  (Analyze_Initializes_In_Decl_Part): Add new global
11800         variables Constits_Seen and States_Seen. Check that a state
11801         and a corresponding constituent do not appear in pragma
11802         Initializes.
11803         (Analyze_Initialization_Item): Add the entity
11804         of the initialization item to the list of processed items.
11805         (Analyze_Input_Item): Add the entity of the initialization
11806         item to the list of processed items.
11807         (Analyze_Input_Output):
11808         Remove the now obsolete code that deals with Part_Of.  Add the
11809         entity of the input/output to the list of processed items.
11810         (Analyze_Part_Of): New routine.
11811         (Analyze_Part_Of_Option): Remove
11812         local constant Par_State. Add local constant Encaps and local
11813         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
11814         the option. Turn the related state into a Part_Of constituent
11815         if the option is legal.
11816         (Analyze_Pragma): Add processing
11817         for pragma Part_Of.
11818         (Analyze_Refined_State_In_Decl_Part):
11819         Remove global constants Pack_Body and Spec_Id. Remove
11820         global variables Abstr_States and Hidden_States. Add new
11821         global variables Available_States, Body_Id, Body_States and
11822         Spec_Id. Add new local constant Body_Decl. Reimplement the
11823         logic that extracts the states available for refinement from
11824         the related package and the body hidden states of the said
11825         package.
11826         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
11827         (Check_Applicable_Policy): Alphabetize body.
11828         (Check_Dependency_Clause): Replace Refined_State
11829         with Encapsulating_State.
11830         (Check_Matching_Constituent):
11831         Reimplement the logic that determines whether an item is a valid
11832         / invalid constituent of the current refined state. Return when
11833         a construct does not denote a valid abstract state. Extract the
11834         list of Part_Of constituents for further analysis. Check that all
11835         Part_Of constituents of a state have been used in its refinement.
11836         (Check_Matching_State): Update the comment on usage. Operate
11837         on the list of available states.
11838         (Check_Missing_Part_Of): New routine.
11839         (Check_Refined_Global_Item): Replace Refined_State
11840         with Encapsulating_State.
11841         (Check_State_And_Constituent_Use): New routine.
11842         (Create_Abstract_State): New routine.
11843         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
11844         (Is_Part_Of): Removed.
11845         (Collect_Body_States): New routine.
11846         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
11847         (Collect_Hidden_States): Removed.
11848         (Report_Unrefined_States): Change the profile of the procedure along
11849         with the comment on usage.
11850         (Report_Unused_Constituents): New routine.
11851         (Report_Unused_Hidden_States): Removed.
11852         (Report_Unused_States): New routine.
11853         * sem_prag.ads (Check_Missing_Part_Of): New routine.
11854         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
11855         appear in the classification pragmas of a package instantiation
11856         or a variable.
11857         (Find_Placement_In_State_Space): New routine.
11858         (Is_Child): Removed.
11859         (Is_Child_Or_Sibling): Remove formal
11860         parameter Private_Child. Remove the private child checks.
11861         (Requires_State_Refinement): Moved from sem_ch3.
11862         * sem_util.ads Add new type State_Space_Kind along with
11863         comment on its usage and values.
11864         (Add_Contract_Item): Update the comment on usage.
11865         (Find_Body_Discriminal): Alphabetize spec.
11866         (Find_Placement_In_State_Space): New routine.
11867         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
11868         and update the comment on usage.
11869         (Requires_State_Refinement): Moved from sem_ch3.
11870         * sinfo.ads: Update the documentation of N_Contract.
11871         * snames.ads-tmpl The predefined name for Part_Of is now used
11872         to denote a pragma. Add Pragma_Id for Part_Of.
11874 2014-01-29  Emmanuel Briot  <briot@adacore.com>
11876         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
11877         machine as needed.
11878         (Dump): New subprogram.
11880 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11882         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
11883         Expand_Entry_Declaration to factorize code.
11885 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11887         * checks.adb: minor clarification.
11888         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
11889         search for primitive operations to the entities that immediately
11890         follow the type declaration.
11892 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11894         * exp_ch9.adb (Build_Protected_Entry): Do not call
11895         Complete_Entry_Body anymore.
11896         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
11897         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
11899 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
11901         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
11902         string when the Name input bigger than allowed. Adapt the function
11903         specification.
11905 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11907         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
11908         if expression is within a case_expression of if_expression.
11910 2014-01-29  Robert Dewar  <dewar@adacore.com>
11912         * exp_ch9.adb, inline.ads: Minor reformatting.
11914 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11916         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
11918 2014-01-29  Yannick Moy  <moy@adacore.com>
11920         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
11921         SPARK_Mode_Pragma components to be able to analyze generic
11922         instance.
11923         * sem_ch12.adb (Analyze_Package_Instantiation,
11924         Inline_Instance_Body, Need_Subprogram_Instance_Body,
11925         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
11926         for future analysis of the instance.
11927         (Instantiate_Package_Body,
11928         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
11929         from instantiation to analyze the instance.
11931 2014-01-29  Robert Dewar  <dewar@adacore.com>
11933         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
11934         reorganization.
11936 2014-01-29  Yannick Moy  <moy@adacore.com>
11938         * gnat_rm.texi: Update description of SPARK_Mode pragma.
11940 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11942         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
11944 2014-01-29  Thomas Quinot  <quinot@adacore.com>
11946         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
11948 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11950         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
11951         resulting string is an internal entity. and thus requires no
11952         initialization. This is relevant when Initialize_ Scalars is
11953         enabled, because the resultant spurious initialization may lead to
11954         secondary stack anomalies that produce a mangled name for a task.
11956 2014-01-29  Yannick Moy  <moy@adacore.com>
11958         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
11959         not inherited from spec anymore. Check consistency
11960         rules after processing of declarations.
11961         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
11962         from spec anymore. Check consistency rules after processing of
11963         declarations.
11964         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
11965         packages.
11966         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
11967         consistency rules.
11969 2014-01-27  Robert Dewar  <dewar@adacore.com>
11971         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
11972         to unordered msg.
11973         (Resolve_Range): Add type name/location to unordered msg.
11975 2014-01-27  Claire Dross  <dross@adacore.com>
11977         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
11978         Capacity) is only called with Capacity >= Length (Source) and
11979         Capacity in Capacity_Range.
11980         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
11981         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
11982         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
11983         in the code is this is not the case.
11985 2014-01-27  Thomas Quinot  <quinot@adacore.com>
11987         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
11988         selected component in an instance where the component of the
11989         actual is not visibile at instantiation.
11991 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11993         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
11994         has a dynamic predicate, generate freeze node for Actual_Subtype
11995         at once, because the declaration of the corresponding predicate
11996         function will make reference to it.
11998 2014-01-27  Tristan Gingold  <gingold@adacore.com>
12000         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
12002 2014-01-27  Robert Dewar  <dewar@adacore.com>
12004         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
12005         for 2**X optimization.
12007 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12009         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
12010         explicitly whether value is in range of Character, because the
12011         library is typically compiled with range checks disabled, and
12012         we cannot rely on the implicit check on the argument of 'Val.
12014 2014-01-27  Vincent Celier  <celier@adacore.com>
12016         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
12017         not the Target to itself.
12019 2014-01-27  Robert Dewar  <dewar@adacore.com>
12021         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
12022         changes to avoid incorrect use of unordered enum types.
12024 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12026         * sem_ch4.adb: Minor reformatting.
12028 2014-01-27  Robert Dewar  <dewar@adacore.com>
12030         * scn.adb (Check_End_Of_Line): Removed.
12031         (Error_Long_Line): Removed.
12032         (Determine_License): Use versions of above routines from Scanner.
12033         * scng.adb (Check_End_Of_Line): Moved to spec.
12034         (Error_Long_Line): Removed, no longer used.
12035         * scng.ads (Check_End_Of_Line): Moved here from body.
12037 2014-01-27  Tristan Gingold  <gingold@adacore.com>
12039         * exp_ch7.adb (Build_Cleanup_Statements): Call
12040         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
12041         for protected body.
12042         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
12043          Remove Service_Name variable.
12044         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
12045         factorize code from the above subprograms.
12046         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
12048 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
12050         * einfo.adb (Has_Option): Reimplemented.
12051         * sem_prag.adb (Analyze_Refinement_Clause): Add global
12052         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
12053         External_Constit_Seen and State. Add local variables Body_Ref,
12054         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
12055         avoid a cumbersome while pool. Verify the legality of an external
12056         state and relevant properties.
12057         (Check_External_Property): New routine.
12058         (Check_Matching_State): Remove parameter profile
12059         and update comment on usage.
12060         (Collect_Constituent): Store the
12061         relevant external property of a constituent.
12062         * sem_util.adb (Async_Readers_Enabled): Update the call to
12063         Has_Enabled_Property.
12064         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
12065         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
12066         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
12067         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
12068         Update comment on usage. Reimplement the logic to recognize the various
12069         formats of properties.
12071 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12073         * par-ch5.adb: Minor reformatting.
12075 2014-01-27  Tristan Gingold  <gingold@adacore.com>
12077         * s-tposen.ads: Harmonize style and comments.
12079 2014-01-27  Vincent Celier  <celier@adacore.com>
12081         * projects.texi: Document that shared library projects, by
12082         default, cannot import projects that are not shared library
12083         projects.
12085 2014-01-27  Robert Dewar  <dewar@adacore.com>
12087         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
12088         of Rewrite.
12090 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12092         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
12093         any other exception is raised.
12094         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
12095         still necessary to perform a conversion in order to remove overlong
12096         encodings.
12098 2014-01-27  Robert Dewar  <dewar@adacore.com>
12100         * exp_smem.adb: Minor reformatting.
12102 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12104         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
12106 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12108         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
12109         nodes for operands to the original node for the call, to preserve
12110         Original_Node pointers within the resolved operands, given that
12111         they may have been rewritten as well. Previous approach copied
12112         the operands into a new tree and lost those pointers.
12114 2014-01-27  Claire Dross  <dross@adacore.com>
12117         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
12119 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12121         * sem_util.adb (Check_Internal_Protected_Use): A call through
12122         an anonymous access parameter of the current protected function
12123         is not a potential modification of the current object.
12125 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12127         * a-cobove.adb (Reserve_Capacity): Procedure raises
12128         Capacity_Error, not Constraint_Error, when request cannot be
12129         satisfied.
12131 2014-01-27  Vincent Celier  <celier@adacore.com>
12133         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
12134         not the Target to itself.
12136 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12138         * exp_ch4.adb (Expand_Concatenate): If the target of the
12139         concatenation is a library-level entity, always use the off-line
12140         version of concatenation, regardless of optimization level. This
12141         is space-efficient, and prevents linking problems when some
12142         units are compiled with different optimization levels.
12144 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12146         * sem_ch5.adb: Code clean up.
12148 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12150         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
12151         when an array or container iterator includes a subtype indication,
12152         which is only legal in an element iterator.
12154 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12156         * exp_ch7.adb: Minor reformatting.
12158 2014-01-27  Robert Dewar  <dewar@adacore.com>
12160         * opt.adb (SPARK_Mode): Default for library units is None rather
12161         than Off.
12162         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
12163         no longer ordered.
12164         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
12165         possibility.
12166         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
12168 2014-01-27  Robert Dewar  <dewar@adacore.com>
12170         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
12171         Suspicious_Labels table if we have identifier; followed by loop
12172         or block.
12173         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
12174         * par.adb (Suspicious_Labels): New table.
12176 2014-01-27  Robert Dewar  <dewar@adacore.com>
12178         * exp_aggr.adb (Check_Bounds): Reason is range check, not
12179         length check.
12181 2014-01-27  Yannick Moy  <moy@adacore.com>
12183         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
12184         reference.
12185         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
12186         function now.
12187         (Add_SPARK_Xrefs): Include references to constants.
12188         * spark_xrefs.ads Document new character 'c' for references to
12189         constants.
12191 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12193         * exp_smem.adb (Add_Write_After): For a function call, insert write as
12194         an after action in a transient scope.
12196 2014-01-27  Thomas Quinot  <quinot@adacore.com>
12198         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
12199         to a shared variable as an OUT formal in a call to an init proc,
12200         the 'Read call must be emitted after, not before, the call.
12202 2014-01-27  Robert Dewar  <dewar@adacore.com>
12204         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
12206 2014-01-27  Robert Dewar  <dewar@adacore.com>
12208         * a-wichha.adb (Character_Set_Version): Change to output proper
12209         value.
12211 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
12213         * einfo.adb (Is_Input_Only_State): Removed.
12214         (Is_Non_Volatile_State): Removed.
12215         (Is_Output_State): Removed.
12216         * einfo.ads (Is_Input_Only_State): Remove attribute and
12217         subprogram. Update related entity.
12218         (Is_Non_Volatile_State):
12219         Remove attribute and subprogram. Update related entity.
12220         (Is_Output_State): Removed attribute and subprogram. Update
12221         related entity.
12222         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
12223         generated code.
12224         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
12225         an object, not just variables.
12226         (Analyze_Object_Contract): New routine.
12227         (Analyze_Variable_Contract): Removed.
12228         (Process_Discriminants): Detect an illegal use of volatile
12229         discriminant in SPARK mode.
12230         * sem_ch5.adb (Analyze_Iterator_Specification):
12231         Detect an illegal use of volatile loop variable.
12232         (Analyze_Loop_Parameter_Specification): Detect an illegal use
12233         of volatile loop variable.
12234         * sem_ch6.adb (Process_Formals): Update the volatile object
12235         detection. Detect an illegal formal of mode IN OUT or OUT in
12236         SPARK mode. Enhance the error messages with references.
12237         * sem_ch12.adb (Instantiate_Object): Update the volatile object
12238         detection. Enhance the error messages with references.
12239         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
12240         messages with references.
12241         (Analyze_Contract_Case): Enhance the error messages with references.
12242         (Analyze_External_Property): Call Check_Duplicate_Property to process
12243         an external property.
12244         (Analyze_External_Property_In_Decl_Part): New routine.
12245         (Analyze_External_State_In_Decl_Part): Removed.
12246         (Analyze_Global_Item): Detect an illegal
12247         use of a volatile constant. Detect an illegal use
12248         of a variable with enabled Effective_Reads. Enhance
12249         the error messages with references. Remove obsolete
12250         checks concerning Input_Only and Output_Only states.
12251         (Analyze_Initialization_Item): Enhance the error messages
12252         with references.
12253         (Analyze_Initializes_In_Decl_Part): Do not
12254         collect the states and variables when the initialization list
12255         is null.
12256         (Analyze_Input_Item): Enhance the error messages with references.
12257         (Analyze_Input_Output): Enhance the error messages with references.
12258         (Analyze_Pragma): Enhance the error messages with references.
12259         (Analyze_Refinement_Clause): Code reformatting.
12260         (Analyze_Refined_Depends_In_Decl_Part):
12261         Rename global variable Global to Reg_Global and update all
12262         occurrences. Add local variables D7 and D8. Update the error
12263         messages with references. Update the call to Collect_Global_Items.
12264         (Analyze_Refined_Global_In_Decl_Part): Add local variables
12265         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
12266         the call to Collect_Global_Items.  Account for a Proof_In state
12267         in null / useless refinement checks. Verify the coverage of
12268         Proof_In states.
12269         (Check_Dependency_Clause): Remove local variable
12270         Out_Constits. Remove the retrieval and removal of constituents
12271         for an Output_Only state. Remove the reporting of unused
12272         Output_Only state constituents.
12273         (Check_Duplicate_Mode): Enhance
12274         the error message with a reference.
12275         (Check_Duplicate_Property): New routine.
12276         (Check_Duplicate_Option): Enhance the error message with a reference.
12277         (Check_External_Properties): Enhance the error message with a reference.
12278         (Check_Function_Return): Enhance the error message with a reference.
12279         (Check_In_Out_States): Update
12280         comment on usage. Add a specialized error message for Proof_In
12281         constituents. Enhance the error message with a reference.
12282         (Check_Input_States): Update comment on usage. Account for
12283         possible Proof_In constituents. Enhance the error message
12284         with a areference.
12285         (Check_Matching_Constituent): Enhance the error message with a
12286         reference.
12287         (Check_Matching_State): Enchance the error message with a reference.
12288         (Check_Mode): Add local variable From_Global. Update the call to
12289         Find_Mode.  Emit more precise error messages concerning extra items
12290         (Check_Mode_Restriction_In_Enclosing_Context): Consider
12291         pragma Refined_Global.  Enhance the error message with a
12292         reference.
12293         (Check_Mode_Restriction_In_Function): Enhance the error message with
12294         a reference.
12295         (Check_Output_States): Update comment on usage. Add local variable
12296         Posted.  Account for possible Proof_In constituents. Produce a detailed
12297         list of missing constituents.
12298         (Check_Proof_In_States): New routine.
12299         (Check_Refined_Global_Item): Handle Proof_In
12300         constituents. Enchance the error message with a reference.
12301         (Collect_Global_Items): Add formal parameters Proof_In_Items
12302         and Has_Proof_In_State. Update the comment on usage. Account
12303         for Proof_In items.
12304         (Create_Or_Modify_Clause): Enchance
12305         the error message with a reference.
12306         (Find_Mode): Add
12307         formal parameter From_Global. Update the comment on usage.
12308         Detect when the mode is governed by pragma [Refined_]Global.
12309         (Output_Constituents): Removed.
12310         (Report_Extra_Constituents):
12311         Report extra Proof_In constituents.
12312         (Report_Unused_Constituents): Removed.
12313         (Usage_Error): Code reformatting. Enhance the error
12314         messages with reference.
12315         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
12316         (Analyze_External_State_In_Decl_Part): Removed.
12317         * sem_res.adb (Resolve_Actuals): Update the volatile object
12318         detection. Enhance the error message with a reference.
12319         (Resolve_Entity_Name): Update the volatile object
12320         detection. Enhance the error message with a reference.
12321         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
12322         (Is_SPARK_Volatile_Object): New routine.
12323         (Has_Volatile_Component): New routine.
12324         * sem_util.ads (Is_Delegate): Alphabetized.
12325         (Is_SPARK_Volatile_Object): New routine.
12326         (Has_Volatile_Component): New routine.
12327         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
12329 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
12331         * sem_attr.adb: Resolve fully prefix of 'Update.
12333 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
12335         * gnat_rm.texi: Minor clarifications.
12337 2014-01-27  Robert Dewar  <dewar@adacore.com>
12339         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
12340         about call that is generated as part of an Initial_Condition
12341         check.
12342         * sem_prag.adb: Minor spelling correction.
12344 2014-01-27  Robert Dewar  <dewar@adacore.com>
12346         * sem_prag.adb (Set_Convention_From_Pragma): Check that
12347         convention Ghost can only apply to functions.
12348         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
12350 2014-01-27  Robert Dewar  <dewar@adacore.com>
12352         * gnat_ugn.texi: Add Short_Enums to documentation of
12353         -gnatet/-gnateT.
12355 2014-01-27  Robert Dewar  <dewar@adacore.com>
12357         * sem_prag.adb (Analyze_Input_Item): Correct check for input
12358         item in same package.
12359         * sem_util.ads, sem_util.adb (Within_Scope): New function.
12361 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
12363         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
12364         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
12365         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
12366         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
12367         maintained.
12369 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
12371         * gcc-interface/Makefile.in: Fix oversight.
12373 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
12375         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
12376         conversion from a thin pointer with a shifted value.
12377         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
12378         read-only flag from the values onto the result.
12379         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
12381 2014-01-25  Tristan Gingold  <gingold@adacore.com>
12383         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
12384         for E_Variable with a pragma Linker_Section.
12386 2014-01-25  Robert Dewar  <dewar@adacore.com>
12388         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
12389         with Default_Value aspect is passed in by copy.
12391 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12393         * set_targ.adb: Set Short_Enums.
12394         * gcc-interface/lang.opt (fshort-enums): New option.
12395         * gcc-interface/misc.c (gnat_handle_option): Handle it.
12396         (gnat_post_options): Do not modify the global settings.
12398 2014-01-24  Robert Dewar  <dewar@adacore.com>
12400         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
12401         function.
12402         (Random_Decimal_Fixed): New generic function.
12403         * s-rannum.ads: Minor comment clarifications.
12405 2014-01-24  Robert Dewar  <dewar@adacore.com>
12407         * back_end.adb: Remove Short_Enums handling (handled in
12408         Ttypes/Get_Targ now) Minor added comments.
12409         * freeze.adb: Change name Short_Enums_On_Target to
12410         Target_Short_Enums.
12411         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
12412         * opt.ads: Minor comment updates.
12413         * sem_ch13.adb: Change name Short_Enums_On_Target to
12414         Target_Short_Enums.
12415         * set_targ.adb: Set Short_Enums from gcc back end.
12416         * set_targ.ads (Short_Enums): New variable.
12417         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
12418         Ttypes/Get_Targ now).
12419         * ttypes.ads (Target_Short_Enums): New constant boolean switch
12421 2014-01-24  Pascal Obry  <obry@adacore.com>
12423         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
12425 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
12427         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
12428         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
12429         stripped off.
12431 2014-01-24  Robert Dewar  <dewar@adacore.com>
12433         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
12435 2014-01-24  Vincent Celier  <celier@adacore.com>
12437         * prj.adb (Add_Aggregated_Project): Do not add a project in
12438         the list if it is already there.
12440 2014-01-24  Yannick Moy  <moy@adacore.com>
12442         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
12443         Correct the search for a subrogram declaration to which a pragma is
12444         attached.
12446 2014-01-24  Bob Duff  <duff@adacore.com>
12448         * gnat_ugn.texi: Document --decimal-grouping and
12449         --based-grouping switches in gnatpp.
12451 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12453         * sinfo.ads: Documentation update.
12455 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12457         * sem_ch3.adb (Constant_Redeclaration): New declaration is
12458         illegal if previous one has an initial expression that is an
12459         aggregate expanded into assignments.
12461 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12463         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
12464         code reorganization to remove spurious warning on a loop with
12465         an array element iterator that has a null range.
12467 2014-01-24  Vincent Celier  <celier@adacore.com>
12469         * make.adb (Binding_Phase): When setting the Ada paths, use
12470         the library ALI dir, not the object dir in libraries.
12472 2014-01-24  Yannick Moy  <moy@adacore.com>
12474         * sinfo.ads: Add documentation of check flag fields.
12476 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12478         * sem_res.adb (Resolve_Actuals): If an actual is a view
12479         conversion of a discriminated object, and the formal type is
12480         discriminated and constrained, apply a discriminant check to
12481         the object itself.
12483 2014-01-24  Robert Dewar  <dewar@adacore.com>
12485         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
12487 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12489         * sem_ch3.adb (Analyze_Declarations): At the end of an
12490         appropriate declarative part, call Freeze_All from the first
12491         declaration in the scope, not from the first unfrozen one. This
12492         is necessary to apply visibility checks to entities with delayed
12493         aspects. Otherwise, in the presence of instantiations and cleanups
12494         that they may generate, the delayed aspects may be analyzed too
12495         late and produce spurious visibility errors.
12496         * sem_attr.adb: Place etype on range.
12497         * sem_ch6.adb: Documentation expression functions.
12499 2014-01-24  Robert Dewar  <dewar@adacore.com>
12501         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
12502         terminology in compiler).
12504 2014-01-24  Robert Dewar  <dewar@adacore.com>
12506         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
12507         categories, now that Ada 95 supports raise expressions.
12509 2014-01-24  Robert Dewar  <dewar@adacore.com>
12511         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
12512         Short_Enums_On_Target.
12513         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
12514         into account.
12515         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
12517 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12519         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
12520         indication is given explicity, check that it matches the array
12521         component type or the container element type of the domain
12522         of iteration.
12524 2014-01-24  Tristan Gingold  <gingold@adacore.com>
12526         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
12527         * gcc-interface/misc.c (flag_short_enums): Declare.
12528         (gnat_post_options): Set it.
12530 2014-01-24  Vincent Celier  <celier@adacore.com>
12532         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
12533         to cache the result when Including_Libraries is False.
12534         * prj-env.ads (Ada_Objects_Path): Update documentation
12535         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
12536         (Get_Object_Directory): Return the Library_Ali_Dir only when
12537         when Including_Libraries is True.
12538         * prj.ads (Get_Object_Directory): Fix and complete documentation
12539         (Project_Data): New component Ada_Objects_Path_No_Libs
12541 2014-01-24  Robert Dewar  <dewar@adacore.com>
12543         * checks.adb (Expr_Known_Valid): Result of fpt operator never
12544         considered valid.
12546 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12548         * back_end.adb: Minor fix in comment.
12550 2014-01-24  Javier Miranda  <miranda@adacore.com>
12552         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
12553         required to report the error in case of task types.
12555 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12557         * sem_attr.adb: Additional index checking.
12559 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12561         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
12562         expressions in each component association, and for records note
12563         the entity in each association choice, for subsequent resolution.
12564         (Resolve_Attribute, case 'Update): Complete resolution of
12565         expressions in each component association.
12567 2014-01-24  Robert Dewar  <dewar@adacore.com>
12569         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
12570         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
12571         leading to wrong handling of SPARK_Mode for library units).
12573 2014-01-24  Robert Dewar  <dewar@adacore.com>
12575         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
12576         on generic instances (do not consider them to be internally
12577         generated)
12579 2014-01-24  Doug Rupp  <rupp@adacore.com>
12581         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
12582         vice pthread_sigmask.
12584 2014-01-24  Vincent Celier  <celier@adacore.com>
12586         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
12587         not default.
12589 2014-01-24  Vincent Celier  <celier@adacore.com>
12591         * prj-ext.adb (Add): Do not output anything when Silent is True,
12592         whatever the verbosity. When Source is From_External_Attribute,
12593         set the corresponding environment variable if it is not already set.
12594         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
12595         to False
12596         * prj-proc.adb (Process_Expression_For_Associative_Array):
12597         For attribute External, call Prj.Ext.Add with Silent set to
12598         True for the child environment, to avoid useless output in non
12599         default verbosity.
12601 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12603         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
12604         range given by a subtype indication, and force evaluation of
12605         the bounds, as for a simple range.
12606         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
12607         of bounds of slice for various kinds of discrete ranges.
12608         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
12609         Evaluate_Slice_Bounds.
12611 2014-01-24  Bob Duff  <duff@adacore.com>
12613         * s-taskin.ads (Activator): Make this Atomic, because
12614         Activation_Is_Complete reads it, and that can be called
12615         from any task. Previously, this component was only
12616         modified by the activator before activation, and by
12617         Self after activation.
12618         * a-taside.ads, a-taside.adb (Environment_Task,
12619         Activation_Is_Complete): Implement these missing functions.
12621 2014-01-24  Doug Rupp  <rupp@adacore.com>
12623         * init.c: Add a handler section for Android.
12625 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
12627         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
12629 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12631         * sem_ch4.adb (Operator_Check): If one operand is a
12632         Raise_Expression, set its type to that of the other operand.
12633         * sem_res.adb (Resolve_Raise_Expression): new procedure.
12634         (Resolve_Actuals): For an actual that is a Raise_Expression,
12635         set the type to that of the formal.
12636         * sem_type.adb (Find_Unique_Type): If one of the operands is a
12637         Raise_Expression, return type of the other operand.
12639 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12641         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
12642         component of the record has a type with a default aspect, and
12643         the corresponding aggregate component is initiaized with a box,
12644         use the default value in the rewritten aggregate.
12646 2014-01-24  Tristan Gingold  <gingold@adacore.com>
12648         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
12649         s-interr-sigaction.adb,
12650         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
12651         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
12652         to the call to Install_Restricted_Handlers.
12654 2014-01-24  Emmanuel Briot  <briot@adacore.com>
12656         * prj-nmsc.adb (Check_File): Add protection when the source is
12657         not fully initialized.
12659 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
12661         * sem_util.adb (Is_Post_State): In a postcondition, a selected
12662         component that denotes an implicit dereference is a reference
12663         to the post state of the subprogram.
12665 2014-01-24  Robert Dewar  <dewar@adacore.com>
12667         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
12668         for generated subprograms.
12669         (Analyze_Subprogram_Specification): Ditto.
12671 2014-01-24  Vincent Celier  <celier@adacore.com>
12673         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
12674         attributes in package Builder of aggregate and aggregate library
12675         projects.
12676         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
12677         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
12678         Remove parameters.  Change error message from "... externally
12679         build library ..." to "... externally built project ...".
12680         (Process_Naming_Scheme.Check): Do not do any check in aggregate
12681         project, as attribute Library_Dir and Library_Name have already
12682         been detected as forbidden.
12684 2014-01-24  Vincent Celier  <celier@adacore.com>
12686         * prj-env.adb (Find_Project): If cached project path is not in
12687         project directory, look in current directory first and use cached
12688         project path only if project is not found in project directory.
12690 2014-01-24  Robert Dewar  <dewar@adacore.com>
12692         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
12694 2014-01-24  Vincent Celier  <celier@adacore.com>
12696         * projects.texi: Document that aggregate projects are only
12697         supported by gprbuild, but not by gnatmake.  Document that the
12698         only attribute Switches in package Binder of aggregate projects
12699         will be ignored if its index is not others.  Document that
12700         attribute Global_Config_File is allowed in package Binder of
12701         aggregate projects.
12703 2014-01-24  Robert Dewar  <dewar@adacore.com>
12705         * sem_prag.adb: Minor code reorganization.
12706         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
12708 2014-01-24  Pascal Obry  <obry@adacore.com>
12710         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
12711         attribute definition.
12713 2014-01-24  Vincent Celier  <celier@adacore.com>
12715         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
12716         in the Queue the same source (same path, same multi-source index)
12717         from the same project file, to avoid compiling several times
12718         the same source.
12720 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12722         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
12723         (Has_Gigi_Rep_Item): Likewise.
12724         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
12725         Has_Gigi_Rep_Item for objects.
12726         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
12727         (prepend_one_attribute): ...this.
12728         (prepend_one_attribute_pragma): New function extracted from...
12729         (prepend_attributes): ...here.  Swap the parameters for consistency.
12730         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
12731         prepend_attributes.
12732         <object>: Deal with a pragma Linker_Section on a constant
12733         or variable.  <E_Function>: Deal with a pragma Linker_Section
12734         on a subprogram.
12735         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
12737 2014-01-24  Vincent Celier  <celier@adacore.com>
12739         * opt.ads: Minor comment update.
12741 2014-01-24  Robert Dewar  <dewar@adacore.com>
12743         * sem_prag.adb (Analyze_Input_Output): Add missing error check
12744         for junk operand.
12745         * sem_util.adb (Is_Refined_State): Add defense against junk
12746         tree from error.
12748 2014-01-24  Pascal Obry  <obry@adacore.com>
12750         * projects.texi: Removes Build_Slaves attribute documentation.
12752 2014-01-23  Robert Dewar  <dewar@adacore.com>
12754         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
12755         setting.
12757 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12759         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
12760         applies to expressions that come from source.
12761         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
12762         message.
12763         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
12764         rule regarding potentially unevaluated expressions, to prefix
12765         of attribute.
12767 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12769         * exp_util.adb (Make_Invqriant_Call): If type of expression is
12770         a private extension, get invariant from base type.
12772 2014-01-23  Robert Dewar  <dewar@adacore.com>
12774         * sem_util.adb, sem_attr.adb: Minor reformatting.
12776 2014-01-23  Robert Dewar  <dewar@adacore.com>
12778         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
12779         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
12780         * sem.adb (Semantics): Remove save/restore of
12781         SPARK_Mode[_Pragma]. Not needed since already done in
12782         Save/Restore_Opt_Config_Switches.
12784 2014-01-23  Robert Dewar  <dewar@adacore.com>
12786         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
12787         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
12788         Linker_Section enhancements.
12790 2014-01-23  Tristan Gingold  <gingold@adacore.com>
12792         * gnat_rm.texi: Minor editing.
12794 2014-01-23  Robert Dewar  <dewar@adacore.com>
12796         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
12797         with'ed internal units.
12798         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
12800 2014-01-23  Javier Miranda  <miranda@adacore.com>
12802         * lib-xref.adb (Generate_Reference): As part of processing the
12803         "end-of-spec" reference generate an extra reference to the first
12804         private entity of the package.
12805         * xr_tabls.adb (Add_Reference): No action needed for the extra
12806         'E' reference associated; similar to the processing of the
12807         'e' reference.
12809 2014-01-23  Bob Duff  <duff@adacore.com>
12811         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
12813 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12815         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
12816         predicate to implement rule given in 6.1.1 (20/3).
12817         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
12818         'Old in a postcondition, if it is potentially unevaluated and
12819         it is not an entity name.
12821 2014-01-23  Bob Duff  <duff@adacore.com>
12823         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
12825 2014-01-23  Robert Dewar  <dewar@adacore.com>
12827         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
12828         msg on VMS.
12830 2014-01-23  Bob Duff  <duff@adacore.com>
12832         * g-dynhta.ads: Minor comment fix.
12834 2014-01-23  Yannick Moy  <moy@adacore.com>
12836         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
12837         from spec on body only when not already inherited on spec. Set
12838         SPARK_Mode from context on body without previous spec.  *
12839         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
12840         library-level entities.  Correct retrieval of entity from
12841         declaration, for cases where the declaration is not a unit.
12842         * sem_ch12.adb (Instantiate_Object): Avoid
12843         calling Is_Volatile_Object on an empty node.
12845 2014-01-23  Robert Dewar  <dewar@adacore.com>
12847         * gnatlink.adb (Gnatlink): Check for suspicious executable file
12848         names on windows.
12850 2014-01-23  Robert Dewar  <dewar@adacore.com>
12852         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
12853         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
12854         style errors in instances.
12855         * g-dynhta.ads (Static_HTable): Comment updates.
12857 2014-01-23  Vincent Celier  <celier@adacore.com>
12859         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
12860         to find a configuration project file when Config_File_Name is
12861         No_Configuration_File.
12862         * prj-conf.ads (No_Configuration_File): New constant String.
12863         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
12864         with Config_File_Name set to No_Configuration_File, so that
12865         no existing configuration project file will be used, and the
12866         configuration project will be only created in memory when
12867         Add_Default_GNAT_Naming_Scheme is called.
12868         * projects.texi: Minor reformatting.
12870 2014-01-23  Vincent Celier  <celier@adacore.com>
12872         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
12873         a config project file if On_Load_Config is not null.
12874         * prj-pars.adb: Minor comment changes.
12876 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12878         * lib-xref.adb (Output_References): Output progenitors of
12879         synchronized tagged types, for source navigation.
12881 2014-01-23  Robert Dewar  <dewar@adacore.com>
12883         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
12884         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
12885         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
12887 2014-01-23  Emmanuel Briot  <briot@adacore.com>
12889         * prj-conf.adb (Get_Or_Create_Configuration_File): call
12890         On_Load_Config later.
12892 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
12894         * sem_ch3.adb (Analyze_Declarations): Do not
12895         generate the spec of the late primitive in ASIS mode. Add two
12896         comments to explain the special cases when the expansion is
12897         not performed.
12899 2014-01-23  Robert Dewar  <dewar@adacore.com>
12901         * sem_util.adb (Note_Possible_Modification): Fix error of
12902         misbehaving for implicit dereference cases in -gnatc mode.
12904 2014-01-23  Emmanuel Briot  <briot@adacore.com>
12906         * prj-pars.adb: Minor reformatting.
12908 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12910         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
12911         body generated for an expression function within a protected body
12912         needs a set of renaming declarations if the expression function
12913         comes from source.
12915 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12917         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
12918         list interface progenitor of a tagged concurrent type, for better
12919         source navigation.
12921 2014-01-22  Robert Dewar  <dewar@adacore.com>
12923         * lib.adb (In_Extended_Main_Code_Unit): Return False for
12924         Standard_Location.
12925         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
12926         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
12927         treatment of Slocs No_Location and Standard_Location.
12928         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
12929         check for entity with Standard_Location Sloc, rather than relying
12930         on Lib routines to do that.
12931         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
12932         that a call cannot occur before a later occuring body within
12933         the same unit.
12935 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12937         * rtsfind.adb: Update comment.
12939 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
12941         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
12942         * sem_ch3.adb (Analyze_Declarations): Add local variable
12943         Body_Seen. Generate the spec of a late controlled
12944         primitive body that is about to freeze its related type.
12945         (Handle_Late_Controlled_Primitive): New routine.
12947 2014-01-22  Robert Dewar  <dewar@adacore.com>
12949         * a-stream.adb: Minor reformatting.
12951 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12953         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
12954         sub-procedure Declared_In_Actual to handle properly the visibility
12955         of actuals in actual packages, that are themselves actuals to a
12956         actual package of the current instance. This mimics properly the
12957         visibility of formals of formal packages declared with a box,
12958         within the corresponding generic unit.
12960 2014-01-22  Robert Dewar  <dewar@adacore.com>
12962         * checks.adb: Do not assume that a volatile variable is valid.
12964 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12966         * g-catiio.ads (Image, Value): Clarify that these functions
12967         operate in the local time zone.  Minor documentation update.
12969 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12971         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
12973 2014-01-22  Robert Dewar  <dewar@adacore.com>
12975         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
12976         Moved to sem_aux.adb.
12978 2014-01-22  Robert Dewar  <dewar@adacore.com>
12980         * vms_data.ads: Minor reformatting.
12982 2014-01-22  Robert Dewar  <dewar@adacore.com>
12984         * debug.adb: Document messages affected by -gnatd.E including
12985         the new ones that relate to late definition of equality.
12986         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
12987         debug flag -gnatd.E is set, then generate warnings rather than
12988         errors.
12989         (Check_Untagged_Equality): In earlier versions of Ada,
12990         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
12992 2014-01-22  Robert Dewar  <dewar@adacore.com>
12994         * sem_prag.adb (Usage_Error): Output additional messages for
12995         unconstrained OUT parameters lacking an input dependency.
12997 2014-01-22  Robert Dewar  <dewar@adacore.com>
12999         * sem_ch4.adb: Minor reformatting.
13001 2014-01-22  Robert Dewar  <dewar@adacore.com>
13003         * restrict.ads: Minor reformatting.
13004         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
13005         forbids a call from within a subprogram to the same subprogram.
13007 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13009         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
13010         stream attributes for Stream_Element_Array.
13011         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
13012         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
13013         defined in the current scope.
13015 2014-01-22  Robert Dewar  <dewar@adacore.com>
13017         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
13019 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13021         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
13023 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13025         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
13026         declaration initialized with a function call, whose type
13027         has variable size, need to remove side effects so that the
13028         initialization expression becomes a dereference of a temporary
13029         reference to the function result.
13031 2014-01-22  Yannick Moy  <moy@adacore.com>
13033         * errout.adb (Initialize): Remove trick to add dummy entry
13034         in Warnings table.
13035         * erroutc.adb (Set_Warnings_Mode_Off,
13036         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
13037         command line switch.
13038         * opt.ads (Warning_Mode): Document behavior
13039         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
13041 2014-01-22  Robert Dewar  <dewar@adacore.com>
13043         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
13045 2014-01-22  Robert Dewar  <dewar@adacore.com>
13047         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
13048         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
13049         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
13050         case Storage_Size): call Check_Pool_Size_Clash.
13052 2014-01-22  Robert Dewar  <dewar@adacore.com>
13054         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
13055         sem_eval.ads: Minor reformatting.
13057 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13059         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
13060         Any_Composite to prevent cascaded errors.
13062 2014-01-22  Yannick Moy  <moy@adacore.com>
13064         * errout.adb (Initialize): Do not insert special entry in Warnings
13065         table in GNATprove_Mode.
13066         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
13067         GNATprove_Mode.
13068         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
13069         warnings anymore.
13071 2014-01-22  Robert Dewar  <dewar@adacore.com>
13073         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
13074         initializes case.
13076 2014-01-22  Robert Dewar  <dewar@adacore.com>
13078         * snames.ads-tmpl: Update header.
13080 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13082         * exp_util.adb (Insert_Actions): When inserting actions on a
13083         short circuit operator that has already been analyzed, do not park
13084         actions in node; instead introduce an N_Expression_With_Actions
13085         and insert actions immediately.
13086         Add guard for unexpected case of climbing up through statement
13087         in Actions list of an N_Expression_With_Actions.
13088         * sem_elab.adb (Insert_Elab_Check): Remove complex
13089         specialized circuitry for the case where the context is already
13090         analyzed, as it is not needed and introduces irregularities in
13091         finalization. Instead rely on the above change to Insert_Actions
13092         to ensure that late insertion on short circuit operators works
13093         as expected.
13095 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13097         * sem_ch4.adb (Operator_Check): Improve error message when an
13098         operand of concatenation is an access type.
13100 2014-01-22  Thomas Quinot  <quinot@adacore.com>
13102         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
13103         cascaded error.
13105 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
13107         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
13108         of an expanded name in a proper body, whose prefix is a package
13109         in the context of the proper body, when there is a homonym of
13110         the package declared in the parent unit.
13112 2014-01-22  Robert Dewar  <dewar@adacore.com>
13114         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
13115         msg if errors found.
13116         (Check_One_Unit): Same change.
13118 2014-01-22  Robert Dewar  <dewar@adacore.com>
13120         * ug_words: Add missing/wrong entries for VMS warning switches.
13121         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
13123 2014-01-22  Jerome Guitton  <guitton@adacore.com>
13125         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
13126         arm.
13128 2014-01-22  Robert Dewar  <dewar@adacore.com>
13130         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
13132 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13134         * gcc-interface/Makefile.in: Minor fixes.
13136 2014-01-21  Robert Dewar  <dewar@adacore.com>
13138         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
13139         * par-ch5.adb (P_Condition): New version with expression prescanned.
13140         * par.adb (P_Condition): New version with expression prescanned.
13142 2014-01-21  Robert Dewar  <dewar@adacore.com>
13144         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
13145         if Address is not a private type.
13146         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13147         Ignore pragma if System.Address is not a private type.
13149 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13151         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
13152         uninitialized value.
13154 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13156         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
13158 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13160         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
13161         the value of Assertions_Enabled flag when compiling an instance of
13162         an internal unit. This facilitates the use of pre/postconditions
13163         in generic internal units, such as the new elementary function
13164         libraries.
13166 2014-01-21  Robert Dewar  <dewar@adacore.com>
13168         * exp_aggr.adb: Minor reformatting.
13169         * sem_attr.adb: Minor reformatting.
13170         * sem_res.adb: Minor comment addition.
13171         * einfo.adb: Minor comment updates.
13172         * freeze.adb: Minor reformatting and code reorganization.
13174 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13176         * par-ch4.adb (P_If_Expression): Handle more gracefully an
13177         elsif clause that does not have an else part.
13179 2014-01-21  Robert Dewar  <dewar@adacore.com>
13181         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
13182         * gcc-interface/Makefile.in: clean up target pairs.
13184 2014-01-21  Pascal Obry  <obry@adacore.com>
13186         * projects.texi: Minor typo fix.
13188 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13190         * freeze.adb (Check_Component_Storage_Order): If a record type
13191         has an explicit Scalar_Storage_Order attribute definition clause,
13192         reject any component that itself is of a composite type and does
13193         not have one.
13195 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13197         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
13198         can be used to generate proper cross-reference information for
13199         the parent units of proper bodies.
13201 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13203         * exp_pakd.adb (Expand_Packed_Element_Set,
13204         Expand_Packed_Element_Reference): No byte swapping required in
13205         the front-end for the case of a reverse storage order array,
13206         as this is now handled uniformly in the back-end.  However we
13207         still need to swap back an extracted element if it is itself a
13208         nested composite with reverse storage order.
13210 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
13212         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
13213         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
13214         include "others".
13216 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13218         * gnat_ugn.texi: Minor updates.
13220 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13222         * exp_pakd.adb: Update comment, minor reformatting.
13224 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
13226         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
13227         object check when SPARK_Mode is on.
13228         * sem_ch6.adb (Process_Formals): Trigger the volatile object
13229         check when SPARK_Mode is on.
13230         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
13231         check when SPARK_Mode is on.
13232         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
13233         corresponding pragma of aspect SPARK_Mode in the visible
13234         declarations of a package declaration.
13235         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
13236         check when SPARK_Mode is on.
13237         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
13238         check when SPARK_Mode is on.
13239         (Resolve_Entity_Name): Trigger
13240         the volatile object check when SPARK_Mode is on.
13242 2014-01-21  Robert Dewar  <dewar@adacore.com>
13244         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
13245         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
13247 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13249         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
13250         object is declared, it is rewritten as a renaming of an dynamic
13251         expression that wraps the initial value.  The renaming declaration
13252         is first given an internal name, to prevent collisions with the
13253         entity already declared, and then the name is modified to reflect
13254         the original one. the modification of the name must preserve
13255         the source location of the original, to prevent spurious errors
13256         when compiling with style checks if the declaration involves
13257         more than one entity.
13259 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
13261         * aspects.adb Add entries for Async_Readers, Async_Writers,
13262         Effective_Reads and Effective_Writes in table Canonical_Aspect.
13263         * aspects.ads Add entries for Async_Readers, Async_Writers,
13264         Effective_Reads and Effective_Writes in tables Aspect_Id,
13265         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
13266         * atree.adb (Ekind_In): New version with 8 parameters.
13267         (Node34): New routine.
13268         (Set_Node34): New routine.
13269         * atree.ads (Ekind_In): New version with 8 parameters.
13270         (Node34): New routine.
13271         (Set_Node34): New routine.
13272         * einfo.adb Contract is now Node34.
13273         (Contract): Update the assertion and node usage.
13274         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
13275         Effective_Reads and Effective_Writes.
13276         (Set_Contract): Update the assertion and node usage.
13277         (Write_Field24_Name): Remove the output for a contract.
13278         (Write_Field34_Name): Add output for a contract.
13279         * einfo.ads Contract is now Node34. Update the comment on
13280         attribute usage and related node structures.
13281         (Get_Pragma): Update the comment on usage.
13282         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
13283         Effective_Reads and Effective_Writes do not require special
13284         processing by the parser.
13285         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
13286         (Analyze_Declarations): Analyze the contract of a variable at
13287         the end of the declarative region.
13288         (Analyze_Object_Declaration): Create a contract for a variable.
13289         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
13290         of classification pragmas.
13291         (Process_Formals): Detect an illegal
13292         use of a volatile object as a formal in a function.
13293         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
13294         a volatile object as an actual in generic instantiation.
13295         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
13296         Effective_Reads and Effective_Writes in table Sig_Flags.
13297         (Analyze_External_State_In_Decl_Part): New routine.
13298         (Analyze_Global_Item): Detect an illegal use of a volatile object
13299         as a global item of a function.
13300         (Analyze_Pragma): Reimplement
13301         pragma Abstract_State. Add support for pragmas Async_Readers,
13302         Async_Writers, Effective_Reads and Effective_Writes.
13303         (Check_External_Properties): New routine.
13304         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
13305         (Check_External_Properties): New routine.
13306         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
13307         volatile object as an actual in a call.
13308         (Resolve_Entity_Name):
13309         Add local variables Par, Prev and Usage_OK. Detect illegal
13310         contexts of volatile objects.
13311         * sem_util.adb (Add_Contract_Item): Add support for
13312         pragmas associated with the contract of a variable.
13313         (Async_Readers_Enabled): New routine.
13314         (Async_Writers_Enabled): New routine.
13315         (Effective_Reads_Enabled): New routine.
13316         (Effective_Writes_Enabled): New routine.
13317         (Has_Enabled_Property):
13318         New routine.
13319         (Is_Unchecked_Conversion_Instance): New routine.
13320         (Is_Volatile_Object): Add support for entities that may denote
13321         a volatile object.
13322         * sem_util.ads (Add_Contract_Item): Update the
13323         comment on usage.
13324         (Async_Readers_Enabled): New routine.
13325         (Async_Writers_Enabled): New routine.
13326         (Effective_Reads_Enabled): New routine.
13327         (Effective_Writes_Enabled): New routine.
13328         (Is_Unchecked_Conversion_Instance): New routine.
13329         * sinfo.ads Update the comment on the structure of N_Contract.
13330         * snames.ads-tmpl Add predefined names for Async_Readers,
13331         Async_Writers, Effective_Reads and Effective_Writes. Add
13332         pragma ids for Async_Readers, Async_Writers, Effective_Reads
13333         and Effective_Writes.
13335 2014-01-21  Robert Dewar  <dewar@adacore.com>
13337         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
13338         * sem_eval.adb (Compile_Time_Known_Value): Remove special
13339         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
13340         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
13341         (Test_Foldable): Add CRT_Safe parameter
13342         * sem_eval.ads (Compile_Time_Known_Value): Remove special
13343         handling of CRT mode.
13344         (CRT_Safe_Compile_Time_Known_Value): New function.
13346 2014-01-21  Robert Dewar  <dewar@adacore.com>
13348         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
13349         with pragma or aspect that applies to package spec or subprogram
13350         spec.
13352 2014-01-21  Robert Dewar  <dewar@adacore.com>
13354         * exp_aggr.adb: Minor reformatting.
13356 2014-01-21  Johannes Kanig  <kanig@adacore.com>
13358         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
13360 2014-01-21  Bob Duff  <duff@adacore.com>
13362         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
13364 2014-01-21  Steve Baird  <baird@adacore.com>
13366         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
13368 2014-01-21  Vincent Celier  <celier@adacore.com>
13370         * prj-part.adb (Parse_Single_Project): Accept to extend a project
13371         if it has only be imported by an project being extended. When a
13372         project that has only been imported by a project being extended
13373         is imported by another project that is not being extended,
13374         reset the previous indication, so that it will be an error if
13375         this project is extended later.
13376         * prj-tree.adb (Create_Project): Include component From_Extended
13377         in table Projects_HT
13378         * prj-tree.ads (Project_Name_And_Node): New Boolean component
13379         From_Extended
13381 2014-01-21  Robert Dewar  <dewar@adacore.com>
13383         * atree.ads, atree.adb: Add Node33 and Set_Node33.
13384         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
13385         New field (SPARK_Pragma_Inherited): New flag
13386         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
13387         Removed.
13388         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
13389         * opt.ads (SPARK_Mode_Pragma): New global variable.
13390         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
13391         * sem_ch3.adb: Use new SPARK_Mode data structures.
13392         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
13393         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
13394         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
13395         (Pop_Scope): Restore SPARK_Mode_Pragma.
13396         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
13397         new data structures.
13399 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13401         * back_end.adb: Undo previous change, not needed. Minor reformatting.
13403 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13405         * exp_ch5.adb: Fix comment.
13406         * switch-c.adb: Minor comment update.
13407         * exp_ch3.adb: Minor reformatting.
13409 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13411         * back_end.adb (Scan_Compiler_Arguments): Do not store object
13412         filename in gnatprove mode.
13414 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13416         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
13417         suppresses usage of primitive _assign for tagged types).
13418         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
13419         No_Ctrl_Actions for a tagged type that does not require
13420         finalization, as we want to disable usage of _assign (which
13421         may cause undesirable discriminant checks on an uninitialized,
13422         invalid target).
13424 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13426         * sem_prag.adb: Reject invariant'class on completion.
13428 2014-01-21  Javier Miranda  <miranda@adacore.com>
13430         * exp_ch3.adb (Build_Init_Procedure): For
13431         derivations of interfaces, do not move the the initialization
13432         of the _parent field since such assignment is not generated.
13434 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13436         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
13437         with the operator it renames if we are within an expression of
13438         a pre/postcondition, because the expression will be reanalyzed
13439         at a later point, and the analysis of the renaming may affect
13440         the visibility of the operator when in an instance.
13442 2014-01-21  Robert Dewar  <dewar@adacore.com>
13444         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
13445         Add this flag to type conversion nodes and assignment nodes.
13446         * treepr.adb: Deal properly with Flag 1,2,3.
13447         * treeprs.adt: Minor comment update.
13449 2014-01-21  Robert Dewar  <dewar@adacore.com>
13451         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
13452         parameter.
13453         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
13454         parameter, completely rewrite spec.
13456 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13458         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
13459         instance that is inlined, it may have been rewritten as a wrapper
13460         package. In that case the unit that must be made visible is the
13461         related instance of the package.
13463 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13465         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
13466         previous change in codepeer mode.
13468 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13470         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
13471         call to Abort_Undefer, as expected by the runtime.
13472         * s-tasren.adb (Local_Complete_Rendezvous): Replace
13473         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
13474         deferred at this point. Update comments.
13476 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13478         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
13480 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13482         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
13483         remove from doc.
13485 2014-01-21  Robert Dewar  <dewar@adacore.com>
13487         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
13489 2014-01-21  Thomas Quinot  <quinot@adacore.com>
13491         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
13492         this is value is used in Node_Id arithmetic operations.
13493         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
13494         instead of hard-coded unrolled code.
13496 2014-01-21  Yannick Moy  <moy@adacore.com>
13498         * gnat1drv.adb: Minor code cleanup, removing useless code.
13500 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
13502         * opt.ads (SPARK_Switches_File_Name): New.
13503         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
13504         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
13505         * gnat_ugn.texi: Document -gnates.
13507 2014-01-21  Yannick Moy  <moy@adacore.com>
13509         * errout.adb (Special_Msg_Delete): Update comment. Remove
13510         special case for GNATprove which should not ignore mismatch
13511         in sizes for representation clauses.
13512         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
13513         which should not ignore pragma Pack.
13515 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13517         * sem_ch4.adb: Code clean up.
13519 2014-01-21  Steve Baird  <baird@adacore.com>
13521         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
13523 2014-01-21  Robert Dewar  <dewar@adacore.com>
13525         * gcc-interface/gigi.h: Get Flags array address.
13526         * gcc-interface/trans.c: Acquire Flags array address.
13527         * atree.adb: Add support for Flags array and Flag0,1,2,3.
13528         * atree.ads: Add support for Flags array and Flag0,1,2,3.
13529         * atree.h: Add support for Flags array and Flag0,1,2,3.
13530         * back_end.adb: Pass Flags array address to gigi.
13532 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13534         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
13535         reference to generated body so that legality checks on stream
13536         attributes are properly applied. If type is tagged and already
13537         frozen, insert generated body at the point of the renaming
13538         declaration.
13540 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
13542         * sem_ch12.adb: Code clean up.
13543         * sem_ch8.adb: Minor reformatting
13545 2014-01-20  Robert Dewar  <dewar@adacore.com>
13547         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
13548         converting warnings on inevitable exceptions to errors.
13549         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
13550         converting warnings on inevitable exceptions to errors.
13551         * opt.adb (SPARK_Mode_Config): Handled like other config flags
13552         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
13553         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
13554         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
13555         New flag (Config_Switches_Type): Add SPARK_Mode field
13556         * sem.adb: Minor code reorganization (remove unnecessary with)
13557         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
13558         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
13559         converting warnings on inevitable exceptions to errors.
13560         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
13561         converting warnings on inevitable exceptions to errors.
13562         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
13563         converting warnings on inevitable exceptions to errors.
13564         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
13565         converting warnings on inevitable exceptions to errors.
13566         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
13567         from spec if needed
13568         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
13569         from spec if needed
13570         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
13571         Restore SPARK_Mode
13572         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
13573         converting warnings on inevitable exceptions to errors.
13574         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
13575         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
13576         of Get_SPARK_Mode_Id
13577         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
13578         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
13579         converting warnings on inevitable exceptions to errors.
13580         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
13581         converting warnings on inevitable exceptions to errors.
13582         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
13583         SPARK_Mode_Type
13585 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13587         * sem_ch13.adb: Add semantic information to rewritten type
13588         reference.
13590 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13592         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
13593         are of a type with unknown discriminants, convert both to the
13594         underlying view of the type, so that the proper constraint check
13595         can be applied to the right-hand side.
13597 2014-01-20  Robert Dewar  <dewar@adacore.com>
13599         * atree.adb (Copy_Node): Fix failure to copy last component
13600         (Exchange_Entities): Fix failure to exchange last entity
13602 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13604         * sem_ch12.adb: Code clean up.
13606 2014-01-20  Robert Dewar  <dewar@adacore.com>
13608         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
13610 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13612         * sem_ch4.adb (Analyze_Quantified_Expression): If after
13613         pre-analysis  the loop parameter specification has been
13614         rewritten as a iterator specification, propagate the change to
13615         the quantified expression, for ASIS navigtion needs.
13617 2014-01-20  Vincent Celier  <celier@adacore.com>
13619         * par-ch10.adb: Minor error message change: escape [ and ].
13621 2014-01-20  Robert Dewar  <dewar@adacore.com>
13623         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
13624         * errout.adb: Implement [ and ] insertion characters.
13625         * errout.ads: Document new [ and ] insertion characters.
13626         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
13627         addition of ??? comment.
13628         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
13629         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
13630         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
13631         Make warnings on exceptions into errors in GNATprove mode.
13632         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
13633         in error messages.
13635 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13637         * sem_ch13.adb: Code clean up.
13639 2014-01-20  Robert Dewar  <dewar@adacore.com>
13641         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
13642         messages.
13643         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
13644         error in GNATprove mode.
13646 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13648         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
13649         reference 'Old takes no parameters, and thus can appear as a
13650         prefix of a slice.
13652 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
13654         * exp_aggr.adb: Fix minor typos.
13656 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13658         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
13659         instance the attribute is legal, and its value is determined
13660         statically if the type has no discriminants. This choice is
13661         more useful than rechecking the legality rule in the instance,
13662         is consistent with older usage, and is also consistent with all
13663         existing tests.
13665 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13667         * sem_cat.adb (Validate_Static_Object_Name): Change error into
13668         warning in Relaxed_Semantic_Mode.
13670 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13672         * sem_attr.adb: Code and comments cleanup.
13674 2014-01-20  Yannick Moy  <moy@adacore.com>
13676         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
13677         * errout.adb (Compilation_Errors): Remove special handling in
13678         GNATprove mode.
13679         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
13680         removed debug flags.
13681         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
13682         Global, Initial_Condition, Initializes and Refined_State pragmas and
13683         aspects.
13684         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
13685         SPARK_Strict_Mode): Remove global flags.
13686         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
13687         always performed now, on packages declaring a null state.
13688         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
13689         at providing pedantic mode for bounds of integer types.
13690         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
13691         "some" quantified expression now issued under control of -gnatw.t,
13692         like the other warning on unused bound variable.
13693         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
13694         on removed flag.
13695         (Analyze_Pragma): Remove tests for SPARK 2014
13696         pragmas, not officially allowed by GNAT.
13698 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13700         * sem_prag.adb (Analyze_Pragma): Ensure that
13701         the sole argument of pragmas Abstract_State, Contract_Cases,
13702         Depends, Global and Initializes in in aggregate form.
13703         (Analyze_Refined_Pragma): Ensure that the sole argument of
13704         pragmas Refined_Depends, Refined_Global and Refined_State is in
13705         aggregate form.
13706         (Ensure_Aggregate_Form): New routine.
13708 2014-01-20  Doug Rupp  <rupp@adacore.com>
13710         * sem_attr.adb (Analyze_Attribute): case
13711         Attribute_Constrained => treat all prefixes as legal for Declib
13712         compatibility.
13714 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13716         * sem_prag.adb (Check_Mode): Reimplement the routine.
13717         (Find_Mode): New routine.
13719 2014-01-20  Robert Dewar  <dewar@adacore.com>
13721         * sem_ch4.adb (Operator_Check): Handle additional
13722         Allow_Integer_Address cases.
13724 2014-01-20  Robert Dewar  <dewar@adacore.com>
13726         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
13727         allowed if address is non-private, no longer true.
13728         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13729         Remove check for address being private, causes difficulty when
13730         pragma used in gnat.adc file and is not needed, since we guard
13731         this in Address_Integer_Convert_OK.
13732         * exp_ch7.adb: Minor reformatting.
13733         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
13735 2014-01-20  Robert Dewar  <dewar@adacore.com>
13737         * checks.adb (Apply_Range_Check): Remove gnatprove special
13738         casing of exponentiation.
13739         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
13740         operand for integer case to check range against Natural.
13742 2014-01-20  Robert Dewar  <dewar@adacore.com>
13744         * s-tataat.adb: Minor reformatting.
13746 2014-01-20  Robert Dewar  <dewar@adacore.com>
13748         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
13749         entities, and also fix documentation to remove mention of visible
13750         integer type, since this is not what the implementation does.
13751         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
13752         entities, and also fix documentation to remove mention of visible
13753         integer type, since this is not what the implementation does.
13754         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
13755         function.
13756         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
13757         case for parameter type check.
13758         * sem_res.adb (Resolve): Use new function
13759         Address_Integer_Convert_OK.
13760         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
13761         reformatting throughout.
13762         * sem_util.adb (Address_Integer_Convert_OK): New function.
13763         * sem_util.ads: Minor reformatting (put specs in alpha order)
13764         (Address_Integer_Convert_OK): New function.
13766 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13768         * exp_ch7.adb (Wrap_Transient_Expression):
13769         Insertion extra conditional expression only if
13770         Opt.Suppress_Control_Flow_Optimizations is set.
13772 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13774         * s-tataat.adb (Initialize_Attributes): Abort might already be
13775         deferred in Create_Task.
13777 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13779         * checks.adb (Apply_Scalar_Range_Check): Flag
13780         the exponent as requiring a range check when the expression is
13781         an exponentiation.
13783 2014-01-20  Fedor Rybin  <frybin@adacore.com>
13785         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
13787 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13789         * sem_util.adb (Default_Initialization): New routine.
13790         * sem_util.ads: Add new type Default_Initialization_Kind.
13791         (Default_Initialization): New routine.
13793 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13795         * sem_prag.adb (Check_Mode): Correct all error
13796         message logic dealing with in/in out parameters that may appear
13797         as inputs or have a self reference.
13799 2014-01-20  Robert Dewar  <dewar@adacore.com>
13801         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
13802         * sem_res.adb (Resolve): Fix error causing infinite loop for
13803         integer used as address. Allow addresses as integers.
13805 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13807         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
13809 2014-01-20  Bob Duff  <duff@adacore.com>
13811         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
13812         error when "use all" is not followed by "type".
13814 2014-01-20  Bob Duff  <duff@adacore.com>
13816         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
13817         followed by free.
13819 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13821         * checks.adb (Apply_Address_Clause_Check): If there is an
13822         alignment check on the expression in an address clause, and there
13823         is no local exception propagation, add an additional explanatory
13824         message to clarify the cause of previous warning.
13826 2014-01-20  Robert Dewar  <dewar@adacore.com>
13828         * exp_ch7.adb: Minor reformatting.
13829         * opt.ads: Minor comment updates.
13830         * sem.adb: Minor name change Is_Main_Unit =>
13831         Is_Main_Unit_Or_Main_Unit_Spec.
13832         * sem_ch6.adb: Minor reformatting and code reorganization.
13834 2014-01-20  Bob Duff  <duff@adacore.com>
13836         * gnat_ugn.texi: Update gnatpp switches.
13838 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13840         * exp_ch9.adb: Minor comment edit.
13842 2014-01-20  Robert Dewar  <dewar@adacore.com>
13844         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
13845         only if System.Address is a private type.
13846         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
13847         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13848         Allowed only if type System.Address is private, since otherwise
13849         it makes no sense.
13850         * sem_res.adb: Fix failure to properly Analyze unchecked
13851         conversions that were introduced by Allow_Integer_Address.
13852         * switch-c.adb: Remove -gnates switch.
13853         * usage.adb: Remove -gnates switch.
13854         * gnat_ugn.texi: Remove documentation of -gnates flag.
13856 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13858         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
13859         resolve expression to perform proper name capture.
13861 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13863         * sem.adb (Semantics): When saving/restoring configuration
13864         switches, the spec of a pre- defined unit that is the main unit
13865         must be treated as a predefined unit as well.
13867 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13869         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
13870         expression, insert an extra conditional expression when saving
13871         the value of the expression, for the benefit of control flow
13872         graph based coverage analysis.
13873         * exp_ch3.adb: Minor reformatting.
13875 2014-01-20  Robert Dewar  <dewar@adacore.com>
13877         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
13878         * gnat_rm.texi: Document pragma Allow_Integer_Address.
13879         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
13880         * opt.ads: New flag Allow_Integer_Address.
13881         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
13882         * sem_ch5.adb: Minor reformatting.
13883         * sem_prag.adb: Implement pragma Allow_Integer_Address.
13884         * sem_res.adb (Resolve): Allow integer address value if
13885         switch set.
13886         * sem_util.adb: Minor reformatting.
13887         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
13888         * switch-c.adb: Recognize flag -gnates.
13889         * usage.adb: Document flag -gnates.
13891 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13893         * s-tadeca.adb: Fix minor typos in comment.
13895 2014-01-20  Pascal Obry  <obry@adacore.com>
13897         * s-win32.ads (FreeLibrary): New import.
13899 2014-01-20  Robert Dewar  <dewar@adacore.com>
13901         * sem_res.adb, sem_cat.adb: Minor reformatting.
13902         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
13903         assigning to OUT parameters for the current subprogram scope.
13904         * exp_ch4.adb: Minor reformatting.
13906 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13908         * exp_ch4.adb (Process_Transient_Object,
13909         Find_Enclosing_Contexts): If the top-level if-expression that
13910         generated the transient object is an actual in a call, the proper
13911         Hook_Context is a construct enclosing the call.
13912         * einfo.ads: Indicate that Related_Expression is used to link a
13913         loop variable to the container expression over which the loop
13914         takes place.
13915         (Analyze_Iterator_Specification): Set the Related_Expression of
13916         the loop variable in a container element iterator.
13917         (Note_Possible_Modification): If the variable is the loop
13918         variable in a container element iterator, indicate that the
13919         enclosing container is also modified.
13921 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13923         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
13925 2014-01-20  Robert Dewar  <dewar@adacore.com>
13927         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
13928         Minor reformatting and code clean up.
13930 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13932         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
13933         of objects of private type if Relaxed_RM_Semantics.
13935 2014-01-20  Claire Dross  <dross@adacore.com>
13937         * a-cofove.ads (Vector): Capacity discriminant
13938         should be in range of the index.
13940 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13942         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
13943         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
13944         possible difference between epoch of Ada.Calendar clock and Ada
13945         real-time/tasking clock.
13946         * s-taprop-posix.adb: Minor comment fix.
13948 2014-01-20  Doug Rupp  <rupp@adacore.com>
13950         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
13952 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13954         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
13955         checks on the prefix of attribute 'Old.
13956         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
13957         generation of validity checks on a range that belongs to the
13958         iteration scheme of a quantified expression.
13959         * sem_ch5.adb (One_Bound): Suppress the generation of validity
13960         checks on a bound that belongs to the iteration scheme of a
13961         quantified expression, generate the check in all other cases.
13963 2014-01-20  Bob Duff  <duff@adacore.com>
13965         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
13967 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13969         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
13970         interpretations that do not come from other predefined units,
13971         to prevent spurious ambiguities in the presence of user-defined
13972         operators in the context of (an instance of) a predefined unit.
13974 2014-01-20  Robert Dewar  <dewar@adacore.com>
13976         * gnat_rm.texi: Document that Loop_Variant is included in
13977         Statement_Assertions.
13978         * sem_prag.adb (Check_Kind): Add Loop_Variant to
13979         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
13980         to Statement_Assertions.
13982 2014-01-20  Doug Rupp  <rupp@adacore.com>
13984         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
13985         for errno ENOENT from RTP on NFS mounted file system.
13987 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13989         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
13990         examine code that does not come from source. The check does not
13991         apply to code generated for constraint checks, and such code may
13992         generate spurious error messages when compiled with expansion
13993         disabled (as in a generic unit) because side effects may not
13994         have been removed.
13995         2) Make error messages more explicit: indicate the component
13996         of the  construct whose value is indeterminate because of a
13997         call to a function with in-out parameter in another component,
13998         when there is no mandated order of execution between the two
13999         components (actuals, aggregate components, alternatives).
14001 2014-01-20  Robert Dewar  <dewar@adacore.com>
14003         * gnat_rm.texi: Minor cleanup.
14005 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14007         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
14008         can now apply to a refined postcondition.
14009         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
14010         variable Result_Seen. Add variables Case_Prag, Post_Prag,
14011         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
14012         whether postconditions and/or constract-cases mention attribute
14013         'Result and introduce a post-state when applied to functions.
14014         (Check_Result_And_Post_State): Removed.
14015         * sem_prag.adb (Analyze_Pragma): Add local variable
14016         Result_Seen. Verify that the expression of pragma Refined_Post
14017         mentions attribute 'Result and introduces a post-state.
14018         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
14020 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14022         * exp_ch7.adb (Is_Subprogram_Call): New routine.
14023         (Process_Transient_Objects): Make variable Must_Hook global with
14024         respect to all locally declared subprograms. Search the context
14025         for at least one subprogram call.
14026         (Requires_Hooking): Removed.
14028 2014-01-20  Claire Dross  <dross@adacore.com>
14030         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
14031         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
14032         External_Axiomatization);
14034 2014-01-20  Robert Dewar  <dewar@adacore.com>
14036         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
14037         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
14038         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
14039         Allow Loop_Entry to be used in these pragmas if they appear in
14040         an appropriate context.
14041         (Placement_Error): Specialize error
14042         message for pragma Assert[_And_Cut] or pragma Assume containing
14043         Loop_Entry attribute.
14044         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
14045         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
14046         and code clean ups.
14048 2014-01-20  Robert Dewar  <dewar@adacore.com>
14050         * gnat1drv.adb: Minor comment update.
14052 2014-01-20  Tristan Gingold  <gingold@adacore.com>
14054         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
14055         variables, comment out unused code.
14056         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
14057         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
14058         * s-excmac-arm.ads: New file.
14060 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14062         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
14063         Drange and Index_Typ. Remove the circuitry which creates a
14064         range check to compare the index type of the array against the
14065         discrete_range.
14066         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
14067         the circuitry which creates a range check to handle a
14068         discrete_range denoted by a subtype indication.
14070 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
14072         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
14073         nodes to get the original sloc range.
14075 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14077         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
14078         entity of a [library level] package.
14080 2014-01-20  Tristan Gingold  <gingold@adacore.com>
14082         * raise-gcc.c (exception_class_eq): New function.
14083         (is_handled_by): Use it to compare exception classes.
14084         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
14085         be called to return URC_CONTINUE_UNWIND.
14086         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
14087         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
14089 2014-01-20  Robert Dewar  <dewar@adacore.com>
14091         * opt.ads: Minor comment update.
14093 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14095         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
14096         constants to the "Local variables" area. Add new constant D. Add
14097         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
14098         to Pref_Typ and update all occurrences. Add circuitry to extract
14099         the discrete_range and the index type and build a range check.
14101 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14103         * gnat1drv.adb (Adjust_Global_Switches): Enable
14104         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
14105         is set.
14107 2014-01-20  Thomas Quinot  <quinot@adacore.com>
14109         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
14111 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14113         * sem_ch13.adb (Analyze_Aspect_Specifications):
14114         When aspect SPARK_Mode appears on a package body, insert the
14115         generated pragma at the top of the body declarations.
14117 2014-01-20  Robert Dewar  <dewar@adacore.com>
14119         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
14120         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
14121         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
14122         sem_ch8.adb, exp_dist.adb: Minor reformatting.
14124 2014-01-20  Yannick Moy  <moy@adacore.com>
14126         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
14127         mode.
14129 2014-01-20  Pascal Obry  <obry@adacore.com>
14131         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
14132         write scheme).
14133         * g-arrspl.adb: Adapt all routine to this new implementation.
14134         (Set): Copy the Slice_Set definition before reusing it.
14136 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
14138         * sem_prag.adb (Process_Import_Or_Interface): In
14139         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
14140         (Analyze_Pragma): Ditto for pragma Export.
14141         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
14142         Import style.
14144 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14146         * einfo.ads: E_Abstract_State is now part of the entities that
14147         can be overloaded. Update type Overloadable_Kind to reflect the
14148         inclusion of abstract states.
14149         * sem_ch6.adb (New_Overloaded_Entity): A function can now
14150         overload an abstract state.
14151         * sem_prag.adb (Analyze_Constituent): Handle the overloading
14152         of states by functions. Use Entity_Of to obtain the entity of
14153         a constituent.  (Analyze_Global_Item): Handle the overloading of
14154         states by functions.
14155         (Analyze_Initialization_Item): Handle the
14156         overloading of states by functions.  Use Entity_Of to obtain the
14157         entity of an item.
14158         (Analyze_Input_Item): Handle the overloading
14159         of states by functions. Use Entity_Of to obtain the entity of an item.
14160         (Analyze_Input_Output): Handle the overloading of states by functions.
14161         (Analyze_Refinement_Clause): Handle the overloading
14162         of states by functions.  Use Entity_Of to obtain the entity of an item.
14163         (Appears_In): Use Entity_Of to obtain the entity of an element.
14164         (Check_Usage): Use Entity_Of to obtain the entity of
14165         an item. Add a guard to prevent a crash due to a previous error.
14166         (Resolve_State): New routine.
14168 2014-01-20  Yannick Moy  <moy@adacore.com>
14170         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
14171         opt.ads: Minor comments updates.
14173 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
14175         * einfo.adb (Non_Limited_View): Applies to abstract states.
14176         (Set_From_Limited_With): Applies to abstract states.
14177         (Set_Non_Limited_View): Applies to abstract states.
14178         (Write_Field17): Output the non-limited view of an abstract state.
14179         * einfo.ads: Update the comment on usage and occurrences in
14180         nodes for attributes From_Limited_With and Non_Limited_View.
14181         * sem_aux.adb (Available_View): This routine can now handle
14182         abstract states.
14183         * sem_aux.ads (Available_View): This routine can now handle
14184         abstract states. Update the comment on usage.
14185         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
14186         of states and variables.
14187         (In_Pragmas_Depends_Or_Global): New routine.
14188         * sem_ch10.adb (Build_Limited_Views): Implement
14189         abstract (limited) views of variables and states.
14190         (Build_Shadow_Entity): This routine is now a procedure. Add
14191         formal parameter Shadow. Update the comment on usage. Add
14192         context-specific decoration for states and variables.
14193         (Decorate_State): New routine.  (Decorate_Variable): New routine.
14194         (Find_And_Process_States): New routine.
14195         (Process_Declarations): Renamed to Process_Declarations_And_States.
14196         (Process_Declarations_And_States): Add formal parameters
14197         Pack and Create_Abstract_Views. Update the comment on usage.
14198         (Process_States): New routine.
14199         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
14200         views of states and variables. Match the abstract view of a state
14201         against its corresponding non-abstract view.
14202         (Is_Matching_Input):
14203         Handle abstract views of states and variables. Match the abstract
14204         view of a state against its corresponding non-abstract view.
14205         (Process_Global_Item): Handle abstract views of states and
14206         variables.
14208 2014-01-20  Bob Duff  <duff@adacore.com>
14210         * sem_ch10.adb (Expand_With_Clause): Don't
14211         recurse on the prefix if the current with-ed name refers to a
14212         package that renames its own parent, eg "package P.Q renames P;".
14214 2014-01-20  Yannick Moy  <moy@adacore.com>
14216         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
14217         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
14218         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
14219         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
14220         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
14221         Expander_Active.
14223 2014-01-20  Yannick Moy  <moy@adacore.com>
14225         * sinfo.ads Update documentation of GNATprove mode.
14227 2014-01-20  Yannick Moy  <moy@adacore.com>
14229         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
14230         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
14231         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
14232         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
14233         GNATprove_Mode.
14234         * sem_ch13.adb: Remove blank.
14235         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
14236         subprograms by alias for renamings, not for inherited primitive
14237         operations.
14238         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
14239         in GNATprove mode.
14240         (Remove_Side_Effects): Apply the removal in
14241         GNATprove mode, for the full analysis of expressions.
14242         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
14243         mode.
14244         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
14245         save/restore actions for Expander_Active flag in GNATprove mode,
14246         similar to what is done in ASIS mode.
14247         * frontend.adb (Frontend): Generic bodies are instantiated in
14248         GNATprove mode.
14249         * gnat1drv.adb (Adjust_Global_Switches): Set operating
14250         mode to Check_Semantics in GNATprove mode, although a light
14251         expansion is still performed.
14252         (Gnat1drv): Set Back_End_Mode to
14253         Declarations_Only in GNATprove mode, and later on special case
14254         the GNATprove mode to continue analysis anyway.
14255         * lib-writ.adb (Write_ALI): Always generate ALI files in
14256         GNATprove mode.
14257         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
14258         Expander_Active.
14259         (SPARK_Mode): Renamed as GNATprove_Mode.
14260         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
14261         tree in GNATprove_Mode.
14262         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
14263         body in GNATprove mode.
14264         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
14265         mode.
14266         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
14267         Make sure side effects are removed in GNATprove mode.
14269 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14271         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
14272         for aliased objects with an unconstrained nominal subtype.
14273         * gcc-interface/trans.c (Call_to_gnu): Likewise.
14274         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
14275         <case N_Op_Minus>: Remove useless code.
14276         (Exception_Handler_to_gnu_zcx): Minor tweaks.
14278 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14280         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
14281         Tidy up.  For a subtype with discriminants and variant part, if a
14282         variant is statically selected and the fields all have a constant
14283         position, put them in order of increasing position.  Likewise if
14284         no variant part but representation clause is present.
14285         * gcc-interface/utils.c (make_packable_type): Robustify.
14286         (maybe_pad_type): Use local variable and tidy up condition.  If no
14287         alignment is specified, use the original one.
14288         (create_type_stub_decl): Minor tweak.
14289         (convert) <case VECTOR_CST>: Fix typo.
14290         <case CONSTRUCTOR>: Deal with padding types around the same type.
14291         Do not punt on missing fields.
14292         (unchecked_convert): Call finish_record_type to lay out the special
14293         record types made for conversions from/to problematic integer types.
14294         Bump the alignment of CONSTRUCTORs before converting them to a more
14295         aligned type.
14297 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
14299         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
14300         obsolete code for type_annotate_only mode, simplify code and slightly
14301         improve wording of comments.
14303 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
14305         PR ada/59772
14306         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
14307         as intermediate type.
14308         (UI_To_gnu): Likewise.
14310 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14312         * gnatvsn.ads (Current_Year): Bump to 2014.
14314 2014-01-02  Tobias Burnus  <burnus@net-b.de>
14316         * gnat_ugn.texi: Bump @copying's copyright year.
14318 Copyright (C) 2014 Free Software Foundation, Inc.
14320 Copying and distribution of this file, with or without modification,
14321 are permitted in any medium without royalty provided the copyright
14322 notice and this notice are preserved.