2014-10-17 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blobc5d6122afd28f03fdff3d431bb34152c8ddb77ac
1 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
3         * sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect
4         specfications from original type declaration to declaration of
5         implicit base, because original node is rewritten as a subtype
6         declaration on which type aspects do not belong.
8 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
10         * sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type
11         inherits the attributes related to pragma Default_Initial_Condition
12         from its parent type.
14 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
16         * a-strsea.adb (Index - versions with a From parameter):
17         According to AI05-056, the Index functions with a From parameter
18         return 0 if the source is an empty string.
20 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
22         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable
23         the consistency checks in ASIS mode.
25 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
27         * s-expmod.ads: Minor typo fix.
29 2014-10-17  Robert Dewar  <dewar@adacore.com>
31         * sem_util.adb: Minor reformatting.
33 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
35         * sem_ch12.adb (Build_Function_Wrapper): Build wrappers for
36         actuals that are defaulted subprograms of the formal subprogram
37         declaration.
39 2014-10-17  Robert Dewar  <dewar@adacore.com>
41         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the
42         implementation base type.
43         * sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record
44         operands are always expanded out into component comparisons.
46 2014-10-17  Robert Dewar  <dewar@adacore.com>
48         * s-vallli.adb: Minor comment correction.
49         * s-valuti.ads: Minor comment reformatting.
51 2014-10-17  Robert Dewar  <dewar@adacore.com>
53         * gnat_rm.texi: Document System.Atomic_Counters.
54         * impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the
55         list of user- accessible units added as children of System.
56         * s-atocou.ads: Update comment.
58 2014-10-17  Arnaud Charlet  <charlet@adacore.com>
60         * s-expmod.ads: Add comments.
62 2014-10-17  Hristian Kirtchev  <kirtchev@adacore.com>
64         * sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation
65         of all attributes related to pragma Default_Initial_Condition.
66         (Build_Derived_Type): Propagation of all attributes related
67         to pragma Default_Initial_Condition.
68         (Process_Full_View): Account for the case where the full view derives
69         from another private type and propagate the attributes related
70         to pragma Default_Initial_Condition to the private view.
71         (Propagate_Default_Init_Cond_Attributes): New routine.
72         * sem_util.adb: Alphabetize various routines.
73         (Build_Default_Init_Cond_Call): Use an unchecked type conversion
74         when calling the default initial condition procedure of a private type.
75         (Build_Default_Init_Cond_Procedure_Declaration): Prevent
76         the generation of multiple default initial condition procedures.
78 2014-10-17  Robert Dewar  <dewar@adacore.com>
80         * prj-conf.adb: Revert previous change.
82 2014-10-17  Robert Dewar  <dewar@adacore.com>
84         * lib-writ.ads, s-valdec.ads: Minor reformatting.
86 2014-10-17  Ed Schonberg  <schonberg@adacore.com>
88         * sem_ch12.adb: Additional work on function wrappers.
90 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
92         * exp_util.adb (Possible_Bit_Aligned_Component): Also recurse
93         on the renamed object of renamings.
95 2014-10-17  Vincent Celier  <celier@adacore.com>
97         * prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer
98         mode, always use the native target.
100 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
102         * gcc-interface/misc.c: Adjust include files.
104 2014-10-13  Eric Botcazou  <ebotcazou@adacore.com>
105             Alan Modra  <amodra@gmail.com>
107         PR ada/63225
108         * uintp.adb (Vector_To_Uint): Move from here to...
109         * uintp.ads (UI_Vector): Make public.
110         (Vector_To_Uint): ...here.
112 2014-10-10  Robert Dewar  <dewar@adacore.com>
114         * freeze.adb, sem_attr.adb: Minor reformatting.
116 2014-10-10  Johannes Kanig  <kanig@adacore.com>
118         * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
119         a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
120         to container type.
122 2014-10-10  Vincent Celier  <celier@adacore.com>
124         * prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
125         any configuration switches from the project file.
127 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
129         * sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
130         (Build_Function_Wrapper): New function, to construct a wrapper
131         function for actuals that are functions with an arbitrary
132         number of parameters. Used in GNATProve mode to simplify proof
133         propagation in instantiations.
135 2014-10-10  Robert Dewar  <dewar@adacore.com>
137         * freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
138         code clean up.
140 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
142         * sem_res.adb (Is_OK_Volatile_Context): Allow
143         a volatile object reference to appear as the expression of a
144         type conversion.
146 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
148         * sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
149         Aspect specification is legal on a local instantiation of a
150         library-level generic unit.
152 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
154         * gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
155         if inlining has been enabled via -gnatn and the target is not GCC.
157 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
159         * freeze.adb (Freeze_Entity): Freezing a subprogram does
160         not always freeze its profile.  In particular, an attribute
161         reference that takes the access type does not freeze the types
162         of the formals.
164 2014-10-10  Robert Dewar  <dewar@adacore.com>
166         * errout.adb (Adjust_Name_Case): New procedure.
167         (Set_Msg_Node): Use Adjust_Name_Case.
168         * errout.ads (Adjust_Name_Case): New procedure.
169         * exp_intr.adb (Add_Source_Info): Minor code reorganization
170         (use Ekind_In).
171         (Write_Entity_Name): Use Errout.Adjust_Name_Case.
172         * sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
173         and fix up entries in Sig_Flags, and correct logical errors in
174         function itself.
175         * sprint.adb (Sprint_Node_Actual): Properly print string for
176         raise statement.
178 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
180         * sem_ch3.adb (Analyze_Object_Declaration): For an object of an
181         anonymous array type with delayed aspects, defer freezing of
182         type until object itself is frozen.
183         * freeze.adb (Freeze_Entity): When freezing an object of an
184         anonymous array type with delayed aspects, remove freeze node of
185         object after freezing type, to prevent out-of-order elaboration
186         in the back-end. The initialization call for the object has
187         already been constructed when expanding the object declaration.
189 2014-10-10  Robert Dewar  <dewar@adacore.com>
191         * exp_intr.adb (Write_Entity_Name): Moved to outer level
192         (Write_Entity_Name): Properly handle operator names
193         (Expand_Source_Info): New procedure.
194         * exp_intr.ads (Add_Source_Info): New procedure.
196 2014-10-10  Robert Dewar  <dewar@adacore.com>
198         * butil.ads: Minor reformatting.
199         * sem_ch5.adb: Code clean up.
201 2014-10-10  Robert Dewar  <dewar@adacore.com>
203         * exp_ch11.adb (Expand_N_Raise_Statement): Handle
204         Prefix_Exception_Messages.
205         * opt.adb: Handle new flags Prefix_Exception_Message[_Config].
206         * opt.ads: New flags Prefix_Exception_Message[_Config].
207         * par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
208         * snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
209         * sem_prag.adb: Implement new pragma Prefix_Exception_Messages
210         * gnat_rm.texi: Document pragma Prefix_Exception_Messages.
212 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
214         * sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
215         raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).
217 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
219         * sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
220         contain pragmas generated for loop invariants and type predicates.
221         Clarify use of this subprogram.
223 2014-10-10  Yannick Moy  <moy@adacore.com>
225         * sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
226         contracts.
227         * errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
228         SPARK_Mode is Off.
230 2014-10-10  Vadim Godunko  <godunko@adacore.com>
232         * a-stwima.adb (To_Sequence): Compute size of result array.
234 2014-10-10  Javier Miranda  <miranda@adacore.com>
236         * gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
237         sources of the example to avoid a warning when the Ada files are
238         automatically generated by the binding generator.
240 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
242         * sem_attr.adb (Resolve_Attribute, case 'Update): Set
243         Do_Range_Check on the expression of a record component
244         association when needed, as is done for array components, when
245         the corresponding type is a scalar type.
247 2014-10-10  Gary Dismukes  <dismukes@adacore.com>
249         * a-coinho-shared.adb: Minor typo fix.
250         * prj-env.ads: Minor reformatting.
252 2014-10-10  Hristian Kirtchev  <kirtchev@adacore.com>
254         * sem_res.adb (Resolve_String_Literal): Do not
255         generate a string literal subtype for the default expression of
256         a formal parameter in GNATprove mode.
258 2014-10-10  Yannick Moy  <moy@adacore.com>
260         * errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.
262 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
264         * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
265         declaration for loop parameter before rest of loop, and set
266         entity kind to prevent assignments to it in the user code.
267         * sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
268         loop parameter in an element iteration over o formal container.
270 2014-10-10  Robert Dewar  <dewar@adacore.com>
272         * gnat_ugn.texi: Document use of user-level routines to handle
273         e.g. col major arrays.
275 2014-10-10  Doug Rupp  <rupp@adacore.com>
277         * s-osinte-android.adb: Fix misspelling.
278         * gsocket.h: Tweak the Android quirks.
280 2014-10-10  Robert Dewar  <dewar@adacore.com>
282         * errout.ads (SPARK_Msg_N): Fix spec to match change in body.
284 2014-10-10  Robert Dewar  <dewar@adacore.com>
286         * sem_ch13.adb: Minor code reorganization.
288 2014-10-10  Pat Rogers  <rogers@adacore.com>
290         * gnat_rm.texi: Text now indicates pragma No_Run_Time is not
291         for users.
293 2014-10-10  Vadim Godunko  <godunko@adacore.com>
295         * a-coinho-shared.adb: Add minor comment.
296         * a-stzmap.adb (To_Sequence): Compute size of result array.
298 2014-10-10  Javier Miranda  <miranda@adacore.com>
300         * exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
301         if-stmt to match its current documentation.
303 2014-10-10  Robert Dewar  <dewar@adacore.com>
305         * sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
306         freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
307         sem_ch6.adb, sem_cat.adb, sem_disp.adb
308         (Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
309         throughout where appropriate.
311 2014-10-10  Bob Duff  <duff@adacore.com>
313         * a-coinho-shared.ads: Minor reformatting.
314         * s-traceb.adb: Minor clean up.
316 2014-10-10  Robert Dewar  <dewar@adacore.com>
318         * ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
319         * ali.ads (GNATprove_Mode): New component in ALI table.
320         (GNATprove_Mode_Specified): New global.
321         * gnatbind.adb (Gnatbind): Give fatal error if any file compiled
322         in GNATProve mode.
323         * lib-writ.ads, lib-writ.adb (GP): New flag on P line for
324         GNATProve_Mode.
326 2014-10-10  Javier Miranda  <miranda@adacore.com>
328         * exp_ch3.adb (Build_Init_Procedure): Adding assertion.
329         (Build_Init_Statement): Ensure that statements
330         associated with the parent components are located at the beginning
331         of the returned list of statements.
333 2014-10-10  Ed Schonberg  <schonberg@adacore.com>
335         * sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
336         view of a private type T that has a type invariant is a scalar
337         or constrained array type, the base type created for the full
338         view has the same type invariant.
340 2014-10-10  Robert Dewar  <dewar@adacore.com>
342         * exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
343         reorganization.
345 2014-09-22  Eric Botcazou  <ebotcazou@adacore.com>
347         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
348         * gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
350 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
352         * gcc-interface/Make-lang.in (check_acats_numbers0,
353         check_acats_numbers1, check_acats_numbers2, check_acats_numbers3,
354         check_acats_numbers4, check_acats_numbers5, check_acats_numbers6,
355         check_acats_numbers, check_acats_subdirs): New variables.
356         (check_acats_targets): Use $(check_acats_subdirs).
357         (check-acats, check-acats%): Rewritten so that for parallelized
358         testing each job runs all the chapters files, with
359         GCC_RUNTEST_PARALLELIZE_DIR set in environment.  Prepare the support
360         directory sequentially and share it.
361         (check-acats-subtargets): Always print just check-acats.
363 2014-08-25  Martin Liska  <mliska@suse.cz>
365         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to
366         new cgraph interface.
367         (gnat_write_global_declarations): Likewise.
369 2014-08-13  Sylvestre Ledru  <sylvestre@debian.org>
371         * 9drpc.adb: Fix a typo
372         * s-interr.ads: Likewise
373         * s-taskin.ads: Likewise
374         * s-traces.ads: Likewise
375         * sysdep.c: Likewise
377 2014-08-12  Joel Sherrill <joel.sherrill@oarcorp.com>
379         * socket.c: For RTEMS, use correct prototype of gethostbyname_r().
380         * gsocket.h Add include of <unistd.h> on RTEMS.
382 2014-08-11  Joel Sherrill <joel.sherrill@oarcorp.com>
384         * s-osinte-rtems.adb: Correct formatting of line in license block.
386 2014-08-04  Claire Dross  <dross@adacore.com>
388         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
389         For an instance, look at the scope before the generic parent.
391 2014-08-04  Yannick Moy  <moy@adacore.com>
393         * lib-writ.ads: Update comments.
394         * sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add
395         parameters to filter inherited subprograms.
397 2014-08-04  Robert Dewar  <dewar@adacore.com>
399         * gnat_rm.texi: Add section on use of address clause for memory
400         mapped I/O.
402 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
404         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in
405         particular the subtype created for a generic actual, inherits
406         invariant information from the base type.
408 2014-08-04  Robert Dewar  <dewar@adacore.com>
410         * aspects.ads, aspects.adb: Add entries for aspect Obsolescent.
411         * gnat_rm.texi: Add documentation for aspect Obsolescent.
412         * sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect
413         Obsolescent.
414         (Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent.
415         * s-osprim-mingw.adb: Minor reformatting.
416         * sem_res.adb (Is_Atomic_Ref_With_Address): New function
417         (Resolve_Indexed_Component): Rework warnings for non-atomic access
418         (Resolve_Selected_Component): Add warnings for non-atomic access.
420 2014-08-04  Doug Rupp  <rupp@adacore.com>
422         * g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec
423         formal to long_long.
424         * g-calend.ads (timeval): Bump up size to accomodate sec type.
425         * s-taprop-linux.adb (timeval_to_duration): Change sec formal to
426         long_long
427         * s-osprim-posix.adb (timeval): Bump up size to accomodate
428         new sec type.
429         (timeval_to_duration): Change sec formal to Long_Long_Integer
430         * s-osinte-darwin.adb (timeval): Bump up
431         size to accomodate new sec type.
432         (timeval_to_duration): Change sec formal to long_long
433         * s-osinte-android.adb: Likewise.
434         * cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change
435         sec formal from long to long long.
437 2014-08-04  Robert Dewar  <dewar@adacore.com>
439         * sem_res.adb (Resolve_Qualified_Expression): Make sure
440         Do_Range_Check flag gets set.
442 2014-08-04  Robert Dewar  <dewar@adacore.com>
444         * einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
445         * exp_ch3.adb (Build_Array_Init_Proc): Use
446         Is_Standard_String_Type.
447         (Expand_Freeze_Array_Type): ditto.
448         (Get_Simple_Init_Val): ditto.
449         (Needs_Simple_Initialization): ditto.
450         * sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
451         * sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
453 2014-08-04  Pascal Obry  <obry@adacore.com>
455         * adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
456         _stprintf which insert garbage into the wfull_path buffer.
458 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
460         * cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
461         code.
462         * fe.h: Minor reformatting.
464 2014-08-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
466         * cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
468 2014-08-04  Robert Dewar  <dewar@adacore.com>
470         * par-ch13.adb (Get_Aspect_Specifications): Improve error
471         recovery, fixing a -gnatQ bomb.
473 2014-08-04  Yannick Moy  <moy@adacore.com>
475         * sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode,
476         do not generate two Itypes with the same name for an array
477         definition.
478         * sinfo.ads: Expand doc on GNATprove mode.
480 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
482         * exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization
483         master and storage pool attributes on the root type of an
484         anonymous access type.
485         * exp_ch4.adb (Expand_N_Allocator): Set the finalization master
486         and storage pool attributes on the root type of an anonymous
487         access type.
489 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
491         * exp_ch3.adb: Minor reformatting.
492         * tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed.
493         * tracebak.c: Remove use of above files.
494         * gcc-interface/Makefile.in: Update dependencies.
496 2014-08-04  Pierre-Marie Derodat  <derodat@adacore.com>
498         * gcc-interface/utils.c (gnat_set_type_context): Also set the
499         context for parallel types' TYPE_STUB_DECL.  Do not change
500         anything if the context is already set for them.
501         (gnat_pushdecl): Update the comment for calls to
502         gnat_set_type_context to mention parallel types.
503         (add_parallel_type): When adding a context-less parallel type to
504         a type that has a context, propagate the context from the latter
505         type to the former.
506         (process_deferred_decl_context): Call gnat_set_type_context
507         rather than manually setting the type context.
508         (build_unc_object_type): Call gnat_set_type_context on the
509         template type.
511 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
513         * exp_ch5.adb (Expand_N_Case_Statement): If a choice is a
514         subtype indication and the case statement has only two choices,
515         replace subtype indication with its range, because the resulting
516         membership test cannot have a subtype indication as an operand.
518 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
520         * exp_ch3.adb: Update comments, minor reformatting.
522 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
524         * sem_ch3.adb (Analyze_Declarations): Explain why the bodies of
525         the default initial condition procedures are build here.
526         * sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the
527         analyzed argument of pragma Default_Initial_Condition in some
528         dummy code as GNATprove mode disables assertions, but still
529         needs to see the argument.
531 2014-08-04  Robert Dewar  <dewar@adacore.com>
533         * exp_ch6.adb, sem_util.adb: Minor reformatting.
535 2014-08-04  Olivier Hainque  <hainque@adacore.com>
537         * a-comutr.ads: Set Root_Node_Type'Alignment to
538         Standard'Maximum_Alignment, so that it is at least as large as
539         the max default for Tree_Node_Type'Alignment.
541 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
543         * exp_ch3.adb (Freeze_Type): Remove the generation and inheritance
544         of the default initial condition procedure [body].
545         * sem_ch3.adb (Analyze_Declarations): Create the bodies of
546         all default initial condition procedures at the end of private
547         declaration analysis.
548         * sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New
549         routine.
550         (Build_Default_Init_Cond_Procedure_Body): Merged in the
551         processing of routine Build_Default_Init_Cond_Procedure_Bodies.
552         * sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies):
553         New routine.
554         (Build_Default_Init_Cond_Procedure_Body): Removed.
556 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
558         * sem_elab.adb (Check_Elab_Call): Do not check a call to a
559         postcondtion.
560         * exp_ch6.adb (Expand_Call): Clarify handling of inserted
561         postcondition call.
563 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
565         * sem_prag.adb (Analyze_Pragma): Ensure that an
566         internally generated spec for a stand alone body is recognized
567         as a proper context for pragma SPARK_Mode.
569 2014-08-04  Robert Dewar  <dewar@adacore.com>
571         * erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors.
573 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
575         * adabkend.adb (Scan_Back_End_Switches): Ignore extra -o
576         when -gnatO has already been specified, for compatibility
577         with gcc driver.
578         (Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in
579         codepeer mode.
580         * g-expect.ads: Fix typo.
582 2014-08-04  Thomas Quinot  <quinot@adacore.com>
584         * exp_ch4.adb (Insert_Dereference_Action): the actual Size
585         must account for the bounds template if the designated type is
586         an unconstrained array.
588 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
590         * a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add
591         SPARK_Mode in the body.
592         * sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original
593         way to verify the consistency of SPARK_Mode between a spec and
594         a body.
595         * sem_ch12.adb (Analyze_Package_Instantiation): Remove the call
596         to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
597         manually.
598         (Analyze_Subprogram_Instantiation): Remove the call to
599         Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
600         manually.
601         * sem_prag.adb (Analyze_Pragma): Remove local variable
602         Inst_Id. SPARK_Mode can no longer be applied to a package or
603         subprogram instantiation.
604         * sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode):
605         Removed.
607 2014-08-04  Robert Dewar  <dewar@adacore.com>
609         * sem_prag.adb, osint.adb, osint.ads: Minor reformatting.
611 2014-08-04  Yannick Moy  <moy@adacore.com>
613         * sem_ch3.adb (Derive_Type_Declaration,
614         Process_Discriminants): Remove SPARK-specific legality checks.
616 2014-08-04  Thomas Quinot  <quinot@adacore.com>
618         * g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram.
619         * gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support
620         for HMAC.
622 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
624         * sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the
625         compatibility of SPARK_Mode between a spec and a body, use the
626         SPARK_Mode of the public part.
627         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use
628         the already available routine to exchange the aspects between
629         the template and its copy. Analyze the aspects of copy to
630         ensure that the corresponding pragmas perform their semantic
631         effects.  The partial analysis of aspects is no longer needed.
632         (Analyze_Package_Instantiation): Save and restore the SPARK_Mode
633         of the context.
634         (Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of
635         the context.
636         * sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram
637         instantiation which does not come from source.
639 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
641         * a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add
642         SPARK_Mode pragmas to the public and private part of the unit.
643         * sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived
644         type cannot have discriminants if the parent type already has
645         discriminants.
646         (Process_Discriminants): Ensure that the type of a discriminant is
647         discrete.
648         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on
649         SPARK_Mode compatibility between a spec and a body can now be
650         safely performed while processing a generic.
651         * sem_ch7.adb (Analyze_Package_Body_Helper): The check on
652         SPARK_Mode compatibility between a spec and a body can now be
653         safely performed while processing a generic.
654         * sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be
655         safely analyzed when processing a generic.
657 2014-08-04  Nicolas Roche  <roche@adacore.com>
659         * g-dirope.adb: Minor reformating.
661 2014-08-04  Robert Dewar  <dewar@adacore.com>
663         * sem_ch6.adb: Minor reformatting.
665 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
667         * sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
668         Before normalizing these pragmas into a pragma Check, preanalyze
669         the optional Message argument, (which is subsequently copied)
670         so that it has the proper semantic information for ASIS use.
671         * sem_case.adb: Initialize flag earlier.
672         * osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
673         the full source path of a configuration file is requested.
674         (Read_Source_File): Use Full_Name parameter..
676 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
678         * opt.ads Alphabetize various global flags. New flag
679         Ignore_Pragma_SPARK_Mode along with a comment on usage.
680         * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
681         Pragma SPARK_Mode is now allowed in generic units.
682         (Analyze_Subprogram_Body_Helper): Do not verify the compatibility
683         between the SPARK_Mode of a spec and that of a body when inside
684         a generic.
685         * sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the
686         compatibility between the SPARK_Mode of a spec and that of a
687         body when inside a generic.
688         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
689         Pragma SPARK_Mode is now allowed in generic units.
690         (Analyze_Package_Instantiation): Save and restore the value of
691         flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
692         the governing SPARK_Mode before analyzing the instance.
693         (Analyze_Subprogram_Instantiation): Save and restore the value
694         of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
695         the governing SPARK_Mode before analyzing the instance.
696         * sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the
697         placement of a source pragma when inserting the generated pragma
698         for aspect SPARK_Mode.
699         * sem_prag.adb (Analyze_Pragma): Reimplement the handling of
700         pragma SPARK_Mode to allow for generics and their respective
701         instantiations.
702         * sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed.
703         (Set_Ignore_Pragma_SPARK_Mode): New routine.
705 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
707         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with
708         renaming discriminants in tagged types first.
709         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test
710         the underlying type of the prefix.
711         (Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..."
712         (process_freeze_entity): Reset the nodes of all the view of a type,
713         if any.
715 2014-08-04  Doug Rupp  <rupp@adacore.com>
716             Olivier Hainque  <hainque@adacore.com>
718         * gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7
719         and remove incorrect EH_MECHANISM macros.
720         Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to
721         EXTRA_LIBGNAT_OBJS.
723 2014-08-04  Robert Dewar  <dewar@adacore.com>
725         * exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix
726         of constructed 'Valid attribute in -gnatVa mode does not appear
727         to come from source.
728         * sem_attr.adb (Analyze_Access_Attribute): Don't set
729         Never_Set_In_Source for non-source reference.
730         * sem_util.adb: Minor reformatting.
731         * sem_warn.adb (Check_References): Don't check Address_Taken,
732         not necessary, see comment.
734 2014-08-04  Robert Dewar  <dewar@adacore.com>
736         * sem_util.adb, sem_case.adb: Minor reformatting.
738 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
740         * exp_ch9.adb (Extract_Entry): If the synchronized object is a
741         limited view, replace with non-limited view, which is available
742         at the point of an entry call.
744 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
746         * exp_ch6.adb (Expand_Call): If the call is to a function in
747         a run-time unit that is marked Inline_Always, we must suppress
748         debugging information on it, so that the code that is eventually
749         inlined will not affect debugging of the user program.
751 2014-08-04  Robert Dewar  <dewar@adacore.com>
753         * inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
754         fixes.
756 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
758         * sem_prag.adb (Process_Import_Or_Interface): Handle properly
759         an aspect Import that specifies a False value.
761 2014-08-04  Robert Dewar  <dewar@adacore.com>
763         * gnat_rm.texi: Add section on aspect Invariant'Class.
765 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
767         * sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
768         for better control of cascaded error messages when some choice
769         in a case statement over a predicated type violates the given
770         static predicate.
772 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
774         * sem_ch3.adb (Build_Derived_Type): Modify the
775         inheritance of the rep chain to ensure that a non-tagged type's
776         items are not clobbered during the inheritance.
778 2014-08-04  Robert Dewar  <dewar@adacore.com>
780         * sem_ch3.adb, einfo.ads: Minor reformatting.
782 2014-08-04  Yannick Moy  <moy@adacore.com>
784         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix
785         detection of subprograms that cannot be inlined in GNATprove mode.
787 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
789         * einfo.adb: Add guard to Returns_Limited_View.
791 2014-08-04  Jose Ruiz  <ruiz@adacore.com>
793         * s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of
794         the secondary stack to respect the alignments of the returned objects.
796 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
798         * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
799         on function entities whose return type is a limited view.
800         * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
801         where to place the freeze node for a function that returns the
802         limited view of a type, when the function is called and frozen
803         in a different unit.
805 2014-08-04  Eric Botcazou  <ebotcazou@adacore.com>
807         * sem_ch3.adb (Build_Derived_Private_Type): Minor code
808         refactoring.
810 2014-08-04  Robert Dewar  <dewar@adacore.com>
812         * gnat_ugn.texi: Clarify documentation on assertions.
814 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
816         * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
817         if a component association has a box initialization when the
818         component type has no default initialization, either through an
819         initial value, an aspect, or an implicit initialization procedure.
821 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
823         * freeze.adb: Code clean up.
825 2014-08-04  Thomas Quinot  <quinot@adacore.com>
827         * sem_ch5.adb: Minor reformatting.
829 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
831         * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
832         a function can return a limited view of a type declared
833         elsewhere. In that case the function cannot be frozen at the end
834         of its enclosing package. If its first use is in a different unit,
835         it cannot be frozen there, but if the call is legal the full view
836         of the return type is available and the subprogram can now be
837         frozen. However the freeze node cannot be inserted at the point
838         of call, but rather must go in the package holding the function,
839         so that the backend can process it in the proper context.
841 2014-08-04  Robert Dewar  <dewar@adacore.com>
843         * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
845 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
847         * sem_ch4.adb (Operator_Check): Refine previous change.
849 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
851         * sem_scil.ads: Improve comments.
852         * sem_ch4.adb (Analyze_Equality_Op): Add support for
853         Allow_Integer_Address (equality between Address and Integer).
855 2014-08-04  Yannick Moy  <moy@adacore.com>
857         * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
858         notation on untagged objects.
859         * sem.ads: Update comment.
860         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
861         not inline subprograms declared in the visible part of a package.
863 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
865         * exp_ch5.adb: minor reformatting.
866         * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
867         parameters.
869 2014-08-04  Thomas Quinot  <quinot@adacore.com>
871         * s-fatgen.adb: Minor reformatting.
873 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
875         * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
876         False on .NET.
878 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
880         * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
881         the loop parameter for element iterators over containers and
882         arrays, so that improper uses of it are detected in the loop
883         body when expansion is disabled.
884         * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
885         generated cursor is that of the analyzed loop parameter.
887 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
889         * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
890         Flag_Decl. Do not analyze the declaration of the flag as it is
891         not part of the tree yet, instead add it to the freeze actions
892         of the C++ type.
894 2014-08-04  Robert Dewar  <dewar@adacore.com>
896         * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
897         case of OUT and IN OUT parameter correctly (where Source_Typ is
898         set), we were missing one case where a check must be applied.
900 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
902         * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
903         the generated code. Instead of hiding the renaming and using the
904         wrapper as the proper association, have the subprogram renaming
905         alias the wrapper.
906         (Build_Spec): The entity of the wrapper is
907         now derived from the entity of the related primitive.
909 2014-08-04  Emmanuel Briot  <briot@adacore.com>
911         * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
912         using non-capturing groups.
914 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
916         * inline.adb (Build_Body_To_Inline): Remove Unmodified and
917         related pragmas before copying the original body, to prevent
918         spurious errors when the pragmas apply to formals that will not
919         appear in the inlined body.
921 2014-08-04  Robert Dewar  <dewar@adacore.com>
923         * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
924         exp_ch3.adb: Minor reformatting.
926 2014-08-04  Robert Dewar  <dewar@adacore.com>
928         * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
930 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
932         * aspects.adb Add an entry in table Canonical_Aspect for
933         Default_Initial_Condition.
934         * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
935         Aspect_Names and Aspect_Delay for Default_Initial_Condition.
936         * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
937         is now Is_Default_Init_Cond_ Procedure. Flag133 is now
938         Has_Inherited_Default_Init_Cond.
939         (Default_Init_Cond_Procedure): New routine.
940         (Has_Default_Init_Cond): New routine.
941         (Has_Inherited_Default_Init_Cond): New routine.
942         (Is_Default_Init_Cond_Procedure): New routine.
943         (Set_Default_Init_Cond_Procedure): New routine.
944         (Set_Has_Default_Init_Cond): New routine.
945         (Set_Has_Inherited_Default_Init_Cond): New routine.
946         (Set_Is_Default_Init_Cond_Procedure): New routine.
947         (Write_Entity_Flags): Output all the new flags.
948         * einfo.ads New attributes Default_Init_Cond_Procedure,
949         Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
950         along with usage in nodes.
951         (Default_Init_Cond_Procedure): New routine.
952         (Has_Default_Init_Cond): New routine and pragma Inline.
953         (Has_Inherited_Default_Init_Cond): New routine and
954         pragma Inline.
955         (Is_Default_Init_Cond_Procedure): New routine and
956         pragma Inline.
957         (Set_Default_Init_Cond_Procedure): New routine.
958         (Set_Has_Default_Init_Cond): New routine and pragma Inline.
959         (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
960         (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
961         * exp_ch3.adb (Expand_N_Object_Declaration): New constant
962         Next_N. Generate a call to the default initial condition procedure
963         if the object's type is subject to the pragma.  (Freeze_Type):
964         Generate the body of the default initial condition procedure or
965         inherit the spec from a parent type.
966         * exp_ch7.adb Add with and use clause for Exp_Prag.
967         (Expand_Pragma_Initial_Condition): Removed.
968         * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
969         routine.
970         * par-prag.adb (Prag): Pragma Default_Initial_Condition does
971         not need special treatment by the parser.
972         * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
973         attributes related to pragma Default_Initial_Condition to the
974         derived type.
975         (Process_Full_View): Propagate the attributes
976         related to pragma Default_Initial_Condition to the full view.
977         * sem_ch7.adb (Analyze_Package_Specification): Build the
978         declaration of the default initial condition procedure for all
979         types that qualify or inherit the one from the parent type.
980         * sem_ch13.adb (Analyze_Aspect_Specifications):
981         Add processing for aspect Default_Initial_Condition.
982         (Check_Aspect_At_Freeze_Point): Aspect
983         Default_Initial_Condition does not require delayed analysis.
984         (Replace_Type_References_Generic): Moved to spec.
985         * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
986         * sem_prag.adb Add an entry in table Sif_Glags for
987         Default_Initial_Condition.
988         (Analyze_Pragma): Pragma
989         Default_Initial_Condition is now part of assertion
990         policy. Add processing for pragma Default_Initial_Condition.
991         (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
992         now recognized as a proper assertion policy.
993         * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
994         routine.
995         (Build_Default_Init_Cond_Procedure_Body): New routine.
996         (Build_Default_Init_Cond_Procedure_Declaration): New routine.
997         (Inherit_Default_Init_Cond_Procedure): New routine.
998         * snames.ads-tmpl Add new predefined name and pragma id for
999         Default_Initial_Condition.
1001 2014-08-04  Vincent Celier  <celier@adacore.com>
1003         * prj-dect.adb (Parse_Case_Construction): It is no longer
1004         an error if the variable for a case construction is not
1005         typed, only if the variable value is not a single string. Call
1006         Parse_Choice_List and End_Case_Construction with the new parameter
1007         to indicate that the variable is typed.
1008         * prj-strt.adb (End_Case_Construction): Only check the labels
1009         if the variable is typed.  If the variable is not typed,
1010         issue a warning when there is no "when others" allternative.
1011         (Parse_Choice_List): Manage the labels only if the variable
1012         is typed.
1013         * prj-strt.ads (End_Case_Construction): New Boolean parameter
1014         String_Type.
1015         (Parse_Choice_List): Ditto.
1017 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1019         * sem_ch5.adb: Additional fix to Check_Predicate_Use.
1021 2014-08-04  Vincent Celier  <celier@adacore.com>
1023         * projects.texi: Update documentation of case constructions with
1024         variables that are not typed.
1026 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1028         * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
1029         an Eliminated pragma, indicate that the wrapper is also to be
1030         eliminated, to prevent spurious errors when using gnatelim on
1031         programs that include box-initialization of equality operators
1032         (consequence of AI05-071)..
1034 2014-08-04  Robert Dewar  <dewar@adacore.com>
1036         * checks.adb (Activate_Overflow_Check): Handle floating-point
1037         case correctly.
1038         * checks.ads (Activate_Overflow_Check): Clarify handling of
1039         floating-point cases.
1040         * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
1041         flag if we generate an explicit overflow check (for
1042         Check_Float_Overflow mode).
1044 2014-08-04  Robert Dewar  <dewar@adacore.com>
1046         * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
1047         prj-attr.adb, prj-attr.ads: Minor reformatting.
1049 2014-08-04  Yannick Moy  <moy@adacore.com>
1051         * expander.adb (Expand): Always perform special
1052         expansion in GNATprove mode, even when doing pre-analysis.
1054 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1056         * repinfo.adb (List_Scalar_Storage_Order): List bit order if
1057         not default. Also list bit order if SSO is specified. Do not
1058         assume that bit order is always equal to scalar storage order.
1060 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1062         * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
1063         order to reverse SSO for a type that has an explicit native
1064         Bit_Order.
1066 2014-08-04  Doug Rupp  <rupp@adacore.com>
1068         * cal.c: Macro check for VxWorks7.
1069         * init.c (getpid): Likewise.
1070         * mkdir.c (__gnat_mkdir): Likewise.
1071         * sysdep.c (__gnat_is_file_not_found_error): Likewise.
1073 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
1075         * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
1076         of an invariant check in the case where No_Initialization is set,
1077         since the object is uninitialized.
1079 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1081         * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
1082         name, in addition to a pragma name.
1083         * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
1084         Is_Pragma_Name): Adjust accordingly.
1085         * sem_attr.ads, sem_attr.adb, exp_attr.adb
1086         (Attribute_Default_Scalar_Storage_Order): Add handling of new
1087         attribute.
1088         * gnat_rm.texi: Document the above.
1090 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1092         * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
1093         mode for now, to revert to previous behavior.
1094         * checks.adb: Revert previous change, no longer needed.
1096 2014-08-04  Robert Dewar  <dewar@adacore.com>
1098         * gnat1drv.adb (Adjust_Global_Switches): Don't set
1099         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1100         * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
1101         set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1102         * switch-c.adb (Scan_Front_End_Switches): Don't set
1103         Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1105 2014-08-04  Vincent Celier  <celier@adacore.com>
1107         * prj-attr.adb: Add new default indications for
1108         attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
1109         (Attribute_Default_Of): New function (Initialize): Set the
1110         default for those attributes that have one specified.
1111         * prj-attr.ads (Attribute_Data): New component Default.
1112         * prj-proc.adb (Expression): Take into account the new defaults
1113         for attributes Object_Dir, Exec_Dir and Source_Dirs.
1114         * prj-strt.adb (Attribute_Reference): Set the default for
1115         the attribute.
1116         * prj-tree.ads, prj-tree.adb (Default_Of): New function.
1117         (Set_Default_Of): New procedure.
1118         * prj.adb (The_Dot_String): New global Name_Id variable,
1119         initialized in procedure Initialize.
1120         (Dot_String): New function
1121         (Initialize): Initialize The_Dot_String.
1122         (Reset): Create the string list Shared.Dot_String_List.
1123         * prj.ads (Attribute_Default_Value): New enumeration type.
1124         (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
1125         (Dot_String): New function.
1126         (Shared_Project_Tree_Data): New string list component Dot_String_List.
1127         * projects.texi: Document new defaults for attribute Object_Dir,
1128         Exec_Dir and Source_Dirs.
1130 2014-08-04  Robert Dewar  <dewar@adacore.com>
1132         * sem_ch12.adb: Minor reformatting.
1134 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1136         * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
1137         expansion in CodePeer_Mode.
1138         (Selected_Range_Checks): Add handling of overflow checks in
1139         CodePeer_Mode.
1141 2014-08-04  Robert Dewar  <dewar@adacore.com>
1143         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
1144         Remove special test for Float'First, no longer required.
1145         (Expand_N_Attribute_Reference, case Succ): Remove special test
1146         for Float'First, no longer required.
1147         * s-fatgen.adb (Pred): return infinity unchanged.
1148         (Succ): ditto.
1150 2014-08-04  Claire Dross  <dross@adacore.com>
1152         * sem_ch12.adb (Analyze_Associations): Defaults should only be
1153         used if there is no explicit match.
1154         * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
1155         Also check for pragma external_axiomatization on generic units.
1157 2014-08-04  Robert Dewar  <dewar@adacore.com>
1159         * checks.adb (Activate_Overflow_Check): Remove
1160         Check_Float_Overflow processing.
1161         (Apply_Scalar_Range_Check): Ditto.
1162         (Generate_Range_Check): Ditto.
1163         * exp_ch4.adb (Expand_N_Op_Add): Add call to
1164         Check_Float_Op_Overflow.
1165         (Expand_N_Op_Divide): ditto.
1166         (Expand_N_Op_Multiply): ditto.
1167         (Expand_N_Op_Subtract): ditto.
1168         * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
1169         * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
1170         Do_Range_Check is set for floating-point case in -gnatc or
1171         GNATprove mode.
1172         (Analyze_Attribute, case Succ): Make sure
1173         Do_Range_Check is set for floating-point case in -gnatc or
1174         GNATprove mode.
1175         * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
1176         flag is set for real to integer conversion in GNATprove or
1177         -gnatc mode.
1179 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
1181         * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
1182         the expression of an Import or Export aspect as type Boolean
1183         and require it to be static. Add ??? comment. Also, set the
1184         Is_Exported flag when appropriate.
1186 2014-08-04  Robert Dewar  <dewar@adacore.com>
1188         * exp_ch4.adb: Minor reformatting.
1189         * exp_attr.adb: Minor reformatting.
1191 2014-08-04  Thomas Quinot  <quinot@adacore.com>
1193         * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
1194         (Unaligned_Valid): Remove now unused subprogram.
1195         * exp_attr.adb (Expand_N_Attribute_Reference, case
1196         Attribute_Valid): If the prefix is in reverse SSO or potentially
1197         unaligned, copy it using a byte copy operation to a temporary
1198         variable.
1199         * einfo.adb: Minor comment fix.
1201 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1203         * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
1205 2014-08-04  Robert Dewar  <dewar@adacore.com>
1207         * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
1208         * s-fatgen.adb (Pred): Handle Float'First.
1209         (Succ): Handle Float'Last.
1211 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1213         * sem_util.adb (Is_Potentially_Unevaluated): If the original
1214         node of a parent node in the tree is a short-circuit operation,
1215         the node is potentially unevaluated.
1217 2014-08-04  Robert Dewar  <dewar@adacore.com>
1219         * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
1220         conversion from a real type to an integer type.
1222 2014-08-04  Yannick Moy  <moy@adacore.com>
1224         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
1225         sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
1226         exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
1227         sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
1228         SPARK_05 instead of SPARK.
1230 2014-08-04  Robert Dewar  <dewar@adacore.com>
1232         * sem.ads: Minor reformatting.
1233         * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
1234         reformatting.
1235         (Analyze_Aspect_Specifications, case Convention): Put External_Name
1236         before Link_Name when constructing pragma.
1238 2014-08-04  Yannick Moy  <moy@adacore.com>
1240         * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
1241         to True during analysis of a default component expression.
1242         (Semantics): Save and restore In_Default_Expr around analysis.
1243         * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
1244         Call new wrapper Preanalyze_Default_Expression.
1245         (Preanalyze_Default_Expression): New wrapper on
1246         Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
1247         * sem_res.adb (Resolve_Call): Mark calls inside default
1248         expressions as not inlined in GNATprove mode.
1250 2014-08-04  Robert Dewar  <dewar@adacore.com>
1252         * exp_ch4.adb: Minor reformatting.
1254 2014-08-04  Olivier Hainque  <hainque@adacore.com>
1256         * link.c: remove const on __gnat_objlist_file_supported for AIX
1258 2014-08-04  Robert Dewar  <dewar@adacore.com>
1260         * sem_util.ads: Minor addition of comment.
1262 2014-08-04  Vincent Celier  <celier@adacore.com>
1264         * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
1265         all projects, including aggregate and aggregate library projects.
1267 2014-08-04  Yannick Moy  <moy@adacore.com>
1269         * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
1271 2014-08-04  Robert Dewar  <dewar@adacore.com>
1273         * sem_eval.adb (Test_In_Range): Always in range for
1274         Is_Known_Valid target type, where input type has smaller or
1275         equal size and does not have biased rep.
1277 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1279         * sem_attr.adb (Eval_Attribute): Constrained is not treated as
1280         a static attribute, and the Static flag must not be set on it
1281         during resolution. It may be constant-folded during expansion,
1282         but if expansion is disabled it is not a static expression.
1284 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1286         * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
1287         referenced once resolution has taken place.
1289 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
1291         * exp_ch4.adb (Expand_N_Type_Conversion): Don't
1292         compare access levels in the case where the target type is the
1293         anonymous type of an access discriminant, since the level of
1294         such types is defined based on context. Add comment.
1296 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1298         * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
1299         cases related to equality.  Remove the special processing
1300         for dispatching abstract subprograms as it is not needed.
1301         (Interpretation_Error): Add a specialized error message for
1302         predefined operators.
1303         (Is_Intrinsic_Equality): New routine.
1304         (Is_Suitable_Candidate): New routine.
1306 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
1308         * checks.adb: Minor comment reformatting.
1310 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1312         * restrict.adb (Check_Restriction): For checked max_parameter
1313         restrictions reset Violated flag, so that subsequent violations
1314         are properly detected.
1316 2014-08-04  Robert Dewar  <dewar@adacore.com>
1318         * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
1319         mode.
1320         (Process_Discriminants): Fix bad test of GNATprove mode
1322 2014-08-04  Hristian Kirtchev  <kirtchev@adacore.com>
1324         * sem_ch12.adb (Instantiate_Formal_Subprogram):
1325         Move variable to their own section. Propagate the source
1326         location of a formal parameter to the corresponding formal of
1327         the subprogram renaming declaration. Code reformatting.
1329 2014-08-04  Arnaud Charlet  <charlet@adacore.com>
1331         * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
1333 2014-08-04  Ed Schonberg  <schonberg@adacore.com>
1335         * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
1336         if error already detected.  We may reach this point in spite of
1337         previous errors when compiling with -gnatq, to force all possible
1338         errors (this is the usual ACATS mode).
1340 2014-08-04  Gary Dismukes  <dismukes@adacore.com>
1342         * checks.adb (Generate_Range_Check): For the case of converting
1343         a base type with a larger range to a smaller target subtype, only
1344         use unchecked conversions of bounds in the range check followed
1345         by conversion in the case where both types are discrete. In other
1346         cases, convert to the target base type and save in a temporary
1347         followed by the range check.
1348         (Convert_And_Check_Range): New procedure factoring code to save
1349         conversion to a temporary followed by a range check (called two
1350         places in Generate_Range_Check).
1351         * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
1352         check-in, to generate range checks for conversions between
1353         any floating-point types rather than limiting it to matching
1354         base types.
1356 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
1358         * gcc-interface/trans.c: Use hash_set instead of pointer_set.
1360 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1362         * restrict.adb (Update_Restrictions): For restrictions with a
1363         maximum parameter (e.g. number of protected entries in Ravenscar)
1364         do not compute the maximum of the violation over several objects,
1365         because the restriction is per-object.
1366         (Check_Restriction): After possible message, reset the value
1367         of of a checked max_parameter restriction to zero, to prevent
1368         cascaded errors.
1369         * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
1370         (sub)type to determine whether derived type should be on the
1371         list of private dependents of a type whose full view may become
1372         visible subsequently.
1374 2014-08-01  Olivier Hainque  <hainque@adacore.com>
1376         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
1377         $(CXX) instead of ../../xg++ to feed CXX.
1378         (CXX_LFLAGS): Remove. Now unused as the proper flags
1379         are expected to be included in the CXX variable.
1381 2014-08-01  Pierre-Marie Derodat  <derodat@adacore.com>
1383         * gcc-interface/decl.c (elaborate_expression_1): Return the new
1384         variable when debug info is needed and the expression is not
1385         constant.  Tag as external only new variables that are global.
1386         (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
1387         * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
1388         attributes for IN array parameters when their actual subtype
1389         needs debug info.
1390         (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
1391         * gcc-interface/gigi.h (process_deferred_decl_context): New.
1392         * gcc-interface/utils.c (gnat_write_global_declarations): Do not
1393         emit debug info for ignored global declarations.
1394         (struct deferred_decl_context_node,
1395         add_deferred_decl_context, add_deferred_type_context,
1396         compute_deferred_decl_context, defer_or_set_type_context,
1397         deferred_decl_context_queue, get_debug_scope,
1398         get_global_context, process_deferred_decl_context): New.
1399         (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
1400         computation machinery to rely on the GNAT Scope attribute.
1402 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1404         * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
1406 2014-08-01  Robert Dewar  <dewar@adacore.com>
1408         * sem_ch8.adb, opt.ads Minor comment updates.
1410 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1412         * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
1413         from the side effects removal machinery.
1414         * exp_util.adb (Duplicate_Subexpr): Add formal parameter
1415         Renaming_Req. Update the nested call to Remove_Side_Effects.
1416         (Duplicate_Subexpr_No_Checks): Add formal parameter
1417         Renaming_Req. Update the nested call to Remove_Side_Effects.
1418         (Duplicate_Subexpr_Move_Checks): Add formal parameter
1419         Renaming_Req. Update the nested call to Remove_Side_Effects.
1420         (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
1421         an object renaming declaration when the caller requests it.
1422         * exp_util.ads (Duplicate_Subexpr): Add formal
1423         parameter Renaming_Req. Update comment on usage.
1424         (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
1425         (Duplicate_Subexpr_Move_Checks): Add formal parameter
1426         Renaming_Req.
1428 2014-08-01  Bob Duff  <duff@adacore.com>
1430         * gnat_ugn.texi: Minor updates.
1432 2014-08-01  Robert Dewar  <dewar@adacore.com>
1434         * atree.adb: Minor reformatting.
1436 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1438         * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
1439         private extension, get stored constraint, if any, from full view.
1441 2014-08-01  Robert Dewar  <dewar@adacore.com>
1443         * opt.ads (No_Elab_Code_All_Pragma): New global variable.
1444         * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
1445         (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
1446         (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
1447         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1448         Remove code for checking with's, now in sem_ch10.adb, set
1449         Opt.No_Elab_Code_All_Pragma.
1451 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1453         * sem_ch3.adb (Copy_And_Build): Copy the declaration for
1454         access types as well and adjust the subtype mark if there are
1455         no constraints.
1457 2014-08-01  Robert Dewar  <dewar@adacore.com>
1459         * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
1461 2014-08-01  Robert Dewar  <dewar@adacore.com>
1463         * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
1465 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1467         * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
1468         * exp_ch4.adb (Expand_Composite_Equality): Add conversion
1469         of the actuals in the case of untagged record types too.
1470         * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
1471         full derivation of a derived private type, extracted from...
1472         (Copy_And_Build): In the case of record types and most
1473         enumeration types, copy the original declaration.  Build the
1474         full derivation according to the approach extracted from...
1475         (Build_Derived_Private_Type): ...here.  Call Build_Full_Derivation
1476         to create the full derivation in all existing cases and also
1477         create it in the no-discriminants/discriminants case instead of
1478         deriving directly from the full view.
1479         (Is_Visible_Component): Remove obsolete code.
1480         * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
1482 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1484         * fe.h (GNAT_Mode): New.
1485         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
1486         reverse SSO in GNAT mode.
1488 2014-08-01  Thomas Quinot  <quinot@adacore.com>
1490         * freeze.adb: Minor reformatting.
1492 2014-08-01  Thomas Quinot  <quinot@adacore.com>
1494         * exp_ch3.adb (Default_Initialize_Object): Do not generate
1495         default initialization for an imported object.
1497 2014-08-01  Olivier Hainque  <hainque@adacore.com>
1499         * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
1500         to the expected FARPROC type instead of void *.
1501         * adaint.c (f2t): Expect __time64_t * as second argument, in line with
1502         other datastructures.
1503         (__gnat_file_time_name_attr): Adjust accordingly.
1504         (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
1505         in line with uses.
1506         (__gnat_check_OWNER_ACL): Declare AccessMode
1507         parameter as ACCESS_MODE instead of DWORD, in line with callers
1508         and uses.
1509         (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
1510         unused on win32.  Correct cast of "args" on call to spawnvp.
1511         (add_handle): Cast realloc calls into their destination types.
1512         (win32_wait): Remove declaration and initialization of unused variable.
1513         (__gnat_locate_exec_on_path): Cast alloca calls
1514         into their destination types.
1515         * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
1516         their destination types.
1518 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
1520         * exp_ch4.adb (Expand_N_Type_Conversion): Expand
1521         range checks for conversions between floating-point subtypes
1522         when the target and source types are the same.
1524 2014-08-01  Robert Dewar  <dewar@adacore.com>
1526         * exp_aggr.adb: Minor reformatting.
1528 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1530         * sem_ch13.adb (Check_Indexing_Functions): Initialize
1531         Indexing_Found.
1533 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
1535         * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
1536         ALI file before we call the backend (so that gnat2why can append
1537         to it).
1539 2014-08-01  Thomas Quinot  <quinot@adacore.com>
1541         * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
1542         Expand_Packed_Element_Reference): Pass additional Rev_SSO
1543         parameter indicating whether the packed array type has reverse
1544         scalar storage order to the s-pack* Set/Get routines.
1545         * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
1546         indicating reverse scalar storage order.
1548 2014-08-01  Robert Dewar  <dewar@adacore.com>
1550         * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
1551         for initial component value in -gnatc or GNATprove mode.
1552         (Process_Discriminants): Same fix for default discriminant values.
1553         * sem_eval.adb (Test_In_Range): Improve accuracy of results by
1554         checking subtypes.
1556 2014-08-01  Robert Dewar  <dewar@adacore.com>
1558         * sinfo.ads: Minor comment clarification.
1560 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1562         * sem_ch13.adb (Analyze_Aspect_Specifications): Code
1563         reformatting. Store the generated pragma Import in the related
1564         subprogram as routine Wrap_Imported_Subprogram will need it later.
1565         * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
1566         a private type with discriminants is considered to fall in the
1567         category of unconstrained or tagged items.
1569 2014-08-01  Arnaud charlet  <charlet@adacore.com>
1571         * s-os_lib.adb (Open_Append): New functions to open a file for
1572         appending. This binds to the already existing (but not used)
1573         __gnat_open_append.
1574         * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
1575         to open a file for appending.
1576         * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
1577         to open the ALI file for appending.
1579 2014-08-01  Robert Dewar  <dewar@adacore.com>
1581         * sem_ch8.adb: Minor reformatting.
1583 2014-08-01  Yannick Moy  <moy@adacore.com>
1585         * sem_ch13.adb (Insert_Pragma): Add special case for precondition
1586         pragmas from aspects, which need to be inserted in proper order.
1588 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1590         * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
1591         Handle properly a type extension that constrains a discriminated
1592         derived type that renames other discriminants of an ancestor.
1594 2014-08-01  Thomas Quinot  <quinot@adacore.com>
1596         * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
1597         s-pack25.adb: Fix minor inconsistencies and typos.
1599 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1601         * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
1602         globals and move certain variables to the "local
1603         variable" section. Call Build_Class_Wide_Wrapper when
1604         renaming a default actual subprogram with a class-wide actual.
1605         (Build_Class_Wide_Wrapper): New routine.
1606         (Check_Class_Wide_Actual): Removed.
1607         (Find_Renamed_Entity): Code reformatting.
1608         (Has_Class_Wide_Actual): Alphabetize. Change the
1609         logic of the predicate as the renamed name may not necessarely
1610         denote the correct subprogram.
1612 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1614         * sem_ch7.adb: Fix minor oversight in condition.
1616 2014-08-01  Bob Duff  <duff@adacore.com>
1618         * projects.texi: Minor documentation improvements.
1620 2014-08-01  Robert Dewar  <dewar@adacore.com>
1622         * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
1623         * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
1624         * lib-load.adb: Initialize No_Elab_Code_All field.
1625         * lib-writ.adb: Initialize No_Elab_Code_All.
1626         * lib.ads, lib.adb: New field No_Elab_Code_All.
1627         * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
1628         * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
1629         longer exists.
1630         * sem_ch10.adb (Analyze_Context): Processing for
1631         No_Elaboration_Code_All removed.
1632         (Generate_Parent_References): Moved to Sem_Util.
1633         * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
1634         * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
1635         Sem_Ch10.
1636         * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
1637         * targparm.adb: Minor comment updates Add comments on ignoring
1638         pragma No_Elaboration_Code_All.
1640 2014-08-01  Nicolas Roche  <roche@adacore.com>
1642         * adaint.c (__gnat_set_close_on_exec): Ensure that
1643         we can unset "close_on_exec" flag.
1645 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1647         * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
1648         the parameter specs of the wrapper program for a primitive operation
1649         of a synchronized type that implements an interface, copy the
1650         null_exclusion indicator as well.
1652 2014-08-01  Robert Dewar  <dewar@adacore.com>
1654         * sem_eval.ads: Minor reformatting.
1656 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1658         * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
1659         to go down the chain of private derivations.
1660         * freeze.adb (Freeze_Entity): Fix typo in comment.
1662 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1664         * sem_ch3.adb (Access_Type_Declaration): If designated type is
1665         a limited view, create a master entity (as is already done for
1666         class-wide types) in case the full view designates a type that
1667         contains tasks.
1668         * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
1669         and the designated type is a limited view, use the non-limited
1670         view if available.
1672 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1674         * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
1675         (DECL_FUNCTION_STUB): Likewise.
1676         (SET_DECL_FUNCTION_STUB): Likewise.
1677         (DECL_PARM_ALT_TYPE): Likewise.
1678         (SET_DECL_PARM_ALT_TYPE): Likewise.
1679         (TYPE_VAX_FLOATING_POINT_P): Delete.
1680         (TYPE_DIGITS_VALUE): Likewise.
1681         (SET_TYPE_DIGITS_VALUE): Likewise.
1682         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
1683         (malloc32_decl): Delete.
1684         (build_vms_descriptor): Likewise.
1685         (build_vms_descriptor32): Likewise.
1686         (fill_vms_descriptor): Likewise.
1687         (convert_vms_descriptor): Likewise.
1688         (TARGET_ABI_OPEN_VMS): Likewise.
1689         (TARGET_MALLOC64): Likewise.
1690         * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
1691         (gnat_to_gnu_entity): Call it to add the original type as a parallel
1692         type to the implementation type of a packed array type.
1693         <E_Procedure>: Remove now obsolete kludge.
1694         <E_Exception>: Delete obsolete comment.
1695         <object>: Small tweak.
1696         <E_Subprogram_Type>: Remove support for stub subprograms, as well as
1697         for the descriptor passing mechanism.
1698         (gnat_to_gnu_param): Likewise.
1699         * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
1700         (gnat_print_type): Adjust.
1701         * gcc-interface/trans.c (gigi): Remove obsolete initializations.
1702         (vms_builtin_establish_handler_decl): Delete.
1703         (gnat_vms_condition_handler_decl): Likewise.
1704         (establish_gnat_vms_condition_handler): Likewise.
1705         (build_function_stub): Likewise.
1706         (Subprogram_Body_to_gnu): Do not call above functions.
1707         (Call_to_gnu): Remove support for the descriptor passing mechanism.
1708         * gcc-interface/utils.c (make_descriptor_field): Delete.
1709         (build_vms_descriptor32): Likewise.
1710         (build_vms_descriptor): Likewise.
1711         (fill_vms_descriptor): Likewise.
1712         (convert_vms_descriptor64): Likewise.
1713         (convert_vms_descriptor32): Likewise.
1714         (convert_vms_descriptor): Likewise.
1715         * gcc-interface/utils.c (unchecked_convert): Likewise.
1716         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
1718 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1720         * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
1721         type and get_unpadded_type for the longest FP type.
1722         (Attribute_to_gnu) <Machine>: Compare the precision of the types.
1723         (convert_with_check): Adjust formatting and remove FIXME.
1725 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1727         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1728         Do not convert the RM bounds to the base type.
1729         (E_Floating_Point_Subtype): Likewise.
1730         (E_Array_Subtype): Convert the bounds to the base type.
1731         * gcc-interface/trans.c (get_type_length): New function.
1732         (Attribute_to_gnu) <Range_Length>: Call it.
1733         <Length>: Likewise.
1734         (Loop_Statement_to_gnu): Convert the bounds to the base type.
1735         (gnat_to_gnu) <N_In>: Likewise.
1736         * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
1737         bounds to the base type.
1738         (create_range_type): Likewise.
1739         (convert): Convert the bounds to the base type for biased types.
1740         * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
1741         base type.
1743 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1745         * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
1746         incorrect implicit type derivation.
1747         * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
1748         to the base type.
1750 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1752         * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
1753         prefix of attribute Loop_Entry.
1754         * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
1755         Loop_Variant with respect to an enclosing loop (if any).
1756         (Contains_Loop_Entry): Update the parameter profile and all
1757         calls to this routine.
1758         * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
1759         for the corresponding body before determining the nature of the
1760         ultimate alias's declarative node.
1762 2014-08-01  Robert Dewar  <dewar@adacore.com>
1764         * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
1766 2014-08-01  Robert Dewar  <dewar@adacore.com>
1768         * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
1769         constraint error node since it is a list member.
1771 2014-08-01  Robert Dewar  <dewar@adacore.com>
1773         * sem_warn.adb: Minor reformatting.
1775 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
1777         * einfo.adb (Underlying_Type): Return the underlying full view
1778         of a private type if present.
1779         * freeze.adb (Freeze_Entity):
1780         Build a single freeze node for partial, full and underlying full
1781         views, if any.
1782         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
1783         missing guard before the access to the Underlying_Full_View.
1784         * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
1785         full view if present.
1786         * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
1788 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1790         * sem_res.adb (Resolve_Entry_Call): When an entry has
1791         preconditions, the entry call is wrapped in a procedure call
1792         that incorporates the precondition checks. To prevent a double
1793         expansion, with possible duplication of extra formals, that
1794         procedure call must only be pre-analyzed and resolved. Expansion
1795         takes place upon return to the caller Resolve_Call.
1797 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1799         * sem_res.adb (Resolve_Call): Do not perform
1800         GNATprove-specific inlining while within a generic.
1802 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1804         * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
1805         case expression with incompatible alternatives, when the first
1806         alternative is overloaded.
1808 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1810         * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
1811         to create the name of the parameterless call, rather than
1812         New_Copy, to preserve the tree structure when the name is a
1813         complex expression, e.g. a selected component that denotes a
1814         protected operation, whose prefix is itself a selected component.
1816 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1818         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
1819         Unit_Declaration_Node to retrieve body when inlining, to handle
1820         properly subprogram child units.
1822 2014-08-01  Robert Dewar  <dewar@adacore.com>
1824         * sem_attr.adb: Minor reformatting.
1826 2014-08-01  Vincent Celier  <celier@adacore.com>
1828         * debug.adb: Minor documentation addition for -dn switch.
1830 2014-08-01  Robert Dewar  <dewar@adacore.com>
1832         * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
1833         sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
1834         documentation of Is_Static_Expression vs Is_OK_Static_Expression.
1835         In several places, use the Is_OK version as suggested by the spec.
1837 2014-08-01  Vincent Celier  <celier@adacore.com>
1839         * gnatcmd.adb: Revert last change which was not correct.
1841 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1843         * freeze.adb (Find_Constant): Ensure that the constant being
1844         inspected is still an object declaration (i.e. not a renaming).
1846 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1848         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
1849         An attribute_reference to Loop_Entry denotes an iterator
1850         specification: its prefix is an object, as is the case for 'Old.
1851         b) If the domain of iteration is an expression whose type has
1852         the Iterable aspect defined, this is an iterator specification.
1854 2014-08-01  Robert Dewar  <dewar@adacore.com>
1856         * gnatcmd.adb: Minor reformatting.
1858 2014-08-01  Robert Dewar  <dewar@adacore.com>
1860         * atree.ads (Info_Messages): New counter.
1861         * err_vars.ads: Minor comment update.
1862         * errout.adb (Delete_Warning_And_Continuations): Deal
1863         with new Info_Messages counter.
1864         (Error_Msg_Internal): ditto.
1865         (Delete_Warning): ditto.
1866         (Initialize): ditto.
1867         (Write_Error_Summary): ditto.
1868         (Output_Messages): ditto.
1869         (To_Be_Removed): ditto.
1870         * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
1871         (Compilation_Errors): ditto.
1872         * errutil.adb (Error_Msg): Deal with Info_Messages counter.
1873         (Finalize): ditto.
1874         (Initialize): ditto.
1875         * sem_prag.adb (Analyze_Pragma): Minor comment addition.
1876         * gnat_ugn.texi: Document that -gnatwe does not affect info
1877         messages.
1879 2014-08-01  Robert Dewar  <dewar@adacore.com>
1881         * debug.adb: Document debug switch -gnatd.Z.
1882         * sem.adb (Semantics): Force expansion on in no or configurable
1883         run time mode.
1885 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1887         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
1888         unchecked conversion denotes an iterator specification. Such a
1889         conversion will be inserted in the context of an inlined call
1890         when needed, and its argument is always an object.
1892 2014-08-01  Robert Dewar  <dewar@adacore.com>
1894         * make.adb, makeutl.ads: Minor reformatting.
1895         * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
1896         Back_End_Inlining.
1898 2014-08-01  Tristan Gingold  <gingold@adacore.com>
1900         * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
1902 2014-08-01  Javier Miranda  <miranda@adacore.com>
1904         * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
1905         -gnatd.z.
1906         * debug.adb: Updating documentation.
1907         * exp_ch6.adb (Expand_Call): Remove assertion.
1909 2014-08-01  Robert Dewar  <dewar@adacore.com>
1911         * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
1912         sem_res.adb: Minor reformatting.
1914 2014-08-01  Vincent Celier  <celier@adacore.com>
1916         * make.adb (Initialize): Set Keep_Temporary_Files to True when
1917         -dn is specified.
1918         * makeusg.adb: Add line for new switch --keep-temp-files.
1919         * makeutl.ads (Keep_Temp_Files_Option): New constant String.
1920         * opt.ads (Keep_Temporary_Files): Document that it is also used
1921         by gnatmake and gprbuild.
1922         * switch-m.adb: Recognize new switch --keep-temp-files.
1924 2014-08-01  Tristan Gingold  <gingold@adacore.com>
1926         * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
1927         * exp_ch9.adb (Make_Task_Create_Call): ... here.
1929 2014-08-01  Vincent Celier  <celier@adacore.com>
1931         * gnat1drv.adb: Do not try to get the target parameters when
1932         invoked with -gnats.
1934 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
1936         * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
1937         declaration subject to No_Initialization.
1939 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1941         * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
1942         is a subtype with dynamic predicates, or a non-static subtype
1943         with predicates.
1944         * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
1945         expression if subtype has a dynamic predicate.
1946         (Constrain_Index): Reject subtype indication if subtype mark
1947         has predicates.
1948         (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
1949         (Make_Index): If index is a subtype indication, itype inhereits
1950         predicate flags for subsequent testing.
1951         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
1952         procedure Check_Predicate_Use, to reject illegal uses of domains
1953         of iteration that have dynamic predicates.
1954         * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
1955         indication to which a predicate applies.
1956         * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
1957         prevent cascaded errors when subtype is invalid.
1959 2014-08-01  Robert Dewar  <dewar@adacore.com>
1961         * sem_ch10.adb: Minor reformatting.
1963 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1965         * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
1966         because either type may be a subtype of the other.
1968 2014-08-01  Vincent Celier  <celier@adacore.com>
1970         * makeusg.adb: Add documentation for debug switch -dn.
1972 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1974         * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
1975         expression with standard operator and type, for pretty-printing
1976         use, when in ASIS_Mode. When generating code dimensional analysis
1977         is not involved and dimension expressions are handled statically,
1978         and other operators are resolved in the usual way.
1980 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
1982         * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
1983         Parent_Subtype in ASIS mode, leads to several failures.
1984         * sem_ch4.adb (Analyze_Selected_Component): In an instance,
1985         if the prefix is a type extension, check whether component is
1986         declared in the parent type, possibly in a parent unit. Needed
1987         in ASIS mode when Parent_Subtype is not set.
1989 2014-08-01  Robert Dewar  <dewar@adacore.com>
1991         * sem_prag.adb: Minor reformatting.
1992         * s-regpat.adb: Minor reformatting.
1993         * sem_ch3.adb (Analyze_Object_Declaration): Do not set
1994         Treat_As_Volatile on constants.
1996 2014-08-01  Tristan Gingold  <gingold@adacore.com>
1998         * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
2000 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2002         * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
2003         warning on a with_clause created for the renaming of a parent
2004         unit in an explicit with_clause.
2006 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2008         * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
2009         Set Is_Imported flag at once, to simplify subsequent legality
2010         checks. Reject the aspect on an object whose declaration has an
2011         explicit initial value.
2012         * sem_prag.adb (Process_Import_Or_Interface): Use original node
2013         to check legality of an initial value for an imported entity.
2014         Set Is_Imported flag in case of error to prevent cascaded errors.
2015         Do not set the Is_Imported flag if the pragma comes from an
2016         aspect, because it is already done when analyzing the aspect.
2018 2014-08-01  Emmanuel Briot  <briot@adacore.com>
2020         * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
2022 2014-08-01  Robert Dewar  <dewar@adacore.com>
2024         * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
2025         identifier name.
2027 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2029         * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
2030         checks when the related variable comes from source.
2031         * sem_res.adb (Resolve_Actuals): Enable the volatility checks
2032         when the related actual parameter comes from source. Update comment.
2033         * freeze.adb (Freeze_Record_Type): Do not freeze the designated
2034         type of an array of pointers when the designated type is
2035         class-wide and its root type is the record being currently frozen.
2037 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2039         * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
2040         of renaming declaration created for domain of iteration.
2041         * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
2042         for error messages on aggregates whose index subtypes have
2043         predicates. The new placement avoids posting messages on previous
2044         subtype declarations rather than on the aggregate itself.
2045         * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
2046         Add_Dispatching_Operation, to handle properly the overriding of
2047         the predefined operations on controlled types, when the partial
2048         view of a type is not visibly controlled.
2050 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
2052         * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
2053         appendix.
2055 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2057         * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
2058         assertion check as the attribute is defined for all entities.
2059         (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
2060         check as the attribute is defined for all entities.
2061         * einfo.ads Update the documentation of attribute
2062         Is_Hidden_Non_Overridden_Subprogram.
2063         * sem_ch7.adb (Install_Package_Entity): No need to check the
2064         entity kind of the Id.
2065         * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
2066         usage. Ensure that the homographs are of the same entity kind
2067         and not fully conformant.
2068         (Hide_Non_Overridden_Subprograms): Update the comment on usage.
2070 2014-08-01  Robert Dewar  <dewar@adacore.com>
2072         * inline.adb: Minor code reorganization.
2073         * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
2075 2014-08-01  Robert Dewar  <dewar@adacore.com>
2077         * inline.adb, s-os_lib.ads: Minor reformatting.
2079 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2081         * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
2082         * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
2083         hooks.
2085 2014-08-01  Yannick Moy  <moy@adacore.com>
2087         * inline.adb (Cannot_Inline): Issue info message instead of
2088         warning for subprograms not inlined in GNATprove mode.
2089         * sem_res.adb (Resolve_Call): Take body into account for deciding
2090         whether subprogram can be inlined in GNATprove mode or not.
2092 2014-08-01  Claire Dross  <dross@adacore.com>
2094         * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
2095         of Get_First_Parent_With_External_Axiomatization_For_Entity for
2096         shorter.
2097         * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
2098         for parameters of packages with external axiomatization.
2100 2014-08-01  Robert Dewar  <dewar@adacore.com>
2102         * sem_res.adb: Minor comment addition.
2104 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2106         * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
2107         s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
2108         no longer used.
2109         * s-os_lib.ads: Minor reformatting.
2111 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2113         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
2114         completely previous code since only GCC back-ends are prepared
2115         to handle e.g. 'Machine attribute.
2116         * targparm.adb, targparm.ads: Remove remaining refs and
2117         handling of OpenVMS_On_Target, VAX_Float_On_Target and
2118         RTX_RTSS_Kernel_Module_On_Target.
2119         * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
2120         no longer used.
2122 2014-08-01  Robert Dewar  <dewar@adacore.com>
2124         * exp_dist.adb, exp_attr.adb: Minor reformatting.
2125         * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
2126         a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
2127         sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
2128         g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
2129         improper use of shall.
2131 2014-08-01  Robert Dewar  <dewar@adacore.com>
2133         * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
2134         exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
2135         exp_ch3.adb: Minor reformatting & code reorganization.
2137 2014-08-01  Robert Dewar  <dewar@adacore.com>
2139         * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
2140         * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
2141         s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2142         s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
2143         s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
2144         code.
2145         * gcc-interface/decl.c, gcc-interface/Makefile.in,
2146         gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
2148 2014-08-01  Pascal Obry  <obry@adacore.com>
2150         * s-os_lib.ads: Rename File_Size to Large_File_Size.
2152 2014-08-01  Robert Dewar  <dewar@adacore.com>
2154         * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
2155         a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
2156         a-numaux-libc-x86.ads: Fix bad package header comments.
2157         * elists.ads, elists.adb (Append_New_Elmt): New procedure.
2158         * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
2159         checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
2160         sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
2161         targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
2162         stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
2163         s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
2164         s-os_lib.adb: Remove VMS-specific code.
2166 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2168         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
2169         previous state in CodePeer_Mode.
2171 2014-08-01  Robert Dewar  <dewar@adacore.com>
2173         * hostparm.ads: Put back definition of OpenVMS as False to aid
2174         the transition process.
2175         * sem_ch7.adb: Minor reformatting.
2176         * prj-env.adb: Minor code fix.
2177         * gnat_rm.texi: Complete previous change.
2178         * sem_ch3.adb: Minor reformatting.
2179         * sem_ch6.adb: Minor reformatting.
2180         * sem_elab.adb: Minor reformatting.
2181         * exp_strm.adb: Complete previous change.
2183 2014-08-01  Vincent Celier  <celier@adacore.com>
2185         * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
2186         warning when a constant is unreferenced and its type has pragma
2187         Unreferenced_Objects.
2189 2014-08-01  Hristian Kirtchev  <kirtchev@adacore.com>
2191         * einfo.adb: Flag2 is now known as
2192         Is_Hidden_Non_Overridden_Subprogram.
2193         (Is_Hidden_Non_Overridden_Subprogram): New routine.
2194         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
2195         (Write_Entity_Fields): Output Flag2.
2196         * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
2197         along with occurrences in entities.
2198         (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
2199         (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
2200         and pragma Inline.
2201         * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
2202         declared non-overriden homographs into visibility.
2203         * sem_ch13.adb (Freeze_Entity_Checks): Hide all
2204         implicitly declared non-overriden homographs.
2205         (Hide_Non_Overridden_Subprograms): New routine.
2207 2014-08-01  Robert Dewar  <dewar@adacore.com>
2209         * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
2210         VMS-specific code.
2211         * prj-conf.adb: Minor reformatting.
2212         * xr_tabls.adb (Read_File): Restore code which was enabled on
2213         non VMS platforms before.
2214         * prj-env.adb (Initialize_Default_Project_Path): Ditto.
2215         * sem_ch5.adb: Minor reformatting.
2216         * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
2217         sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
2218         Remove VMS-specific code.
2220 2014-08-01  Vincent Celier  <celier@adacore.com>
2222         * make.adb (Await_Compile): Remove loop that was only needed
2223         for VMS.
2225 2014-08-01  Robert Dewar  <dewar@adacore.com>
2227         * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
2228         a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
2229         a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
2230         einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
2231         exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
2232         fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
2233         g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
2234         g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
2235         krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
2236         mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
2237         osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
2238         prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
2239         rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
2240         s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
2241         s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
2242         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
2243         s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
2244         s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
2245         sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
2246         sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
2247         sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
2248         treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
2249         specific code and comments.
2251 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2253         * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
2254         Check_Reverse_Iteration, to verify the legality of the Reverse
2255         indicator on various container types, and to detect illegal
2256         reverse iterations on containers that only supoort forward
2257         iteration.
2259 2014-08-01  Vincent Celier  <celier@adacore.com>
2261         * gnatcmd.adb: Remove the VMS specific stuff.  Integrate in
2262         procedure GNATCmd the relevant declarations from packages VMS_Cmds
2263         and VMS_Conv.
2264         * gnatcmd.ads: Update comments to remove any trace of VMS
2266 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2268         * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
2269         defaulted actual that is an operator, before building wrapper
2270         for it in GNATprove mode. Restrict construction of wrapper to
2271         actuals that are operators.
2273 2014-08-01  Vincent Celier  <celier@adacore.com>
2275         * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
2276         specific packages no longer needed.
2278 2014-08-01  Pascal Obry  <obry@adacore.com>
2280         * s-os_lib.ads (System.CRTL): Move with clause to body.
2281         (File_Size): New type.
2282         (File_Length64): Use it.
2283         (File_Length): Restore previous spec returning a Long_Integer.
2284         * s-os_lib.adb (System.CRTL): Move with clause here.
2286 2014-08-01  Vincent Celier  <celier@adacore.com>
2288         * mlib-prj.adb: Update comments to remove any mention of VMS.
2290 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2292         * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
2293         xgnatugn.adb and ug_words.
2295 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2297         * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
2298         expansion can be avoid for Machine, Model and Rounding.
2299         (Is_Inline_Floating_Point_Attribute): Return true for Machine
2300         & Model, as well as Rounding if wrapped in a conversion to an
2301         integer type.
2302         * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
2303         * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
2304         * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
2305         * gcc-interface/misc.c (enumerate_modes): Compute it.
2306         * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
2307         (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
2308         Machine and Model.
2309         (Attribute_to_gnu) <Attr_Model>: New case.
2310         <Attr_Machine>): Likewise.
2311         (convert_with_check): Test
2312         fp_arith_may_widen variable.
2314 2014-08-01  Pascal Obry  <obry@adacore.com>
2316         * adaint.h (GNAT_FOPEN): New definition for Windows.
2317         (GNAT_OPEN): Likewise.
2318         (GNAT_STAT): Likewise.
2319         (GNAT_FSTAT): Likewise.
2320         (GNAT_LSTAT): Likewise.
2321         (GNAT_STRUCT_STAT): Likewise.
2322         * adaint.c (__gnat_stat): Fix computation of file size for
2323         Windows.
2325 2014-08-01  Vincent Celier  <celier@adacore.com>
2327         * Makefile.rtl: Minor comment update.
2329 2014-08-01  Vincent Celier  <celier@adacore.com>
2331         * Make-generated.in: Remove dependencies for vms-help.
2333 2014-08-01  Gary Dismukes  <dismukes@adacore.com>
2335         * makeutl.ads, opt.ads: Minor grammar fixes.
2336         * makeutl.adb: Minor code reorganization.
2338 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2340         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
2341         gnatsym.adb: Remove gnatsym (VMS only tool).
2343 2014-08-01  Ben Brosgol  <brosgol@adacore.com>
2345         * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
2346         conditionalization from gnat_ugn.texi and projects.texi, and updated
2347         (considerably simplified) xgnatugn.adb, to be removed soon.
2349 2014-08-01  Vincent Celier  <celier@adacore.com>
2351         * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
2352         * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
2353         instead of Debug.Debug_Flag_S.
2354         * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
2355         No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
2356         error messages.
2357         * makeutl.ads (No_Exit_Message_Option): New constant string
2358         for switch --no-exit-message.
2359         * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
2360         * switch-m.adb (Scan_Make_Switches): Recognize new switch
2361         --no-exit-message.
2363 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2365         * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
2366         * gcc-interface/Make-lang.in: Remove exp_vfpt.o
2368 2014-08-01  Javier Miranda  <miranda@adacore.com>
2370         * inline.ads (Inlined_Calls, Backend_Calls,
2371         Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
2372         moved to inline.adb (Cannot_Inline): Update documentation.
2373         (Check_And_Build_Body_To_Inline): Renamed.
2374         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
2375         * inline.adb (Check_Inlining_Restrictions): New local variable.
2376         (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
2377         Backend_Not_Inlined_Subps): Declarations moved here
2378         from inline.ads (Number_Of_Statements): Removed.
2379         (Remove_Pragmas): Avoid duplicated version of this subprogram.
2380         (Build_Body_To_Inline): Code cleanup.
2381         (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
2382         (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
2383         (Check_Body_To_Inline): Removed.
2384         (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
2385         (Has_Excluded_Declaration): No action if not
2386         Check_Inlining_Restrictions.
2387         (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
2388         (Initialize): Initialize the lists of inlined calls and subprograms.
2389         (List_Inlining_Info): Subprogram moved here from package exp_ch6.
2390         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
2391         to Check_And_Build_Body_To_Inline since it has been renamed as
2392         Check_And_Split_Unconstrained_Function
2393         * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
2394         package inline.
2395         * gnat1drv.adb Update call to Inline.List_Inlining_Info.
2397 2014-08-01  Vincent Celier  <celier@adacore.com>
2399         * debug.adb: Add documentation for new debug switch -ds.
2400         * make.adb (List_Bad_Compilations): Do not issue any message
2401         when switch -ds is specified.
2402         * makeutl.adb (Fail_Program): Do not issue any message when
2403         -ds is specified.
2404         (Finish_Program): Ditto.
2406 2014-08-01  Robert Dewar  <dewar@adacore.com>
2408         * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
2409         s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
2410         s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
2411         indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
2412         indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
2413         s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
2414         s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
2415         s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
2416         s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
2417         s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
2418         s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
2419         s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
2420         g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
2421         s-tratas.ads: Minor fix to copyright notices.
2423 2014-08-01  Eric Botcazou  <ebotcazou@adacore.com>
2425         * sinfo.ads: Remove long obsolete comment.
2426 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2428         * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
2429         * sem_ch3.adb: Minor reformatting.
2431 2014-08-01  Pascal Obry  <obry@adacore.com>
2433         * cstreams.c: Only enable large file support on know supported
2434         platforms. Add missing defines/includes.
2436 2014-08-01  Ed Schonberg  <schonberg@adacore.com>
2438         * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
2439         No_Dynamic_Predicate_On_Actual, to enforce the generic contract
2440         on generic units that contain constructs that forbid subtypes
2441         with predicates.
2442         * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
2443         Inherit flags indicating the presence of predicates in subtype
2444         declarations with and without constraints.
2445         (Inherit_Predicate_Flags): Utility for the above.
2446         * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
2447         indicate that the actual cannot have predicates, and preserve
2448         warning. In an instance, report error if actual has predicates
2449         and the construct appears in a package declaration.
2450         * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
2451         for an actual with predicates, if the corresponding formal
2452         carries No_Predicate_On_Actual or (in the case of a loop)
2453         No_Dynamic_Predicate_On_Actual.
2454         * sem_ch13.adb (Build_Predicate_Functions); Do not build a
2455         Static_Predicate function if the type is non-static (in the
2456         presence of previous errors),
2457         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
2458         No_Dynamic_Predicate_On_Actual in a generic context, to enforce
2459         generic contract on actuals that cannot have predicates.
2461 2014-08-01  Pascal Obry  <obry@adacore.com>
2463         * a-direct.adb (C_Size): Returns an int64.
2464         * osint.adb (System.CRTL): New with clause.
2465         (File_Length.Internal): Returns an int64.
2466         * s-os_lib.ads (File_Length): Returns an int64.
2468 2014-08-01  Robert Dewar  <dewar@adacore.com>
2470         * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
2471         mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
2472         osint.adb, krunch.adb: Minor reformatting.
2474 2014-08-01  Robert Dewar  <dewar@adacore.com>
2476         * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
2477         sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
2478         sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
2479         Remove VMS-specific code.
2480         * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
2482 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2484         * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
2485         gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
2486         make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
2487         mlib.ads, tempdir.adb: Remove VMS handling.
2489 2014-08-01  Pascal Obry  <obry@adacore.com>
2491         * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
2492         (__gnat_named_file_length): Likewise.
2493         (__gnat_file_length_attr): Likewise.
2494         * a-direct.adb (C_Size): Use size_t as returned type.
2495         * osint.adb (File_Length): Adjust spec for Internal routine
2496         (returns size_t).
2497         * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
2498         (System.CRTL): With claused moved to spec.
2499         * s-os_lib.ads (System.CRTL): With clause moved to here.
2501 2014-08-01  Pascal Obry  <obry@adacore.com>
2503         * adaint.h, adaint.c (__gnat_open): Added.
2504         * s-crtl.ads (open): Import __gnat_open for large file support.
2506 2014-08-01  Robert Dewar  <dewar@adacore.com>
2508         * sem_case.adb (Dup_Choice): Improve message for integer constants.
2510 2014-08-01  Arnaud Charlet  <charlet@adacore.com>
2512         * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
2514 2014-08-01  Pascal Obry  <obry@adacore.com>
2516         * adaint.h (GNAT_OPEN): Defines as open64 where supported.
2517         * adaint.c (GNAT_OPEN): Uses new macro where needed.
2519 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2521         * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
2522         extracted from...
2523         (maybe_pad_type): ...here.  Call it to canonicalize the pad type.
2524         * gcc-interface/gigi.h: Update comment.
2526 2014-07-31  Javier Miranda  <miranda@adacore.com>
2528         * debug.adb Remove documentation of -gnatd.k (no longer needed).
2529         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
2530         * inline.ads (Backend_Inlined_Subps): New
2531         Elist.  (Backend_Not_Inlined_Subps): New Elist.
2532         (Has_Excluded_Declaration): Declaration previously located in
2533         * inline.adb (Has_Excluded_Statement): Declaration previously
2534         located in inline.adb
2535         * inline.adb (Has_Single_Return): Moved out of
2536         Build_Body_To_Inline to avoid having duplicated code.
2537         (Number_Of_Statements): New subprogram.
2538         (Register_Backend_Inlined_Subprogram): New subprogram.
2539         (Register_Backend_Not_Inlined_Subprogram): New subprogram.
2540         (Add_Inlined_Subprogram): Register backend inlined subprograms and
2541         also register subprograms that cannot be inlined by the backend.
2542         (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
2543         to avoid having duplicated code.  Replace occurrences of
2544         Debug_Flag_Dot_K by Back_End_Inlining.
2545         * sem_res.adb (Resolve_Call): Code cleanup.
2546         * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
2547         occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
2548         (List_Inlining_Info): Add listing of subprograms passed to the
2549         backend and listing of subprograms that cannot be inlined by
2550         the backend.
2551         * sem_ch12.adb, sem_ch3.adb Replace occurrences of
2552         Debug_Flag_Dot_K by Back_End_Inlining.
2554 2014-07-31  Robert Dewar  <dewar@adacore.com>
2556         * nlists.ads: Minor code fix (remove unwise Inline for
2557         List_Length).
2559 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
2561         * einfo.adb: Remove VMS specific code.
2562         * exp_attr.adb: Remove VAX specific code.
2563         * set_targ.adb: Remove handling of VAX_Float.
2564         * sem_vfpt.adb: Remove references to Vax_Native.
2565         * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
2567 2014-07-31  Robert Dewar  <dewar@adacore.com>
2569         * sem_ch4.adb: Minor reformatting.
2571 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
2573         * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
2574         to VMS. Misc clean ups.
2575         * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
2577 2014-07-31  Robert Dewar  <dewar@adacore.com>
2579         * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
2580         exp_prag.adb, frontend.adb, interfac.ads,
2581         par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
2582         s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
2583         sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
2584         snames.ads-tmpl: Remove obsolete VMS-specific code.
2586 2014-07-31  Robert Dewar  <dewar@adacore.com>
2588         * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
2590 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
2592         * a-intnam-linux.ads: Minor: update obsolete comments.
2593         * s-taasde.adb: Minor: fix comment header.
2595 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
2597         * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
2598         s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
2599         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
2600         g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
2601         s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
2602         s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
2603         s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
2604         a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
2605         symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
2606         symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2607         s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
2608         symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
2609         s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
2610         s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
2611         s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
2612         a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
2613         * namet.h (Is_Non_Ada_Error): Remove.
2615 2014-07-31  Robert Dewar  <dewar@adacore.com>
2617         * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
2618         reformatting.
2620 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2622         * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
2623         which demonstrates the expansion of while loops subject to
2624         attribute 'Loop_Entry. The condition of a while loop along with
2625         related condition actions is now wrapped in a function.  Instead
2626         of repeating the condition, the expansion now calls the function.
2628 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2630         * sem_case.adb (Check_Against_Predicate): Correct off-by-one
2631         error when reporting of missing values in a case statement for
2632         a type with a static predicate.
2633         (Check_Choices): Reject a choice given by a subtype to which a
2634         Dynamic_Predicate applies.
2635         * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
2636         Has_Dynamic_Predicate_Aspect flag from parent.
2638 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2640         * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
2641         cannot apply to a subtype of an incomplete type.
2642         (Is_Static_Choice): Treat an Others_Clause as static. The
2643         staticness of the expression and of the range are checked
2644         elsewhere.
2646 2014-07-31  Pascal Obry  <obry@adacore.com>
2648         * adaint.h (__gnat_ftell64): Added.
2649         (__gnat_fseek64): Added.
2650         (__int64): Added.
2651         * cstreams.c (__int64): Removed.
2653 2014-07-31  Pascal Obry  <obry@adacore.com>
2655         * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
2656         * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
2657         (ftell64): Always returns a 64bit value.
2658         * cstreams.c (int64): New definition.
2659         (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
2660         (__gnat_ftell64): Always returns a 64bit value. The implemenation now
2661         uses ftello() on UNIX.
2662         (__gnat_fseek64): Offset is always a 64bit value. The
2663         implementation now uses fseeko() on UNIX.
2664         * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
2665         always use fseek64 to set the offset.
2666         (Size): Simplify code, always use fseek64/ftell64.
2667         * s-direio.ads (Count): Now an int64.
2668         * g-socket.ads (Vector_Element): Adjust definition for Length
2669         to be a size_t. This matches the C definition and avoid using
2670         a 64bit integer on 32bit platforms now that Count is always 64bit.
2671         * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
2672         (C_Recvmsg): Change some conversion to account for change in
2673         Vector_Element.
2674         (C_Sendmsg): Likewise.
2676 2014-07-31  Robert Dewar  <dewar@adacore.com>
2678         * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
2679         * debug.adb: Remove documentation of -gnatdm flag.
2680         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
2681         -gnatdm flag.
2683 2014-07-31  Arnaud Charlet  <charlet@adacore.com>
2685         * lib-writ.adb (Write_Unit_Information): Fix case where U =
2686         No_Unit.
2688 2014-07-31  Claire Dross  <dross@adacore.com>
2690         * exp_util.adb, exp_util.ads
2691         (Get_First_Parent_With_External_Axiomatization_For_Entity):
2692         New routine to find the first parent of an entity with
2693         a pragma Annotate (GNATprove, External_Axiomatization).
2694         (Has_Annotate_Pragma_For_External_Axiomatization): New function
2695         to check if a package has a pragma Annotate (GNATprove,
2696         External_Axiomatization).
2697         * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
2698         flag on the entity for the declaration created for a formal
2699         subprogram in an instance. This is a renaming declaration,
2700         or in GNATprove_Mode the declaration of an expression function
2701         that captures the axiomatization of the actual.
2702         * sem_ch6.adb (Analyze_Expression_Function): For a
2703         Generic_Actual_Subprogram, place body immediately after the
2704         declaration because it may be used in a subsequent declaration
2705         in the instance.
2706         * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
2707         the actual is a function, not an operator. Handle functions with
2708         one and two parameters and binary and unary operators.
2710 2014-07-31  Pascal Obry  <obry@adacore.com>
2712         * cstreams.c (__gnat_is_regular_file_fd): Removed.
2713         * adaint.c (__gnat_is_regular_file_fd): Added.
2715 2014-07-31  Robert Dewar  <dewar@adacore.com>
2717         * exp_strm.adb: Minor reformatting.
2719 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2721         * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
2722         Analyze_Associations, to create a wrapper around operators that
2723         are actuals to formal subprograms. This is done in GNATProve
2724         mode in order to propagate the contracts of the operators to
2725         the body of the instance.
2727 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2729         * sem_attr.adb (Analyze_Attribute, case 'Old):  The reference is
2730         legal if within an aspect specification for a generic subprogram.
2732 2014-07-31  Javier Miranda  <miranda@adacore.com>
2734         * gnat1drv.adb (Back_End_Inlining): Set to false if
2735         Suppress_All_Inlining is set.
2736         * debug.adb: Adding documentation for -gnatd.z.
2737         * inline.adb (Add_Inlined_Body): Extend the -gnatn2
2738         processing to -gnatn1 for calls to Inline_Always routines.
2739         (Add_Inlined_Subprogram): Remove previous patch.
2741 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2743         * sem_ch13.adb (Check_One_Function): Apply properly the static
2744         semantic rules for indexing aspects and the functions they denote.
2746 2014-07-31  Javier Miranda  <miranda@adacore.com>
2748         * debug.adb: Complete documentation of -gnatd.z.
2750 2014-07-31  Bob Duff  <duff@adacore.com>
2752         * gnat_ugn.texi: Minor doc fixes.
2754 2014-07-31  Robert Dewar  <dewar@adacore.com>
2756         * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
2757         index value.
2759 2014-07-31  Tristan Gingold  <gingold@adacore.com>
2761         * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
2762         (Packed_Bytes1): Make component aliased.
2764 2014-07-31  Robert Dewar  <dewar@adacore.com>
2766         * s-unstyp.ads, s-fileio.adb: Minor reformatting.
2768 2014-07-31  Robert Dewar  <dewar@adacore.com>
2770         * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
2771         reformatting.
2773 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2775         * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
2776         on array references here, now done more selectively in trans.c.
2778 2014-07-31  Doug Rupp  <rupp@adacore.com>
2780         * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
2782 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2784         * sem_util.adb (Is_Effectively_Volatile): New routine.
2786 2014-07-31  Fedor Rybin  <frybin@adacore.com>
2788         * gnat_ugn.texi: Document --test-duration option for gnattest.
2790 2014-07-31  Javier Miranda  <miranda@adacore.com>
2791             Eric Botcazou  <ebotcazou@adacore.com>
2793         * opt.ads (Back_End_Inlining): New variable which controls
2794         activation of inlining by back-end expansion.
2795         * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
2796         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
2797         the body to be inlined by the frontend if Back_End_Inlining
2798         is enabled.
2799         * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
2800         (Expand_Call): If backend inlining is enabled let the backend to
2801         handle inlined subprograms.
2802         * inline.ads (Register_Backend_Call): Moved here from exp_ch6
2803         * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
2804         (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
2805         (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
2806         enabled.
2807         * debug.adb Document -gnatd.z
2808         * fe.h Import Back_End_Inlining variable.
2809         * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
2810         enabled then declare attribute "always inline"
2811         * gcc-interface/decl.c, gcc-interface/trans.c,
2812         gcc-interface/gigi.h: Add handling of Inline_Always pragma.
2814 2014-07-31  Robert Dewar  <dewar@adacore.com>
2816         * a-ngelfu.ads: Minor comment fix.
2818 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2820         * freeze.adb (Freeze_Record_Type): Replace all calls to
2821         Is_SPARK_Volatile with Is_Effectively_Volatile and update
2822         related comments.
2823         * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
2824         Replace all calls to Is_SPARK_Volatile with
2825         Is_Effectively_Volatile and update related comments.
2826         * sem_ch5.adb (Analyze_Iterator_Specification,
2827         Analyze_Loop_Parameter_Specification): Replace all calls to
2828         Is_SPARK_Volatile with Is_Effectively_Volatile and update
2829         related comments.
2830         * sem_ch6.adb (Process_Formals): Replace all calls to
2831         Is_SPARK_Volatile with Is_Effectively_Volatile and update
2832         related comments.
2833         * sem_ch12.adb (Instantiate_Object): Replace the call to
2834         Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
2835         and update related comment.
2836         * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
2837         Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
2838         with Is_Effectively_Volatile and update related comments.
2839         * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
2840         all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
2841         update related comments.
2842         * sem_util.adb (Has_Enabled_Property,
2843         Variable_Has_Enabled_Property): Replace all calls
2844         to Is_SPARK_Volatile with Is_Effectively_Volatile and
2845         update related comments.
2846         (Is_Effectively_Volatile): New routine.
2847         (Is_Effectively_Volatile_Object): New routine.
2848         (Is_SPARK_Volatile): Removed.
2849         (Is_SPARK_Volatile_Object): Removed.
2850         * sem_util.ads (Is_Effectively_Volatile): New routine.
2851         (Is_Effectively_Volatile_Object): New routine.
2852         (Is_SPARK_Volatile): Removed.
2853         (Is_SPARK_Volatile_Object): Removed.
2855 2014-07-31  Pascal Obry  <obry@adacore.com>
2857         * s-fileio.adb (Open): Make sure a shared file gets inserted into
2858         the global list atomically. This ensures that the file descriptor
2859         won't be freed because another tasks is closing the file.
2861 2014-07-31  Robert Dewar  <dewar@adacore.com>
2863         * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
2864         generation of _FIRST and _LAST variables even in GNATprove_Mode.
2865         * gnat_ugn.texi: Minor editing.
2866         * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
2867         aggregate is marked Comes_From_Source if argument is CFS.
2869 2014-07-31  Pascal Obry  <obry@adacore.com>
2871         * s-fileio.adb: Remove obsolete comment.
2873 2014-07-31  Vincent Celier  <celier@adacore.com>
2875         * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
2876         overriding keyword before function to avoid error when compiler
2877         is called with -gnatyO (check overriding indicators).
2879 2014-07-31  Tucker Taft  <taft@adacore.com>
2881         * gnat_ugn.texi: Add a paragraph pointing the reader
2882         to the "plugins" example.
2884 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2886         * freeze.adb (Freeze_Expression): Document the
2887         purpose of the parent chain traversal.
2889 2014-07-31  Robert Dewar  <dewar@adacore.com>
2891         * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
2892         unconstrained fpt ops.
2894 2014-07-31  Pascal Obry  <obry@adacore.com>
2896         * s-fileio.adb (Open): Make sure a shared file gets inserted into
2897         the global list atomically. This ensures that the file descriptor
2898         won't be freed because another tasks is closing the file.
2900 2014-07-31  Vincent Celier  <celier@adacore.com>
2902         * projects.texi: Minor spelling error fix.
2904 2014-07-31  Robert Dewar  <dewar@adacore.com>
2906         * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
2907         * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
2908         information.
2909         * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
2910         * restrict.adb (Process_Restriction_Synonyms): Add handling
2911         of No_Elaboration_Code_All.
2912         * restrict.ads (Process_Restriction_Synonyms): Now handles
2913         No_Elaboration_Code_All.
2914         * sem_ch10.adb (Analyze_Context): Enforce transitive with for
2915         No_Elaboration_Code_All.
2916         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2917         Handle setting of No_Elab_Code in unit information. Handle
2918         No_Elaboration_Code_All.
2919         * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
2920         pragma processing.
2921         (Name_No_Elaboration_Code_All): New name for pragma processing.
2923 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
2925         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
2926         types with a null range and use the Esize of the component
2927         instead of its RM_Size to identify appropriate values.
2929 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
2931         * freeze.adb Add with and use clause for Aspects.
2932         (Freeze_Expression): Emit an error when a volatile constant lacks
2933         Boolean aspect Import.
2934         (Has_Boolean_Aspect_Import): New routine.
2936 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
2938         * exp_util.adb: Minor reformatting.
2940 2014-07-31  Vincent Celier  <celier@adacore.com>
2942         * errutil.adb (Error_Msg): Make sure that all components of
2943         the error message object are initialized.
2945 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2947         * sem_ch4.adb (Try_Container_Indexing): If the container type is
2948         class-wide, use specific type to locate iteration primitives.
2949         * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
2950         rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
2951         Minor error message reformating.
2952         * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
2953         aspect for a derived type.
2955 2014-07-31  Robert Dewar  <dewar@adacore.com>
2957         * debug.adb: Document debug flag d.X.
2959 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2961         * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
2962         * sem_util.adb (Find_Specific_Type): If type is untagged private,
2963         retrieve full view so that primitive operations can be located.
2964         * exp_disp.adb Move Find_Specific_Type to sem_util.
2965         * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
2966         Find_Specific_Type to locate primitive equality.
2967         * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
2968         type does not require initialization.
2969         * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
2970         body all visibility is established, and the enclosing package
2971         declarations must not be installed.
2973 2014-07-31  Yannick Moy  <moy@adacore.com>
2975         * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
2976         Make subprogram public.
2978 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2980         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
2981         predicate Discriminated_Size, to distinguish between private
2982         components that depend on discriminants from those whose size
2983         depends on some other non-static expression.
2985 2014-07-31  Nicolas Setton  <setton@adacore.com>
2987         * g-exptty.adb (Close): Fix binding to Waitpid: use the
2988         tty version.
2990 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
2992         * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
2993         in a discrete range, when 'range was probably intended.
2995 2014-07-31  Robert Dewar  <dewar@adacore.com>
2997         * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
2999 2014-07-31  Robert Dewar  <dewar@adacore.com>
3001         * frontend.adb: Minor reformatting.
3002         * sem.adb: Minor reformatting.
3003         * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
3004         identifiers on rewrite.
3005         * par.adb: Minor comment updates.
3006         * a-ngelfu.adb (Cos): Minor simplification.
3007         * par-ch13.adb (Get_Aspect_Specifications): Improve messages
3008         and recovery for bad aspect.
3009         * exp_ch3.adb: Code clean up.
3010         * sem_util.ads: Minor comment correction.
3011         * sem_ch13.adb (Check_Array_Type): Properly handle large types.
3012         * sem_ch3.adb: Code clean up.
3013         * binderr.ads: Minor comment correction.
3015 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3017         * exp_disp.adb (Expand_Interface_Conversion): A call whose
3018         prefix is a static conversion to an interface type that is not
3019         class-wide is not dispatching.
3021 2014-07-31  Robert Dewar  <dewar@adacore.com>
3023         * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
3024         s-traceb-mastop.adb: Minor reformatting.
3026 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3028         * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
3029         expansion, to handle properly visibility of selected components
3030         in instance bodies.
3032 2014-07-31  Robert Dewar  <dewar@adacore.com>
3034         * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
3035         * par-ch2.adb (P_Pragma): Set Inside_Depends.
3036         * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
3037         Check_Unary_Plus_Or_Minus.
3038         * scans.ads (Inside_Depends): New flag.
3039         * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
3040         * style.ads: Add Inside_Depends parameter to Check_Arrow Add
3041         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
3042         * styleg.adb (Check_Arrow): Handle Inside_Depends case.
3043         (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
3044         * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
3045         Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
3047 2014-07-31  Javier Miranda  <miranda@adacore.com>
3049         * s-vaflop.adb Move the body of function T_To_G before
3050         T_To_D. Required for frontend inlining.
3051         * inline.adb (Has_Excluded_Contract): New subprogram used to
3052         check if a subprogram inlined by the frontend has contracts
3053         which cannot be inlined.
3055 2014-07-31  Bob Duff  <duff@adacore.com>
3057         * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
3058         (Call_Chain): Add 1 to number of frames to skip, to account for
3059         the fact that there's one more frame on the stack.
3060         * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
3062 2014-07-31  Robert Dewar  <dewar@adacore.com>
3064         * checks.adb (Enable_Overflow_Check): More precise setting of
3065         Do_Overflow_Check flag for division.
3067 2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
3069         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
3070         array types with implementation type.
3072 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3074         * sem_ch10.adb (Process_State): Remove local variable Name. Add
3075         local variable Decl. Partially declare an abstract state by
3076         generating an entity and storing it in the state declaration.
3077         * sem_prag.adb (Create_Abstract_State): Fully declare a
3078         semi-declared abstract state.
3080 2014-07-31  Robert Dewar  <dewar@adacore.com>
3082         * prj-nmsc.adb: Minor reformatting.
3084 2014-07-31  Bob Duff  <duff@adacore.com>
3086         * s-tasdeb.adb (System.Tasking.Debug): Remove
3087         all usage of the secondary stack from this package.
3089 2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
3091         * freeze.adb (Freeze_Expression): Update the loop in charge
3092         of finding a proper insertion place for freeze nodes to handle
3093         N_Expression_With_Actions nodes.
3095 2014-07-31  Robert Dewar  <dewar@adacore.com>
3097         * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
3098         reformatting.
3100 2014-07-31  Pascal Obry  <obry@adacore.com>
3102         * prj-nmsc.adb: Minor reformatting.
3104 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3106         * sem_util.adb (Has_Preelaborable_Initialization): Check that
3107         type is tagged before checking whether a user-defined Initialize
3108         procedure is present.
3110 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
3112         * a-ngelfu.ads (Sqrt): Augment postcondition.
3114 2014-07-31  Pascal Obry  <obry@adacore.com>
3116         * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
3117         directory and ALI directory must be different than all object
3118         and library directories of aggregated projects.
3120 2014-07-31  Vincent Celier  <celier@adacore.com>
3122         * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
3123         to package body, as it is not called from outside. Remove argument
3124         Project_Tree, no longer used. When runtime cannot be found,
3125         call Raise_Invalid_Config instead of failing the program.
3127 2014-07-31  Robert Dewar  <dewar@adacore.com>
3129         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
3130         (Overflow_Check).
3131         * gnatlink.adb (Process_Args): Remove generation of -gnato0,
3132         no longer needed.
3134 2014-07-31  Robert Dewar  <dewar@adacore.com>
3136         * gnat_ugn.texi: Document new switch -gnato0.
3137         * sem_ch3.ads: Minor reformatting.
3138         * gnatlink.adb (Process_Args): Compile bind file with -gnato0
3139         (we do not want overflow checks when incrementing elaboration
3140         counters).
3141         * einfo.ads: Minor reformatting.
3143 2014-07-31  Robert Dewar  <dewar@adacore.com>
3145         * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
3146         * s-arit64.adb: Minor reformatting.
3148 2014-07-31  Robert Dewar  <dewar@adacore.com>
3150         * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
3151         checking is enabled except in GNAT_Mode.
3152         * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
3153         (suppress overflow checks).
3155 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3157         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
3158         invariant procedure for an internally generated subtype that is
3159         created for an object of a class-wide type.
3161 2014-07-31  Vincent Celier  <celier@adacore.com>
3163         * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
3165 2014-07-31  Gary Dismukes  <dismukes@adacore.com>
3167         * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
3168         exp_disp.adb: Minor reformatting.
3170 2014-07-31  Robert Dewar  <dewar@adacore.com>
3172         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
3173         sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
3174         exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
3175         reformatting.
3177 2014-07-31  Robert Dewar  <dewar@adacore.com>
3179         * sem_ch13.adb: Minor reformatting.
3181 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3183         * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
3184         is an unchecked_union, warn that invariants will not be checked
3185         on components that have them.
3187 2014-07-31  Robert Dewar  <dewar@adacore.com>
3189         * freeze.adb (Freeze_Entity): Check for error of
3190         Type_Invariant'Class applied to a untagged type.
3191         * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
3192         as null body, so that we perform error checks even if expansion
3193         is off.
3195 2014-07-31  Ed Schonberg  <schonberg@adacore.com>
3197         * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
3198         is already present, nothing to do.
3199         * exp_ch3.adb (Build_Component_Invariant_Call): For an access
3200         component, check whether the access type has an invariant before
3201         checking the designated type.
3202         (Build_Record_Invariant_Proc): Change suffix of generated
3203         name to prevent ambiguity when record type has invariants
3204         in addition to those of components, and two subprograms are
3205         constructed. Consistent with handling of array types.
3206         (Insert_Component_Invariant_Checks): Build invariant procedure
3207         body when one has not been created yet, in the case of composite
3208         types that are completions and whose full declarations carry
3209         invariants.
3211 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3213         * gnat_rm.texi: Minor doc fixes.
3215 2014-07-30  Robert Dewar  <dewar@adacore.com>
3217         * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
3219 2014-07-30  Vincent Celier  <celier@adacore.com>
3221         * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
3222         of error message.
3223         * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
3224         message to report that a directory cannot be created, to avoid
3225         processing of the directory path that may contains special
3226         insertion characters.
3228 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3230         * a-crdlli.ads: Place declaration of Empty_List after full type
3231         declaration for Curosr, to prevent freezing error.
3233 2014-07-30  Robert Dewar  <dewar@adacore.com>
3235         * get_targ.adb: Minor code reorganization.
3236         * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
3237         reformatting.
3239 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3241         * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
3242         not Program_Error, when attempting to remove an element not in
3243         the set. This is the given semantics for all set containers.
3245 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3247         * a-rbtgbo.adb (Delete_Node_Sans_Free): If
3248         element is not present in tree return rather than violating
3249         an assertion. Constraint_Error will be raised in the caller if
3250         element is not in the container.
3252 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3254         * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
3255         (elab body): Add provision for default target config file.
3256         * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
3258 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3260         * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
3261         when attempting to remove an element not in the set. This is
3262         the given semantics for all set containers.
3263         * a-cborse.adb (Delete): Attempt removal first, to check for
3264         tampering, before checking whether this is an attempt to
3265         delete a  non-existing element, and in fthe latter case raise
3266         Constraint_Error.
3268 2014-07-30  Vincent Celier  <celier@adacore.com>
3270         * prj-proc.adb (Recursive_Process): Do not create a new
3271         Project_Id if the project is already in the list of projects of
3272         the tree.
3274 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3276         * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
3277         whose type is an incomplete formal type.
3278         (Analyze_Return_Type): Reject a return type that is an untagged
3279         imcomplete formal type.
3280         (Process_Formals): Reject a formal parameter whose type is an
3281         untagged formal incomplete type.
3282         * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
3283         an untagged formal incomplete type.
3285 2014-07-30  Robert Dewar  <dewar@adacore.com>
3287         * gnat_ugn.texi: Minor spelling correction.
3288         * makeutl.adb: Minor code reorganization.
3289         * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
3291 2014-07-30  Robert Dewar  <dewar@adacore.com>
3293         * einfo.ads (Has_Unchecked_Union): Document that this is used
3294         to check for illegal Valid_Scalars attribute references.
3295         * exp_attr.adb (Build_Record_VS_Func): New function
3296         (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
3297         function.
3298         * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
3299         Unchecked_Union Add note on 'Valid_Scalars generating a lot
3300         of code.
3301         * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
3302         error on attempt to apply Valid_Scalars to Unchecked_Union type.
3304 2014-07-30  Steve Baird  <baird@adacore.com>
3306         * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
3307         of A(I..J)(K) in CodePeer_Mode.
3309 2014-07-30  Ben Brosgol  <brosgol@adacore.com>
3311         * gnat_ugn.texi: Fix typo.
3313 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3315         * lib-writ.ads: document format change.
3317 2014-07-30  Pascal Obry  <obry@adacore.com>
3319         * prj-util.adb (For_Interface_Sources): Do not
3320         include sources from withed externally built projects.
3322 2014-07-30  Robert Dewar  <dewar@adacore.com>
3324         * lib.adb: Minor reformatting.
3325         * prj-util.adb: Minor reformatting.
3327 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3329         * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
3330         that depends on discriminants, and which is given by an others
3331         clause, create an explicit subtype with the discriminant values
3332         of the enclosing aggregate, because the backend cannot otherwise
3333         retrieve the actual bounds of the array.
3335 2014-07-30  Fedor Rybin  <frybin@adacore.com>
3337         * gnat_ugn.texi: Improve gnattest documentation.
3339 2014-07-30  Pascal Obry  <obry@adacore.com>
3341         * makeutl.adb (Insert_Project_Sources): Properly handle sources
3342         that are aggregated. We want to include sources not only part
3343         of libraries but also if part of an aggregated project from an
3344         aggregate library.
3345         * prj.adb (For_Project_And_Aggregated_Context): Properly check
3346         state of root project.
3348 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3350         * lib-load.ads: Minor reformatting.
3351         * sinfo.ads (Library_Unit): Update comment.
3352         * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
3353         is redundant. Instead used the pragma Node_Id directly as the
3354         element type.
3356 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3358         * lib.adb (Store_Note): Store only notes that do not come from
3359         an instance, and that are in the extended main source unit.
3360         * lib-writ (Write_Unit_Information): Annotations from subunits
3361         must be emitted along with those for the main unit, and they
3362         must carry a specific file name.
3363         * ali.ads (Notes_Record): Use a File_Name_Type instead of a
3364         Unit_Id for the source file containing the pragma, as in the
3365         case of annotations from subunits we might not have a readily
3366         available unit id.
3367         * ali.adb (Scan_ALI): Account for above change in data structure.
3369 2014-07-30  Vincent Celier  <celier@adacore.com>
3371         * makeutl.adb (Insert_Project_Sources): When the library project
3372         is an aggregate Stand-Alone Library, insert in the queue the
3373         Ada interface units, with Closure set to True;
3375 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
3377         * sem_util.adb: Fix minor typo.
3378         * makeutl.adb: Minor reformatting.
3380 2014-07-30  Robert Dewar  <dewar@adacore.com>
3382         * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
3384 2014-07-30  Yannick Moy  <moy@adacore.com>
3386         * checks.ads: Fix typo in comment.
3388 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
3390         * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
3391         entities that materialize range bounds, if any.
3393 2014-07-30  Vincent Celier  <celier@adacore.com>
3395         * projects.texi: Minor spelling fix.
3397 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
3399         * checks.adb (Make_Bignum_Block): Use the new secondary stack
3400         build routines to manage the mark.
3401         * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
3402         Use the new secodary stack build routines to manage the mark.
3403         (Insert_Actions_In_Scope_Around): Add new formal parameter
3404         Manage_SS along with comment on its usage. Code and comment
3405         reformatting. Mark and release the secondary stack when the
3406         context warrants it.
3407         (Make_Transient_Block): Update the call
3408         to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
3409         (Wrap_Transient_Declaration): Remove local variable
3410         Uses_SS. Ensure that the secondary stack is marked and released
3411         when the related object declaration appears in a library level
3412         package or package body. Code and comment reformatting.
3413         * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
3414         (Build_SS_Release_Call): New routine.
3416 2014-07-30  Steve Baird  <baird@adacore.com>
3418         * exp_attr.adb: Revert previous change, not needed after all.
3420 2014-07-30  Vincent Celier  <celier@adacore.com>
3422         * makeutl.adb (Queue.Insert_Project_Sources): Insert with
3423         Closure => True for interfaces of Stand-Alone Libraries.
3424         * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
3425         Boolean component Closure, defaulted to False.
3427 2014-07-30  Yannick Moy  <moy@adacore.com>
3429         * sem_res.adb: Fix typo in error message.
3431 2014-07-30  Robert Dewar  <dewar@adacore.com>
3433         * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
3434         as name suffixes rather than L/H for subtype bounds.
3435         * tbuild.ads: Minor comment improvements and fixes
3436         (Make_External_Name): Document that suffix can start with an
3437         underscore.
3439 2014-07-30  Bob Duff  <duff@adacore.com>
3441         * gnat_ugn.texi: Document --rep-clauses switch.
3443 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3445         * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
3446         Default_Component_Value can only be specified for scalar type or
3447         arrays of scalar types respectively.  This legality check must
3448         be performed at the point the aspect is analyzed, in order to
3449         reject aspect specifications that apply to a partial view.
3451 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3453         * freeze.adb: Minor reformatting.
3455 2014-07-30  Robert Dewar  <dewar@adacore.com>
3457         * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
3458         codepeer mode.
3460 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3462         * freeze.adb (Check_Expression_Function): At the freeze point
3463         of an expression function, verify that the expression in the
3464         function does not contain references to any deferred constants
3465         that have no completion yet.
3466         (Freeze_Expression, Freeze_Before): call
3467         Check_Expression_Function.
3468         * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
3469         * a-ciorse.adb: Add Adjust and Finalize routines for
3470         Reference_Control_Type. Use it in the construction of Reference
3471         and Constant_Reference values.
3473 2014-07-30  Robert Dewar  <dewar@adacore.com>
3475         * exp_aggr.adb: Update comments.
3476         * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
3477         reformatting.
3479 2014-07-30  Robert Dewar  <dewar@adacore.com>
3481         * cstand.adb (New_Standard_Entity): New version takes name
3482         string to call Make_Name.
3483         (Create_Standard): Use this routine to set name before setting other
3484         fields.
3486 2014-07-30  Robert Dewar  <dewar@adacore.com>
3488         * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
3489         entity reference.
3490         (Expand_Attribute, case Last): Ditto.
3491         * exp_ch3.adb (Constrain_Index): New calling sequence for
3492         Process_Range_Expr_In_Decl.
3493         (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
3494         problematical case.
3495         * sem_ch3.adb (Constrain_Index): New calling sequence for
3496         Process_Range_Expr_In_Decl.
3497         (Set_Scalar_Range_For_Subtype): ditto.
3498         (Process_Range_Expr_In_Decl): Create constants to hold bounds for
3499         subtype.
3500         * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
3501         * sem_eval.adb (Compile_Time_Compare): Make sure we use base
3502         types if we are not assuming no invalid values.
3504 2014-07-30  Robert Dewar  <dewar@adacore.com>
3506         * clean.adb: Minor reformatting.
3507         * opt.ads: Minor fix to incorrect comment.
3509 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3511         * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
3512         subprogram, used by bounded hashed sets, to delete a node at
3513         a given index, whose element may have been improperly updated
3514         through a Reference_Preserving key.
3515         * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
3516         * a-cbhase.adb: Add Adjust and Finalize routines for
3517         Reference_Control_Type.
3518         (Delete, Insert): Raise Program_Error, not Constraint_Error,
3519         when operation is illegal.
3520         (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
3521         * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
3522         private with_clause for Ada.Finalization.
3523         * a-cbmutr.adb: Add Adjust and Finalize routines for
3524         Reference_Control_Type. Use it in the construction of Reference
3525         and Constant_Reference values.
3527 2014-07-30  Robert Dewar  <dewar@adacore.com>
3529         * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
3531 2014-07-30  Pascal Obry  <obry@adacore.com>
3533         * clean.adb (Clean_Project): Properly check for directory
3534         existence before trying to enter it.
3536 2014-07-30  Robert Dewar  <dewar@adacore.com>
3538         * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
3540 2014-07-30  Robert Dewar  <dewar@adacore.com>
3542         * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
3543         missing semicolon after name.
3545 2014-07-30  Pascal Obry  <obry@adacore.com>
3547         * prj.ads (Gprinstall_Flags): New constant.
3548         * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
3549         missing library dir if Directories_Must_Exist_In_Projects
3550         is false.
3552 2014-07-30  Bob Duff  <duff@adacore.com>
3554         * a-except-2005.adb, a-except.adb: Remove obsolete comments.
3555         * s-traceb.ads: Updagte comments.
3557 2014-07-30  Robert Dewar  <dewar@adacore.com>
3559         * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
3560         a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
3561         a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
3562         reformatting.
3564 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3566         * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
3567         subprogram, used by all versions of hashed sets, to delete a node
3568         whose element has been improperly updated through a Reference_
3569         Preserving key.
3570         * a-cohase.adb: Remove Delete_Node, use new common procedure
3571         Delete_Node_At_Index.
3572         * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
3573         * a-cihase.adb: Add Adjust and Finalize routines for
3574         Reference_Control_Type.
3575         (Reference_Preserving_Key): Build aggregate for
3576         Reference_Control_Type
3578 2014-07-30  Yannick Moy  <moy@adacore.com>
3580         * checks.adb, checks.ads (Determine_Range_R): New procedure to
3581         determine the possible range of a floating-point expression.
3583 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3585         * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
3586         * a-cborse.adb: Add Adjust and Finalize routines for
3587         Reference_Control_Type.
3588         (Reference_Preserving_Key): Build aggregate for
3589         Reference_Control_Type.
3590         (Delete): Check for tampering, and raise Program_Error (not
3591         Constraint_Error) when attempting to delete an element not in
3592         the set.
3593         (Insert): Ditto.
3595 2014-07-30  Bob Duff  <duff@adacore.com>
3597         * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
3598         * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
3599         Exception_Information is used to produce useful debugging
3600         information for the programmer. However, it was also used to
3601         implement the stream attributes for type Exception_Occurrence. The
3602         latter requires a stable and portable interface, which meant
3603         that we couldn't include a symbolic traceback. A separate set of
3604         routines was used to provide symbolic tracebacks under program
3605         control (i.e. not automatically). The goal of this ticket is
3606         to provide such automatic tracebacks, so the change here is to
3607         split the two functionalities: Exception_Information gives the
3608         maximally useful information for debugging (i.e. it now includes
3609         a symbolic traceback when a decorator is set, and it can be
3610         improved freely in the future without disturbing streaming).
3611         Untailored_Exception_Information always uses hexadecimal addresses
3612         in the traceback, has a stable and portable output, and is now
3613         used for streaming.
3615 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
3617         * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
3618         on the target of the assignment to find out whether it
3619         can be directly done by the back-end.
3620         * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
3622 2014-07-30  Robert Dewar  <dewar@adacore.com>
3624         * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
3625         a-tasatt.adb: Minor reformatting.
3627 2014-07-30  Robert Dewar  <dewar@adacore.com>
3629         * exp_ch4.adb: Minor reformatting.
3631 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3633         * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
3634         Reference_Control_Type to generic package, to keep additional
3635         information for Reference_Types that manipulate keys. Add Adjust and
3636         Finalize procedures for this type.
3637         (Finalize): When finalizing a reference_preserving_key, verify
3638         that the key of the new value is equivalent to the key of the
3639         original element, raise Program_Error otherwise.
3640         (Insert): Detect tampering.
3641         (Reference_Preserving_Key): Build proper Reference_Control_Type,
3642         and update Busy and Lock bits to detect tampering.
3643         * a-cohase.ads: Keep with-clause private.
3645 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
3647         * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
3648         of an equality are of an Unchecked_Union type and lack inferable
3649         discriminants.
3651 2014-07-30  Bob Duff  <duff@adacore.com>
3653         * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
3654         g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
3655         GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
3656         hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
3657         we can call them from the runtimes. Leave renamings in place under GNAT.
3659 2014-07-30  Yannick Moy  <moy@adacore.com>
3661         * inline.adb (Check_And_Build_Body_To_Inline): Include code for
3662         inlining in GNATprove mode.
3664 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3666         * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
3667         Reference_Control_Type to generic package, to keep additional
3668         information for Reference_Types that manipulate keys. Add Adjust and
3669         Finalize procedures for this type.
3670         (Delete_Node): New procedure called when finalizing a
3671         Reference_Control_Type, to remove a node whose element has been
3672         improperly updated through a Reference.
3673         (Insert): Detect tampering.
3674         (Reference_Preserving_Key): Build proper Reference_Control_Type,
3675         and update Busy and Lock bits to detect tampering.
3677 2014-07-30  Bob Duff  <duff@adacore.com>
3679         * exp_intr.ads: Minor comment fix.
3681 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
3683         * exp_prag.adb, a-tags.ads: Minor typo fixes.
3685 2014-07-30  Bob Duff  <duff@adacore.com>
3687         * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
3688         a-except.ads, g-traceb.adb, memtrack.adb,
3689         s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
3690         Cleanup: Make the three versions of System.Traceback.Call_Chain
3691         have the same interface. Use an array for the Traceback parameter
3692         instead of an Address.  This will enable reduction in code
3693         duplication.
3695 2014-07-30  Pat Rogers  <rogers@adacore.com>
3697         * gnat_ugn.texi: Corrected minor textual error in description
3698         of switch -gnatwl.
3700 2014-07-30  Bob Duff  <duff@adacore.com>
3702         * Makefile.rtl: Sort file names.
3704 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3706         * a-tasatt.adb: Complete previous change: kill spurious warning
3707         on e.g. sparc, and make sure we only use the fast path when the
3708         alignment is compatible.
3710 2014-07-30  Yannick Moy  <moy@adacore.com>
3712         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
3713         coming from source.
3715 2014-07-30  Yannick Moy  <moy@adacore.com>
3717         * inline.adb (Build_Body_To_Inline): Issue more precise messages
3718         for declarations that prevent inlining.
3719         (Cannot_Inline): Change usual start of message to refer to contextual
3720         analysis in GNATprove mode.
3721         * sem_res.adb (Resolve_Call): Change usual start of message to
3722         refer to contextual analysis in GNATprove mode, when inlining
3723         not possible.
3725 2014-07-30  Robert Dewar  <dewar@adacore.com>
3727         * sem_res.adb, sem_ch6.adb: Minor code reorganization.
3728         * inline.adb: Minor reformatting.
3730 2014-07-30  Javier Miranda  <miranda@adacore.com>
3732         * a-tags.ads: Add comments.
3734 2014-07-30  Pat Rogers  <rogers@adacore.com>
3736         * gnat_rm.texi: Minor word error.
3738 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3740         * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
3741         created to capture the value of the prefix of 'Old at the
3742         beginning of the current declarative part, to prevent data flow
3743         anomalies in the postcondition procedure that will follow.
3745 2014-07-30  Yannick Moy  <moy@adacore.com>
3747         * debug.adb: Retire debug flag -gnatdQ.
3748         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
3749         on decl, not on body.  Ignore predicate functions.
3750         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
3751         debug flag -gnatdQ.  Correctly analyze SPARK_Mode on decl and
3752         body when generating a decl for a body on which SPARK_Mode aspect
3753         is given.
3754         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
3755         attaching pragma to entity, to account for declaration not coming
3756         from source.
3757         * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
3758         as not always inlined in GNATprove mode, when called in an
3759         assertion context.
3761 2014-07-30  Vincent Celier  <celier@adacore.com>
3763         * debug.adb: Minor comment update.
3765 2014-07-30  Robert Dewar  <dewar@adacore.com>
3767         * s-tasuti.adb, s-tassta.adb: Minor reformatting.
3768         * sprint.adb (Sprint_Node): Handle N_Contract case.
3769         * exp_prag.adb: Minor reformatting.
3770         * freeze.adb (Freeze_Entity): Check useless postcondition for
3771         No_Return subprogram.
3772         * sem_prag.adb: Minor reformatting.
3774 2014-07-30  Javier Miranda  <miranda@adacore.com>
3776         * a-tags.ads: Complete comments about performance.
3778 2014-07-30  Fedor Rybin  <frybin@adacore.com>
3780         * gnat_ugn.texi: Adding description for --exit-status option to
3781         gnattest section.  Fixing index entry of --passed-tests option
3782         in gnattest section.
3784 2014-07-30  Javier Miranda  <miranda@adacore.com>
3786         * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
3787         rtsfind.ads: Remove references to package Interfaces.CPP since this
3788         package is no longer needed.
3790 2014-07-30  Bob Duff  <duff@adacore.com>
3792         * s-taasde.adb (Timer_Queue): Don't use a
3793         build-in-place function call to initialize the Timer_Queue.
3794         * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
3795         Turn off polling in these units, because otherwise we get
3796         elaboration circularities with Ada.Exceptions when the -gnatP
3797         switch is used.
3798         * s-tassta.adb (Create_Task): Make sure independent tasks
3799         are created with Parent = Environment_Task. This was not true,
3800         for example, in s-interr.adb, when Interrupt_Manager does "new
3801         Server_Task"; the Server_Task had Parent = Interrupt_Manager,
3802         which is wrong because the master is determined by the access
3803         type, which is at library level.
3804         * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
3805         now set correctly by Create_Task.
3806         (Make_Passive): Remove the workaround for the race condition in
3807         Make_Independent.
3808         * frontend.adb (Frontend): Revert to previous method of detecting
3809         temporary configuration pragma files, recognizing such files by
3810         ".tmp" in the name. This is more general than detecting pragmas
3811         Source_File_Name_Project, because it allows any tool to use
3812         this naming convention, no matter the content of the file.
3813         * gnat_ugn.texi: Document this naming convention.
3815 2014-07-30  Robert Dewar  <dewar@adacore.com>
3817         * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
3818         inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
3819         s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
3820         s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
3821         * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
3822         conversion.
3824 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3826         * sem_ch5.adb: Improve error recovery.
3827         * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
3828         before analyzing the body, so that in GNATprove mode there is
3829         no light expansion. Whatever expansion is required by SPARK will
3830         be performed when analysing the inlined code.
3832 2014-07-30  Bob Duff  <duff@adacore.com>
3834         * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
3836 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3838         * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
3839         verify that it is not hidden by an inner implicit declaration.
3841 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3843         * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
3844         * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
3845         * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
3846         the call returns an unconstrained type: in this case there is
3847         already a transient scope, and we should not establish a new one.
3848         * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
3849         True, also insert cleanup actions in the tree.
3850         (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
3851         with Clean set True.
3853 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3855         * s-taskin.ads (Direct_Index, Direct_Index_Range,
3856         Direct_Attribute_Element, Direct_Attribute_Array,
3857         Direct_Index_Vector, Direct_Attributes, Is_Defined,
3858         Indirect_Attributes): Removed.  (Atomic_Address,
3859         Attribute_Array, Attributes): New.
3860         * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
3861         Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
3862         (Finalize_Attributes): Reimplement.
3863         * s-tassta.adb (Create_Task): Remove call to
3864         Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
3865         Replace Finalize_Attributes_Link by Finalize_Attributes.
3866         * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
3867         Reimplement from scratch, using a simpler and more efficient
3868         implementation.
3869         * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
3870         * s-parame.ads, s-parame-hpux.ads,
3871         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
3872         * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
3873         Default_Attribute_Count.
3875 2014-07-30  Olivier Hainque  <hainque@adacore.com>
3877         * vxworks-ppc-link.spec: New file. Extra link
3878         instructions for ppc-vxworks.
3879         * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
3880         * system-vxworks-ppc.ads: Adjust linker options to use spec files.
3881         * system-vxworks-arm.ads: Likewise.
3882         * gcc-interface/Makefile.in: Enable .spec files.
3884 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3886         * sem_aggr.adb: Minor comment reformatting.
3888 2014-07-30  Robert Dewar  <dewar@adacore.com>
3890         * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
3891         * sem_warn.adb (Has_Junk_Name): New function
3892         (Check_References): Use Has_Junk_Name to delete junk warnings
3893         (Check_Unset_Reference): ditto.
3894         (Warn_On_Unreferenced_Entity): ditto.
3895         (Warn_On_Useless_Assignment): ditto.
3897 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3899         * checks.adb (Insert_Valid_Check): Do not check for the packed
3900         array type of a prefix that is an access type.
3902 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3904         * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
3905         Unconstrained_Array even if prefix is not frozen yet, as can
3906         occur with a private subtype used as a generic actual.
3908 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
3910         * sem_attr.adb: Minor reformatting.
3912 2014-07-30  Pat Rogers  <rogers@adacore.com>
3914         * gnat_rm.texi: Corrected minor wording error in description
3915         of No_Exception_Registration.
3917 2014-07-30  Yannick Moy  <moy@adacore.com>
3919         * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
3920         mode. Realphabetize two subprograms.
3921         * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
3922         (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
3923         (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
3924         mode.
3925         (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
3926         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
3927         Is_Inline in GNATprove mode.
3928         (Analyze_Subprogram_Specification):
3929         Set Is_Inlined_Always at subprogram entity creation.
3930         * sem_res.adb (Resolve_Call): Do not deal with inlining during
3931         pre-analysis.  Issue warning on call to possibly inlined
3932         subprogram when body not seen.
3934 2014-07-30  Yannick Moy  <moy@adacore.com>
3936         * lib-xref.adb (Generate_Reference): Add special
3937         case for compiler-generated formals in GNATprove mode.
3939 2014-07-30  Yannick Moy  <moy@adacore.com>
3941         * sem_ch6.adb: Add comments.
3943 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3945         * s-os_lib.ads (GM_Time_Of): Clarify documentation.
3947 2014-07-30  Robert Dewar  <dewar@adacore.com>
3949         * sem_aggr.adb, sem_res.adb: Minor reformatting.
3951 2014-07-30  Thomas Quinot  <quinot@adacore.com>
3953         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3954         Bit_Order): Set Reverse_Bit_Order on the base type of the
3955         specified first subtype.
3957 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3959         * inline.adb (Expand_Inlined_Call): Use a renaming declaration
3960         to capture the value of actuals of a limited type rather than
3961         an object declaration, to prevent spurious errors when analyzing
3962         the inlined body.
3964 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3966         * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
3967         as an instance, and inhibit semantic checks on already analyzed
3968         code to prevent spurious errors.
3970 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
3972         * a-exctra.ads ("="): New function, to restore compatibility.
3974 2014-07-30  Pascal Obry  <obry@adacore.com>
3976         * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
3977         routine to use the OS dst setting.
3979 2014-07-30  Pat Rogers  <rogers@adacore.com>
3981         * gnat_ugn.texi: Minor correction to description of -gnatw.K.
3983 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3985         * sem_util.adb (Wrong_Type): Disable some checks equally within
3986         instances and within inlined bodies, to suppress spurious type
3987         errors on already analyzed code.
3988         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
3989         is legal in an inlined body, juts as it is in an instance body.
3991 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
3993         * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
3994         body the operand of an unchecked conversion may be a literal, in
3995         which case its type is the target type of the conversion. This
3996         is in contrast to conversions in other contexts, where the
3997         operand cannot be a literal and must be resolvable independent
3998         of the context.
4000 2014-07-30  Pierre-Marie Derodat  <derodat@adacore.com>
4002         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
4003         mere scalar constant instead of a reference for a renaming of
4004         scalar literal.
4005         * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
4006         * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
4008 2014-07-30  Robert Dewar  <dewar@adacore.com>
4010         * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
4011         g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
4012         g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
4013         s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
4014         g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
4015         s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
4016         & code reorganization.
4018 2014-07-30  Bob Duff  <duff@adacore.com>
4020         * s-tassta.adb, sem_util.ads: Minor reformatting.
4022 2014-07-30  Yannick Moy  <moy@adacore.com>
4024         * inline.adb (Build_Body_To_Inline): Detect when
4025         subprogram has multiple returns, or not a single last return
4026         statement, in GNATprove mode.
4027         (Cannot_Inline): Simplify logic to handle case of GNATprove
4028         inlining first.
4030 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4032         * sem_ch6.adb: Stubs are not subject to inlining.
4034 2014-07-30  Bob Duff  <duff@adacore.com>
4036         * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
4037         from a procedure to a function, so that it can more easily be
4038         called before the "begin" of a task.
4039         * s-taasde.ads (Delay_Block): Make this type immutably limited,
4040         so we can use a build-in-place function call to initialize
4041         Timer_Queue in the body.
4042         * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
4043         * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
4044         * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
4045         Make_Independent before reaching its "begin", to avoid race
4046         conditions. This causes the activating task to wait until after
4047         Make_Independent is complete before proceeding.  In addition,
4048         we initialize data structures used by independent tasks before
4049         activating those tasks, to avoid possible use of uninitialized data.
4050         * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
4051         Minor comment fixes.
4053 2014-07-30  Bob Duff  <duff@adacore.com>
4055         * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
4056         the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
4057         System.Traceback_Entries (s-traent.ads and s-traent-vms.ads).  Add
4058         subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
4059         * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
4061 2014-07-30  Arnaud Charlet  <charlet@adacore.com>
4063         * a-tasatt.adb: Remove old comments.
4065 2014-07-30  Yannick Moy  <moy@adacore.com>
4067         * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
4068         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
4069         to explain rationale for inlining or not in GNATprove mode.
4070         (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
4071         to False when inlining is not possible.
4072         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
4073         flag to indicate that subprogram is fully inlined. To be reversed
4074         if inlining problem is found.
4075         * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
4076         call in potentially unevaluated context.
4078 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
4080         * s-tarest.adb, s-tarest.ads: Fix comments.
4082 2014-07-30  Robert Dewar  <dewar@adacore.com>
4084         * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
4085         Change No_Scalar_Parts predicate to Scalar_Part_Present and
4086         invert sense of test. This avoids the "not No_xxx" situation
4087         which is always ugly.
4089 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4091         * inline.adb (Expand_Inlined_Call): When generating code for
4092         an internal subprogram the expansion uses the location of the
4093         call, so that gdb can skip over it. In GNATprove mode we want to
4094         preserve slocs of original subprogram when expanding an inlined
4095         call, to obtain better warnings, even though subprogram appears
4096         not to come from source if it is the inlining of a subprogram
4097         body without a previous spec.
4099 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4101         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
4102         types with atomic components.
4104 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4106         * Make-generated.in: Remove now unnecessary targets after s-oscons
4107         reorg.
4109 2014-07-30  Yannick Moy  <moy@adacore.com>
4111         * sem_res.adb (Resolve_Call): Use ultimate alias
4112         of callee when available.
4114 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4116         * sem_ch6.adb (Analyze_Expression_Function): To check whether
4117         an expression function is a completion, use the specification of
4118         the previous declaration, not its entity, which may be internally
4119         generated in an inlined context.
4121 2014-07-30  Doug Rupp  <rupp@adacore.com>
4123         * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
4124         temp files in /cache directory unless overridden by TMPDIR.
4126 2014-07-30  Jose Ruiz  <ruiz@adacore.com>
4128         * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
4129         Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
4130         type CPU, so it can never be greater than CPU_Range'Last.
4132 2014-07-30  Bob Duff  <duff@adacore.com>
4134         * s-taskin.ads: Minor comment fix.
4136 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4138         * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
4139         clauses.
4141 2014-07-30  Yannick Moy  <moy@adacore.com>
4143         * debug.adb: Free debug flag dQ used for frontend inlining in
4144         GNATprove mode..
4145         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
4146         debug flag..
4148 2014-07-30  Thomas Quinot  <quinot@adacore.com>
4150         * Make-generated.in: Remove generation of s-oscons.ads, only
4151         generate the xoscons utility, in runtime-agnostic rules.
4152         * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
4153         no longer supported.
4155 2014-07-30  Bob Duff  <duff@adacore.com>
4157         * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
4158         parameter Chain to be used in the allocator case.
4159         (Make_Build_In_Place_Call_In_Allocator): If the allocated object
4160         has tasks, wrap the code in a block that will activate them,
4161         including the usual finalization code to kill them off in case
4162         of exception or abort.
4164 2014-07-30  Robert Dewar  <dewar@adacore.com>
4166         * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
4167         Remove renamings (don't work for gdb).
4168         (par): New synonym for p (avoid gdb ambiguities).
4169         * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
4171 2014-07-30  Bob Duff  <duff@adacore.com>
4173         * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
4174         fixes.
4175         * treepr.ads, treepr.adb (ppp): Make this debugging routine
4176         accept any type covered by Union_Id.
4178 2014-07-30  Robert Dewar  <dewar@adacore.com>
4180         * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
4181         analyzing branches.
4182         * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
4183         expression case.
4185 2014-07-30  Robert Dewar  <dewar@adacore.com>
4187         * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
4188         of predicate aspect on entity other than a type.
4190 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4192         * sem_ch6.adb (Body_Has_Contract): New predicate to determine
4193         when a subprogram body without a previous spec cannot be inlined
4194         in GNATprove mode, because it includes aspects or pragmas that
4195         generate a SPARK contract clause.
4196         * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
4197         instance cannot be inlined.
4199 2014-07-30  Robert Dewar  <dewar@adacore.com>
4201         * debug.adb: Document that d7 suppresses compilation time output.
4202         * errout.adb (Write_Header): Include compilation time in
4203         header output.
4204         * exp_intr.adb (Expand_Intrinsic_Call): Add
4205         Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
4206         Compilation_Date/Compilation_Time.
4207         * g-souinf.ads (Compilation_Date): New function
4208         (Compilation_Time): New function.
4209         * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
4210         * gnat_rm.texi (Compilation_Date): New function
4211         (Compilation_Time): New function.
4212         * opt.ads (Compilation_Time): New variable.
4213         * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
4214         * sem_intr.adb (Compilation_Date): New function.
4215         (Compilation_Time): New function.
4216         * snames.ads-tmpl (Name_Compilation_Date): New entry.
4217         (Name_Compilation_Time): New entry.
4219 2014-07-30  Yannick Moy  <moy@adacore.com>
4221         * inline.adb: Add comment.
4223 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4225         * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
4226         parameterless attribute, and a postondition can mention an
4227         indexed component or a slice whose prefix is an attribute
4228         reference F'Result.
4230 2014-07-30  Robert Dewar  <dewar@adacore.com>
4232         * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
4233         Avoid bomb when printing package Standard.
4235 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4237         * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
4238         entity is created at this point, ensure that the name of the
4239         flag is unique, because the subprogram may be overloaded and
4240         other homonyms may also have elaboration flags created on the fly.
4242 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4244         * sem_attr.adb (Analyze_Array_Component_Update): New routine.
4245         (Analyze_Attribute): Major cleanup of attribute
4246         'Update. The logic is now split into two distinct routines
4247         depending on the type of the prefix. The use of <> is now illegal
4248         in attribute 'Update.
4249         (Analyze_Record_Component_Update): New routine.
4250         (Check_Component_Reference): Removed.
4251         (Resolve_Attribute): Remove the return statement and ??? comment
4252         following the processing for attribute 'Update. As a result,
4253         the attribute now freezes its prefix.
4255 2014-07-30  Javier Miranda  <miranda@adacore.com>
4257         * exp_ch4.adb (Apply_Accessibility_Check): Do
4258         not call Base_Address() in VM targets.
4260 2014-07-30  Yannick Moy  <moy@adacore.com>
4262         * gnat1drv.adb (Adjust_Global_Switches): Set
4263         Ineffective_Inline_Warnings to True in GNATprove mode.
4264         * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
4265         mode of inlining.
4266         * opt.ads (Ineffective_Inline_Warnings): Add comment that
4267         describes use in GNATprove mode.
4268         * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
4269         pragma when applied to the special body created for inlining.
4271 2014-07-30  Robert Dewar  <dewar@adacore.com>
4273         * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
4274         Minor reformatting.
4276 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4278         * aspects.ads Add a comment explaining why SPARK 2014 aspects are
4279         not delayed. Update the delay status of most SPARK 2014 aspects.
4280         * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
4281         to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
4282         to Decorate and Insert_Pragma. Add various comments concerning
4283         the delay status of several SPARK 2014 aspects. The insertion
4284         of Refined_State now uses routine Insert_After_SPARK_Mode.
4285         (Decorate): New routine.
4286         (Decorate_Aspect_And_Pragma): Removed.
4287         (Insert_Delayed_Pragma): Removed.
4288         (Insert_Pragma): New routine.
4290 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4292         * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
4293         only a warning, not an error on an attempt to inline a recursive
4294         subprogram.
4296 2014-07-30  Robert Dewar  <dewar@adacore.com>
4298         * g-forstr.adb: Minor code reorganization (use J rather than I
4299         as a variable name).
4300         * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
4301         g-forstr.ads: Minor reformatting.
4303 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4305         * sprint.adb (Set_Debug_Sloc): Also reset the end location if
4306         we are debugging the generated code.
4308 2014-07-30  Yannick Moy  <moy@adacore.com>
4310         * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
4311         returns True for source pointer for an inlined body.
4313 2014-07-30  Javier Miranda  <miranda@adacore.com>
4315         * exp_ch4.adb (Apply_Accessibility_Check): Add
4316         missing calls to Base_Address().
4318 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4320         * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
4321         mode, subprogram bodies without a previous declaration are also
4322         candidates for front-end inlining.
4324 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4326         * aspects.ads Aspects Async_Readers, Async_Writers,
4327         Effective_Reads and Effective_Writes do not need to be delayed.
4328         * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
4329         optional Boolean expression when generating the corresponding
4330         pragma for an external property aspect.
4331         * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
4332         local constant Obj. Add local constant Obj_Id. Reimplement the
4333         check which ensures that the related variable is in fact volatile.
4334         (Analyze_Pragma): Reimplement the analysis of external property pragmas.
4335         * sem_util.adb (Is_Enabled): New routine.
4336         (Variable_Has_Enabled_Property): Reimplement the detection of
4337         an enabled external property.
4339 2014-07-30  Sergey Rybin  <rybin@adacore.com frybin>
4341         * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
4342         for body stubs.
4344 2014-07-30  Pascal Obry  <obry@adacore.com>
4346         * g-forstr.adb, g-forstr.ads: New.
4347         * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
4348         GNAT.Formatted_String.
4350 2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
4352         * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
4353         (Expand_Array_Aggregate): Also enable in-place expansion for
4354         code generated by the compiler.  For an object declaration,
4355         set the kind of the object in addition to its type.  If an
4356         in-place assignment is to be generated and it can be directly
4357         done by the back-end, do not expand the aggregate.
4358         * fe.h (Is_Others_Aggregate): Declare.
4359         * gcc-interface/trans.c
4360         (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
4361         aggregate with a single Others choice on the RHS by means of
4362         __builtin_memset.  Tidy up.
4364 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4366         * gnat_rm.texi: minor reformatting.
4368 2014-07-30  Yannick Moy  <moy@adacore.com>
4370         * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
4371         in SPARK_Mode Off.
4373 2014-07-30  Robert Dewar  <dewar@adacore.com>
4375         * gnat_rm.texi: Document additional implementation-defined use
4376         of Constrained.
4378 2014-07-30  Robert Dewar  <dewar@adacore.com>
4380         * prj-proc.adb, prj-strt.adb: Update comments.
4382 2014-07-30  Gary Dismukes  <dismukes@adacore.com>
4384         * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
4386 2014-07-30  Vincent Celier  <celier@adacore.com>
4388         * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
4389         parameter No_Extending, defaulted to False. When No_Extending
4390         is True, do not look for an extending project.
4391         (Expression): For a variable reference that is not for the current
4392         project, get its Id calling Imported_Or_Extended_Project_From
4393         with No_Extending set to True.
4394         * prj-strt.adb (Parse_Variable_Reference): If a referenced
4395         variable is not found in the current project, check if it is
4396         defined in one of the projects it extends.
4398 2014-07-30  Robert Dewar  <dewar@adacore.com>
4400         * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
4401         some additional cases of internally generated routines.
4403 2014-07-30  Ed Schonberg  <schonberg@adacore.com>
4405         * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
4406         if the compilation unit is a subunit, extend optional processing
4407         to all subunits of the current one. This allows gnatstub to
4408         supress generation of spurious bodies.
4410 2014-07-30  Hristian Kirtchev  <kirtchev@adacore.com>
4412         * a-cbmutr.adb (Insert_Child): Use local variable First to keep
4413         track of the initial element's index within the tree.
4415 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4417         * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
4418         (Insert_Child): Add local variable First. Capture the index of the
4419         first node being created to ensure correct cursor construction
4420         later on. Use the three parameter version of Allocate_Node
4421         when creating multiple children as this method allows aspect
4422         Default_Value to take effect (if applicable).
4424 2014-07-29  Eric Botcazou  <ebotcazou@adacore.com>
4426         * exp_aggr.adb (Safe_Slice_Assignment): Remove.
4427         (Expand_Array_Aggregate): For a safe slice assignment, just set
4428         the target and use the common code path.
4430 2014-07-29  Robert Dewar  <dewar@adacore.com>
4432         * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
4433         predicate No_Predicate_Test_On_Arguments, new name is
4434         Predicate_Tests_On_Arguments (with the opposite sense).
4436 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4438         * sem_attr.adb (Resolve_Attribute): Clean up the code for
4439         attribute 'Access. Do not generate an elaboration flag for a
4440         stand alone expression function. The expression of an expression
4441         function is now frozen when the expression function appears as
4442         the prefix of attribute 'Access.
4443         * sem_ch6.adb (Analyze_Expression_Function): Remove local
4444         variable New_Decl and update all references to it after the
4445         rewriting has taken place. Establish the linkages between the
4446         generated spec and body.
4448 2014-07-29  Robert Dewar  <dewar@adacore.com>
4450         * sem_prag.adb (ip, rv): Prevent from being optimized away.
4451         * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
4452         * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
4453         reformatting.
4455 2014-07-29  Vincent Celier  <celier@adacore.com>
4457         * prj-pp.adb: Minor comment update.
4458         * frontend.adb: If a target dependency info file has been read
4459         through switch -gnateT= add it to the dependencies of the source
4460         being compiled.
4462 2014-07-29  Robert Dewar  <dewar@adacore.com>
4464         * sem_ch3.adb, prj.adb: Minor reformatting.
4466 2014-07-29  Vincent Celier  <celier@adacore.com>
4468         * prj-pp.adb (Pretty_Print.Output_Project_File): New
4469         procedure to output project file names between quotes without
4470         concatenation, even if the line is too long.
4471         (Pretty_Print): Use Output_Project_File for project being extended and
4472         project imported.
4474 2014-07-29  Vincent Celier  <celier@adacore.com>
4476         * gnat_ugn.texi: Document that configuration pragmas files are
4477         added to the dependencies, unless they contain only pragmas
4478         Source_File_Name_Project.
4480 2014-07-29  Robert Dewar  <dewar@adacore.com>
4482         * frontend.adb: Minor reformatting.
4484 2014-07-29  Robert Dewar  <dewar@adacore.com>
4486         * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
4487         (Expand_Actuals): Make sure predicate checks are properly applied
4488         for the case of OUT or IN OUT parameters.
4489         * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
4490         predicate tests on arguments for Finalize
4491         * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
4492         if predicate tests on subprogram arguments should be skipped.
4493         * sem_util.ads (No_Predicate_Test_On_Arguments): New function
4495 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4497         * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
4498         clause for the object and the expression is an aggregate, defer
4499         resolution and expansion of the aggregate until the freeze point
4500         of the entity.
4501         * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
4502         the parent node is an N_Reference generated during expansion.
4504 2014-07-29  Vincent Celier  <celier@adacore.com>
4506         * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
4508 2014-07-29  Robert Dewar  <dewar@adacore.com>
4510         * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
4511         prepcomp.ads: Minor reformatting and code clean up.
4512         * exp_ch6.adb (Expand_Actuals): Generate predicate test
4513         unconditionally for case of OUT or IN OUT actual (before this
4514         was generated only for certain subcases, which is wrong, the
4515         test is always needed).
4517 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4519         * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
4520         * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
4521         until context type is available.
4522         * sem_res.adb (Resolve_Allocator): In the case of a qualified
4523         expression, complete resolution of expression.
4524         (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
4525         to apply Ada2012 checks on aliased formals, as well as
4526         accesibility checks when the context of the call is an allocator
4527         or a qualified expression.
4528         * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
4529         Moved here from sem_ch3.
4530         (Object_Access_Level): Handle properly aliased formals and
4531         aggregates.
4532         * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
4533         now properly performed in sem_res (Resolve_Actuals,
4534         Check_Aliased_Parameter).
4536 2014-07-29  Yannick Moy  <moy@adacore.com>
4538         * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
4539         * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
4540         function to decide when a subprogram can be inlined in GNATprove mode.
4541         (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
4542         condition for possible inlining.
4543         * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
4544         for Inline_Always in GNATprove mode.
4545         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
4546         body for subprograms in GNATprove mode, under debug flag -gnatdQ.
4547         * sem_prag.adb Minor change in comments.
4548         * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
4549         inside subprograms marked as SPARK_Mode On.
4550         * sinfo.ads: Minor typo fix.
4552 2014-07-29  Vincent Celier  <celier@adacore.com>
4554         * frontend.adb: Add dependency on gnat.adc when taken into account
4555         and on non-temporary configuration pragmas files specified in
4556         switches -gnatec.
4557         * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
4558         dependencies on configuration pragmas files.
4560 2014-07-29  Pat Rogers  <rogers@adacore.com>
4562         * gnat_ugn.texi: Minor clarification to the explanation for the
4563         GNATtest -v switch.
4565 2014-07-29  Robert Dewar  <dewar@adacore.com>
4567         * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
4568         documentation that explains the need for this extended range
4569         (use by C_Pass_By_Copy).
4571 2014-07-29  Robert Dewar  <dewar@adacore.com>
4573         * gnat_rm.texi, sem_prag.adb: Minor reformatting.
4575 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
4577         * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
4578         complexity metrics.
4580 2014-07-29  Thomas Quinot  <quinot@adacore.com>
4582         PR ada/60652
4583         * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
4584         CRTSCTS to be visible.
4586 2014-07-29  Bob Duff  <duff@adacore.com>
4588         * g-trasym.adb, g-trasym.ads: Code cleanup.
4590 2014-07-29  Doug Rupp  <rupp@adacore.com>
4592         * sigtramp-vxworks.c: Minor reformatting.
4594 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4596         * gnat_rm.texi: No doc needed for Ada2012 aspect
4597         Implicit_dereference.
4599 2014-07-29  Robert Dewar  <dewar@adacore.com>
4601         * sem_attr.adb (Attribute_12): New array
4602         (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
4603         (Check_Ada_2012_Attribute): Removed.
4605 2014-07-29  Doug Rupp  <rupp@adacore.com>
4607         * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
4608         PPC, and e500.
4609         * sigtramp-vxworks.c: New file.
4610         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
4612 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4614         * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
4615         derived array type, add information about component type, which
4616         was previously missing in ali file.
4617         * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
4619 2014-07-29  Thomas Quinot  <quinot@adacore.com>
4621         * sem_ch3.adb (Constrain_Corresponding_Record): For the case
4622         of the subtype created for a record component, do not mark
4623         the subtype as frozen. For one thing, this is anomalous (in
4624         particular, the base type might not itself be frozen yet);
4625         furthermore, proper freezing of the subtype must happen in any
4626         case. So, we just mark the subtype as requiring delayed freezing
4627         (and we'll actually freeze it when generating the init_proc of
4628         the enclosing record).
4629         Also change the name of the constrained record subtype (append a
4630         'C' so that it is clearly different from the unconstrained record
4631         type, "related_idV") to make debugging easier.
4632         (Process_Full_View): When creating a full subtype for a pending
4633         private subtype, re-establish the scope of the private subtype
4634         so that we get proper visibility on outer discriminants.
4635         * exp_ch3.adb (Build_Init_Statements): Freeze any component
4636         subtype that is not frozen yet.
4638 2014-07-29  Vincent Celier  <celier@adacore.com>
4640         * prj-proc.adb (Recursive_Process): Always initialize the
4641         environment when the project is an aggregate project, even when
4642         it is not the root tree.
4643 2014-07-29  Robert Dewar  <dewar@adacore.com>
4645         * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
4646         * gnat_rm.texi: Complete list of implementation aspects.
4647         * aspects.ads: Minor comment clarification.
4649 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4651         * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
4652         is a null-excluding access type, do not generate a constraint
4653         check if Suppress_Assignment_Checks is set on assignment node.
4654         * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
4655         parameter of a null-excluding access type, there is access check
4656         on entry, so set Suppress_Assignment_Checks on generated statement
4657         that assigns actual to parameter block.
4658         * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
4660 2014-07-29  Robert Dewar  <dewar@adacore.com>
4662         * gnat_rm.texi: Change theta to @ in documentation of aspect
4663         Dimension_System.
4665 2014-07-29  Robert Dewar  <dewar@adacore.com>
4667         * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
4668         are now on pragma.
4669         * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
4670         of Uneval_Old_*
4671         * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
4672         * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
4674 2014-07-29  Javier Miranda  <miranda@adacore.com>
4676         * types.ads Update documentation on how to add new reason codes
4677         for exceptions.
4678         (RT_Exception_Code): Keep values ordered by their
4679         reason code.  Required by the .NET backend.
4680         (RT_CE_Exceptions): Subtype declaration removed.
4681         (RT_PE_Exceptions): Subtype declaration removed.
4682         (RT_SE_Exceptions): Subtype declaration removed.
4683         (Kind): New mapping table of RT_Exception_Codes.
4684         * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
4685         new mapping table.
4686         * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
4687         mapping table.  (Make_Raise_Program_Error): Updated to use the
4688         new mapping table.
4689         (Make_Raise_Storage_Error): Updated to use the new mapping table.
4690         * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
4691         their reason code.
4693 2014-07-29  Thomas Quinot  <quinot@adacore.com>
4695         * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
4696         distributed stubs generation.
4697         * exp_ch3.adb: Minor reformatting.
4699 2014-07-29  Yannick Moy  <moy@adacore.com>
4701         * sinfo.ads: Document constraint between frontend and GNATprove.
4703 2014-07-29  Robert Dewar  <dewar@adacore.com>
4705         * a-except.adb: Minor comment clarification.
4707 2014-07-29  Robert Dewar  <dewar@adacore.com>
4709         * gnat_rm.texi: Complete list of implementation attributes.
4710         * snames.ads-tmpl: Clean up list of impl-defined attributes.
4712 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4714         * freeze.adb (Freeze_Record_Type): Perform various
4715         volatility-related checks.
4717 2014-07-29  Robert Dewar  <dewar@adacore.com>
4719         * sem_ch3.adb, sem_eval.adb: Minor reformatting.
4721 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4723         * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
4724         the case where the attribute reference appears in a nested scope
4725         from that of the subprogram prefix.
4726         * sem_attr.adb: Minor reformatting.
4728 2014-07-29  Robert Dewar  <dewar@adacore.com>
4730         * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
4731         initialization options.
4733 2014-07-29  Robert Dewar  <dewar@adacore.com>
4735         * sinfo.ads: Minor comment addition.
4737 2014-07-29  Bob Duff  <duff@adacore.com>
4739         * sem_eval.adb, sem_ch13.adb: Minor reformatting.
4741 2014-07-29  Doug Rupp  <rupp@adacore.com>
4743         * init.c: Complete previous change.
4745 2014-07-29  Robert Dewar  <dewar@adacore.com>
4747         * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
4748         array case.
4750 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4752         * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
4753         and the completion will appear in the same declarative part,
4754         create elaboration flag.
4755         * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
4756         is a completion of a declaration in the same declarative part,
4757         and the subprogram has had its address taken, add elaboration
4758         check inside the subprogram body, to detect elaboration errors
4759         that may occur through indirect calls.
4761 2014-07-29  Doug Rupp  <rupp@adacore.com>
4763         * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
4764         * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
4766 2014-07-29  Vincent Celier  <celier@adacore.com>
4768         * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
4769         runtime directorie specified with two switches --RTS= designate
4770         the same directory, even when there are no literarily the same.
4772 2014-07-29  Robert Dewar  <dewar@adacore.com>
4774         * gnat_ugn.texi: Minor documentation clarification.
4775         * switch-c.adb: Minor reformatting.
4777 2014-07-29  Robert Dewar  <dewar@adacore.com>
4779         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
4780         Fix incorrect RTE call which caused bomb if pragma was in
4781         configuration pragma file.
4783 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
4785         * expect.c (__gnat_expect_poll): Fix typo in previous change.
4786         * g-expect.adb: Update comments.
4788 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
4790         * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
4791         (Default_Attribute_Count): Bump to 16 on native platforms.
4793 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4795         * sem_res.adb: Add guard to front-end inlining for SPARK.
4797 2014-07-29  Robert Dewar  <dewar@adacore.com>
4799         * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
4800         Minor reformatting.
4802 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4804         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
4805         inline in GNATprove mode when subprogran is marked Inline_Always.
4806         * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
4807         mode if body to inline is available.
4808         * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
4809         effective in GNATprove mode.
4810         * sem_ch10.adb (Analyze_Compilation_Unit): Call
4811         Check_Package_Body_For_Inlining in GNATprove mode, so that body
4812         containing subprograms with Inline_Always can be available before
4813         calls to them.
4815 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4817         * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
4818         to Check_Package_Body_For_Inlining, to prevent confusion with other
4819         inlining subprograms.
4821 2014-07-29  Robert Dewar  <dewar@adacore.com>
4823         * opt.ads: Minor comment update.
4824         * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
4825         we want setting of Uneval_Old at time of encountering the aspect.
4826         * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
4827         of Opt.Uneval_Old.
4828         * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
4829         New function (Set_Uneval_Old_Accept): New procedure.
4830         (Set_Uneval_Old_Warn): New procedure.
4831         * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
4833 2014-07-29  Robert Dewar  <dewar@adacore.com>
4835         * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
4836         * snames.ads-tmpl: Minor reformatting.
4837         * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
4838         to give <Error>.  Not clear why this was there, but the compiler
4839         sources do not reference Name_Error, and this interfered with
4840         the circuits for pragma Unevaluated_Use_Of_Old.
4842 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4844         * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
4845         types in SPARK 2014 (again).
4846         * sem_res.adb (Is_OK_Volatile_Context): New routine.
4847         (Resolve_Entity_Name): Ensure that a volatile object with
4848         enabled properties Async_Writers or Effectire_Reads appears in
4849         a non-interfering context.
4851 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4853         * sem_ch6.adb: Move Build_Body_To_Inline,
4854         Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
4855         * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
4856         * inline.ads, inline.adb: Package now contains subprograms that
4857         implement front-end inlining.  No functional changes, no test
4858         needed.
4860 2014-07-29  Robert Dewar  <dewar@adacore.com>
4862         * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
4864 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4866         * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
4867         is a limited view when the context is a package body, because
4868         there is no subsequent place at which the non-limited view may
4869         become visible.
4870         (Process_Formals): Ditto.
4871         * sinfo.ads, par-ch3.adb: Minor reformatting.
4873 2014-07-29  Jerome Lambourg  <lambourg@adacore.com>
4875         * expect.c (__gnat_expect_poll): New parameter dead_process
4876         used to return the dead process among the array of file
4877         descriptors. The Windows, VMS and HPUX implementations now
4878         properly report the dead process via this parameter. Other unixes
4879         don't need it.
4880         * g-expect.adb (Poll): Adapt to the C profile.
4881         (Expect_Internal): Use the new parameter to properly close the
4882         File Descriptor.  This then can be properly reported by the
4883         function First_Dead_Process as is expected.
4885 2014-07-29  Robert Dewar  <dewar@adacore.com>
4887         * gnat_ugn.texi: Minor clarification of -gnatQ switch.
4889 2014-07-29  Robert Dewar  <dewar@adacore.com>
4891         * einfo.adb (Derived_Type_Link): New function
4892         (Set_Derived_Type_Link): New procedure.
4893         (Write_Field31_Name): Output Derived_Type_Link.
4894         * einfo.ads: New field Derived_Type_Link.
4895         * exp_ch6.adb (Expand_Call): Warn if change of representation
4896         needed on call.
4897         * sem_ch13.adb: Minor addition of ??? comment.
4898         (Rep_Item_Too_Late): Warn on case that is legal but could cause an
4899         expensive implicit conversion.
4900         * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
4902 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4904         * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
4905         to DF_Id. Add new local variable DF_Call. Do not perform any
4906         elaboration-related checks on the call to the partial finalization
4907         routine within an init proc to avoid generating bogus elaboration
4908         warnings on expansion-related code.
4909         * sem_elab.adb (Check_A_Call): Move constant Access_Case to
4910         the top level of the routine.  Ensure that Output_Calls takes
4911         into account flags -gnatel and -gnatwl when emitting warnings
4912         or info messages.
4913         (Check_Internal_Call_Continue): Update the call to Output_Calls.
4914         (Elab_Warning): Moved to the top level of routine Check_A_Call.
4915         (Emit): New routines.
4916         (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
4917         comment on usage. Output all warnings or info messages only when the
4918         caller context demands it and the proper elaboration flag is set.
4920 2014-07-29  Yannick Moy  <moy@adacore.com>
4922         * sem_attr.adb (Analyze_Attribute/Attribute_Old):
4923         Check rule about Old appearing in potentially unevaluated
4924         expression everywhere, not only in Post.
4926 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
4928         * sem_prag.adb: Update comment.
4929         * a-except.adb, a-except-2005.adb: Minor editing.
4931 2014-07-29  Pierre-Marie Derodat  <derodat@adacore.com>
4933         * exp_dbug.adb (Debug_Renaming_Declaration):
4934         Do not create renaming entities for renamings of non-packed
4935         objects and for exceptions.
4937 2014-07-29  Robert Dewar  <dewar@adacore.com>
4939         * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
4940         sem_ch6.adb, par-ch3.adb: Minor reformatting.
4942 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4944         * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
4945         subtype indication in an extended return statement when the
4946         return value is an ancestor of the return type of the function,
4947         and that return type is a null record extension.
4949 2014-07-29  Thomas Quinot  <quinot@adacore.com>
4951         * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
4952         message produced for the case of a type-related representation
4953         item that is made illegal by 13.10(1).
4954         * gnat_rm.texi (Scalar_Storage_Order): Minor change in
4955         documentation.
4957 2014-07-29  Robert Dewar  <dewar@adacore.com>
4959         * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
4960         * erroutc.adb (Output_Error_Msgs): Take wide characters into
4961         account in computing position of error flags.
4962         * sinput.adb (Get_Column_Number): Take wide characters into
4963         account.
4965 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4967         * par-ch3.adb (P_Access_Type_Definition): The subtype indication
4968         in an access type definition can carry a null_exclusion indicator.
4969         * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
4970         carries a null_exclusion indicator, verify that the subtype
4971         indication denotes an access type, and create a null-excluding
4972         subtype for it.
4973         * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
4974         defined on N_Access_To_Object_Definition to indicate that the
4975         subtype indication carries a null_exclusion indicator.
4977 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
4979         * exp_ch6.adb (Add_Extra_Actual): Do not construct
4980         the extra actual by name, generate a reference instead.
4982 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
4984         * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
4985         Allow_Integer_Address if already set.
4986         * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
4987         Fix order, for consistency with Rmsg_xx declarations.
4989 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
4991         * sem_ch4.adb (Complete_Object_Operation): If the type of the
4992         candidate subprogram is a limited view, use non-limited view
4993         when available.
4995 2014-07-29  Robert Dewar  <dewar@adacore.com>
4997         * sem_ch13.adb: Minor change in RM reference.
4998         * sem_mech.ads: Minor reformatting.
4999         * einfo.ads: Minor comment fix.
5000         * types.ads: Minor correction to range given for Mechanism_Type.
5001         * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
5002         check predicate on way out for OUT or IN OUT parameters.
5003         * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
5004         better (P_Range_Constraint): Corresponding fix.
5005         * checks.ads: Minor comment clarification.
5007 2014-07-29  Gary Dismukes  <dismukes@adacore.com>
5009         * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
5010         and Treat_As_Volatile flags based on whether the renamed object
5011         is a volatile object.
5013 2014-07-29  Olivier Hainque  <hainque@adacore.com>
5015         * g-debpoo.adb
5016         (Default_Alignment): Rename as Storage_Alignment. This is not
5017         a "default" that can be overriden. Augment comment to clarify
5018         intent and document why we need to manage alignment padding.
5019         (Header_Offset): Set to Header'Object_Size instead of 'Size
5020         rounded up to Storage_Alignment. Storage_Alignment on the
5021         allocation header is not required by our internals so was
5022         overkill. 'Object_Size is enough to ensure proper alignment
5023         of the header address when substracted from a storage address
5024         aligned on Storage_Alignment.
5025         (Minimum_Allocation): Rename as Extra_Allocation, conveying that
5026         this is always added on top of the incoming allocation requests.
5027         (Align): New function, to perform alignment rounding operations.
5028         (Allocate): Add comments on the Storage_Address computation
5029         scheme and adjust so that the alignment padding applies to that
5030         (Storage_Address) only.
5032 2014-07-29  Robert Dewar  <dewar@adacore.com>
5034         * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
5035         pragma Unreferenced.
5036         * cstand.adb (Create_Standard): Use E_Array_Type for standard
5037         string types. Make sure index of Any_String/Any_Array is in a list.
5038         * errout.adb: Minor reformatting.
5040 2014-07-29  Robert Dewar  <dewar@adacore.com>
5042         * gnat_ugn.texi: Clean up and correct documentation of warnings.
5043         * usage.adb: Minor corrections to make sure warnings are properly
5044         documented.
5045         * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
5046         (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
5048 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5050         * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
5051         created to match internal sequence numbers between compilations
5052         with/without abort must have its type properly set.
5054 2014-07-29  Robert Dewar  <dewar@adacore.com>
5056         * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
5057         (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
5058         SSO_Default_Specified.
5059         * ali.ads (ALIs_Record): Add field SSO_Default
5060         (SSO_Default_Specified): New global switch.
5061         * bcheck.adb (Check_Consistent_SSO_Default): New procedure
5062         (Check_Configuration_Consistency): Call this procedure
5063         * einfo.adb (SSO_Set_High_By_Default): New
5064         function (SSO_Set_Low_By_Default): New function
5065         (Set_SSO_Set_High_By_Default): New procedure
5066         (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
5067         List new flags
5068         * einfo.ads (SSO_Set_Low_By_Default): New flag
5069         (SSO_Set_High_By_Default): New flag
5070         * freeze.adb (Set_SSO_From_Default): New procedure
5071         (Freeze_Array_Type): Call Set_SSO_From_Default
5072         (Freeze_Record_Type): Call Set_SSO_From_Default
5073         * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
5074         * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
5075         * lib-writ.ads: Add OL/OH parameters to P line
5076         * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
5077         * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
5078         New global switch
5079         * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
5080         set by default using pragma Default_Scalar_Storage_Order.
5081         * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
5082         * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
5083         Clear SSO defaults when explicit SSO is inherited.
5084         (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
5085         explicit SSO is specified.
5086         (Inherit_Aspects_At_Freeze_Point):
5087         Clear SSO default when inheriting SSO.
5088         * sem_ch3.adb (Set_Default_SSO): New procedure
5089         (Analyze_Private_Extension_Declaration): Set defualt SSO
5090         (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
5091         (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
5092         ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
5093         (Record_Type_Declaration): ditto
5094         * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
5095         Save Default_SSO
5096         * sem_prag.adb (Analyze_Pragma, case
5097         Default_Scalar_Storage_Order): Set Default_SSO
5099 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5101         * sem_ch6.adb (Valid_Operator_Definition): Verify that
5102         all parameter have mode IN. This check must be done here for
5103         subprogram instantiations that have operator names, because their
5104         analysis does not follow the same path as that for subprogram
5105         declarations.
5107 2014-07-29  Robert Dewar  <dewar@adacore.com>
5109         * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
5110         to make sure that the Etype of a component of the corresponding
5111         record type is present before trying to freeze it.
5112         * sem_ch5.adb: Minor reformatting.
5114 2014-07-29  Robert Dewar  <dewar@adacore.com>
5116         * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
5117         a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
5118         and then use it when a stream operation is used from a library generic
5119         when the restriction (No_Streams) is active.
5121 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5123         * projects.texi: Fix minor typo.
5125 2014-07-29  Yannick Moy  <moy@adacore.com>
5127         * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
5129 2014-07-29  Arnaud Charlet  <charlet@adacore.com>
5131         * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
5132         CodePeer mode.
5134 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5136         * exp_ch7.adb (Find_Last_Init): Add local variable
5137         Deep_Init_Found. Check the statement immediately following the
5138         declaration if [Deep_]Initialization was not found.
5140 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5142         * exp_util.adb (Is_Aliased): It appears that
5143         'reference-d and renamed objects still play some role in Boolean
5144         expression with actions and cannot be finalized immediately.
5146 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5148         * exp_dbug.adb (Qualify_Needed):  For debugging purposes,
5149         Loop names are not part of the full qualification of entity names.
5151 2014-07-29  Robert Dewar  <dewar@adacore.com>
5153         * einfo.adb (Has_Protected): Test base type.
5154         * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
5155         that we always properly check No_Protected_Type_Allocators.
5157 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5159         * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
5160         loop declarations as well.
5161         * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
5162         to an iterator loop, because it may contain local renaming
5163         declarations that require debugging information.
5165 2014-07-29  Robert Dewar  <dewar@adacore.com>
5167         * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
5169 2014-07-29  Robert Dewar  <dewar@adacore.com>
5171         * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
5172         (Set_Static_Real_Or_String_Predicate): New procedure
5173         * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
5174         string predicates (Is_Predicate_Static): Handle static string
5175         predicates.
5176         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
5177         New procedure (Check_Expression_Against_Static_Predicate):
5178         Deal with static string predicates, now fully implemented
5179         (Eval_Relational_Op): Allow string equality/inequality as static
5180         if not comes from source.
5182 2014-07-29  Robert Dewar  <dewar@adacore.com>
5184         * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
5185         einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
5186         sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
5187         handling. Change name of Discrete_Predicate to
5188         Discrete_Static_Predicate, and replace testing of the presence of this
5189         field by testing the flag Has_Static_Expression.
5191 2014-07-29  Robert Dewar  <dewar@adacore.com>
5193         * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
5194         * opt.adb: Handle Uneval_Old.
5195         * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
5196         * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
5197         * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
5198         * sem_attr.adb (Uneval_Old_Msg): New procedure.
5199         * sem_ch8.adb (Push_Scope): Save Uneval_Old.
5200         (Pop_Scope): Restore Uneval_Old.
5201         * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
5202         Implemented.
5203         * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
5204         Add entries for Name_Warn, Name_Allow.
5206 2014-07-29  Robert Dewar  <dewar@adacore.com>
5208         * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
5209         to Is_OK_Static_Range.
5210         * sem_attr.adb (Eval_Attribute): Make sure we properly flag
5211         static attributes (Eval_Attribute, case Size): Handle size of
5212         zero properly (Eval_Attribute, case Value_Size): Handle size of
5213         zero properly.
5214         * sem_ch13.adb: Minor reformatting.
5215         * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
5216         Is_Static_Range to Is_OK_Static_Range.
5217         * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
5218         wrong in several ways (Is_Static_Range): Moved here from spec
5219         (Is_Static_Subtype): Moved here from spec Change some incorrect
5220         Is_Static_Subtype calls to Is_OK_Static_Subtype.
5221         * sem_eval.ads: Add comments to section on
5222         Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
5223         Add clarifying comments (Is_Static_Range): Moved to body
5224         (Is_Statically_Unevaluated): New function.
5225         * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
5226         Is_Static_Range to Is_OK_Static_Range.
5227         * sinfo.ads: Additional commments for Is_Static_Expression noting
5228         that clients should almost always use Is_OK_Static_Expression
5229         instead. Many other changes throughout front end units to obey
5230         this rule.
5231         * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
5232         for enumeration literal.
5233         * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
5234         lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
5235         sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
5236         exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
5237         Replace all occurrences of Is_Static_Expression by
5238         Is_OK_Static_Expression.
5240 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5242         * exp_ch4.adb (Process_Transient_Object): Remove constant
5243         In_Cond_Expr, use its initialization expression in place.
5244         * exp_ch7.adb (Process_Declarations): There is no need to check
5245         that a transient object being hooked is controlled as it would
5246         not have been hooked in the first place.
5247         * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
5248         objects are not considered aliased when the related context is
5249         a Boolean expression_with_actions.
5250         (Requires_Cleanup_Actions): There is no need to check that a transient
5251         object being hooked is controlled as it would not have been hooked in
5252         the first place.
5254 2014-07-29  Robert Dewar  <dewar@adacore.com>
5256         * errout.adb: Minor reformatting.
5258 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5260         * exp_ch3.adb (Default_Initialize_Object): Add new variables
5261         Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
5262         not allowed to ensure the symmetrical generation of symbols.
5263         * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
5264         and E_Decl. Add new variables Decl and Dummy. Generate a dummy
5265         temporary when aborts are not allowed to ensure symmertrical
5266         generation of symbols.
5267         * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
5268         Dummy. Generate a dummy temporary when aborts are not allowed
5269         to ensure symmertrical generation of symbols.
5271 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5273         * exp_dbug.adb (Debug_Renaming_Declaration): For an object
5274         renaming, indicate that the renamed entity itself needs debug
5275         information. This is necessary if that entity is a temporary,
5276         e.g. part of the expansion of an explicit dereference in an
5277         iterator.
5279 2014-07-29  Thomas Quinot  <quinot@adacore.com>
5281         * errout.adb (Set_Error_Posted): When propagating flag to
5282         an enclosing named association, also propagate to the parent
5283         of that node, so that named and positional associations are
5284         treated consistently.
5286 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5288         * sem_attr.adb (Resolve_Attribute, case 'Update):  Set
5289         Do_Range_Check properly on array component expressions that
5290         have a scalar type. In GNATprove mode, only checks on scalar
5291         components must be marked by the front-end.
5293 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5295         * sem_res.adb (Resolve_Type_Conversion): If the type of the
5296         expression is a limited view, use the non-limited view when
5297         available.
5299 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5301         * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
5302         case statement as coming from a conditional expression.
5303         (Expand_N_If_Expression): Mark the generated if statement as
5304         coming from a conditional expression.
5305         * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
5306         objects found in case statement alternatives when the case
5307         statement is actually a case expression.
5308         (Expand_N_If_Statement):
5309         Do not process controlled objects found in an if statement when
5310         the if statement is actually an if expression.
5311         * sinfo.adb (From_Conditional_Expression): New routine.
5312         (Set_From_Conditional_Expression): New routine.
5313         * sinfo.ads Add new semantic flag From_Conditional_Expression and
5314         update related nodes.
5315         (From_Conditional_Expression): New routine along with pragma Inline.
5316         (Set_From_Conditional_Expression): New routine along with pragma Inline.
5318 2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
5320         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
5321         formal parameter Obj_Id and update the comment on usage. Renamed
5322         Obj_Typ to Func_Typ and update all occurrences.
5323         (Find_Last_Init): Remove formal parameter Decl and update the comment
5324         on usage.
5325         Remove local constants Obj_Id and Obj_Typ. Remove local variables
5326         Init_Typ and Is_Conc. Remove the extraction of the initialization type.
5327         (Find_Last_Init_In_Block): Remove formal parameter
5328         Init_Typ and update the comment on usage.
5329         (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
5330         on usage. Check whether the procedure call is an initialization
5331         procedure of either the object type or the initialization type.
5332         (Is_Init_Proc_Of): New routine.
5333         (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
5334         routine. Add new variable Init_Typ. Add circuitry to extract the object
5335         type as well as the initialization type.
5337 2014-07-29  Robert Dewar  <dewar@adacore.com>
5339         * sem_case.adb: Minor reformatting.
5340         * sem_aux.ads: Minor reformatting.
5342 2014-07-29  Ed Schonberg  <schonberg@adacore.com>
5344         * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
5345         pointer on these fields, even though they are semantic, because
5346         subsequent analysis and expansion of action nades may require
5347         exploring the tree, for example to locate a node to be wrapped
5348         when a function with controlled result is called.
5350 2014-07-29  Claire Dross  <dross@adacore.com>
5352         * sem_aux.adb (Get_Binary_Nkind): Use case on
5353         Name_Id instead of an intermediate string.
5354         (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
5355         string.
5357 2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
5359         * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
5360         about processing sources with preprocessor directives.
5362 2014-07-24  Martin Liska  <mliska@suse.cz>
5364         * gcc-interface/trans.c (finalize_nrv): Adjust function call.
5365         * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
5366         (gnat_write_global_declarations): Likewise.
5368 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
5370         * gnat_rm.texi: Clean up for makeinfo 5.2.
5372 2014-07-19  David Wohlferd  <dw@LimeGreenSocks.com>
5374         * gnat_rm.texi (Machine Code Insertions): Clean up.
5376 2014-07-18  Robert Dewar  <dewar@adacore.com>
5378         * exp_ch7.adb: Minor reformatting.
5380 2014-07-18  Claire Dross  <dross@adacore.com>
5382         * sem_aux.ads (Get_Binary_Nkind): New function that returns
5383         the Node_Kind value of an entity defining a binary operator.
5384         (Get_Unary_Nkind): New function that returns the Node_Kind value
5385         of an entity defining a unary operator.
5387 2014-07-18  Pascal Obry  <obry@adacore.com>
5389         * sysdep.c: comment update.
5390         * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
5391         platforms where it is known to be supported.
5393 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5395         * sem_dist.adb (Process_Remote_AST_Declaration): Need
5396         to set Fat_Type's Ekind in order to be able to use its
5397         Corresponding_Remote_Type attribute.
5399 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5401         * einfo.adb Last_Aggregate_Assignment is now Node 30.
5402         (Last_Aggregate_Assignment): Include
5403         constants in the assertion. Update the underlying node.
5404         (Set_Last_Aggregate_Assignment): Include constants in the
5405         assertion. Update the underlying node.  (Write_Field11_Name):
5406         Remove the entry for Last_Aggregate_Assignment.
5407         (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
5408         * einfo.ads Update the node designation and usage of attribute
5409         Last_Aggregate_Assignment.
5410         * exp_aggr.adb (Expand_Array_Aggregate): Store the last
5411         assignment statement used to initialize a controlled object.
5412         (Late_Expansion): Store the last assignment statement used to
5413         initialize a controlled record or an array of controlled objects.
5414         * exp_ch3.adb (Expand_N_Object_Declaration): Default
5415         initialization of objects is now performed in a separate routine.
5416         (Default_Initialize_Object): New routine.
5417         * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
5418         Obj_Id. Update the comment on usage.
5419         (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
5420         Reimplement the logic.  (Find_Last_Init_In_Block): New routine.
5421         (Is_Init_Call): Add formal parameter Init_Typ. Update the
5422         comment on usage.  Account for the type init proc when trying
5423         to determine whether a statement is an initialization call.
5424         (Make_Adjust_Call): Rename formal parameter For_Parent to
5425         Skip_Self. Update all occurrences of For_Parent. Account for
5426         non-tagged types. Update the call to Make_Call.
5427         (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
5428         comment on usage. Update all occurrences of For_Parent.
5429         (Make_Final_Call): Rename formal parameter For_Parent to
5430         Skip_Self. Update all occurrences of For_Parent. Account
5431         for non-tagged types. Update the call to Make_Call.
5432         (Process_Object_Declaration): Most variables and constants are
5433         now local to the routine.
5434         * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
5435         For_Parent to Skip_Self. Update the comment on usage.
5436         (Make_Final_Call): Rename formal parameter For_Parent to
5437         Skip_Self. Update the comment on usage.
5439 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5441         * sem_ch9.adb (Analyze_Requeue): The entry being referenced
5442         can be a procedure that is implemented by entry, and have a
5443         formal that is a synchronized interface.  It does not have to
5444         be declared as a protected operation.
5446 2014-07-18  Robert Dewar  <dewar@adacore.com>
5448         * gnat_rm.texi: Remove mention of obsolete attributes
5449         Max[_Interrupt]_Priority, which have never been implemented
5450         (or at the very least were removed long ago if they ever were
5451         implemented.  Add documentation of Max[_Interrupt]_Priority
5452         constants in package System.
5453         * ttypes.ads: Document actual handling of package System,
5454         rather than a historical fantasy version.  Remove mention of
5455         non-existent attributes Max[_Interrupt]_Priority.
5457 2014-07-18  Pascal Obry  <obry@adacore.com>
5459         * a-witeio.adb (Put): No 16-bit character output when text
5460         translation is disabled.
5461         * i-cstrea.ads: Code clean up.
5463 2014-07-18  Robert Dewar  <dewar@adacore.com>
5465         * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
5466         static attributes.
5468 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
5470         * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
5472 2014-07-18  Pascal Obry  <obry@adacore.com>
5474         * adaint.c: Do not include wchar.h on VxWorks.
5475         * mingw32.h: Remove obsolete definition.
5477 2014-07-18  Pascal Obry  <obry@adacore.com>
5479         * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
5480         * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
5481         * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
5482         * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
5484 2014-07-18  Pascal Obry  <obry@adacore.com>
5486         * a-textio.adb: Rename Is_Text_File to Text_Encoding.
5487         * a-ztexio.adb: Likewise.
5488         * a-witeio.adb: Likewise.
5489         (Open): Pass file's translation mode to set_text_mode.
5490         * s-ficobl.ads (Content_Encoding): New type.
5491         (Text_Content_Encoding): New subtype.
5492         (AFCB): Rename Is_Text_File to Text_Encoding.
5493         * s-fileio.adb (Open): Handles new text_translation
5494         values. Remove Is_Text_File which is equivalent to Text_Encoding
5495         in Text_Content_Encoding.
5496         * adaint.h (__gnat_set_mode): New routine.
5497         * sysdep.c (__gnat_set_wide_text_mode): Removed.
5498         (__gnat_set_mode): New routine.
5500 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
5502         * gcc-interface/decl.c, gcc-interface/trans.c,
5503         gcc-interface/utils.c (Is_Packed_Array_Type): Renamed 
5504         Is_Packed_Array_Impl_Type.
5506 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
5508         * sem_util.adb: Minor typo correction.
5510 2014-07-18  Ben Brosgol  <brosgol@adacore.com>
5512         * gnat_rm.texi: Complete previous change.
5514 2014-07-18  Pascal Obry  <obry@adacore.com>
5516         * s-fileio.adb: Minor style fix.
5518 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5520         * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
5521         specification of stream attributes for subtypes that are not
5522         first subtypes, to prevent malformed rep_item chains in the case
5523         of such illegal specifications for discriminated private subtypes.
5524         (Check_Overloaded_Name): Verify that the name is an entity name
5525         before other checks.
5527 2014-07-18  Pascal Obry  <obry@adacore.com>
5529         * adaint.c (__gnat_fputwc) Do not disable on cross-build.
5531 2014-07-18  Robert Dewar  <dewar@adacore.com>
5533         * sem_prag.adb, sem_attr.adb,
5534         sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
5536 2014-07-18  Pascal Obry  <obry@adacore.com>
5538         * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
5539         * initialize.c (__gnat_wide_text_translation_required): Defined here.
5541 2014-07-18  Pascal Obry  <obry@adacore.com>
5543         * adaint.c (__gnat_fputwc): New routine.
5544         * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
5546 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5548         * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
5549         (Set_Stores_Attribute_Old_Prefix): New routine.
5550         (Stores_Attribute_Old_Prefix): New routine.
5551         (Write_Entity_Flags):
5552         Output flag Stores_Attribute_Old_Prefix.
5553         * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
5554         comment on usage.
5555         (Set_Stores_Attribute_Old_Prefix): New routine
5556         along with pragma Inline.
5557         (Stores_Attribute_Old_Prefix): New
5558         routine along with pragma Inline.
5559         * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
5560         constant which captures the result of attribute 'Old's prefix.
5561         * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
5562         relocated expression which acted as a prefix of attribute 'Old.
5564 2014-07-18  Bob Duff  <duff@adacore.com>
5566         * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
5567         null before dispatching to Deallocate_Subpool.
5568         * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
5569         parameter of Default_Subpool_For_Pool to 'in out'.
5570         * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
5571         a message to the raise.
5572         * sem_util.adb: Minor reformatting.
5574 2014-07-18  Robert Dewar  <dewar@adacore.com>
5576         * sem_util.adb (Check_Expression_Against_Static_Predicate):
5577         Mark expression as non-static if it fails static predicate check,
5578         and issue additional warning.
5580 2014-07-18  Pascal Obry  <obry@adacore.com>
5582         * a-witeio.adb (Put): Control translation based on
5583         wide_text_translation_required.
5584         * adaint.c (CurrentCCSEncoding): New variable.
5585         * initialize.c (__gnat_initialize): On Windows initialize
5586         CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
5587         environment variable.
5588         * mingw32.h (CurrentCCSEncoding): New external.
5589         (__gnat_wide_text_translation_required): Likewise.
5590         * sysdep.c (wide_text_translation_required): New variable.
5591         (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
5593 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5595         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
5596         variable Refined_States.  Add global variable Matched_Items.
5597         (Check_Dependency_Clause): Account for dependency
5598         clauses utilizing states with visible null refinements.
5599         (Is_Null_Refined_State): New routine.
5600         (Match_Items): Record each successfully matched item of pragma Depends.
5601         (Record_Item): New routine.
5603 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5605         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
5606         Do_Range_Check flag on a dynamic index expression used in a
5607         component association in the argument of Update.
5609 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
5611         * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
5613 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5615         * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
5616         of enclosing blocks, loops and the enclosing function using a
5617         parent-based traversal.
5618         * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
5619         stack reclamation if the iterator loop contains a return statement
5620         that uses the stack.
5621         * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
5622         patch up the scope stack as the secondary stack management now
5623         takes into account the enclosing function of the iterator loop.
5625 2014-07-18  Robert Dewar  <dewar@adacore.com>
5627         * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
5629 2014-07-18  Robert Dewar  <dewar@adacore.com>
5631         * einfo.adb (Has_Static_Predicate): New function.
5632         (Set_Has_Static_Predicate): New procedure.
5633         * einfo.ads (Has_Static_Predicate): New flag.
5634         * sem_ch13.adb (Is_Predicate_Static): New function
5635         (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
5636         (Add_Call): Minor change in Sloc of generated expression
5637         (Add_Predicates): Remove setting of Static_Pred, no longer used.
5638         * sem_ch4.adb (Has_Static_Predicate): Removed this function,
5639         replace by use of the entity flag Has_Static_Predicate_Aspect.
5640         * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
5641         and issue warning that predicate is not checked for now.
5642         * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
5643         spec.
5644         * sem_util.adb (Check_Expression_Against_Static_Predicate):
5645         Carry out check for any case where there is a static predicate,
5646         and output appropriate message.
5647         * sinfo.ads: Minor comment corrections.
5649 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5651         * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
5652         from an untagged private type whose full view is tagged, the type
5653         is marked tagged for layout reasons, but it has no dispatch table,
5654         so Set_All_DT_Position must not be called.
5655         * exp_ch13.adb: If the freeze node is for a type internal to a
5656         record declaration, as is the case for a class-wide subtype
5657         of a parent component, the relevant scope is the scope of the
5658         enclosing record.
5660 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5662         * g-memdum.adb, g-memdum.ads: Code clean ups.
5664 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5666         * sem_prag.adb (Check_Dependency_Clause):
5667         Update the comment on usage. Reimplement the mechanism which
5668         attempts to match a single clause of Depends against one or
5669         more clauses of Refined_Depends.
5670         (Input_Match): Removed.
5671         (Inputs_Match): Removed.
5672         (Is_Self_Referential): Removed.
5673         (Normalize_Clause): Update the call to Split_Multiple_Outputs.
5674         (Normalize_Outputs): Rename variable Split to New_Claue and update
5675         all its occurrences.
5676         (Report_Extra_Clauses): Update the comment on usage.
5677         (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
5679 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
5681         * i-cstrea.ads: Minor reformatting.
5683 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5685         * exp_util.adb (Wrap_Statements_In_Block): Propagate both
5686         secondary stack-related flags to the generated block.
5687         * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
5688         once the loop is relocated in a block.
5690 2014-07-18  Robert Dewar  <dewar@adacore.com>
5692         * repinfo.ads: Add documentation on handling of back annotation
5693         for dynamic case.
5695 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5697         * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
5698         of full type declaration, denotes previous declaration for
5699         incomplete view of the type.
5700         * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
5701         of declaration if one is present.
5702         (Replace_Type): When constructing the signature of an inherited
5703         operation, handle properly the case where the operation has a
5704         formal whose type is an incomplete view.
5705         * sem_util.adb (Collect_Primitive_Operations): Handle properly
5706         the case of an operation declared after an incomplete declaration
5707         for a type T and before the full declaration of T.
5709 2014-07-18  Pascal Obry  <obry@adacore.com>
5711         * i-cstrea.ads: Add documentation for set_wide_text_mode.
5713 2014-07-18  Robert Dewar  <dewar@adacore.com>
5715         * a-witeio.adb: Minor code reorganization.
5716         * i-cstrea.ads: Add comment.
5718 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5720         * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
5721         clarifications.
5723 2014-07-18  Robert Dewar  <dewar@adacore.com>
5725         * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
5727 2014-07-18  Pascal Obry  <obry@adacore.com>
5729         * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
5730         * a-witeio.adb (Put): On platforms where there is translation
5731         done by the OS output the raw text.
5732         (New_Line): Use Put above to properly handle the LM wide characters.
5734 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5736         * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
5737         to Absolute_Address.
5739 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
5741         * opt.ads (Suppress_Back_Annotation): Remove as unused.
5742         * fe.h (Back_Annotate_Rep_Info): Likewise.
5743         (Global_Discard_Names): Likewise.
5745 2014-07-18  Robert Dewar  <dewar@adacore.com>
5747         * sem_ch13.adb (Is_Type_Ref): Check that type name is not
5748         parenthesized.
5750 2014-07-18  Vincent Celier  <celier@adacore.com>
5752         * s-osinte-vms.ads: Fix style errors.
5754 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5756         * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
5757         NAME_MAX and PATH_MAX.
5759 2014-07-18  Bob Duff  <duff@adacore.com>
5761         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
5762         Build_Record_Or_Elementary_Output_Procedure): For Input and
5763         Output attributes, do not read/write the discriminants if they
5764         have default values; that will be done by Read/Write.
5766 2014-07-18  Robert Dewar  <dewar@adacore.com>
5768         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
5769         exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
5770         checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
5771         exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
5772         sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
5774 2014-07-18  Robert Dewar  <dewar@adacore.com>
5776         * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
5778 2014-07-18  Vincent Celier  <celier@adacore.com>
5780         * lib-writ.ads: Update documentation about the D lines.
5782 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5784         * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
5785         as a parameter, rather than its Chars field, in order to locate
5786         freeze node of type. If the predicate or invariant has references
5787         to types other than the one to which the contract applies, these
5788         types must be frozen, and the corresponding predicate functions
5789         created, before that freeze node.
5791 2014-07-18  Robert Dewar  <dewar@adacore.com>
5793         * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
5794         * par_sco.adb: Minor reformatting.
5796 2014-07-18  Gary Dismukes  <dismukes@adacore.com>
5798         * exp_ch4.adb (Real_Range_Check): Turn off
5799         the Do_Range_Check flag on the conversion's current Expression
5800         argument rather than on the originally captured Operand node,
5801         as Expression may reflect a rewriting (as in conversions to a
5802         fixed-point type).
5804 2014-07-18  Vincent Celier  <celier@adacore.com>
5806         * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
5807         is not a subunit.
5808         * ali.ads (Sdep_Record): New component Unit_Name.
5809         * lib-writ.adb (Write_ALI): Write the unit name in D lines.
5810         * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
5811         dependent unit is in a project and the source file name is not
5812         one of its sources.
5814 2014-07-18  Bob Duff  <duff@adacore.com>
5816         * s-addima.ads: Minor: add comment.
5818 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5820         * freeze.adb (Check_Component_Storage_Order): Fix enforcement
5821         of nesting rules for composites with different SSOs.
5823 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5825         * par_sco.adb (Is_Logical_Operator): An If_Expression is not
5826         a proper logical operator.
5827         (Has_Decision): An If_Expression indicates the presence of a decision
5828         although it is not a logical operator.
5830 2014-07-18  Robert Dewar  <dewar@adacore.com>
5832         * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
5833         * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
5835 2014-07-18  Eric Botcazou  <ebotcazou@adacore.com>
5837         * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
5838         on the null statement.
5840 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5842         * adaint.c: Minor comment rewording.
5843         * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
5844         use of errno in this file is thread safe.
5846 2014-07-18  Arnaud Charlet  <charlet@adacore.com>
5848         * gnat_ugn.texi: Doc clarification.
5849         * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
5850         * sem_ch13.ads: Minor comment update.
5852 2014-07-18  Robert Dewar  <dewar@adacore.com>
5854         * repinfo.ads: Minor comment fix.
5856 2014-07-18  Robert Dewar  <dewar@adacore.com>
5858         * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
5859         * sem_prag.adb: Add dummy implementation of
5860         Default_Scalar_Storage_Order.
5861         * snames.ads-tmpl: Add dummy entry for
5862         Default_Scalar_Storage_Order pragma.
5864 2014-07-18  Robert Dewar  <dewar@adacore.com>
5866         * opt.adb (Tree_Read): Read Address_Is_Private,
5867         Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
5868         (Tree_Write): Corresponding writes
5869         * opt.ads: Minor comment reformatting and fixes.
5870         * tree_io.ads: Increment ASIS_Version_Number.
5872 2014-07-18  Robert Dewar  <dewar@adacore.com>
5874         * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
5875         * types.h: Fix typo.
5877 2014-07-18  Robert Dewar  <dewar@adacore.com>
5879         * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
5880         functional change).
5881         * gnat_ugn.texi: Document that -gnatI removes rep clauses from
5882         ASIS trees.
5883         * sem_ch13.adb (Kill_Rep_Clause): New procedure
5884         (Analyze_Attribute_Definition_Clause): Use
5885         Kill_Rep_Clause. This is just a cleanup, no functional effect.
5886         (Analyze_Enumeration_Representation_Clause):
5887         Use Kill_Rep_Clause. This means that enum rep
5888         clauses are now properly removed from -gnatct trees.
5889         (Analyze_Record_Representation_Clause): Same change.
5890         * sem_ch13.ads (Kill_Rep_Clause): New procedure.
5892 2014-07-18  Pascal Obry  <obry@adacore.com>
5894         * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
5895         OS_Time from time parts.
5896         * adaint.h, adaint.c (__gnat_to_os_time): New routine.
5898 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5900         * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
5901         indexing over containers that are derived types: check whether
5902         signature of found operation has the correct first parameter
5903         before retrieving directly a primitive operation.
5905 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5907         * sem_attr.adb (Analyze_Attribute, case 'Update): Set
5908         Do_Range_Check flag on dynamic bounds of a range used in a
5909         component association in the argument of Update.
5911 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5913         * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
5914         accesses to errno(3) to be thread safe.
5916 2014-07-18  Vincent Celier  <celier@adacore.com>
5918         * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
5919         limited imported project that is an extending project, return
5920         a project being extended if it has the expected name.
5922 2014-07-18  Pascal Obry  <obry@adacore.com>
5924         * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
5925         routine to set the last modification time stamp for the given file.
5926         * gnatchop.adb (File_Time_Stamp): Removed.
5927         (Write_Unit): Use
5928         Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
5930 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5932         * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
5933         * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
5934         Moved here, so it can be shared with the resolution of 'Update,
5935         whose argument shares some features with aggregates.
5936         * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
5937         Aggregate_Constraint_Checks with the expression of each
5938         association, so that the Do_Range_Check flag is set when needed.
5940 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5942         * sem_ch4.adb (Try_Container_Indexing):  If the container
5943         type is a derived type, the value of the inherited  aspect is
5944         the Reference operation declared for the parent type. However,
5945         Reference is also a primitive operation of the new type, and
5946         the inherited operation has a different signature. We retrieve
5947         the right one from the list of primitive operations of the
5948         derived type.
5950 2014-07-18  Vincent Celier  <celier@adacore.com>
5952         * debug.adb: Update comment.
5954 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
5956         * exp_util.adb (Needs_Finalization): There is no reason why a
5957         C type should not benefit from finalization actions.
5959 2014-07-18  Thomas Quinot  <quinot@adacore.com>
5961         * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
5962         (FILENAME_MAX): Remove unneeded definition.
5964 2014-07-18  Robert Dewar  <dewar@adacore.com>
5966         * exp_attr.adb, debug.adb: Update comments.
5968 2014-07-18  Vincent Celier  <celier@adacore.com>
5970         * par-ch4.adb (Simple_Expression): Add missing style check
5971         for binary adding operators.
5972         (Term): Add missing style check for multiplying operators.
5974 2014-07-18  Robert Dewar  <dewar@adacore.com>
5976         * impunit.adb: Minor comment correction.
5977         * widechar.adb, s-wchcon.ads: Minor comment corrections.
5979 2014-07-18  Robert Dewar  <dewar@adacore.com>
5981         * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
5982         for Build_Static_Predicate (Build_Predicate_Functions):
5983         Don't try to build discrete predicate for real type.
5984         (Build_Predicate_Functions): Report attempt to use
5985         Static_Predicate function on real type as unimplemented.
5986         * sem_util.adb (Check_Expression_Against_Static_Predicate):
5987         Add guard to prevent blow up on predicate for real type.
5989 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
5991         * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
5992         properly static predicate on enumeration types and modular types
5993         (not subtypes).
5995 2014-07-18  Pierre-Marie Derodat  <derodat@adacore.com>
5997         * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
5998         the corresponding source file index.
5999         * get_scos.ads (Get_SCOs): Add a default value for it.
6000         * par_sco.adb (SCO_Record): Fill the corresponding value.
6001         * scos.h: New.
6003 2014-07-18  Vincent Celier  <celier@adacore.com>
6005         * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
6006         urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
6007         reformatting.
6008         * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
6010 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6012         * g-sercom.ads (Set): document possible data loss.
6014 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6016         * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
6017         Output, Read, Write): If the restriction No_Streams is active,
6018         replace each occurrence of a stream attribute by an explicit
6019         Raise statement.
6021 2014-07-18  Robert Dewar  <dewar@adacore.com>
6023         * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
6024         reformatting.
6026 2014-07-18  Robert Dewar  <dewar@adacore.com>
6028         * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
6029         function.
6030         (Set_Has_Out_Or_In_Out_Parameter): New procedure.
6031         * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
6032         * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
6033         with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
6035 2014-07-18  Robert Dewar  <dewar@adacore.com>
6037         * bcheck.adb (Check_Consistent_Restrictions):
6038         Remove obsolete code checking for violation of
6039         No_Standard_Allocators_After_Elaboration (main program)
6040         * bindgen.adb (Gen_Adainit): Handle
6041         No_Standard_Allocators_After_Elaboration
6042         (Gen_Output_File_Ada): ditto.
6043         * exp_ch4.adb (Expand_N_Allocator): Handle
6044         No_Standard_Allocators_After_Elaboration.
6045         * Makefile.rtl: Add entry for s-elaall
6046         * rtsfind.ads: Add entry for Check_Standard_Allocator.
6047         * s-elaall.ads, s-elaall.adb: New files.
6048         * sem_ch4.adb (Analyze_Allocator): Handle
6049         No_Standard_Allocators_After_Elaboration.
6051 2014-07-18  Robert Dewar  <dewar@adacore.com>
6053         * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
6054         ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
6055         Remove AB parameter from ali files and all uses.
6056         Remove Allocator_In_Body and all uses.
6058 2014-07-18  Robert Dewar  <dewar@adacore.com>
6060         * g-expect-vms.adb: Add comment.
6062 2014-07-18  Thomas Quinot  <quinot@adacore.com>
6064         * par_sco.adb (Is_Logical_Operation): return True for
6065         N_If_Expression.
6067 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6069         * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
6070         analysis and resolution of each choice in the associations within
6071         the argument of Update, because they may be variable names.
6073 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6075         * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
6076         actions before the generated if statement.
6078 2014-07-18  Hristian Kirtchev  <kirtchev@adacore.com>
6080         * gnat_ugn.texi Enhance the documentation of
6081         switches -gnateA and -gnateV.
6083 2014-07-18  Ed Schonberg  <schonberg@adacore.com>
6085         * sem_util.adb (Build_Default_Subtype): Add missing condition
6086         so that code matches description: use the full view of the base
6087         only if the base is private and the subtype is not.
6089 2014-07-17  Gary Dismukes  <dismukes@adacore.com>
6091         * exp_disp.adb: Minor reformatting.
6092         * exp_disp.adb: Minor code reorganization.
6094 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6096         * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
6097         require an explicit SSO attribute definition clause on a composite type
6098         just because one of its components has one.
6100 2014-07-17  Robert Dewar  <dewar@adacore.com>
6102         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
6103         attribute out of existence if the enclosing pragma is ignored.
6104         * sem_util.adb: Minor reformatting.
6106 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6108         * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
6109         array aggregate expanded into assignments when it appears as a
6110         local declaration in an inlined body.
6112 2014-07-17  Doug Rupp  <rupp@adacore.com>
6114         * init.c [__ANDROID__]: Modify for ZCX.
6115         * exp_aggr.adb: Minor reformatting
6116         * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
6118 2014-07-17  Robert Dewar  <dewar@adacore.com>
6120         * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
6121         exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
6122         scng.adb: Remove incorrect usage "allow to" and "allows to".
6124 2014-07-17  Robert Dewar  <dewar@adacore.com>
6126         * exp_dist.adb: Minor reformatting.
6128 2014-07-17  Bob Duff  <duff@adacore.com>
6130         * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
6132 2014-07-17  Robert Dewar  <dewar@adacore.com>
6134         * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
6135         (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
6137 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6139         * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
6140         non-bit-packed array, propagate Reverse_Storage_Order to the
6141         packed array type.
6143 2014-07-17  Javier Miranda  <miranda@adacore.com>
6145         * exp_disp.adb: Fix comment.
6146         * exp_pakd.adb: Minor reformatting.
6148 2014-07-17  Robert Dewar  <dewar@adacore.com>
6150         * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
6151         entity if none exists (Gen_Elab_Calls): Complain if clash with
6152         No_Multiple_Elaboration.
6153         * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
6154         * sem_util.adb (Build_Elaboration_Entity): Skip building entity
6155         if not needed.
6156         * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
6157         * sem_ch4.adb: Minor comment updates.
6159 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6161         * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
6162         of function call for later use when shared passive objects
6163         are involved.
6165 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6167         * par-ch13.adb (Get_Aspect_Specifications):
6168         Catch a case where the argument of SPARK aspect Refined_State
6169         is not properly parenthesized.
6171 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6173         * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
6174         the lifetime of a reference to an Ada 2012 container element.
6175         (Is_Element_Reference): New routine.
6177 2014-07-17  Robert Dewar  <dewar@adacore.com>
6179         * ali.ads: Minor comment fix.
6180         * lib-writ.adb: Minor reformatting.
6182 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6184         * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
6185         in ASIS mode, load another subunit only if it a subunit of the
6186         current one, not a sibling that has been reached through the
6187         analysis of an ancestor. This allows the construction of the
6188         ASIS tree for the subunit even when sibling subunits have errors.
6190 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6192         * sem_ch3.adb (Analyze_Declarations): Remove the guard which
6193         prevents the analysis of various contracts when the associated
6194         construct is erroneous.
6195         * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
6196         SPARK_Pragma of an illegal or a partially decorated construct.
6198 2014-07-17  Robert Dewar  <dewar@adacore.com>
6200         * s-imguns.ads: Minor reformatting.
6202 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6204         * exp_ch7.adb (Build_Finalization_Master): Move all local
6205         variables to the proper code section. When looking for an existing
6206         finalization master, inspect the ultimate ancestor type of the
6207         full view.
6208         * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
6210 2014-07-17  Robert Dewar  <dewar@adacore.com>
6212         * aspects.ads, aspects.adb: Add entries for aspect Annotate.
6213         * gnat_rm.texi: Document Entity argument for pragma Annotate and
6214         Annotate aspect.
6215         * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
6216         for Annotate aspect.
6217         * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
6218         Entity argument at end.
6219         * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
6221 2014-07-17  Tristan Gingold  <gingold@adacore.com>
6223         * s-imguns.ads: Fix minor typo.
6225 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6227         * sprint.adb: Minor reformatting.
6229 2014-07-17  Robert Dewar  <dewar@adacore.com>
6231         * sprint.adb (Write_Itype): Print proper header for string
6232         literal subtype.
6234 2014-07-17  Steve Baird  <baird@adacore.com>
6236         * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
6238 2014-07-17  Vincent Celier  <celier@adacore.com>
6240         * gnatbind.adb: Change in message "try ... for more information".
6242 2014-07-17  Robert Dewar  <dewar@adacore.com>
6244         * sprint.adb: Code clean up.
6246 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6248         * exp_ch7.adb (Find_Last_Init): Relocate local variables to
6249         the relevant code section. Add new local constant Obj_Id. When
6250         a limited controlled object is initialized by a function call,
6251         the build-in-place object access function call acts as the last
6252         initialization statement.
6253         * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
6254         (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
6255         * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
6257 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6259         * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
6260         propagate intrinsic flag to renamed entity, to allow e.g. renaming
6261         of Unchecked_Conversion.
6262         * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
6263         if the declaration has errors.
6265 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6267         * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
6268         container is busy before checking whether capacity allows for
6269         a further insertion. Insertion in a busy container that is full
6270         raises Program_Error rather than Capacity_Error. Previous to that
6271         patch which exception was raised varied among container types.
6273 2014-07-17  Robert Dewar  <dewar@adacore.com>
6275         * g-comlin.ads, g-comlin.adb: Minor clean up.
6277 2014-07-17  Bob Duff  <duff@adacore.com>
6279         * gnat_ugn.texi: Update gnatpp doc.
6281 2014-07-17  Robert Dewar  <dewar@adacore.com>
6283         * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
6284         * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
6285         could do this by actually expanding a real generic.
6286         * a-tags.ads: Add comments about performance.
6287         * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
6288         Print Etype of defining identifier, rather than the object
6289         definition. More information.
6291 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6293         * exp_dist.adb: Minor documentation clarification.
6295 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6297         * exp_util.adb (Is_Aliased): Revert previous change.
6299 2014-07-17  Vincent Celier  <celier@adacore.com>
6301         * g-comlin.adb (Try_Help): New procedure.
6302         (Getopt): Use new procedure Try_Help.
6303         * g-comlin.ads (Try_Help): New procedure.
6305 2014-07-17  Bob Duff  <duff@adacore.com>
6307         * gnat_ugn.texi: Minor update.
6309 2014-07-17  Robert Dewar  <dewar@adacore.com>
6311         * gnat_rm.texi: Improve documentation of Unrestricted_Access.
6312         * sinfo.ads: Document restriction on aggregates (must expand to
6313         assignments if one or more assignments needs expansion, e.g. for
6314         controlled types).
6315         * sem_ch13.adb: All warning messages regarding bit order should
6316         be info: messages.
6317         * gnat_ugn.texi: Minor correction of missing @ on @code
6319 2014-07-17  Robert Dewar  <dewar@adacore.com>
6321         * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
6322         * s-rident.ads (Partition_Boolean_Restrictions): Add
6323         No_Long_Long_Integer.
6324         * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
6325         Long_Integer'Size if restriction No_Long_Long_Integer is active.
6326         (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
6327         as the implicit base type for a signed integer type declaration
6328         if restriction No_Long_Long_Integer is active.
6329         * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
6330         No_Long_Long_Integer.
6332 2014-07-17  Robert Dewar  <dewar@adacore.com>
6334         * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
6335         einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
6336         repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
6337         sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
6338         treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
6340 2014-07-17  Robert Dewar  <dewar@adacore.com>
6342         * debug.adb: Remove -gnatdQ.
6343         * exp_disp.adb: Remove -gnatdQ.
6344         * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
6345         a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
6346         rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
6347         a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
6348         sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
6349         a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
6351 2014-07-17  Robert Dewar  <dewar@adacore.com>
6353         * back_end.adb: Minor reformatting and comment additions.
6354         * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
6355         function.
6356         * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
6357         (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
6358         * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
6359         * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
6360         * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
6361         * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
6363 2014-07-17  Robert Dewar  <dewar@adacore.com>
6365         * gnat_rm.texi: Minor comment updates.
6367 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6369         * sem_util.adb (Make_Explicit_Dereference): If the expression
6370         being dereferenced is a generalized indexing, reset the overloaded
6371         flag on the generalized indexing call, consistent with the
6372         resetting of the flag on the original indexed component.
6374 2014-07-17  Robert Dewar  <dewar@adacore.com>
6376         * gnat_ugn.texi: Document advise not to mix -gnatV? and
6377         optimization.
6379 2014-07-17  Robert Dewar  <dewar@adacore.com>
6381         * checks.adb (Insert_Valid_Check): Don't insist on a name
6382         for the prefix when we make calls to Force_Evaluation and
6383         Duplicate_Subexpr_No_Checks.
6384         * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
6385         (Remove_Side_Effects): Handle all volatile references right
6386         (Side_Effect_Free): Volatile reference is never side effect free
6387         * sinfo.ads (N_Attribute_Reference): Add comments explaining
6388         that in the tree, the prefix can be a general expression.
6390 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6392         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
6393         Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
6394         * sem_ch7.adb (Analyze_Package_Body_Contract,
6395         Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
6397 2014-07-17  Robert Dewar  <dewar@adacore.com>
6399         * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
6400         Store_After_Actions_In_Scope.
6402 2014-07-17  Robert Dewar  <dewar@adacore.com>
6404         * sem_aux.ads: Minor comment addition.
6406 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6408         * sem_res.adb (Make_Call_Into_Operator): If the call is already
6409         a rewriting of an operator node, there are no actuals to be
6410         propagated from original node to rewritten node when in ASIS mode.
6412 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6414         * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
6415         Analyze_Subprogram_Contract): Add new local variable Mode. Save
6416         and restore the SPARK mode of the related construct in a
6417         stack-like fashion.
6418         * sem_ch7.adb (Analyze_Package_Body_Contract,
6419         Analyze_Package_Contract): Add new local variable Mode. Save and
6420         restore the SPARK mode of the related construct in a stack-like fashion.
6421         * sem_util.adb Remove with and use clause for Opt.
6422         (Restore_SPARK_Mode): New routine.
6423         (Save_SPARK_Mode_And_Set): New routine.
6424         * sem_util.ads Add with and use clause for Opt.
6425         (Restore_SPARK_Mode): New routine.
6426         (Save_SPARK_Mode_And_Set): New routine.
6428 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6430         * exp_util.adb (Is_Aliased): Transient objects
6431         within an expression with actions cannot be considered aliased.
6433 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6435         * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
6436         introduce a new list (cleanup actions) for each (transient) scope.
6437         * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
6438         N_Block_Statement
6439         * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
6440         * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
6441         processing for Store_xxx_Actions_In_Scope.
6442         (Build_Cleanup_Statements): Allow for a list of additional
6443         cleanup statements to be passed by the caller.
6444         (Expand_Cleanup_Actions): Take custom cleanup actions associated
6445         with an N_Block_Statement into account.
6446         (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
6447         reorganization (refactoring only, no behaviour change).
6448         (Make_Transient_Block): Add assertion to ensure that the current
6449         scope is indeed a block (namely, the entity for the transient
6450         block being constructed syntactically, which has already been
6451         established as a scope).  If cleanup actions are present in the
6452         transient scope, transfer them now to the transient block.
6453         * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
6454         called function while it is still present as the name in a call
6455         in the tree. This may not be the case later on if the call is
6456         rewritten into a transient block.
6457         * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
6458         inserted after calling a protected operation on a shared passive
6459         protected must be performed in a block finalizer, not just
6460         inserted in the tree, so that they are executed even in case of
6461         a normal (RETURN) or abnormal (exception) transfer of control
6462         outside of the current scope.
6463         * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
6464         * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
6465         Scope_Stack_Entry reorganization.
6467 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6469         * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
6470         call for types that do not have an explicit attribute definition
6471         clause for External_Tag, as their default tag may clash with an
6472         explicit tag defined for some other type.
6474 2014-07-17  Hristian Kirtchev  <kirtchev@adacore.com>
6476         * exp_util.adb (Is_Controlled_Function_Call): Recognize a
6477         controlled function call with multiple actual parameters that
6478         appears in Object.Operation form.
6480 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6482         * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
6483         entity flag.
6484         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
6485         External_Tag): No need to set entity flag.
6486         * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
6487         Reimplement correctly in terms of Has_Rep_Item.
6489 2014-07-17  Thomas Quinot  <quinot@adacore.com>
6491         * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
6492         Start examining the tree at the node passed to
6493         Establish_Transient_Scope (not its parent).
6494         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6495         The access type for the variable storing the reference to
6496         the call must be declared and frozen prior to establishing a
6497         transient scope.
6498         * exp_ch9.adb: Minor reformatting.
6500 2014-07-17  Pascal Obry  <obry@adacore.com>
6502         * s-os_lib.ads: Minor comment update.
6504 2014-07-17  Tristan Gingold  <gingold@adacore.com>
6506         * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings.  Fix some
6507         indentation.
6508         * socket.c: Remove #warning to avoid warning.
6509         * expect.c: Indent some preprocessor directives to clarify
6510         nested if.  Do not use wait.h on PikeOS.  Add ATTRIBUTE_UNUSED
6511         to remove warnings.
6512         * env.c: Fix indentation.  Port to PikeOS.
6513         * gsocket.h: Port to PikeOS.  Remove #warning.
6514         * terminals.c: Port to PikeOS.  Fix indentation of the stubs.
6515         Add ATTRIBUTE_UNUSED to stubs arguments.  Fix return statement
6516         of stubbed __gnat_setup_parent_communication.
6517         * adaint.c: Port to PikeOS.  Reindent some preprocessor
6518         directives to clarify nested if.  Fix indentation.  Add missing
6519         ATTRIBUTE_UNUSED.
6521 2014-07-17  Robert Dewar  <dewar@adacore.com>
6523         * sem_attr.adb: Minor reformatting.
6525 2014-07-17  Robert Dewar  <dewar@adacore.com>
6527         * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
6529 2014-07-17  Ed Schonberg  <schonberg@adacore.com>
6531         * sem_case.adb (Check_Choice_Set): If the case expression is the
6532         expression in a predicate, do not recheck coverage against itself,
6533         to prevent spurious errors.
6534         * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
6535         expression comes from an aspect specification, to prevent spurious
6536         errors when expression is a case expression in a predicate.
6538 2014-07-17  Pascal Obry  <obry@adacore.com>
6540         * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
6541         * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
6543 2014-07-17  Vincent Celier  <celier@adacore.com>
6545         * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
6546         gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
6547         the usage for an erroneous invocation of a gnat tool.
6549 2014-07-16  Vincent Celier  <celier@adacore.com>
6551         * gnatls.adb: Get the target parameters only if -nostdinc was
6552         not specified.
6554 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6556         * checks.adb (Insert_Valid_Check): If the expression is a packed
6557         component of a modular type of the right size the data is always
6558         valid. This os particularly useful if the component is part of
6559         a volatile variable.
6561 2014-07-16  Robert Dewar  <dewar@adacore.com>
6563         * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
6565 2014-07-16  Thomas Quinot  <quinot@adacore.com>
6567         * exp_ch7.ads: Minor documentation fix.
6569 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6571         * sem_ch3.adb (Find_Type_Name): Diagnose properly
6572         a private extension completion that is an interface definition
6573         with an interface list.
6575 2014-07-16  Arnaud Charlet  <charlet@adacore.com>
6577         * gnatls.adb (Gnatls): Code clean ups.
6579 2014-07-16  Thomas Quinot  <quinot@adacore.com>
6581         * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
6582         * sem.adb (Analyze): Handle N_Compound_Statement.
6583         * sprint.adb (Sprint_Node_Actual): Ditto.
6584         * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
6585         procedure to handle N_Compound_Statement.
6586         * exp_aggr.adb (Collect_Initialization_Statements):
6587         Use a proper compound statement node, instead of a bogus
6588         expression-with-actions with a NULL statement as its expression,
6589         to wrap collected initialization statements.
6590         * freeze.ads, freeze.adb
6591         (Explode_Initialization_Compound_Statement): New public procedure,
6592         lifted from Freeze_Entity.
6593         (Freeze_Entity): When freezing
6594         an object with captured initialization statements and without
6595         delayed freezing, explode compount statement.
6596         * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
6597         case that used to handle bogus EWAs with NULL statement as
6598         the expression.
6599         * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
6600         delayed freezing and captured initialization statements, explode
6601         compound statement.
6603 2014-07-16  Gary Dismukes  <dismukes@adacore.com>
6605         * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
6607 2014-07-16  Doug Rupp  <rupp@adacore.com>
6609         * s-interr-hwint.adb: Casing error on parameter.
6611 2014-07-16  Pascal Obry  <obry@adacore.com>
6613         * Makefile.rtl: Add g-rewdat.o dependencies in
6614         GNATRTL_NONTASKING_OBJS.
6616 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6618         * sem_case.adb: Code clean up.
6620 2014-07-16  Vincent Celier  <celier@adacore.com>
6622         * make.adb: Do not read gnat.adc when gnatmake is invoked
6623         with -gnatA.
6625 2014-07-16  Pascal Obry  <obry@adacore.com>
6627         * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
6628         implementation of GNAT.Rewrite_Data.
6630 2014-07-16  Vincent Celier  <celier@adacore.com>
6632         * gnatls.adb (Normalize): New function.
6633         (Gnatls): Get the target parameters. On targets other than VMS,
6634         normalize the path names in the source search path, the object search
6635         path and the project search path.
6637 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6639         * sem_case.adb: Avoid self-checking of case expressions in
6640         dynamic predicates.
6642 2014-07-16  Robert Dewar  <dewar@adacore.com>
6644         * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
6645         discriminants.
6647 2014-07-16  Eric Botcazou  <ebotcazou@adacore.com>
6649         * switch-b.adb (Scan_Binder_Switches): Add missing guard.
6651 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
6653         * gnat_ugn.texi: Fix typo.
6655 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6657         * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
6658         expression if it is the specification of a subtype predicate:
6659         it will be expanded when the return statement is analyzed, or
6660         when a static predicate is transformed into a static expression
6661         for evaluation by the front-end.
6662         * sem_ch13.adb (Get_RList): If the expression for a static
6663         predicate is a case expression, extract the alternatives of the
6664         branches with a True value to create the required statically
6665         evaluable expression.
6667 2014-07-16  Thomas Quinot  <quinot@adacore.com>
6669         * exp_prag.adb (Expand_Pragma_Check): Use the location of the
6670         expression, not the location of the aspect, for all generated
6671         code, so that in particular the call to raise_assert_failure
6672         gets the sloc of the associated condition.
6673         * exp_ch6.adb
6674         (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
6675         Set an explicit End_Label on the handled sequence of statements
6676         for the _Postconditions procedure so that the implicit return
6677         statement does not erroneously get associated with code generated
6678         for the last condition in postconditions.
6680 2014-07-16  Thomas Quinot  <quinot@adacore.com>
6682         * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
6683         not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
6684         * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
6685         -gnatw.Z.
6687 2014-07-16  Robert Dewar  <dewar@adacore.com>
6689         * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
6690         Minor code reorganization (use Is_Access_Type, not in Access_Kind).
6691         * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
6692         not in Access_Kind.
6693         * par-ch4.adb (At_Start_Of_Attribute): New function
6694         (P_Simple_Expression): Better msg for bad attribute prefix.
6695         * scans.ads: Minor reformatting.
6697 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6699         * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
6700         static constant, check that in belongs to the corresponding index
6701         subtype, to produce the proer warning when expansion is disabled.
6703 2014-07-16  Robert Dewar  <dewar@adacore.com>
6705         * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
6706         * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
6707         * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
6708         * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
6709         * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
6710         -gnatw.z/-gnatw.Z
6711         * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
6712         * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
6713         reformatting.
6715 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
6717         * exp_ch7.adb (Process_Declarations): Reinstate the check on
6718         a hook object to ensure that the related transient declaration
6719         is finalizable.
6720         * exp_util.adb (Is_Aliased): Do not consider expresison with
6721         actions as a special context.
6722         (Requires_Cleanup_Actions): Reinstate the check on a hook object to
6723         ensure that the related transient declaration is finalizable.
6725 2014-07-16  Robert Dewar  <dewar@adacore.com>
6727         * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
6728         * snames.ads-tmpl: Add Allocation_Check to list of check names.
6729         * types.ads: Add Allocation_Check to list of check names.
6731 2014-07-16  Thomas Quinot  <quinot@adacore.com>
6733         * sem_util.adb (Enter_Name): replace bogus test for presence of
6734         Corresponding_Remote_Type with correct test on Ekind.
6735         * sem_res.adb (Valid_Conversion): ditto; also clarify validity
6736         of calls to Corresponding_ Remote_Type (documentation fix).
6738 2014-07-16  Robert Dewar  <dewar@adacore.com>
6740         * gnat_rm.texi: Document illegal case of Unrestricted_Access.
6741         * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
6742         where it applies.
6743         (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
6744         * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
6746 2014-07-16  Robert Dewar  <dewar@adacore.com>
6748         * gnat_ugn.texi: Document binder switch -Ra.
6749         * gnatbind.adb (List_Closure_Display): Implement -Ra switch
6750         (List_Closure_All).
6751         * opt.ads (List_Closure_All): New switch.
6752         * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
6753         List_Closure_All.
6755 2014-07-16  Ben Brosgol  <brosgol@adacore.com>
6757         * gnat_rm.texi: Minor edits, to make case consistent in names
6758         of types and fields.
6760 2014-07-16  Robert Dewar  <dewar@adacore.com>
6762         * gnat_rm.texi: Document erroneous mixing of thin pointers and
6763         unrestricted access
6764         * gnat_ugn.texi: Add note on size of access types about thin
6765         pointers and the use of attribute Unrestricted_Access.
6767 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6769         * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
6770         * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
6771         * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
6772         machinery to detect tampering on bounded vectors.
6774 2014-07-16  Robert Dewar  <dewar@adacore.com>
6776         * gnat_rm.texi: Document that leading/trailing asterisks are
6777         now implied for the pattern match string for pragma Warnings
6778         and Warning_As_Error.
6779         * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
6780         (Analyze_Pragma, case Warning_As_Error): Call
6781         Acquire_Warning_Match_String.
6782         (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
6784 2014-07-16  Bob Duff  <duff@adacore.com>
6786         * gnat_ugn.texi: Document need for project file
6787         for --incremental switch for gnat2xml.
6789 2014-07-16  Robert Dewar  <dewar@adacore.com>
6791         * gnat_rm.texi: Fix example of non-packable components in packed
6792         records section.
6794 2014-07-16  Robert Dewar  <dewar@adacore.com>
6796         * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
6797         s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
6798         upper case in exception messages.
6800 2014-07-16  Robert Dewar  <dewar@adacore.com>
6802         * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
6803         is renamed Has_Same_Storage.
6804         * gnat_rm.texi: Document missing SPARK pragmas and attributes.
6805         * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
6806         descriptions).
6808 2014-07-16  Robert Dewar  <dewar@adacore.com>
6810         * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
6811         a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
6813 2014-07-16  Robert Dewar  <dewar@adacore.com>
6815         * gnat_ugn.texi: Add note that integrated
6816         preprocessing cannot be applied to configuration pragma files.
6818 2014-07-16  Yannick Moy  <moy@adacore.com>
6820         * sem_attr.adb (Analyze_Attribute/cases Pred
6821         and Succ): Always enable range check on fixed-point types if
6822         not suppressed for the type.
6824 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
6826         * sem_util.adb (State_Has_Enabled_Property):
6827         Account for an external property denoted by an others choice.
6829 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
6831         * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
6832         * exp_ch7.adb (Process_Declarations): There is no need to check
6833         that a transient object being hooked is controlled as it would
6834         not have been hooked in the first place.
6835         * exp_ch9.adb Remove with and use clause for Exp_Ch4.
6836         * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
6837         (Is_Aliased): A renaming of a transient controlled object is
6838         not considered aliasing when it occurs within an expression
6839         with actions.
6840         (Requires_Cleanup_Actions): There is no need to
6841         check that a transient object being hooked is controlled as it
6842         would not have been hooked in the first place.
6843         * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
6845 2014-07-16  Hristian Kirtchev  <kirtchev@adacore.com>
6847         * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
6848         the outer level of routine Analyze_Aspect_Specifications. Ensure
6849         that the corresponding pragmas of aspects Initial_Condition and
6850         Initializes are inserted after pragma SPARK_Mode.
6852 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6854         * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
6855         properly a choice list with more than one choice, where each
6856         is an aggregate denoting a sequence of array indices for a
6857         multidimentional array. For SPARK use.
6859 2014-07-16  Vadim Godunko  <godunko@adacore.com>
6861         * a-coinho-shared.adb (Adjust): Create
6862         copy of internal shared object and element when source container
6863         is locked.
6864         (Copy): Likewise.
6865         (Query_Element): Likewise.
6866         (Update_Element): Likewise.
6867         (Constant_Reference): Likewise. Raise Constraint_Error on attempt
6868         to get reference for empty holder.
6869         (Reference): Likewise.
6871 2014-07-16  Thomas Quinot  <quinot@adacore.com>
6873         * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
6874         from Process_Transient_Oject.
6875         * exp_ch4.ads: Ditto.
6876         * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
6877         declaration as an action on the topmost enclosing expression,
6878         not on a possibly conditional subexpreession.
6880 2014-07-16  Vadim Godunko  <godunko@adacore.com>
6882         * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
6883         Fix parameter mode of Update_Element.
6885 2014-07-16  Robert Dewar  <dewar@adacore.com>
6887         * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
6888         reformatting.
6890 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6892         * a-cohase.ads: Type Iterator must be controlled, so that the
6893         tampering bit is properly set through an iteration.
6894         * a-cohase.adb: Add Finalize operation for type Iterator.
6896 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6898         * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
6899         tampering checks.
6901 2014-07-16  Ed Schonberg  <schonberg@adacore.com>
6903         * a-coinho-shared.adb: Fix spurious accessibility check.
6905 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
6907         * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
6909 2014-06-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6911         PR ada/61505
6912         * gnat_rm.texi: Fix errors with makeinfo 5.1.
6914 2014-06-14  Arnaud Charlet  <charlet@adacore.com>
6916         PR ada/61505
6917         * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
6919 2014-06-13  Yannick Moy  <moy@adacore.com>
6921         * exp_attr.adb: Fix typo in comment.
6922         * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
6923         checking in GNATprove_Mode.
6925 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6927         * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
6929 2014-06-13  Robert Dewar  <dewar@adacore.com>
6931         * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
6932         reformatting.
6934 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
6936         * sem_prag.adb (Analyze_Pragma): Add local
6937         variable Missing_Parentheses. Emit an error when a state
6938         declaration with options appears without parentheses. Add a
6939         guard to prevent a bogus error when a state declaration may be
6940         interpreted as an option if a previous declaration with options
6941         was not parenthesized.
6943 2014-06-13  Robert Dewar  <dewar@adacore.com>
6945         * checks.adb: Validate_Alignment_Check_Warnings: New procedure
6946         (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
6947         * checks.ads (Alignment_Warnings_Record): New type.
6948         (Alignment_Warnings): New table
6949         (Validate_Alignment_Check_Warnings): New procedure.
6950         * errout.adb (Delete_Warning_And_Continuations): New procedure
6951         (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
6952         Warnings_Treated_As_Errors (Finalize): Minor reformatting
6953         * errout.ads (Warning_Msg): New variable
6954         (Delete_Warning_And_Continuations): New procedure
6955         * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
6956         * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
6958 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
6960         * a-coinho.adb, a-coinho.ads: Add Reference machinery.
6962 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
6964         * errout.adb (SPARK_Msg_N): New routine.
6965         (SPARK_Msg_NE): New routine.
6966         * errout.ads Add a section on SPARK-related error routines.
6967         (SPARK_Msg_N): New routine.
6968         (SPARK_Msg_NE): New routine.
6969         * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
6970         pragma Abstract_State is always inserted after SPARK_Mode.
6971         (Insert_After_SPARK_Mode): New routine.
6972         * sem_prag.adb (Analyze_Abstract_State,
6973         Analyze_Constituent, Analyze_External_Property,
6974         Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
6975         Analyze_Global_List, Analyze_Initialization_Item,
6976         Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
6977         Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
6978         Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
6979         Analyze_Refined_Global_In_Decl_Part,
6980         Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
6981         Check_Aspect_Specification_Order, Check_Constituent_Usage,
6982         Check_Declaration_Order, Check_Dependency_Clause,
6983         Check_Duplicate_Mode, Check_Duplicate_Option,
6984         Check_Duplicate_Property, Check_External_Properties,
6985         Check_External_Property, Check_Function_Return,
6986         Check_Matching_Constituent, Check_Matching_State,
6987         Check_Mode_Restriction_In_Enclosing_Context,
6988         Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
6989         Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
6990         Has_Extra_Parentheses, Inconsistent_Mode_Error,
6991         Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
6992         Report_Extra_Constituents_In_List, Report_Extra_Inputs,
6993         Report_Unrefined_States, Report_Unused_Constituents,
6994         Report_Unused_States, Role_Error, Usage_Error):
6995         Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
6996         to report semantic errors only when SPARK_Mode is on.
6997         (Analyze_Depends_In_Decl_Part): Do not check the syntax of
6998         pragma Depends explicitly, this is now done by the analysis.
6999         (Analyze_Global_In_Decl_List): Do not check the syntax of
7000         pragma Global explicitly, this is now done by the analysis.
7001         (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
7002         pragma Initializes explicitly, this is now done by the analysis.
7003         (Analyze_Part_Of): Do not check the syntax of the encapsulating
7004         state, this is now done by the analysis.
7005         (Analyze_Pragma): Do
7006         not check the syntax of a state declaration, this is now done
7007         by the analysis.
7008         (Analyze_Refined_Depends_In_Decl_Part): Do not
7009         check the syntax of pragma Refined_Depends explicitly, this is now
7010         done by the analysis.
7011         (Analyze_Refined_Global_In_Decl_Part): Do
7012         not check the syntax of pragma Refined_Global explicitly, this is
7013         now done by the analysis.
7014         (Analyze_Refined_State_In_Decl_Part):
7015         Do not check the syntax of pragma Refined_State explicitly, this
7016         is now done by the analysis.
7017         (Check_Dependence_List_Syntax): Removed.
7018         (Check_Global_List_Syntax): Removed.
7019         (Check_Initialization_List_Syntax): Removed.
7020         (Check_Item_Syntax): Removed.
7021         (Check_Missing_Part_Of): Do not consider items from an instance.
7022         (Check_Refinement_List_Syntax): Removed.
7023         (Check_State_Declaration_Syntax): Removed.
7024         (Collect_Global_List): Do not raise Program_Error when the input is
7025         malformed.
7026         (Process_Global_List): Do not raise Program_Error when the input
7027         is malformed.
7028         * sem_ch13.adb: Minor reformatting.
7030 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7032         * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
7033         that is an interface definition with an interface list.
7034         (Process_Full_View): Move error message on missmatched interfaces
7035         between views to the declaration of full view, for clarity.
7036         * sem_ch9.adb (Check_Interfaces): Move error message to full view,
7037         for clarity.
7039 2014-06-13  Robert Dewar  <dewar@adacore.com>
7041         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
7042         reason to Overflow.
7044 2014-06-13  Robert Dewar  <dewar@adacore.com>
7046         * makeutl.adb: Minor reformatting.
7048 2014-06-13  Gail Schenker  <schenker@adacore.com>
7050         * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
7051         associated flag (d.z), no longer needed.
7053 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7055         * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
7056         Export aspects, do not check whether a corresponding Convention
7057         aspect has been specified. Convention is optional in Ada2012,
7058         and defaults to Convention_Ada.
7060 2014-06-13  Eric Botcazou  <ebotcazou@adacore.com>
7062         * checks.adb (Apply_Address_Clause_Check): Only issue the new
7063         warning if the propagation warning is issued.
7065 2014-06-13  Thomas Quinot  <quinot@adacore.com>
7067         * exp_ch4.adb: Minor reformatting.
7069 2014-06-13  Robert Dewar  <dewar@adacore.com>
7071         * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
7072         Handle float range check case (Expand_N_Attribute_Reference,
7073         case Succ): Handle float range check case.
7074         * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
7075         range check case.
7077 2014-06-13  Vincent Celier  <celier@adacore.com>
7079         * makeutl.ads (Compute_Builder_Switches): Change name of
7080         parameter Root_Environment to Env.
7081         * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
7082         Env parameter of procedure Get_Or_Create_Configuration_File.
7083         (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
7084         of new parameter Env.
7085         * prj-conf.ads (Locate_Runtime): New parameter Env of type
7086         Prj.Tree.Environment.
7088 2014-06-13  Robert Dewar  <dewar@adacore.com>
7090         * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
7092 2014-06-13  Robert Dewar  <dewar@adacore.com>
7094         * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
7095         reformatting.
7096         * sem_attr.adb: Minor code reformatting and simplification.
7097         * checks.adb: Fix minor typo.
7099 2014-06-13  Emmanuel Briot  <briot@adacore.com>
7101         * g-comlin.adb (Get_Argument): fix expansion
7102         of command line arguments (e.g. "*.adb") when using a custom
7103         parser. The parser was not passed to the recursive call, and
7104         thus we were trying to do the expansion on the default command
7105         line parser.
7107 2014-06-13  Thomas Quinot  <quinot@adacore.com>
7109         * exp_ch9.adb: Minor reformatting.
7111 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7113         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
7114         To determine whether the attribute should be expanded, examine
7115         whether the enclosing postcondition pragma is to be checked,
7116         rather than using the internal flag Assertions_Enabled.
7118 2014-06-13  Ben Brosgol  <brosgol@adacore.com>
7120         * gnat_rm.texi: Minor fixes.
7121         * gnat_ugn.texi: Added a missing "@itemize".
7123 2014-06-13  Robert Dewar  <dewar@adacore.com>
7125         * debug.adb: Remove -gnatd.1 flag documentation.
7126         * layout.adb (Layout_Type): Remove special handling of size
7127         for anonymous access type.
7128         * sem_ch3.adb (Replace_Type): Remove special handling of size
7129         for anonymous access type.
7131 2014-06-13  Robert Dewar  <dewar@adacore.com>
7133         * debug.adb: Document debug flag -gnatd.1.
7134         * layout.adb (Layout_Type): Size change for anonymous access
7135         types under -gnatd.1.
7136         * sem_ch3.adb (Replace_Type): Size change for anonymous access
7137         types under -gnatd.1.
7139 2014-06-13  Robert Dewar  <dewar@adacore.com>
7141         * layout.adb (Layout_Type): Anonymous access types designating
7142         unconstrained arrays are always thin pointers.
7143         * sem_ch3.adb (Replace_Type): Anonymous access types designating
7144         unconstrained arrays are always thin pointers.
7146 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7148         * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
7149         to resolve the prefix of an attribute that is an entity name
7150         and may be a parameterless call.  Minor code reorganization.
7152 2014-06-13  Robert Dewar  <dewar@adacore.com>
7154         * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
7155         Removed.
7156         * opt.ads (Compiler_Unit): New flag.
7157         * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
7158         for null statement sequence (not allowed in compiler unit).
7159         * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
7160         parsing.
7161         * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
7162         calling sequence.
7163         * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
7164         Check_Compiler_Unit.
7165         * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
7166         Check_Compiler_Unit (this construct is not allowed in compiler
7167         units).
7168         * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
7169         Set Opt.Compiler_Unit.
7171 2014-06-13  Geert Bosch  <bosch@adacore.com>
7173         * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
7174         s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
7175         s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
7177 2014-06-13  Robert Dewar  <dewar@adacore.com>
7179         * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
7181 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7183         * freeze.adb (Freeze_Entity): Remove the check concerning volatile
7184         types in SPARK as it is poorly placed and poorly formulated. The
7185         check was flagging ALL volatile entities as illegal in SPARK.
7186         * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
7187         types as illegal in SPARK.
7189 2014-06-13  Robert Dewar  <dewar@adacore.com>
7191         * sem_cat.adb: Minor reformatting.
7193 2014-06-13  Yannick Moy  <moy@adacore.com>
7195         * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
7197 2014-06-13  Arnaud Charlet  <charlet@adacore.com>
7199         * gnat_rm.texi: Add detail on SPARK_05 restriction.
7201 2014-06-13  Bob Duff  <duff@adacore.com>
7203         * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
7204         Add assertions requiring the secondary stack to be initialized.
7205         * s-solita.ads (Init_Tasking_Soft_Links): Comment.
7206         * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
7207         secondary stack is initialized before calling Init_Tasking_Soft_Links,
7208         by adding pragmas Elaborate_Body.
7210 2014-06-13  Thomas Quinot  <quinot@adacore.com>
7212         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
7213         kludge disabling new legality check.
7215 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7217         * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
7218         volatile types.
7219         (Freeze_Type): Volatile types are now illegal in SPARK.
7221 2014-06-13  Robert Dewar  <dewar@adacore.com>
7223         * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
7224         * gnat_rm.texi: Document aspect Thread_Local_Storage.
7226 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7228         * sem_cat.adb (Validate_Static_Object_Name): A constant whose
7229         value is a temporary that renames an aggregate is legal in a
7230         preelaborated unit. Illegalities, if any will be detected in
7231         the aggregate components.
7233 2014-06-13  Ed Schonberg  <schonberg@adacore.com>
7235         * einfo.ads: Minor reformatting an comment expansion.
7237 2014-06-13  Robert Dewar  <dewar@adacore.com>
7239         * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
7240         Tbuild.
7241         * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
7242         Back_End.
7243         * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
7244         * sem_warn.adb: Minor reformatting.
7246 2014-06-13  Doug Rupp  <rupp@adacore.com>
7248         * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
7249         files with rfm=udf.
7251 2014-06-13  Yannick Moy  <moy@adacore.com>
7253         * sem_warn.adb (Check_Unset_References): Take
7254         case of Refined_Post into account in Within_Postcondition check.
7256 2014-06-13  Hristian Kirtchev  <kirtchev@adacore.com>
7258         * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
7259         SPARK.
7261 2014-06-13  Yannick Moy  <moy@adacore.com>
7263         * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
7264         Aspect_Export): Consider that variables may be set outside the program.
7266 2014-06-13  Robert Dewar  <dewar@adacore.com>
7268         * back_end.adb (Make_Id): New function.
7269         (Make_SC): New function.
7270         (Set_RND): New procedure.
7271         * back_end.ads (Make_Id): New function.
7272         (Make_SC): New function.
7273         (Set_RND): New procedure.
7274         * einfo.ads: Minor comment updates.
7275         * frontend.adb: Move Atree.Initialize call to Gnat1drv.
7276         * gnat1drv.adb (Gnat1drv): New calling sequence for
7277         Get_Target_Parameters.
7278         (Gnat1drv): Move Atree.Initialize here from Frontend.
7279         * targparm.adb (Get_Target_Parameters): New calling
7280         sequence (Get_Target_Parameters): Handle pragma Restriction
7281         (No_Dependence,..)
7282         * targparm.ads (Get_Target_Parameters): New calling sequence.
7284 2014-06-13  Gary Dismukes  <dismukes@adacore.com>
7286         * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
7287         loop if the pragma does not come from source, so that an implicit
7288         pragma Import only applies to the first declaration, avoiding
7289         possible conflicts with earlier explicit and implicit declarations
7290         due to multiple Provide_Shift_Operators pragmas.
7291         (Set_Imported): Remove previous fix that bypassed pragma duplication
7292         error.
7293         * gnat_rm.texi: Change 'equivalent' to 'similar' in description
7294         of Provide_Shift_Operators.
7296 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
7298         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
7299         string pointer directly to set_decl_section_name.
7301 2014-06-11  Robert Dewar  <dewar@adacore.com>
7303         * sem_ch13.adb: Minor reformatting.
7305 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
7307         * sem_prag.adb (Check_Clause_Syntax): Add new
7308         local variable Outputs. Account for the case where multiple
7309         output items appear as an aggregate.
7311 2014-06-11  Robert Dewar  <dewar@adacore.com>
7313         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
7314         with ?j? not ??.
7316 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7318         * einfo.ads: Minor reformatting.
7320 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
7322         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
7323         new variable First_Node. Update the position after all insertions have
7324         taken place to First_Node.
7326 2014-06-11  Robert Dewar  <dewar@adacore.com>
7328         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
7329         * layout.adb (Layout_Type): Remove test of -gnatd.1.
7331 2014-06-11  Robert Dewar  <dewar@adacore.com>
7333         * sem_ch13.adb: Minor reformatting.
7335 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
7337         * sem_prag.adb (Check_Clause_Syntax): Add new
7338         local variable Outputs. Account for the case where multiple
7339         output items appear as an aggregate.
7341 2014-06-11  Robert Dewar  <dewar@adacore.com>
7343         * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
7344         with ?j? not ??.
7346 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7348         * einfo.ads: Minor reformatting.
7350 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
7352         * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
7353         new variable First_Node. Update the position after all insertions have
7354         taken place to First_Node.
7356 2014-06-11  Robert Dewar  <dewar@adacore.com>
7358         * debug.adb: Remove debug flag -gnatd.1, no longer needed.
7359         * layout.adb (Layout_Type): Remove test of -gnatd.1.
7361 2014-06-11  Thomas Quinot  <quinot@adacore.com>
7363         * freeze.ads: Minor reformatting.
7364         * checks.adb (Determine_Range): Do not attempt to determine
7365         the range of a deferred constant whose full view has not been
7366         seen yet.
7367         * sem_res.adb (Resolve): Remove undesirable guard against
7368         resolving expressions from expression functions.
7370 2014-06-11  Robert Dewar  <dewar@adacore.com>
7372         * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
7373         access types.
7374         * layout.adb (Layout_Type): Make anonymous access types for
7375         subprogram formal types and return types always thin. For now
7376         only enabled if -gnatd.1 set.
7378 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7380         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
7381         rule for stream attributes of interface types (RM 13.13.2 (38/3)):
7382         subprogram must be a null procedure.
7384 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
7386         * sem_prag.adb (Analyze_Input_Item): Allow formal
7387         parameters to appear as input_items in an initialization_list
7388         of pragma Initializes. Encapsulation now applies to states and
7389         variables only (as it should). Add RM references to key errors.
7390         * sem_prag.adb (Set_Imported): Suppress errors
7391         about preceding Imports when the pragma does not come from source,
7392         which can happen through use of pragma Provide_Shift_Operators.
7394 2014-06-11  Thomas Quinot  <quinot@adacore.com>
7396         * sem_ch3.adb: Minor reformatting.
7397         * einfo.ads (Full_View): Minor comment update.
7399 2014-06-11  Robert Dewar  <dewar@adacore.com>
7401         * einfo.adb (Is_Independent): New flag.
7402         * einfo.ads (Is_Independent): New flag.
7403         (Has_Independent_Components): Clean up and fix comments.
7404         * sem_prag.adb (Fix_Error): Deal with changing argument
7405         [of] to entity [for].
7406         (Analyze_Pragma, case Independent): Set Is_Independent flag
7407         (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
7408         in all components of specified record.
7410 2014-06-11  Thomas Quinot  <quinot@adacore.com>
7412         * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
7413         Set proper Etype on bounds of dummy type created for analysis
7414         of the generic.
7416 2014-06-11  Robert Dewar  <dewar@adacore.com>
7418         * debug.adb: Minor comment fix (add missing section of dot
7419         numeric flags).
7421 2014-06-11  Robert Dewar  <dewar@adacore.com>
7423         * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
7424         opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
7425         pragma/aspects Pure_05 Pure_12 Preelaborate_05.
7426         * errout.adb (Output_Messages): Avoid duplicate output for
7427         library level instance.
7428         * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
7429         (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
7430         * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
7431         * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
7432         accomodate largest modulus value.
7433         * gnat_ugn.texi: Minor updates.
7435 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7437         * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
7438         load body of generic package or its parent, if body is optional
7439         and the unit does not require a body.
7441 2014-06-11  Robert Dewar  <dewar@adacore.com>
7443         * gnat_rm.texi: Document System.Unsigned_Types.
7444         * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
7445         * s-unstyp.ads: Update comments (this is now user available unit).
7447 2014-06-11  Robert Dewar  <dewar@adacore.com>
7449         * make.adb, sem_res.adb: Minor reformatting.
7451 2014-06-11  Thomas Quinot  <quinot@adacore.com>
7453         * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
7454         a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
7455         a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
7456         Preelaborate_05 to just Preelaborate in runtime units, and similarly
7457         change Pure_05 to just Pure.
7459 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7461         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
7462         analysis if error has been posted on subprogram body.
7464 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7466         * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
7467         rule given in RM 13.1 (8/1) for operational attributes to stream
7468         attributes: the attribute must apply to a first subtype. Fixes
7469         missing errors in ACATS test bdd2004.
7471 2014-06-11  Robert Dewar  <dewar@adacore.com>
7473         * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
7474         record type if restriction No_Implicit_Conditionals is active.
7475         (Expand_N_Object_Declaration): Don't allow default initialization
7476         for variant record type if restriction No_Implicit_Condition is active.
7477         (Build_Variant_Record_Equality): Don't build for variant
7478         record type if restriction No_Implicit_Conditionals is active.
7479         * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
7480         No_Implicit_Conditionals.
7481         * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
7483 2014-06-11  Ramon Fernandez  <fernandez@adacore.com>
7485         * i-cstrin.ads: Update comments.
7487 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7489         * sem_res.adb (Resolve_Selected_Component): Handle properly a
7490         selected component whose prefix is overloaded, when none of the
7491         interpretations matches the expected type.
7493 2014-06-11  Bob Duff  <duff@adacore.com>
7495         * make.adb (Wait_For_Available_Slot): Give a more
7496         informative error message; if the ALI file is not found, print
7497         the full path of what it's looking for.
7499 2014-06-11  Sergey Rybin  <rybin@adacore.com frybin>
7501         * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
7502         option to specify the result file encoding.
7504 2014-06-11  Robert Dewar  <dewar@adacore.com>
7506         * errout.ads, sem_ch12.adb: Minor reformatting.
7507         * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
7508         * lib-xref.adb: Minor reformatting.
7509         * restrict.adb: Minor code reorganization (put routines in
7510         alpha order).
7512 2014-06-11  Yannick Moy  <moy@adacore.com>
7514         * einfo.ads: Minor typo in comment
7516 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7518         * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
7519         formal private types and private type extensions, to indicate
7520         variable in a generic unit whose uninitialized use suggest that
7521         actual type should be fully initialized.
7522         Needs_Initialized_Actual:  removed, functionaity replaced by
7523         the above.
7524         * lib-xref.adb (Generate_Reference): Generate a reference for
7525         variables of a formal type when the unit is not the main unit,
7526         to enable appropriate warnings in an instance.
7527         * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
7528         of variable in a generic unit that suggests that actual type
7529         should be full initialized.
7530         * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
7531         and do not emot warning, which now only appears in an instance.
7533 2014-06-11  Eric Botcazou  <ebotcazou@adacore.com>
7535         * gnat_ugn.texi: Fix minor typo.
7537 2014-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
7539         * sem_ch3.adb Add with and use clause for Sem_Ch10.
7540         (Analyze_Declarations): Code reformatting. Analyze the contract
7541         of a subprogram body stub at the end of the declarative region.
7542         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
7543         now a variable. Do not process the body if its contract is not
7544         available. Account for subprogram body stubs when extracting
7545         the corresponding spec.
7546         * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
7547         on usage.
7548         * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
7549         New routine.
7550         * sem_prag.adb (Analyze_Depends_In_Decl_Part):
7551         Account for subprogram body stubs when extracting the
7552         corresponding spec.
7553         (Analyze_Global_In_Decl_List):
7554         Account for subprogram body stubs when extracting the
7555         corresponding spec.
7556         (Analyze_Refined_Depends_In_Decl_Part):
7557         Use Find_Related_Subprogram_Or_Body to retrieve the declaration
7558         of the related body. Spec_Is now a variable. Account for
7559         subprogram body stubs when extracting the corresponding spec.
7560         (Analyze_Refined_Global_In_Decl_Part): Use
7561         Find_Related_Subprogram_Or_Body to retrieve the declaration
7562         of the related body. Spec_Is now a variable. Account for
7563         subprogram body stubs when extracting the corresponding spec.
7564         (Collect_Subprogram_Inputs_Output): Account for subprogram body
7565         stubs when extracting the corresponding spec.
7567 2014-06-11  Vincent Celier  <celier@adacore.com>
7569         * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
7570         -lgnarl or -lgnat.
7572 2014-06-11  Robert Dewar  <dewar@adacore.com>
7574         * debug.adb: Add debug flag -gnatd.q.
7575         * erroutc.adb (Prescan_Message): Bomb if untagged warning with
7576         -gnatd.q set.
7577         * styleg.adb (Check_Xtra_Parens): Message should be a style
7578         message.
7579         * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
7580         par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
7581         sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
7582         sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
7584 2014-06-11  Ben Brosgol  <brosgol@adacore.com>
7586         * gnat_rm.texi: Revised chapter on Implementation Defined
7587         Characteristics.
7589 2014-06-11  Geert Bosch  <bosch@adacore.com>
7591         * s-exctab.adb: avoid race conditions in exception registration.
7593 2014-06-11  Robert Dewar  <dewar@adacore.com>
7595         * errout.adb (Warn_Insertion): New function.
7596         (Error_Msg): Use Warn_Insertion and Prescan_Message.
7597         (Error_Msg_Internal): Set Info field of error object.
7598         (Error_Msg_NEL): Use Prescan_Message.
7599         (Set_Msg_Text): Don't store info: at start of message.
7600         (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
7601         (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
7602         * errout.ads: Document new ?$? and >$> insertion sequences
7603         Document use of "(style)" and "info: "
7604         * erroutc.adb (dmsg): Print several missing fields
7605         (Get_Warning_Tag): Handle -gnatel case (?$?)  (Output_Msg_Text):
7606         Deal with new tagging of info messages
7607         * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
7608         Add field Info (Prescan_Message): New procedure, this procedure
7609         replaces the old Test_Style_Warning_Serious_Unconditional_Msg
7610         * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
7611         sem_elab.adb: Follow new rules for info message (info belongs
7612         only at the start of a message, and only in the first message,
7613         not in any of the continuations).
7614         * gnat_ugn.texi: Document full set of warning tags.
7616 2014-06-11  Gary Dismukes  <dismukes@adacore.com>
7618         * sem_util.adb: Minor typo fix.
7620 2014-06-11  Ed Schonberg  <schonberg@adacore.com>
7622         * sem_warn.adb (Check_References): Do not emit spurious warnings
7623         on uninitialzed variable of a formal private type if variable
7624         is not read.
7626 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
7628         * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
7629         set_decl_section_name accessor.
7631 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
7633         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
7634         (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
7635         (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
7637 2014-05-21  Robert Dewar  <dewar@adacore.com>
7639         * layout.adb: Minor reformatting.
7640         * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
7641         dummy procedure ip.
7643 2014-05-21  Robert Dewar  <dewar@adacore.com>
7645         * restrict.ads (Implementation_Restriction): Add entry for
7646         No_Fixed_IO.
7647         * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
7648         Ada.[Wide_[Wide_]Text_IO.
7649         * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
7650         * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
7651         for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
7652         Wide_Wide_Value if restriction No_Fixed_IO is set.
7653         * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
7655 2014-05-21  Robert Dewar  <dewar@adacore.com>
7657         * gnatcmd.adb: Minor error msg changes (no upper case letter
7658         at start).
7659         * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
7660         reformatting.
7662 2014-05-21  Robert Dewar  <dewar@adacore.com>
7664         * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
7665         via generic formals.
7666         * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
7667         -gnatd.G is set.
7669 2014-05-21  Thomas Quinot  <quinot@adacore.com>
7671         * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
7672         more accurately describe that this subprogram needs to come into
7673         play also in cases where no byte swapping is involved, because
7674         it also takes care of some required shifts (left-justification
7675         of values).
7677 2014-05-21  Thomas Quinot  <quinot@adacore.com>
7679         * freeze.adb (Check_Component_Storage_Order): Indicate whether
7680         a Scalar_Storage_Order attribute definition is present for the
7681         component's type.
7682         (Freeze_Record_Type): Suppress junk warnings
7683         about purportedly junk Bit_Order / Scalar_Storage_Order attribute
7684         definitions.
7686 2014-05-21  Robert Dewar  <dewar@adacore.com>
7688         * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
7689         to Kill_Elaboration_Checks.
7691 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
7693         * layout.adb (Assoc_Add): Suppress the optimization of the (E
7694         - C1) + C2 case, when the expression type is unsigned and C1 <
7695         C2, to avoid creating a negative literal when folding.
7697 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
7699         * freeze.adb (Freeze_Record_Type): Update the use of
7700         Is_SPARK_Volatile.
7701         * sem_ch3.adb (Analyze_Object_Contract): Update the use of
7702         Is_SPARK_Volatile.
7703         (Process_Discriminants): Update the use of Is_SPARK_Volatile.
7704         * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
7705         of Is_SPARK_Volatile.
7706         (Analyze_Loop_Parameter_Specification):
7707         Update the use of Is_SPARK_Volatile.
7708         * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
7709         formal parameter when its type is volatile.
7710         * sem_prag.adb (Analyze_Global_Item): Update the use of
7711         Is_SPARK_Volatile.
7712         * sem_res.adb (Resolve_Entity_Name): Correct the guard which
7713         determines whether an entity is a volatile source SPARK object.
7714         * sem_util.adb (Has_Enabled_Property): Accout for external
7715         properties being set on objects other than abstract states
7716         and variables. An example would be a formal parameter.
7717         (Is_SPARK_Volatile): New routine.
7718         (Is_SPARK_Volatile_Object):
7719         Remove the entity-specific tests. Call routine Is_SPARK_Volatile
7720         when checking entities and/or types.
7721         * sem_util.ads (Is_SPARK_Volatile): New routine.
7723 2014-05-21  Robert Dewar  <dewar@adacore.com>
7725         * sem_warn.adb: Minor fix to warning messages (use ?? instead
7726         of ?).
7728 2014-05-21  Vincent Celier  <celier@adacore.com>
7730         * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
7731         switch --version and --help.
7733 2014-05-21  Robert Dewar  <dewar@adacore.com>
7735         * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
7737 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7739         * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
7740         iterator variable when the domain of iteration is a formal
7741         container and this is an element iterator.
7743 2014-05-21  Bob Duff  <duff@adacore.com>
7745         * sem_ch12.adb: Minor reformatting.
7747 2014-05-21  Robert Dewar  <dewar@adacore.com>
7749         * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
7751 2014-05-21  Robert Dewar  <dewar@adacore.com>
7753         * sem_elab.adb: Minor reformatting.
7754         * s-taprop.ads: Minor comment fix.
7755         * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
7756         Kill_Elaboration_Checks.
7757         * errout.adb, erroutc.adb: Minor reformatting.
7759 2014-05-21  Thomas Quinot  <quinot@adacore.com>
7761         * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
7762         component. No byte swapping occurs, but this procedure also takes
7763         care of appropriately justifying the argument.
7765 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
7767         * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
7768         New routine.
7769         (Analyze_Subprogram_Body_Helper): Move the
7770         analysis of aspect specifications and the processing of the
7771         subprogram body contract after inlining has taken place.
7772         (Diagnose_Misplaced_Aspect_Specifications): Removed.
7774 2014-05-21  Javier Miranda  <miranda@adacore.com>
7776         * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
7778 2014-05-21  Robert Dewar  <dewar@adacore.com>
7780         * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
7781         continuations any more.
7783 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7785         * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
7786         present in formal_Private_Definitions and on private extension
7787         declarations of a formal derived type. Set when the use of the
7788         formal type in a generic suggests that the actual should be a
7789         fully initialized type.
7790         * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
7791         to indicate that an entity of a generic type has default
7792         initialization, and that the corresponing actual type in any
7793         subsequent instantiation should be fully initialized.
7794         * sem_ch12.adb (Check_Initialized_Type): new subprogram,
7795         to emit a warning if the actual for a generic type on which
7796         Needs_Initialized_Actual is set is not a fully initialized type.
7798 2014-05-21  Robert Dewar  <dewar@adacore.com>
7800         * sem_elab.adb, prj-dect.adb: Minor reformatting.
7802 2014-05-21  Robert Dewar  <dewar@adacore.com>
7804         * erroutc.ads: Minor comment addition.
7806 2014-05-21  Robert Dewar  <dewar@adacore.com>
7808         * errout.ads: Add documentation for use of >*> tag.
7809         * restrict.adb: Make sure we use >*> tag for restriction warnings.
7811 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
7813         * debug.adb: Add case of illegal overriding_indicator for a
7814         protected subprogram body to description of -gnatd.E switch.
7815         * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
7816         for cases of giving overriding_indicators on protected subprogram
7817         bodies, but change this to a warning if -gnatd.E is enabled. No
7818         longer give a style warning about missing indicators on protected
7819         subprogram bodies.
7821 2014-05-21  Robert Dewar  <dewar@adacore.com>
7823         * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
7824         sem_elab.ads: Minor reformatting.
7825         * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
7826         parameter optional.
7828 2014-05-21  Pascal Obry  <obry@adacore.com>
7830         * prj-dect.adb: Allow package Install in aggregate project.
7832 2014-05-21  Robert Dewar  <dewar@adacore.com>
7834         * sem_ch13.adb (Analyze_Aspect_Specifications):
7835         Insert_Delayed_Pragma is now used for the case of Attach_Handler.
7836         * sem_prag.adb: Minor comment improvements.
7838 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7840         * sem_ch12.adb (Install_Body): When checking whether freezing of
7841         instantiation must be delayed, verify that the common enclosing
7842         subprogram to generic and instance is in fact an overloadable
7843         entity.
7845 2014-05-21  Vincent Celier  <celier@adacore.com>
7847         * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
7848         mains with the same name and fail if there is more than one.
7849         * prj.ads, prj.adb (Find_All_Sources): New function
7851 2014-05-21  Robert Dewar  <dewar@adacore.com>
7853         * sem_ch13.adb: Minor reformatting.
7854         * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
7855         * sem_prag.adb: Minor error message improvement.
7857 2014-05-21  Yannick Moy  <moy@adacore.com>
7859         * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
7860         (Enclosing_Subprogram_Or_Package): Only return a library-level
7861         package.
7863 2014-05-21  Javier Miranda  <miranda@adacore.com>
7865         * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
7866         to the full view of the parent type when processing a derived type
7867         which is the full view of a private type not defined in a generic
7868         unit which is derived from a private type with discriminants
7869         whose full view is a non-tagged record type.
7871 2014-05-21  Javier Miranda  <miranda@adacore.com>
7873         * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
7874         Complete previous patch.
7876 2014-05-21  Thomas Quinot  <quinot@adacore.com>
7878         PR ada/9535
7879         * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
7880         Provide a behaviour more consistent with underlying datagram
7881         socket: do not attempt to loop over Send_Socket/Receive_Socket
7882         iterating along the buffer.
7884 2014-05-21  Hristian Kirtchev  <kirtchev@adacore.com>
7886         * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
7887         or a tagged type is not labelled as volatile. Ensure that a
7888         non-volatile type has no volatile components.
7889         * sem_ch3.adb (Analyze_Object_Contract): Add local constant
7890         Obj_Typ. Code reformatting.  Ensure that a discriminated or
7891         tagged object is not labelled as volatile.
7892         * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
7893         pragma Volatile applies to a full type declaration or an object
7894         declaration when SPARK mode is on.
7896 2014-05-21  Sergey Rybin  <rybin@adacore.com frybin>
7898         * gnat_ugn.texi: For ASIS tools, reword the paragraph about
7899         providing options needed for compiling the argument source for
7900         the situation when a project file can be used as a tool parameter.
7902 2014-05-21  Gary Dismukes  <dismukes@adacore.com>
7904         * gnat_rm.texi: Minor typo fix.
7906 2014-05-21  Robert Dewar  <dewar@adacore.com>
7908         * stand.adb (Tree_Read): Read missing entities.
7909         (Tree_Write): Write missing entities.
7911 2014-05-21  Ben Brosgol  <brosgol@adacore.com>
7913         * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
7914         section in gnatmetric chapter.
7916 2014-05-21  Robert Dewar  <dewar@adacore.com>
7918         * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
7919         outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
7920         post-call copy write back (see detailed comment in code).
7921         * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
7922         Exp_Ch6.
7923         * tbuild.ads: Minor reformatting.
7925 2014-05-21  Robert Dewar  <dewar@adacore.com>
7927         * stand.ads: Add warning about adding new entities and
7928         Tree_Read/Tree_Write.
7930 2014-05-21  Robert Dewar  <dewar@adacore.com>
7932         * sem_util.adb (Set_Entity_With_Checks): Don't complain about
7933         references to restricted entities within the units in which they
7934         are declared.
7936 2014-05-21  Robert Dewar  <dewar@adacore.com>
7938         * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
7939         simplify the needed test, and also deal with failure to catch
7940         situations with non-standard names.
7941         * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
7942         (Source_File_Is_Subunit): Removed, no longer used.
7944 2014-05-21  Javier Miranda  <miranda@adacore.com>
7946         * exp_ch4.adb
7947         (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
7948         renaming of an access to interface object there is no need to
7949         generate extra code to reference the tag.
7951 2014-05-21  Robert Dewar  <dewar@adacore.com>
7953         * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
7954         Warnings (Off, string).
7956 2014-05-21  Robert Dewar  <dewar@adacore.com>
7958         * osint.adb: Fix three error messages to say invalid instead
7959         of erroneous.
7960         * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
7961         sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
7962         sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
7964 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7966         * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
7967         sem_ch9.ads: Move discriminant manipulation routines for analysis of
7968         aspect specifications from sem_ch9 to sem_ch13, where they belong.
7970 2014-05-21  Robert Dewar  <dewar@adacore.com>
7972         * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
7973         Clearly document -gnatyg (GNAT style switches).
7974         * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
7975         detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
7976         available for VMS after all.
7977         * warnsw.adb: Reorganize to eliminate duplicated code
7978         (Restore_Warnings): Add a couple of missing entries
7979         (Save_Warnings): Add a couple of missing entries.
7980         * warnsw.ads: Add missing entries to Warning_Record (not clear
7981         what the impact is).
7983 2014-05-21  Robert Dewar  <dewar@adacore.com>
7985         * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
7986         warning) case.
7987         * errout.ads: Document ?*? (restriction warning) insertion.
7988         * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
7989         warning) case.
7990         * erroutc.ads: Document use of * for restriction warning tag.
7991         * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
7993 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
7995         * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
7996         make discriminants immediately visible when analyzing an aspect
7997         of a subtype declaration.
7998         (Uninstall_Discriminants): Do not apply to the entity in a
7999         subtype declaration.
8001 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8003         * sem_util.adb: Code clean up.
8005 2014-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8007         * gnat_ugn.texi: Document -Werror.
8009 2014-05-21  Bob Duff  <duff@adacore.com>
8011         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
8012         This was returning False if the Object is a constant view. Fix
8013         it to return True in that case, because it might be a view of
8014         a variable.
8015         (Has_Discriminant_Dependent_Constraint): Fix latent
8016         bug; this function was crashing when passed a discriminant.
8018 2014-05-21  Robert Dewar  <dewar@adacore.com>
8020         * gnat_ugn.texi: Remove misplaced section that is now obsolete.
8021         * s-arit64.adb: Minor code reorganization.
8022         * sem_prag.adb: Minor comment fix (remove erroneous use of the
8023         term erroneous).
8025 2014-05-21  Robert Dewar  <dewar@adacore.com>
8027         * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
8028         computing new table size.
8030 2014-05-21  Robert Dewar  <dewar@adacore.com>
8032         * einfo.ads: Minor reformatting.
8033         * ceinfo.adb: Deal with slight format change of einfo.ads.
8035 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8037         * sem_prag.adb (Analyze_Part_Of): Further work on the proper
8038         implementation of the SPARK 2014 rule concerning private child
8039         units (LRM 7.2.6).
8041 2014-05-21  Vincent Celier  <celier@adacore.com>
8043         * makeusg.adb: Add switch -d to usage.
8045 2014-05-21  Ed Schonberg  <schonberg@adacore.com>
8047         * sem_util.adb (Find_Actual): If an actual that is the prefix
8048         of an enclosing prefixed call has been rewritten, use Nkind
8049         and Sloc to identify the corresponding formal, when handling
8050         deferred references.
8052 2014-05-21  Robert Dewar  <dewar@adacore.com>
8054         * debug.adb: Document -gnatd.z switch.
8055         * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
8057 2014-05-21  Robert Dewar  <dewar@adacore.com>
8059         * einfo.ads (Can_Never_Be_Null): Minor comment update.
8060         * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
8061         error message change.
8062         * s-arit64.adb ("abs"): New function. Use expression functions
8063         for the simple conversions and arithmetic.
8065 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8067         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
8068         set function_start_locus.
8070 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8072         * utils.c (gnat_write_global_declarations): Adjust the flags put on
8073         dummy_global.
8075 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8077         * gcc-interface/decl.c (change_qualified_type): New static function.
8078         (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
8079         <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
8080         <E_Array_Subtype>: Likewise.
8081         Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
8082         (gnat_to_gnu_component_type): Likewise.
8083         (gnat_to_gnu_param): Likewise.
8085 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8087         * fe.h (Set_Present_Expr): Move around.
8088         (End_Location): New macro.
8089         * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
8091 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8093         * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
8094         lieu of more verbose construct.
8095         * gcc-interface/trans.c (Call_to_gnu): Likewise.
8096         (gnat_to_gnu): Likewise.  Remove obsolete code.
8098 2014-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8100         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
8101         consider that regular packed arrays can never be superflat.
8103 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
8105         * gcc-interface/ada-tree.h: Remove usage of variable_size gty
8106         annotation.
8107         * gcc-interface/decl.c (annotate_value): Adjust.
8108         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8109         (push_range_check_info): Likewise.
8110         (Loop_Statement_to_gnu): Likewise.
8111         (Subprogram_Body_to_gnu): Likewise.
8112         (Compilation_Unit_to_gnu): Likewise.
8113         (start_stmt_group): Likewise.
8114         * gcc-interface/utils.c (init_gnat_utils): Likewise.
8115         (gnat_pushlevel): Likewise.
8116         (maybe_pad_type): Likewise.
8118 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8120         * seh_init.c: Fix copyright year.
8122 2014-05-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8124         * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
8125         are defined.  Move include windows.h before system.h.
8126         * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
8127         also when __CYGWIN__ is defined.  Include windef.h before winbase.h.
8129 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
8131         * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
8132         to the appropriate type.
8133         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
8134         (pos_to_constructor): Likewise.
8136 2014-05-13  Eric Botcazou  <ebotcazou@adacore.com>
8138         * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
8140 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
8141             Mike Stump  <mikestump@comcast.net>
8142             Richard Sandiford  <rdsandiford@googlemail.com>
8144         * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
8145         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
8146         (annotate_value): Use wide-int interfaces.
8147         * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
8149 2014-04-28  Richard Henderson  <rth@redhat.com>
8151         * gcc-interface/Makefile.in: Support aarch64-linux.
8153 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
8155         * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
8156         add 'Suffix' parameter and adjust comment.
8157         (Get_External_Name_With_Suffix): Delete.
8158         * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
8159         (Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
8160         'Suffix' parameter.
8161         (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
8162         Call Get_External_Name instead of Get_External_Name_With_Suffix.
8163         (Get_Secondary_DT_External_Name): Likewise.
8164         * exp_cg.adb (Write_Call_Info): Likewise.
8165         * exp_disp.adb (Export_DT): Likewise.
8166         (Import_DT): Likewise.
8167         * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
8168         parameter with False default.
8169         * comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
8170         * types.h (Fat_Pointer): Rename into...
8171         (String_Pointer): ...this.  Add comment on interfacing rules.
8172         * fe.h (Compiler_Abort): Adjust for above renaming.
8173         (Error_Msg_N): Likewise.
8174         (Error_Msg_NE): Likewise.
8175         (Get_External_Name): Likewise.  Add third parameter.
8176         (Get_External_Name_With_Suffix): Delete.
8177         * gcc-interface/decl.c (STDCALL_PREFIX): Define.
8178         (create_concat_name): Adjust call to Get_External_Name, remove call to
8179         Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
8180         * gcc-interface/trans.c (post_error): Likewise.
8181         (post_error_ne): Likewise.
8182         * gcc-interface/misc.c (internal_error_function): Likewise.
8184 2014-04-28  Richard Biener  <rguenther@suse.de>
8186         PR middle-end/60092
8187         * gcc-interface/utils.c: Define flag_isoc11.
8189 2014-04-26  Eric Botcazou  <ebotcazou@adacore.com>
8191         * gnatvsn.ads (Library_Version): Bump to 4.10.
8193 2014-04-23  Eric Botcazou  <ebotcazou@adacore.com>
8195         Revert
8196         2014-04-22  Richard Henderson  <rth@redhat.com>
8198         * gcc-interface/Makefile.in: Support aarch64-linux.
8200         2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
8202         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
8203         (Error_Msg_N): Likewise.
8204         (Error_Msg_NE): Likewise.
8205         (Get_External_Name_With_Suffix): Likewise.
8206         * types.h (Fat_Pointer): Delete.
8207         (String_Pointer): New type.
8208         (DECLARE_STRING_POINTER): New macro.
8209         * gcc-interface/decl.c (create_concat_name): Adjust.
8210         * gcc-interface/trans.c (post_error): Likewise.
8211         (post_error_ne): Likewise.
8212         * gcc-interface/misc.c (internal_error_function): Likewise.
8214 2014-04-22  Richard Henderson  <rth@redhat.com>
8216         * gcc-interface/Makefile.in: Support aarch64-linux.
8218         * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
8219         (__gnat_alternate_stack): Enable for all linux except ia64.
8221 2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
8223         * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
8224         (Error_Msg_N): Likewise.
8225         (Error_Msg_NE): Likewise.
8226         (Get_External_Name_With_Suffix): Likewise.
8227         * types.h (Fat_Pointer): Delete.
8228         (String_Pointer): New type.
8229         (DECLARE_STRING_POINTER): New macro.
8230         * gcc-interface/decl.c (create_concat_name): Adjust.
8231         * gcc-interface/trans.c (post_error): Likewise.
8232         (post_error_ne): Likewise.
8233         * gcc-interface/misc.c (internal_error_function): Likewise.
8235 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8236             Pierre-Marie de Rodat  <derodat@adacore.com>
8238         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
8239         scalar constant instead of a reference for renaming of scalar literal.
8240         Do not create a new object for constant renaming except for a function
8241         call.  Make sure a VAR_DECL is created for the renaming pointer.
8242         * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
8243         (fold_constant_decl_in_expr): New function.
8244         (Identifier_to_gnu): Use constant_decl_with_initializer_p.
8245         For a constant renaming, try to fold a constant DECL in the result.
8246         (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
8247         (Identifier_to_gnu): Reference the renamed object of constant renaming
8248         pointers directly.
8249         * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
8250         invalidate constant renaming pointers.
8252 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8254         * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
8255         (build_vector_type_for_size): New function.
8256         (build_vector_type_for_array): Likewise.
8257         (unchecked_convert): Build an intermediate vector type to convert
8258         from a generic array type to a vector type.
8259         (handle_vector_size_attribute): Reimplement.
8260         (handle_vector_type_attribute): Likewise.
8262 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8264         * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
8265         Is_OK_Static_Expression in lieu of Is_Static_Expression to
8266         detect valid arguments.
8268 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8270         * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
8272 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
8274         * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
8275         (components_to_record): Likewise.
8276         * gcc-interface/utils.c (make_aligning_type): Likewise.
8277         (maybe_pad_type): Likewise.
8278         (finish_record_type): Likewise.
8279         (rest_of_record_type_compilation): Likewise.
8281 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
8283         * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
8284         * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
8285         for Ivdep hint.
8286         * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
8287         hint for Loop_Optimize.
8288         * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
8289         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
8290         with new Ivdep hint.
8291         * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
8292         * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
8293         with new Ivdep hint.
8294         (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
8296 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
8297             Robert Dewar  <dewar@adacore.com>
8299         * opt.ads (Suppress_Back_Annotation): Remove as unused.
8300         * fe.h (Back_Annotate_Rep_Info): Likewise.
8301         (Global_Discard_Names): Likewise.
8302         (List_Representation_Info): Declare.
8303         * types.h (Uint_Minus_1): Likewise.
8304         * repinfo.ads: Document back-annotation change.
8305         * gcc-interface/gigi.h (init_gnat_decl): Declare.
8306         (destroy_gnat_decl): Likewise.
8307         * gcc-interface/decl.c (annotate_value): Do not create the cache of
8308         annotated values here but...
8309         <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
8310         in ASIS mode.
8311         (init_gnat_decl): ...here instead.  New function.
8312         (destroy_gnat_decl): Likewise.
8313         * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
8314         * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
8316 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
8318         * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
8319         offset for the field, if any.
8321 2014-04-09  Eric Botcazou  <ebotcazou@adacore.com>
8322             Svante Signell  <svante.signell@gmail.com>
8324         PR ada/54040
8325         PR ada/59346
8326         * s-osinte-x32.adb: New file.
8327         * s-linux.ads (Time): New section.
8328         * s-linux-alpha.ads (Time): Likewise.
8329         * s-linux-android.ads (Time: Likewise.
8330         * s-linux-hppa.ads (Time): Likewise.
8331         * s-linux-mipsel.ads (Time): Likewise.
8332         * s-linux-sparc.ads (Time): Likewise.
8333         * s-linux-x32.ads (Time): Likewise.
8334         * s-osprim-x32.ads (timespec): Adjust.
8335         (Clock): Likewise.
8336         (To_Timespec): Likewise.
8337         * s-osinte-linux.ads (Time): Define local subtypes for those defined
8338         in System.Linux.
8339         * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
8340         * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
8341         * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
8342         * s-osinte-solaris-posix.ads (timespec): Likewise.
8343         * s-osinte-posix.adb (To_Timespec): Likewise.
8344         * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
8346 2014-04-08  Eric Botcazou  <ebotcazou@adacore.com>
8348         PR ada/60411
8349         * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
8350         * s-linux-android.ads: New file.
8351         * s-intman-android.adb: Likewise.
8352         * s-osinte-android.ads: Adjust.
8353         * sigtramp-armdroid.c: Likewise.
8354         * sigtramp.h: Add Android support.
8356 2014-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8358         * gcc-interface/Makefile.in (alpha-vms): Add missing line.
8360 2014-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8362         PR ada/60703
8363         * system-linux-alpha.ads: Adjust for Ada 2005.
8364         * system-linux-mips.ads: Likewise.
8365         * system-linux-mips64el.ads: Likewise.
8366         * system-linux-mipsel.ads: Likewise.
8367         * system-linux-s390.ads: Likewise.
8368         * system-linux-s390x.ads: Likewise.
8369         * system-linux-sparc.ads: Likewise.
8370         * system-linux-sparcv9.ads: Likewise.
8371         * system-rtems.ads: Likewise.
8372         * system-vxworks-arm.ads: Likewise.
8374 2014-03-16  Andreas Schwab  <schwab@linux-m68k.org>
8376         PR ada/39172
8377         * gcc-interface/Makefile.in (target_cpu_default): Revert
8378         2013-10-11 change.
8380 2014-03-13  Eric Botcazou  <ebotcazou@adacore.com>
8382         PR ada/51483
8383         * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
8384         it to set the RM size.  Use directly 'size' for the Esize.
8385         (Create_Back_End_Float_Types): Adjust call to above.
8386         * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
8387         * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
8388         (Write_Target_Dependent_Values): Adjust comment.
8389         * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
8390         deal with it.
8391         (Write_Target_Dependent_Values): Write the precision in lieu of size.
8392         (Initialization): Read the precision in lieu of size and compute the
8393         size from the precision and the alignment.
8394         * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
8395         * gcc-interface/misc.c (enumerate_modes): Likewise.  Do not register
8396         types for vector modes, pass the size in addition to the precision.
8398 2014-03-10  Eric Botcazou  <ebotcazou@adacore.com>
8400         * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
8402 2014-03-07  Doug Rupp  <rupp@adacore.com>
8404         PR ada/60411
8405         * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
8406         (Support_64_Bit_Divides): Removed, no longer used.
8407         (ZCX_By_Default): Enabled.
8409 2014-02-25  Doug Rupp  <rupp@adacore.com>
8411         * gcc-interface/Makefile.in (arm-linux):
8412         (EH_MECHANISM): Use ARM unwinder (-arm)
8413         (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
8414         s-excmac-arm.ads.
8415         (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
8416         (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
8417         (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
8418         (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
8419         Add dependencies for sigtramp-armvxw.o.
8421 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8423         * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
8425 2014-02-25  Robert Dewar  <dewar@adacore.com>
8427         * rtsfind.adb (Is_RTE): Protect against entity with no scope
8428         field (previously this call blew up on the Standard entity).
8429         * sem_attr.adb (Analyze_Attribute, case Access): Remove
8430         test for No_Abort_Statements, this is now handled in
8431         Set_Entity_With_Checks.
8432         * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
8433         Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
8434         * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
8435         Set_Entity_With_Checks.
8436         (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
8437         Add checks for No_Abort_Statements.
8439 2014-02-25  Robert Dewar  <dewar@adacore.com>
8441         * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
8442         Check_Restriction is OK.
8444 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8446         * sem_ch3.adb (Process_Full_View): Better error message when
8447         the full view of  a private type without discriminants is an
8448         unconstrained type.
8449         * sem_ch7.adb (Uninstall_Declarations): Ditto.
8451 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8453         * sigtramp-armvxw.c: Also restore r0.
8455 2014-02-25  Robert Dewar  <dewar@adacore.com>
8457         * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
8458         unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
8459         set unconditionally.
8460         * erroutc.adb (Get_Warning_Tag): Does not give a leading space
8461         any more (Output_Msg_Text): Rewritten with new convention on
8462         output of warnings that are treated as errors.
8463         * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
8464         if Warn is False.
8465         * gnat_rm.texi: Updates to documentation on pragma
8466         Warning_As_Error.
8467         * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
8468         set Warning_Doc_Switch.
8469         * lib-writ.ads: Add documentation note on ALI file generation
8470         for C.
8471         * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
8472         (belongs in Sem).
8473         * sem_attr.adb (Resolve_Attribute, case Access):
8474         Abort_Task'Access violates the No_Abort_Statements restriction.
8475         * sem_res.adb (Resolve_Call): Check restriction
8476         No_Abort_Statements for call to Abort_Task or a renaming of it.
8478 2014-02-25  Robert Dewar  <dewar@adacore.com>
8480         * sem_ch3.adb (Array_Type_Declaration): Check for case of using
8481         type name as index.
8482         * lib.ads: Minor reformatting.
8483         * einfo.ads: Minor reformatting.
8485 2014-02-25  Doug Rupp  <rupp@adacore.com>
8487         * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
8488         use Short_Descriptor(S) as the argument passing mechanism.
8490 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8492         * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
8494 2014-02-25  Robert Dewar  <dewar@adacore.com>
8496         * atree.ads (Warnings_Treated_As_Errors): New variable.
8497         * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
8498         error object (Initialize): Initialize Warnings_As_Errors_Count
8499         (Write_Error_Summary): Include count of warnings treated as errors.
8500         * erroutc.adb (Warning_Treated_As_Error): New function.
8501         (Matches): Function moved to outer level of package.
8502         * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
8503         (Warning_Treated_As_Error): New function.
8504         * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
8505         * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
8506         * opt.ads (Config_Switches_Type): Add entry for
8507         Warnings_As_Errors_Count.
8508         (Warnings_As_Errors_Count): New variable.
8509         (Warnings_As_Errors): New array.
8510         * par-prag.adb: Add dummy entry for Warning_As_Error.
8511         * sem_prag.adb (Analyze_Pragma): Implement new pragma
8512         Warning_As_Error.
8513         * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
8515 2014-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8517         * sigtramp.h: Fix minor inaccuracy.
8519 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
8521         * gnat_ugn.texi: Added description of kill command.
8523 2014-02-25  Robert Dewar  <dewar@adacore.com>
8525         * gnat_rm.texi (Address_Clauses): Add a section discussing the
8526         problem of address clauses causing unexpected initialization,
8527         including the effect of Initialize_Scalars.
8529 2014-02-25  Robert Dewar  <dewar@adacore.com>
8531         * errout.adb: Various changes for better msgs for anonmous access
8532         subprogram types.
8533         * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
8534         argument.
8535         (Buffer_Remove): Version with character argument.
8536         * sem_attr.adb (Resolve_Attribute, case Access): Better handling
8537         of mismatching conventions for access-to-subprogram case.
8538         * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
8539         access types in record.
8540         * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
8541         types, including in records.
8543 2014-02-25  Doug Rupp  <rupp@adacore.com>
8545         * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
8546         enhancements and corrections.
8548 2014-02-25  Robert Dewar  <dewar@adacore.com>
8550         * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
8552 2014-02-25  Robert Dewar  <dewar@adacore.com>
8554         * gnat_rm.texi: First set of documentation additions for
8555         predefined RM units.
8556         * checks.adb: Minor reformatting.
8557         * sem_elab.adb (Check_Task_Activation): Minor fix to error
8558         message.
8559         * sem_util.adb: Minor reformatting.
8561 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
8563         * usage.adb (Usage): Add help on -gnateC.
8564         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
8565         * opt.ads (Generate_CodePeer_Messages): New flag.
8566         * gnat_ugn.texi: Document new switch -gnateC.
8568 2014-02-25  Ben Brosgol  <brosgol@adacore.com>
8570         * gnat_rm.texi: Corrected minor typos in Implementation Defined
8571         Aspects.
8572         * opt.ads: Minor reformatting.
8574 2014-02-25  Robert Dewar  <dewar@adacore.com>
8576         * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
8577         * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
8578         of -gnatel/-gnateL.
8579         * opt.ads (Warn_Info_Messages): New flag.
8580         * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
8581         messages.
8582         * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
8583         messages.
8584         * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
8585         * usage.adb: Add documentation of -gnatel/-gnateL Update
8586         documentation of -gnatwl/-gnatwL.
8587         * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
8588         * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
8590 2014-02-25  Robert Dewar  <dewar@adacore.com>
8592         * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
8593         * gnat_rm.texi: Document pragma Provide_Shift_Operators.
8594         * interfac.ads: Minor code reorganization (add pragma
8595         Compiler_Unit_Warning).
8596         * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
8597         * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
8598         Has_Shift_Operator flag.
8599         * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
8600         Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
8601         * sem_prag.adb: Implement pragma Provide_Shift_Operators.
8602         * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
8603         Add entry for Name_Amount.
8604         * checks.adb (Selected_Range_Checks): When checking for a null
8605         range, make sure we use the base type, and not the subtype for
8606         deciding a range is null.
8607         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
8608         for suspicious loop bound which is outside the range of the
8609         loop subtype.
8610         * gnat_ugn.texi: Add documentation section "Determining the
8611         Chosen Elaboration Order"
8612         * sem_ch13.adb (UC_Entry): Add field Act_Unit
8613         (Validate_Unchecked_Conversion): Store Act_Unit
8614         (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
8615         * treepr.adb: Minor reformatting.
8617 2014-02-25  Arnaud Charlet  <charlet@adacore.com>
8619         * usage.adb: Minor: fix typo.
8621 2014-02-25  Robert Dewar  <dewar@adacore.com>
8623         * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
8624         s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
8625         s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
8626         s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
8627         g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
8628         s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
8629         a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
8630         s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
8631         a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
8632         s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
8633         a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
8634         s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
8635         s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
8636         Compiler_Unit_Warning, change Compiler_Unit everywhere to
8637         Compiler_Unit_Warning.
8639 2014-02-25  Sergey Rybin  <rybin@adacore.com frybin>
8641         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
8642         in ASIS mode aggregates that are used as aspect definitions.
8644 2014-02-25  Robert Dewar  <dewar@adacore.com>
8646         * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
8647         reformatting.
8649 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8651         * freeze.adb (Freeze_Entity): If the return type of a function
8652         is a limited view, and the non-limited view has not been seen yet,
8653         defer freezing to some later point.
8655 2014-02-25  Robert Dewar  <dewar@adacore.com>
8657         * sem_ch3.adb: Minor reformatting.
8659 2014-02-25  Robert Dewar  <dewar@adacore.com>
8661         * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
8662         s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
8663         s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
8664         s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
8665         s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
8666         s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
8667         s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
8668         s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
8669         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
8670         s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
8671         s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
8672         s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
8673         s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
8674         s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
8675         snames.ads-tmpl: Change Compiler_Unit everywhere to
8676         Compiler_Unit_Warning.
8678 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
8680         * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
8681         (Collect_Body_Postconditions_In_Decls): New routine.
8682         (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
8683         postcondition aspects or pragmas that appear on a subprogram
8684         body stub.
8685         (Collect_Spec_Preconditions): Factor out code. Handle
8686         precondition aspects or pragmas that appear on a subprogram
8687         body stub.
8688         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
8689         aspects that apply to a subprogram body stub is no longer delayed,
8690         the aspects are analyzed on the spot.
8691         (SPARK_Aspect_Error):
8692         Aspects that apply to a subprogram declaration cannot appear in
8693         a subunit.
8694         * sem_ch10.adb Remove with and use clause for Sem_Ch13.
8695         (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
8696         is now a local variable. Code cleanup. Analysis related to
8697         the aspects of a subprogram body stub is now carried out by
8698         Analyze_Subprogram_Body_Helper. Do not propagate the aspects
8699         and/or pragmas of a subprogram body stub to the proper body
8700         as this is no longer needed. Do not analyze the aspects of a
8701         subprogram stub when the corresponding source unit is missing.
8702         (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
8703         on a stub.
8704         (Analyze_Task_Body_Stub): Flag the illegal use of
8705         aspects on a stub.
8706         (Optional_Subunit): Add local variable Unum.
8707         * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
8708         pragma when it applies to a subprogram body stub.
8709         * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
8710         Depends and Global can now apply to a subprogram body stub as
8711         long as it acts as its own spec.
8712         (Analyze_Refined_Pragma):
8713         Code reformatting. Refinement pragmas cannot apply to a subunit.
8715 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
8717         * einfo.ads Update the usage of flag
8718         Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
8719         * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
8720         now starts with the letter 'C'. This makes reading expanded
8721         code easier.
8722         * exp_ch7.adb (Establish_Transient_Scope): Add local variable
8723         Iter_Loop. Signal that an Ada 2012 iterator loop requires
8724         secondary stack management when creating a transient scope for
8725         an element reference.
8726         * exp_util.adb (Process_Statements_For_Controlled_Objects):
8727         When wrapping the statements of a loop, pass the E_Loop entity
8728         to the wrapping machinery.
8729         (Wrap_Statements_In_Block): Add
8730         formal parameter Scop along with comment on usage. Add local
8731         variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
8732         block as requiring secondary stack management when the block is
8733         created inside an Ada 2012 iterator loop. This ensures that any
8734         reference objects are reclaimed on each iteration of the loop.
8735         * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
8736         tasked with the handling of container iterators as requiring
8737         secondary stack management. This ensures that iterators are
8738         reclaimed when the loop terminates or is exited in any fashion.
8739         * sem_util.adb (Add_Block_Identifier): New routine.
8740         (Find_Enclosing_Iterator_Loop): New routine.
8741         * sem_util.ads (Add_Block_Identifier): New routine.
8742         (Find_Enclosing_Iterator_Loop): New routine.
8744 2014-02-25  Robert Dewar  <dewar@adacore.com>
8746         * sinfo.ads: Minor reformatting.
8748 2014-02-25  Tristan Gingold  <gingold@adacore.com>
8750         * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
8752 2014-02-25  Pascal Obry  <obry@adacore.com>
8754         * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
8756 2014-02-25  Tristan Gingold  <gingold@adacore.com>
8758         * sem_ch10.adb: Minor comment fix.
8760 2014-02-25  Bob Duff  <duff@adacore.com>
8762         * s-tasdeb.adb: Misc cleanup of this package,
8763         including printing addresses in hexadecimal.
8764         (Write): Fix minor bug when taking 'Address of an empty string.
8766 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8768         * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
8769         public child unit when it does not refer to the abstract state
8770         of a public ancestor.
8772 2014-02-25  Yannick Moy  <moy@adacore.com>
8774         * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
8775         Validity_Checks in GNATprove and CodePeer modes.
8777 2014-02-25  Pascal Obry  <obry@adacore.com>
8779         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
8780         Artifacts attribute.
8782 2014-02-25  Yannick Moy  <moy@adacore.com>
8784         * sem_prag.adb: Minor reformatting to get consistent messages.
8786 2014-02-25  Robert Dewar  <dewar@adacore.com>
8788         * checks.adb: Minor reformatting.
8789         * sinfo.ads (Do_Range_Check): Document that this flag is never
8790         passed to the back end.
8792 2014-02-25  Yannick Moy  <moy@adacore.com>
8794         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
8795         sem_ch6.adb: Remove useless references to SPARK RM in error messages.
8797 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
8799         * sem_res.adb (Appears_In_Check): New routine.
8800         (Resolve_Entity_Name): Remove local variables Prev and
8801         Usage_OK. Par is now a constant. Remove the parent chain traversal
8802         as the placement of a volatile object with enabled property
8803         Async_Writers and/or Effective_Reads must appear immediately
8804         within a legal construct.
8806 2014-02-25  Hristian Kirtchev  <kirtchev@adacore.com>
8808         * checks.adb (Apply_Selected_Range_Checks):
8809         Alphabetize local constants and variables. Add comments.
8810         Always insert a range check that requires runtime evaluation into
8811         the tree.
8813 2014-02-25  Robert Dewar  <dewar@adacore.com>
8815         * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
8817 2014-02-25  Bob Duff  <duff@adacore.com>
8819         * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
8820         iterations while waiting for independent tasks to terminate;
8821         if an independent task does not terminate, we do not want to
8822         hang here. In that case, the thread will be terminated when the
8823         process exits.
8824         * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
8826 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8828         * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
8829         used to perform pre-analysis of the expression for SPARK
8830         aspects that have a non-standard syntax, such as GLobal and
8831         Initializes. The procedure applies to the original expression
8832         in an aspect specification, prior to the analysis of the
8833         corresponding pragma, in order to provide semantic information
8834         for ASIS navigation purposes.
8835         (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
8836         Call new subprogram.
8838 2014-02-25  Yannick Moy  <moy@adacore.com>
8840         * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
8842 2014-02-25  Doug Rupp  <rupp@adacore.com>
8844         * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
8845         (__gnat_adjust_context_for_raise): Bump the PC by 2.
8847 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8849         * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
8850         misplaced IS, add a statement sequence to improper body only if
8851         one has not been parsed already.
8853 2014-02-25  Ed Schonberg  <schonberg@adacore.com>
8855         * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
8856         mismatch when multidimensional array is updated with a single
8857         index.
8859 2014-02-25  Yannick Moy  <moy@adacore.com>
8861         * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
8862         sem_ch6.adb: Mark most references to SPARK RM in error messages
8863         for removal.
8865 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8867         * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
8868         appears in a list of basic declarations, complete the tree with
8869         an empty statement list, to prevent cascaded errors and crashes
8870         if semantic analysis is attempted.
8872 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8874         * g-sercom-mingw.adb (Open): Fix incorrect test for error return
8875         value.
8876         * erroutc.adb: Minor reformatting.
8878 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8880         * sem_prag.adb (Check_Clause_Syntax): Account
8881         for a solitary input item in a dependency list.
8883 2014-02-24  Yannick Moy  <moy@adacore.com>
8885         * gnat1drv.adb (Adjust_Global_Switches): Do not
8886         use validity checks at all in GNATprove_Mode.
8888 2014-02-24  Robert Dewar  <dewar@adacore.com>
8890         * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
8891         atree.adb, atree.ads: Minor reformatting.
8893 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
8895         * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
8896         global and dependence refinement when SPARK_Mode is off.
8897         * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
8898         state refinement when SPARK_Mode is off.
8899         * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
8900         variable Decl. Insert the generated pragma for Refined_State
8901         after a potential pragma SPARK_Mode.
8902         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
8903         constant Deps. Remove local variable Expr. Check the syntax
8904         of pragma Depends when SPARK_Mode is off. Factor out the
8905         processing for extra parenthesis around individual clauses.
8906         (Analyze_Global_In_Decl_List): Items is now a constant. Check
8907         the syntax of pragma Global when SPARK_Mode is off.
8908         (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
8909         Initializes when SPARK_Mode is off.
8910         (Analyze_Part_Of): Check
8911         the syntax of the encapsulating state when SPARK_Mode is off.
8912         (Analyze_Pragma): Check the syntax of pragma Abstract_State when
8913         SPARK_Mode is off. Move the declaration order check with respect
8914         to pragma Initializes to the end of the processing. Do not verify
8915         the declaration order for pragma Initial_Condition when SPARK_Mode
8916         is off. Do not complain about a useless package refinement when
8917         SPARK_Mode is off.
8918         (Analyze_Refined_Depends_In_Decl_Part): Refs
8919         is now a constant. Check the syntax of pragma Refined_Depends
8920         when SPARK_Mode is off.
8921         (Analyze_Refined_Global_In_Decl_Part):
8922         Check the syntax of pragma Refined_Global when SPARK_Mode is off.
8923         (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
8924         Refined_State when SPARK_Mode is off.
8925         (Check_Dependence_List_Syntax): New routine.
8926         (Check_Global_List_Syntax): New routine.
8927         (Check_Initialization_List_Syntax): New routine.
8928         (Check_Item_Syntax): New routine.
8929         (Check_State_Declaration_Syntax): New routine.
8930         (Check_Refinement_List_Syntax): New routine.
8931         (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
8933 2014-02-24  Robert Dewar  <dewar@adacore.com>
8935         * a-tags.adb, s-os_lib.adb: Minor reformatting.
8937 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8939         * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
8940         strerror message, not just numeric errno value.
8942 2014-02-24  Doug Rupp  <rupp@adacore.com>
8944         * raise-gcc.c (exception_class_eq): Make endian neutral.
8946 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
8948         * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
8949         flag, and reset Etype and Analyzed attributes unconditionally
8950         when copying a tree that may be partly analyzed.
8951         * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
8952         * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
8953         within a subprogram body and applies to it, remove it from the
8954         body before making a copy of it, to prevent spurious errors when
8955         analyzing the copied body.
8957 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8959         * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
8960         * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
8961         vxWorks.h has been included.  Also ensure that file attributes
8962         related definitions are output even in cases where socket support
8963         is not enabled.
8964         * a-tags.adb: Code clean up.
8965         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
8966         instead of -I to add the main ada source directory to the header
8967         search path, in order to avoid conflict between our own "types.h"
8968         and VxWork's <types.h>.
8970 2014-02-24  Robert Dewar  <dewar@adacore.com>
8972         * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
8973         * debug.adb: Remove documentation of -gnatd.X, no longer used.
8974         * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
8976 2014-02-24  Bob Duff  <duff@adacore.com>
8978         * gnat_ugn.texi: Improve documentation of gnatpp.
8980 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8982         * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
8983         g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
8984         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
8985         g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
8986         a chars_ptr, because on Windows this is a renaming of
8987         Socket_Error_Message.
8989 2014-02-24  Robert Dewar  <dewar@adacore.com>
8991         * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
8992         s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
8993         a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
8994         reorganization.
8996 2014-02-24  Thomas Quinot  <quinot@adacore.com>
8998         * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
8999         that the source directory containing s-oscons-tmplt.c is on the
9000         include path, so that all internal header files are available.
9002 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9004         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
9005         domain of iteration is an attribute reference 'Old, this is an
9006         Ada 2012 iterator and the loop must be rewritten as such.
9008 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9010         * s-fileio.adb (Errno_Message): Remove, use shared version from
9011         s-os_lib instead.
9012         * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
9013         * g-stseme (Socket_Error_Message): Reimplement in terms of new
9014         s-os_lib function.
9015         * g-socthi.ads, g-socthi.adb: Change profile of
9016         Socket_Error_Message to return String to allow the above.
9017         * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
9018         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9019         * g-socthi-vxworks.ads: Update to account for the above profile
9020         change.
9021         * a-tags.adb: Use strlen builtin binding provided by s-crtl.
9022         * s-crtl.ads (strncpy): New procedure.
9023         * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
9024         Use import from s-crtl.
9025         * a-envvar.adb, osint.adb: Use imports of C runtime functions
9026         from s-crtl instead of re-importing locally.
9028 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9030         * sem_prag.adb (Analyze_Global_Item): Emit the
9031         variable related checks concerning volatile objects only when
9032         SPARK_Mode is on.
9034 2014-02-24  Robert Dewar  <dewar@adacore.com>
9036         * sem_ch5.adb (Analyze_Iterator_Specification): use
9037         Error_Msg_Ada_2012_Feature.
9039 2014-02-24  Jose Ruiz  <ruiz@adacore.com>
9041         * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
9042         No_Local_Timing_Events and No_Specific_Termination_Handlers
9043         must be set, according to the Ravenscar profile definition
9044         in D.13(6/3).
9046 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9048         * sem_ch6.adb (Analyze_Expression_Function): If this is a
9049         completion, freeze return type and its designated type if needed.
9051 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9053         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
9054         'Address): When moving initialization statements to a freeze
9055         entity, keep them under a single node (i.e. do not unwrap
9056         expressions with actions), and set the Initialization_Statements
9057         attribute again so that processing of a later pragma Import can
9058         still remove them.
9060 2014-02-24  Claire Dross  <dross@adacore.com>
9062         * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
9063         a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
9064         a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
9065         Left/Right to First_To_Previous/Current_To_Last.
9067 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9069         * adaint.h (struct file_attributes): New component "error"
9070         (__gnat_error_attributes): Accessor for the above.
9071         * adaint.c (__gnat_error_attributes): New subprogram
9072         (__gnat_stat): Fix returned value (expect errno value)
9073         (__gnat_stat_to_attr): Add management of error component (set to
9074         stat errno value, except for missing files where it is set to 0,
9075         and exists is set to 0).
9076         * osint.ads (File_Attributes_Size): Update per change above,
9077         also clarify documentation.
9078         * s-filatt.ads: New file, binding to file attributes related
9079         functions.
9080         * Makefile.rtl (s-filatt): New runtime unit.
9081         * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
9082         to library function if not available on target).
9083         * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
9084         * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
9085         SIZEOF_struct_dirent_alloc): New constants.
9086         * Make-generated.in (s-oscons.ads): Now requires adaint.h.
9087         * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
9088         Perform appropriate error checking if stat fails (do not just
9089         ignore existing files if stat fails)
9090         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
9091         dependencies.
9093 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9095         * sem_prag.adb (Analyze_Global_Item): Move the check concerning
9096         the use of volatile objects as global items in a function to
9097         the variable related checks section.
9098         * sem_util.adb (Async_Readers_Enabled): Directly call
9099         Has_Enabled_Property.
9100         (Async_Writers_Enabled): Directly call Has_Enabled_Property.
9101         (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
9102         (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
9103         (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
9104         Update the comment on usage. State_Has_Enabled_Property how handles
9105         the original logic of the routine. Add processing for variables.
9106         (State_Has_Enabled_Property): New routine.
9107         (Variable_Has_Enabled_Property): New routine.
9109 2014-02-24  Robert Dewar  <dewar@adacore.com>
9111         * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
9112         Minor reformatting.
9113         * atree.ads, atree.adb (Node35): New function.
9114         (Set_Node35): New procedure.
9115         * debug.adb: Define new debug flag -gnatd.X.
9116         * einfo.ads, einfo.adb (Import_Pragma): New field.
9117         * freeze.adb (Wrap_Imported_Procedure): New procedure (not
9118         really active yet, has to be activated with -gnatd.X.
9119         * sem_prag.adb (Set_Imported): Set new Import_Pragma
9120         field (Set_Imported): Don't set Is_Public (see
9121         Freeze.Wrap_Imported_Subprogram)
9122         * par-ch3.adb (P_Component_List): Handle unexpected null component.
9124 2014-02-24  Yannick Moy  <moy@adacore.com>
9126         * sem_ch3.adb: Correct reference to SPARK RM in error messages.
9127         * gnat_rm.texi: Correct documentation of attribute Update.
9129 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9131         * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
9132         iterator in older versions of Ada.
9134 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
9136         * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
9137         par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
9139 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9141         * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
9142         indexed_components that are instances of Ada 2012 container
9143         indexing operations. Analysis and resolution of such nodes
9144         is performed on the attribute, and the original source is
9145         preserved for ASIS operations. If expansion is enabled, the
9146         indexed component is replaced by the value of this attribute,
9147         which is in a call to an Indexing aspect, in most case wrapped
9148         in a dereference operation.
9149         * sem_ch4.adb (Analyze_Indexed_Component): Create
9150         Generalized_Indexing attribute when appropriate.
9151         (Analyze_Call): If prefix is not overloadable and has an indexing
9152         aspect, transform into an indexed component so it can be analyzed
9153         as a potential container indexing.
9154         (Analyze_Expression): If node is an indexed component with a
9155         Generalized_ Indexing, do not re-analyze.
9156         * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
9157         of an indexed_component that has been transformed into a container
9158         indexing operation.
9159         (Resolve_Indexed_Component): Call the above when required.
9160         (Resolve): Do not insert an explicit dereference operation on
9161         an indexed_component whose type has an implicit dereference:
9162         the operation is inserted when resolving the related
9163         Generalized_Indexing.
9165 2014-02-24  Olivier Ramonat  <ramonat@adacore.com>
9167         * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
9168         Environment.
9170 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9172         * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
9173         error messages.
9174         (Inconsistent_Mode_Error): Remove leading spaces in error messages.
9175         Merge the expected and available mode errors.
9176         (Report_Unused_Constituents): Remove leading spaces in error messages.
9177         (Report_Unused_States): Remove leading spaces in error messages.
9179 2014-02-24  Thomas Quinot  <quinot@adacore.com>
9181         * par_sco.adb (Traverse_One): Refine categorization of statement
9182         SCOs.
9184 2014-02-24  Robert Dewar  <dewar@adacore.com>
9186         * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
9187         Pure_05, Pure_12 and Preelaborate_05.
9188         * gnat_rm.texi: Update accordingly.
9189         * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
9190         pragmas Document one argument form of Ada_12/Ada_2012 pragmas
9191         Recognize one argument form of these pragmas only in GNAT mode
9192         (-gnatg).
9194 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9196         * s-dimmks.ads: Replace symbol for temperature, previously the
9197         Greek letter Theta, by the ASCII @ sign.
9198         * s-diflio.ads: ditto.
9200 2014-02-24  Robert Dewar  <dewar@adacore.com>
9202         * exp_ch4.adb: Minor code reorganization (use OR for boolean
9203         variables).
9204         * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
9206 2014-02-24  Ben Brosgol  <brosgol@adacore.com>
9208         * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
9209         so that references to gnatmem and ASIS tools do not appear in the FSF
9210         edition of the GNAT User's Guide.
9212 2014-02-24  Yannick Moy  <moy@adacore.com>
9214         * freeze.adb (Freeze_Entity): Do not issue warning
9215         for pre/post being ignored on imported subprogram in GNATprove
9216         mode.
9218 2014-02-24  Robert Dewar  <dewar@adacore.com>
9220         * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
9221         stand.ads, sem_eval.adb: Minor reformatting.
9223 2014-02-24  Yannick Moy  <moy@adacore.com>
9225         * sem_prag.adb: Minor rewording in error message.
9227 2014-02-24  Johannes Kanig  <kanig@adacore.com>
9229         * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
9230         GNATprove_mode, gnat2why doesn't need nor use these types.
9232 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
9234         * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
9235         target, in the case of signed integer exponentiation that uses a
9236         run-time routine, always select the Exp_* versions, since overflow
9237         checking is automatically done by AAMP arithmetic instructions.
9239 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9241         * sem_ch13.adb (Analyze_Aspect_Specifications):
9242         When the related context is a package instace, insert pragma
9243         Abstract_State after all internally-generated renamings related
9244         to the instance "header".
9246 2014-02-24  Ed Schonberg  <schonberg@adacore.com>
9248         * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
9249         subprograms.
9250         * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
9251         call to an abstract subprogram is legal if it appears in a
9252         pre/postcondition of another abstract operation.
9254 2014-02-24  Sergey Rybin  <rybin@adacore.com frybin>
9256         * gnat_ugn.texi: Misc updates.
9258 2014-02-24  Hristian Kirtchev  <kirtchev@adacore.com>
9260         * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
9262 2014-02-24  Gary Dismukes  <dismukes@adacore.com>
9264         * layout.adb (Layout_Variant_Record): Instantiate
9265         Generic_Check_Choices and call Check_Choices before calling
9266         Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
9267         set to prevent generating incorrect discriminant-checking
9268         functions for 'others' variants (functions that unconditionally
9269         return True rather than accounting for the values covered by the
9270         'others' choice).
9271         * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
9272         Formal_Derived_Matching.
9273         (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
9274         * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
9275         Formal_Derived_Matching formal to Subtypes_Statically_Match.
9276         (Subtypes_Statically_Match): Suppress the Object_Size matching
9277         test in the case where Formal_Derived_Matching is True.
9278         * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
9279         True for Formal_Derived_Matching_Formal on the call to
9280         Subtypes_Statically_Compatible.
9282 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
9284         * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
9286 2014-02-23  Eric Botcazou  <ebotcazou@adacore.com>
9288         * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
9289         Look through a conversion between original and packable version to get
9290         the base object.
9291         (build_component_ref): Rework comment and fix formatting.
9293 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
9295         * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
9296         project-specific options.
9298 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9300         * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
9301         not Constraint_Error.
9302         * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
9303         * sem_ch5.adb: Code clean up.
9305 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
9307         * sem_prag.adb (Usage_Error): Remove local
9308         constant Typ. Remove the specialized diagnostics for unconstrained
9309         or tagged items as those are not part of the explicit input set
9310         of the related subprogram and should not be flagged.
9312 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9314         * sem_attr.adb: Add guard to preserve all errors.
9316 2014-02-20  Vincent Celier  <celier@adacore.com>
9318         * switch-m.adb (Normalize_Compiler_Switches): Take into account
9319         switches that are recorded in ALI files: -gnateA, -gnateE,
9320         -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
9322 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9324         * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
9325         of an element iterator form over a formal container with an
9326         Iterable aspect.
9327         * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
9328         to create declaration and loop statements for both forms of
9329         container iterators.
9330         (Expand_Formal_Container_Element_Iterator): New procedure
9331         to handle loops of the form  "for E of C" when C is a formal
9332         container.
9333         (Expand_Formal_Container_Iterator): Code cleanup.
9335 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
9337         * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
9338         (Analyze_Contract_Case): Remove the use of
9339         "may". Replace "aspect Contract_Cases" to avoid categorization
9340         of aspect vs pragma.
9341         (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
9342         (Analyze_Global_Item): Remove
9343         the use of "formal", specify the subprogram.  Split the
9344         error message about a state with visible refinement into
9345         two. Remove the use of "global" from "volatile global item".
9346         (Analyze_Initialization_Item): Ensure that the SPARK RM reference
9347         is on one line.
9348         (Analyze_Input_Output): Update the call to
9349         Check_Mode. Specify the duplicated item. Reword the error
9350         message concerning an input of a null output list. Use "\"
9351         for error message continuation.
9352         (Analyze_Part_Of): Remove
9353         the use of "may". Use "\" for error message continuation.
9354         (Analyze_Refined_Depends_In_Decl_Part): Update the error
9355         message concerning a useless refinement to match the format
9356         of Refined_Global.
9357         (Analyze_Refined_Global_In_Decl_Part): Reword the error message
9358         concerning a useless refinement.
9359         (Analyze_Refinement_Clause): Use "\" for error message continuation.
9360         (Check_Constituent_Usage): Use "\" for error message continuation.
9361         (Check_Dependency_Clause): Use "\" for error message continuation.
9362         (Check_Matching_Constituent): Use "\" for error message continuation.
9363         (Check_Missing_Part_Of): Use "\" for error message continuation.
9364         (Check_Mode): Renamed to
9365         Check_Role. Update the comment on usage. Redo the error reporting
9366         to use Role_Error.
9367         (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
9368         message continuation.
9369         (Find_Mode): Renamed to Find_Role. Update the parameter profile along
9370         with comment on usage. Update all occurrences of Is_Input and Is_Output.
9371         (Inconsistent_Mode_Error): Use "\" for error message continuation.
9372         (Input_Match): Use "\" for error message continuation.
9373         (Role_Error): New routine.
9374         (Set_Convention_From_Pragma): Use "\" for error message continuation.
9375         (Usage_Error): Add local variable Error_Msg. Build specialized error
9376         message showcasing the offending item kind. Redo the diagnostics for
9377         unconstrained types.
9379 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9381         * exp_util.adb (Is_Iterated_Container): Use high-level primitives
9382         to determine whether a type is a container type, rather than
9383         examining only its type declaration, so that subtypes and derived
9384         types are handled properly.
9386 2014-02-20  Sergey Rybin  <rybin@adacore.com frybin>
9388         * gnat_ugn.texi: gnatmetric: add description of project-specific
9389         options.
9391 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9393         * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
9394         all choices in an association for a record type have the same
9395         type, as is done for record aggregates.
9397 2014-02-20  Robert Dewar  <dewar@adacore.com>
9399         * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
9400         Unmodified rather than Warnings (Off). Make comments
9401         uniform in the four affected units.
9403 2014-02-20  Robert Dewar  <dewar@adacore.com>
9405         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
9406         Object_Size): For non-scalar types allow any value that is a
9407         multiple of 8.
9408         * gnat_rm.texi: Document Object_Size for composites more clearly.
9410 2014-02-20  Yannick Moy  <moy@adacore.com>
9412         * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
9414 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9416         * stand.ads: Raise_Type: new predefined entity, used as the type
9417         of a Raise_Expression prior to resolution.
9418         * cstand.adb: Build entity for Raise_Type.
9419         * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
9420         initial type of the node.
9421         * sem_type.adb (Covers): Raise_Type is compatible with all
9422         other types.
9423         * sem_res.adb (Resolve): Remove special handling of Any_Type on
9424         Raise_Expression nodes.
9425         (Resolve_Raise_Expression): Signal ambiguity if the type of the
9426         context is still Raise_Type.
9428 2014-02-20  Robert Dewar  <dewar@adacore.com>
9430         * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
9431         mismatching predicates.
9432         * sem_ch6.adb (Check_Conformance): Give better messages on
9433         predicate mismatch.
9434         * sem_eval.adb (Predicates_Match): Move to spec.
9435         * sem_eval.ads (Predicates_Match): Moved here from body.
9437 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9439         * a-cbmutr.adb: Use default value in Insert_Child.
9441 2014-02-20  Vincent Celier  <celier@adacore.com>
9443         * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
9444         Stringt.Initialize in all project aware tools.
9446 2014-02-20  Doug Rupp  <rupp@adacore.com>
9448         * gnat_ugn.texi: Document gnatbind -X option.
9449         * vms_data.ads: Minor warnings documentation reformatting.
9451 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9453         * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
9454         procedure for a base type.
9456 2014-02-20  Robert Dewar  <dewar@adacore.com>
9458         * sem_ch4.adb (Analyze_Case_Expression): Get type from first
9459         expression with type info.
9460         * sem_ch13.adb: Minor reformatting.
9461         * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
9462         False if predicates do not match on the two types.
9464 2014-02-20  Arnaud Charlet  <charlet@adacore.com>
9466         * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
9467         In Relaxed_RM_Semantics mode, allow any static integer value,
9468         for compatibility with other compilers.
9470 2014-02-20  Vincent Celier  <celier@adacore.com>
9472         * errutil.adb (Initialize): Properly initialize entry in table
9473         Warnings when warnings are suppressed.
9475 2014-02-20  Robert Dewar  <dewar@adacore.com>
9477         * s-os_lib.ads: Add warning about non-portability of Rename_File.
9478         * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
9479         * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
9480         * gnat_ugn.texi: Document no warnings on junk variable names.
9481         * layout.adb: Minor code reorganization (use Ekind_In).
9482         * stringt.adb: Move initialization of Null_String_Id to Initialize
9483         routine.
9485 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9487         * sem_ch13.adb: Initialize optional Element_Id.
9489 2014-02-20  Robert Dewar  <dewar@adacore.com>
9491         * s-os_lib.ads (Rename_File): Minor commment addition.
9493 2014-02-20  Thomas Quinot  <quinot@adacore.com>
9495         * einfo.ads: Minor reformatting.
9497 2014-02-20  Hristian Kirtchev  <kirtchev@adacore.com>
9499         * aspects.adb (Exchange_Aspects): New routine.
9500         * aspects.ads (Exchange_Aspects): New routine.
9501         * atree.adb (Rewrite): Do not check whether the save node has
9502         aspects as it never will, instead check the node about to be clobbered.
9503         * einfo.adb (Write_Field25_Name): Abstract_States can appear in
9504         entities of generic packages.
9505         * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
9506         pointer of an aspect specification list after rewriting takes place.
9507         * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
9508         specifications of the generic template and the copy used for analysis.
9509         * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
9510         the aspect specifications of the generic template and the
9511         copy used for analysis.
9512         (Analyze_Package_Instantiation): Propagate the aspect specifications
9513         from the generic template to the instantiation.
9514         (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
9515         specifications from the generic template to the instantiation.
9516         * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
9517         Abstract_State, Initializes and Initial_Condition when they
9518         apply to a package instantiation.
9520 2014-02-20  Robert Dewar  <dewar@adacore.com>
9522         * stringt.adb: Add call to Initialize in package initialization.
9524 2014-02-20  Robert Dewar  <dewar@adacore.com>
9526         * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
9527         a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
9528         a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
9529         a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
9530         reformatting.
9532 2014-02-20  Bob Duff  <duff@adacore.com>
9534         * s-os_lib.ads: Minor: Remove incorrect comment.
9536 2014-02-20  Robert Dewar  <dewar@adacore.com>
9538         * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
9540 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9542         * a-cborma.adb (Assign): When creating a node without a specified
9543         element, insert an uninitialized element in the map, because
9544         the instance may provide an element type with a default
9545         initialization, e.g a scalar with a Default_Value aspect.
9546         * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
9547         (Insert): In the version without explicit element, provide an
9548         uninitialized element, as above.
9549         * a-cbdlli.adb (Append): In the version without explicit element,
9550         provide an uninitalized element, as above.
9551         (Allocate): Remove unused version.
9553 2014-02-20  Robert Dewar  <dewar@adacore.com>
9555         * sem_elab.adb: Minor code reorganization (use Nkind_In).
9556         * stringt.adb: Remove temporary pragma Warnings (Off).
9557         * stringt.ads: Add pragma Elaborate_Body to ensure initialization
9558         of Null_String_Id.
9560 2014-02-20  Matthew Heaney  <heaney@adacore.com>
9562         * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
9563         index.
9565 2014-02-20  Ed Schonberg  <schonberg@adacore.com>
9567         * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
9568         properly the cursor type for subsequent volatile testing in SPARK
9569         mode, when domain is a formal container with an Iterabe aspect.
9571 2014-02-20  Robert Dewar  <dewar@adacore.com>
9573         * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
9574         (Set_Specific_Warning_Off): Add Reason argument.
9575         * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
9576         (Set_Specific_Warning_Off): Add Reason argument.
9577         * erroutc.adb (Warnings_Entry): Add Reason field
9578         (Specific_Warning_Entry): Add Reason field.
9579         (Warnings_Suppressed): return String_Id for Reason.
9580         (Warning_Specifically_Suppressed): return String_Id for Reason.
9581         * erroutc.ads (Warnings_Entry): Add Reason field.
9582         (Specific_Warning_Entry): Add Reason field.
9583         (Set_Specific_Warning_Off): Add Reason argument.
9584         (Set_Warnings_Mode_Off): Add Reason argument.
9585         (Warnings_Suppressed): return String_Id for Reason.
9586         (Warning_Specifically_Suppressed): return String_Id for Reason.
9587         * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
9588         (Warning_Specifically_Suppressed): returns String_Id for Reason
9589         * gnat_rm.texi: Document that Warning parameter is string literal
9590         or a concatenation of string literals.
9591         * par-prag.adb: New handling for Reason argument.
9592         * sem_prag.adb (Analyze_Pragma, case Warning): New handling
9593         for Reason argument.
9594         * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
9595         * sem_warn.ads (Warnings_Off_Entry): Add reason field.
9596         * stringt.adb: Set Null_String_Id.
9597         * stringt.ads (Null_String_Id): New constant.
9599 2014-02-20  Robert Dewar  <dewar@adacore.com>
9601         * einfo.ads: Minor comment addition: Etype of package is
9602         Standard_Void_Type.
9603         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
9604         exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
9605         exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
9606         exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
9607         freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
9608         sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
9609         sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
9610         sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
9611         Replace all calls with calls to New_Occurrence_Of.
9613 2014-02-20  Robert Dewar  <dewar@adacore.com>
9615         * par-util.adb (Ignore, case of right paren): Make this a
9616         serious error.
9618 2014-02-19  Robert Dewar  <dewar@adacore.com>
9620         * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
9621         * debug.adb: Remove -gnatd.X switch, no longer used.
9622         * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
9623         now always made.
9625 2014-02-19  Bob Duff  <duff@adacore.com>
9627         * g-socket.ads: Minor: Correct some comments.
9629 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9631         * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
9633 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
9635         * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
9636         an error on out of range priorities if Relaxed_RM_Semantics.
9637         * sem_prag.adb (Analyze_Pragma): Ditto.
9639 2014-02-19  Bob Duff  <duff@adacore.com>
9641         * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
9642         where F denotes the renaming of an enumeration literal, and
9643         issue a specialized error message.
9645 2014-02-19  Matthew Heaney  <heaney@adacore.com>
9647         * a-chtgop.ads (Checked_Index): New operation.
9648         (Next): Changed mode of hash table.
9649         * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
9650         (Generic_Read, Reserve_Capacity): Ditto.
9651         (Generic_Equal): Detect tampering.
9652         (Next): Changed mode of hash table, detect tampering.
9653         * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
9654         operation.
9655         (Find): Changed mode of hash table.
9656         * a-chtgke.adb (Checked_Equivalent_Keys): New operation
9657         (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
9658         tampering.
9659         (Find): Changed mode of hash table, check for tampering.
9660         (Generic_Replace_Element): Check for tampering.
9661         * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
9662         * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
9663         operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
9664         Detect tampering.
9665         (Find, Generic_Replace_Element): Check for tampering.
9666         * a-chtgbo.ads (Checked_Index): New operation.
9667         * a-chtgbo.adb (Checked_Index): New operation
9668         (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
9669         (Generic_Read, Next): Ditto.
9670         * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
9671         table (Difference, Intersection): Use variable view of
9672         source, detect tampering (Find, Is_Subset, Overlap): Use
9673         variable view of container (Symmetric_Difference, Union):
9674         Detect tampering (Vet): Use Checked_Index to detect tampering
9675         (Constant_Reference, Element, Find): Use variable view of
9676         container.
9677         (Update_Element_Preserving_Key): Detect tampering.
9678         * a-cbhase.adb (Difference, Find, Is_In): Use variable view
9679         of container.
9680         (Is_Subset): Ditto.
9681         (Equivalent_Sets, Overlap): Use Node's Next component.
9682         (Vet): Use Checked_Index to detect tampering.
9683         (Constant_Reference, Element, Find): Use variable view of container.
9684         (Update_Element_Preserving_Key): Detect tampering.
9685         * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
9686         Element, Find): Use variable view of container.
9687         (Reference): Rename hash table component.
9688         (Vet): Use Checked_Index to detect tampering.
9690 2014-02-19  Arnaud Charlet  <charlet@adacore.com>
9692         * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
9693         of -nostdinc.
9695 2014-02-19  Thomas Quinot  <quinot@adacore.com>
9697         * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
9698         against calls without Def_Id.
9700 2014-02-19  Claire Dross  <dross@adacore.com>
9702         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
9703         a-cofove.ads: Add global annotations to subprograms.
9705 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9707         * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
9708         constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
9709         Initial_Condition no longer requires the presence of pragma
9710         Initialized. Do not try to diagnose whether all variables mentioned in
9711         pragma Initializes also appear in Initial_Condition.
9712         (Collect_Variables): Removed.
9713         (Match_Variable): Removed.
9714         (Match_Variables): Removed.
9715         (Report_Unused_Variables): Removed.
9717 2014-02-19  Thomas Quinot  <quinot@adacore.com>
9719         * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
9721 2014-02-19  Robert Dewar  <dewar@adacore.com>
9723         * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
9724         reformatting.
9726 2014-02-19  Vincent Celier  <celier@adacore.com>
9728         * prj-part.adb (Parse_Single_Project): Use the fully resolved
9729         project path, with all symbolic links resolved, to check if the
9730         same project is imported with a different unresolved path.
9731         * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
9732         changed to Resolved_Path to reflect that all symbolic links
9733         are resolved.
9735 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9737         * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
9738         from sem_ch13, for use elsewhere.
9739         * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
9740         * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
9741         cursor type on the loop variable when the iteration is over o
9742         formal container.
9744 2014-02-19  Vincent Celier  <celier@adacore.com>
9746         * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
9747         for an empty Target (Check_Target): Never fail when an empty
9748         target is declared in the configuration project.
9750 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9752         * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
9753         the pragma comes fron a predicate aspect and the context is a
9754         record declaration within the scope that declares the type.
9756 2014-02-19  Robert Dewar  <dewar@adacore.com>
9758         * gnat_rm.texi: Minor clarifications.
9759         * expander.adb, sem_aggr.adb: Add comments.
9761 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9763         * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
9764         applies to a subprogram body, the name is the current scope,
9765         rather than being declared in the current scope.
9766         (Analyze_Pragma, case No_Return): Handle properly a No_Return
9767         aspect applied to a subprogram body.
9769 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9771         * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
9772         of overloaded subprograms, and fix bug in handling of primitive
9773         operation Element.
9775 2014-02-19  Pascal Obry  <obry@adacore.com>
9777         * s-os_lib.adb: Minor reformatting.
9779 2014-02-19  Yannick Moy  <moy@adacore.com>
9781         * expander.adb (Expand): Do nothing inside generics.
9782         * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
9783         generics.
9785 2014-02-19  Yannick Moy  <moy@adacore.com>
9787         * exp_ch2.adb: Remove useless 'with' of unit Uintp.
9789 2014-02-19  Robert Dewar  <dewar@adacore.com>
9791         * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
9792         * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
9793         longer needed).
9795 2014-02-19  Claire Dross  <dross@adacore.com>
9797         * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
9798         a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
9800 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9802         * sem_ch3.adb (Analyze_Declarations): Analyze
9803         a package contract at the end of the private declarations (if
9804         applicable), otherwise analyze it and the end of the visible
9805         declarations.
9807 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9809         * style.adb (Missing_Overriding): If subprogram is an
9810         instantiation, place warning on the instance node itself,
9811         without mention of the original generic. Do not emit message
9812         if explicit Ada version is older than the introduction of the
9813         overriding indicator.
9815 2014-02-19  Yannick Moy  <moy@adacore.com>
9817         * gnat_rm.texi: Doc clarifications.
9819 2014-02-19  Yannick Moy  <moy@adacore.com>
9821         * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
9822         inside a generic.
9824 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9826         * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
9827         specified First primitive, rather than by name.
9828         (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
9829         and extend error checking for missing primitives and incorrect
9830         signatures.
9832 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9834         * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
9835         errors when a Synchronization aspect on an overriding protected
9836         operation does not match the given aspect on the overridden
9837         operation of an ancestor interface.
9839 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9841         * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
9842         (Check_Loop_Pragma_Placement): Update
9843         comment on usage. Remove local variables Orig_Stmt and
9844         Within_Same_Sequence. Check that the current Loop_Invariant or
9845         Loop_Variant pragma is grouped together with other such pragmas.
9846         (Is_Loop_Pragma): New routine.
9847         (Prev_In_Loop): Removed.
9849 2014-02-19  Robert Dewar  <dewar@adacore.com>
9851         * par-ch6.adb (P_Return): For extended return, end column lines
9852         up with RETURN.
9853         * par.adb: Minor documentation clarification.
9855 2014-02-19  Yannick Moy  <moy@adacore.com>
9857         * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
9858         that Loop_Invariant and Loop_Variant appear consecutively.
9859         * gnat_rm.texi Update documentation of Loop_Invariant and
9860         Loop_Variant pragmas.
9862 2014-02-19  Robert Dewar  <dewar@adacore.com>
9864         * debug.adb: Document -gnatd.X.
9865         * par-ch5.adb (P_If_Statement): Always check THEN, even if not
9866         first token
9867         (Check_Then_Column): Ditto.
9868         * styleg.adb (Check_Then): Allow THEN on line after IF.
9869         (Check_Then): Check THEN placement under control of -gnatd.X
9870         * styleg.ads (Check_Then): Now called even if THEN is not first
9871         token on line.
9872         * stylesw.ads (Style_Check_If_Then_Layout): Document new
9873         relaxed rules.
9874         * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
9876 2014-02-19  Robert Dewar  <dewar@adacore.com>
9878         * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
9879         a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
9880         prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
9881         vms_conv.adb: Fix bad layout of IF statements
9883 2014-02-19  Robert Dewar  <dewar@adacore.com>
9885         * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
9887 2014-02-19  Robert Dewar  <dewar@adacore.com>
9889         * exp_util.adb: Update comments.
9891 2014-02-19  Doug Rupp  <rupp@adacore.com>
9893         * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
9894         * init.c (__gl_float_format): [VMS] New global.
9895         (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
9896         representation in effect.
9898 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9900         * exp_ch6.adb Add with and use clause for Exp_Prag.
9901         (Expand_Contract_Cases): Relocated to Exp_Prag.
9902         * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
9903         * exp_prag.adb Add with and use clauses for Checks and Validsw.
9904         (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
9905         structure of the expanded code to showcase the evaluation of
9906         attribute 'Old prefixes. Add local variable Old_Evals. Expand
9907         any attribute 'Old references found within a consequence. Add
9908         circuitry to evaluate the prefixes of attribute 'Old that
9909         belong to a selected consequence.
9910         (Expand_Old_In_Consequence): New routine.
9911         * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
9912         * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
9913         potentially unevaluated prefix is always evaluated.
9915 2014-02-19  Robert Dewar  <dewar@adacore.com>
9917         * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
9918         (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
9919         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
9920         handling for the case of Modify_Tree_For_C, this approach did
9921         not work.
9922         * exp_util.adb (Matching_Standard_Type): New function
9923         (Side_Effect_Free): New top level functions (from
9924         Remove_Side_Effects).
9925         * exp_util.ads (Side_Effect_Free): New top level functions
9926         (moved from body).
9927         * sinfo.ads: Minor comment updates.
9929 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9931         * exp_ch6.adb (Expand_Simple_Function_Return): If return
9932         type is unconstrained and uses the secondary stack, mark the
9933         enclosing function accordingly, to ensure that the value is not
9934         prematurely removed.
9936 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9938         * par.adb Alphabetize the routines in Par.Sync.
9939         (Resync_Past_Malformed_Aspect): New routine.
9940         * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
9941         variables. Code and comment reformatting. Detect missing
9942         parentheses on aspects [Refined_]Global and [Refined_]Depends
9943         with a non-null definition.
9944         * par-sync.adb: Alphabetize all routines in this separate unit.
9945         (Resync_Past_Malformed_Aspect): New routine.
9947 2014-02-19  Robert Dewar  <dewar@adacore.com>
9949         * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
9950         if Esize values do not match.
9952 2014-02-19  Yannick Moy  <moy@adacore.com>
9954         * sinfo.ads: Minor comment update.
9956 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
9958         * atree.ads: Minor reformatting (change Entity_Info to Einfo).
9960 2014-02-19  Thomas Quinot  <quinot@adacore.com>
9962         * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
9963         that has the No_Ctrl_Actions flag is a suitable node to be
9964         wrapped if the assigned expression has no finalization actions.
9965         * sem_eval.adb (Eval_Entity_Name): For a compile time known
9966         boolean value, mark the corresponding condition SCO as constant.
9968 2014-02-19  Robert Dewar  <dewar@adacore.com>
9970         * exp_util.adb: Minor reformatting.
9971         * exp_util.ads (Matching_Standard_Type): New function.
9972         * exp_ch7.adb: Minor reformatting.
9974 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
9976         * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
9977         to find declaration for Cursor, to handle properly the case of
9978         a discriminated iterable type.
9980 2014-02-19  Vincent Celier  <celier@adacore.com>
9982         * gnatcmd.adb (GNATCmd): Always replace the object dirs of
9983         imported library projects with the library ALI dirs, when setting
9984         the object paths.
9985         * prj-env.ads (Ada_Objects_Path): Correct comments about
9986         argument Including_Libraries.
9988 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
9990         * gnat_rm.texi: Minor spelling fixes.
9992 2014-02-19  Doug Rupp  <rupp@adacore.com>
9994         * init.c: Remove unneeded code.
9995         * fe.h (Float_Format): New macro
9996         * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
9998 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10000         * sem_prag.adb (Check_Refined_Global_Item):
10001         A state or variable acts as a constituent only it is part of an
10002         encapsulating state and the state has visible refinement.
10004 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10006         * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
10007         postcondition for a function when the expression does not mention
10008         'Result but the function has in-out parameters.
10010 2014-02-19  Robert Dewar  <dewar@adacore.com>
10012         * gnat_rm.texi: Add documentation on Value_Size forcing biased
10013         representation.
10015 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10017         * lib-xref.ads Remove the small table of letter and symbol usage as we
10018         already have one.
10020 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10022         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
10023         messages depending on the offending misplaced aspect specifications.
10024         (Diagnose_Misplaced_Aspect_Specifications): New routine.
10026 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10028         * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
10029         for iterable aspect primitives.
10030         (Resolve_Iterable_Operation): Use expected signature of iterable
10031         aspect to resolve primitive when overloading is present.
10032         (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
10033         (Check_Signature): Removed.
10035 2014-02-19  Yannick Moy  <moy@adacore.com>
10037         * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
10038         subunit in GNATprove_Mode.
10039         * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
10041 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10043         * lib-xref.ads Alphabetize the contents of table
10044         Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
10045         for E_Abstract_State. List all letters and symbols in use.
10046         * sem_prag.adb (Analyze_Abstract_State): Update all calls
10047         to Create_Abstract_State to reflect the new signature.
10048         (Create_Abstract_State): Change subprogram profile and update
10049         the comment on usage. Use the proper location of the state
10050         declaration when creating a new abstract state entity. Do not
10051         generate an external name, but simply reuse the name coming from
10052         the state declaration.
10054 2014-02-19  Robert Dewar  <dewar@adacore.com>
10056         * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
10057         declarations get properly inserted in Modify_Tree_For_C mode.
10058         * sinfo.ads: Minor comment addition.
10060 2014-02-19  Robert Dewar  <dewar@adacore.com>
10062         * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
10063         sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
10065 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10067         * style.adb (Missing_Overriding): Warning does not apply in
10068         language versions prior to Ada 2005.
10069         * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
10070         * sem_attr.adb: Add Attribute_Iterable where needed.
10071         * exp_attr.adb: ditto.
10072         * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
10073         handle loops and quantified expressions over types that have an
10074         iterable aspect.  Called from Expand_Iterator_Loop.
10075         * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
10076         with Iterable aspect.
10077         * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
10078         subprograms specified in the Iterable aspect have the proper
10079         signature involving container and cursor.
10080         (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
10081         * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
10082         * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
10083         New procedure to retrieve one of the primitives First, Last,
10084         or Has_Element, from the value of the iterable aspect of a
10085         formal container.
10086         (Is_Container_Element): Predicate to recognize expressions
10087         that denote an element of one of the predefined containers,
10088         for possible optimization.  This subprogram is not currently
10089         used, pending ARG discussions on the legality of the proposed
10090         optimization. Worth preserving for eventual use.
10091         (Is_Iterator): Recognize formal container types.
10092         * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
10094 2014-02-19  Robert Dewar  <dewar@adacore.com>
10096         * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
10097         (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
10098         * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
10099         declarations from list of actions.
10100         * output.ads, output.adb (Delete_Last_Char): New procedure.
10101         * sinfo.ads: Document handling of Mod and expression with actions
10102         in Modify_Tree_For_C mode.
10104 2014-02-19  Ed Schonberg  <schonberg@adacore.com>
10106         * par-ch9.adb (P_Task): Add a null statement to produce a
10107         well-formed task body when due to a previous syntax error the
10108         statement list is empty.
10110 2014-02-19  Hristian Kirtchev  <kirtchev@adacore.com>
10112         * sem_prag.adb (Check_Dependency_Clause): Account
10113         for the case where a state with a non-null refinement matches a
10114         null output list. Comment reformatting.
10115         (Inputs_Match): Copy a solitary input to avoid an assertion failure
10116         when trying to match the same input in multiple clauses.
10118 2014-02-19  Gary Dismukes  <dismukes@adacore.com>
10120         * sem_attr.adb: Minor typo fix.
10122 2014-02-18  Robert Dewar  <dewar@adacore.com>
10124         * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
10125         from Int to Nat (Build_Unsigned_Integer_Type): New procedure
10126         (Create_Standard): Create new unsigned types.
10127         * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
10128         mode (Expand_N_Reference): Removed, problematic and not needed
10129         for now.
10130         * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
10131         not needed for now.
10132         * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
10133         * expander.adb: Remove call to Expand_N_Reference (problematic,
10134         and not needed now).
10135         * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
10136         * stand.adb: Read and write unsigned type entities.
10137         * stand.ads: Add new unsigned types.
10139 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
10141         * sem_ch4.adb (Analyze_Call): Do not mark a function call
10142         as being inside an assertion expression as the flag is now removed.
10143         (Check_Ghost_Subprogram_Call): Do not query the
10144         In_Assertion_Expression flag as it is now removed, instead use
10145         a predicate function.
10146         * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
10147         In_Assertion_Expression flag as it is now removed, instead use
10148         a predicate function.
10149         * sem_prag.ads: Add new table Assertion_Expression_Pragma.
10150         * sem_util.adb Add with and use clause for Sem_Prag.
10151         (In_Assertion_Expression_Pragma): New routine.
10152         * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
10153         * sinfo.adb (In_Assertion_Expression): Removed.
10154         (Set_In_Assertion_Expression): Removed.
10155         * sinfo.ads Remove flag In_Assertion_Expression along with its
10156         use in nodes.
10157         (In_Assertion_Expression): Removed along with
10158         pragma Inline.  (Set_In_Assertion_Expression): Removed along
10159         with pragma Inline.
10161 2014-02-18  Sergey Rybin  <rybin@adacore.com frybin>
10163         * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
10164         used together with '-r', '-rf' or '-rnb' options.
10166 2014-02-18  Hristian Kirtchev  <kirtchev@adacore.com>
10168         * sem_attr.adb (Analyze_Attribute): Comment
10169         and code reformatting. Use separate routines to check the
10170         legality of attribute 'Old in certain pragmas. Verify
10171         the use of 'Old, 'Result and locally declared entities
10172         within the prefix of 'Old.
10173         (Check_References_In_Prefix): New routine.
10174         (Check_Use_In_Contract_Cases): New routine.
10175         (Check_Use_In_Test_Case): New routine.
10177 2014-02-18  Vincent Celier  <celier@adacore.com>
10179         * sem_aux.adb (Is_By_Reference_Type): For each components of
10180         a record type, check also if the component is volatile as it
10181         may have an aspect that makes it volatile. If it is, then the
10182         record type is a by reference type.
10184 2014-02-18  Robert Dewar  <dewar@adacore.com>
10186         * exp_attr.adb: Minor reformatting.
10187         * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
10188         * exp_util.adb (Remove_Side_Effects): Add conditional expressions
10189         as another case where we don't generate N_Reference nodes for
10190         primitive types.
10191         * expander.adb (Expand): Add call to Expand_N_Reference.
10193 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10195         * sem_prag.adb (Analyze_Refined_Pragma): Remove
10196         local variable Pack_Spec. Refinement pragmas may now apply to
10197         bodies of both visible and private subprograms.
10199 2014-02-06  Robert Dewar  <dewar@adacore.com>
10201         * exp_attr.adb (Expand_Loop_Entry_Attribute):
10202         Minor change (Attr => N) (Expand_Pred_Succ): New name
10203         Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
10204         Max): Expand into if expression if Modify_Tree_For_C mode.
10205         (Expand_N_Attribute_Reference, case Min): ditto
10206         * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
10207         Max attributes.
10209 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
10211         * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
10212         predicate check if this is an internal declaration with
10213         No_Initialization set, as for an expanded aggregate component.
10215 2014-02-06  Doug Rupp  <rupp@adacore.com>
10217         * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
10218         conditions with severity of "SUCCESS" or "INFORMATIONAL".
10220 2014-02-06  Yannick Moy  <moy@adacore.com>
10222         * sem_prag.adb (Analyze_Pragma): Analyze pragma
10223         Debug rewritten node before rewriting it as a null statement in
10224         GNATprove mode.
10226 2014-02-06  Robert Dewar  <dewar@adacore.com>
10228         * sem_attr.adb (Min_Max): New procedure.
10229         (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
10230         procedure.
10232 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
10234         * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
10235         gnatmetric/gnatpp.
10237 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10239         * sem_prag.adb (Analyze_Abstract_State): Update
10240         all calls to Create_Abstract_State to pass the proper state
10241         "declaration".
10242         (Create_Abstract_State): Add new formal parameter
10243         State_Decl along with comment on usage. Establish a link between
10244         the abstract state entity and the state declaration.
10246 2014-02-06  Robert Dewar  <dewar@adacore.com>
10248         * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
10249         comparison of unordered enumeration type.
10250         (Analyze_Attribute, case Max): Check for improper comparison of
10251         unordered enumeration type.
10252         * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
10253         sem_util.adb.
10254         * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
10255         Moved here from Sem_Res.
10257 2014-02-06  Robert Dewar  <dewar@adacore.com>
10259         * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
10260         reformatting.
10262 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10264         * sem_ch6.adb (Process_Formals): Error message reformatting.
10266 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10268         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
10269         variable Spec. Do not inherit the null indicator from the
10270         subprogram body when generating the spec.
10272 2014-02-06  Robert Dewar  <dewar@adacore.com>
10274         * casing.adb (Determine_Casing): Consider SPARK_Mode to be
10275         mixed case.
10277 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
10279         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
10280         when the function has a foreign convention, but not if only the
10281         limited return type has such a convention.
10283 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10285         * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
10286         variable Spec. Comment reformatting. Use Copy_Separate_Tree
10287         rather than New_Copy_Tree when building the corresponding
10288         subprogram declaration.
10290 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10292         * sem_prag.adb (Analyze_Global_Item): Remove
10293         the mode-related checks on abstract states with enabled external
10294         properties.
10295         (Property_Error): Removed.
10297 2014-02-06  Javier Miranda  <miranda@adacore.com>
10299         * lib-xref.adb (Generate_Reference): When
10300         generating the reference to the first private entity take care
10301         of handling swapped entities.
10303 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
10305         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
10306         gnatmetric.
10308 2014-02-06  Robert Dewar  <dewar@adacore.com>
10310         * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
10311         than the word size when operating in Modify_Tree_For_C mode.
10312         * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
10314 2014-02-06  Robert Dewar  <dewar@adacore.com>
10316         * erroutc.adb (Warning_Specifically_Suppressed.Matches):
10317         compare is case insensitive.
10318         * gnat_rm.texi: Document that string compare for Warnings Off
10319         is now case insensitive.
10321 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
10323         * gnat_rm.texi: Small wording tweak.
10325 2014-02-06  Pascal Obry  <obry@adacore.com>
10327         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
10328         and Included_Artifact_Patterns attribute definitions.
10330 2014-02-06  Yannick Moy  <moy@adacore.com>
10332         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
10333         SPARK_Mode pragma component for all subprograms, including stubs.
10335 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10337         * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
10338         the configuration options of the enclosing context in a
10339         stack-like fasion.
10340         (Analyze_Subprogram_Body_Stub): Maintain the
10341         configuration options of the enclosing context in a stack-like
10342         fashion.
10344 2014-02-06  Robert Dewar  <dewar@adacore.com>
10346         * debug.adb: -gnatd.u sets Modify_Tree_For C
10347         * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
10348         if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
10349         (Expand_N_Op_Arithmetic_Right_Shift): ditto.
10350         * exp_intr.adb (Expand_Shift): Call expander so we do
10351         Modify_Tree_For_C expansions.
10352         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
10353         if -gnatd.u set.
10355 2014-02-06  Fedor Rybin  <frybin@adacore.com>
10357         * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
10358         after the phase 1 of the processing of each aggregated project
10359         to get access to project trees of aggregated projects.
10360         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
10361         If specified, On_New_Tree_Loaded is called after each aggregated
10362         project has been processed succesfully.
10363         (Process): new parameter On_New_Tree_Loaded.
10364         * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
10365         callback added after processing of each aggregated project.
10366         (Recursive_Process): new parameter On_New_Tree_Loaded.
10367         (Process): new parameter On_New_Tree_Loaded.
10368         (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
10369         * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
10370         On_New_Tree_Loaded.
10371         * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
10372         On_New_Tree_Loaded.
10374 2014-02-06  Bob Duff  <duff@adacore.com>
10376         * gnat_ugn.texi: Implement --insert-blank-lines and
10377         --preserve-blank-lines switches.
10379 2014-02-06  Sergey Rybin  <rybin@adacore.com frybin>
10381         * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
10382         gnatelim.
10384 2014-02-06  Eric Botcazou  <ebotcazou@adacore.com>
10386         * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
10387         of the pragma on individual objects.
10389 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10391         * einfo.adb Node29 is now used as BIP_Initialization_Call.
10392         (BIP_Initialization_Call): New routine.
10393         (Set_BIP_Initialization_Call): New routine.
10394         (Write_Field29_Name): Add an entry for constants and variables.
10395         * einfo.ads Add new attribute BIP_Initialization_Call and update
10396         its usage in nodes.
10397         (BIP_Initialization_Call): New routine along with pragma Inline.
10398         (Set_BIP_Initialization_Call): New routine along with pragma Inline.
10399         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
10400         Add local declaration Res_Decl. Capture the build-in-place
10401         initialization call when the related object declaration has
10402         created a transient block.
10403         * exp_ch7.adb (Process_Transient_Objects): Add local variable
10404         Fin_Insrt. Recognize a scenario where an object declaration acts
10405         as a transient context and is initialized by a build-in-place
10406         function call.
10408 2014-02-06  Pascal Obry  <obry@adacore.com>
10410         * prj-util.adb (For_Interface_Sources): Fix handling of required
10411         bodies for aggregate libs.
10413 2014-02-06  Robert Dewar  <dewar@adacore.com>
10415         * nlists.ads: Minor comment clarifications.
10417 2014-02-06  Robert Dewar  <dewar@adacore.com>
10419         * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
10420         if gnatd.V set.
10421         * opt.ads (Modify_Tree_For_C): New flag.
10422         * output.ads, output.adb (Last_Char): New function.
10424 2014-02-06  Pascal Obry  <obry@adacore.com>
10426         * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
10427         share/gpr for cross-builds.
10429 2014-02-06  Robert Dewar  <dewar@adacore.com>
10431         * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
10432         Minor reformatting and code clean ups.
10434 2014-02-06  Pascal Obry  <obry@adacore.com>
10436         * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
10437         * prj.ads: Minor typo fix in comment.
10439 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10441         * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
10442         local variable Expr. Flag clauses with extra parenthesis as this
10443         is not allowed by the syntax of the pragma. Code reformatting.
10445 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10447         * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
10448         variables. Rename variabme Tnn to Temp. Do not create a temporary
10449         if assertions are disabled. Find enclosing routine _Postconditions
10450         and insert the temporary that captures the value of the prefix
10451         before the routine.
10452         * exp_ch6.adb (Build_Postconditions_Procedure):
10453         Insert the generated _Postconditions routine
10454         before the first source declaration of the related
10455         subprogram.
10456         (Insert_After_Last_Declaration): Removed.
10457         (Insert_Before_First_Source_Declaration): New routine.
10459 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
10461         * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
10462         Utility to determine whether current expansion is for the body
10463         of a predefined primitive operation.
10464         (Make_Predicate_Check): Use Within_Internal_Subpgram
10465         * checks.adb (Apply_Predicate_Check): Use
10466         Within_Internal_Subprogram
10467         * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
10469 2014-02-06  Pascal Obry  <obry@adacore.com>
10471         * prj.ads, prj-util.adb: Minor reformatting.
10473 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
10475         * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
10476         Take into account the Split_PPC flag to ensure that conjuncts
10477         in a composite postcondition aspect are tested in source order.
10479 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10481         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
10482         use of SPARK_Mode.
10483         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
10484         illegal use of SPARK_Mode.
10485         (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
10486         * sem_prag.adb (Analyze_Pragma): Code reformatting.
10487         * sem_util.adb Add with and use clause for Aspects.
10488         (Check_SPARK_Mode_In_Generic): New routine.
10489         * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
10491 2014-02-06  Thomas Quinot  <quinot@adacore.com>
10493         * a-calend.adb (Formatting_Operations.Split): Ensure that
10494         Time_Error is raised for invalid time values.
10496 2014-02-06  Arnaud Charlet  <charlet@adacore.com>
10498         * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
10499         in GNATprove_Mode.
10501 2014-02-06  Robert Dewar  <dewar@adacore.com>
10503         * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
10504         * exp_ch3.adb (Build_Dcheck_Function): Set
10505         Is_Discriminant_Check_Function.
10507 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10509         * exp_ch7.adb (Is_Subprogram_Call): Inspect
10510         the original tree in certain cases where a construct has been
10511         factored out and replaced by a reference to a temporary.
10513 2014-02-06  Ed Schonberg  <schonberg@adacore.com>
10515         * sem_ch3.adb (Process_Full_View): Fix typo in the order of
10516         parameters when propagating predicate function to full view.
10517         (Find_Type_Of_Object): Freeze base type of object type to catch
10518         premature use of discriminated private type without a full view.
10520 2014-02-06  Robert Dewar  <dewar@adacore.com>
10522         * sprint.adb: Minor reformatting.
10524 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10526         * exp_ch4.adb (Process_Transient_Object): Add local variable
10527         Temp_Ins. When the transient object is initialized by an
10528         aggregate, the hook must capture the object after the last
10529         component assignment takes place.
10530         * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
10531         routine Is_Subprogram_Call.
10532         (Is_Subprogram_Call): Inspect an
10533         aggregate that has been heavily expanded for subprogram calls.
10534         (Process_Transient_Objects): Add local variables Expr, Ptr_Id
10535         and Temp_Ins.  Remove the nested declare block and adjust the
10536         indentation. When the transient object is initialized by an
10537         aggregate, the hook must capture the object after the last
10538         component assignment takes place.
10540 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10542         * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
10543         external states with enabled properties that do not match the
10544         global mode.
10545         (Property_Error): New routine.
10546         * sem_res.adb (Property_Error): New routine.
10547         (Resolve_Actuals): Detect illegal uses of external variables with
10548         enabled properties in procedure calls that do not match the mode of
10549         the corresponding formal parameter.
10551 2014-02-06  Hristian Kirtchev  <kirtchev@adacore.com>
10553         * sem_util.adb (Has_Enabled_Property): Rename
10554         formal parameter Prop_Nam to Property. Update the comment on usage
10555         and all occurrences in the body. Add local variable Prop_Nam. When
10556         inspecting a property with an expression, the property name
10557         appears as the first choice of the component association.
10559 2014-02-04  Robert Dewar  <dewar@adacore.com>
10561         * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
10563 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
10565         * sem_aggr.adb: Change "runtime" to "run time" in warning message,
10566         for consistency with other messages.
10568 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
10570         * exp_ch5.adb  (Expand_Iterator_Loop):  For a container element
10571         iterator, indicate that the element is a constant if the container
10572         type does not have a variable indexing aspect.
10573         * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
10574         marked as constant, do not reset its Ekind, to ensure that
10575         container elements in an element loop are not modified if the
10576         container (e.g. a hashed set) only has a constant indexing aspect.
10578 2014-02-04  Arnaud Charlet  <charlet@adacore.com>
10580         * g-souinf.ads: Subprograms in this unit are actually not pure.
10581         * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
10582         * einfo.ads (Is_Pure): Update doc to match implementation.
10584 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
10586         * exp_ch13.adb: Minor spelling fix.
10588 2014-02-04  Robert Dewar  <dewar@adacore.com>
10590         * opt.ads: Minor comment update.
10592 2014-02-04  Robert Dewar  <dewar@adacore.com>
10594         * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
10595         instead of Replace.
10597 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
10599         * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
10600         on null expressions if component type is non-null, when the
10601         corresponding association covers an empty range of index values.
10603 2014-02-04  Robert Dewar  <dewar@adacore.com>
10605         * sinfo.ads: Further comments on N_Expression_With_Actions node.
10607 2014-02-04  Hristian Kirtchev  <kirtchev@adacore.com>
10609         * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
10610         variables Out_Items and Ref_Global. Remove local constant
10611         Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
10612         and D8. Remove the useless collection of global items as this
10613         was a leftover from an earlier version of the routine. Move
10614         several routines out to avoid deep nesting and indentation.
10615         (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
10616         parameter Do_Checks to Post_Errors. Update the comment on usage.
10617         (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
10618         Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
10619         to Post_Errors. Update the comment on usage. Account for the
10620         case where a self referential state may have a null input_list.
10621         (Is_Self_Referential): New routine.
10623 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
10625         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
10626         entity renames an expression, as in the case of an object of
10627         an unconstrained type initialized by a function call, defer the
10628         rewriting of the expression to the expander.
10629         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10630         'Alignment): If the entity renames an expression, introduce
10631         temporary to capture value, and rewrite original declaration to
10632         use temporary.
10634 2014-02-04  Gary Dismukes  <dismukes@adacore.com>
10636         * g-comlin.adb: Minor typo fix.
10638 2014-02-04  Ed Schonberg  <schonberg@adacore.com>
10640         * freeze.adb (Freeze_All): Types derived from a formal
10641         access_to_classwide type do not have a finalization master.
10643 2014-02-04  Robert Dewar  <dewar@adacore.com>
10645         * sprint.adb: Minor reformatting.
10647 2014-02-04  Robert Dewar  <dewar@adacore.com>
10649         * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
10650         cases where Actions is a null list.
10651         * sinfo.ads (N_Expression_With_Actions): Actions can be
10652         temporarily empty during semantic analysis, but must be non-empty
10653         in the final expanded tree.
10655 2014-01-31  Robert Dewar  <dewar@adacore.com>
10657         * exp_ch9.adb: Minor reformatting.
10659 2014-01-31  Emmanuel Briot  <briot@adacore.com>
10661         * g-comlin.adb (Set_Command_Line): Take the switches
10662         configuration from the Command_Line_Config.
10664 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
10666         * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
10667         refinement clause.
10669 2014-01-31  Vincent Celier  <celier@adacore.com>
10671         * projects.texi: Add more documentation about others used as an
10672         index in indexed attributes.
10674 2014-01-31  Robert Dewar  <dewar@adacore.com>
10676         * gnat_ugn.texi: Minor update.
10677         * gnat_rm.texi: Add example to Restriction_Warnings documentation.
10678         * exp_util.adb: Minor reformatting.
10680 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
10682         * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
10683         depends on data that is not private to the protected object,
10684         and potentially modifiable in unsynchronized fashion.
10686 2014-01-31  Yannick Moy  <moy@adacore.com>
10688         * erroutc.adb (Validate_Specific_Warnings): Remove special case for
10689         GNATprove_Mode.
10691 2014-01-31  Robert Dewar  <dewar@adacore.com>
10693         * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
10694         for Unknown_Package.
10695         * sem_ch6.adb, sem_attr.adb: Minor comment addition.
10697 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
10699         * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
10700         the logic that generates a runtime check to determine the
10701         controlled status of the object about to be allocated or
10702         deallocated. Class-wide types now always use a runtime check
10703         even if they appear as generic actuals.
10704         (Find_Object): Detect
10705         a special case that involves interface class-wide types because
10706         the object appears as a complex expression.
10708 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
10710         * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
10711         subprogram with an incomplete untagged formals on the list of
10712         private dependents, to verify that the type is properly completed
10713         in the private part.
10714         * sem_attr.adb: Code clean up.
10716 2014-01-31  Robert Dewar  <dewar@adacore.com>
10718         * exp_ch6.adb: Minor reformatting.
10720 2014-01-31  Vincent Celier  <celier@adacore.com>
10722         * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
10723         when Pkg is unknown.
10725 2014-01-31  Hristian Kirtchev  <kirtchev@adacore.com>
10727         * sem_res.adb (Resolve_Entity_Name): Comment
10728         reformatting. Allow volatile objects in various generated checks.
10730 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
10732         * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
10733         component association, set the etype of the identifier, for
10734         SPARK use.
10736 2014-01-31  Ed Schonberg  <schonberg@adacore.com>
10738         * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
10739         declared in a package, not checks can apply to the subprogram.
10741 2014-01-31  Robert Dewar  <dewar@adacore.com>
10743         * erroutc.adb (Validate_Specific_Warnings): Warnings are
10744         controlled -gnatw.W.
10745         * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
10746         * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
10748 2014-01-31  Arnaud Charlet  <charlet@adacore.com>
10750         * exp_disp.adb: Update comments.
10752 2014-01-31  Yannick Moy  <moy@adacore.com>
10754         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
10755         Save_Global_References): Guard access to expression in aspect.
10757 2014-01-31  Yannick Moy  <moy@adacore.com>
10759         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
10760         Issue an error when the pragma is applied to a generic unit,
10761         a generic declaration, or inside a generic.
10763 2014-01-31  Yannick Moy  <moy@adacore.com>
10765         * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
10766         entity.
10768 2014-01-31  Robert Dewar  <dewar@adacore.com>
10770         * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
10771         reformatting.
10773 2014-01-31  Tristan Gingold  <gingold@adacore.com>
10775         * exp_disp.adb: Add a historic note.
10777 2014-01-31  Robert Dewar  <dewar@adacore.com>
10779         * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
10780         Process_Deferred_References.
10782 2014-01-31  Yannick Moy  <moy@adacore.com>
10784         * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
10785         ineffective pragma Warnings(Off) in GNATprove_Mode.
10787 2014-01-31  Bob Duff  <duff@adacore.com>
10789         * s-taskin.ads: Minor comment fix.
10790         * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
10791         just direct dependents. If this is actually an abort, each task
10792         will take care of aborting its dependents, so all dependents will
10793         get aborted, as before. However, when this is called the second
10794         time from Vulnerable_Complete_Master "for convenience" (i.e. to
10795         kill off tasks waiting at terminate alternatives), aborting
10796         indirect dependents is wrong, because it causes some unrelated
10797         tasks to get aborted.
10799 2014-01-31  Robert Dewar  <dewar@adacore.com>
10801         * sem_ch4.adb: Minor reformatting.
10803 2014-01-31  Robert Dewar  <dewar@adacore.com>
10805         * exp_ch2.adb: New calling sequence for Is_LHS.
10806         * frontend.adb: Add call to Process_Deferred_References.
10807         * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
10808         (Deferred_References): New table.
10809         * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
10810         entries.
10811         (Find_Expanded_Name): Ditto.
10812         * sem_res.adb: New calling sequence for Is_LHS.
10813         * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
10814         * sem_warn.adb: Call Process_Deferred_References before issuing
10815         warnings.
10817 2014-01-31  Tristan Gingold  <gingold@adacore.com>
10819         * exp_util.adb (Corresponding_Runtime_Package): Restrict the
10820         use of System_Tasking_Protected_Objects_Single_Entry.
10821         * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
10822         of Protected_Single_Entry_Call.
10823         (Expand_N_Timed_Entry_Call): Remove single_entry case.
10824         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
10825         single_entry case.
10826         (Make_Disp_Timed_Select_Body): Likewise.
10827         * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
10828         * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
10829         Self_Id parameter.
10830         (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
10831         (Wait_For_Completion_With_Timeout): Remove.
10832         (Protected_Single_Entry_Call): Remove Mode parameter
10833         (always Simple_Call).
10834         (Service_Entry): Remove Self_Id constant (not used anymore).
10835         (Timed_Protected_Single_Entry_Call): Remove.
10836         * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
10837         (Protected_Single_Entry_Call): Remove Mode parameter.
10839 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10841         * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
10842         * einfo.ads (Get_Pragma): Update the comment on special pragmas
10843         handled by this routine.
10844         * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
10845         to the contract of the related subprogram body.
10846         * sem_util.adb (Add_Contract_Item): Handle the insertion of
10847         pragma Refined_Post into the contract of a subprogram body.
10848         * sinfo.ads Update the documentation of node N_Contract.
10849         * sem_res.adb (Resolve_Entity_Name): Add a guard
10850         to detect abstract states and variables only when checking the
10851         SPARK 2014 rules concerning volatile object placement.
10853 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
10855         * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
10856         null is compatible with any access type.
10858 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10860         * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
10861         placement is not in a package.
10863 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10865         * sem_util.adb (Has_Enabled_Property): Compare the character field of
10866         the sole property.
10868 2014-01-29  Robert Dewar  <dewar@adacore.com>
10870         * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
10871         vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
10872         sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
10874 2014-01-29  Robert Dewar  <dewar@adacore.com>
10876         * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
10877         * sem_warn.adb (Check_References): Suppress warnings if inside
10878         Initial_Condition pragma.
10880 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10882         * sem_prag.adb (Check_Missing_Part_Of): List all values of
10883         State_Space_Kind for readability reasons. Do not emit an error on
10884         a private item when the enclosing package lacks aspect/pragma
10885         Abstract_State. Do not emit an error on a private package
10886         instantiation when the corresponding generic template lacks
10887         visible state.
10888         (Has_Visible_State): New routine.
10889         * sem_util.adb (Find_Placement_In_State_Space): The visible
10890         declarations of any kind of child units in general act as proper
10891         placement location.
10893 2014-01-29  Robert Dewar  <dewar@adacore.com>
10895         * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
10896         ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
10897         a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
10898         a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
10899         atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
10900         a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
10901         cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
10902         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
10903         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
10904         exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
10905         freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
10906         gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
10907         krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
10908         live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
10909         par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
10910         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
10911         par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
10912         rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
10913         s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
10914         sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
10915         sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
10916         sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
10917         sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
10918         sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
10919         s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
10920         sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
10921         s-regpat.adb, s-secsta.adb, s-stalib.ads,
10922         s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
10923         s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
10924         s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
10925         system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
10926         urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
10928 2014-01-29  Robert Dewar  <dewar@adacore.com>
10930         * expander.adb: Minor reformatting.
10932 2014-01-29  Javier Miranda  <miranda@adacore.com>
10934         * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
10935         previous patch.
10937 2014-01-29  Javier Miranda  <miranda@adacore.com>
10939         * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
10940         that checks if an interface types defines the predefined "="
10941         function because the compiler was erroneously not generating the
10942         predefined "=" primitive as soon as the name of some interface
10943         primitive is "=" (formals were not checked).
10945 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
10947         * expander.adb (Expander): In GNATprove mode, do not process
10948         transient scopes: they are in general not created in this mode,
10949         and an attempt to examine them will lead to constraint errors when
10950         processing configuration pragmas that have analyzable expressions.
10952 2014-01-29  Vincent Celier  <celier@adacore.com>
10954         * clean.adb (Gnatclean): Fail if main project is an aggregate
10955         project or if there is an aggregate library project in the
10956         project tree.
10957         * gnatcmd.adb: Fail if the main project is an aggregate project
10958         or if there is an aggegate library project in the project tree.
10959         * make.adb (Initialize): : Fail if main project is an aggregate
10960         project or if there is an aggregate library project in the
10961         project tree.
10962         * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
10963         * prj-makr.adb (Initialize): Fail if the main project is an
10964         aggregate project or an aggregate library project.
10966 2014-01-29  Vincent Celier  <celier@adacore.com>
10968         * prj-part.adb (Check_Import_Aggregate): New procedure
10969         to check if an imported project is an aggregate project.
10970         (Parse_Single_Project): Call Check_Import_Aggregate
10971         * projects.texi: Document that aggregate projects cannot be
10972         extended or imported.
10974 2014-01-29  Robert Dewar  <dewar@adacore.com>
10976         * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
10977         reformatting and code clean up.
10978         * gnat_ugn.texi: Add documentation section on Atomic Variables
10979         and Optimization.
10981 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
10983         * einfo.adb Flag264 is now unused.
10984         (Has_Body_References): Removed.
10985         (Set_Has_Body_References): Removed.
10986         (Write_Entity_Flags): Remove the output for flag Has_Body_References.
10987         * einfo.ads Update the comment on usage of attribute
10988         Body_References. Remove attribute Has_Body_References and its
10989         usage in nodes.
10990         (Has_Body_References): Removed along with pragma Inline.
10991         (Set_Has_Body_References): Removed along with pragma Inline.
10992         * sem_prag.adb (Analyze_Global_Item): Move the call to
10993         Record_Possible_Body_Reference in the state related checks
10994         section. Add a comment intended function.
10995         (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
10996         in the state related checks section. Add a comment intended function.
10997         (Analyze_Refinement_Clause): Cleanup the illegal body reference
10998         reporting. Add a comment on timing of error reporting.
10999         (Record_Possible_Body_Reference): Reimplement the routine.
11001 2014-01-29  Vincent Celier  <celier@adacore.com>
11003         * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
11004         unit-based languages.
11005         (Mains.Complete_Mains.Do_Complete): Use the source file project
11006         tree when calling Find_File_Add_Extension. Use the correct
11007         project name when reporting an error.
11009 2014-01-29  Hristian Kirtchev  <kirtchev@adacore.com>
11011         * aspects.adb Add an entry for aspect Part_Of in table
11012         Canonical_Aspect.
11013         * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
11014         Aspect_Argument, Aspect_Names and Aspect_Delay.
11015         * atree.h Define Elist9.
11016         * atree.adb (Elist9): New routine.
11017         (Set_Elist9): New routine.
11018         * atree.ads (Elist9): New routine.
11019         (Set_Elist9): New routine.
11020         * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
11021         the list of node usage.  Remove Refined_State from the list of
11022         node usage.
11023         (Encapsulating_State): New routine.
11024         (Get_Pragma):
11025         Handle pragma Part_Of; (Part_Of_Constituents): New routine.
11026         (Refined_State): Removed.
11027         (Set_Encapsulating_State): New routine.
11028         (Set_Part_Of_Constituents): New routine.
11029         (Set_Refined_State): Removed.
11030         (Write_Field9_Name): Add an entry
11031         for Part_Of_Constituents (Write_Field10_Name): Add an entry for
11032         Encapsulating_State. Remove the entry for Refined_State.
11033         * einfo.ads Add new attributes Encapsulating_State
11034         and Part_Of_Constituents alond with their usage in
11035         entities. Remove attribute Refined_State along with its
11036         usage in entities.
11037         (Encapsulating_State): New routine and
11038         pragma Inline.  (Get_Pragma): Update the comment on usage.
11039         (Part_Of_Constituents): New routine and pragma Inline.
11040         (Refined_State): Removed along with pragma Inline.
11041         (Set_Encapsulating_State): New routine and pragma Inline.
11042         (Set_Part_Of_Constituents): New routine and pragma Inline.
11043         (Set_Refined_State): Removed along with pragma Inline.
11044         * par-prag.adb Pragma Part_Of does not need any special processing
11045         by the parser.
11046         * sem_ch3.adb (Analyze_Declarations): Remove local variables
11047         Body_Id and Prag. Call separate routines to analyze the
11048         contract of a package [body].
11049         (Analyze_Object_Contract):
11050         Update the comment on usage. Remove local variables
11051         Items and Nam. Use Get_Pragma rather than traversing the
11052         classification list.  Verify whether the lack of indicator
11053         Part_Of agrees with the placement of the variable in state space.
11054         (Analyze_Object_Declaration): Initialize the encapsulating state
11055         of a variable.  (Requires_State_Refinement): Moved to sem_util.
11056         * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
11057         (Analyze_Package_Contract): New routine.
11058         * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
11059         (Analyze_Package_Contract): New routine.
11060         * sem_ch10.adb (Decorate_State): Initialize the encapsulating
11061         state and Part_Of constituents.
11062         * sem_ch13.adb (Analyze_Aspect_Specifications):
11063         Add processing for aspect Part_Of. Update all
11064         calls to Decorate_Delayed_Aspect_And_Pragma.
11065         (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
11066         not need any special processing at freeze time.
11067         (Decorate_Delayed_Aspect_And_Pragma): Renamed to
11068         Decorate_Aspect_And_Pragma.  Add formal parameter Delayed and
11069         update the associated comment.
11070         * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
11071         (Analyze_Abstract_State): Add new global variable State_Id. Remove
11072         local constants Errors and Loc. Remove local variables Is_Null
11073         and State_Nam. Create the entity of the abstract state on the
11074         spot, before all remaining checks are performed. Verify that a
11075         missing Part_Of option agrees with the placement of the abstract
11076         state within the state space.
11077         (Analyze_Depends_In_Decl_Part):
11078         Add new global variables Constits_Seen and States_Seen. Check
11079         that a state and a corresponding constituent do not appear
11080         in pragma [Refined_]Depends.
11081         (Analyze_Global_In_Decl_Part):
11082         Add new global variables Constits_Seen and States_Seen. Check
11083         that a state and a corresponding constituent do not appear
11084         in pragma [Refined_]Global.
11085         (Analyze_Global_Item):
11086         Remove the now obsolete code that deals with Part_Of.
11087         Add the entity of the global item to the list of processed
11088         items.  (Analyze_Initializes_In_Decl_Part): Add new global
11089         variables Constits_Seen and States_Seen. Check that a state
11090         and a corresponding constituent do not appear in pragma
11091         Initializes.
11092         (Analyze_Initialization_Item): Add the entity
11093         of the initialization item to the list of processed items.
11094         (Analyze_Input_Item): Add the entity of the initialization
11095         item to the list of processed items.
11096         (Analyze_Input_Output):
11097         Remove the now obsolete code that deals with Part_Of.  Add the
11098         entity of the input/output to the list of processed items.
11099         (Analyze_Part_Of): New routine.
11100         (Analyze_Part_Of_Option): Remove
11101         local constant Par_State. Add local constant Encaps and local
11102         variables Encaps_Id and Legal. Use Analyze_Part of to analyze
11103         the option. Turn the related state into a Part_Of constituent
11104         if the option is legal.
11105         (Analyze_Pragma): Add processing
11106         for pragma Part_Of.
11107         (Analyze_Refined_State_In_Decl_Part):
11108         Remove global constants Pack_Body and Spec_Id. Remove
11109         global variables Abstr_States and Hidden_States. Add new
11110         global variables Available_States, Body_Id, Body_States and
11111         Spec_Id. Add new local constant Body_Decl. Reimplement the
11112         logic that extracts the states available for refinement from
11113         the related package and the body hidden states of the said
11114         package.
11115         (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
11116         (Check_Applicable_Policy): Alphabetize body.
11117         (Check_Dependency_Clause): Replace Refined_State
11118         with Encapsulating_State.
11119         (Check_Matching_Constituent):
11120         Reimplement the logic that determines whether an item is a valid
11121         / invalid constituent of the current refined state. Return when
11122         a construct does not denote a valid abstract state. Extract the
11123         list of Part_Of constituents for further analysis. Check that all
11124         Part_Of constituents of a state have been used in its refinement.
11125         (Check_Matching_State): Update the comment on usage. Operate
11126         on the list of available states.
11127         (Check_Missing_Part_Of): New routine.
11128         (Check_Refined_Global_Item): Replace Refined_State
11129         with Encapsulating_State.
11130         (Check_State_And_Constituent_Use): New routine.
11131         (Create_Abstract_State): New routine.
11132         (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
11133         (Is_Part_Of): Removed.
11134         (Collect_Body_States): New routine.
11135         (Collect_Constituent): Replace Refined_State with Encapsulating_State.
11136         (Collect_Hidden_States): Removed.
11137         (Report_Unrefined_States): Change the profile of the procedure along
11138         with the comment on usage.
11139         (Report_Unused_Constituents): New routine.
11140         (Report_Unused_Hidden_States): Removed.
11141         (Report_Unused_States): New routine.
11142         * sem_prag.ads (Check_Missing_Part_Of): New routine.
11143         * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
11144         appear in the classification pragmas of a package instantiation
11145         or a variable.
11146         (Find_Placement_In_State_Space): New routine.
11147         (Is_Child): Removed.
11148         (Is_Child_Or_Sibling): Remove formal
11149         parameter Private_Child. Remove the private child checks.
11150         (Requires_State_Refinement): Moved from sem_ch3.
11151         * sem_util.ads Add new type State_Space_Kind along with
11152         comment on its usage and values.
11153         (Add_Contract_Item): Update the comment on usage.
11154         (Find_Body_Discriminal): Alphabetize spec.
11155         (Find_Placement_In_State_Space): New routine.
11156         (Is_Child_Or_Sibling): Remove formal parameter Private_Child
11157         and update the comment on usage.
11158         (Requires_State_Refinement): Moved from sem_ch3.
11159         * sinfo.ads: Update the documentation of N_Contract.
11160         * snames.ads-tmpl The predefined name for Part_Of is now used
11161         to denote a pragma. Add Pragma_Id for Part_Of.
11163 2014-01-29  Emmanuel Briot  <briot@adacore.com>
11165         * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
11166         machine as needed.
11167         (Dump): New subprogram.
11169 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11171         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
11172         Expand_Entry_Declaration to factorize code.
11174 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11176         * checks.adb: minor clarification.
11177         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
11178         search for primitive operations to the entities that immediately
11179         follow the type declaration.
11181 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11183         * exp_ch9.adb (Build_Protected_Entry): Do not call
11184         Complete_Entry_Body anymore.
11185         * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
11186         * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
11188 2014-01-29  Pierre-Marie Derodat  <derodat@adacore.com>
11190         * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
11191         string when the Name input bigger than allowed. Adapt the function
11192         specification.
11194 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11196         * checks.adb (Install_Null_Excluding_Check): Do not emit warning
11197         if expression is within a case_expression of if_expression.
11199 2014-01-29  Robert Dewar  <dewar@adacore.com>
11201         * exp_ch9.adb, inline.ads: Minor reformatting.
11203 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11205         * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
11207 2014-01-29  Yannick Moy  <moy@adacore.com>
11209         * inline.ads (Pending_Body_Info): Add SPARK_Mode and
11210         SPARK_Mode_Pragma components to be able to analyze generic
11211         instance.
11212         * sem_ch12.adb (Analyze_Package_Instantiation,
11213         Inline_Instance_Body, Need_Subprogram_Instance_Body,
11214         Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
11215         for future analysis of the instance.
11216         (Instantiate_Package_Body,
11217         Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
11218         from instantiation to analyze the instance.
11220 2014-01-29  Robert Dewar  <dewar@adacore.com>
11222         * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
11223         reorganization.
11225 2014-01-29  Yannick Moy  <moy@adacore.com>
11227         * gnat_rm.texi: Update description of SPARK_Mode pragma.
11229 2014-01-29  Tristan Gingold  <gingold@adacore.com>
11231         * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
11233 2014-01-29  Thomas Quinot  <quinot@adacore.com>
11235         * sem_ch4.adb (Find_Component_In_Instance): Update comment.
11237 2014-01-29  Ed Schonberg  <schonberg@adacore.com>
11239         * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
11240         resulting string is an internal entity. and thus requires no
11241         initialization. This is relevant when Initialize_ Scalars is
11242         enabled, because the resultant spurious initialization may lead to
11243         secondary stack anomalies that produce a mangled name for a task.
11245 2014-01-29  Yannick Moy  <moy@adacore.com>
11247         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
11248         not inherited from spec anymore. Check consistency
11249         rules after processing of declarations.
11250         * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
11251         from spec anymore. Check consistency rules after processing of
11252         declarations.
11253         (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
11254         packages.
11255         * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
11256         consistency rules.
11258 2014-01-27  Robert Dewar  <dewar@adacore.com>
11260         * sem_res.adb (Resolve_Comparison_Op): Add type name/location
11261         to unordered msg.
11262         (Resolve_Range): Add type name/location to unordered msg.
11264 2014-01-27  Claire Dross  <dross@adacore.com>
11266         * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
11267         Capacity) is only called with Capacity >= Length (Source) and
11268         Capacity in Capacity_Range.
11269         * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
11270         a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
11271         is only called with Capacity >= Source.Capacity. Raise Capacity_Error
11272         in the code is this is not the case.
11274 2014-01-27  Thomas Quinot  <quinot@adacore.com>
11276         * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
11277         selected component in an instance where the component of the
11278         actual is not visibile at instantiation.
11280 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11282         * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
11283         has a dynamic predicate, generate freeze node for Actual_Subtype
11284         at once, because the declaration of the corresponding predicate
11285         function will make reference to it.
11287 2014-01-27  Tristan Gingold  <gingold@adacore.com>
11289         * exp_ch7.adb, exp_ch9.adb: Adjust comments.
11291 2014-01-27  Robert Dewar  <dewar@adacore.com>
11293         * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
11294         for 2**X optimization.
11296 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11298         * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
11299         explicitly whether value is in range of Character, because the
11300         library is typically compiled with range checks disabled, and
11301         we cannot rely on the implicit check on the argument of 'Val.
11303 2014-01-27  Vincent Celier  <celier@adacore.com>
11305         * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
11306         not the Target to itself.
11308 2014-01-27  Robert Dewar  <dewar@adacore.com>
11310         * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
11311         changes to avoid incorrect use of unordered enum types.
11313 2014-01-27  Thomas Quinot  <quinot@adacore.com>
11315         * sem_ch4.adb: Minor reformatting.
11317 2014-01-27  Robert Dewar  <dewar@adacore.com>
11319         * scn.adb (Check_End_Of_Line): Removed.
11320         (Error_Long_Line): Removed.
11321         (Determine_License): Use versions of above routines from Scanner.
11322         * scng.adb (Check_End_Of_Line): Moved to spec.
11323         (Error_Long_Line): Removed, no longer used.
11324         * scng.ads (Check_End_Of_Line): Moved here from body.
11326 2014-01-27  Tristan Gingold  <gingold@adacore.com>
11328         * exp_ch7.adb (Build_Cleanup_Statements): Call
11329         Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
11330         for protected body.
11331         * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
11332          Remove Service_Name variable.
11333         (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
11334         factorize code from the above subprograms.
11335         * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
11337 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
11339         * einfo.adb (Has_Option): Reimplemented.
11340         * sem_prag.adb (Analyze_Refinement_Clause): Add global
11341         variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
11342         External_Constit_Seen and State. Add local variables Body_Ref,
11343         Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
11344         avoid a cumbersome while pool. Verify the legality of an external
11345         state and relevant properties.
11346         (Check_External_Property): New routine.
11347         (Check_Matching_State): Remove parameter profile
11348         and update comment on usage.
11349         (Collect_Constituent): Store the
11350         relevant external property of a constituent.
11351         * sem_util.adb (Async_Readers_Enabled): Update the call to
11352         Has_Enabled_Property.
11353         (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
11354         (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
11355         (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
11356         (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
11357         Update comment on usage. Reimplement the logic to recognize the various
11358         formats of properties.
11360 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11362         * par-ch5.adb: Minor reformatting.
11364 2014-01-27  Tristan Gingold  <gingold@adacore.com>
11366         * s-tposen.ads: Harmonize style and comments.
11368 2014-01-27  Vincent Celier  <celier@adacore.com>
11370         * projects.texi: Document that shared library projects, by
11371         default, cannot import projects that are not shared library
11372         projects.
11374 2014-01-27  Robert Dewar  <dewar@adacore.com>
11376         * sem_ch8.adb (Find_Selected_Component): Use Replace instead
11377         of Rewrite.
11379 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11381         * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
11382         any other exception is raised.
11383         (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
11384         still necessary to perform a conversion in order to remove overlong
11385         encodings.
11387 2014-01-27  Robert Dewar  <dewar@adacore.com>
11389         * exp_smem.adb: Minor reformatting.
11391 2014-01-27  Thomas Quinot  <quinot@adacore.com>
11393         * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
11395 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11397         * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
11398         nodes for operands to the original node for the call, to preserve
11399         Original_Node pointers within the resolved operands, given that
11400         they may have been rewritten as well. Previous approach copied
11401         the operands into a new tree and lost those pointers.
11403 2014-01-27  Claire Dross  <dross@adacore.com>
11406         * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
11408 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11410         * sem_util.adb (Check_Internal_Protected_Use): A call through
11411         an anonymous access parameter of the current protected function
11412         is not a potential modification of the current object.
11414 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11416         * a-cobove.adb (Reserve_Capacity): Procedure raises
11417         Capacity_Error, not Constraint_Error, when request cannot be
11418         satisfied.
11420 2014-01-27  Vincent Celier  <celier@adacore.com>
11422         * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
11423         not the Target to itself.
11425 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11427         * exp_ch4.adb (Expand_Concatenate): If the target of the
11428         concatenation is a library-level entity, always use the off-line
11429         version of concatenation, regardless of optimization level. This
11430         is space-efficient, and prevents linking problems when some
11431         units are compiled with different optimization levels.
11433 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11435         * sem_ch5.adb: Code clean up.
11437 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11439         * par-ch5.adb (P_Iterator_Specification): Improve error recovery
11440         when an array or container iterator includes a subtype indication,
11441         which is only legal in an element iterator.
11443 2014-01-27  Thomas Quinot  <quinot@adacore.com>
11445         * exp_ch7.adb: Minor reformatting.
11447 2014-01-27  Robert Dewar  <dewar@adacore.com>
11449         * opt.adb (SPARK_Mode): Default for library units is None rather
11450         than Off.
11451         * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
11452         no longer ordered.
11453         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
11454         possibility.
11455         * snames.ads-tmpl (Name_Auto): Removed, no longer used.
11457 2014-01-27  Robert Dewar  <dewar@adacore.com>
11459         * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
11460         Suspicious_Labels table if we have identifier; followed by loop
11461         or block.
11462         * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
11463         * par.adb (Suspicious_Labels): New table.
11465 2014-01-27  Robert Dewar  <dewar@adacore.com>
11467         * exp_aggr.adb (Check_Bounds): Reason is range check, not
11468         length check.
11470 2014-01-27  Yannick Moy  <moy@adacore.com>
11472         * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
11473         reference.
11474         * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
11475         function now.
11476         (Add_SPARK_Xrefs): Include references to constants.
11477         * spark_xrefs.ads Document new character 'c' for references to
11478         constants.
11480 2014-01-27  Thomas Quinot  <quinot@adacore.com>
11482         * exp_smem.adb (Add_Write_After): For a function call, insert write as
11483         an after action in a transient scope.
11485 2014-01-27  Thomas Quinot  <quinot@adacore.com>
11487         * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
11488         to a shared variable as an OUT formal in a call to an init proc,
11489         the 'Read call must be emitted after, not before, the call.
11491 2014-01-27  Robert Dewar  <dewar@adacore.com>
11493         * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
11495 2014-01-27  Robert Dewar  <dewar@adacore.com>
11497         * a-wichha.adb (Character_Set_Version): Change to output proper
11498         value.
11500 2014-01-27  Hristian Kirtchev  <kirtchev@adacore.com>
11502         * einfo.adb (Is_Input_Only_State): Removed.
11503         (Is_Non_Volatile_State): Removed.
11504         (Is_Output_State): Removed.
11505         * einfo.ads (Is_Input_Only_State): Remove attribute and
11506         subprogram. Update related entity.
11507         (Is_Non_Volatile_State):
11508         Remove attribute and subprogram. Update related entity.
11509         (Is_Output_State): Removed attribute and subprogram. Update
11510         related entity.
11511         * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
11512         generated code.
11513         * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
11514         an object, not just variables.
11515         (Analyze_Object_Contract): New routine.
11516         (Analyze_Variable_Contract): Removed.
11517         (Process_Discriminants): Detect an illegal use of volatile
11518         discriminant in SPARK mode.
11519         * sem_ch5.adb (Analyze_Iterator_Specification):
11520         Detect an illegal use of volatile loop variable.
11521         (Analyze_Loop_Parameter_Specification): Detect an illegal use
11522         of volatile loop variable.
11523         * sem_ch6.adb (Process_Formals): Update the volatile object
11524         detection. Detect an illegal formal of mode IN OUT or OUT in
11525         SPARK mode. Enhance the error messages with references.
11526         * sem_ch12.adb (Instantiate_Object): Update the volatile object
11527         detection. Enhance the error messages with references.
11528         * sem_prag.adb (Analyze_Abstract_State): Enhance the error
11529         messages with references.
11530         (Analyze_Contract_Case): Enhance the error messages with references.
11531         (Analyze_External_Property): Call Check_Duplicate_Property to process
11532         an external property.
11533         (Analyze_External_Property_In_Decl_Part): New routine.
11534         (Analyze_External_State_In_Decl_Part): Removed.
11535         (Analyze_Global_Item): Detect an illegal
11536         use of a volatile constant. Detect an illegal use
11537         of a variable with enabled Effective_Reads. Enhance
11538         the error messages with references. Remove obsolete
11539         checks concerning Input_Only and Output_Only states.
11540         (Analyze_Initialization_Item): Enhance the error messages
11541         with references.
11542         (Analyze_Initializes_In_Decl_Part): Do not
11543         collect the states and variables when the initialization list
11544         is null.
11545         (Analyze_Input_Item): Enhance the error messages with references.
11546         (Analyze_Input_Output): Enhance the error messages with references.
11547         (Analyze_Pragma): Enhance the error messages with references.
11548         (Analyze_Refinement_Clause): Code reformatting.
11549         (Analyze_Refined_Depends_In_Decl_Part):
11550         Rename global variable Global to Reg_Global and update all
11551         occurrences. Add local variables D7 and D8. Update the error
11552         messages with references. Update the call to Collect_Global_Items.
11553         (Analyze_Refined_Global_In_Decl_Part): Add local variables
11554         Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
11555         the call to Collect_Global_Items.  Account for a Proof_In state
11556         in null / useless refinement checks. Verify the coverage of
11557         Proof_In states.
11558         (Check_Dependency_Clause): Remove local variable
11559         Out_Constits. Remove the retrieval and removal of constituents
11560         for an Output_Only state. Remove the reporting of unused
11561         Output_Only state constituents.
11562         (Check_Duplicate_Mode): Enhance
11563         the error message with a reference.
11564         (Check_Duplicate_Property): New routine.
11565         (Check_Duplicate_Option): Enhance the error message with a reference.
11566         (Check_External_Properties): Enhance the error message with a reference.
11567         (Check_Function_Return): Enhance the error message with a reference.
11568         (Check_In_Out_States): Update
11569         comment on usage. Add a specialized error message for Proof_In
11570         constituents. Enhance the error message with a reference.
11571         (Check_Input_States): Update comment on usage. Account for
11572         possible Proof_In constituents. Enhance the error message
11573         with a areference.
11574         (Check_Matching_Constituent): Enhance the error message with a
11575         reference.
11576         (Check_Matching_State): Enchance the error message with a reference.
11577         (Check_Mode): Add local variable From_Global. Update the call to
11578         Find_Mode.  Emit more precise error messages concerning extra items
11579         (Check_Mode_Restriction_In_Enclosing_Context): Consider
11580         pragma Refined_Global.  Enhance the error message with a
11581         reference.
11582         (Check_Mode_Restriction_In_Function): Enhance the error message with
11583         a reference.
11584         (Check_Output_States): Update comment on usage. Add local variable
11585         Posted.  Account for possible Proof_In constituents. Produce a detailed
11586         list of missing constituents.
11587         (Check_Proof_In_States): New routine.
11588         (Check_Refined_Global_Item): Handle Proof_In
11589         constituents. Enchance the error message with a reference.
11590         (Collect_Global_Items): Add formal parameters Proof_In_Items
11591         and Has_Proof_In_State. Update the comment on usage. Account
11592         for Proof_In items.
11593         (Create_Or_Modify_Clause): Enchance
11594         the error message with a reference.
11595         (Find_Mode): Add
11596         formal parameter From_Global. Update the comment on usage.
11597         Detect when the mode is governed by pragma [Refined_]Global.
11598         (Output_Constituents): Removed.
11599         (Report_Extra_Constituents):
11600         Report extra Proof_In constituents.
11601         (Report_Unused_Constituents): Removed.
11602         (Usage_Error): Code reformatting. Enhance the error
11603         messages with reference.
11604         * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
11605         (Analyze_External_State_In_Decl_Part): Removed.
11606         * sem_res.adb (Resolve_Actuals): Update the volatile object
11607         detection. Enhance the error message with a reference.
11608         (Resolve_Entity_Name): Update the volatile object
11609         detection. Enhance the error message with a reference.
11610         * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
11611         (Is_SPARK_Volatile_Object): New routine.
11612         (Has_Volatile_Component): New routine.
11613         * sem_util.ads (Is_Delegate): Alphabetized.
11614         (Is_SPARK_Volatile_Object): New routine.
11615         (Has_Volatile_Component): New routine.
11616         * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
11618 2014-01-27  Ed Schonberg  <schonberg@adacore.com>
11620         * sem_attr.adb: Resolve fully prefix of 'Update.
11622 2014-01-27  Ben Brosgol  <brosgol@adacore.com>
11624         * gnat_rm.texi: Minor clarifications.
11626 2014-01-27  Robert Dewar  <dewar@adacore.com>
11628         * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
11629         about call that is generated as part of an Initial_Condition
11630         check.
11631         * sem_prag.adb: Minor spelling correction.
11633 2014-01-27  Robert Dewar  <dewar@adacore.com>
11635         * sem_prag.adb (Set_Convention_From_Pragma): Check that
11636         convention Ghost can only apply to functions.
11637         * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
11639 2014-01-27  Robert Dewar  <dewar@adacore.com>
11641         * gnat_ugn.texi: Add Short_Enums to documentation of
11642         -gnatet/-gnateT.
11644 2014-01-27  Robert Dewar  <dewar@adacore.com>
11646         * sem_prag.adb (Analyze_Input_Item): Correct check for input
11647         item in same package.
11648         * sem_util.ads, sem_util.adb (Within_Scope): New function.
11650 2014-01-26  Arnaud Charlet  <charlet@adacore.com>
11652         * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
11653         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
11654         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
11655         system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
11656         maintained.
11658 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
11660         * gcc-interface/Makefile.in: Fix oversight.
11662 2014-01-25  Eric Botcazou  <ebotcazou@adacore.com>
11664         * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
11665         conversion from a thin pointer with a shifted value.
11666         * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
11667         read-only flag from the values onto the result.
11668         (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
11670 2014-01-25  Tristan Gingold  <gingold@adacore.com>
11672         * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
11673         for E_Variable with a pragma Linker_Section.
11675 2014-01-25  Robert Dewar  <dewar@adacore.com>
11677         * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
11678         with Default_Value aspect is passed in by copy.
11680 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
11682         * set_targ.adb: Set Short_Enums.
11683         * gcc-interface/lang.opt (fshort-enums): New option.
11684         * gcc-interface/misc.c (gnat_handle_option): Handle it.
11685         (gnat_post_options): Do not modify the global settings.
11687 2014-01-24  Robert Dewar  <dewar@adacore.com>
11689         * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
11690         function.
11691         (Random_Decimal_Fixed): New generic function.
11692         * s-rannum.ads: Minor comment clarifications.
11694 2014-01-24  Robert Dewar  <dewar@adacore.com>
11696         * back_end.adb: Remove Short_Enums handling (handled in
11697         Ttypes/Get_Targ now) Minor added comments.
11698         * freeze.adb: Change name Short_Enums_On_Target to
11699         Target_Short_Enums.
11700         * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
11701         * opt.ads: Minor comment updates.
11702         * sem_ch13.adb: Change name Short_Enums_On_Target to
11703         Target_Short_Enums.
11704         * set_targ.adb: Set Short_Enums from gcc back end.
11705         * set_targ.ads (Short_Enums): New variable.
11706         * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
11707         Ttypes/Get_Targ now).
11708         * ttypes.ads (Target_Short_Enums): New constant boolean switch
11710 2014-01-24  Pascal Obry  <obry@adacore.com>
11712         * g-sercom-mingw.adb: Fix serial port name for port number > 10.
11714 2014-01-24  Gary Dismukes  <dismukes@adacore.com>
11716         * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
11717         comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
11718         stripped off.
11720 2014-01-24  Robert Dewar  <dewar@adacore.com>
11722         * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
11724 2014-01-24  Vincent Celier  <celier@adacore.com>
11726         * prj.adb (Add_Aggregated_Project): Do not add a project in
11727         the list if it is already there.
11729 2014-01-24  Yannick Moy  <moy@adacore.com>
11731         * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
11732         Correct the search for a subrogram declaration to which a pragma is
11733         attached.
11735 2014-01-24  Bob Duff  <duff@adacore.com>
11737         * gnat_ugn.texi: Document --decimal-grouping and
11738         --based-grouping switches in gnatpp.
11740 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11742         * sinfo.ads: Documentation update.
11744 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11746         * sem_ch3.adb (Constant_Redeclaration): New declaration is
11747         illegal if previous one has an initial expression that is an
11748         aggregate expanded into assignments.
11750 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11752         * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
11753         code reorganization to remove spurious warning on a loop with
11754         an array element iterator that has a null range.
11756 2014-01-24  Vincent Celier  <celier@adacore.com>
11758         * make.adb (Binding_Phase): When setting the Ada paths, use
11759         the library ALI dir, not the object dir in libraries.
11761 2014-01-24  Yannick Moy  <moy@adacore.com>
11763         * sinfo.ads: Add documentation of check flag fields.
11765 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11767         * sem_res.adb (Resolve_Actuals): If an actual is a view
11768         conversion of a discriminated object, and the formal type is
11769         discriminated and constrained, apply a discriminant check to
11770         the object itself.
11772 2014-01-24  Robert Dewar  <dewar@adacore.com>
11774         * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
11776 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11778         * sem_ch3.adb (Analyze_Declarations): At the end of an
11779         appropriate declarative part, call Freeze_All from the first
11780         declaration in the scope, not from the first unfrozen one. This
11781         is necessary to apply visibility checks to entities with delayed
11782         aspects. Otherwise, in the presence of instantiations and cleanups
11783         that they may generate, the delayed aspects may be analyzed too
11784         late and produce spurious visibility errors.
11785         * sem_attr.adb: Place etype on range.
11786         * sem_ch6.adb: Documentation expression functions.
11788 2014-01-24  Robert Dewar  <dewar@adacore.com>
11790         * exp_ch7.adb: Minor change of Indices to Indexes (preferred
11791         terminology in compiler).
11793 2014-01-24  Robert Dewar  <dewar@adacore.com>
11795         * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
11796         categories, now that Ada 95 supports raise expressions.
11798 2014-01-24  Robert Dewar  <dewar@adacore.com>
11800         * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
11801         Short_Enums_On_Target.
11802         * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
11803         into account.
11804         * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
11806 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11808         * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
11809         indication is given explicity, check that it matches the array
11810         component type or the container element type of the domain
11811         of iteration.
11813 2014-01-24  Tristan Gingold  <gingold@adacore.com>
11815         * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
11816         * gcc-interface/misc.c (flag_short_enums): Declare.
11817         (gnat_post_options): Set it.
11819 2014-01-24  Vincent Celier  <celier@adacore.com>
11821         * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
11822         to cache the result when Including_Libraries is False.
11823         * prj-env.ads (Ada_Objects_Path): Update documentation
11824         * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
11825         (Get_Object_Directory): Return the Library_Ali_Dir only when
11826         when Including_Libraries is True.
11827         * prj.ads (Get_Object_Directory): Fix and complete documentation
11828         (Project_Data): New component Ada_Objects_Path_No_Libs
11830 2014-01-24  Robert Dewar  <dewar@adacore.com>
11832         * checks.adb (Expr_Known_Valid): Result of fpt operator never
11833         considered valid.
11835 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
11837         * back_end.adb: Minor fix in comment.
11839 2014-01-24  Javier Miranda  <miranda@adacore.com>
11841         * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
11842         required to report the error in case of task types.
11844 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11846         * sem_attr.adb: Additional index checking.
11848 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11850         * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
11851         expressions in each component association, and for records note
11852         the entity in each association choice, for subsequent resolution.
11853         (Resolve_Attribute, case 'Update): Complete resolution of
11854         expressions in each component association.
11856 2014-01-24  Robert Dewar  <dewar@adacore.com>
11858         * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
11859         (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
11860         leading to wrong handling of SPARK_Mode for library units).
11862 2014-01-24  Robert Dewar  <dewar@adacore.com>
11864         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
11865         on generic instances (do not consider them to be internally
11866         generated)
11868 2014-01-24  Doug Rupp  <rupp@adacore.com>
11870         * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
11871         vice pthread_sigmask.
11873 2014-01-24  Vincent Celier  <celier@adacore.com>
11875         * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
11876         not default.
11878 2014-01-24  Vincent Celier  <celier@adacore.com>
11880         * prj-ext.adb (Add): Do not output anything when Silent is True,
11881         whatever the verbosity. When Source is From_External_Attribute,
11882         set the corresponding environment variable if it is not already set.
11883         * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
11884         to False
11885         * prj-proc.adb (Process_Expression_For_Associative_Array):
11886         For attribute External, call Prj.Ext.Add with Silent set to
11887         True for the child environment, to avoid useless output in non
11888         default verbosity.
11890 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11892         * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
11893         range given by a subtype indication, and force evaluation of
11894         the bounds, as for a simple range.
11895         * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
11896         of bounds of slice for various kinds of discrete ranges.
11897         (Evaluate_Name, Evaluate_Subtype_From_Expr): use
11898         Evaluate_Slice_Bounds.
11900 2014-01-24  Bob Duff  <duff@adacore.com>
11902         * s-taskin.ads (Activator): Make this Atomic, because
11903         Activation_Is_Complete reads it, and that can be called
11904         from any task. Previously, this component was only
11905         modified by the activator before activation, and by
11906         Self after activation.
11907         * a-taside.ads, a-taside.adb (Environment_Task,
11908         Activation_Is_Complete): Implement these missing functions.
11910 2014-01-24  Doug Rupp  <rupp@adacore.com>
11912         * init.c: Add a handler section for Android.
11914 2014-01-24  Arnaud Charlet  <charlet@adacore.com>
11916         * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
11918 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11920         * sem_ch4.adb (Operator_Check): If one operand is a
11921         Raise_Expression, set its type to that of the other operand.
11922         * sem_res.adb (Resolve_Raise_Expression): new procedure.
11923         (Resolve_Actuals): For an actual that is a Raise_Expression,
11924         set the type to that of the formal.
11925         * sem_type.adb (Find_Unique_Type): If one of the operands is a
11926         Raise_Expression, return type of the other operand.
11928 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11930         * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
11931         component of the record has a type with a default aspect, and
11932         the corresponding aggregate component is initiaized with a box,
11933         use the default value in the rewritten aggregate.
11935 2014-01-24  Tristan Gingold  <gingold@adacore.com>
11937         * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
11938         s-interr-sigaction.adb,
11939         s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
11940         * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
11941         to the call to Install_Restricted_Handlers.
11943 2014-01-24  Emmanuel Briot  <briot@adacore.com>
11945         * prj-nmsc.adb (Check_File): Add protection when the source is
11946         not fully initialized.
11948 2014-01-24  Ed Schonberg  <schonberg@adacore.com>
11950         * sem_util.adb (Is_Post_State): In a postcondition, a selected
11951         component that denotes an implicit dereference is a reference
11952         to the post state of the subprogram.
11954 2014-01-24  Robert Dewar  <dewar@adacore.com>
11956         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
11957         for generated subprograms.
11958         (Analyze_Subprogram_Specification): Ditto.
11960 2014-01-24  Vincent Celier  <celier@adacore.com>
11962         * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
11963         attributes in package Builder of aggregate and aggregate library
11964         projects.
11965         * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
11966         Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
11967         Remove parameters.  Change error message from "... externally
11968         build library ..." to "... externally built project ...".
11969         (Process_Naming_Scheme.Check): Do not do any check in aggregate
11970         project, as attribute Library_Dir and Library_Name have already
11971         been detected as forbidden.
11973 2014-01-24  Vincent Celier  <celier@adacore.com>
11975         * prj-env.adb (Find_Project): If cached project path is not in
11976         project directory, look in current directory first and use cached
11977         project path only if project is not found in project directory.
11979 2014-01-24  Robert Dewar  <dewar@adacore.com>
11981         * sem_util.adb, lib-xref.adb: Correct false positive warnings.
11983 2014-01-24  Vincent Celier  <celier@adacore.com>
11985         * projects.texi: Document that aggregate projects are only
11986         supported by gprbuild, but not by gnatmake.  Document that the
11987         only attribute Switches in package Binder of aggregate projects
11988         will be ignored if its index is not others.  Document that
11989         attribute Global_Config_File is allowed in package Binder of
11990         aggregate projects.
11992 2014-01-24  Robert Dewar  <dewar@adacore.com>
11994         * sem_prag.adb: Minor code reorganization.
11995         * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
11997 2014-01-24  Pascal Obry  <obry@adacore.com>
11999         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
12000         attribute definition.
12002 2014-01-24  Vincent Celier  <celier@adacore.com>
12004         * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
12005         in the Queue the same source (same path, same multi-source index)
12006         from the same project file, to avoid compiling several times
12007         the same source.
12009 2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
12011         * einfo.ads (First_Rep_Item): Remove obsolete stuff.
12012         (Has_Gigi_Rep_Item): Likewise.
12013         * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
12014         Has_Gigi_Rep_Item for objects.
12015         * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
12016         (prepend_one_attribute): ...this.
12017         (prepend_one_attribute_pragma): New function extracted from...
12018         (prepend_attributes): ...here.  Swap the parameters for consistency.
12019         (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
12020         prepend_attributes.
12021         <object>: Deal with a pragma Linker_Section on a constant
12022         or variable.  <E_Function>: Deal with a pragma Linker_Section
12023         on a subprogram.
12024         (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
12026 2014-01-24  Vincent Celier  <celier@adacore.com>
12028         * opt.ads: Minor comment update.
12030 2014-01-24  Robert Dewar  <dewar@adacore.com>
12032         * sem_prag.adb (Analyze_Input_Output): Add missing error check
12033         for junk operand.
12034         * sem_util.adb (Is_Refined_State): Add defense against junk
12035         tree from error.
12037 2014-01-24  Pascal Obry  <obry@adacore.com>
12039         * projects.texi: Removes Build_Slaves attribute documentation.
12041 2014-01-23  Robert Dewar  <dewar@adacore.com>
12043         * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
12044         setting.
12046 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12048         * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
12049         applies to expressions that come from source.
12050         * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
12051         message.
12052         (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
12053         rule regarding potentially unevaluated expressions, to prefix
12054         of attribute.
12056 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12058         * exp_util.adb (Make_Invqriant_Call): If type of expression is
12059         a private extension, get invariant from base type.
12061 2014-01-23  Robert Dewar  <dewar@adacore.com>
12063         * sem_util.adb, sem_attr.adb: Minor reformatting.
12065 2014-01-23  Robert Dewar  <dewar@adacore.com>
12067         * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
12068         (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
12069         * sem.adb (Semantics): Remove save/restore of
12070         SPARK_Mode[_Pragma]. Not needed since already done in
12071         Save/Restore_Opt_Config_Switches.
12073 2014-01-23  Robert Dewar  <dewar@adacore.com>
12075         * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
12076         freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
12077         Linker_Section enhancements.
12079 2014-01-23  Tristan Gingold  <gingold@adacore.com>
12081         * gnat_rm.texi: Minor editing.
12083 2014-01-23  Robert Dewar  <dewar@adacore.com>
12085         * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
12086         with'ed internal units.
12087         * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
12089 2014-01-23  Javier Miranda  <miranda@adacore.com>
12091         * lib-xref.adb (Generate_Reference): As part of processing the
12092         "end-of-spec" reference generate an extra reference to the first
12093         private entity of the package.
12094         * xr_tabls.adb (Add_Reference): No action needed for the extra
12095         'E' reference associated; similar to the processing of the
12096         'e' reference.
12098 2014-01-23  Bob Duff  <duff@adacore.com>
12100         * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
12102 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12104         * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
12105         predicate to implement rule given in 6.1.1 (20/3).
12106         * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
12107         'Old in a postcondition, if it is potentially unevaluated and
12108         it is not an entity name.
12110 2014-01-23  Bob Duff  <duff@adacore.com>
12112         * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
12114 2014-01-23  Robert Dewar  <dewar@adacore.com>
12116         * gnatlink.adb (Gnatlink): Fix problem of generating bad name
12117         msg on VMS.
12119 2014-01-23  Bob Duff  <duff@adacore.com>
12121         * g-dynhta.ads: Minor comment fix.
12123 2014-01-23  Yannick Moy  <moy@adacore.com>
12125         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
12126         from spec on body only when not already inherited on spec. Set
12127         SPARK_Mode from context on body without previous spec.  *
12128         * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
12129         library-level entities.  Correct retrieval of entity from
12130         declaration, for cases where the declaration is not a unit.
12131         * sem_ch12.adb (Instantiate_Object): Avoid
12132         calling Is_Volatile_Object on an empty node.
12134 2014-01-23  Robert Dewar  <dewar@adacore.com>
12136         * gnatlink.adb (Gnatlink): Check for suspicious executable file
12137         names on windows.
12139 2014-01-23  Robert Dewar  <dewar@adacore.com>
12141         * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
12142         * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
12143         style errors in instances.
12144         * g-dynhta.ads (Static_HTable): Comment updates.
12146 2014-01-23  Vincent Celier  <celier@adacore.com>
12148         * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
12149         to find a configuration project file when Config_File_Name is
12150         No_Configuration_File.
12151         * prj-conf.ads (No_Configuration_File): New constant String.
12152         * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
12153         with Config_File_Name set to No_Configuration_File, so that
12154         no existing configuration project file will be used, and the
12155         configuration project will be only created in memory when
12156         Add_Default_GNAT_Naming_Scheme is called.
12157         * projects.texi: Minor reformatting.
12159 2014-01-23  Vincent Celier  <celier@adacore.com>
12161         * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
12162         a config project file if On_Load_Config is not null.
12163         * prj-pars.adb: Minor comment changes.
12165 2014-01-23  Ed Schonberg  <schonberg@adacore.com>
12167         * lib-xref.adb (Output_References): Output progenitors of
12168         synchronized tagged types, for source navigation.
12170 2014-01-23  Robert Dewar  <dewar@adacore.com>
12172         * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
12173         expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
12174         sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
12176 2014-01-23  Emmanuel Briot  <briot@adacore.com>
12178         * prj-conf.adb (Get_Or_Create_Configuration_File): call
12179         On_Load_Config later.
12181 2014-01-23  Hristian Kirtchev  <kirtchev@adacore.com>
12183         * sem_ch3.adb (Analyze_Declarations): Do not
12184         generate the spec of the late primitive in ASIS mode. Add two
12185         comments to explain the special cases when the expansion is
12186         not performed.
12188 2014-01-23  Robert Dewar  <dewar@adacore.com>
12190         * sem_util.adb (Note_Possible_Modification): Fix error of
12191         misbehaving for implicit dereference cases in -gnatc mode.
12193 2014-01-23  Emmanuel Briot  <briot@adacore.com>
12195         * prj-pars.adb: Minor reformatting.
12197 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12199         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
12200         body generated for an expression function within a protected body
12201         needs a set of renaming declarations if the expression function
12202         comes from source.
12204 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12206         * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
12207         list interface progenitor of a tagged concurrent type, for better
12208         source navigation.
12210 2014-01-22  Robert Dewar  <dewar@adacore.com>
12212         * lib.adb (In_Extended_Main_Code_Unit): Return False for
12213         Standard_Location.
12214         (In_Extended_Main_Source_Unit): Return False for Standard_Location.
12215         * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
12216         treatment of Slocs No_Location and Standard_Location.
12217         * restrict.adb (Check_Restriction_No_Dependence): Explicitly
12218         check for entity with Standard_Location Sloc, rather than relying
12219         on Lib routines to do that.
12220         * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
12221         that a call cannot occur before a later occuring body within
12222         the same unit.
12224 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12226         * rtsfind.adb: Update comment.
12228 2014-01-22  Hristian Kirtchev  <kirtchev@adacore.com>
12230         * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
12231         * sem_ch3.adb (Analyze_Declarations): Add local variable
12232         Body_Seen. Generate the spec of a late controlled
12233         primitive body that is about to freeze its related type.
12234         (Handle_Late_Controlled_Primitive): New routine.
12236 2014-01-22  Robert Dewar  <dewar@adacore.com>
12238         * a-stream.adb: Minor reformatting.
12240 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12242         * sem_ch8.adb (From_Actual_Package): Introduce a recursive
12243         sub-procedure Declared_In_Actual to handle properly the visibility
12244         of actuals in actual packages, that are themselves actuals to a
12245         actual package of the current instance. This mimics properly the
12246         visibility of formals of formal packages declared with a box,
12247         within the corresponding generic unit.
12249 2014-01-22  Robert Dewar  <dewar@adacore.com>
12251         * checks.adb: Do not assume that a volatile variable is valid.
12253 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12255         * g-catiio.ads (Image, Value): Clarify that these functions
12256         operate in the local time zone.  Minor documentation update.
12258 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12260         * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
12262 2014-01-22  Robert Dewar  <dewar@adacore.com>
12264         * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
12265         Moved to sem_aux.adb.
12267 2014-01-22  Robert Dewar  <dewar@adacore.com>
12269         * vms_data.ads: Minor reformatting.
12271 2014-01-22  Robert Dewar  <dewar@adacore.com>
12273         * debug.adb: Document messages affected by -gnatd.E including
12274         the new ones that relate to late definition of equality.
12275         * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
12276         debug flag -gnatd.E is set, then generate warnings rather than
12277         errors.
12278         (Check_Untagged_Equality): In earlier versions of Ada,
12279         generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
12281 2014-01-22  Robert Dewar  <dewar@adacore.com>
12283         * sem_prag.adb (Usage_Error): Output additional messages for
12284         unconstrained OUT parameters lacking an input dependency.
12286 2014-01-22  Robert Dewar  <dewar@adacore.com>
12288         * sem_ch4.adb: Minor reformatting.
12290 2014-01-22  Robert Dewar  <dewar@adacore.com>
12292         * restrict.ads: Minor reformatting.
12293         * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
12294         forbids a call from within a subprogram to the same subprogram.
12296 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12298         * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
12299         stream attributes for Stream_Element_Array.
12300         * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
12301         * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
12302         defined in the current scope.
12304 2014-01-22  Robert Dewar  <dewar@adacore.com>
12306         * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
12308 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12310         * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
12312 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12314         * sem_ch3.adb (Analyze_Object_Declaration): For a constant
12315         declaration initialized with a function call, whose type
12316         has variable size, need to remove side effects so that the
12317         initialization expression becomes a dereference of a temporary
12318         reference to the function result.
12320 2014-01-22  Yannick Moy  <moy@adacore.com>
12322         * errout.adb (Initialize): Remove trick to add dummy entry
12323         in Warnings table.
12324         * erroutc.adb (Set_Warnings_Mode_Off,
12325         Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
12326         command line switch.
12327         * opt.ads (Warning_Mode): Document behavior
12328         wrt pragma Warnings, in normal mode and in GNATprove_Mode.
12330 2014-01-22  Robert Dewar  <dewar@adacore.com>
12332         * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
12334 2014-01-22  Robert Dewar  <dewar@adacore.com>
12336         * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
12337         (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
12338         Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
12339         case Storage_Size): call Check_Pool_Size_Clash.
12341 2014-01-22  Robert Dewar  <dewar@adacore.com>
12343         * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
12344         sem_eval.ads: Minor reformatting.
12346 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12348         * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
12349         Any_Composite to prevent cascaded errors.
12351 2014-01-22  Yannick Moy  <moy@adacore.com>
12353         * errout.adb (Initialize): Do not insert special entry in Warnings
12354         table in GNATprove_Mode.
12355         * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
12356         GNATprove_Mode.
12357         * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
12358         warnings anymore.
12360 2014-01-22  Robert Dewar  <dewar@adacore.com>
12362         * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
12363         initializes case.
12365 2014-01-22  Robert Dewar  <dewar@adacore.com>
12367         * snames.ads-tmpl: Update header.
12369 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12371         * exp_util.adb (Insert_Actions): When inserting actions on a
12372         short circuit operator that has already been analyzed, do not park
12373         actions in node; instead introduce an N_Expression_With_Actions
12374         and insert actions immediately.
12375         Add guard for unexpected case of climbing up through statement
12376         in Actions list of an N_Expression_With_Actions.
12377         * sem_elab.adb (Insert_Elab_Check): Remove complex
12378         specialized circuitry for the case where the context is already
12379         analyzed, as it is not needed and introduces irregularities in
12380         finalization. Instead rely on the above change to Insert_Actions
12381         to ensure that late insertion on short circuit operators works
12382         as expected.
12384 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12386         * sem_ch4.adb (Operator_Check): Improve error message when an
12387         operand of concatenation is an access type.
12389 2014-01-22  Thomas Quinot  <quinot@adacore.com>
12391         * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
12392         cascaded error.
12394 2014-01-22  Ed Schonberg  <schonberg@adacore.com>
12396         * sem_ch8.adb (Find_Selected_Component): Handle properly the case
12397         of an expanded name in a proper body, whose prefix is a package
12398         in the context of the proper body, when there is a homonym of
12399         the package declared in the parent unit.
12401 2014-01-22  Robert Dewar  <dewar@adacore.com>
12403         * sem_warn.adb (Check_Use_Clause): Don't give no entities used
12404         msg if errors found.
12405         (Check_One_Unit): Same change.
12407 2014-01-22  Robert Dewar  <dewar@adacore.com>
12409         * ug_words: Add missing/wrong entries for VMS warning switches.
12410         * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
12412 2014-01-22  Jerome Guitton  <guitton@adacore.com>
12414         * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
12415         arm.
12417 2014-01-22  Robert Dewar  <dewar@adacore.com>
12419         * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
12421 2014-01-22  Eric Botcazou  <ebotcazou@adacore.com>
12423         * gcc-interface/Makefile.in: Minor fixes.
12425 2014-01-21  Robert Dewar  <dewar@adacore.com>
12427         * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
12428         * par-ch5.adb (P_Condition): New version with expression prescanned.
12429         * par.adb (P_Condition): New version with expression prescanned.
12431 2014-01-21  Robert Dewar  <dewar@adacore.com>
12433         * gnat_rm.texi: Document that Allow_Integer_Address is ignored
12434         if Address is not a private type.
12435         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
12436         Ignore pragma if System.Address is not a private type.
12438 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12440         * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
12441         uninitialized value.
12443 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12445         * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
12447 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12449         * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
12450         the value of Assertions_Enabled flag when compiling an instance of
12451         an internal unit. This facilitates the use of pre/postconditions
12452         in generic internal units, such as the new elementary function
12453         libraries.
12455 2014-01-21  Robert Dewar  <dewar@adacore.com>
12457         * exp_aggr.adb: Minor reformatting.
12458         * sem_attr.adb: Minor reformatting.
12459         * sem_res.adb: Minor comment addition.
12460         * einfo.adb: Minor comment updates.
12461         * freeze.adb: Minor reformatting and code reorganization.
12463 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12465         * par-ch4.adb (P_If_Expression): Handle more gracefully an
12466         elsif clause that does not have an else part.
12468 2014-01-21  Robert Dewar  <dewar@adacore.com>
12470         * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
12471         * gcc-interface/Makefile.in: clean up target pairs.
12473 2014-01-21  Pascal Obry  <obry@adacore.com>
12475         * projects.texi: Minor typo fix.
12477 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12479         * freeze.adb (Check_Component_Storage_Order): If a record type
12480         has an explicit Scalar_Storage_Order attribute definition clause,
12481         reject any component that itself is of a composite type and does
12482         not have one.
12484 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12486         * sem_ch10.adb (Generate_Parent_Reference): Make public so it
12487         can be used to generate proper cross-reference information for
12488         the parent units of proper bodies.
12490 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12492         * exp_pakd.adb (Expand_Packed_Element_Set,
12493         Expand_Packed_Element_Reference): No byte swapping required in
12494         the front-end for the case of a reverse storage order array,
12495         as this is now handled uniformly in the back-end.  However we
12496         still need to swap back an extracted element if it is itself a
12497         nested composite with reverse storage order.
12499 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
12501         * sem_prag.adb (Analyze_External_Property): Add processing for "others".
12502         (Analyze_Pragma): Update the grammar of pragma Abstract_State to
12503         include "others".
12505 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12507         * gnat_ugn.texi: Minor updates.
12509 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12511         * exp_pakd.adb: Update comment, minor reformatting.
12513 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
12515         * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
12516         object check when SPARK_Mode is on.
12517         * sem_ch6.adb (Process_Formals): Trigger the volatile object
12518         check when SPARK_Mode is on.
12519         * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
12520         check when SPARK_Mode is on.
12521         * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
12522         corresponding pragma of aspect SPARK_Mode in the visible
12523         declarations of a package declaration.
12524         * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
12525         check when SPARK_Mode is on.
12526         * sem_res.adb (Resolve_Actuals): Trigger the volatile object
12527         check when SPARK_Mode is on.
12528         (Resolve_Entity_Name): Trigger
12529         the volatile object check when SPARK_Mode is on.
12531 2014-01-21  Robert Dewar  <dewar@adacore.com>
12533         * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
12534         sem_ch6.adb, a-except-2005.adb: Minor reformatting.
12536 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12538         * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
12539         object is declared, it is rewritten as a renaming of an dynamic
12540         expression that wraps the initial value.  The renaming declaration
12541         is first given an internal name, to prevent collisions with the
12542         entity already declared, and then the name is modified to reflect
12543         the original one. the modification of the name must preserve
12544         the source location of the original, to prevent spurious errors
12545         when compiling with style checks if the declaration involves
12546         more than one entity.
12548 2014-01-21  Hristian Kirtchev  <kirtchev@adacore.com>
12550         * aspects.adb Add entries for Async_Readers, Async_Writers,
12551         Effective_Reads and Effective_Writes in table Canonical_Aspect.
12552         * aspects.ads Add entries for Async_Readers, Async_Writers,
12553         Effective_Reads and Effective_Writes in tables Aspect_Id,
12554         Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
12555         * atree.adb (Ekind_In): New version with 8 parameters.
12556         (Node34): New routine.
12557         (Set_Node34): New routine.
12558         * atree.ads (Ekind_In): New version with 8 parameters.
12559         (Node34): New routine.
12560         (Set_Node34): New routine.
12561         * einfo.adb Contract is now Node34.
12562         (Contract): Update the assertion and node usage.
12563         (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
12564         Effective_Reads and Effective_Writes.
12565         (Set_Contract): Update the assertion and node usage.
12566         (Write_Field24_Name): Remove the output for a contract.
12567         (Write_Field34_Name): Add output for a contract.
12568         * einfo.ads Contract is now Node34. Update the comment on
12569         attribute usage and related node structures.
12570         (Get_Pragma): Update the comment on usage.
12571         * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
12572         Effective_Reads and Effective_Writes do not require special
12573         processing by the parser.
12574         * sem_ch3.adb (Analyze_Variable_Contract): New routine.
12575         (Analyze_Declarations): Analyze the contract of a variable at
12576         the end of the declarative region.
12577         (Analyze_Object_Declaration): Create a contract for a variable.
12578         * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
12579         of classification pragmas.
12580         (Process_Formals): Detect an illegal
12581         use of a volatile object as a formal in a function.
12582         * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
12583         a volatile object as an actual in generic instantiation.
12584         * sem_prag.adb Add entries for Async_Readers, Async_Writers,
12585         Effective_Reads and Effective_Writes in table Sig_Flags.
12586         (Analyze_External_State_In_Decl_Part): New routine.
12587         (Analyze_Global_Item): Detect an illegal use of a volatile object
12588         as a global item of a function.
12589         (Analyze_Pragma): Reimplement
12590         pragma Abstract_State. Add support for pragmas Async_Readers,
12591         Async_Writers, Effective_Reads and Effective_Writes.
12592         (Check_External_Properties): New routine.
12593         * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
12594         (Check_External_Properties): New routine.
12595         * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
12596         volatile object as an actual in a call.
12597         (Resolve_Entity_Name):
12598         Add local variables Par, Prev and Usage_OK. Detect illegal
12599         contexts of volatile objects.
12600         * sem_util.adb (Add_Contract_Item): Add support for
12601         pragmas associated with the contract of a variable.
12602         (Async_Readers_Enabled): New routine.
12603         (Async_Writers_Enabled): New routine.
12604         (Effective_Reads_Enabled): New routine.
12605         (Effective_Writes_Enabled): New routine.
12606         (Has_Enabled_Property):
12607         New routine.
12608         (Is_Unchecked_Conversion_Instance): New routine.
12609         (Is_Volatile_Object): Add support for entities that may denote
12610         a volatile object.
12611         * sem_util.ads (Add_Contract_Item): Update the
12612         comment on usage.
12613         (Async_Readers_Enabled): New routine.
12614         (Async_Writers_Enabled): New routine.
12615         (Effective_Reads_Enabled): New routine.
12616         (Effective_Writes_Enabled): New routine.
12617         (Is_Unchecked_Conversion_Instance): New routine.
12618         * sinfo.ads Update the comment on the structure of N_Contract.
12619         * snames.ads-tmpl Add predefined names for Async_Readers,
12620         Async_Writers, Effective_Reads and Effective_Writes. Add
12621         pragma ids for Async_Readers, Async_Writers, Effective_Reads
12622         and Effective_Writes.
12624 2014-01-21  Robert Dewar  <dewar@adacore.com>
12626         * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
12627         * sem_eval.adb (Compile_Time_Known_Value): Remove special
12628         handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
12629         function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
12630         (Test_Foldable): Add CRT_Safe parameter
12631         * sem_eval.ads (Compile_Time_Known_Value): Remove special
12632         handling of CRT mode.
12633         (CRT_Safe_Compile_Time_Known_Value): New function.
12635 2014-01-21  Robert Dewar  <dewar@adacore.com>
12637         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
12638         with pragma or aspect that applies to package spec or subprogram
12639         spec.
12641 2014-01-21  Robert Dewar  <dewar@adacore.com>
12643         * exp_aggr.adb: Minor reformatting.
12645 2014-01-21  Johannes Kanig  <kanig@adacore.com>
12647         * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
12649 2014-01-21  Bob Duff  <duff@adacore.com>
12651         * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
12653 2014-01-21  Steve Baird  <baird@adacore.com>
12655         * gnat_rm.texi: Improve description of SPARK_Mode pragma.
12657 2014-01-21  Vincent Celier  <celier@adacore.com>
12659         * prj-part.adb (Parse_Single_Project): Accept to extend a project
12660         if it has only be imported by an project being extended. When a
12661         project that has only been imported by a project being extended
12662         is imported by another project that is not being extended,
12663         reset the previous indication, so that it will be an error if
12664         this project is extended later.
12665         * prj-tree.adb (Create_Project): Include component From_Extended
12666         in table Projects_HT
12667         * prj-tree.ads (Project_Name_And_Node): New Boolean component
12668         From_Extended
12670 2014-01-21  Robert Dewar  <dewar@adacore.com>
12672         * atree.ads, atree.adb: Add Node33 and Set_Node33.
12673         * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
12674         New field (SPARK_Pragma_Inherited): New flag
12675         (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
12676         Removed.
12677         * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
12678         * opt.ads (SPARK_Mode_Pragma): New global variable.
12679         * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
12680         * sem_ch3.adb: Use new SPARK_Mode data structures.
12681         * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
12682         * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
12683         * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
12684         (Pop_Scope): Restore SPARK_Mode_Pragma.
12685         * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
12686         new data structures.
12688 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12690         * back_end.adb: Undo previous change, not needed. Minor reformatting.
12692 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12694         * exp_ch5.adb: Fix comment.
12695         * switch-c.adb: Minor comment update.
12696         * exp_ch3.adb: Minor reformatting.
12698 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12700         * back_end.adb (Scan_Compiler_Arguments): Do not store object
12701         filename in gnatprove mode.
12703 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12705         * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
12706         suppresses usage of primitive _assign for tagged types).
12707         * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
12708         No_Ctrl_Actions for a tagged type that does not require
12709         finalization, as we want to disable usage of _assign (which
12710         may cause undesirable discriminant checks on an uninitialized,
12711         invalid target).
12713 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12715         * sem_prag.adb: Reject invariant'class on completion.
12717 2014-01-21  Javier Miranda  <miranda@adacore.com>
12719         * exp_ch3.adb (Build_Init_Procedure): For
12720         derivations of interfaces, do not move the the initialization
12721         of the _parent field since such assignment is not generated.
12723 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12725         * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
12726         with the operator it renames if we are within an expression of
12727         a pre/postcondition, because the expression will be reanalyzed
12728         at a later point, and the analysis of the renaming may affect
12729         the visibility of the operator when in an instance.
12731 2014-01-21  Robert Dewar  <dewar@adacore.com>
12733         * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
12734         Add this flag to type conversion nodes and assignment nodes.
12735         * treepr.adb: Deal properly with Flag 1,2,3.
12736         * treeprs.adt: Minor comment update.
12738 2014-01-21  Robert Dewar  <dewar@adacore.com>
12740         * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
12741         parameter.
12742         * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
12743         parameter, completely rewrite spec.
12745 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12747         * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
12748         instance that is inlined, it may have been rewritten as a wrapper
12749         package. In that case the unit that must be made visible is the
12750         related instance of the package.
12752 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12754         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
12755         previous change in codepeer mode.
12757 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12759         * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
12760         call to Abort_Undefer, as expected by the runtime.
12761         * s-tasren.adb (Local_Complete_Rendezvous): Replace
12762         Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
12763         deferred at this point. Update comments.
12765 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12767         * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
12769 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12771         * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
12772         remove from doc.
12774 2014-01-21  Robert Dewar  <dewar@adacore.com>
12776         * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
12778 2014-01-21  Thomas Quinot  <quinot@adacore.com>
12780         * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
12781         this is value is used in Node_Id arithmetic operations.
12782         (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
12783         instead of hard-coded unrolled code.
12785 2014-01-21  Yannick Moy  <moy@adacore.com>
12787         * gnat1drv.adb: Minor code cleanup, removing useless code.
12789 2014-01-21  Arnaud Charlet  <charlet@adacore.com>
12791         * opt.ads (SPARK_Switches_File_Name): New.
12792         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
12793         * usage.adb (Usage): Document -gnates, in gnatprove mode only.
12794         * gnat_ugn.texi: Document -gnates.
12796 2014-01-21  Yannick Moy  <moy@adacore.com>
12798         * errout.adb (Special_Msg_Delete): Update comment. Remove
12799         special case for GNATprove which should not ignore mismatch
12800         in sizes for representation clauses.
12801         * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
12802         which should not ignore pragma Pack.
12804 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12806         * sem_ch4.adb: Code clean up.
12808 2014-01-21  Steve Baird  <baird@adacore.com>
12810         * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
12812 2014-01-21  Robert Dewar  <dewar@adacore.com>
12814         * gcc-interface/gigi.h: Get Flags array address.
12815         * gcc-interface/trans.c: Acquire Flags array address.
12816         * atree.adb: Add support for Flags array and Flag0,1,2,3.
12817         * atree.ads: Add support for Flags array and Flag0,1,2,3.
12818         * atree.h: Add support for Flags array and Flag0,1,2,3.
12819         * back_end.adb: Pass Flags array address to gigi.
12821 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12823         * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
12824         reference to generated body so that legality checks on stream
12825         attributes are properly applied. If type is tagged and already
12826         frozen, insert generated body at the point of the renaming
12827         declaration.
12829 2014-01-21  Ed Schonberg  <schonberg@adacore.com>
12831         * sem_ch12.adb: Code clean up.
12832         * sem_ch8.adb: Minor reformatting
12834 2014-01-20  Robert Dewar  <dewar@adacore.com>
12836         * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
12837         converting warnings on inevitable exceptions to errors.
12838         * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
12839         converting warnings on inevitable exceptions to errors.
12840         * opt.adb (SPARK_Mode_Config): Handled like other config flags
12841         * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
12842         SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
12843         SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
12844         New flag (Config_Switches_Type): Add SPARK_Mode field
12845         * sem.adb: Minor code reorganization (remove unnecessary with)
12846         * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
12847         * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
12848         converting warnings on inevitable exceptions to errors.
12849         * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
12850         converting warnings on inevitable exceptions to errors.
12851         * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
12852         converting warnings on inevitable exceptions to errors.
12853         * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
12854         converting warnings on inevitable exceptions to errors.
12855         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
12856         from spec if needed
12857         * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
12858         from spec if needed
12859         * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
12860         Restore SPARK_Mode
12861         * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
12862         converting warnings on inevitable exceptions to errors.
12863         * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
12864         (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
12865         of Get_SPARK_Mode_Id
12866         * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
12867         * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
12868         converting warnings on inevitable exceptions to errors.
12869         * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
12870         converting warnings on inevitable exceptions to errors.
12871         * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
12872         SPARK_Mode_Type
12874 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12876         * sem_ch13.adb: Add semantic information to rewritten type
12877         reference.
12879 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12881         * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
12882         are of a type with unknown discriminants, convert both to the
12883         underlying view of the type, so that the proper constraint check
12884         can be applied to the right-hand side.
12886 2014-01-20  Robert Dewar  <dewar@adacore.com>
12888         * atree.adb (Copy_Node): Fix failure to copy last component
12889         (Exchange_Entities): Fix failure to exchange last entity
12891 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12893         * sem_ch12.adb: Code clean up.
12895 2014-01-20  Robert Dewar  <dewar@adacore.com>
12897         * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
12899 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12901         * sem_ch4.adb (Analyze_Quantified_Expression): If after
12902         pre-analysis  the loop parameter specification has been
12903         rewritten as a iterator specification, propagate the change to
12904         the quantified expression, for ASIS navigtion needs.
12906 2014-01-20  Vincent Celier  <celier@adacore.com>
12908         * par-ch10.adb: Minor error message change: escape [ and ].
12910 2014-01-20  Robert Dewar  <dewar@adacore.com>
12912         * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
12913         * errout.adb: Implement [ and ] insertion characters.
12914         * errout.ads: Document new [ and ] insertion characters.
12915         * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
12916         addition of ??? comment.
12917         * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
12918         * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
12919         sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
12920         Make warnings on exceptions into errors in GNATprove mode.
12921         * sem_dim.adb: Minor reformatting throughout Quote [ and ]
12922         in error messages.
12924 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12926         * sem_ch13.adb: Code clean up.
12928 2014-01-20  Robert Dewar  <dewar@adacore.com>
12930         * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
12931         messages.
12932         * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
12933         error in GNATprove mode.
12935 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12937         * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
12938         reference 'Old takes no parameters, and thus can appear as a
12939         prefix of a slice.
12941 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
12943         * exp_aggr.adb: Fix minor typos.
12945 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12947         * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
12948         instance the attribute is legal, and its value is determined
12949         statically if the type has no discriminants. This choice is
12950         more useful than rechecking the legality rule in the instance,
12951         is consistent with older usage, and is also consistent with all
12952         existing tests.
12954 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
12956         * sem_cat.adb (Validate_Static_Object_Name): Change error into
12957         warning in Relaxed_Semantic_Mode.
12959 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
12961         * sem_attr.adb: Code and comments cleanup.
12963 2014-01-20  Yannick Moy  <moy@adacore.com>
12965         * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
12966         * errout.adb (Compilation_Errors): Remove special handling in
12967         GNATprove mode.
12968         * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
12969         removed debug flags.
12970         * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
12971         Global, Initial_Condition, Initializes and Refined_State pragmas and
12972         aspects.
12973         * opt.ads (Frame_Condition_Mode, Formal_Extensions,
12974         SPARK_Strict_Mode): Remove global flags.
12975         * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
12976         always performed now, on packages declaring a null state.
12977         (Signed_Integer_Type_Declaration): Remove ill-designed attempt
12978         at providing pedantic mode for bounds of integer types.
12979         * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
12980         "some" quantified expression now issued under control of -gnatw.t,
12981         like the other warning on unused bound variable.
12982         * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
12983         on removed flag.
12984         (Analyze_Pragma): Remove tests for SPARK 2014
12985         pragmas, not officially allowed by GNAT.
12987 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
12989         * sem_prag.adb (Analyze_Pragma): Ensure that
12990         the sole argument of pragmas Abstract_State, Contract_Cases,
12991         Depends, Global and Initializes in in aggregate form.
12992         (Analyze_Refined_Pragma): Ensure that the sole argument of
12993         pragmas Refined_Depends, Refined_Global and Refined_State is in
12994         aggregate form.
12995         (Ensure_Aggregate_Form): New routine.
12997 2014-01-20  Doug Rupp  <rupp@adacore.com>
12999         * sem_attr.adb (Analyze_Attribute): case
13000         Attribute_Constrained => treat all prefixes as legal for Declib
13001         compatibility.
13003 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13005         * sem_prag.adb (Check_Mode): Reimplement the routine.
13006         (Find_Mode): New routine.
13008 2014-01-20  Robert Dewar  <dewar@adacore.com>
13010         * sem_ch4.adb (Operator_Check): Handle additional
13011         Allow_Integer_Address cases.
13013 2014-01-20  Robert Dewar  <dewar@adacore.com>
13015         * gnat_rm.texi (Allow_Integer_Address): Remove note about not
13016         allowed if address is non-private, no longer true.
13017         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13018         Remove check for address being private, causes difficulty when
13019         pragma used in gnat.adc file and is not needed, since we guard
13020         this in Address_Integer_Convert_OK.
13021         * exp_ch7.adb: Minor reformatting.
13022         * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
13024 2014-01-20  Robert Dewar  <dewar@adacore.com>
13026         * checks.adb (Apply_Range_Check): Remove gnatprove special
13027         casing of exponentiation.
13028         * sem_res.adb (Resolve_Op_Expon): Apply range check to right
13029         operand for integer case to check range against Natural.
13031 2014-01-20  Robert Dewar  <dewar@adacore.com>
13033         * s-tataat.adb: Minor reformatting.
13035 2014-01-20  Robert Dewar  <dewar@adacore.com>
13037         * einfo.adb (Is_Descendent_Of_Address): Now applies to all
13038         entities, and also fix documentation to remove mention of visible
13039         integer type, since this is not what the implementation does.
13040         * einfo.ads (Is_Descendent_Of_Address): Now applies to all
13041         entities, and also fix documentation to remove mention of visible
13042         integer type, since this is not what the implementation does.
13043         * gnat_rm.texi: Minor clarification of Allow_Integer_Address
13044         function.
13045         * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
13046         case for parameter type check.
13047         * sem_res.adb (Resolve): Use new function
13048         Address_Integer_Convert_OK.
13049         * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
13050         reformatting throughout.
13051         * sem_util.adb (Address_Integer_Convert_OK): New function.
13052         * sem_util.ads: Minor reformatting (put specs in alpha order)
13053         (Address_Integer_Convert_OK): New function.
13055 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13057         * exp_ch7.adb (Wrap_Transient_Expression):
13058         Insertion extra conditional expression only if
13059         Opt.Suppress_Control_Flow_Optimizations is set.
13061 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13063         * s-tataat.adb (Initialize_Attributes): Abort might already be
13064         deferred in Create_Task.
13066 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13068         * checks.adb (Apply_Scalar_Range_Check): Flag
13069         the exponent as requiring a range check when the expression is
13070         an exponentiation.
13072 2014-01-20  Fedor Rybin  <frybin@adacore.com>
13074         * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
13076 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13078         * sem_util.adb (Default_Initialization): New routine.
13079         * sem_util.ads: Add new type Default_Initialization_Kind.
13080         (Default_Initialization): New routine.
13082 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13084         * sem_prag.adb (Check_Mode): Correct all error
13085         message logic dealing with in/in out parameters that may appear
13086         as inputs or have a self reference.
13088 2014-01-20  Robert Dewar  <dewar@adacore.com>
13090         * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
13091         * sem_res.adb (Resolve): Fix error causing infinite loop for
13092         integer used as address. Allow addresses as integers.
13094 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13096         * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
13098 2014-01-20  Bob Duff  <duff@adacore.com>
13100         * par-ch8.adb (P_Use_Type_Clause): Detect syntax
13101         error when "use all" is not followed by "type".
13103 2014-01-20  Bob Duff  <duff@adacore.com>
13105         * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
13106         followed by free.
13108 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13110         * checks.adb (Apply_Address_Clause_Check): If there is an
13111         alignment check on the expression in an address clause, and there
13112         is no local exception propagation, add an additional explanatory
13113         message to clarify the cause of previous warning.
13115 2014-01-20  Robert Dewar  <dewar@adacore.com>
13117         * exp_ch7.adb: Minor reformatting.
13118         * opt.ads: Minor comment updates.
13119         * sem.adb: Minor name change Is_Main_Unit =>
13120         Is_Main_Unit_Or_Main_Unit_Spec.
13121         * sem_ch6.adb: Minor reformatting and code reorganization.
13123 2014-01-20  Bob Duff  <duff@adacore.com>
13125         * gnat_ugn.texi: Update gnatpp switches.
13127 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13129         * exp_ch9.adb: Minor comment edit.
13131 2014-01-20  Robert Dewar  <dewar@adacore.com>
13133         * gnat_rm.texi: Document that Allow_Integer_Address is permitted
13134         only if System.Address is a private type.
13135         * opt.ads (Allow_Integer_Address): No longer set by -gnates.
13136         * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13137         Allowed only if type System.Address is private, since otherwise
13138         it makes no sense.
13139         * sem_res.adb: Fix failure to properly Analyze unchecked
13140         conversions that were introduced by Allow_Integer_Address.
13141         * switch-c.adb: Remove -gnates switch.
13142         * usage.adb: Remove -gnates switch.
13143         * gnat_ugn.texi: Remove documentation of -gnates flag.
13145 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13147         * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
13148         resolve expression to perform proper name capture.
13150 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13152         * sem.adb (Semantics): When saving/restoring configuration
13153         switches, the spec of a pre- defined unit that is the main unit
13154         must be treated as a predefined unit as well.
13156 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13158         * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
13159         expression, insert an extra conditional expression when saving
13160         the value of the expression, for the benefit of control flow
13161         graph based coverage analysis.
13162         * exp_ch3.adb: Minor reformatting.
13164 2014-01-20  Robert Dewar  <dewar@adacore.com>
13166         * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
13167         * gnat_rm.texi: Document pragma Allow_Integer_Address.
13168         * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
13169         * opt.ads: New flag Allow_Integer_Address.
13170         * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
13171         * sem_ch5.adb: Minor reformatting.
13172         * sem_prag.adb: Implement pragma Allow_Integer_Address.
13173         * sem_res.adb (Resolve): Allow integer address value if
13174         switch set.
13175         * sem_util.adb: Minor reformatting.
13176         * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
13177         * switch-c.adb: Recognize flag -gnates.
13178         * usage.adb: Document flag -gnates.
13180 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13182         * s-tadeca.adb: Fix minor typos in comment.
13184 2014-01-20  Pascal Obry  <obry@adacore.com>
13186         * s-win32.ads (FreeLibrary): New import.
13188 2014-01-20  Robert Dewar  <dewar@adacore.com>
13190         * sem_res.adb, sem_cat.adb: Minor reformatting.
13191         * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
13192         assigning to OUT parameters for the current subprogram scope.
13193         * exp_ch4.adb: Minor reformatting.
13195 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13197         * exp_ch4.adb (Process_Transient_Object,
13198         Find_Enclosing_Contexts): If the top-level if-expression that
13199         generated the transient object is an actual in a call, the proper
13200         Hook_Context is a construct enclosing the call.
13201         * einfo.ads: Indicate that Related_Expression is used to link a
13202         loop variable to the container expression over which the loop
13203         takes place.
13204         (Analyze_Iterator_Specification): Set the Related_Expression of
13205         the loop variable in a container element iterator.
13206         (Note_Possible_Modification): If the variable is the loop
13207         variable in a container element iterator, indicate that the
13208         enclosing container is also modified.
13210 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13212         * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
13214 2014-01-20  Robert Dewar  <dewar@adacore.com>
13216         * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
13217         Minor reformatting and code clean up.
13219 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13221         * sem_cat.adb (Validate_Object_Declaration): Relax semantics
13222         of objects of private type if Relaxed_RM_Semantics.
13224 2014-01-20  Claire Dross  <dross@adacore.com>
13226         * a-cofove.ads (Vector): Capacity discriminant
13227         should be in range of the index.
13229 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13231         * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
13232         Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
13233         possible difference between epoch of Ada.Calendar clock and Ada
13234         real-time/tasking clock.
13235         * s-taprop-posix.adb: Minor comment fix.
13237 2014-01-20  Doug Rupp  <rupp@adacore.com>
13239         * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
13241 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13243         * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
13244         checks on the prefix of attribute 'Old.
13245         * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
13246         generation of validity checks on a range that belongs to the
13247         iteration scheme of a quantified expression.
13248         * sem_ch5.adb (One_Bound): Suppress the generation of validity
13249         checks on a bound that belongs to the iteration scheme of a
13250         quantified expression, generate the check in all other cases.
13252 2014-01-20  Bob Duff  <duff@adacore.com>
13254         * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
13256 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13258         * sem_res.adb (Resolve): When compiling a predefined unit, ignore
13259         interpretations that do not come from other predefined units,
13260         to prevent spurious ambiguities in the presence of user-defined
13261         operators in the context of (an instance of) a predefined unit.
13263 2014-01-20  Robert Dewar  <dewar@adacore.com>
13265         * gnat_rm.texi: Document that Loop_Variant is included in
13266         Statement_Assertions.
13267         * sem_prag.adb (Check_Kind): Add Loop_Variant to
13268         Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
13269         to Statement_Assertions.
13271 2014-01-20  Doug Rupp  <rupp@adacore.com>
13273         * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
13274         for errno ENOENT from RTP on NFS mounted file system.
13276 2014-01-20  Ed Schonberg  <schonberg@adacore.com>
13278         * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
13279         examine code that does not come from source. The check does not
13280         apply to code generated for constraint checks, and such code may
13281         generate spurious error messages when compiled with expansion
13282         disabled (as in a generic unit) because side effects may not
13283         have been removed.
13284         2) Make error messages more explicit: indicate the component
13285         of the  construct whose value is indeterminate because of a
13286         call to a function with in-out parameter in another component,
13287         when there is no mandated order of execution between the two
13288         components (actuals, aggregate components, alternatives).
13290 2014-01-20  Robert Dewar  <dewar@adacore.com>
13292         * gnat_rm.texi: Minor cleanup.
13294 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13296         * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
13297         can now apply to a refined postcondition.
13298         * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
13299         variable Result_Seen. Add variables Case_Prag, Post_Prag,
13300         Seen_In_Case and Seen_In_Post. Update the mechanism that detects
13301         whether postconditions and/or constract-cases mention attribute
13302         'Result and introduce a post-state when applied to functions.
13303         (Check_Result_And_Post_State): Removed.
13304         * sem_prag.adb (Analyze_Pragma): Add local variable
13305         Result_Seen. Verify that the expression of pragma Refined_Post
13306         mentions attribute 'Result and introduces a post-state.
13307         * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
13309 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13311         * exp_ch7.adb (Is_Subprogram_Call): New routine.
13312         (Process_Transient_Objects): Make variable Must_Hook global with
13313         respect to all locally declared subprograms. Search the context
13314         for at least one subprogram call.
13315         (Requires_Hooking): Removed.
13317 2014-01-20  Claire Dross  <dross@adacore.com>
13319         * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
13320         * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
13321         External_Axiomatization);
13323 2014-01-20  Robert Dewar  <dewar@adacore.com>
13325         * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
13326         Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
13327         * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
13328         Allow Loop_Entry to be used in these pragmas if they appear in
13329         an appropriate context.
13330         (Placement_Error): Specialize error
13331         message for pragma Assert[_And_Cut] or pragma Assume containing
13332         Loop_Entry attribute.
13333         * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
13334         * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
13335         and code clean ups.
13337 2014-01-20  Robert Dewar  <dewar@adacore.com>
13339         * gnat1drv.adb: Minor comment update.
13341 2014-01-20  Tristan Gingold  <gingold@adacore.com>
13343         * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
13344         variables, comment out unused code.
13345         * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
13346         * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
13347         * s-excmac-arm.ads: New file.
13349 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13351         * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
13352         Drange and Index_Typ. Remove the circuitry which creates a
13353         range check to compare the index type of the array against the
13354         discrete_range.
13355         * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
13356         the circuitry which creates a range check to handle a
13357         discrete_range denoted by a subtype indication.
13359 2014-01-20  Pierre-Marie Derodat  <derodat@adacore.com>
13361         * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
13362         nodes to get the original sloc range.
13364 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13366         * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
13367         entity of a [library level] package.
13369 2014-01-20  Tristan Gingold  <gingold@adacore.com>
13371         * raise-gcc.c (exception_class_eq): New function.
13372         (is_handled_by): Use it to compare exception classes.
13373         (PERSONALITY_STORAGE): Define.  (continue_unwind): New function to
13374         be called to return URC_CONTINUE_UNWIND.
13375         (personality_body): New function, extracted from PERSONALITY_ROUTINE.
13376         (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
13378 2014-01-20  Robert Dewar  <dewar@adacore.com>
13380         * opt.ads: Minor comment update.
13382 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13384         * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
13385         constants to the "Local variables" area. Add new constant D. Add
13386         new variables Drange and Index_Typ.  Rename Pfx to Rep and Ptp
13387         to Pref_Typ and update all occurrences. Add circuitry to extract
13388         the discrete_range and the index type and build a range check.
13390 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13392         * gnat1drv.adb (Adjust_Global_Switches): Enable
13393         Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
13394         is set.
13396 2014-01-20  Thomas Quinot  <quinot@adacore.com>
13398         * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
13400 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13402         * sem_ch13.adb (Analyze_Aspect_Specifications):
13403         When aspect SPARK_Mode appears on a package body, insert the
13404         generated pragma at the top of the body declarations.
13406 2014-01-20  Robert Dewar  <dewar@adacore.com>
13408         * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
13409         checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
13410         expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
13411         sem_ch8.adb, exp_dist.adb: Minor reformatting.
13413 2014-01-20  Yannick Moy  <moy@adacore.com>
13415         * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
13416         mode.
13418 2014-01-20  Pascal Obry  <obry@adacore.com>
13420         * g-arrspl.ads (Slice_Set): New definition (will use a copy on
13421         write scheme).
13422         * g-arrspl.adb: Adapt all routine to this new implementation.
13423         (Set): Copy the Slice_Set definition before reusing it.
13425 2014-01-20  Arnaud Charlet  <charlet@adacore.com>
13427         * sem_prag.adb (Process_Import_Or_Interface): In
13428         Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
13429         (Analyze_Pragma): Ditto for pragma Export.
13430         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
13431         Import style.
13433 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13435         * einfo.ads: E_Abstract_State is now part of the entities that
13436         can be overloaded. Update type Overloadable_Kind to reflect the
13437         inclusion of abstract states.
13438         * sem_ch6.adb (New_Overloaded_Entity): A function can now
13439         overload an abstract state.
13440         * sem_prag.adb (Analyze_Constituent): Handle the overloading
13441         of states by functions. Use Entity_Of to obtain the entity of
13442         a constituent.  (Analyze_Global_Item): Handle the overloading of
13443         states by functions.
13444         (Analyze_Initialization_Item): Handle the
13445         overloading of states by functions.  Use Entity_Of to obtain the
13446         entity of an item.
13447         (Analyze_Input_Item): Handle the overloading
13448         of states by functions. Use Entity_Of to obtain the entity of an item.
13449         (Analyze_Input_Output): Handle the overloading of states by functions.
13450         (Analyze_Refinement_Clause): Handle the overloading
13451         of states by functions.  Use Entity_Of to obtain the entity of an item.
13452         (Appears_In): Use Entity_Of to obtain the entity of an element.
13453         (Check_Usage): Use Entity_Of to obtain the entity of
13454         an item. Add a guard to prevent a crash due to a previous error.
13455         (Resolve_State): New routine.
13457 2014-01-20  Yannick Moy  <moy@adacore.com>
13459         * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
13460         opt.ads: Minor comments updates.
13462 2014-01-20  Hristian Kirtchev  <kirtchev@adacore.com>
13464         * einfo.adb (Non_Limited_View): Applies to abstract states.
13465         (Set_From_Limited_With): Applies to abstract states.
13466         (Set_Non_Limited_View): Applies to abstract states.
13467         (Write_Field17): Output the non-limited view of an abstract state.
13468         * einfo.ads: Update the comment on usage and occurrences in
13469         nodes for attributes From_Limited_With and Non_Limited_View.
13470         * sem_aux.adb (Available_View): This routine can now handle
13471         abstract states.
13472         * sem_aux.ads (Available_View): This routine can now handle
13473         abstract states. Update the comment on usage.
13474         * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
13475         of states and variables.
13476         (In_Pragmas_Depends_Or_Global): New routine.
13477         * sem_ch10.adb (Build_Limited_Views): Implement
13478         abstract (limited) views of variables and states.
13479         (Build_Shadow_Entity): This routine is now a procedure. Add
13480         formal parameter Shadow. Update the comment on usage. Add
13481         context-specific decoration for states and variables.
13482         (Decorate_State): New routine.  (Decorate_Variable): New routine.
13483         (Find_And_Process_States): New routine.
13484         (Process_Declarations): Renamed to Process_Declarations_And_States.
13485         (Process_Declarations_And_States): Add formal parameters
13486         Pack and Create_Abstract_Views. Update the comment on usage.
13487         (Process_States): New routine.
13488         * sem_prag.adb (Check_Dependency_Clause): Handle abstract
13489         views of states and variables. Match the abstract view of a state
13490         against its corresponding non-abstract view.
13491         (Is_Matching_Input):
13492         Handle abstract views of states and variables. Match the abstract
13493         view of a state against its corresponding non-abstract view.
13494         (Process_Global_Item): Handle abstract views of states and
13495         variables.
13497 2014-01-20  Bob Duff  <duff@adacore.com>
13499         * sem_ch10.adb (Expand_With_Clause): Don't
13500         recurse on the prefix if the current with-ed name refers to a
13501         package that renames its own parent, eg "package P.Q renames P;".
13503 2014-01-20  Yannick Moy  <moy@adacore.com>
13505         * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
13506         * opt.adb, opt.ads (Full_Expander_Active): Remove function.
13507         * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
13508         * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
13509         * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
13510         Expander_Active.
13512 2014-01-20  Yannick Moy  <moy@adacore.com>
13514         * sinfo.ads Update documentation of GNATprove mode.
13516 2014-01-20  Yannick Moy  <moy@adacore.com>
13518         * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
13519         * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
13520         * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
13521         * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
13522         GNATprove_Mode.
13523         * sem_ch13.adb: Remove blank.
13524         * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
13525         subprograms by alias for renamings, not for inherited primitive
13526         operations.
13527         * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
13528         in GNATprove mode.
13529         (Remove_Side_Effects): Apply the removal in
13530         GNATprove mode, for the full analysis of expressions.
13531         * expander.adb (Expand): Call the light SPARK expansion in GNATprove
13532         mode.
13533         (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
13534         save/restore actions for Expander_Active flag in GNATprove mode,
13535         similar to what is done in ASIS mode.
13536         * frontend.adb (Frontend): Generic bodies are instantiated in
13537         GNATprove mode.
13538         * gnat1drv.adb (Adjust_Global_Switches): Set operating
13539         mode to Check_Semantics in GNATprove mode, although a light
13540         expansion is still performed.
13541         (Gnat1drv): Set Back_End_Mode to
13542         Declarations_Only in GNATprove mode, and later on special case
13543         the GNATprove mode to continue analysis anyway.
13544         * lib-writ.adb (Write_ALI): Always generate ALI files in
13545         GNATprove mode.
13546         * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
13547         Expander_Active.
13548         (SPARK_Mode): Renamed as GNATprove_Mode.
13549         * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
13550         tree in GNATprove_Mode.
13551         * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
13552         body in GNATprove mode.
13553         (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
13554         mode.
13555         * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
13556         Make sure side effects are removed in GNATprove mode.
13558 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
13560         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
13561         for aliased objects with an unconstrained nominal subtype.
13562         * gcc-interface/trans.c (Call_to_gnu): Likewise.
13563         (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
13564         <case N_Op_Minus>: Remove useless code.
13565         (Exception_Handler_to_gnu_zcx): Minor tweaks.
13567 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
13569         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
13570         Tidy up.  For a subtype with discriminants and variant part, if a
13571         variant is statically selected and the fields all have a constant
13572         position, put them in order of increasing position.  Likewise if
13573         no variant part but representation clause is present.
13574         * gcc-interface/utils.c (make_packable_type): Robustify.
13575         (maybe_pad_type): Use local variable and tidy up condition.  If no
13576         alignment is specified, use the original one.
13577         (create_type_stub_decl): Minor tweak.
13578         (convert) <case VECTOR_CST>: Fix typo.
13579         <case CONSTRUCTOR>: Deal with padding types around the same type.
13580         Do not punt on missing fields.
13581         (unchecked_convert): Call finish_record_type to lay out the special
13582         record types made for conversions from/to problematic integer types.
13583         Bump the alignment of CONSTRUCTORs before converting them to a more
13584         aligned type.
13586 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
13588         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
13589         obsolete code for type_annotate_only mode, simplify code and slightly
13590         improve wording of comments.
13592 2014-01-12  Eric Botcazou  <ebotcazou@adacore.com>
13594         PR ada/59772
13595         * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
13596         as intermediate type.
13597         (UI_To_gnu): Likewise.
13599 2014-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13601         * gnatvsn.ads (Current_Year): Bump to 2014.
13603 2014-01-02  Tobias Burnus  <burnus@net-b.de>
13605         * gnat_ugn.texi: Bump @copying's copyright year.
13607 Copyright (C) 2014 Free Software Foundation, Inc.
13609 Copying and distribution of this file, with or without modification,
13610 are permitted in any medium without royalty provided the copyright
13611 notice and this notice are preserved.