PR libgomp/64635
[official-gcc.git] / gcc / ada / ChangeLog
blob2668fcc4066e9b852813f2c1beacaac3be299e2f
1 2015-01-30  Robert Dewar  <dewar@adacore.com>
3         * a-assert.adb: Minor reformatting.
4         * sem_ch13.adb: Minor comment clarification.
5         * types.ads: Minor comment update.
6         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
7         when we have a predicate that is nothing but an inherited dynamic
8         predicate.
10 2015-01-30  Jerome Guitton  <guitton@adacore.com>
12         * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
13         include cert link spec.
15 2015-01-30  Robert Dewar  <dewar@adacore.com>
17         * einfo.ads: Minor comment fix.
18         * freeze.adb (Freeze_Profile): Add test for suspicious import
19         in pure unit.
20         * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
21         use in Pure unit is now moved to Freeze (to properly catch
22         Pure_Function exemption).
24 2015-01-30  Bob Duff  <duff@adacore.com>
26         * sem_res.ads: Minor comment fix.
27         * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
28         check both operands of an operator.
30 2015-01-30  Yannick Moy  <moy@adacore.com>
32         * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
33         policy for Pre to Ignore.
34         (Assert): Add precondition.
36 2015-01-30  Robert Dewar  <dewar@adacore.com>
38         * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
39         Pure unit.
40         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
41         documentation for some special cases of invalid attempts at
42         based integers.
44 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
46         * errout.ads: Minor reformatting.
48 2015-01-30  Yannick Moy  <moy@adacore.com>
50         * inline.adb (Process_Formals): Use the sloc of
51         the inlined node instead of the sloc of the actual parameter,
52         when replacing formal parameters by the actual one.
54 2015-01-30  Arnaud Charlet  <charlet@adacore.com>
56         * g-expect.adb (Get_Command_Output): Use infinite timeout when
57         calling Expect.
59 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
61         * sem_ch12.adb (Analyze_Associations): If an in-parameter is
62         defaulted in an instantiation, add an entry in the list of actuals
63         to indicate the default value of the formal (as is already done
64         for defaulted subprograms).
66 2015-01-30  Javier Miranda  <miranda@adacore.com>
68         * errout.adb (Error_Msg_PT): Minor error phrasing update.
70 2015-01-30  Robert Dewar  <dewar@adacore.com>
72         * sem_warn.adb (Warn_On_Known_Condition): Improve error message
73         for object case.
75 2015-01-30  Pierre-Marie de Rodat  <derodat@adacore.com>
77         * exp_dbug.adb (Get_Encoded_Name): When
78         -fgnat-encodings=minimal, do not generate names for biased types.
80 2015-01-30  Tristan Gingold  <gingold@adacore.com>
82         PR ada/64349
83         * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
85 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
87         * freeze.adb: Minor reformatting.
89 2015-01-30  Javier Miranda  <miranda@adacore.com>
91         * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
92         improve its documentation.
93         * errout.adb (Error_Msg_PT): Improve the error message.
94         * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
95         (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
96         * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
98 2015-01-30  Robert Dewar  <dewar@adacore.com>
100         * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
101         message for False case.
103 2015-01-30  Doug Rupp  <rupp@adacore.com>
105         * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
106         * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
107         kernel.
109 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
111         * sem_attr.adb (Declared_Within_Generic_Unit):
112         New function to test whether an entity is declared within the
113         declarative region of a given generic unit.
114         (Resolve_Attribute): For checking legality of subprogram'Access within
115         a generic unit, call new Boolean function Declared_Within_Generic_Unit
116         instead of simply comparing the results of Enclosing_Generic_Unit on
117         the prefix and access type.  Correct minor comment typos.
119 2015-01-30  Robert Dewar  <dewar@adacore.com>
121         * freeze.adb, exp_util.ads: Update comment.
122         * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
123         * sem_util.adb: Minor: fix typo.
125 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
127         * sem_attr.adb (Analyze_Attribute): Ensure that
128         the check concerning Refined_Post takes precedence over the
129         other cases.
131 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
133         * sem_prag.adb: Minor typo fixes and reformatting.
135 2015-01-30  Yannick Moy  <moy@adacore.com>
137         * sem_attr.adb: Code clean up.
139 2015-01-30  Robert Dewar  <dewar@adacore.com>
141         * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
142         * ali.ads (Unit_Record): Add new field Serious_Errors.
143         * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
144         attribute in U line.
145         * lib-writ.ads: New attribute SE (serious erors) in unit line.
147 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
149         * einfo.adb Update the usage of attributes Entry_Bodies_Array,
150         Lit_Indexes, Scale_Value, Storage_Size_Variable,
151         String_Literal_Low_Bound along associated routines and
152         Write_FieldX_Name.
153         (Pending_Access_Types): New routine.
154         (Set_Pending_Access_Types): New routine.
155         (Write_Field15_Name): Add an entry for Pending_Access_Types.
156         * einfo.ads Add new attribute Pending_Access_Types along
157         with usage in nodes.  Update the usage of attributes
158         Entry_Bodies_Array, Lit_Indexes, Scale_Value,
159         Storage_Size_Variable, String_Literal_Low_Bound.
160         (Pending_Access_Types): New routine along with pragma Inline.
161         (Set_Pending_Access_Types): New routine along with pragma Inline.
162         * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
163         Ins_Node. Determine the insertion node for anonynous access type
164         that acts as a component type of an array. Update the call to
165         Build_Finalization_Master.
166         (Expand_Freeze_Record_Type): Update
167         the calls to Build_Finalization_Master.
168         (Freeze_Type): Remove
169         local variable RACW_Seen. Factor out the code that deals with
170         remote access-to-class-wide types. Create a finalization master
171         when the designated type contains a private component. Fully
172         initialize all pending access types.
173         (Process_RACW_Types): New routine.
174         (Process_Pending_Access_Types): New routine.
175         * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
176         needs to set primitive Finalize_Address.
177         (Expand_N_Allocator): Allocation no longer sets primitive
178         Finalize_Address.
179         * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
180         Update the call to Build_Finalization_Master.
181         (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
182         needs to set primitive Finalize_Address.
183         * exp_ch7.adb (Add_Pending_Access_Type): New routine.
184         (Build_Finalization_Master): New parameter profile. Associate
185         primitive Finalize_Address with the finalization master if the
186         designated type has been frozen, otherwise treat the access
187         type as pending. Simplify the insertion of the master and
188         related initialization code.
189         (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
190         abstract types.
191         (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
192         Simplify the implementation.
193         * exp_ch7.ads (Build_Finalization_Master): New parameter profile
194         along with comment on usage.
195         (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
196         the comment on usage.
197         * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
198         Finalize_Address to retrieve the primitive.
199         (Finalize_Address): New routine.
200         (Find_Finalize_Address): Removed.
201         * exp_util.ads (Finalize_Address): New routine.
202         * freeze.adb (Freeze_All): Remove the generation of finalization
203         masters.
204         * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
205         pending access types from the partial to the full view.
207 2015-01-30  Robert Dewar  <dewar@adacore.com>
209         * sem_disp.adb: Minor reformatting.
210         * sem_disp.ads: Documentation update.
212 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
214         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
215         or a function call, return True if type is class-wide.
216         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
217         Apply RM 4.5.7 (17/3): all or none of the dependent expression
218         of a conditional expression must be dynamically tagged.
220 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
222         * sem_ch6.adb (Analyze_Function_Return): In an extended return
223         statement, apply accessibility check to result object when there
224         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
226 2015-01-30  Robert Dewar  <dewar@adacore.com>
228         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
229         Boolean for case where ELSE is omitted.
230         * sem_res.adb: Minor reformatting.
232 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
234         Fix build under cygwin/64.
235         * adaint.h: Add check for __CYGWIN__.
236         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
238 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
240         PR ada/64640
241         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
242         * mingw32.h: Don't include <tchar.h> under cygwin.
243         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
245 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
247         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
248         (DEF_FUNCTION_TYPE_VAR_12): New macros.
250 2015-01-09  Michael Collison  <michael.collison@linaro.org>
252         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
253         vec.h, double-int.h, input.h, alias.h, symtab.h,
254         fold-const.h, wide-int.h, and inchash.h due to
255         flattening of tree.h.
256         * gcc-interface/decl.c: Ditto.
257         * gcc-interface/misc.c: Ditto.
258         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
259         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
260         fold-const.h, wide-int.h, and inchash.h due to
261         flattening of tree.h.
262         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
263         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
264         fold-const.h, wide-int.h, inchash.h due to
265         flattening of tree.h.
266         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
267         vec.h, double-int.h, input.h, alias.h, symtab.h,
268         fold-const.h, wide-int.h, and inchash.h due to
269         flattening of tree.h.
270         * gcc-interface/utils2.c: Ditto.
272 2015-01-07  Robert Dewar  <dewar@adacore.com>
274         * sem_warn.adb (Check_One_Unit): Don't give unused entities
275         warning for a package which is used as a generic parameter.
277 2015-01-07  Bob Duff  <duff@adacore.com>
279         * usage.adb (Usage): Correct documentation of
280         -gnatw.f switches.
282 2015-01-07  Robert Dewar  <dewar@adacore.com>
284         * s-fileio.adb: Minor reformatting.
286 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
288         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
289         access to subprogram, replace its formals with new entities when
290         building the object declaration, both if actual is present and
291         when it is defaulted.
293 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
295         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
296         conversion and type of expression has invariant, apply invariant
297         check on expression.
299 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
301         * sem_ch3.adb (Create_Constrained_Components): A call to
302         Gather_Components may detect an error if an inherited discriminant
303         that controls a variant is non-static.
304         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
305         Gather_Components may report an error if an inherited discriminant
306         in a variant in non-static.
307         * sem_util.adb (Gather_Components): If a non-static discriminant
308         is inherited do not report error here, but let caller handle it.
309         (Find_Actual): Small optimization.
311 2015-01-07  Bob Duff  <duff@adacore.com>
313         * usage.adb (Usage): Document -gnatw.f switch.
315 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
317         * sem_ch12.adb: Code clean up and minor reformatting.
319 2015-01-07  Robert Dewar  <dewar@adacore.com>
321         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
322         Raise_Accessibility_Error call.
323         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
324         on handling of invalid digits in based constants.
325         * s-fatgen.ads: Minor reformatting.
326         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
327         Avoid noting bogus modification for Valid test.
328         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
329         * einfo.ads: Minor reformatting.
330         * sem_warn.adb: Minor comment clarification.
331         * sem_ch12.adb: Minor reformatting.
333 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
335         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
336         over static predicates when the loop parameter specification
337         carries a Reverse indicator.
339 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
341         * sem_ch12.adb (Instantiate_Object): If formal has a default,
342         actual is missing and formal has an anonymous access type, copy
343         access definition in full so that tree for instance is properly
344         formatted for ASIS use.
346 2015-01-07  Bob Duff  <duff@adacore.com>
348         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
349         for P'Access, where P is a subprogram in the same package as
350         the P'Access, and the P'Access is evaluated at elaboration
351         time, and occurs before the body of P. For example, "X : T :=
352         P'Access;" would allow a subsequent call to X.all to be an
353         access-before-elaboration error; hence the warning. This warning
354         is enabled by the -gnatw.f switch.
355         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
356         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
357         * gnat_ugn.texi: Document the new warning.
359 2015-01-07  Johannes Kanig  <kanig@adacore.com>
361         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
362         cross ref files.
364 2015-01-07  Robert Dewar  <dewar@adacore.com>
366         * s-taprop-linux.adb, clean.adb: Minor reformatting.
368 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
370         * s-tassta.adb: Relax some overzealous assertions.
372 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
374         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
375         view of a type is legal when context is a thunk generated for
376         operation inherited from an interface.
377         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
378         a thunk and return type is an incomplete type do not continue
379         expansion; thunk will be fully elaborated when generating code.
381 2015-01-07  Doug Rupp  <rupp@adacore.com>
383         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
384         (QueryPerformanceFrequency): New imported procedure.
385         * s-taprop-mingw.adb (RT_Resolution): Call above and return
386         resolution vice a hardcoded value.
387         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
388         resolution vice a hardcoded value.
389         * s-linux-android.ads (clockid_t): New subtype.
390         * s-osinte-aix.ads (clock_getres): New imported subprogram.
391         * s-osinte-android.ads (clock_getres): Likewise.
392         * s-osinte-freebsd.ads (clock_getres): Likewise.
393         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
394         * s-osinte-darwin.ads (clock_getres): New subprogram.
395         * s-osinte-darwin.adb (clock_getres): New subprogram.
396         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
397         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
398         calculate resolution vice hard coded value.
400 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
402         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
403         limited view, use non-limited view when available to create
404         equivalent record type.
406 2015-01-07  Vincent Celier  <celier@adacore.com>
408         * gnatcmd.adb: Remove command Sync and any data and processing
409         related to this command. Remove project processing for gnatstack.
410         * prj-attr.adb: Remove package Synchonize and its attributes.
412 2015-01-07  Vincent Celier  <celier@adacore.com>
414         * clean.adb: Minor error message change.
416 2015-01-07  Tristan Gingold  <gingold@adacore.com>
418         PR ada/64349  
419         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
421 2015-01-07  Javier Miranda  <miranda@adacore.com>
423         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
424         protect the frontend against never ending recursion caused by
425         circularities in the sources.
427 2015-01-07  Robert Dewar  <dewar@adacore.com>
429         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
430         exp_ch3.adb: Minor reformatting.
432 2015-01-07  Doug Rupp  <rupp@adacore.com>
434         * s-linux.ads (clockid_t): New subtype.
435         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
436         (clockid_t): New subtype.
437         (clock_getres): Import system call.
438         * s-taprop-linux.adb (System.OS_Constants): With and rename.
439         (RT_Resolution): Remove
440         hardcoded value and call clock_getres.
441         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
442         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
444 2015-01-07  Robert Dewar  <dewar@adacore.com>
446         * sem_warn.adb (Check_One_Unit): Guard against context item
447         with no Entity field.
449 2015-01-07  Vincent Celier  <celier@adacore.com>
451         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
452         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
454 2015-01-07  Vincent Celier  <celier@adacore.com>
456         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
457         errors/warnings in the first parsing of the project files,
458         to display the warnings when there is no errors.
460 2015-01-07  Tristan Gingold  <gingold@adacore.com>
462         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
464 2015-01-07  Doug Rupp  <rupp@adacore.com>
466         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
467         value from Int_Lock as parameter to Int_Unlock.
468         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
469         * s-vxwext.ads (Int_Unlock): Likewise.
470         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
471         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
472         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
473         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
475 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
477         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
478         keep ___XP suffixes
480 2015-01-07  Tristan Gingold  <gingold@adacore.com>
482         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
483         handle overlap.
485 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
487         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
488         automatically set No_Strict_Aliasing on access types.
489         * fe.h (No_Strict_Aliasing_CP): Declare.
490         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
491         No_Strict_Aliasing_CP is set.
493 2015-01-07  Johannes Kanig  <kanig@adacore.com>
495         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
496         not build function wrapper in gnatprove mode when the package
497         is externally axiomatized.
499 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
501         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
502         intermediate computations when the parameters have different signs.
504 2015-01-07  Javier Miranda  <miranda@adacore.com>
506         * exp_ch3.adb (Build_Init_Procedure): For derived types,
507         improve the code which takes care of identifying and moving to
508         the beginning of the init-proc the call to the init-proc of the
509         parent type.
511 2015-01-07  Olivier Hainque  <hainque@adacore.com>
513         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
514         Elaborate the expression as part of the same stmt group as the actions.
516 2015-01-07  Robert Dewar  <dewar@adacore.com>
518         * sem_ch3.adb: Minor error message change.
520 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
522         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
523         Following AI05-028, the pragam applies legally to any composite type.
525 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
527         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
528         (sigwait, sigwaitinfo): Removed, not needed after all on any
529         VxWorks configurations.
531 2015-01-07  Robert Dewar  <dewar@adacore.com>
533         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
535 2015-01-07  Javier Miranda  <miranda@adacore.com>
537         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
538         generation of accessibility check.
540 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
542         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
543         illegal completion from a class- wide type, set etype of the
544         derived type properly to prevent cascaded errors.
546 2015-01-07  Robert Dewar  <dewar@adacore.com>
548         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
549         reformatting.
551 2015-01-07  Robert Dewar  <dewar@adacore.com>
553         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
554         New procedure.
555         (OK_No_Use_Of_Entity_Name): New function.
556         (Set_Restriction_No_Use_Of_Entity): New procedure.
557         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
558         New procedure.
559         (OK_No_Use_Of_Entity_Name): New function.
560         (Set_Restriction_No_Use_Of_Entity): New procedure.
561         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
562         No_Use_Of_Entity.
563         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
564         Add processing for new restriction No_Use_Of_Entity.
566 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
568         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
569         component type as to Has_Atomic_Components type.  Remove useless
570         test on Is_Aliased component type.
572 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
574         * alloc.ads Alphabetize several declarations. Add constants
575         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
576         * atree.adb Add with and use clauses for Opt.
577         (Allocate_Initialize_Node): Mark a node as ignored Ghost
578         if it is created in an ignored Ghost region.
579         (Ekind_In): New variant.
580         (Is_Ignored_Ghost_Node): New routine.
581         (Set_Is_Ignored_Ghost_Node): New routine.
582         * atree.adb Aplhabetize several subprograms declarations. Flag
583         Spare0 is now known as Is_Ignored_Ghost_Node.
584         (Ekind_In): New variant.
585         (Is_Ignored_Ghost_Node): New routine.
586         (Set_Is_Ignored_Ghost_Node): New routine.
587         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
588         (Contains_Ignored_Ghost_Code): New routine.
589         (Set_Contains_Ignored_Ghost_Code): New routine.
590         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
591         It is now possible to set this property on an unanalyzed entity.
592         (Write_Entity_Flags): Output the status of flag
593         Contains_Ignored_Ghost_Code.
594         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
595         usage in nodes.
596         (Contains_Ignored_Ghost_Code): New routine
597         along with pragma Inline.
598         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
599         * exp_ch3.adb Add with and use clauses for Ghost.
600         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
601         Set the Ghost_Mode in effect.
602         (Restore_Globals): New routine.
603         * exp_ch7.adb (Process_Declarations): Do not process a context
604         that invoves an ignored Ghost entity.
605         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
606         construct that has been rewritten as a null statement.
607         * exp_disp.adb Add with and use clauses for Ghost.
608         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
609         the Ghost_Mode in effect.
610         (Restore_Globals): New routine.
611         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
612         does not require any clean up. Add two missing cases that deal
613         with block statements.
614         * freeze.adb Add with and use clauses for Ghost.
615         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
616         Set the Ghost_Mode in effect.
617         (Restore_Globals): New routine.
618         * frontend.adb Add with and use clauses for Ghost. Remove any
619         ignored Ghost code from all units that qualify.
620         * ghost.adb New unit.
621         * ghost.ads New unit.
622         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
623         the table in package Ghost.
624         * lib.ads: Alphabetize several subprogram declarations.
625         * lib-xref.adb (Output_References): Do not generate reference
626         information for ignored Ghost entities.
627         * opt.ads Add new type Ghost_Mode_Type and new global variable
628         Ghost_Mode.
629         * rtsfind.adb (Load_RTU): Provide a clean environment when
630         loading a runtime unit.
631         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
632         entry/exit as the node may set a different mode.
633         (Do_Analyze):
634         Capture/restore the value of Ghost_Mode on entry/exit as the
635         unit may be withed from a unit with a different Ghost mode.
636         * sem_ch3.adb Add with and use clauses for Ghost.
637         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
638         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
639         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
640         the entity as Ghost when there is a Ghost_Mode in effect.
641         (Array_Type_Declaration): The implicit base type inherits the
642         "ghostness" from the array type.
643         (Derive_Subprogram): The
644         alias inherits the "ghostness" from the parent subprogram.
645         (Make_Implicit_Base): The implicit base type inherits the
646         "ghostness" from the parent type.
647         * sem_ch5.adb Add with and use clauses for Ghost.
648         (Analyze_Assignment): Set the Ghost_Mode in effect.
649         * sem_ch6.adb Add with and use clauses for Ghost.
650         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
651         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
652         Set the Ghost_Mode in effect. Mark the entity as Ghost when
653         there is a Ghost_Mode in effect.
654         * sem_ch7.adb Add with and use clauses for Ghost.
655         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
656         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
657         effect. Mark the entity as Ghost when there is a Ghost_Mode
658         in effect.
659         * sem_ch8.adb Add with and use clauses for Ghost.
660         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
661         Analyze_Object_Renaming, Analyze_Package_Renaming,
662         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
663         the entity as Ghost when there is a Ghost_Mode in effect.
664         (Find_Type): Check the Ghost context of a type.
665         * sem_ch11.adb Add with and use clauses for Ghost.
666         (Analyze_Exception_Declaration): Set the Ghost_Mode in
667         effect. Mark the entity as Ghost when there is a Ghost_Mode
668         in effect.
669         * sem_ch12.adb Add with and use clauses for Ghost.
670         (Analyze_Generic_Package_Declaration,
671         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
672         Mark the entity as Ghost when there is a Ghost_Mode in effect.
673         * sem_prag.adb Add with and use clauses for Ghost.
674         (Analyze_Pragma): Ghost-related checks are triggered when there
675         is a Ghost mode in effect.
676         (Create_Abstract_State): Mark the
677         entity as Ghost when there is a Ghost_Mode in effect.
678         * sem_res.adb Add with and use clauses for Ghost.
679         (Check_Ghost_Context): Removed.
680         * sem_util.adb (Check_Ghost_Completion): Removed.
681         (Check_Ghost_Derivation): Removed.
682         (Incomplete_Or_Partial_View):
683         Add a guard in case the entity has not been analyzed yet
684         and does carry a scope.
685         (Is_Declaration): New routine.
686         (Is_Ghost_Entity): Removed.
687         (Is_Ghost_Statement_Or_Pragma):
688         Removed.
689         (Is_Subject_To_Ghost): Removed.
690         (Set_Is_Ghost_Entity):
691         Removed.
692         (Within_Ghost_Scope): Removed.
693         * sem_util.adb (Check_Ghost_Completion): Removed.
694         (Check_Ghost_Derivation): Removed.
695         (Is_Declaration): New routine.
696         (Is_Ghost_Entity): Removed.
697         (Is_Ghost_Statement_Or_Pragma): Removed.
698         (Is_Subject_To_Ghost): Removed.
699         (Set_Is_Ghost_Entity): Removed.
700         (Within_Ghost_Scope): Removed.
701         * sinfo.ads Add a section on Ghost mode.
702         * treepr.adb (Print_Header_Flag): New routine.
703         (Print_Node_Header): Factor out code. Output flag
704         Is_Ignored_Ghost_Node.
705         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
707 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
709         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
710         true test and unreachable 'else' arm.
712 2015-01-06  Vincent Celier  <celier@adacore.com>
714         * prj-conf.adb (Check_Target): Improve error message when
715         there are mismatched targets between the on in the configuration
716         project file and the specified one, either in the main project
717         file or in the --target= switch.
719 2015-01-06  Pascal Obry  <obry@adacore.com>
721         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
722         Install_Name attribute definitions.
724 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
726         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
727         generated Import pragma for the internal imported procedure does
728         not come from an aspect, so that Is_Imported can be properly
729         set for it.
731 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
733         * sem_ch12.adb (Might_Inline_Subp): Record whether
734         any subprograms in the generic package are marked with
735         pragma Inline_Always (setting flag Has_Inline_Always).
736         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
737         alongside existing test of Front_End_Inlining as alternative
738         conditions for setting Inline_Now. Also add test of
739         Has_Inline_Always along with Front_End_Inlining test as an
740         alternative condition for setting Needs_Body to False.
742 2015-01-06  Tristan Gingold  <gingold@adacore.com>
744         * i-cpoint.adb (Copy_Array): Handle overlap.
746 2015-01-06  Pascal Obry  <obry@adacore.com>
748         * bindgen.adb: Minor style fix.
750 2015-01-06  Robert Dewar  <dewar@adacore.com>
752         * sem_util.ads, sem_util.adb: Minor reformatting.
754 2015-01-06  Vincent Celier  <celier@adacore.com>
756         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
757         with flags before parsing the projects.
758         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
759         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
760         to True in the flags, when Ignore_Missing_With is True and an
761         imported project cannot be found.
762         * prj-proc.adb (Expression): When there are incomplete withs and
763         a variable or attribute is not found, set the variable/attribute
764         to unknown.
765         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
766         defaulted to False.
768 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
770         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
771         prj-err.adb: Add new switch --no-command-line.
773 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
775         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
777 2015-01-06  Robert Dewar  <dewar@adacore.com>
779         * sem_ch11.adb: Minor reformatting.
781 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
783         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
784         Build_Array_Aggr_Code, used to initialized components covered
785         by a box association. If the component type is scalar and has
786         a default aspect, use it to initialize such components.
788 2015-01-06  Pascal Obry  <obry@adacore.com>
790         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
791         control the setup of the exception handler.
792         * initialize.c: Remove unused declaration.
793         * bindgen.adb: Always call __gnat_runtime_initialize and pass
794         whether the exeception handler must be set or not.
796 2015-01-06  Thomas Quinot  <quinot@adacore.com>
798         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
799         order to native from default, make sure to also adjust bit order.
800         * exp_aggr.adb: Minor reformatting.
802 2015-01-06  Robert Dewar  <dewar@adacore.com>
804         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
805         s-valrea.adb, s-valrea.ads: Add some additional guards for
806         Str'Last = Positive'Last.
808 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
810         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
811         subprograms.
813 2015-01-06  Javier Miranda  <miranda@adacore.com>
815         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
817 2015-01-06  Thomas Quinot  <quinot@adacore.com>
819         * sem_util.ads: Minor reformatting.
820         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
821         (In_RCI_Declaration) Return to old name, as proper checking of
822         entity being in the visible part depends on entity kind and must
823         be done by the caller.
825 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
827         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
828         for operators in SPARK.
830 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
832         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
833         expression in an others association before making copies for
834         separate resolution and accessibility checks. This ensures that
835         the type of the expression is available to ASIS in all cases,
836         in particular if the expression is itself an aggregate.
838 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
840         * einfo.ads (Has_Independent_Components): Document extended
841         usage.
842         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
843         (Set_Has_Independent_Components): Adjust assertion.
844         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
845         for pragma Atomic_Components.  Set Has_Independent_Components
846         on the object instead of the type for an object declaration with
847         pragma Independent_Components.
849 2015-01-06  Olivier Hainque  <hainque@adacore.com>
851         * set_targ.adb (Read_Target_Dependent_Values): Set
852         Long_Double_Index when "long double" is read.
853         (elaboration code): Register_Back_End_Types only when not reading from
854         config files. Doing otherwise is pointless and error prone.
856 2015-01-06  Robert Dewar  <dewar@adacore.com>
858         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
860 2015-01-06  Robert Dewar  <dewar@adacore.com>
862         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
863         Str'Last = Positive'Last.
865 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
867         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
868         where the non-limited type is a generic actual and appears as
869         a subtype of the non-limited view of the other.
870         * freeze.adb (Build_Renamed_Body): If the return type of the
871         declaration that is being completed is a limited view and the
872         non-limited view is available, use it in the specification of
873         the generated body.
875 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
877         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
878         incomplete view, the type of the classwide type common to both
879         views is the type being declared.
881 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
883         * einfo.ads (Is_Independent): Further document extended usage.
885 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
887         * einfo.ads (Is_Independent): Document extended usage.
888         * einfo.adb (Is_Independent): Remove obsolete assertion.
889         (Set_Is_Independent): Likewise.
890         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
891         (Process_Atomic_Independent_Shared_Volatile): ...this.
892         Deal with pragma Independent here.
893         (Analyze_Pragma): Adjust
894         to above renaming and also invoke it for pragma Independent.
895         Adjust comment for Independent_Components.
897 2015-01-06  Robert Dewar  <dewar@adacore.com>
899         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
900         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
902 2015-01-06  Robert Dewar  <dewar@adacore.com>
904         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
905         = Positive'Last.
906         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
907         Str'Last = Positive'Last.
909 2015-01-06  Robert Dewar  <dewar@adacore.com>
911         * sem_prag.adb (Process_Inline): Remove redundant construct
912         warning (-gnatw.r) for an ineffective pragma Inline.
914 2015-01-06  Robert Dewar  <dewar@adacore.com>
916         * s-valint.adb: Fix typo in last checkin.
917         * s-valuns.adb (Value_Unsigned): More efficient fix for
918         Positive'Last case.
919         * sem_attr.adb (Analyze_Attribute): Minor reformatting
920         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
922 2015-01-06  Robert Dewar  <dewar@adacore.com>
924         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
925         Str'Last = Positive'Last
927 2015-01-06  Thomas Quinot  <quinot@adacore.com>
929         * xoscons.adb: Display exception information and return non-zero
930         exit status in top level exception handler.
932 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
934         * sem_ch8.adb: Code clean up.
936 2015-01-06  Tristan Gingold  <gingold@adacore.com>
938         * targparm.ads: Remove obsolete comment.
940 2015-01-06  Olivier Hainque  <hainque@adacore.com>
942         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
943         constructing a ref to variable, update inner_const_flag from the
944         variable TREE_READONLY attribute.
945         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
946         definition.
947         (get_target_float_size): Remove.
948         (get_target_double_size): Remove.
949         (get_target_long_double_size): Remove.
951 2015-01-06  Pascal Obry  <obry@adacore.com>
953         * adaint.c (ProcListEvt): Set to NULL.
954         * rtinit.c: New file.
955         (__gnat_rt_init_count): New reference counter set to 0.
956         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
957         this code is actually needed for the runtime initialization. This
958         routine returns immediately if the initialization has already been done.
959         * final.c: Revert previous change.
960         * rtfinal.c: New file.
961         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
962         section and event. The default version of this routine is empty (except
963         for the reference counting code). This routine returns immediately if
964         some others libraries are referencing the runtime.
965         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
966         remove circuitry to initialize the signal handler as this is
967         now done by the runtime initialization routine.
968         (Gen_Adafinal): Generate call to Runtime_Finalize.
969         * gnat_ugn.texi: Update documentation about concurrency and
970         initialization/finalization of the run-time.
971         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
972         references to rtfinal.o and rtinit.o
974 2015-01-06  Robert Dewar  <dewar@adacore.com>
976         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
977         for Enum_Image.
978         * sem_attr.adb: Implement Enum_Image attribute.
979         * snames.ads-tmpl: Add entries for Enum_Image attribute.
981 2015-01-06  Robert Dewar  <dewar@adacore.com>
983         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
984         * restrict.ads (No_Use_Of_Entity): New table.
985         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
986         Ignore No_Use_Of_Entity (will be processed in parser).
987         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
989 2015-01-06  Vincent Celier  <celier@adacore.com>
991         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
992         to check for an extended project, if a project does not have
993         yet a project declaration.
995 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
997         * scos.ads: Update documentation about the SCO table build
998         process and about table records format.
999         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
1000         (SCO_Record_Filtered): New procedure.
1001         (Set_SCO_Logical_Operator): New procedure.
1002         (dsco): Update documentation.
1003         * par_sco.adb: Update library-level comments.
1004         (SCO_Generation_State_Type): New type.
1005         (SCO_Generation_State): New variable.
1006         (SCO_Raw_Table): New package instanciation.
1007         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
1008         ("<"): New.
1009         (Tristate): New type.
1010         (Is_Logical_Operator): Return Tristate and update documentation.
1011         (Has_Decision): Update call to Is_Logical_Operator and complete
1012         documentation.
1013         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
1014         comment, add an assertion for state checking and change
1015         references to SCO_Table into SCO_Raw_Table.
1016         (dsco): Refactor to dump the raw and the filtered tables.
1017         (Process_Decisions.Output_Decision_Operand): Handle putative
1018         short-circuit operators.
1019         (Process_Decisions.Output_Element): Update references
1020         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1021         (Process_Decisions.Process_Decision_Operand): Update call
1022         to Is_Logical_Operator.
1023         (Process_Decisions.Process_Node): Handle putative short-circuit
1024         operators and change references to
1025         SCO_Table into SCO_Raw_Table.
1026         (SCO_Output): Add an assertion
1027         for state checking and remove code that used to stamp out SCO entries.
1028         (SCO_Pragma_Disabled): Change reference to SCO_Table
1029         into SCO_Raw_Table.
1030         (SCO_Record): Rename to SCO_Record_Raw,
1031         add an assertion for state checking and change references
1032         to SCO_Table into SCO_Raw_Table.
1033         (Set_SCO_Condition): Add an assertion for state checking, update
1034         references to Condition_Pragma_Hash_Table and change references to
1035         SCO_Table into SCO_Raw_Table.
1036         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
1037         change references to SCO_Table into SCO_Raw_Table.
1038         (Set_SCO_Logical_Operator): New procedure.
1039         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
1040         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1041         (SCO_Record_Fildered): New procedure.
1042         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
1043         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
1044         output SCOs.
1045         * par-load.adb (Load): Update reference to SCO_Record.
1046         * par.adb (Par): Update reference to SCO_Record.
1047         * put_scos.adb (Put_SCOs): Add an assertion to check that no
1048         putative SCO condition reaches this end.
1049         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
1050         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
1051         when corresponding to an "and"/"or" operator affected by the
1052         Short_Circuit_And_Or pragma.
1054 2015-01-06  Robert Dewar  <dewar@adacore.com>
1056         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
1057         msg for attempted USE of generic subprogram or subprogram.
1059 2015-01-06  Robert Dewar  <dewar@adacore.com>
1061         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
1062         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
1063         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
1065 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1067         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1068         that specify stream subprograms, if the prefix is a class-wide
1069         type then the generated attribute definition clause must apply
1070         to the same class-wide type.
1071         (Default_Iterator): An iterator defined by an aspect of some
1072         container type T must have a first parameter of type T, T'class,
1073         or an access to such (from code reading RM 5.5.1 (2/3)).
1075 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1077         * gnat1drv.adb: Minor: complete previous change.
1079 2015-01-06  Olivier Hainque  <hainque@adacore.com>
1081         * set_targ.ads (C_Type_For): New function. Return the name of
1082         a C type supported by the back-end and suitable as a basis to
1083         construct the standard Ada floating point type identified by
1084         the T parameter. This is used as a common ground to feed both
1085         ttypes values and the GNAT tree nodes for the standard floating
1086         point types.
1087         * set_targ.adb (Long_Double_Index): The index at which "long
1088         double" gets registered in the FPT_Mode_Table. This is useful to
1089         know whether we have a "long double" available at all and get at
1090         it's characteristics without having to search the FPT_Mode_Table
1091         when we need to decide which C type should be used as the
1092         basis for Long_Long_Float in Ada.
1093         (Register_Float_Type): Fill Long_Double_Index.
1094         (FPT_Mode_Index_For): New function. Return the index in
1095         FPT_Mode_Table that designates the entry corresponding to the
1096         provided C type name.
1097         (FPT_Mode_Index_For): New function. Return the index in
1098         FPT_Mode_Table that designates the entry for a back-end type
1099         suitable as a basis to construct the standard Ada floating point
1100         type identified by the input T parameter.
1101         (elaboration code): Register_Back_End_Types unconditionally,
1102         so C_Type_For can operate regardless of -gnateT. Do it
1103         early so we can query it for the floating point sizes, via
1104         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
1105         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
1106         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
1107         which C type should be used as the basis for the construction
1108         of the Standard Ada floating point types.
1109         * get_targ.ads (Get_Float_Size, Get_Double_Size,
1110         Get_Long_Double_Size): Remove.
1111         * get_targ.adb: Likewise.
1113 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1115         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
1116         parameter and rename to...
1117         (In_RCI_Visible_Declarations): Fix handling of private part of nested
1118         package.
1119         (Validate_RCI_Subprogram_Declaration): Reject illegal function
1120         returning anonymous access in RCI unit.
1122 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1124         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
1125         function wrapper may be a homonym of another local declaration.
1126         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
1127         build function and operator wrappers after the actual subprogram
1128         has been resolved, and replace the standard renaming declaration
1129         with the declaration of wrapper.
1130         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
1131         make public for use elsewhere.
1132         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
1133         rewrite, now that actual is fully resolved when wrapper is
1134         constructed.
1136 2015-01-06  Javier Miranda  <miranda@adacore.com>
1138         * exp_disp.adb: Revert previous change.
1140 2015-01-06  Robert Dewar  <dewar@adacore.com>
1142         * exp_util.adb: Change name Name_Table_Boolean to
1143         Name_Table_Boolean1.
1144         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
1145         Introduce Name_Table_Boolean2/3.
1146         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
1147         Introduce Name_Table_Boolean2/3.
1148         * par-ch13.adb: Change name Name_Table_Boolean to
1149         Name_Table_Boolean1.
1151 2015-01-06  Bob Duff  <duff@adacore.com>
1153         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
1155 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1157         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
1158         others choice that covers multiple components, analyze each
1159         copy with the type of the component even in compile-only mode,
1160         to detect potential accessibility errors.
1162 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1164         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
1165         (Resolve_Actuals): An effectively volatile out
1166         parameter cannot act as an in or in out actual in a call.
1167         (Resolve_Entity_Name): An effectively volatile out parameter
1168         cannot be read.
1170 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1172         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
1173         the expansion of an expression function it may be pre-analyzed
1174         if a 'access attribute is applied to the function, in which case
1175         last_entity may have been assigned already.
1177 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1179         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
1180         type and actual has the corresponding full view, there is no
1181         error, but a case of use of incomplete type in a predicate or
1182         invariant expression.
1184 2015-01-06  Vincent Celier  <celier@adacore.com>
1186         * makeutl.adb (Insert_No_Roots): Make sure that the same source
1187         in two different project tree is checked in both trees, if they
1188         are sources of two different projects, extended or not.
1190 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1192         * gnat1drv.adb: Minor code clean up.
1193         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
1195 2015-01-06  Bob Duff  <duff@adacore.com>
1197         * osint.adb (Read_Source_File): Don't print out
1198         file name unless T = Source.
1200 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1202         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
1203         recognize improper uses of constant_reference types as actuals
1204         for in-out parameters.
1205         (Check_Function_Call): Do not collect identifiers if function
1206         name is missing because of previous error.
1208 2015-01-06  Robert Dewar  <dewar@adacore.com>
1210         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
1211         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
1212         Minor change of name Name_Table_Info => Name_Table_Int.
1214 2015-01-06  Robert Dewar  <dewar@adacore.com>
1216         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
1217         in previous checkin.
1218         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
1219         of bounds.
1220         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
1222 2015-01-06  Vincent Celier  <celier@adacore.com>
1224         * a-strsup.adb (Times (Natural;String;Positive)): Raise
1225         Length_Error, not Index_Error, when the result is too long.
1227 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1229         * a-direct.adb (Create_Path): Minor error handling and
1230         performance improvement.
1232 2015-01-06  Robert Dewar  <dewar@adacore.com>
1234         * checks.ads, sem_ch12.adb: Minor reformatting.
1235         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
1236         zero check for fixed-point case if Backend_Divide_Checks_On_Target
1237         is False.
1239 2015-01-06  Robert Dewar  <dewar@adacore.com>
1241         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1242         Do not set restriction No_Elaboration_Code unless the pragma
1243         appears in the main unit).
1245 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1247         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
1248         that with clause has already been analyzed before checking kind
1249         of with_clause.
1251 2015-01-06  Robert Dewar  <dewar@adacore.com>
1253         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
1254         (as required by RM).
1256 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1258         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
1260 2015-01-06  Robert Dewar  <dewar@adacore.com>
1262         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
1263         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
1265 2015-01-06  Javier Miranda  <miranda@adacore.com>
1267         * exp_disp.adb (Expand_Interface_Conversion): No displacement
1268         of the pointer to the object needed when the type of the operand
1269         is not an interface type and the interface is one of its parent
1270         types (since they share the primary dispatch table).
1272 2015-01-06  Vincent Celier  <celier@adacore.com>
1274         * prj-env.adb: Minor comment update.
1276 2015-01-06  Javier Miranda  <miranda@adacore.com>
1278         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
1279         access types whose target type is an interface type to operands
1280         that are access types; required to report an error when the
1281         operand is not an access type.
1283 2015-01-06  Bob Duff  <duff@adacore.com>
1285         * a-cfinve.adb (Copy): Set the discriminant to the Length when
1286         Capacity = 0.
1287         * a-cofove.ads (Capacity): Add a postcondition.
1288         * a-cfinve.ads (Capacity): Add a postcondition.
1289         (Reserve_Capacity): Correct the postcondition in the case where
1290         Capacity = 0; that means "Capacity => Length (Container)".
1291         * a-cofove.adb (Elems[c]): Add a comment
1292         explaining the dangers and how to avoid them.
1294 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1296         * sem_ch12.adb: Code clean up.
1298 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1300         * gnatvsn.ads: Bump copyright year.
1302 2015-01-06  Robert Dewar  <dewar@adacore.com>
1304         * s-taskin.ads, s-traces.ads: Minor reformatting.
1305         * exp_util.adb: Minor typo fix.
1307 2015-01-06  Vincent Celier  <celier@adacore.com>
1309         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
1310         with the runtime name.
1311         * prj-env.adb (Initialize_Default_Project_Path): When both
1312         Target_Name and Runtime_Name are not empty string, add to the
1313         project path the two directories .../lib/gnat and .../share/gpr
1314         related to the runtime.
1315         * prj-env.ads (Initialize_Default_Project_Path): New String
1316         parameter Runtime_Name, defaulted to the empty string.
1318 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1320         * frontend.adb: Guard against the case where a configuration
1321         pragma may be split into multiple pragmas and the original
1322         rewritten as a null statement.
1323         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
1324         pragma using Insert_Before rather than Insert_Action. This
1325         takes care of the configuration pragma case where Insert_Action
1326         would fail.
1328 2015-01-06  Bob Duff  <duff@adacore.com>
1330         * a-coboho.ads (Element_Access): Add "pragma
1331         No_Strict_Aliasing (Element_Access);". This is needed because
1332         we are unchecked-converting from Address to Element_Access.
1333         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
1334         result to be 1.
1336 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1338         * sem_res.adb (Resolve_Actuals): Remove the
1339         restriction which prohibits volatile actual parameters with
1340         enabled external propery Async_Writers to act appear in procedure
1341         calls where the corresponding formal is of mode OUT.
1343 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1345         * gnat_ugn.texi: Bump @copying's copyright year.
1347 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1349         PR ada/64492
1350         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
1352 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
1354         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
1355         of unchecked asprintf.
1358 Copyright (C) 2015 Free Software Foundation, Inc.
1360 Copying and distribution of this file, with or without modification,
1361 are permitted in any medium without royalty provided the copyright
1362 notice and this notice are preserved.