2015-01-30 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
bloba67b7d37ded276a223c11d5c00538bacdfc99973
1 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
3         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
4         or a function call, return True if type is class-wide.
5         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
6         Apply RM 4.5.7 (17/3): all or none of the dependent expression
7         of a conditional expression must be dynamically tagged.
9 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
11         * sem_ch6.adb (Analyze_Function_Return): In an extended return
12         statement, apply accessibility check to result object when there
13         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
15 2015-01-30  Robert Dewar  <dewar@adacore.com>
17         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
18         Boolean for case where ELSE is omitted.
19         * sem_res.adb: Minor reformatting.
21 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23         Fix build under cygwin/64.
24         * adaint.h: Add check for __CYGWIN__.
25         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
27 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29         PR ada/64640
30         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
31         * mingw32.h: Don't include <tchar.h> under cygwin.
32         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
34 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
36         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
37         (DEF_FUNCTION_TYPE_VAR_12): New macros.
39 2015-01-09  Michael Collison  <michael.collison@linaro.org>
41         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
42         vec.h, double-int.h, input.h, alias.h, symtab.h,
43         fold-const.h, wide-int.h, and inchash.h due to
44         flattening of tree.h.
45         * gcc-interface/decl.c: Ditto.
46         * gcc-interface/misc.c: Ditto.
47         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
48         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
49         fold-const.h, wide-int.h, and inchash.h due to
50         flattening of tree.h.
51         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
52         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
53         fold-const.h, wide-int.h, inchash.h due to
54         flattening of tree.h.
55         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
56         vec.h, double-int.h, input.h, alias.h, symtab.h,
57         fold-const.h, wide-int.h, and inchash.h due to
58         flattening of tree.h.
59         * gcc-interface/utils2.c: Ditto.
61 2015-01-07  Robert Dewar  <dewar@adacore.com>
63         * sem_warn.adb (Check_One_Unit): Don't give unused entities
64         warning for a package which is used as a generic parameter.
66 2015-01-07  Bob Duff  <duff@adacore.com>
68         * usage.adb (Usage): Correct documentation of
69         -gnatw.f switches.
71 2015-01-07  Robert Dewar  <dewar@adacore.com>
73         * s-fileio.adb: Minor reformatting.
75 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
77         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
78         access to subprogram, replace its formals with new entities when
79         building the object declaration, both if actual is present and
80         when it is defaulted.
82 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
84         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
85         conversion and type of expression has invariant, apply invariant
86         check on expression.
88 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
90         * sem_ch3.adb (Create_Constrained_Components): A call to
91         Gather_Components may detect an error if an inherited discriminant
92         that controls a variant is non-static.
93         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
94         Gather_Components may report an error if an inherited discriminant
95         in a variant in non-static.
96         * sem_util.adb (Gather_Components): If a non-static discriminant
97         is inherited do not report error here, but let caller handle it.
98         (Find_Actual): Small optimization.
100 2015-01-07  Bob Duff  <duff@adacore.com>
102         * usage.adb (Usage): Document -gnatw.f switch.
104 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
106         * sem_ch12.adb: Code clean up and minor reformatting.
108 2015-01-07  Robert Dewar  <dewar@adacore.com>
110         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
111         Raise_Accessibility_Error call.
112         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
113         on handling of invalid digits in based constants.
114         * s-fatgen.ads: Minor reformatting.
115         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
116         Avoid noting bogus modification for Valid test.
117         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
118         * einfo.ads: Minor reformatting.
119         * sem_warn.adb: Minor comment clarification.
120         * sem_ch12.adb: Minor reformatting.
122 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
124         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
125         over static predicates when the loop parameter specification
126         carries a Reverse indicator.
128 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
130         * sem_ch12.adb (Instantiate_Object): If formal has a default,
131         actual is missing and formal has an anonymous access type, copy
132         access definition in full so that tree for instance is properly
133         formatted for ASIS use.
135 2015-01-07  Bob Duff  <duff@adacore.com>
137         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
138         for P'Access, where P is a subprogram in the same package as
139         the P'Access, and the P'Access is evaluated at elaboration
140         time, and occurs before the body of P. For example, "X : T :=
141         P'Access;" would allow a subsequent call to X.all to be an
142         access-before-elaboration error; hence the warning. This warning
143         is enabled by the -gnatw.f switch.
144         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
145         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
146         * gnat_ugn.texi: Document the new warning.
148 2015-01-07  Johannes Kanig  <kanig@adacore.com>
150         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
151         cross ref files.
153 2015-01-07  Robert Dewar  <dewar@adacore.com>
155         * s-taprop-linux.adb, clean.adb: Minor reformatting.
157 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
159         * s-tassta.adb: Relax some overzealous assertions.
161 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
163         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
164         view of a type is legal when context is a thunk generated for
165         operation inherited from an interface.
166         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
167         a thunk and return type is an incomplete type do not continue
168         expansion; thunk will be fully elaborated when generating code.
170 2015-01-07  Doug Rupp  <rupp@adacore.com>
172         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
173         (QueryPerformanceFrequency): New imported procedure.
174         * s-taprop-mingw.adb (RT_Resolution): Call above and return
175         resolution vice a hardcoded value.
176         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
177         resolution vice a hardcoded value.
178         * s-linux-android.ads (clockid_t): New subtype.
179         * s-osinte-aix.ads (clock_getres): New imported subprogram.
180         * s-osinte-android.ads (clock_getres): Likewise.
181         * s-osinte-freebsd.ads (clock_getres): Likewise.
182         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
183         * s-osinte-darwin.ads (clock_getres): New subprogram.
184         * s-osinte-darwin.adb (clock_getres): New subprogram.
185         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
186         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
187         calculate resolution vice hard coded value.
189 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
191         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
192         limited view, use non-limited view when available to create
193         equivalent record type.
195 2015-01-07  Vincent Celier  <celier@adacore.com>
197         * gnatcmd.adb: Remove command Sync and any data and processing
198         related to this command. Remove project processing for gnatstack.
199         * prj-attr.adb: Remove package Synchonize and its attributes.
201 2015-01-07  Vincent Celier  <celier@adacore.com>
203         * clean.adb: Minor error message change.
205 2015-01-07  Tristan Gingold  <gingold@adacore.com>
207         PR ada/64349  
208         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
210 2015-01-07  Javier Miranda  <miranda@adacore.com>
212         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
213         protect the frontend against never ending recursion caused by
214         circularities in the sources.
216 2015-01-07  Robert Dewar  <dewar@adacore.com>
218         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
219         exp_ch3.adb: Minor reformatting.
221 2015-01-07  Doug Rupp  <rupp@adacore.com>
223         * s-linux.ads (clockid_t): New subtype.
224         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
225         (clockid_t): New subtype.
226         (clock_getres): Import system call.
227         * s-taprop-linux.adb (System.OS_Constants): With and rename.
228         (RT_Resolution): Remove
229         hardcoded value and call clock_getres.
230         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
231         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
233 2015-01-07  Robert Dewar  <dewar@adacore.com>
235         * sem_warn.adb (Check_One_Unit): Guard against context item
236         with no Entity field.
238 2015-01-07  Vincent Celier  <celier@adacore.com>
240         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
241         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
243 2015-01-07  Vincent Celier  <celier@adacore.com>
245         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
246         errors/warnings in the first parsing of the project files,
247         to display the warnings when there is no errors.
249 2015-01-07  Tristan Gingold  <gingold@adacore.com>
251         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
253 2015-01-07  Doug Rupp  <rupp@adacore.com>
255         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
256         value from Int_Lock as parameter to Int_Unlock.
257         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
258         * s-vxwext.ads (Int_Unlock): Likewise.
259         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
260         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
261         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
262         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
264 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
266         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
267         keep ___XP suffixes
269 2015-01-07  Tristan Gingold  <gingold@adacore.com>
271         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
272         handle overlap.
274 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
276         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
277         automatically set No_Strict_Aliasing on access types.
278         * fe.h (No_Strict_Aliasing_CP): Declare.
279         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
280         No_Strict_Aliasing_CP is set.
282 2015-01-07  Johannes Kanig  <kanig@adacore.com>
284         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
285         not build function wrapper in gnatprove mode when the package
286         is externally axiomatized.
288 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
290         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
291         intermediate computations when the parameters have different signs.
293 2015-01-07  Javier Miranda  <miranda@adacore.com>
295         * exp_ch3.adb (Build_Init_Procedure): For derived types,
296         improve the code which takes care of identifying and moving to
297         the beginning of the init-proc the call to the init-proc of the
298         parent type.
300 2015-01-07  Olivier Hainque  <hainque@adacore.com>
302         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
303         Elaborate the expression as part of the same stmt group as the actions.
305 2015-01-07  Robert Dewar  <dewar@adacore.com>
307         * sem_ch3.adb: Minor error message change.
309 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
311         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
312         Following AI05-028, the pragam applies legally to any composite type.
314 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
316         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
317         (sigwait, sigwaitinfo): Removed, not needed after all on any
318         VxWorks configurations.
320 2015-01-07  Robert Dewar  <dewar@adacore.com>
322         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
324 2015-01-07  Javier Miranda  <miranda@adacore.com>
326         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
327         generation of accessibility check.
329 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
331         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
332         illegal completion from a class- wide type, set etype of the
333         derived type properly to prevent cascaded errors.
335 2015-01-07  Robert Dewar  <dewar@adacore.com>
337         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
338         reformatting.
340 2015-01-07  Robert Dewar  <dewar@adacore.com>
342         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
343         New procedure.
344         (OK_No_Use_Of_Entity_Name): New function.
345         (Set_Restriction_No_Use_Of_Entity): New procedure.
346         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
347         New procedure.
348         (OK_No_Use_Of_Entity_Name): New function.
349         (Set_Restriction_No_Use_Of_Entity): New procedure.
350         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
351         No_Use_Of_Entity.
352         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
353         Add processing for new restriction No_Use_Of_Entity.
355 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
357         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
358         component type as to Has_Atomic_Components type.  Remove useless
359         test on Is_Aliased component type.
361 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
363         * alloc.ads Alphabetize several declarations. Add constants
364         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
365         * atree.adb Add with and use clauses for Opt.
366         (Allocate_Initialize_Node): Mark a node as ignored Ghost
367         if it is created in an ignored Ghost region.
368         (Ekind_In): New variant.
369         (Is_Ignored_Ghost_Node): New routine.
370         (Set_Is_Ignored_Ghost_Node): New routine.
371         * atree.adb Aplhabetize several subprograms declarations. Flag
372         Spare0 is now known as Is_Ignored_Ghost_Node.
373         (Ekind_In): New variant.
374         (Is_Ignored_Ghost_Node): New routine.
375         (Set_Is_Ignored_Ghost_Node): New routine.
376         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
377         (Contains_Ignored_Ghost_Code): New routine.
378         (Set_Contains_Ignored_Ghost_Code): New routine.
379         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
380         It is now possible to set this property on an unanalyzed entity.
381         (Write_Entity_Flags): Output the status of flag
382         Contains_Ignored_Ghost_Code.
383         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
384         usage in nodes.
385         (Contains_Ignored_Ghost_Code): New routine
386         along with pragma Inline.
387         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
388         * exp_ch3.adb Add with and use clauses for Ghost.
389         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
390         Set the Ghost_Mode in effect.
391         (Restore_Globals): New routine.
392         * exp_ch7.adb (Process_Declarations): Do not process a context
393         that invoves an ignored Ghost entity.
394         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
395         construct that has been rewritten as a null statement.
396         * exp_disp.adb Add with and use clauses for Ghost.
397         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
398         the Ghost_Mode in effect.
399         (Restore_Globals): New routine.
400         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
401         does not require any clean up. Add two missing cases that deal
402         with block statements.
403         * freeze.adb Add with and use clauses for Ghost.
404         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
405         Set the Ghost_Mode in effect.
406         (Restore_Globals): New routine.
407         * frontend.adb Add with and use clauses for Ghost. Remove any
408         ignored Ghost code from all units that qualify.
409         * ghost.adb New unit.
410         * ghost.ads New unit.
411         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
412         the table in package Ghost.
413         * lib.ads: Alphabetize several subprogram declarations.
414         * lib-xref.adb (Output_References): Do not generate reference
415         information for ignored Ghost entities.
416         * opt.ads Add new type Ghost_Mode_Type and new global variable
417         Ghost_Mode.
418         * rtsfind.adb (Load_RTU): Provide a clean environment when
419         loading a runtime unit.
420         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
421         entry/exit as the node may set a different mode.
422         (Do_Analyze):
423         Capture/restore the value of Ghost_Mode on entry/exit as the
424         unit may be withed from a unit with a different Ghost mode.
425         * sem_ch3.adb Add with and use clauses for Ghost.
426         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
427         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
428         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
429         the entity as Ghost when there is a Ghost_Mode in effect.
430         (Array_Type_Declaration): The implicit base type inherits the
431         "ghostness" from the array type.
432         (Derive_Subprogram): The
433         alias inherits the "ghostness" from the parent subprogram.
434         (Make_Implicit_Base): The implicit base type inherits the
435         "ghostness" from the parent type.
436         * sem_ch5.adb Add with and use clauses for Ghost.
437         (Analyze_Assignment): Set the Ghost_Mode in effect.
438         * sem_ch6.adb Add with and use clauses for Ghost.
439         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
440         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
441         Set the Ghost_Mode in effect. Mark the entity as Ghost when
442         there is a Ghost_Mode in effect.
443         * sem_ch7.adb Add with and use clauses for Ghost.
444         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
445         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
446         effect. Mark the entity as Ghost when there is a Ghost_Mode
447         in effect.
448         * sem_ch8.adb Add with and use clauses for Ghost.
449         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
450         Analyze_Object_Renaming, Analyze_Package_Renaming,
451         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
452         the entity as Ghost when there is a Ghost_Mode in effect.
453         (Find_Type): Check the Ghost context of a type.
454         * sem_ch11.adb Add with and use clauses for Ghost.
455         (Analyze_Exception_Declaration): Set the Ghost_Mode in
456         effect. Mark the entity as Ghost when there is a Ghost_Mode
457         in effect.
458         * sem_ch12.adb Add with and use clauses for Ghost.
459         (Analyze_Generic_Package_Declaration,
460         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
461         Mark the entity as Ghost when there is a Ghost_Mode in effect.
462         * sem_prag.adb Add with and use clauses for Ghost.
463         (Analyze_Pragma): Ghost-related checks are triggered when there
464         is a Ghost mode in effect.
465         (Create_Abstract_State): Mark the
466         entity as Ghost when there is a Ghost_Mode in effect.
467         * sem_res.adb Add with and use clauses for Ghost.
468         (Check_Ghost_Context): Removed.
469         * sem_util.adb (Check_Ghost_Completion): Removed.
470         (Check_Ghost_Derivation): Removed.
471         (Incomplete_Or_Partial_View):
472         Add a guard in case the entity has not been analyzed yet
473         and does carry a scope.
474         (Is_Declaration): New routine.
475         (Is_Ghost_Entity): Removed.
476         (Is_Ghost_Statement_Or_Pragma):
477         Removed.
478         (Is_Subject_To_Ghost): Removed.
479         (Set_Is_Ghost_Entity):
480         Removed.
481         (Within_Ghost_Scope): Removed.
482         * sem_util.adb (Check_Ghost_Completion): Removed.
483         (Check_Ghost_Derivation): Removed.
484         (Is_Declaration): New routine.
485         (Is_Ghost_Entity): Removed.
486         (Is_Ghost_Statement_Or_Pragma): Removed.
487         (Is_Subject_To_Ghost): Removed.
488         (Set_Is_Ghost_Entity): Removed.
489         (Within_Ghost_Scope): Removed.
490         * sinfo.ads Add a section on Ghost mode.
491         * treepr.adb (Print_Header_Flag): New routine.
492         (Print_Node_Header): Factor out code. Output flag
493         Is_Ignored_Ghost_Node.
494         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
496 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
498         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
499         true test and unreachable 'else' arm.
501 2015-01-06  Vincent Celier  <celier@adacore.com>
503         * prj-conf.adb (Check_Target): Improve error message when
504         there are mismatched targets between the on in the configuration
505         project file and the specified one, either in the main project
506         file or in the --target= switch.
508 2015-01-06  Pascal Obry  <obry@adacore.com>
510         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
511         Install_Name attribute definitions.
513 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
515         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
516         generated Import pragma for the internal imported procedure does
517         not come from an aspect, so that Is_Imported can be properly
518         set for it.
520 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
522         * sem_ch12.adb (Might_Inline_Subp): Record whether
523         any subprograms in the generic package are marked with
524         pragma Inline_Always (setting flag Has_Inline_Always).
525         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
526         alongside existing test of Front_End_Inlining as alternative
527         conditions for setting Inline_Now. Also add test of
528         Has_Inline_Always along with Front_End_Inlining test as an
529         alternative condition for setting Needs_Body to False.
531 2015-01-06  Tristan Gingold  <gingold@adacore.com>
533         * i-cpoint.adb (Copy_Array): Handle overlap.
535 2015-01-06  Pascal Obry  <obry@adacore.com>
537         * bindgen.adb: Minor style fix.
539 2015-01-06  Robert Dewar  <dewar@adacore.com>
541         * sem_util.ads, sem_util.adb: Minor reformatting.
543 2015-01-06  Vincent Celier  <celier@adacore.com>
545         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
546         with flags before parsing the projects.
547         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
548         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
549         to True in the flags, when Ignore_Missing_With is True and an
550         imported project cannot be found.
551         * prj-proc.adb (Expression): When there are incomplete withs and
552         a variable or attribute is not found, set the variable/attribute
553         to unknown.
554         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
555         defaulted to False.
557 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
559         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
560         prj-err.adb: Add new switch --no-command-line.
562 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
564         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
566 2015-01-06  Robert Dewar  <dewar@adacore.com>
568         * sem_ch11.adb: Minor reformatting.
570 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
572         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
573         Build_Array_Aggr_Code, used to initialized components covered
574         by a box association. If the component type is scalar and has
575         a default aspect, use it to initialize such components.
577 2015-01-06  Pascal Obry  <obry@adacore.com>
579         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
580         control the setup of the exception handler.
581         * initialize.c: Remove unused declaration.
582         * bindgen.adb: Always call __gnat_runtime_initialize and pass
583         whether the exeception handler must be set or not.
585 2015-01-06  Thomas Quinot  <quinot@adacore.com>
587         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
588         order to native from default, make sure to also adjust bit order.
589         * exp_aggr.adb: Minor reformatting.
591 2015-01-06  Robert Dewar  <dewar@adacore.com>
593         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
594         s-valrea.adb, s-valrea.ads: Add some additional guards for
595         Str'Last = Positive'Last.
597 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
599         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
600         subprograms.
602 2015-01-06  Javier Miranda  <miranda@adacore.com>
604         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
606 2015-01-06  Thomas Quinot  <quinot@adacore.com>
608         * sem_util.ads: Minor reformatting.
609         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
610         (In_RCI_Declaration) Return to old name, as proper checking of
611         entity being in the visible part depends on entity kind and must
612         be done by the caller.
614 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
616         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
617         for operators in SPARK.
619 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
621         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
622         expression in an others association before making copies for
623         separate resolution and accessibility checks. This ensures that
624         the type of the expression is available to ASIS in all cases,
625         in particular if the expression is itself an aggregate.
627 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
629         * einfo.ads (Has_Independent_Components): Document extended
630         usage.
631         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
632         (Set_Has_Independent_Components): Adjust assertion.
633         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
634         for pragma Atomic_Components.  Set Has_Independent_Components
635         on the object instead of the type for an object declaration with
636         pragma Independent_Components.
638 2015-01-06  Olivier Hainque  <hainque@adacore.com>
640         * set_targ.adb (Read_Target_Dependent_Values): Set
641         Long_Double_Index when "long double" is read.
642         (elaboration code): Register_Back_End_Types only when not reading from
643         config files. Doing otherwise is pointless and error prone.
645 2015-01-06  Robert Dewar  <dewar@adacore.com>
647         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
649 2015-01-06  Robert Dewar  <dewar@adacore.com>
651         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
652         Str'Last = Positive'Last.
654 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
656         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
657         where the non-limited type is a generic actual and appears as
658         a subtype of the non-limited view of the other.
659         * freeze.adb (Build_Renamed_Body): If the return type of the
660         declaration that is being completed is a limited view and the
661         non-limited view is available, use it in the specification of
662         the generated body.
664 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
666         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
667         incomplete view, the type of the classwide type common to both
668         views is the type being declared.
670 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
672         * einfo.ads (Is_Independent): Further document extended usage.
674 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
676         * einfo.ads (Is_Independent): Document extended usage.
677         * einfo.adb (Is_Independent): Remove obsolete assertion.
678         (Set_Is_Independent): Likewise.
679         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
680         (Process_Atomic_Independent_Shared_Volatile): ...this.
681         Deal with pragma Independent here.
682         (Analyze_Pragma): Adjust
683         to above renaming and also invoke it for pragma Independent.
684         Adjust comment for Independent_Components.
686 2015-01-06  Robert Dewar  <dewar@adacore.com>
688         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
689         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
691 2015-01-06  Robert Dewar  <dewar@adacore.com>
693         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
694         = Positive'Last.
695         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
696         Str'Last = Positive'Last.
698 2015-01-06  Robert Dewar  <dewar@adacore.com>
700         * sem_prag.adb (Process_Inline): Remove redundant construct
701         warning (-gnatw.r) for an ineffective pragma Inline.
703 2015-01-06  Robert Dewar  <dewar@adacore.com>
705         * s-valint.adb: Fix typo in last checkin.
706         * s-valuns.adb (Value_Unsigned): More efficient fix for
707         Positive'Last case.
708         * sem_attr.adb (Analyze_Attribute): Minor reformatting
709         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
711 2015-01-06  Robert Dewar  <dewar@adacore.com>
713         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
714         Str'Last = Positive'Last
716 2015-01-06  Thomas Quinot  <quinot@adacore.com>
718         * xoscons.adb: Display exception information and return non-zero
719         exit status in top level exception handler.
721 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
723         * sem_ch8.adb: Code clean up.
725 2015-01-06  Tristan Gingold  <gingold@adacore.com>
727         * targparm.ads: Remove obsolete comment.
729 2015-01-06  Olivier Hainque  <hainque@adacore.com>
731         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
732         constructing a ref to variable, update inner_const_flag from the
733         variable TREE_READONLY attribute.
734         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
735         definition.
736         (get_target_float_size): Remove.
737         (get_target_double_size): Remove.
738         (get_target_long_double_size): Remove.
740 2015-01-06  Pascal Obry  <obry@adacore.com>
742         * adaint.c (ProcListEvt): Set to NULL.
743         * rtinit.c: New file.
744         (__gnat_rt_init_count): New reference counter set to 0.
745         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
746         this code is actually needed for the runtime initialization. This
747         routine returns immediately if the initialization has already been done.
748         * final.c: Revert previous change.
749         * rtfinal.c: New file.
750         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
751         section and event. The default version of this routine is empty (except
752         for the reference counting code). This routine returns immediately if
753         some others libraries are referencing the runtime.
754         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
755         remove circuitry to initialize the signal handler as this is
756         now done by the runtime initialization routine.
757         (Gen_Adafinal): Generate call to Runtime_Finalize.
758         * gnat_ugn.texi: Update documentation about concurrency and
759         initialization/finalization of the run-time.
760         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
761         references to rtfinal.o and rtinit.o
763 2015-01-06  Robert Dewar  <dewar@adacore.com>
765         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
766         for Enum_Image.
767         * sem_attr.adb: Implement Enum_Image attribute.
768         * snames.ads-tmpl: Add entries for Enum_Image attribute.
770 2015-01-06  Robert Dewar  <dewar@adacore.com>
772         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
773         * restrict.ads (No_Use_Of_Entity): New table.
774         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
775         Ignore No_Use_Of_Entity (will be processed in parser).
776         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
778 2015-01-06  Vincent Celier  <celier@adacore.com>
780         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
781         to check for an extended project, if a project does not have
782         yet a project declaration.
784 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
786         * scos.ads: Update documentation about the SCO table build
787         process and about table records format.
788         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
789         (SCO_Record_Filtered): New procedure.
790         (Set_SCO_Logical_Operator): New procedure.
791         (dsco): Update documentation.
792         * par_sco.adb: Update library-level comments.
793         (SCO_Generation_State_Type): New type.
794         (SCO_Generation_State): New variable.
795         (SCO_Raw_Table): New package instanciation.
796         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
797         ("<"): New.
798         (Tristate): New type.
799         (Is_Logical_Operator): Return Tristate and update documentation.
800         (Has_Decision): Update call to Is_Logical_Operator and complete
801         documentation.
802         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
803         comment, add an assertion for state checking and change
804         references to SCO_Table into SCO_Raw_Table.
805         (dsco): Refactor to dump the raw and the filtered tables.
806         (Process_Decisions.Output_Decision_Operand): Handle putative
807         short-circuit operators.
808         (Process_Decisions.Output_Element): Update references
809         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
810         (Process_Decisions.Process_Decision_Operand): Update call
811         to Is_Logical_Operator.
812         (Process_Decisions.Process_Node): Handle putative short-circuit
813         operators and change references to
814         SCO_Table into SCO_Raw_Table.
815         (SCO_Output): Add an assertion
816         for state checking and remove code that used to stamp out SCO entries.
817         (SCO_Pragma_Disabled): Change reference to SCO_Table
818         into SCO_Raw_Table.
819         (SCO_Record): Rename to SCO_Record_Raw,
820         add an assertion for state checking and change references
821         to SCO_Table into SCO_Raw_Table.
822         (Set_SCO_Condition): Add an assertion for state checking, update
823         references to Condition_Pragma_Hash_Table and change references to
824         SCO_Table into SCO_Raw_Table.
825         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
826         change references to SCO_Table into SCO_Raw_Table.
827         (Set_SCO_Logical_Operator): New procedure.
828         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
829         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
830         (SCO_Record_Fildered): New procedure.
831         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
832         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
833         output SCOs.
834         * par-load.adb (Load): Update reference to SCO_Record.
835         * par.adb (Par): Update reference to SCO_Record.
836         * put_scos.adb (Put_SCOs): Add an assertion to check that no
837         putative SCO condition reaches this end.
838         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
839         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
840         when corresponding to an "and"/"or" operator affected by the
841         Short_Circuit_And_Or pragma.
843 2015-01-06  Robert Dewar  <dewar@adacore.com>
845         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
846         msg for attempted USE of generic subprogram or subprogram.
848 2015-01-06  Robert Dewar  <dewar@adacore.com>
850         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
851         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
852         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
854 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
856         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
857         that specify stream subprograms, if the prefix is a class-wide
858         type then the generated attribute definition clause must apply
859         to the same class-wide type.
860         (Default_Iterator): An iterator defined by an aspect of some
861         container type T must have a first parameter of type T, T'class,
862         or an access to such (from code reading RM 5.5.1 (2/3)).
864 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
866         * gnat1drv.adb: Minor: complete previous change.
868 2015-01-06  Olivier Hainque  <hainque@adacore.com>
870         * set_targ.ads (C_Type_For): New function. Return the name of
871         a C type supported by the back-end and suitable as a basis to
872         construct the standard Ada floating point type identified by
873         the T parameter. This is used as a common ground to feed both
874         ttypes values and the GNAT tree nodes for the standard floating
875         point types.
876         * set_targ.adb (Long_Double_Index): The index at which "long
877         double" gets registered in the FPT_Mode_Table. This is useful to
878         know whether we have a "long double" available at all and get at
879         it's characteristics without having to search the FPT_Mode_Table
880         when we need to decide which C type should be used as the
881         basis for Long_Long_Float in Ada.
882         (Register_Float_Type): Fill Long_Double_Index.
883         (FPT_Mode_Index_For): New function. Return the index in
884         FPT_Mode_Table that designates the entry corresponding to the
885         provided C type name.
886         (FPT_Mode_Index_For): New function. Return the index in
887         FPT_Mode_Table that designates the entry for a back-end type
888         suitable as a basis to construct the standard Ada floating point
889         type identified by the input T parameter.
890         (elaboration code): Register_Back_End_Types unconditionally,
891         so C_Type_For can operate regardless of -gnateT. Do it
892         early so we can query it for the floating point sizes, via
893         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
894         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
895         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
896         which C type should be used as the basis for the construction
897         of the Standard Ada floating point types.
898         * get_targ.ads (Get_Float_Size, Get_Double_Size,
899         Get_Long_Double_Size): Remove.
900         * get_targ.adb: Likewise.
902 2015-01-06  Thomas Quinot  <quinot@adacore.com>
904         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
905         parameter and rename to...
906         (In_RCI_Visible_Declarations): Fix handling of private part of nested
907         package.
908         (Validate_RCI_Subprogram_Declaration): Reject illegal function
909         returning anonymous access in RCI unit.
911 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
913         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
914         function wrapper may be a homonym of another local declaration.
915         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
916         build function and operator wrappers after the actual subprogram
917         has been resolved, and replace the standard renaming declaration
918         with the declaration of wrapper.
919         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
920         make public for use elsewhere.
921         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
922         rewrite, now that actual is fully resolved when wrapper is
923         constructed.
925 2015-01-06  Javier Miranda  <miranda@adacore.com>
927         * exp_disp.adb: Revert previous change.
929 2015-01-06  Robert Dewar  <dewar@adacore.com>
931         * exp_util.adb: Change name Name_Table_Boolean to
932         Name_Table_Boolean1.
933         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
934         Introduce Name_Table_Boolean2/3.
935         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
936         Introduce Name_Table_Boolean2/3.
937         * par-ch13.adb: Change name Name_Table_Boolean to
938         Name_Table_Boolean1.
940 2015-01-06  Bob Duff  <duff@adacore.com>
942         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
944 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
946         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
947         others choice that covers multiple components, analyze each
948         copy with the type of the component even in compile-only mode,
949         to detect potential accessibility errors.
951 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
953         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
954         (Resolve_Actuals): An effectively volatile out
955         parameter cannot act as an in or in out actual in a call.
956         (Resolve_Entity_Name): An effectively volatile out parameter
957         cannot be read.
959 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
961         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
962         the expansion of an expression function it may be pre-analyzed
963         if a 'access attribute is applied to the function, in which case
964         last_entity may have been assigned already.
966 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
968         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
969         type and actual has the corresponding full view, there is no
970         error, but a case of use of incomplete type in a predicate or
971         invariant expression.
973 2015-01-06  Vincent Celier  <celier@adacore.com>
975         * makeutl.adb (Insert_No_Roots): Make sure that the same source
976         in two different project tree is checked in both trees, if they
977         are sources of two different projects, extended or not.
979 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
981         * gnat1drv.adb: Minor code clean up.
982         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
984 2015-01-06  Bob Duff  <duff@adacore.com>
986         * osint.adb (Read_Source_File): Don't print out
987         file name unless T = Source.
989 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
991         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
992         recognize improper uses of constant_reference types as actuals
993         for in-out parameters.
994         (Check_Function_Call): Do not collect identifiers if function
995         name is missing because of previous error.
997 2015-01-06  Robert Dewar  <dewar@adacore.com>
999         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
1000         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
1001         Minor change of name Name_Table_Info => Name_Table_Int.
1003 2015-01-06  Robert Dewar  <dewar@adacore.com>
1005         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
1006         in previous checkin.
1007         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
1008         of bounds.
1009         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
1011 2015-01-06  Vincent Celier  <celier@adacore.com>
1013         * a-strsup.adb (Times (Natural;String;Positive)): Raise
1014         Length_Error, not Index_Error, when the result is too long.
1016 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1018         * a-direct.adb (Create_Path): Minor error handling and
1019         performance improvement.
1021 2015-01-06  Robert Dewar  <dewar@adacore.com>
1023         * checks.ads, sem_ch12.adb: Minor reformatting.
1024         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
1025         zero check for fixed-point case if Backend_Divide_Checks_On_Target
1026         is False.
1028 2015-01-06  Robert Dewar  <dewar@adacore.com>
1030         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1031         Do not set restriction No_Elaboration_Code unless the pragma
1032         appears in the main unit).
1034 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1036         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
1037         that with clause has already been analyzed before checking kind
1038         of with_clause.
1040 2015-01-06  Robert Dewar  <dewar@adacore.com>
1042         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
1043         (as required by RM).
1045 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1047         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
1049 2015-01-06  Robert Dewar  <dewar@adacore.com>
1051         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
1052         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
1054 2015-01-06  Javier Miranda  <miranda@adacore.com>
1056         * exp_disp.adb (Expand_Interface_Conversion): No displacement
1057         of the pointer to the object needed when the type of the operand
1058         is not an interface type and the interface is one of its parent
1059         types (since they share the primary dispatch table).
1061 2015-01-06  Vincent Celier  <celier@adacore.com>
1063         * prj-env.adb: Minor comment update.
1065 2015-01-06  Javier Miranda  <miranda@adacore.com>
1067         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
1068         access types whose target type is an interface type to operands
1069         that are access types; required to report an error when the
1070         operand is not an access type.
1072 2015-01-06  Bob Duff  <duff@adacore.com>
1074         * a-cfinve.adb (Copy): Set the discriminant to the Length when
1075         Capacity = 0.
1076         * a-cofove.ads (Capacity): Add a postcondition.
1077         * a-cfinve.ads (Capacity): Add a postcondition.
1078         (Reserve_Capacity): Correct the postcondition in the case where
1079         Capacity = 0; that means "Capacity => Length (Container)".
1080         * a-cofove.adb (Elems[c]): Add a comment
1081         explaining the dangers and how to avoid them.
1083 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1085         * sem_ch12.adb: Code clean up.
1087 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1089         * gnatvsn.ads: Bump copyright year.
1091 2015-01-06  Robert Dewar  <dewar@adacore.com>
1093         * s-taskin.ads, s-traces.ads: Minor reformatting.
1094         * exp_util.adb: Minor typo fix.
1096 2015-01-06  Vincent Celier  <celier@adacore.com>
1098         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
1099         with the runtime name.
1100         * prj-env.adb (Initialize_Default_Project_Path): When both
1101         Target_Name and Runtime_Name are not empty string, add to the
1102         project path the two directories .../lib/gnat and .../share/gpr
1103         related to the runtime.
1104         * prj-env.ads (Initialize_Default_Project_Path): New String
1105         parameter Runtime_Name, defaulted to the empty string.
1107 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1109         * frontend.adb: Guard against the case where a configuration
1110         pragma may be split into multiple pragmas and the original
1111         rewritten as a null statement.
1112         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
1113         pragma using Insert_Before rather than Insert_Action. This
1114         takes care of the configuration pragma case where Insert_Action
1115         would fail.
1117 2015-01-06  Bob Duff  <duff@adacore.com>
1119         * a-coboho.ads (Element_Access): Add "pragma
1120         No_Strict_Aliasing (Element_Access);". This is needed because
1121         we are unchecked-converting from Address to Element_Access.
1122         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
1123         result to be 1.
1125 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1127         * sem_res.adb (Resolve_Actuals): Remove the
1128         restriction which prohibits volatile actual parameters with
1129         enabled external propery Async_Writers to act appear in procedure
1130         calls where the corresponding formal is of mode OUT.
1132 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1134         * gnat_ugn.texi: Bump @copying's copyright year.
1136 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1138         PR ada/64492
1139         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
1141 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
1143         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
1144         of unchecked asprintf.
1147 Copyright (C) 2015 Free Software Foundation, Inc.
1149 Copying and distribution of this file, with or without modification,
1150 are permitted in any medium without royalty provided the copyright
1151 notice and this notice are preserved.