2015-02-22 Arnaud Charlet <charlet@adacore.com>
[official-gcc.git] / gcc / ada / ChangeLog
blobbb4d68db704bc2b9b1e3a9b5961068f790a7ef46
1 2015-02-22  Arnaud Charlet  <charlet@adacore.com>
3         * doc/gnat_ugn/project-manager-figure.png,
4         doc/gnat_ugn/rtlibrary-structure.png: New.
6 2015-02-22  Tom de Vries  <tom@codesourcery.com>
8         PR ada/65100
9         * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
10         @item, and fix warning '@itemize has text but no @item'.
12 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
14         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
15         legally applies to an abstract subprogram declaration.
16         * freeze.adb: Minor comment addition.
18 2015-02-20  Robert Dewar  <dewar@adacore.com>
20         * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
21         * erroutc.adb (Set_Msg_Str): Replace _xxx.
22         (Pre/Post/Type_Invariant) by xxx'Class.
23         * erroutc.ads (Set_Msg_Str): Replace _xxx.
24         (Pre/Post/Type_Invariant) by xxx'Class.
25         * sem_prag.adb (Fix_Error): Remove special casing of
26         Name_uType_Invariant.
27         (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
28         Name_uPre and Name_uPost in aspect case (done in Errout now).
30 2015-02-20  Robert Dewar  <dewar@adacore.com>
32         * g-alveop.adb: Minor style fixes.
34 2015-02-20  Robert Dewar  <dewar@adacore.com>
36         * freeze.adb (Warn_Overlay): Guard against blow up with address
37         clause.
39 2015-02-20  Bob Duff  <duff@adacore.com>
41         * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
42         for the compiler to guess whether the call is internal or external --
43         it is always external.
44         (Expand_Access_To_Protected_Op): For P'Access, where P
45         is a protected subprogram, always create a pointer to the
46         External_Subprogram.
48 2015-02-20  Robert Dewar  <dewar@adacore.com>
50         * a-dispat.adb, a-stcoed.ads: Minor reformatting.
52 2015-02-20  Robert Dewar  <dewar@adacore.com>
54         * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
55         predicate for non-static subtype.
56         (Build_Predicate_Functions): Do not assume subtype associated with a
57         static predicate must be static.
59 2015-02-20  Robert Dewar  <dewar@adacore.com>
61         * errout.adb (Set_Msg_Node): Better handling of internal names
62         (Set_Msg_Node): Kill message when we cannot eliminate internal name.
63         * errout.ads: Document additional case of message deletion.
64         * namet.adb (Is_Internal_Name): Refined to consider wide
65         strings in brackets notation and character literals not to be
66         internal names.
67         * sem_ch8.adb (Find_Selected_Component): Give additional error
68         when selector name is a subprogram whose first parameter has
69         the same type as the prefix, but that type is untagged.
71 2015-02-20  Robert Dewar  <dewar@adacore.com>
73         * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
75 2015-02-20  Tristan Gingold  <gingold@adacore.com>
77         * opt.ads (GNAT_Mode_Config): New variable.
78         * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
79         to set Assertions_Enabled.
80         * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
81         for -gnatg.
83 2015-02-20  Robert Dewar  <dewar@adacore.com>
85         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
86         comment regarding the handling of unterminated fixed-point
87         constants.
88         * s-valuns.ads (Scan_Raw_Unsigned): Add comments
89         corresponding to those previously added for
90         System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
92 2015-02-20  Olivier Hainque  <hainque@adacore.com>
94         * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
96 2015-02-20  Robert Dewar  <dewar@adacore.com>
98         * sem_prag.adb: Minor comment clarification.
100 2015-02-20  Olivier Hainque  <hainque@adacore.com>
102         * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
103         * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
104         * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
105         (vec_ctf): Now renamings as well.
107 2015-02-20  Robert Dewar  <dewar@adacore.com>
109         * switch-c.adb, bindgen.adb: Minor reformatting.
111 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
113         * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
114         Invariant'class is allowed on an abstract type.
116 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
118         * sem_ch3.adb (Access_Definition): If the access definition is
119         for a protected component and defines an access to protected
120         subprogram, do not create an itype reference for it because a
121         full type declaration will be built in order to generate the
122         proper equivalent type.
123         (Analyze_Subtype_Declaration): Add information of incomplete
124         subtypes, for Ada 2012 extended uses of incomplete types.
126 2015-02-20  Gary Dismukes  <dismukes@adacore.com>
128         * sem_res.adb: Minor reformatting.
130 2015-02-20  Vincent Celier  <celier@adacore.com>
132         * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
133         path name for several switches --RTS, use the normalized path
134         names.
136 2015-02-20  Vincent Celier  <celier@adacore.com>
138         * bindgen.adb: Minor reformatting and code reorganization.
140 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
142         * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
143         * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
144         defined by Ada 2012.
146 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
148         * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
149         obsolete references to RTX, nucleus, VMS.
151 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
153         * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
154         aspect, use name that mentions Class explicitly, rather than
155         compiler-internal name.
157 2015-02-20  Robert Dewar  <dewar@adacore.com>
159         * debug.adb: Add documentation for -gnatd.2 (allow statements
160         in decl sequences).
161         * par-ch3.adb (P_Identifier_Declarations): Handle
162         statement appearing where declaration expected more cleanly.
163         (Statement_When_Declaration_Expected): Implement debug flag
164         -gnatd.2.
166 2015-02-20  Jose Ruiz  <ruiz@adacore.com>
168         * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
169         * a-dispat.ads (Yield): Include procedure added in Ada 2012.
170         * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
171         * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
172         defined by Ada 2005.
173         * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
174         This is the correct name for the dispatching policy (FIFO was
175         missing).
177 2015-02-20  Javier Miranda  <miranda@adacore.com>
179         * sem_res.adb (Resolve_Type_Conversion): If the type of the
180         operand is the limited-view of a class-wide type then recover
181         the class-wide type of the non-limited view.
183 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
185         * gcc-interface/Makefile.in: Remove references to nucleus.
186         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
187         extern_flag to true for Inline_Always subprograms with
188         Intrinsic convention.
190 2015-02-20  Yannick Moy  <moy@adacore.com>
192         * sem_prag.ads: Minor typo in comment.
194 2015-02-20  Pascal Obry  <obry@adacore.com>
196         * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
198 2015-02-20  Vincent Celier  <celier@adacore.com>
200         * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
201         if it exists.
203 2015-02-20  Robert Dewar  <dewar@adacore.com>
205         * sem_eval.ads: Minor reformatting.
207 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
209         * freeze.adb (Size_Known): Do not set the packed size for
210         independent type or component.
211         (Freeze_Array_Type): Check for Independent[_Components] with packing
212         or explicit component size clause.
213         * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
214         of independence pragmas only for non-GCC back-ends.
215         * sem_ch13.adb (Initialize): Likewise for the initialization.
216         * sem_prag.adb (Record_Independence_Check): New procedure to record an
217         independence check in the table.
218         (Analyze_Pragma): Use it throughout instead of doing it manually.
219         * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
220         independent type or component.
222 2015-02-20  Thomas Quinot  <quinot@adacore.com>
224         * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
225         struct direct and readdir. This is required for NFS filesystems
226         mounted from servers that use 64-bit cookies.
228 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
230         * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
231         Build_Subprogram_Renaming, to create renaming of subprogram
232         instance in the the declaration of the wrapper package rather
233         than in its body, so that it is available for analysis of aspects
234         propagated from generic to instantiation.
235         (Check_Mismatch): An actual for a formal package that is an
236         incomplete type matches a formal type that is incomplete.
237         (Instantiate_Package_Body): Move code that builds subprogram
238         renaming to Analyze_Subprogram_Instantiation.
239         (Instantiate_Type): The generated subtype is a limited view if
240         the actual is a limited view.
241         (Load_Parent_Of_Generic): Retrieve instance declaration from
242         its new position within wrapper package.
244 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
246         * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
248 2015-02-20  Robert Dewar  <dewar@adacore.com>
250         * s-osinte-vxworks.ads (To_Timespec): Add comment about the
251         issue of negative arguments.
253 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
255         * gnat1drv.adb: Minor consistency fix.
257 2015-02-20  Pascal Obry  <obry@adacore.com>
259         * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
260         paths.
262 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
264         * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
265         renamings.
266         * exp_ch6.adb (Expand_Call): Use back-end inlining
267         instead of expansion for simple subprogram renamings.
269 2015-02-20  Robert Dewar  <dewar@adacore.com>
271         * exp_util.adb: Minor reformatting.
273 2015-02-20  Vincent Celier  <celier@adacore.com>
275         * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
276         is specified several times with different values that indicates
277         the same runtime directory.
279 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
281         * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
282         handle properly illegal uses of attributes on prefixes on an
283         incomplete type, both when the type of the prefix is locally
284         incomplete, and when it is a limited view of a type whose
285         non-limited view is not available.
286         (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
287         'Address and others.
289 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
291         * exp_ch6.adb: Fix minor typo in comment.
293 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
295         * sinfo.ads: Add comment.
297 2015-02-20  Olivier Hainque  <hainque@adacore.com>
299         * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
300         flags controlling the actual FE inlining out of pragma Inline
301         and pragma Inline_Always.
302         * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
303         on -fno-inline, which disables all inlining in compilers with
304         an Ada back-end and without back-end inlining support.
305         * back_end.adb (Scan_Back_End_Switches): Set the Inline related
306         flag to True on -fno-inline and leave Inline_Always alone for
307         gcc back-ends.
308         * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
309         names of the Opt flags it sets.
310         * gnat1drv.adb (Adjust_Global_Switches): Remove test on
311         Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
312         * sem_prag.adb (Make_Inline): Remove early return conditioned
313         on Opt.Suppress_All_Inlining.
314         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
315         disable the calls to Build_Body_To_Inline otherwise triggered
316         by pragma Inline or Inline_Always. This will prevent actual
317         front-end inlining of the subprogram on calls.
319 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
321         * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
322         Abort_Undefer_Direct function.
323         * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
324         * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
325         * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
326         * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
327         Add_Inlined_Body.
328         * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
329          Remove call to Register_Backend_Call and move code resetting
330         Needs_Debug_Info on inlined subprograms to...
331         * inline.ads (Add_Inlined_Body): Add N parameter.
332         (Register_Backend_Call): Delete.
333         * inline.adb (Add_Inlined_Body): ...here and simplify.
334          Register the call with Backend_Calls directly.
335         (Register_Backend_Call): Delete.
336         * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
338 2015-02-20  Eric Botcazou  <ebotcazou@adacore.com>
340         * s-stalib.ads: Fix typo.
342 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
344         * exp_ch3.adb (Default_Initialize_Object): If the object has a
345         delayed freeze, the actions associated with default initialization
346         must be part of the freeze actions, rather that being inserted
347         directly after the object declaration.
349 2015-02-20  Robert Dewar  <dewar@adacore.com>
351         * lib-load.adb: Minor comment update.
353 2015-02-20  Vincent Celier  <celier@adacore.com>
355         * prj-proc.adb (Process_Case_Construction): When there are
356         incomplete withed projects and the case variable is unknown,
357         skip the case construction.
359 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
361         * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
362         when an actual is a view conversion, either because the call is
363         to an inherited operation, or because the actual is an explicit
364         type conversion to an ancestor type.  Fixes ACATS 4.0D: C732001
366 2015-02-20  Robert Dewar  <dewar@adacore.com>
368         * einfo.ads: Minor comment updates Fix missing pragma Inline
369         for Set_Partial_View_Has_Unknown_Discr.
370         * einfo.adb (Write_Entity_Flags): Add missing entry for
371         Partial_View_Has_Unknown_Discr.
372         * sem_ch3.adb: Minor reformatting.
374 2015-02-20  Vincent Celier  <celier@adacore.com>
376         * opt.ads: Minor cleanup: remove mention of gprmake.
377         * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
378         * s-tataat.adb: Do not call System.Tasking.Self but directly
379         System.Task_Primitives.Operations.Self.
381 2015-02-20  Arnaud Charlet  <charlet@adacore.com>
383         * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
384         sphinx in the doc directory.
385         * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
387 2015-02-20  Robert Dewar  <dewar@adacore.com>
389         * sem_res.adb: Minor reformatting.
390         * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
391         building spec.
392         * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
393         aspects from circuitry setting delay required to false if the
394         argument is an integer literal.
396 2015-02-20  Ed Schonberg  <schonberg@adacore.com>
398         * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr):  New flag
399         on type entities, to enforce AI12-0133: default initialization
400         of types whose partial view has unknown discriminants does not
401         get an invariant check, because clients of the unit can never
402         declare objects of such types.
403         * sem_ch3.adb (Find_Type_Name); Set new flag
404         Partial_View_Has_Unknown_Discr when needed.
405         * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
406         generation of invariant call on default-initialized object.
408 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
410         * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
411         if the parameter either is passed by reference or if the alignment
412         would be lowered.
414 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
416         * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
417         detect primitive operations of tagged and untagged types.
419 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
421         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
422         sets in presence of derivation for subprogram types.
424 2015-02-08  Eric Botcazou  <ebotcazou@adacore.com>
426         * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
427         present in the same context as the declaration.
429 2015-02-07  Jakub Jelinek  <jakub@redhat.com>
431         PR middle-end/64340
432         * gcc-interface/trans.c (gigi): Recreate optimization_default_node
433         and optimization_current_node after tweaking global_options.
435 2015-02-05  Robert Dewar  <dewar@adacore.com>
437         * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
438         prj-nmsc.adb: Minor reformatting.
440 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
442         * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
443         of a protected type may not be available, so to check conformance
444         with an interface type, examine the interface list in the type
445         declaration directly.
446         (Write_Overloads): Improve information for indirect calls,
447         for debugger use.
449 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
451         * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
452         expansion activity in ASIS mode.
454 2015-02-05  Javier Miranda  <miranda@adacore.com>
456         * errout.adb (Error_Msg_PT): Add missing error.
457         * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
458         RM rule.  Code cleanup.
459         * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
460         anonymous access types.  Found working on the tests. Code cleanup.
462 2015-02-05  Vincent Celier  <celier@adacore.com>
464         * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
465         when there are incomplete withs.
466         * prj-nmsc.adb (Process_Naming): Do not try to get the value
467         of an element when it is nil.
468         (Check_Naming): Do not check a nil suffix for illegality
469         * prj-proc.adb (Expression): Do not process an empty term.
470         * prj-strt.adb (Attribute_Reference): If attribute cannot be
471         found, parse a possible index to avoid cascading errors.
473 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
475         * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
476         for an access_to_subprogram declaration is not a derived type.
478 2015-02-05  Robert Dewar  <dewar@adacore.com>
480         * errout.adb (Error_Msg_Internal): For non-serious error set
481         Fatal_Error to Ignored.
482         * lib-load.adb (Load_Unit): Minor comment updates.
483         * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
484         setting from with'ed unit to with'ing unit.
485         * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
486         of ambiguity.
488 2015-02-05  Yannick Moy  <moy@adacore.com>
490         * sem_prag.adb, par-prag.adb: Minor code clean up.
492 2015-02-05  Yannick Moy  <moy@adacore.com>
494         * par-prag.adb (Pragma_Warnings): Update for extended form
495         of pragma Warnings. The "one" argument case may now have 2 or
496         3 arguments.
497         * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
498         extended form of pragma Warnings. Pragma with tool name is either
499         rewritten as null or as an equivalent form without tool name,
500         before reanalysis.
501         * snames.ads-tmpl (Name_Gnatprove): New name.
503 2015-02-05  Robert Dewar  <dewar@adacore.com>
505         * sem_ch13.adb (Add_Invariants): Don't assume invariant is
506         standard Boolean.
507         * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
508         condition is standard Boolean, it can be non-standard derived
509         Boolean.
511 2015-02-05  Robert Dewar  <dewar@adacore.com>
513         * checks.adb (Enable_Range_Check): Disconnect attempted
514         optimization for the case of range check for subscript of
515         unconstrained array.
517 2015-02-05  Robert Dewar  <dewar@adacore.com>
519         * par-ch13.adb (With_Present): New function
520         (Aspect_Specifications_Present): Handle WHEN in place of WITH
521         (Get_Aspect_Specifications): Comment update.
522         * par.adb: Comment updates.
524 2015-02-05  Robert Dewar  <dewar@adacore.com>
526         * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
527         * frontend.adb (Frontend): New setting of Fatal_Error.
528         * lib-load.adb (Create_Dummy_Package_Unit): New setting of
529         Fatal_Error.
530         (Load_Main_Source): New setting of Fatal_Error
531         (Load_Unit): New setting of Fatal_Error.
532         * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
533         Fatal_Error.
534         (Ensure_System_Dependency): New setting of Fatal_Error.
535         * lib.adb (Fatal_Error): New setting of Fatal_Error
536         (Set_Fatal_Error): New setting of Fatal_Error.
537         * lib.ads: New definition of Fatal_Error and associated routines.
538         * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
539         * par-load.adb (Load): New setting of Fatal_Error.
540         * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
541         * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
542         Fatal_Error.
543         (Optional_Subunit): New setting of Fatal_Error.
544         (Analyze_Proper_Body): New setting of Fatal_Error.
545         (Load_Needed_Body): New setting of Fatal_Error.
547 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
549         * sem_res.adb (Resolve_Call): If the function being called has
550         out parameters do not check for language version if the function
551         comes from a predefined unit, as those are always compiled in
552         Ada 2012 mode.
554 2015-02-05  Ed Schonberg  <schonberg@adacore.com>
556         * sem_ch3.adb (Process_Full_View): Verify that the full view
557         of a type extension must carry an explicit limited keyword if
558         the partial view does (RM 7.3 (10.1)).
560 2015-02-05  Robert Dewar  <dewar@adacore.com>
562         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
563         sem_warn.ads: Minor reformatting.
564         * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
565         deleted by -gnatI.
566         * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
567         error for abstract type.
569 2015-02-05  Yannick Moy  <moy@adacore.com>
571         * opt.ads (Warn_On_Suspicious_Contract): Update comment
572         describing use.
573         * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
574         suspicious uses of 'Update.
575         * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
576         function issues warning on suspicious uses of 'Update.
577         * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
578         package spec and body as SPARK_Mode Off.
580 2015-02-05  Robert Dewar  <dewar@adacore.com>
582         * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
583         (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
584         (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
585         * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
586         for exported entity.
588 2015-02-05  Hristian Kirtchev  <kirtchev@adacore.com>
590         * sem_prag.adb (Check_Pragma_Conformance): Add
591         local variable Arg. Ensure that all errors are associated with
592         the pragma if it appears without an argument. Add comments on
593         various cases.
595 2015-02-05  Robert Dewar  <dewar@adacore.com>
597         * lib-xref.adb: Minor reformatting.
599 2015-02-05  Tristan Gingold  <gingold@adacore.com>
601         PR ada/64349da/64349
602         * env.c: Fix thinko: handle Darwin case before default one.
604 2015-01-30  Robert Dewar  <dewar@adacore.com>
606         * a-assert.adb: Minor reformatting.
607         * sem_ch13.adb: Minor comment clarification.
608         * types.ads: Minor comment update.
609         * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
610         when we have a predicate that is nothing but an inherited dynamic
611         predicate.
613 2015-01-30  Jerome Guitton  <guitton@adacore.com>
615         * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
616         include cert link spec.
618 2015-01-30  Robert Dewar  <dewar@adacore.com>
620         * einfo.ads: Minor comment fix.
621         * freeze.adb (Freeze_Profile): Add test for suspicious import
622         in pure unit.
623         * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
624         use in Pure unit is now moved to Freeze (to properly catch
625         Pure_Function exemption).
627 2015-01-30  Bob Duff  <duff@adacore.com>
629         * sem_res.ads: Minor comment fix.
630         * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
631         check both operands of an operator.
633 2015-01-30  Yannick Moy  <moy@adacore.com>
635         * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
636         policy for Pre to Ignore.
637         (Assert): Add precondition.
639 2015-01-30  Robert Dewar  <dewar@adacore.com>
641         * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
642         Pure unit.
643         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
644         documentation for some special cases of invalid attempts at
645         based integers.
647 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
649         * errout.ads: Minor reformatting.
651 2015-01-30  Yannick Moy  <moy@adacore.com>
653         * inline.adb (Process_Formals): Use the sloc of
654         the inlined node instead of the sloc of the actual parameter,
655         when replacing formal parameters by the actual one.
657 2015-01-30  Arnaud Charlet  <charlet@adacore.com>
659         * g-expect.adb (Get_Command_Output): Use infinite timeout when
660         calling Expect.
662 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
664         * sem_ch12.adb (Analyze_Associations): If an in-parameter is
665         defaulted in an instantiation, add an entry in the list of actuals
666         to indicate the default value of the formal (as is already done
667         for defaulted subprograms).
669 2015-01-30  Javier Miranda  <miranda@adacore.com>
671         * errout.adb (Error_Msg_PT): Minor error phrasing update.
673 2015-01-30  Robert Dewar  <dewar@adacore.com>
675         * sem_warn.adb (Warn_On_Known_Condition): Improve error message
676         for object case.
678 2015-01-30  Pierre-Marie de Rodat  <derodat@adacore.com>
680         * exp_dbug.adb (Get_Encoded_Name): When
681         -fgnat-encodings=minimal, do not generate names for biased types.
683 2015-01-30  Tristan Gingold  <gingold@adacore.com>
685         PR ada/64349
686         * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
688 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
690         * freeze.adb: Minor reformatting.
692 2015-01-30  Javier Miranda  <miranda@adacore.com>
694         * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
695         improve its documentation.
696         * errout.adb (Error_Msg_PT): Improve the error message.
697         * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
698         (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
699         * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
701 2015-01-30  Robert Dewar  <dewar@adacore.com>
703         * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
704         message for False case.
706 2015-01-30  Doug Rupp  <rupp@adacore.com>
708         * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
709         * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
710         kernel.
712 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
714         * sem_attr.adb (Declared_Within_Generic_Unit):
715         New function to test whether an entity is declared within the
716         declarative region of a given generic unit.
717         (Resolve_Attribute): For checking legality of subprogram'Access within
718         a generic unit, call new Boolean function Declared_Within_Generic_Unit
719         instead of simply comparing the results of Enclosing_Generic_Unit on
720         the prefix and access type.  Correct minor comment typos.
722 2015-01-30  Robert Dewar  <dewar@adacore.com>
724         * freeze.adb, exp_util.ads: Update comment.
725         * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
726         * sem_util.adb: Minor: fix typo.
728 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
730         * sem_attr.adb (Analyze_Attribute): Ensure that
731         the check concerning Refined_Post takes precedence over the
732         other cases.
734 2015-01-30  Gary Dismukes  <dismukes@adacore.com>
736         * sem_prag.adb: Minor typo fixes and reformatting.
738 2015-01-30  Yannick Moy  <moy@adacore.com>
740         * sem_attr.adb: Code clean up.
742 2015-01-30  Robert Dewar  <dewar@adacore.com>
744         * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
745         * ali.ads (Unit_Record): Add new field Serious_Errors.
746         * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
747         attribute in U line.
748         * lib-writ.ads: New attribute SE (serious erors) in unit line.
750 2015-01-30  Hristian Kirtchev  <kirtchev@adacore.com>
752         * einfo.adb Update the usage of attributes Entry_Bodies_Array,
753         Lit_Indexes, Scale_Value, Storage_Size_Variable,
754         String_Literal_Low_Bound along associated routines and
755         Write_FieldX_Name.
756         (Pending_Access_Types): New routine.
757         (Set_Pending_Access_Types): New routine.
758         (Write_Field15_Name): Add an entry for Pending_Access_Types.
759         * einfo.ads Add new attribute Pending_Access_Types along
760         with usage in nodes.  Update the usage of attributes
761         Entry_Bodies_Array, Lit_Indexes, Scale_Value,
762         Storage_Size_Variable, String_Literal_Low_Bound.
763         (Pending_Access_Types): New routine along with pragma Inline.
764         (Set_Pending_Access_Types): New routine along with pragma Inline.
765         * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
766         Ins_Node. Determine the insertion node for anonynous access type
767         that acts as a component type of an array. Update the call to
768         Build_Finalization_Master.
769         (Expand_Freeze_Record_Type): Update
770         the calls to Build_Finalization_Master.
771         (Freeze_Type): Remove
772         local variable RACW_Seen. Factor out the code that deals with
773         remote access-to-class-wide types. Create a finalization master
774         when the designated type contains a private component. Fully
775         initialize all pending access types.
776         (Process_RACW_Types): New routine.
777         (Process_Pending_Access_Types): New routine.
778         * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
779         needs to set primitive Finalize_Address.
780         (Expand_N_Allocator): Allocation no longer sets primitive
781         Finalize_Address.
782         * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
783         Update the call to Build_Finalization_Master.
784         (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
785         needs to set primitive Finalize_Address.
786         * exp_ch7.adb (Add_Pending_Access_Type): New routine.
787         (Build_Finalization_Master): New parameter profile. Associate
788         primitive Finalize_Address with the finalization master if the
789         designated type has been frozen, otherwise treat the access
790         type as pending. Simplify the insertion of the master and
791         related initialization code.
792         (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
793         abstract types.
794         (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
795         Simplify the implementation.
796         * exp_ch7.ads (Build_Finalization_Master): New parameter profile
797         along with comment on usage.
798         (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
799         the comment on usage.
800         * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
801         Finalize_Address to retrieve the primitive.
802         (Finalize_Address): New routine.
803         (Find_Finalize_Address): Removed.
804         * exp_util.ads (Finalize_Address): New routine.
805         * freeze.adb (Freeze_All): Remove the generation of finalization
806         masters.
807         * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
808         pending access types from the partial to the full view.
810 2015-01-30  Robert Dewar  <dewar@adacore.com>
812         * sem_disp.adb: Minor reformatting.
813         * sem_disp.ads: Documentation update.
815 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
817         * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
818         or a function call, return True if type is class-wide.
819         * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
820         Apply RM 4.5.7 (17/3): all or none of the dependent expression
821         of a conditional expression must be dynamically tagged.
823 2015-01-30  Ed Schonberg  <schonberg@adacore.com>
825         * sem_ch6.adb (Analyze_Function_Return): In an extended return
826         statement, apply accessibility check to result object when there
827         is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
829 2015-01-30  Robert Dewar  <dewar@adacore.com>
831         * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
832         Boolean for case where ELSE is omitted.
833         * sem_res.adb: Minor reformatting.
835 2015-01-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
837         Fix build under cygwin/64.
838         * adaint.h: Add check for __CYGWIN__.
839         * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
841 2015-01-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
843         PR ada/64640
844         * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
845         * mingw32.h: Don't include <tchar.h> under cygwin.
846         (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
848 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
850         * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
851         (DEF_FUNCTION_TYPE_VAR_12): New macros.
853 2015-01-09  Michael Collison  <michael.collison@linaro.org>
855         * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
856         vec.h, double-int.h, input.h, alias.h, symtab.h,
857         fold-const.h, wide-int.h, and inchash.h due to
858         flattening of tree.h.
859         * gcc-interface/decl.c: Ditto.
860         * gcc-interface/misc.c: Ditto.
861         * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
862         vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
863         fold-const.h, wide-int.h, and inchash.h due to
864         flattening of tree.h.
865         * gcc-interface/trans.c: Include hash-set.h, machmode.h,
866         vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
867         fold-const.h, wide-int.h, inchash.h due to
868         flattening of tree.h.
869         * gcc-interface/utils.c: Include hash-set.h, machmode.h,
870         vec.h, double-int.h, input.h, alias.h, symtab.h,
871         fold-const.h, wide-int.h, and inchash.h due to
872         flattening of tree.h.
873         * gcc-interface/utils2.c: Ditto.
875 2015-01-07  Robert Dewar  <dewar@adacore.com>
877         * sem_warn.adb (Check_One_Unit): Don't give unused entities
878         warning for a package which is used as a generic parameter.
880 2015-01-07  Bob Duff  <duff@adacore.com>
882         * usage.adb (Usage): Correct documentation of
883         -gnatw.f switches.
885 2015-01-07  Robert Dewar  <dewar@adacore.com>
887         * s-fileio.adb: Minor reformatting.
889 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
891         * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
892         access to subprogram, replace its formals with new entities when
893         building the object declaration, both if actual is present and
894         when it is defaulted.
896 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
898         * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
899         conversion and type of expression has invariant, apply invariant
900         check on expression.
902 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
904         * sem_ch3.adb (Create_Constrained_Components): A call to
905         Gather_Components may detect an error if an inherited discriminant
906         that controls a variant is non-static.
907         * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
908         Gather_Components may report an error if an inherited discriminant
909         in a variant in non-static.
910         * sem_util.adb (Gather_Components): If a non-static discriminant
911         is inherited do not report error here, but let caller handle it.
912         (Find_Actual): Small optimization.
914 2015-01-07  Bob Duff  <duff@adacore.com>
916         * usage.adb (Usage): Document -gnatw.f switch.
918 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
920         * sem_ch12.adb: Code clean up and minor reformatting.
922 2015-01-07  Robert Dewar  <dewar@adacore.com>
924         * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
925         Raise_Accessibility_Error call.
926         * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
927         on handling of invalid digits in based constants.
928         * s-fatgen.ads: Minor reformatting.
929         * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
930         Avoid noting bogus modification for Valid test.
931         * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
932         * einfo.ads: Minor reformatting.
933         * sem_warn.adb: Minor comment clarification.
934         * sem_ch12.adb: Minor reformatting.
936 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
938         * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
939         over static predicates when the loop parameter specification
940         carries a Reverse indicator.
942 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
944         * sem_ch12.adb (Instantiate_Object): If formal has a default,
945         actual is missing and formal has an anonymous access type, copy
946         access definition in full so that tree for instance is properly
947         formatted for ASIS use.
949 2015-01-07  Bob Duff  <duff@adacore.com>
951         * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
952         for P'Access, where P is a subprogram in the same package as
953         the P'Access, and the P'Access is evaluated at elaboration
954         time, and occurs before the body of P. For example, "X : T :=
955         P'Access;" would allow a subsequent call to X.all to be an
956         access-before-elaboration error; hence the warning. This warning
957         is enabled by the -gnatw.f switch.
958         * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
959         * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
960         * gnat_ugn.texi: Document the new warning.
962 2015-01-07  Johannes Kanig  <kanig@adacore.com>
964         * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
965         cross ref files.
967 2015-01-07  Robert Dewar  <dewar@adacore.com>
969         * s-taprop-linux.adb, clean.adb: Minor reformatting.
971 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
973         * s-tassta.adb: Relax some overzealous assertions.
975 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
977         * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
978         view of a type is legal when context is a thunk generated for
979         operation inherited from an interface.
980         * exp_ch6.adb (Expand_Simple_Function_Return): If context is
981         a thunk and return type is an incomplete type do not continue
982         expansion; thunk will be fully elaborated when generating code.
984 2015-01-07  Doug Rupp  <rupp@adacore.com>
986         * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
987         (QueryPerformanceFrequency): New imported procedure.
988         * s-taprop-mingw.adb (RT_Resolution): Call above and return
989         resolution vice a hardcoded value.
990         * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
991         resolution vice a hardcoded value.
992         * s-linux-android.ads (clockid_t): New subtype.
993         * s-osinte-aix.ads (clock_getres): New imported subprogram.
994         * s-osinte-android.ads (clock_getres): Likewise.
995         * s-osinte-freebsd.ads (clock_getres): Likewise.
996         * s-osinte-solaris-posix.ads (clock_getres): Likewise.
997         * s-osinte-darwin.ads (clock_getres): New subprogram.
998         * s-osinte-darwin.adb (clock_getres): New subprogram.
999         * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
1000         * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
1001         calculate resolution vice hard coded value.
1003 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1005         * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
1006         limited view, use non-limited view when available to create
1007         equivalent record type.
1009 2015-01-07  Vincent Celier  <celier@adacore.com>
1011         * gnatcmd.adb: Remove command Sync and any data and processing
1012         related to this command. Remove project processing for gnatstack.
1013         * prj-attr.adb: Remove package Synchonize and its attributes.
1015 2015-01-07  Vincent Celier  <celier@adacore.com>
1017         * clean.adb: Minor error message change.
1019 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1021         PR ada/64349  
1022         * env.c (__gnat_environ): Adjust for darwin9/darwin10.
1024 2015-01-07  Javier Miranda  <miranda@adacore.com>
1026         * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
1027         protect the frontend against never ending recursion caused by
1028         circularities in the sources.
1030 2015-01-07  Robert Dewar  <dewar@adacore.com>
1032         * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
1033         exp_ch3.adb: Minor reformatting.
1035 2015-01-07  Doug Rupp  <rupp@adacore.com>
1037         * s-linux.ads (clockid_t): New subtype.
1038         * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
1039         (clockid_t): New subtype.
1040         (clock_getres): Import system call.
1041         * s-taprop-linux.adb (System.OS_Constants): With and rename.
1042         (RT_Resolution): Remove
1043         hardcoded value and call clock_getres.
1044         * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
1045         s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
1047 2015-01-07  Robert Dewar  <dewar@adacore.com>
1049         * sem_warn.adb (Check_One_Unit): Guard against context item
1050         with no Entity field.
1052 2015-01-07  Vincent Celier  <celier@adacore.com>
1054         * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
1055         * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
1057 2015-01-07  Vincent Celier  <celier@adacore.com>
1059         * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
1060         errors/warnings in the first parsing of the project files,
1061         to display the warnings when there is no errors.
1063 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1065         * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
1067 2015-01-07  Doug Rupp  <rupp@adacore.com>
1069         * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
1070         value from Int_Lock as parameter to Int_Unlock.
1071         * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
1072         * s-vxwext.ads (Int_Unlock): Likewise.
1073         * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
1074         * s-vxwext-kernel.ads (Int_Unlock): Likewise.
1075         * s-vxwext-rtp.adb (Int_Unlock): Likewise.
1076         * s-vxwext-rtp.ads (Int_Unlock): Likewise.
1078 2015-01-07  Pierre-Marie de Rodat  <derodat@adacore.com>
1080         * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
1081         keep ___XP suffixes
1083 2015-01-07  Tristan Gingold  <gingold@adacore.com>
1085         * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
1086         handle overlap.
1088 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1090         * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1091         automatically set No_Strict_Aliasing on access types.
1092         * fe.h (No_Strict_Aliasing_CP): Declare.
1093         * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1094         No_Strict_Aliasing_CP is set.
1096 2015-01-07  Johannes Kanig  <kanig@adacore.com>
1098         * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1099         not build function wrapper in gnatprove mode when the package
1100         is externally axiomatized.
1102 2015-01-07  Jose Ruiz  <ruiz@adacore.com>
1104         * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1105         intermediate computations when the parameters have different signs.
1107 2015-01-07  Javier Miranda  <miranda@adacore.com>
1109         * exp_ch3.adb (Build_Init_Procedure): For derived types,
1110         improve the code which takes care of identifying and moving to
1111         the beginning of the init-proc the call to the init-proc of the
1112         parent type.
1114 2015-01-07  Olivier Hainque  <hainque@adacore.com>
1116         * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1117         Elaborate the expression as part of the same stmt group as the actions.
1119 2015-01-07  Robert Dewar  <dewar@adacore.com>
1121         * sem_ch3.adb: Minor error message change.
1123 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1125         * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1126         Following AI05-028, the pragam applies legally to any composite type.
1128 2015-01-07  Arnaud Charlet  <charlet@adacore.com>
1130         * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1131         (sigwait, sigwaitinfo): Removed, not needed after all on any
1132         VxWorks configurations.
1134 2015-01-07  Robert Dewar  <dewar@adacore.com>
1136         * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1138 2015-01-07  Javier Miranda  <miranda@adacore.com>
1140         * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1141         generation of accessibility check.
1143 2015-01-07  Ed Schonberg  <schonberg@adacore.com>
1145         * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1146         illegal completion from a class- wide type, set etype of the
1147         derived type properly to prevent cascaded errors.
1149 2015-01-07  Robert Dewar  <dewar@adacore.com>
1151         * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1152         reformatting.
1154 2015-01-07  Robert Dewar  <dewar@adacore.com>
1156         * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1157         New procedure.
1158         (OK_No_Use_Of_Entity_Name): New function.
1159         (Set_Restriction_No_Use_Of_Entity): New procedure.
1160         * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1161         New procedure.
1162         (OK_No_Use_Of_Entity_Name): New function.
1163         (Set_Restriction_No_Use_Of_Entity): New procedure.
1164         * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1165         No_Use_Of_Entity.
1166         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1167         Add processing for new restriction No_Use_Of_Entity.
1169 2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
1171         * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1172         component type as to Has_Atomic_Components type.  Remove useless
1173         test on Is_Aliased component type.
1175 2015-01-07  Hristian Kirtchev  <kirtchev@adacore.com>
1177         * alloc.ads Alphabetize several declarations. Add constants
1178         Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1179         * atree.adb Add with and use clauses for Opt.
1180         (Allocate_Initialize_Node): Mark a node as ignored Ghost
1181         if it is created in an ignored Ghost region.
1182         (Ekind_In): New variant.
1183         (Is_Ignored_Ghost_Node): New routine.
1184         (Set_Is_Ignored_Ghost_Node): New routine.
1185         * atree.adb Aplhabetize several subprograms declarations. Flag
1186         Spare0 is now known as Is_Ignored_Ghost_Node.
1187         (Ekind_In): New variant.
1188         (Is_Ignored_Ghost_Node): New routine.
1189         (Set_Is_Ignored_Ghost_Node): New routine.
1190         * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1191         (Contains_Ignored_Ghost_Code): New routine.
1192         (Set_Contains_Ignored_Ghost_Code): New routine.
1193         (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1194         It is now possible to set this property on an unanalyzed entity.
1195         (Write_Entity_Flags): Output the status of flag
1196         Contains_Ignored_Ghost_Code.
1197         * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1198         usage in nodes.
1199         (Contains_Ignored_Ghost_Code): New routine
1200         along with pragma Inline.
1201         (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1202         * exp_ch3.adb Add with and use clauses for Ghost.
1203         (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1204         Set the Ghost_Mode in effect.
1205         (Restore_Globals): New routine.
1206         * exp_ch7.adb (Process_Declarations): Do not process a context
1207         that invoves an ignored Ghost entity.
1208         * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1209         construct that has been rewritten as a null statement.
1210         * exp_disp.adb Add with and use clauses for Ghost.
1211         (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1212         the Ghost_Mode in effect.
1213         (Restore_Globals): New routine.
1214         * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1215         does not require any clean up. Add two missing cases that deal
1216         with block statements.
1217         * freeze.adb Add with and use clauses for Ghost.
1218         (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1219         Set the Ghost_Mode in effect.
1220         (Restore_Globals): New routine.
1221         * frontend.adb Add with and use clauses for Ghost. Remove any
1222         ignored Ghost code from all units that qualify.
1223         * ghost.adb New unit.
1224         * ghost.ads New unit.
1225         * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1226         the table in package Ghost.
1227         * lib.ads: Alphabetize several subprogram declarations.
1228         * lib-xref.adb (Output_References): Do not generate reference
1229         information for ignored Ghost entities.
1230         * opt.ads Add new type Ghost_Mode_Type and new global variable
1231         Ghost_Mode.
1232         * rtsfind.adb (Load_RTU): Provide a clean environment when
1233         loading a runtime unit.
1234         * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1235         entry/exit as the node may set a different mode.
1236         (Do_Analyze):
1237         Capture/restore the value of Ghost_Mode on entry/exit as the
1238         unit may be withed from a unit with a different Ghost mode.
1239         * sem_ch3.adb Add with and use clauses for Ghost.
1240         (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1241         Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1242         Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1243         the entity as Ghost when there is a Ghost_Mode in effect.
1244         (Array_Type_Declaration): The implicit base type inherits the
1245         "ghostness" from the array type.
1246         (Derive_Subprogram): The
1247         alias inherits the "ghostness" from the parent subprogram.
1248         (Make_Implicit_Base): The implicit base type inherits the
1249         "ghostness" from the parent type.
1250         * sem_ch5.adb Add with and use clauses for Ghost.
1251         (Analyze_Assignment): Set the Ghost_Mode in effect.
1252         * sem_ch6.adb Add with and use clauses for Ghost.
1253         (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1254         Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1255         Set the Ghost_Mode in effect. Mark the entity as Ghost when
1256         there is a Ghost_Mode in effect.
1257         * sem_ch7.adb Add with and use clauses for Ghost.
1258         (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1259         Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1260         effect. Mark the entity as Ghost when there is a Ghost_Mode
1261         in effect.
1262         * sem_ch8.adb Add with and use clauses for Ghost.
1263         (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1264         Analyze_Object_Renaming, Analyze_Package_Renaming,
1265         Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1266         the entity as Ghost when there is a Ghost_Mode in effect.
1267         (Find_Type): Check the Ghost context of a type.
1268         * sem_ch11.adb Add with and use clauses for Ghost.
1269         (Analyze_Exception_Declaration): Set the Ghost_Mode in
1270         effect. Mark the entity as Ghost when there is a Ghost_Mode
1271         in effect.
1272         * sem_ch12.adb Add with and use clauses for Ghost.
1273         (Analyze_Generic_Package_Declaration,
1274         Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1275         Mark the entity as Ghost when there is a Ghost_Mode in effect.
1276         * sem_prag.adb Add with and use clauses for Ghost.
1277         (Analyze_Pragma): Ghost-related checks are triggered when there
1278         is a Ghost mode in effect.
1279         (Create_Abstract_State): Mark the
1280         entity as Ghost when there is a Ghost_Mode in effect.
1281         * sem_res.adb Add with and use clauses for Ghost.
1282         (Check_Ghost_Context): Removed.
1283         * sem_util.adb (Check_Ghost_Completion): Removed.
1284         (Check_Ghost_Derivation): Removed.
1285         (Incomplete_Or_Partial_View):
1286         Add a guard in case the entity has not been analyzed yet
1287         and does carry a scope.
1288         (Is_Declaration): New routine.
1289         (Is_Ghost_Entity): Removed.
1290         (Is_Ghost_Statement_Or_Pragma):
1291         Removed.
1292         (Is_Subject_To_Ghost): Removed.
1293         (Set_Is_Ghost_Entity):
1294         Removed.
1295         (Within_Ghost_Scope): Removed.
1296         * sem_util.adb (Check_Ghost_Completion): Removed.
1297         (Check_Ghost_Derivation): Removed.
1298         (Is_Declaration): New routine.
1299         (Is_Ghost_Entity): Removed.
1300         (Is_Ghost_Statement_Or_Pragma): Removed.
1301         (Is_Subject_To_Ghost): Removed.
1302         (Set_Is_Ghost_Entity): Removed.
1303         (Within_Ghost_Scope): Removed.
1304         * sinfo.ads Add a section on Ghost mode.
1305         * treepr.adb (Print_Header_Flag): New routine.
1306         (Print_Node_Header): Factor out code. Output flag
1307         Is_Ignored_Ghost_Node.
1308         * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1310 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
1312         * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1313         true test and unreachable 'else' arm.
1315 2015-01-06  Vincent Celier  <celier@adacore.com>
1317         * prj-conf.adb (Check_Target): Improve error message when
1318         there are mismatched targets between the on in the configuration
1319         project file and the specified one, either in the main project
1320         file or in the --target= switch.
1322 2015-01-06  Pascal Obry  <obry@adacore.com>
1324         * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1325         Install_Name attribute definitions.
1327 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1329         * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1330         generated Import pragma for the internal imported procedure does
1331         not come from an aspect, so that Is_Imported can be properly
1332         set for it.
1334 2015-01-06  Gary Dismukes  <dismukes@adacore.com>
1336         * sem_ch12.adb (Might_Inline_Subp): Record whether
1337         any subprograms in the generic package are marked with
1338         pragma Inline_Always (setting flag Has_Inline_Always).
1339         (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1340         alongside existing test of Front_End_Inlining as alternative
1341         conditions for setting Inline_Now. Also add test of
1342         Has_Inline_Always along with Front_End_Inlining test as an
1343         alternative condition for setting Needs_Body to False.
1345 2015-01-06  Tristan Gingold  <gingold@adacore.com>
1347         * i-cpoint.adb (Copy_Array): Handle overlap.
1349 2015-01-06  Pascal Obry  <obry@adacore.com>
1351         * bindgen.adb: Minor style fix.
1353 2015-01-06  Robert Dewar  <dewar@adacore.com>
1355         * sem_util.ads, sem_util.adb: Minor reformatting.
1357 2015-01-06  Vincent Celier  <celier@adacore.com>
1359         * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
1360         with flags before parsing the projects.
1361         * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
1362         * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
1363         to True in the flags, when Ignore_Missing_With is True and an
1364         imported project cannot be found.
1365         * prj-proc.adb (Expression): When there are incomplete withs and
1366         a variable or attribute is not found, set the variable/attribute
1367         to unknown.
1368         * prj.ads (Processing_Flags): New flag Incomplete_Withs,
1369         defaulted to False.
1371 2015-01-06  Vasiliy Fofanov  <fofanov@adacore.com>
1373         * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
1374         prj-err.adb: Add new switch --no-command-line.
1376 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1378         * sem_ch12.adb: Sloc of wrapper is that of instantiation.
1380 2015-01-06  Robert Dewar  <dewar@adacore.com>
1382         * sem_ch11.adb: Minor reformatting.
1384 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1386         * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
1387         Build_Array_Aggr_Code, used to initialized components covered
1388         by a box association. If the component type is scalar and has
1389         a default aspect, use it to initialize such components.
1391 2015-01-06  Pascal Obry  <obry@adacore.com>
1393         * rtinit.c (__gnat_runtime_initialize): Add a parameter to
1394         control the setup of the exception handler.
1395         * initialize.c: Remove unused declaration.
1396         * bindgen.adb: Always call __gnat_runtime_initialize and pass
1397         whether the exeception handler must be set or not.
1399 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1401         * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
1402         order to native from default, make sure to also adjust bit order.
1403         * exp_aggr.adb: Minor reformatting.
1405 2015-01-06  Robert Dewar  <dewar@adacore.com>
1407         * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
1408         s-valrea.adb, s-valrea.ads: Add some additional guards for
1409         Str'Last = Positive'Last.
1411 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1413         * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
1414         subprograms.
1416 2015-01-06  Javier Miranda  <miranda@adacore.com>
1418         * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
1420 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1422         * sem_util.ads: Minor reformatting.
1423         * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
1424         (In_RCI_Declaration) Return to old name, as proper checking of
1425         entity being in the visible part depends on entity kind and must
1426         be done by the caller.
1428 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1430         * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
1431         for operators in SPARK.
1433 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1435         * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
1436         expression in an others association before making copies for
1437         separate resolution and accessibility checks. This ensures that
1438         the type of the expression is available to ASIS in all cases,
1439         in particular if the expression is itself an aggregate.
1441 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
1443         * einfo.ads (Has_Independent_Components): Document extended
1444         usage.
1445         * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
1446         (Set_Has_Independent_Components): Adjust assertion.
1447         * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
1448         for pragma Atomic_Components.  Set Has_Independent_Components
1449         on the object instead of the type for an object declaration with
1450         pragma Independent_Components.
1452 2015-01-06  Olivier Hainque  <hainque@adacore.com>
1454         * set_targ.adb (Read_Target_Dependent_Values): Set
1455         Long_Double_Index when "long double" is read.
1456         (elaboration code): Register_Back_End_Types only when not reading from
1457         config files. Doing otherwise is pointless and error prone.
1459 2015-01-06  Robert Dewar  <dewar@adacore.com>
1461         * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
1463 2015-01-06  Robert Dewar  <dewar@adacore.com>
1465         * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
1466         Str'Last = Positive'Last.
1468 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1470         * sem_ch6.adb (Matches_Limited_View): Handle properly the case
1471         where the non-limited type is a generic actual and appears as
1472         a subtype of the non-limited view of the other.
1473         * freeze.adb (Build_Renamed_Body): If the return type of the
1474         declaration that is being completed is a limited view and the
1475         non-limited view is available, use it in the specification of
1476         the generated body.
1478 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1480         * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
1481         incomplete view, the type of the classwide type common to both
1482         views is the type being declared.
1484 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
1486         * einfo.ads (Is_Independent): Further document extended usage.
1488 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
1490         * einfo.ads (Is_Independent): Document extended usage.
1491         * einfo.adb (Is_Independent): Remove obsolete assertion.
1492         (Set_Is_Independent): Likewise.
1493         * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
1494         (Process_Atomic_Independent_Shared_Volatile): ...this.
1495         Deal with pragma Independent here.
1496         (Analyze_Pragma): Adjust
1497         to above renaming and also invoke it for pragma Independent.
1498         Adjust comment for Independent_Components.
1500 2015-01-06  Robert Dewar  <dewar@adacore.com>
1502         * snames.ads-tmpl: Remove entries for attribute Enum_Image.
1503         * exp_attr.adb: Remove reference to Attribute_Enum_Image.
1505 2015-01-06  Robert Dewar  <dewar@adacore.com>
1507         * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
1508         = Positive'Last.
1509         * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
1510         Str'Last = Positive'Last.
1512 2015-01-06  Robert Dewar  <dewar@adacore.com>
1514         * sem_prag.adb (Process_Inline): Remove redundant construct
1515         warning (-gnatw.r) for an ineffective pragma Inline.
1517 2015-01-06  Robert Dewar  <dewar@adacore.com>
1519         * s-valint.adb: Fix typo in last checkin.
1520         * s-valuns.adb (Value_Unsigned): More efficient fix for
1521         Positive'Last case.
1522         * sem_attr.adb (Analyze_Attribute): Minor reformatting
1523         (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
1525 2015-01-06  Robert Dewar  <dewar@adacore.com>
1527         * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
1528         Str'Last = Positive'Last
1530 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1532         * xoscons.adb: Display exception information and return non-zero
1533         exit status in top level exception handler.
1535 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1537         * sem_ch8.adb: Code clean up.
1539 2015-01-06  Tristan Gingold  <gingold@adacore.com>
1541         * targparm.ads: Remove obsolete comment.
1543 2015-01-06  Olivier Hainque  <hainque@adacore.com>
1545         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
1546         constructing a ref to variable, update inner_const_flag from the
1547         variable TREE_READONLY attribute.
1548         * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
1549         definition.
1550         (get_target_float_size): Remove.
1551         (get_target_double_size): Remove.
1552         (get_target_long_double_size): Remove.
1554 2015-01-06  Pascal Obry  <obry@adacore.com>
1556         * adaint.c (ProcListEvt): Set to NULL.
1557         * rtinit.c: New file.
1558         (__gnat_rt_init_count): New reference counter set to 0.
1559         (__gnat_runtime_initialize): Move code here from __gnat_initialize when
1560         this code is actually needed for the runtime initialization. This
1561         routine returns immediately if the initialization has already been done.
1562         * final.c: Revert previous change.
1563         * rtfinal.c: New file.
1564         (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
1565         section and event. The default version of this routine is empty (except
1566         for the reference counting code). This routine returns immediately if
1567         some others libraries are referencing the runtime.
1568         * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
1569         remove circuitry to initialize the signal handler as this is
1570         now done by the runtime initialization routine.
1571         (Gen_Adafinal): Generate call to Runtime_Finalize.
1572         * gnat_ugn.texi: Update documentation about concurrency and
1573         initialization/finalization of the run-time.
1574         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
1575         references to rtfinal.o and rtinit.o
1577 2015-01-06  Robert Dewar  <dewar@adacore.com>
1579         * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
1580         for Enum_Image.
1581         * sem_attr.adb: Implement Enum_Image attribute.
1582         * snames.ads-tmpl: Add entries for Enum_Image attribute.
1584 2015-01-06  Robert Dewar  <dewar@adacore.com>
1586         * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
1587         * restrict.ads (No_Use_Of_Entity): New table.
1588         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1589         Ignore No_Use_Of_Entity (will be processed in parser).
1590         * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
1592 2015-01-06  Vincent Celier  <celier@adacore.com>
1594         * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
1595         to check for an extended project, if a project does not have
1596         yet a project declaration.
1598 2015-01-06  Pierre-Marie Derodat  <derodat@adacore.com>
1600         * scos.ads: Update documentation about the SCO table build
1601         process and about table records format.
1602         * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
1603         (SCO_Record_Filtered): New procedure.
1604         (Set_SCO_Logical_Operator): New procedure.
1605         (dsco): Update documentation.
1606         * par_sco.adb: Update library-level comments.
1607         (SCO_Generation_State_Type): New type.
1608         (SCO_Generation_State): New variable.
1609         (SCO_Raw_Table): New package instanciation.
1610         (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
1611         ("<"): New.
1612         (Tristate): New type.
1613         (Is_Logical_Operator): Return Tristate and update documentation.
1614         (Has_Decision): Update call to Is_Logical_Operator and complete
1615         documentation.
1616         (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
1617         comment, add an assertion for state checking and change
1618         references to SCO_Table into SCO_Raw_Table.
1619         (dsco): Refactor to dump the raw and the filtered tables.
1620         (Process_Decisions.Output_Decision_Operand): Handle putative
1621         short-circuit operators.
1622         (Process_Decisions.Output_Element): Update references
1623         to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1624         (Process_Decisions.Process_Decision_Operand): Update call
1625         to Is_Logical_Operator.
1626         (Process_Decisions.Process_Node): Handle putative short-circuit
1627         operators and change references to
1628         SCO_Table into SCO_Raw_Table.
1629         (SCO_Output): Add an assertion
1630         for state checking and remove code that used to stamp out SCO entries.
1631         (SCO_Pragma_Disabled): Change reference to SCO_Table
1632         into SCO_Raw_Table.
1633         (SCO_Record): Rename to SCO_Record_Raw,
1634         add an assertion for state checking and change references
1635         to SCO_Table into SCO_Raw_Table.
1636         (Set_SCO_Condition): Add an assertion for state checking, update
1637         references to Condition_Pragma_Hash_Table and change references to
1638         SCO_Table into SCO_Raw_Table.
1639         (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
1640         change references to SCO_Table into SCO_Raw_Table.
1641         (Set_SCO_Logical_Operator): New procedure.
1642         (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
1643         references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1644         (SCO_Record_Fildered): New procedure.
1645         * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
1646         * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
1647         output SCOs.
1648         * par-load.adb (Load): Update reference to SCO_Record.
1649         * par.adb (Par): Update reference to SCO_Record.
1650         * put_scos.adb (Put_SCOs): Add an assertion to check that no
1651         putative SCO condition reaches this end.
1652         * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
1653         * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
1654         when corresponding to an "and"/"or" operator affected by the
1655         Short_Circuit_And_Or pragma.
1657 2015-01-06  Robert Dewar  <dewar@adacore.com>
1659         * sem_ch8.adb (Analyze_Use_Package): Give more specific error
1660         msg for attempted USE of generic subprogram or subprogram.
1662 2015-01-06  Robert Dewar  <dewar@adacore.com>
1664         * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
1665         s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
1666         a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
1668 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1670         * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1671         that specify stream subprograms, if the prefix is a class-wide
1672         type then the generated attribute definition clause must apply
1673         to the same class-wide type.
1674         (Default_Iterator): An iterator defined by an aspect of some
1675         container type T must have a first parameter of type T, T'class,
1676         or an access to such (from code reading RM 5.5.1 (2/3)).
1678 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1680         * gnat1drv.adb: Minor: complete previous change.
1682 2015-01-06  Olivier Hainque  <hainque@adacore.com>
1684         * set_targ.ads (C_Type_For): New function. Return the name of
1685         a C type supported by the back-end and suitable as a basis to
1686         construct the standard Ada floating point type identified by
1687         the T parameter. This is used as a common ground to feed both
1688         ttypes values and the GNAT tree nodes for the standard floating
1689         point types.
1690         * set_targ.adb (Long_Double_Index): The index at which "long
1691         double" gets registered in the FPT_Mode_Table. This is useful to
1692         know whether we have a "long double" available at all and get at
1693         it's characteristics without having to search the FPT_Mode_Table
1694         when we need to decide which C type should be used as the
1695         basis for Long_Long_Float in Ada.
1696         (Register_Float_Type): Fill Long_Double_Index.
1697         (FPT_Mode_Index_For): New function. Return the index in
1698         FPT_Mode_Table that designates the entry corresponding to the
1699         provided C type name.
1700         (FPT_Mode_Index_For): New function. Return the index in
1701         FPT_Mode_Table that designates the entry for a back-end type
1702         suitable as a basis to construct the standard Ada floating point
1703         type identified by the input T parameter.
1704         (elaboration code): Register_Back_End_Types unconditionally,
1705         so C_Type_For can operate regardless of -gnateT. Do it
1706         early so we can query it for the floating point sizes, via
1707         FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
1708         Long_Double_Size from the FPT_Mode_Table, as cstand will do.
1709         * cstand.adb (Create_Float_Types): Use C_Type_For to determine
1710         which C type should be used as the basis for the construction
1711         of the Standard Ada floating point types.
1712         * get_targ.ads (Get_Float_Size, Get_Double_Size,
1713         Get_Long_Double_Size): Remove.
1714         * get_targ.adb: Likewise.
1716 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1718         * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
1719         parameter and rename to...
1720         (In_RCI_Visible_Declarations): Fix handling of private part of nested
1721         package.
1722         (Validate_RCI_Subprogram_Declaration): Reject illegal function
1723         returning anonymous access in RCI unit.
1725 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1727         * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
1728         function wrapper may be a homonym of another local declaration.
1729         * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
1730         build function and operator wrappers after the actual subprogram
1731         has been resolved, and replace the standard renaming declaration
1732         with the declaration of wrapper.
1733         * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
1734         make public for use elsewhere.
1735         * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
1736         rewrite, now that actual is fully resolved when wrapper is
1737         constructed.
1739 2015-01-06  Javier Miranda  <miranda@adacore.com>
1741         * exp_disp.adb: Revert previous change.
1743 2015-01-06  Robert Dewar  <dewar@adacore.com>
1745         * exp_util.adb: Change name Name_Table_Boolean to
1746         Name_Table_Boolean1.
1747         * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
1748         Introduce Name_Table_Boolean2/3.
1749         * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
1750         Introduce Name_Table_Boolean2/3.
1751         * par-ch13.adb: Change name Name_Table_Boolean to
1752         Name_Table_Boolean1.
1754 2015-01-06  Bob Duff  <duff@adacore.com>
1756         * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
1758 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1760         * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
1761         others choice that covers multiple components, analyze each
1762         copy with the type of the component even in compile-only mode,
1763         to detect potential accessibility errors.
1765 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1767         * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
1768         (Resolve_Actuals): An effectively volatile out
1769         parameter cannot act as an in or in out actual in a call.
1770         (Resolve_Entity_Name): An effectively volatile out parameter
1771         cannot be read.
1773 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1775         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
1776         the expansion of an expression function it may be pre-analyzed
1777         if a 'access attribute is applied to the function, in which case
1778         last_entity may have been assigned already.
1780 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1782         * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
1783         type and actual has the corresponding full view, there is no
1784         error, but a case of use of incomplete type in a predicate or
1785         invariant expression.
1787 2015-01-06  Vincent Celier  <celier@adacore.com>
1789         * makeutl.adb (Insert_No_Roots): Make sure that the same source
1790         in two different project tree is checked in both trees, if they
1791         are sources of two different projects, extended or not.
1793 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1795         * gnat1drv.adb: Minor code clean up.
1796         (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
1798 2015-01-06  Bob Duff  <duff@adacore.com>
1800         * osint.adb (Read_Source_File): Don't print out
1801         file name unless T = Source.
1803 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1805         * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
1806         recognize improper uses of constant_reference types as actuals
1807         for in-out parameters.
1808         (Check_Function_Call): Do not collect identifiers if function
1809         name is missing because of previous error.
1811 2015-01-06  Robert Dewar  <dewar@adacore.com>
1813         * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
1814         ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
1815         Minor change of name Name_Table_Info => Name_Table_Int.
1817 2015-01-06  Robert Dewar  <dewar@adacore.com>
1819         * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
1820         in previous checkin.
1821         * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
1822         of bounds.
1823         * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
1825 2015-01-06  Vincent Celier  <celier@adacore.com>
1827         * a-strsup.adb (Times (Natural;String;Positive)): Raise
1828         Length_Error, not Index_Error, when the result is too long.
1830 2015-01-06  Thomas Quinot  <quinot@adacore.com>
1832         * a-direct.adb (Create_Path): Minor error handling and
1833         performance improvement.
1835 2015-01-06  Robert Dewar  <dewar@adacore.com>
1837         * checks.ads, sem_ch12.adb: Minor reformatting.
1838         * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
1839         zero check for fixed-point case if Backend_Divide_Checks_On_Target
1840         is False.
1842 2015-01-06  Robert Dewar  <dewar@adacore.com>
1844         * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1845         Do not set restriction No_Elaboration_Code unless the pragma
1846         appears in the main unit).
1848 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1850         * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
1851         that with clause has already been analyzed before checking kind
1852         of with_clause.
1854 2015-01-06  Robert Dewar  <dewar@adacore.com>
1856         * exp_strm.adb (Build_Elementary_Input_Call): Return base type
1857         (as required by RM).
1859 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1861         * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
1863 2015-01-06  Robert Dewar  <dewar@adacore.com>
1865         * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
1866         for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
1868 2015-01-06  Javier Miranda  <miranda@adacore.com>
1870         * exp_disp.adb (Expand_Interface_Conversion): No displacement
1871         of the pointer to the object needed when the type of the operand
1872         is not an interface type and the interface is one of its parent
1873         types (since they share the primary dispatch table).
1875 2015-01-06  Vincent Celier  <celier@adacore.com>
1877         * prj-env.adb: Minor comment update.
1879 2015-01-06  Javier Miranda  <miranda@adacore.com>
1881         * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
1882         access types whose target type is an interface type to operands
1883         that are access types; required to report an error when the
1884         operand is not an access type.
1886 2015-01-06  Bob Duff  <duff@adacore.com>
1888         * a-cfinve.adb (Copy): Set the discriminant to the Length when
1889         Capacity = 0.
1890         * a-cofove.ads (Capacity): Add a postcondition.
1891         * a-cfinve.ads (Capacity): Add a postcondition.
1892         (Reserve_Capacity): Correct the postcondition in the case where
1893         Capacity = 0; that means "Capacity => Length (Container)".
1894         * a-cofove.adb (Elems[c]): Add a comment
1895         explaining the dangers and how to avoid them.
1897 2015-01-06  Ed Schonberg  <schonberg@adacore.com>
1899         * sem_ch12.adb: Code clean up.
1901 2015-01-06  Arnaud Charlet  <charlet@adacore.com>
1903         * gnatvsn.ads: Bump copyright year.
1905 2015-01-06  Robert Dewar  <dewar@adacore.com>
1907         * s-taskin.ads, s-traces.ads: Minor reformatting.
1908         * exp_util.adb: Minor typo fix.
1910 2015-01-06  Vincent Celier  <celier@adacore.com>
1912         * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
1913         with the runtime name.
1914         * prj-env.adb (Initialize_Default_Project_Path): When both
1915         Target_Name and Runtime_Name are not empty string, add to the
1916         project path the two directories .../lib/gnat and .../share/gpr
1917         related to the runtime.
1918         * prj-env.ads (Initialize_Default_Project_Path): New String
1919         parameter Runtime_Name, defaulted to the empty string.
1921 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1923         * frontend.adb: Guard against the case where a configuration
1924         pragma may be split into multiple pragmas and the original
1925         rewritten as a null statement.
1926         * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
1927         pragma using Insert_Before rather than Insert_Action. This
1928         takes care of the configuration pragma case where Insert_Action
1929         would fail.
1931 2015-01-06  Bob Duff  <duff@adacore.com>
1933         * a-coboho.ads (Element_Access): Add "pragma
1934         No_Strict_Aliasing (Element_Access);". This is needed because
1935         we are unchecked-converting from Address to Element_Access.
1936         * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
1937         result to be 1.
1939 2015-01-06  Hristian Kirtchev  <kirtchev@adacore.com>
1941         * sem_res.adb (Resolve_Actuals): Remove the
1942         restriction which prohibits volatile actual parameters with
1943         enabled external propery Async_Writers to act appear in procedure
1944         calls where the corresponding formal is of mode OUT.
1946 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1948         * gnat_ugn.texi: Bump @copying's copyright year.
1950 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1952         PR ada/64492
1953         * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
1955 2015-01-04  Uros Bizjak  <ubizjak@gmail.com>
1957         * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
1958         of unchecked asprintf.
1961 Copyright (C) 2015 Free Software Foundation, Inc.
1963 Copying and distribution of this file, with or without modification,
1964 are permitted in any medium without royalty provided the copyright
1965 notice and this notice are preserved.