1 2015-02-20 Olivier Hainque <hainque@adacore.com>
3 * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
5 2015-02-20 Robert Dewar <dewar@adacore.com>
7 * sem_prag.adb: Minor comment clarification.
9 2015-02-20 Olivier Hainque <hainque@adacore.com>
11 * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
12 * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
13 * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
14 (vec_ctf): Now renamings as well.
16 2015-02-20 Robert Dewar <dewar@adacore.com>
18 * switch-c.adb, bindgen.adb: Minor reformatting.
20 2015-02-20 Ed Schonberg <schonberg@adacore.com>
22 * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
23 Invariant'class is allowed on an abstract type.
25 2015-02-20 Ed Schonberg <schonberg@adacore.com>
27 * sem_ch3.adb (Access_Definition): If the access definition is
28 for a protected component and defines an access to protected
29 subprogram, do not create an itype reference for it because a
30 full type declaration will be built in order to generate the
31 proper equivalent type.
32 (Analyze_Subtype_Declaration): Add information of incomplete
33 subtypes, for Ada 2012 extended uses of incomplete types.
35 2015-02-20 Gary Dismukes <dismukes@adacore.com>
37 * sem_res.adb: Minor reformatting.
39 2015-02-20 Vincent Celier <celier@adacore.com>
41 * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
42 path name for several switches --RTS, use the normalized path
45 2015-02-20 Vincent Celier <celier@adacore.com>
47 * bindgen.adb: Minor reformatting and code reorganization.
49 2015-02-20 Jose Ruiz <ruiz@adacore.com>
51 * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
52 * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
55 2015-02-20 Arnaud Charlet <charlet@adacore.com>
57 * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
58 obsolete references to RTX, nucleus, VMS.
60 2015-02-20 Ed Schonberg <schonberg@adacore.com>
62 * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
63 aspect, use name that mentions Class explicitly, rather than
64 compiler-internal name.
66 2015-02-20 Robert Dewar <dewar@adacore.com>
68 * debug.adb: Add documentation for -gnatd.2 (allow statements
70 * par-ch3.adb (P_Identifier_Declarations): Handle
71 statement appearing where declaration expected more cleanly.
72 (Statement_When_Declaration_Expected): Implement debug flag
75 2015-02-20 Jose Ruiz <ruiz@adacore.com>
77 * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
78 * a-dispat.ads (Yield): Include procedure added in Ada 2012.
79 * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
80 * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
82 * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
83 This is the correct name for the dispatching policy (FIFO was
86 2015-02-20 Javier Miranda <miranda@adacore.com>
88 * sem_res.adb (Resolve_Type_Conversion): If the type of the
89 operand is the limited-view of a class-wide type then recover
90 the class-wide type of the non-limited view.
92 2015-02-20 Arnaud Charlet <charlet@adacore.com>
94 * gcc-interface/Makefile.in: Remove references to nucleus.
95 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
96 extern_flag to true for Inline_Always subprograms with
99 2015-02-20 Yannick Moy <moy@adacore.com>
101 * sem_prag.ads: Minor typo in comment.
103 2015-02-20 Pascal Obry <obry@adacore.com>
105 * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
107 2015-02-20 Vincent Celier <celier@adacore.com>
109 * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
112 2015-02-20 Robert Dewar <dewar@adacore.com>
114 * sem_eval.ads: Minor reformatting.
116 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
118 * freeze.adb (Size_Known): Do not set the packed size for
119 independent type or component.
120 (Freeze_Array_Type): Check for Independent[_Components] with packing
121 or explicit component size clause.
122 * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
123 of independence pragmas only for non-GCC back-ends.
124 * sem_ch13.adb (Initialize): Likewise for the initialization.
125 * sem_prag.adb (Record_Independence_Check): New procedure to record an
126 independence check in the table.
127 (Analyze_Pragma): Use it throughout instead of doing it manually.
128 * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
129 independent type or component.
131 2015-02-20 Thomas Quinot <quinot@adacore.com>
133 * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
134 struct direct and readdir. This is required for NFS filesystems
135 mounted from servers that use 64-bit cookies.
137 2015-02-20 Ed Schonberg <schonberg@adacore.com>
139 * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
140 Build_Subprogram_Renaming, to create renaming of subprogram
141 instance in the the declaration of the wrapper package rather
142 than in its body, so that it is available for analysis of aspects
143 propagated from generic to instantiation.
144 (Check_Mismatch): An actual for a formal package that is an
145 incomplete type matches a formal type that is incomplete.
146 (Instantiate_Package_Body): Move code that builds subprogram
147 renaming to Analyze_Subprogram_Instantiation.
148 (Instantiate_Type): The generated subtype is a limited view if
149 the actual is a limited view.
150 (Load_Parent_Of_Generic): Retrieve instance declaration from
151 its new position within wrapper package.
153 2015-02-20 Arnaud Charlet <charlet@adacore.com>
155 * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
157 2015-02-20 Robert Dewar <dewar@adacore.com>
159 * s-osinte-vxworks.ads (To_Timespec): Add comment about the
160 issue of negative arguments.
162 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
164 * gnat1drv.adb: Minor consistency fix.
166 2015-02-20 Pascal Obry <obry@adacore.com>
168 * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
171 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
173 * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
175 * exp_ch6.adb (Expand_Call): Use back-end inlining
176 instead of expansion for simple subprogram renamings.
178 2015-02-20 Robert Dewar <dewar@adacore.com>
180 * exp_util.adb: Minor reformatting.
182 2015-02-20 Vincent Celier <celier@adacore.com>
184 * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
185 is specified several times with different values that indicates
186 the same runtime directory.
188 2015-02-20 Ed Schonberg <schonberg@adacore.com>
190 * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
191 handle properly illegal uses of attributes on prefixes on an
192 incomplete type, both when the type of the prefix is locally
193 incomplete, and when it is a limited view of a type whose
194 non-limited view is not available.
195 (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
198 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
200 * exp_ch6.adb: Fix minor typo in comment.
202 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
204 * sinfo.ads: Add comment.
206 2015-02-20 Olivier Hainque <hainque@adacore.com>
208 * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
209 flags controlling the actual FE inlining out of pragma Inline
210 and pragma Inline_Always.
211 * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
212 on -fno-inline, which disables all inlining in compilers with
213 an Ada back-end and without back-end inlining support.
214 * back_end.adb (Scan_Back_End_Switches): Set the Inline related
215 flag to True on -fno-inline and leave Inline_Always alone for
217 * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
218 names of the Opt flags it sets.
219 * gnat1drv.adb (Adjust_Global_Switches): Remove test on
220 Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
221 * sem_prag.adb (Make_Inline): Remove early return conditioned
222 on Opt.Suppress_All_Inlining.
223 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
224 disable the calls to Build_Body_To_Inline otherwise triggered
225 by pragma Inline or Inline_Always. This will prevent actual
226 front-end inlining of the subprogram on calls.
228 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
230 * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
231 Abort_Undefer_Direct function.
232 * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
233 * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
234 * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
235 * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
237 * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
238 Remove call to Register_Backend_Call and move code resetting
239 Needs_Debug_Info on inlined subprograms to...
240 * inline.ads (Add_Inlined_Body): Add N parameter.
241 (Register_Backend_Call): Delete.
242 * inline.adb (Add_Inlined_Body): ...here and simplify.
243 Register the call with Backend_Calls directly.
244 (Register_Backend_Call): Delete.
245 * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
247 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
249 * s-stalib.ads: Fix typo.
251 2015-02-20 Ed Schonberg <schonberg@adacore.com>
253 * exp_ch3.adb (Default_Initialize_Object): If the object has a
254 delayed freeze, the actions associated with default initialization
255 must be part of the freeze actions, rather that being inserted
256 directly after the object declaration.
258 2015-02-20 Robert Dewar <dewar@adacore.com>
260 * lib-load.adb: Minor comment update.
262 2015-02-20 Vincent Celier <celier@adacore.com>
264 * prj-proc.adb (Process_Case_Construction): When there are
265 incomplete withed projects and the case variable is unknown,
266 skip the case construction.
268 2015-02-20 Ed Schonberg <schonberg@adacore.com>
270 * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
271 when an actual is a view conversion, either because the call is
272 to an inherited operation, or because the actual is an explicit
273 type conversion to an ancestor type. Fixes ACATS 4.0D: C732001
275 2015-02-20 Robert Dewar <dewar@adacore.com>
277 * einfo.ads: Minor comment updates Fix missing pragma Inline
278 for Set_Partial_View_Has_Unknown_Discr.
279 * einfo.adb (Write_Entity_Flags): Add missing entry for
280 Partial_View_Has_Unknown_Discr.
281 * sem_ch3.adb: Minor reformatting.
283 2015-02-20 Vincent Celier <celier@adacore.com>
285 * opt.ads: Minor cleanup: remove mention of gprmake.
286 * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
287 * s-tataat.adb: Do not call System.Tasking.Self but directly
288 System.Task_Primitives.Operations.Self.
290 2015-02-20 Arnaud Charlet <charlet@adacore.com>
292 * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
293 sphinx in the doc directory.
294 * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
296 2015-02-20 Robert Dewar <dewar@adacore.com>
298 * sem_res.adb: Minor reformatting.
299 * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
301 * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
302 aspects from circuitry setting delay required to false if the
303 argument is an integer literal.
305 2015-02-20 Ed Schonberg <schonberg@adacore.com>
307 * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr): New flag
308 on type entities, to enforce AI12-0133: default initialization
309 of types whose partial view has unknown discriminants does not
310 get an invariant check, because clients of the unit can never
311 declare objects of such types.
312 * sem_ch3.adb (Find_Type_Name); Set new flag
313 Partial_View_Has_Unknown_Discr when needed.
314 * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
315 generation of invariant call on default-initialized object.
317 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
319 * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
320 if the parameter either is passed by reference or if the alignment
323 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
325 * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
326 detect primitive operations of tagged and untagged types.
328 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
330 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
331 sets in presence of derivation for subprogram types.
333 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
335 * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
336 present in the same context as the declaration.
338 2015-02-07 Jakub Jelinek <jakub@redhat.com>
341 * gcc-interface/trans.c (gigi): Recreate optimization_default_node
342 and optimization_current_node after tweaking global_options.
344 2015-02-05 Robert Dewar <dewar@adacore.com>
346 * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
347 prj-nmsc.adb: Minor reformatting.
349 2015-02-05 Ed Schonberg <schonberg@adacore.com>
351 * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
352 of a protected type may not be available, so to check conformance
353 with an interface type, examine the interface list in the type
354 declaration directly.
355 (Write_Overloads): Improve information for indirect calls,
358 2015-02-05 Ed Schonberg <schonberg@adacore.com>
360 * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
361 expansion activity in ASIS mode.
363 2015-02-05 Javier Miranda <miranda@adacore.com>
365 * errout.adb (Error_Msg_PT): Add missing error.
366 * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
367 RM rule. Code cleanup.
368 * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
369 anonymous access types. Found working on the tests. Code cleanup.
371 2015-02-05 Vincent Celier <celier@adacore.com>
373 * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
374 when there are incomplete withs.
375 * prj-nmsc.adb (Process_Naming): Do not try to get the value
376 of an element when it is nil.
377 (Check_Naming): Do not check a nil suffix for illegality
378 * prj-proc.adb (Expression): Do not process an empty term.
379 * prj-strt.adb (Attribute_Reference): If attribute cannot be
380 found, parse a possible index to avoid cascading errors.
382 2015-02-05 Ed Schonberg <schonberg@adacore.com>
384 * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
385 for an access_to_subprogram declaration is not a derived type.
387 2015-02-05 Robert Dewar <dewar@adacore.com>
389 * errout.adb (Error_Msg_Internal): For non-serious error set
390 Fatal_Error to Ignored.
391 * lib-load.adb (Load_Unit): Minor comment updates.
392 * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
393 setting from with'ed unit to with'ing unit.
394 * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
397 2015-02-05 Yannick Moy <moy@adacore.com>
399 * sem_prag.adb, par-prag.adb: Minor code clean up.
401 2015-02-05 Yannick Moy <moy@adacore.com>
403 * par-prag.adb (Pragma_Warnings): Update for extended form
404 of pragma Warnings. The "one" argument case may now have 2 or
406 * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
407 extended form of pragma Warnings. Pragma with tool name is either
408 rewritten as null or as an equivalent form without tool name,
410 * snames.ads-tmpl (Name_Gnatprove): New name.
412 2015-02-05 Robert Dewar <dewar@adacore.com>
414 * sem_ch13.adb (Add_Invariants): Don't assume invariant is
416 * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
417 condition is standard Boolean, it can be non-standard derived
420 2015-02-05 Robert Dewar <dewar@adacore.com>
422 * checks.adb (Enable_Range_Check): Disconnect attempted
423 optimization for the case of range check for subscript of
426 2015-02-05 Robert Dewar <dewar@adacore.com>
428 * par-ch13.adb (With_Present): New function
429 (Aspect_Specifications_Present): Handle WHEN in place of WITH
430 (Get_Aspect_Specifications): Comment update.
431 * par.adb: Comment updates.
433 2015-02-05 Robert Dewar <dewar@adacore.com>
435 * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
436 * frontend.adb (Frontend): New setting of Fatal_Error.
437 * lib-load.adb (Create_Dummy_Package_Unit): New setting of
439 (Load_Main_Source): New setting of Fatal_Error
440 (Load_Unit): New setting of Fatal_Error.
441 * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
443 (Ensure_System_Dependency): New setting of Fatal_Error.
444 * lib.adb (Fatal_Error): New setting of Fatal_Error
445 (Set_Fatal_Error): New setting of Fatal_Error.
446 * lib.ads: New definition of Fatal_Error and associated routines.
447 * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
448 * par-load.adb (Load): New setting of Fatal_Error.
449 * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
450 * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
452 (Optional_Subunit): New setting of Fatal_Error.
453 (Analyze_Proper_Body): New setting of Fatal_Error.
454 (Load_Needed_Body): New setting of Fatal_Error.
456 2015-02-05 Ed Schonberg <schonberg@adacore.com>
458 * sem_res.adb (Resolve_Call): If the function being called has
459 out parameters do not check for language version if the function
460 comes from a predefined unit, as those are always compiled in
463 2015-02-05 Ed Schonberg <schonberg@adacore.com>
465 * sem_ch3.adb (Process_Full_View): Verify that the full view
466 of a type extension must carry an explicit limited keyword if
467 the partial view does (RM 7.3 (10.1)).
469 2015-02-05 Robert Dewar <dewar@adacore.com>
471 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
472 sem_warn.ads: Minor reformatting.
473 * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
475 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
476 error for abstract type.
478 2015-02-05 Yannick Moy <moy@adacore.com>
480 * opt.ads (Warn_On_Suspicious_Contract): Update comment
482 * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
483 suspicious uses of 'Update.
484 * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
485 function issues warning on suspicious uses of 'Update.
486 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
487 package spec and body as SPARK_Mode Off.
489 2015-02-05 Robert Dewar <dewar@adacore.com>
491 * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
492 (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
493 (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
494 * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
497 2015-02-05 Hristian Kirtchev <kirtchev@adacore.com>
499 * sem_prag.adb (Check_Pragma_Conformance): Add
500 local variable Arg. Ensure that all errors are associated with
501 the pragma if it appears without an argument. Add comments on
504 2015-02-05 Robert Dewar <dewar@adacore.com>
506 * lib-xref.adb: Minor reformatting.
508 2015-02-05 Tristan Gingold <gingold@adacore.com>
511 * env.c: Fix thinko: handle Darwin case before default one.
513 2015-01-30 Robert Dewar <dewar@adacore.com>
515 * a-assert.adb: Minor reformatting.
516 * sem_ch13.adb: Minor comment clarification.
517 * types.ads: Minor comment update.
518 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
519 when we have a predicate that is nothing but an inherited dynamic
522 2015-01-30 Jerome Guitton <guitton@adacore.com>
524 * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
525 include cert link spec.
527 2015-01-30 Robert Dewar <dewar@adacore.com>
529 * einfo.ads: Minor comment fix.
530 * freeze.adb (Freeze_Profile): Add test for suspicious import
532 * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
533 use in Pure unit is now moved to Freeze (to properly catch
534 Pure_Function exemption).
536 2015-01-30 Bob Duff <duff@adacore.com>
538 * sem_res.ads: Minor comment fix.
539 * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
540 check both operands of an operator.
542 2015-01-30 Yannick Moy <moy@adacore.com>
544 * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
545 policy for Pre to Ignore.
546 (Assert): Add precondition.
548 2015-01-30 Robert Dewar <dewar@adacore.com>
550 * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
552 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
553 documentation for some special cases of invalid attempts at
556 2015-01-30 Gary Dismukes <dismukes@adacore.com>
558 * errout.ads: Minor reformatting.
560 2015-01-30 Yannick Moy <moy@adacore.com>
562 * inline.adb (Process_Formals): Use the sloc of
563 the inlined node instead of the sloc of the actual parameter,
564 when replacing formal parameters by the actual one.
566 2015-01-30 Arnaud Charlet <charlet@adacore.com>
568 * g-expect.adb (Get_Command_Output): Use infinite timeout when
571 2015-01-30 Ed Schonberg <schonberg@adacore.com>
573 * sem_ch12.adb (Analyze_Associations): If an in-parameter is
574 defaulted in an instantiation, add an entry in the list of actuals
575 to indicate the default value of the formal (as is already done
576 for defaulted subprograms).
578 2015-01-30 Javier Miranda <miranda@adacore.com>
580 * errout.adb (Error_Msg_PT): Minor error phrasing update.
582 2015-01-30 Robert Dewar <dewar@adacore.com>
584 * sem_warn.adb (Warn_On_Known_Condition): Improve error message
587 2015-01-30 Pierre-Marie de Rodat <derodat@adacore.com>
589 * exp_dbug.adb (Get_Encoded_Name): When
590 -fgnat-encodings=minimal, do not generate names for biased types.
592 2015-01-30 Tristan Gingold <gingold@adacore.com>
595 * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
597 2015-01-30 Gary Dismukes <dismukes@adacore.com>
599 * freeze.adb: Minor reformatting.
601 2015-01-30 Javier Miranda <miranda@adacore.com>
603 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
604 improve its documentation.
605 * errout.adb (Error_Msg_PT): Improve the error message.
606 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
607 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
608 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
610 2015-01-30 Robert Dewar <dewar@adacore.com>
612 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
613 message for False case.
615 2015-01-30 Doug Rupp <rupp@adacore.com>
617 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
618 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
621 2015-01-30 Gary Dismukes <dismukes@adacore.com>
623 * sem_attr.adb (Declared_Within_Generic_Unit):
624 New function to test whether an entity is declared within the
625 declarative region of a given generic unit.
626 (Resolve_Attribute): For checking legality of subprogram'Access within
627 a generic unit, call new Boolean function Declared_Within_Generic_Unit
628 instead of simply comparing the results of Enclosing_Generic_Unit on
629 the prefix and access type. Correct minor comment typos.
631 2015-01-30 Robert Dewar <dewar@adacore.com>
633 * freeze.adb, exp_util.ads: Update comment.
634 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
635 * sem_util.adb: Minor: fix typo.
637 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
639 * sem_attr.adb (Analyze_Attribute): Ensure that
640 the check concerning Refined_Post takes precedence over the
643 2015-01-30 Gary Dismukes <dismukes@adacore.com>
645 * sem_prag.adb: Minor typo fixes and reformatting.
647 2015-01-30 Yannick Moy <moy@adacore.com>
649 * sem_attr.adb: Code clean up.
651 2015-01-30 Robert Dewar <dewar@adacore.com>
653 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
654 * ali.ads (Unit_Record): Add new field Serious_Errors.
655 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
657 * lib-writ.ads: New attribute SE (serious erors) in unit line.
659 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
661 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
662 Lit_Indexes, Scale_Value, Storage_Size_Variable,
663 String_Literal_Low_Bound along associated routines and
665 (Pending_Access_Types): New routine.
666 (Set_Pending_Access_Types): New routine.
667 (Write_Field15_Name): Add an entry for Pending_Access_Types.
668 * einfo.ads Add new attribute Pending_Access_Types along
669 with usage in nodes. Update the usage of attributes
670 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
671 Storage_Size_Variable, String_Literal_Low_Bound.
672 (Pending_Access_Types): New routine along with pragma Inline.
673 (Set_Pending_Access_Types): New routine along with pragma Inline.
674 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
675 Ins_Node. Determine the insertion node for anonynous access type
676 that acts as a component type of an array. Update the call to
677 Build_Finalization_Master.
678 (Expand_Freeze_Record_Type): Update
679 the calls to Build_Finalization_Master.
680 (Freeze_Type): Remove
681 local variable RACW_Seen. Factor out the code that deals with
682 remote access-to-class-wide types. Create a finalization master
683 when the designated type contains a private component. Fully
684 initialize all pending access types.
685 (Process_RACW_Types): New routine.
686 (Process_Pending_Access_Types): New routine.
687 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
688 needs to set primitive Finalize_Address.
689 (Expand_N_Allocator): Allocation no longer sets primitive
691 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
692 Update the call to Build_Finalization_Master.
693 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
694 needs to set primitive Finalize_Address.
695 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
696 (Build_Finalization_Master): New parameter profile. Associate
697 primitive Finalize_Address with the finalization master if the
698 designated type has been frozen, otherwise treat the access
699 type as pending. Simplify the insertion of the master and
700 related initialization code.
701 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
703 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
704 Simplify the implementation.
705 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
706 along with comment on usage.
707 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
708 the comment on usage.
709 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
710 Finalize_Address to retrieve the primitive.
711 (Finalize_Address): New routine.
712 (Find_Finalize_Address): Removed.
713 * exp_util.ads (Finalize_Address): New routine.
714 * freeze.adb (Freeze_All): Remove the generation of finalization
716 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
717 pending access types from the partial to the full view.
719 2015-01-30 Robert Dewar <dewar@adacore.com>
721 * sem_disp.adb: Minor reformatting.
722 * sem_disp.ads: Documentation update.
724 2015-01-30 Ed Schonberg <schonberg@adacore.com>
726 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
727 or a function call, return True if type is class-wide.
728 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
729 Apply RM 4.5.7 (17/3): all or none of the dependent expression
730 of a conditional expression must be dynamically tagged.
732 2015-01-30 Ed Schonberg <schonberg@adacore.com>
734 * sem_ch6.adb (Analyze_Function_Return): In an extended return
735 statement, apply accessibility check to result object when there
736 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
738 2015-01-30 Robert Dewar <dewar@adacore.com>
740 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
741 Boolean for case where ELSE is omitted.
742 * sem_res.adb: Minor reformatting.
744 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
746 Fix build under cygwin/64.
747 * adaint.h: Add check for __CYGWIN__.
748 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
750 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
753 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
754 * mingw32.h: Don't include <tchar.h> under cygwin.
755 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
757 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
759 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
760 (DEF_FUNCTION_TYPE_VAR_12): New macros.
762 2015-01-09 Michael Collison <michael.collison@linaro.org>
764 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
765 vec.h, double-int.h, input.h, alias.h, symtab.h,
766 fold-const.h, wide-int.h, and inchash.h due to
767 flattening of tree.h.
768 * gcc-interface/decl.c: Ditto.
769 * gcc-interface/misc.c: Ditto.
770 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
771 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
772 fold-const.h, wide-int.h, and inchash.h due to
773 flattening of tree.h.
774 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
775 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
776 fold-const.h, wide-int.h, inchash.h due to
777 flattening of tree.h.
778 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
779 vec.h, double-int.h, input.h, alias.h, symtab.h,
780 fold-const.h, wide-int.h, and inchash.h due to
781 flattening of tree.h.
782 * gcc-interface/utils2.c: Ditto.
784 2015-01-07 Robert Dewar <dewar@adacore.com>
786 * sem_warn.adb (Check_One_Unit): Don't give unused entities
787 warning for a package which is used as a generic parameter.
789 2015-01-07 Bob Duff <duff@adacore.com>
791 * usage.adb (Usage): Correct documentation of
794 2015-01-07 Robert Dewar <dewar@adacore.com>
796 * s-fileio.adb: Minor reformatting.
798 2015-01-07 Ed Schonberg <schonberg@adacore.com>
800 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
801 access to subprogram, replace its formals with new entities when
802 building the object declaration, both if actual is present and
803 when it is defaulted.
805 2015-01-07 Ed Schonberg <schonberg@adacore.com>
807 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
808 conversion and type of expression has invariant, apply invariant
811 2015-01-07 Ed Schonberg <schonberg@adacore.com>
813 * sem_ch3.adb (Create_Constrained_Components): A call to
814 Gather_Components may detect an error if an inherited discriminant
815 that controls a variant is non-static.
816 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
817 Gather_Components may report an error if an inherited discriminant
818 in a variant in non-static.
819 * sem_util.adb (Gather_Components): If a non-static discriminant
820 is inherited do not report error here, but let caller handle it.
821 (Find_Actual): Small optimization.
823 2015-01-07 Bob Duff <duff@adacore.com>
825 * usage.adb (Usage): Document -gnatw.f switch.
827 2015-01-07 Ed Schonberg <schonberg@adacore.com>
829 * sem_ch12.adb: Code clean up and minor reformatting.
831 2015-01-07 Robert Dewar <dewar@adacore.com>
833 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
834 Raise_Accessibility_Error call.
835 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
836 on handling of invalid digits in based constants.
837 * s-fatgen.ads: Minor reformatting.
838 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
839 Avoid noting bogus modification for Valid test.
840 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
841 * einfo.ads: Minor reformatting.
842 * sem_warn.adb: Minor comment clarification.
843 * sem_ch12.adb: Minor reformatting.
845 2015-01-07 Ed Schonberg <schonberg@adacore.com>
847 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
848 over static predicates when the loop parameter specification
849 carries a Reverse indicator.
851 2015-01-07 Ed Schonberg <schonberg@adacore.com>
853 * sem_ch12.adb (Instantiate_Object): If formal has a default,
854 actual is missing and formal has an anonymous access type, copy
855 access definition in full so that tree for instance is properly
856 formatted for ASIS use.
858 2015-01-07 Bob Duff <duff@adacore.com>
860 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
861 for P'Access, where P is a subprogram in the same package as
862 the P'Access, and the P'Access is evaluated at elaboration
863 time, and occurs before the body of P. For example, "X : T :=
864 P'Access;" would allow a subsequent call to X.all to be an
865 access-before-elaboration error; hence the warning. This warning
866 is enabled by the -gnatw.f switch.
867 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
868 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
869 * gnat_ugn.texi: Document the new warning.
871 2015-01-07 Johannes Kanig <kanig@adacore.com>
873 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
876 2015-01-07 Robert Dewar <dewar@adacore.com>
878 * s-taprop-linux.adb, clean.adb: Minor reformatting.
880 2015-01-07 Arnaud Charlet <charlet@adacore.com>
882 * s-tassta.adb: Relax some overzealous assertions.
884 2015-01-07 Ed Schonberg <schonberg@adacore.com>
886 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
887 view of a type is legal when context is a thunk generated for
888 operation inherited from an interface.
889 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
890 a thunk and return type is an incomplete type do not continue
891 expansion; thunk will be fully elaborated when generating code.
893 2015-01-07 Doug Rupp <rupp@adacore.com>
895 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
896 (QueryPerformanceFrequency): New imported procedure.
897 * s-taprop-mingw.adb (RT_Resolution): Call above and return
898 resolution vice a hardcoded value.
899 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
900 resolution vice a hardcoded value.
901 * s-linux-android.ads (clockid_t): New subtype.
902 * s-osinte-aix.ads (clock_getres): New imported subprogram.
903 * s-osinte-android.ads (clock_getres): Likewise.
904 * s-osinte-freebsd.ads (clock_getres): Likewise.
905 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
906 * s-osinte-darwin.ads (clock_getres): New subprogram.
907 * s-osinte-darwin.adb (clock_getres): New subprogram.
908 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
909 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
910 calculate resolution vice hard coded value.
912 2015-01-07 Ed Schonberg <schonberg@adacore.com>
914 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
915 limited view, use non-limited view when available to create
916 equivalent record type.
918 2015-01-07 Vincent Celier <celier@adacore.com>
920 * gnatcmd.adb: Remove command Sync and any data and processing
921 related to this command. Remove project processing for gnatstack.
922 * prj-attr.adb: Remove package Synchonize and its attributes.
924 2015-01-07 Vincent Celier <celier@adacore.com>
926 * clean.adb: Minor error message change.
928 2015-01-07 Tristan Gingold <gingold@adacore.com>
931 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
933 2015-01-07 Javier Miranda <miranda@adacore.com>
935 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
936 protect the frontend against never ending recursion caused by
937 circularities in the sources.
939 2015-01-07 Robert Dewar <dewar@adacore.com>
941 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
942 exp_ch3.adb: Minor reformatting.
944 2015-01-07 Doug Rupp <rupp@adacore.com>
946 * s-linux.ads (clockid_t): New subtype.
947 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
948 (clockid_t): New subtype.
949 (clock_getres): Import system call.
950 * s-taprop-linux.adb (System.OS_Constants): With and rename.
951 (RT_Resolution): Remove
952 hardcoded value and call clock_getres.
953 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
954 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
956 2015-01-07 Robert Dewar <dewar@adacore.com>
958 * sem_warn.adb (Check_One_Unit): Guard against context item
959 with no Entity field.
961 2015-01-07 Vincent Celier <celier@adacore.com>
963 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
964 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
966 2015-01-07 Vincent Celier <celier@adacore.com>
968 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
969 errors/warnings in the first parsing of the project files,
970 to display the warnings when there is no errors.
972 2015-01-07 Tristan Gingold <gingold@adacore.com>
974 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
976 2015-01-07 Doug Rupp <rupp@adacore.com>
978 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
979 value from Int_Lock as parameter to Int_Unlock.
980 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
981 * s-vxwext.ads (Int_Unlock): Likewise.
982 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
983 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
984 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
985 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
987 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
989 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
992 2015-01-07 Tristan Gingold <gingold@adacore.com>
994 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
997 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
999 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1000 automatically set No_Strict_Aliasing on access types.
1001 * fe.h (No_Strict_Aliasing_CP): Declare.
1002 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1003 No_Strict_Aliasing_CP is set.
1005 2015-01-07 Johannes Kanig <kanig@adacore.com>
1007 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1008 not build function wrapper in gnatprove mode when the package
1009 is externally axiomatized.
1011 2015-01-07 Jose Ruiz <ruiz@adacore.com>
1013 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1014 intermediate computations when the parameters have different signs.
1016 2015-01-07 Javier Miranda <miranda@adacore.com>
1018 * exp_ch3.adb (Build_Init_Procedure): For derived types,
1019 improve the code which takes care of identifying and moving to
1020 the beginning of the init-proc the call to the init-proc of the
1023 2015-01-07 Olivier Hainque <hainque@adacore.com>
1025 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1026 Elaborate the expression as part of the same stmt group as the actions.
1028 2015-01-07 Robert Dewar <dewar@adacore.com>
1030 * sem_ch3.adb: Minor error message change.
1032 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1034 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1035 Following AI05-028, the pragam applies legally to any composite type.
1037 2015-01-07 Arnaud Charlet <charlet@adacore.com>
1039 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1040 (sigwait, sigwaitinfo): Removed, not needed after all on any
1041 VxWorks configurations.
1043 2015-01-07 Robert Dewar <dewar@adacore.com>
1045 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1047 2015-01-07 Javier Miranda <miranda@adacore.com>
1049 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1050 generation of accessibility check.
1052 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1054 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1055 illegal completion from a class- wide type, set etype of the
1056 derived type properly to prevent cascaded errors.
1058 2015-01-07 Robert Dewar <dewar@adacore.com>
1060 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1063 2015-01-07 Robert Dewar <dewar@adacore.com>
1065 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1067 (OK_No_Use_Of_Entity_Name): New function.
1068 (Set_Restriction_No_Use_Of_Entity): New procedure.
1069 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1071 (OK_No_Use_Of_Entity_Name): New function.
1072 (Set_Restriction_No_Use_Of_Entity): New procedure.
1073 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1075 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1076 Add processing for new restriction No_Use_Of_Entity.
1078 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
1080 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1081 component type as to Has_Atomic_Components type. Remove useless
1082 test on Is_Aliased component type.
1084 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
1086 * alloc.ads Alphabetize several declarations. Add constants
1087 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1088 * atree.adb Add with and use clauses for Opt.
1089 (Allocate_Initialize_Node): Mark a node as ignored Ghost
1090 if it is created in an ignored Ghost region.
1091 (Ekind_In): New variant.
1092 (Is_Ignored_Ghost_Node): New routine.
1093 (Set_Is_Ignored_Ghost_Node): New routine.
1094 * atree.adb Aplhabetize several subprograms declarations. Flag
1095 Spare0 is now known as Is_Ignored_Ghost_Node.
1096 (Ekind_In): New variant.
1097 (Is_Ignored_Ghost_Node): New routine.
1098 (Set_Is_Ignored_Ghost_Node): New routine.
1099 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1100 (Contains_Ignored_Ghost_Code): New routine.
1101 (Set_Contains_Ignored_Ghost_Code): New routine.
1102 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1103 It is now possible to set this property on an unanalyzed entity.
1104 (Write_Entity_Flags): Output the status of flag
1105 Contains_Ignored_Ghost_Code.
1106 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1108 (Contains_Ignored_Ghost_Code): New routine
1109 along with pragma Inline.
1110 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1111 * exp_ch3.adb Add with and use clauses for Ghost.
1112 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1113 Set the Ghost_Mode in effect.
1114 (Restore_Globals): New routine.
1115 * exp_ch7.adb (Process_Declarations): Do not process a context
1116 that invoves an ignored Ghost entity.
1117 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1118 construct that has been rewritten as a null statement.
1119 * exp_disp.adb Add with and use clauses for Ghost.
1120 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1121 the Ghost_Mode in effect.
1122 (Restore_Globals): New routine.
1123 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1124 does not require any clean up. Add two missing cases that deal
1125 with block statements.
1126 * freeze.adb Add with and use clauses for Ghost.
1127 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1128 Set the Ghost_Mode in effect.
1129 (Restore_Globals): New routine.
1130 * frontend.adb Add with and use clauses for Ghost. Remove any
1131 ignored Ghost code from all units that qualify.
1132 * ghost.adb New unit.
1133 * ghost.ads New unit.
1134 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1135 the table in package Ghost.
1136 * lib.ads: Alphabetize several subprogram declarations.
1137 * lib-xref.adb (Output_References): Do not generate reference
1138 information for ignored Ghost entities.
1139 * opt.ads Add new type Ghost_Mode_Type and new global variable
1141 * rtsfind.adb (Load_RTU): Provide a clean environment when
1142 loading a runtime unit.
1143 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1144 entry/exit as the node may set a different mode.
1146 Capture/restore the value of Ghost_Mode on entry/exit as the
1147 unit may be withed from a unit with a different Ghost mode.
1148 * sem_ch3.adb Add with and use clauses for Ghost.
1149 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1150 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1151 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1152 the entity as Ghost when there is a Ghost_Mode in effect.
1153 (Array_Type_Declaration): The implicit base type inherits the
1154 "ghostness" from the array type.
1155 (Derive_Subprogram): The
1156 alias inherits the "ghostness" from the parent subprogram.
1157 (Make_Implicit_Base): The implicit base type inherits the
1158 "ghostness" from the parent type.
1159 * sem_ch5.adb Add with and use clauses for Ghost.
1160 (Analyze_Assignment): Set the Ghost_Mode in effect.
1161 * sem_ch6.adb Add with and use clauses for Ghost.
1162 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1163 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1164 Set the Ghost_Mode in effect. Mark the entity as Ghost when
1165 there is a Ghost_Mode in effect.
1166 * sem_ch7.adb Add with and use clauses for Ghost.
1167 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1168 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1169 effect. Mark the entity as Ghost when there is a Ghost_Mode
1171 * sem_ch8.adb Add with and use clauses for Ghost.
1172 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1173 Analyze_Object_Renaming, Analyze_Package_Renaming,
1174 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1175 the entity as Ghost when there is a Ghost_Mode in effect.
1176 (Find_Type): Check the Ghost context of a type.
1177 * sem_ch11.adb Add with and use clauses for Ghost.
1178 (Analyze_Exception_Declaration): Set the Ghost_Mode in
1179 effect. Mark the entity as Ghost when there is a Ghost_Mode
1181 * sem_ch12.adb Add with and use clauses for Ghost.
1182 (Analyze_Generic_Package_Declaration,
1183 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1184 Mark the entity as Ghost when there is a Ghost_Mode in effect.
1185 * sem_prag.adb Add with and use clauses for Ghost.
1186 (Analyze_Pragma): Ghost-related checks are triggered when there
1187 is a Ghost mode in effect.
1188 (Create_Abstract_State): Mark the
1189 entity as Ghost when there is a Ghost_Mode in effect.
1190 * sem_res.adb Add with and use clauses for Ghost.
1191 (Check_Ghost_Context): Removed.
1192 * sem_util.adb (Check_Ghost_Completion): Removed.
1193 (Check_Ghost_Derivation): Removed.
1194 (Incomplete_Or_Partial_View):
1195 Add a guard in case the entity has not been analyzed yet
1196 and does carry a scope.
1197 (Is_Declaration): New routine.
1198 (Is_Ghost_Entity): Removed.
1199 (Is_Ghost_Statement_Or_Pragma):
1201 (Is_Subject_To_Ghost): Removed.
1202 (Set_Is_Ghost_Entity):
1204 (Within_Ghost_Scope): Removed.
1205 * sem_util.adb (Check_Ghost_Completion): Removed.
1206 (Check_Ghost_Derivation): Removed.
1207 (Is_Declaration): New routine.
1208 (Is_Ghost_Entity): Removed.
1209 (Is_Ghost_Statement_Or_Pragma): Removed.
1210 (Is_Subject_To_Ghost): Removed.
1211 (Set_Is_Ghost_Entity): Removed.
1212 (Within_Ghost_Scope): Removed.
1213 * sinfo.ads Add a section on Ghost mode.
1214 * treepr.adb (Print_Header_Flag): New routine.
1215 (Print_Node_Header): Factor out code. Output flag
1216 Is_Ignored_Ghost_Node.
1217 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1219 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1221 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1222 true test and unreachable 'else' arm.
1224 2015-01-06 Vincent Celier <celier@adacore.com>
1226 * prj-conf.adb (Check_Target): Improve error message when
1227 there are mismatched targets between the on in the configuration
1228 project file and the specified one, either in the main project
1229 file or in the --target= switch.
1231 2015-01-06 Pascal Obry <obry@adacore.com>
1233 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1234 Install_Name attribute definitions.
1236 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1238 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1239 generated Import pragma for the internal imported procedure does
1240 not come from an aspect, so that Is_Imported can be properly
1243 2015-01-06 Gary Dismukes <dismukes@adacore.com>
1245 * sem_ch12.adb (Might_Inline_Subp): Record whether
1246 any subprograms in the generic package are marked with
1247 pragma Inline_Always (setting flag Has_Inline_Always).
1248 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1249 alongside existing test of Front_End_Inlining as alternative
1250 conditions for setting Inline_Now. Also add test of
1251 Has_Inline_Always along with Front_End_Inlining test as an
1252 alternative condition for setting Needs_Body to False.
1254 2015-01-06 Tristan Gingold <gingold@adacore.com>
1256 * i-cpoint.adb (Copy_Array): Handle overlap.
1258 2015-01-06 Pascal Obry <obry@adacore.com>
1260 * bindgen.adb: Minor style fix.
1262 2015-01-06 Robert Dewar <dewar@adacore.com>
1264 * sem_util.ads, sem_util.adb: Minor reformatting.
1266 2015-01-06 Vincent Celier <celier@adacore.com>
1268 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
1269 with flags before parsing the projects.
1270 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
1271 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
1272 to True in the flags, when Ignore_Missing_With is True and an
1273 imported project cannot be found.
1274 * prj-proc.adb (Expression): When there are incomplete withs and
1275 a variable or attribute is not found, set the variable/attribute
1277 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
1280 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
1282 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
1283 prj-err.adb: Add new switch --no-command-line.
1285 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1287 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
1289 2015-01-06 Robert Dewar <dewar@adacore.com>
1291 * sem_ch11.adb: Minor reformatting.
1293 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1295 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
1296 Build_Array_Aggr_Code, used to initialized components covered
1297 by a box association. If the component type is scalar and has
1298 a default aspect, use it to initialize such components.
1300 2015-01-06 Pascal Obry <obry@adacore.com>
1302 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
1303 control the setup of the exception handler.
1304 * initialize.c: Remove unused declaration.
1305 * bindgen.adb: Always call __gnat_runtime_initialize and pass
1306 whether the exeception handler must be set or not.
1308 2015-01-06 Thomas Quinot <quinot@adacore.com>
1310 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
1311 order to native from default, make sure to also adjust bit order.
1312 * exp_aggr.adb: Minor reformatting.
1314 2015-01-06 Robert Dewar <dewar@adacore.com>
1316 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
1317 s-valrea.adb, s-valrea.ads: Add some additional guards for
1318 Str'Last = Positive'Last.
1320 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1322 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
1325 2015-01-06 Javier Miranda <miranda@adacore.com>
1327 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
1329 2015-01-06 Thomas Quinot <quinot@adacore.com>
1331 * sem_util.ads: Minor reformatting.
1332 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
1333 (In_RCI_Declaration) Return to old name, as proper checking of
1334 entity being in the visible part depends on entity kind and must
1335 be done by the caller.
1337 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1339 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
1340 for operators in SPARK.
1342 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1344 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
1345 expression in an others association before making copies for
1346 separate resolution and accessibility checks. This ensures that
1347 the type of the expression is available to ASIS in all cases,
1348 in particular if the expression is itself an aggregate.
1350 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1352 * einfo.ads (Has_Independent_Components): Document extended
1354 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
1355 (Set_Has_Independent_Components): Adjust assertion.
1356 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
1357 for pragma Atomic_Components. Set Has_Independent_Components
1358 on the object instead of the type for an object declaration with
1359 pragma Independent_Components.
1361 2015-01-06 Olivier Hainque <hainque@adacore.com>
1363 * set_targ.adb (Read_Target_Dependent_Values): Set
1364 Long_Double_Index when "long double" is read.
1365 (elaboration code): Register_Back_End_Types only when not reading from
1366 config files. Doing otherwise is pointless and error prone.
1368 2015-01-06 Robert Dewar <dewar@adacore.com>
1370 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
1372 2015-01-06 Robert Dewar <dewar@adacore.com>
1374 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
1375 Str'Last = Positive'Last.
1377 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1379 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
1380 where the non-limited type is a generic actual and appears as
1381 a subtype of the non-limited view of the other.
1382 * freeze.adb (Build_Renamed_Body): If the return type of the
1383 declaration that is being completed is a limited view and the
1384 non-limited view is available, use it in the specification of
1387 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1389 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
1390 incomplete view, the type of the classwide type common to both
1391 views is the type being declared.
1393 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1395 * einfo.ads (Is_Independent): Further document extended usage.
1397 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1399 * einfo.ads (Is_Independent): Document extended usage.
1400 * einfo.adb (Is_Independent): Remove obsolete assertion.
1401 (Set_Is_Independent): Likewise.
1402 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
1403 (Process_Atomic_Independent_Shared_Volatile): ...this.
1404 Deal with pragma Independent here.
1405 (Analyze_Pragma): Adjust
1406 to above renaming and also invoke it for pragma Independent.
1407 Adjust comment for Independent_Components.
1409 2015-01-06 Robert Dewar <dewar@adacore.com>
1411 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
1412 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
1414 2015-01-06 Robert Dewar <dewar@adacore.com>
1416 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
1418 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
1419 Str'Last = Positive'Last.
1421 2015-01-06 Robert Dewar <dewar@adacore.com>
1423 * sem_prag.adb (Process_Inline): Remove redundant construct
1424 warning (-gnatw.r) for an ineffective pragma Inline.
1426 2015-01-06 Robert Dewar <dewar@adacore.com>
1428 * s-valint.adb: Fix typo in last checkin.
1429 * s-valuns.adb (Value_Unsigned): More efficient fix for
1431 * sem_attr.adb (Analyze_Attribute): Minor reformatting
1432 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
1434 2015-01-06 Robert Dewar <dewar@adacore.com>
1436 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
1437 Str'Last = Positive'Last
1439 2015-01-06 Thomas Quinot <quinot@adacore.com>
1441 * xoscons.adb: Display exception information and return non-zero
1442 exit status in top level exception handler.
1444 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1446 * sem_ch8.adb: Code clean up.
1448 2015-01-06 Tristan Gingold <gingold@adacore.com>
1450 * targparm.ads: Remove obsolete comment.
1452 2015-01-06 Olivier Hainque <hainque@adacore.com>
1454 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
1455 constructing a ref to variable, update inner_const_flag from the
1456 variable TREE_READONLY attribute.
1457 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
1459 (get_target_float_size): Remove.
1460 (get_target_double_size): Remove.
1461 (get_target_long_double_size): Remove.
1463 2015-01-06 Pascal Obry <obry@adacore.com>
1465 * adaint.c (ProcListEvt): Set to NULL.
1466 * rtinit.c: New file.
1467 (__gnat_rt_init_count): New reference counter set to 0.
1468 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
1469 this code is actually needed for the runtime initialization. This
1470 routine returns immediately if the initialization has already been done.
1471 * final.c: Revert previous change.
1472 * rtfinal.c: New file.
1473 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
1474 section and event. The default version of this routine is empty (except
1475 for the reference counting code). This routine returns immediately if
1476 some others libraries are referencing the runtime.
1477 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
1478 remove circuitry to initialize the signal handler as this is
1479 now done by the runtime initialization routine.
1480 (Gen_Adafinal): Generate call to Runtime_Finalize.
1481 * gnat_ugn.texi: Update documentation about concurrency and
1482 initialization/finalization of the run-time.
1483 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
1484 references to rtfinal.o and rtinit.o
1486 2015-01-06 Robert Dewar <dewar@adacore.com>
1488 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
1490 * sem_attr.adb: Implement Enum_Image attribute.
1491 * snames.ads-tmpl: Add entries for Enum_Image attribute.
1493 2015-01-06 Robert Dewar <dewar@adacore.com>
1495 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
1496 * restrict.ads (No_Use_Of_Entity): New table.
1497 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1498 Ignore No_Use_Of_Entity (will be processed in parser).
1499 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
1501 2015-01-06 Vincent Celier <celier@adacore.com>
1503 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
1504 to check for an extended project, if a project does not have
1505 yet a project declaration.
1507 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
1509 * scos.ads: Update documentation about the SCO table build
1510 process and about table records format.
1511 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
1512 (SCO_Record_Filtered): New procedure.
1513 (Set_SCO_Logical_Operator): New procedure.
1514 (dsco): Update documentation.
1515 * par_sco.adb: Update library-level comments.
1516 (SCO_Generation_State_Type): New type.
1517 (SCO_Generation_State): New variable.
1518 (SCO_Raw_Table): New package instanciation.
1519 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
1521 (Tristate): New type.
1522 (Is_Logical_Operator): Return Tristate and update documentation.
1523 (Has_Decision): Update call to Is_Logical_Operator and complete
1525 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
1526 comment, add an assertion for state checking and change
1527 references to SCO_Table into SCO_Raw_Table.
1528 (dsco): Refactor to dump the raw and the filtered tables.
1529 (Process_Decisions.Output_Decision_Operand): Handle putative
1530 short-circuit operators.
1531 (Process_Decisions.Output_Element): Update references
1532 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1533 (Process_Decisions.Process_Decision_Operand): Update call
1534 to Is_Logical_Operator.
1535 (Process_Decisions.Process_Node): Handle putative short-circuit
1536 operators and change references to
1537 SCO_Table into SCO_Raw_Table.
1538 (SCO_Output): Add an assertion
1539 for state checking and remove code that used to stamp out SCO entries.
1540 (SCO_Pragma_Disabled): Change reference to SCO_Table
1542 (SCO_Record): Rename to SCO_Record_Raw,
1543 add an assertion for state checking and change references
1544 to SCO_Table into SCO_Raw_Table.
1545 (Set_SCO_Condition): Add an assertion for state checking, update
1546 references to Condition_Pragma_Hash_Table and change references to
1547 SCO_Table into SCO_Raw_Table.
1548 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
1549 change references to SCO_Table into SCO_Raw_Table.
1550 (Set_SCO_Logical_Operator): New procedure.
1551 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
1552 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1553 (SCO_Record_Fildered): New procedure.
1554 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
1555 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
1557 * par-load.adb (Load): Update reference to SCO_Record.
1558 * par.adb (Par): Update reference to SCO_Record.
1559 * put_scos.adb (Put_SCOs): Add an assertion to check that no
1560 putative SCO condition reaches this end.
1561 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
1562 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
1563 when corresponding to an "and"/"or" operator affected by the
1564 Short_Circuit_And_Or pragma.
1566 2015-01-06 Robert Dewar <dewar@adacore.com>
1568 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
1569 msg for attempted USE of generic subprogram or subprogram.
1571 2015-01-06 Robert Dewar <dewar@adacore.com>
1573 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
1574 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
1575 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
1577 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1579 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1580 that specify stream subprograms, if the prefix is a class-wide
1581 type then the generated attribute definition clause must apply
1582 to the same class-wide type.
1583 (Default_Iterator): An iterator defined by an aspect of some
1584 container type T must have a first parameter of type T, T'class,
1585 or an access to such (from code reading RM 5.5.1 (2/3)).
1587 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1589 * gnat1drv.adb: Minor: complete previous change.
1591 2015-01-06 Olivier Hainque <hainque@adacore.com>
1593 * set_targ.ads (C_Type_For): New function. Return the name of
1594 a C type supported by the back-end and suitable as a basis to
1595 construct the standard Ada floating point type identified by
1596 the T parameter. This is used as a common ground to feed both
1597 ttypes values and the GNAT tree nodes for the standard floating
1599 * set_targ.adb (Long_Double_Index): The index at which "long
1600 double" gets registered in the FPT_Mode_Table. This is useful to
1601 know whether we have a "long double" available at all and get at
1602 it's characteristics without having to search the FPT_Mode_Table
1603 when we need to decide which C type should be used as the
1604 basis for Long_Long_Float in Ada.
1605 (Register_Float_Type): Fill Long_Double_Index.
1606 (FPT_Mode_Index_For): New function. Return the index in
1607 FPT_Mode_Table that designates the entry corresponding to the
1608 provided C type name.
1609 (FPT_Mode_Index_For): New function. Return the index in
1610 FPT_Mode_Table that designates the entry for a back-end type
1611 suitable as a basis to construct the standard Ada floating point
1612 type identified by the input T parameter.
1613 (elaboration code): Register_Back_End_Types unconditionally,
1614 so C_Type_For can operate regardless of -gnateT. Do it
1615 early so we can query it for the floating point sizes, via
1616 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
1617 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
1618 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
1619 which C type should be used as the basis for the construction
1620 of the Standard Ada floating point types.
1621 * get_targ.ads (Get_Float_Size, Get_Double_Size,
1622 Get_Long_Double_Size): Remove.
1623 * get_targ.adb: Likewise.
1625 2015-01-06 Thomas Quinot <quinot@adacore.com>
1627 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
1628 parameter and rename to...
1629 (In_RCI_Visible_Declarations): Fix handling of private part of nested
1631 (Validate_RCI_Subprogram_Declaration): Reject illegal function
1632 returning anonymous access in RCI unit.
1634 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1636 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
1637 function wrapper may be a homonym of another local declaration.
1638 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
1639 build function and operator wrappers after the actual subprogram
1640 has been resolved, and replace the standard renaming declaration
1641 with the declaration of wrapper.
1642 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
1643 make public for use elsewhere.
1644 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
1645 rewrite, now that actual is fully resolved when wrapper is
1648 2015-01-06 Javier Miranda <miranda@adacore.com>
1650 * exp_disp.adb: Revert previous change.
1652 2015-01-06 Robert Dewar <dewar@adacore.com>
1654 * exp_util.adb: Change name Name_Table_Boolean to
1655 Name_Table_Boolean1.
1656 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
1657 Introduce Name_Table_Boolean2/3.
1658 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
1659 Introduce Name_Table_Boolean2/3.
1660 * par-ch13.adb: Change name Name_Table_Boolean to
1661 Name_Table_Boolean1.
1663 2015-01-06 Bob Duff <duff@adacore.com>
1665 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
1667 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1669 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
1670 others choice that covers multiple components, analyze each
1671 copy with the type of the component even in compile-only mode,
1672 to detect potential accessibility errors.
1674 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1676 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
1677 (Resolve_Actuals): An effectively volatile out
1678 parameter cannot act as an in or in out actual in a call.
1679 (Resolve_Entity_Name): An effectively volatile out parameter
1682 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1684 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
1685 the expansion of an expression function it may be pre-analyzed
1686 if a 'access attribute is applied to the function, in which case
1687 last_entity may have been assigned already.
1689 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1691 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
1692 type and actual has the corresponding full view, there is no
1693 error, but a case of use of incomplete type in a predicate or
1694 invariant expression.
1696 2015-01-06 Vincent Celier <celier@adacore.com>
1698 * makeutl.adb (Insert_No_Roots): Make sure that the same source
1699 in two different project tree is checked in both trees, if they
1700 are sources of two different projects, extended or not.
1702 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1704 * gnat1drv.adb: Minor code clean up.
1705 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
1707 2015-01-06 Bob Duff <duff@adacore.com>
1709 * osint.adb (Read_Source_File): Don't print out
1710 file name unless T = Source.
1712 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1714 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
1715 recognize improper uses of constant_reference types as actuals
1716 for in-out parameters.
1717 (Check_Function_Call): Do not collect identifiers if function
1718 name is missing because of previous error.
1720 2015-01-06 Robert Dewar <dewar@adacore.com>
1722 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
1723 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
1724 Minor change of name Name_Table_Info => Name_Table_Int.
1726 2015-01-06 Robert Dewar <dewar@adacore.com>
1728 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
1729 in previous checkin.
1730 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
1732 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
1734 2015-01-06 Vincent Celier <celier@adacore.com>
1736 * a-strsup.adb (Times (Natural;String;Positive)): Raise
1737 Length_Error, not Index_Error, when the result is too long.
1739 2015-01-06 Thomas Quinot <quinot@adacore.com>
1741 * a-direct.adb (Create_Path): Minor error handling and
1742 performance improvement.
1744 2015-01-06 Robert Dewar <dewar@adacore.com>
1746 * checks.ads, sem_ch12.adb: Minor reformatting.
1747 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
1748 zero check for fixed-point case if Backend_Divide_Checks_On_Target
1751 2015-01-06 Robert Dewar <dewar@adacore.com>
1753 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1754 Do not set restriction No_Elaboration_Code unless the pragma
1755 appears in the main unit).
1757 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1759 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
1760 that with clause has already been analyzed before checking kind
1763 2015-01-06 Robert Dewar <dewar@adacore.com>
1765 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
1766 (as required by RM).
1768 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1770 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
1772 2015-01-06 Robert Dewar <dewar@adacore.com>
1774 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
1775 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
1777 2015-01-06 Javier Miranda <miranda@adacore.com>
1779 * exp_disp.adb (Expand_Interface_Conversion): No displacement
1780 of the pointer to the object needed when the type of the operand
1781 is not an interface type and the interface is one of its parent
1782 types (since they share the primary dispatch table).
1784 2015-01-06 Vincent Celier <celier@adacore.com>
1786 * prj-env.adb: Minor comment update.
1788 2015-01-06 Javier Miranda <miranda@adacore.com>
1790 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
1791 access types whose target type is an interface type to operands
1792 that are access types; required to report an error when the
1793 operand is not an access type.
1795 2015-01-06 Bob Duff <duff@adacore.com>
1797 * a-cfinve.adb (Copy): Set the discriminant to the Length when
1799 * a-cofove.ads (Capacity): Add a postcondition.
1800 * a-cfinve.ads (Capacity): Add a postcondition.
1801 (Reserve_Capacity): Correct the postcondition in the case where
1802 Capacity = 0; that means "Capacity => Length (Container)".
1803 * a-cofove.adb (Elems[c]): Add a comment
1804 explaining the dangers and how to avoid them.
1806 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1808 * sem_ch12.adb: Code clean up.
1810 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1812 * gnatvsn.ads: Bump copyright year.
1814 2015-01-06 Robert Dewar <dewar@adacore.com>
1816 * s-taskin.ads, s-traces.ads: Minor reformatting.
1817 * exp_util.adb: Minor typo fix.
1819 2015-01-06 Vincent Celier <celier@adacore.com>
1821 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
1822 with the runtime name.
1823 * prj-env.adb (Initialize_Default_Project_Path): When both
1824 Target_Name and Runtime_Name are not empty string, add to the
1825 project path the two directories .../lib/gnat and .../share/gpr
1826 related to the runtime.
1827 * prj-env.ads (Initialize_Default_Project_Path): New String
1828 parameter Runtime_Name, defaulted to the empty string.
1830 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1832 * frontend.adb: Guard against the case where a configuration
1833 pragma may be split into multiple pragmas and the original
1834 rewritten as a null statement.
1835 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
1836 pragma using Insert_Before rather than Insert_Action. This
1837 takes care of the configuration pragma case where Insert_Action
1840 2015-01-06 Bob Duff <duff@adacore.com>
1842 * a-coboho.ads (Element_Access): Add "pragma
1843 No_Strict_Aliasing (Element_Access);". This is needed because
1844 we are unchecked-converting from Address to Element_Access.
1845 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
1848 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1850 * sem_res.adb (Resolve_Actuals): Remove the
1851 restriction which prohibits volatile actual parameters with
1852 enabled external propery Async_Writers to act appear in procedure
1853 calls where the corresponding formal is of mode OUT.
1855 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1857 * gnat_ugn.texi: Bump @copying's copyright year.
1859 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
1862 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
1864 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
1866 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
1867 of unchecked asprintf.
1870 Copyright (C) 2015 Free Software Foundation, Inc.
1872 Copying and distribution of this file, with or without modification,
1873 are permitted in any medium without royalty provided the copyright
1874 notice and this notice are preserved.