1 2015-02-20 Ed Schonberg <schonberg@adacore.com>
3 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
4 legally applies to an abstract subprogram declaration.
5 * freeze.adb: Minor comment addition.
7 2015-02-20 Robert Dewar <dewar@adacore.com>
9 * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
10 * erroutc.adb (Set_Msg_Str): Replace _xxx.
11 (Pre/Post/Type_Invariant) by xxx'Class.
12 * erroutc.ads (Set_Msg_Str): Replace _xxx.
13 (Pre/Post/Type_Invariant) by xxx'Class.
14 * sem_prag.adb (Fix_Error): Remove special casing of
16 (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
17 Name_uPre and Name_uPost in aspect case (done in Errout now).
19 2015-02-20 Robert Dewar <dewar@adacore.com>
21 * g-alveop.adb: Minor style fixes.
23 2015-02-20 Robert Dewar <dewar@adacore.com>
25 * freeze.adb (Warn_Overlay): Guard against blow up with address
28 2015-02-20 Bob Duff <duff@adacore.com>
30 * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
31 for the compiler to guess whether the call is internal or external --
32 it is always external.
33 (Expand_Access_To_Protected_Op): For P'Access, where P
34 is a protected subprogram, always create a pointer to the
37 2015-02-20 Robert Dewar <dewar@adacore.com>
39 * a-dispat.adb, a-stcoed.ads: Minor reformatting.
41 2015-02-20 Robert Dewar <dewar@adacore.com>
43 * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
44 predicate for non-static subtype.
45 (Build_Predicate_Functions): Do not assume subtype associated with a
46 static predicate must be static.
48 2015-02-20 Robert Dewar <dewar@adacore.com>
50 * errout.adb (Set_Msg_Node): Better handling of internal names
51 (Set_Msg_Node): Kill message when we cannot eliminate internal name.
52 * errout.ads: Document additional case of message deletion.
53 * namet.adb (Is_Internal_Name): Refined to consider wide
54 strings in brackets notation and character literals not to be
56 * sem_ch8.adb (Find_Selected_Component): Give additional error
57 when selector name is a subprogram whose first parameter has
58 the same type as the prefix, but that type is untagged.
60 2015-02-20 Robert Dewar <dewar@adacore.com>
62 * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
64 2015-02-20 Tristan Gingold <gingold@adacore.com>
66 * opt.ads (GNAT_Mode_Config): New variable.
67 * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
68 to set Assertions_Enabled.
69 * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
72 2015-02-20 Robert Dewar <dewar@adacore.com>
74 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
75 comment regarding the handling of unterminated fixed-point
77 * s-valuns.ads (Scan_Raw_Unsigned): Add comments
78 corresponding to those previously added for
79 System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
81 2015-02-20 Olivier Hainque <hainque@adacore.com>
83 * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
85 2015-02-20 Robert Dewar <dewar@adacore.com>
87 * sem_prag.adb: Minor comment clarification.
89 2015-02-20 Olivier Hainque <hainque@adacore.com>
91 * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
92 * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
93 * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
94 (vec_ctf): Now renamings as well.
96 2015-02-20 Robert Dewar <dewar@adacore.com>
98 * switch-c.adb, bindgen.adb: Minor reformatting.
100 2015-02-20 Ed Schonberg <schonberg@adacore.com>
102 * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
103 Invariant'class is allowed on an abstract type.
105 2015-02-20 Ed Schonberg <schonberg@adacore.com>
107 * sem_ch3.adb (Access_Definition): If the access definition is
108 for a protected component and defines an access to protected
109 subprogram, do not create an itype reference for it because a
110 full type declaration will be built in order to generate the
111 proper equivalent type.
112 (Analyze_Subtype_Declaration): Add information of incomplete
113 subtypes, for Ada 2012 extended uses of incomplete types.
115 2015-02-20 Gary Dismukes <dismukes@adacore.com>
117 * sem_res.adb: Minor reformatting.
119 2015-02-20 Vincent Celier <celier@adacore.com>
121 * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
122 path name for several switches --RTS, use the normalized path
125 2015-02-20 Vincent Celier <celier@adacore.com>
127 * bindgen.adb: Minor reformatting and code reorganization.
129 2015-02-20 Jose Ruiz <ruiz@adacore.com>
131 * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
132 * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
135 2015-02-20 Arnaud Charlet <charlet@adacore.com>
137 * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
138 obsolete references to RTX, nucleus, VMS.
140 2015-02-20 Ed Schonberg <schonberg@adacore.com>
142 * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
143 aspect, use name that mentions Class explicitly, rather than
144 compiler-internal name.
146 2015-02-20 Robert Dewar <dewar@adacore.com>
148 * debug.adb: Add documentation for -gnatd.2 (allow statements
150 * par-ch3.adb (P_Identifier_Declarations): Handle
151 statement appearing where declaration expected more cleanly.
152 (Statement_When_Declaration_Expected): Implement debug flag
155 2015-02-20 Jose Ruiz <ruiz@adacore.com>
157 * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
158 * a-dispat.ads (Yield): Include procedure added in Ada 2012.
159 * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
160 * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
162 * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
163 This is the correct name for the dispatching policy (FIFO was
166 2015-02-20 Javier Miranda <miranda@adacore.com>
168 * sem_res.adb (Resolve_Type_Conversion): If the type of the
169 operand is the limited-view of a class-wide type then recover
170 the class-wide type of the non-limited view.
172 2015-02-20 Arnaud Charlet <charlet@adacore.com>
174 * gcc-interface/Makefile.in: Remove references to nucleus.
175 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
176 extern_flag to true for Inline_Always subprograms with
177 Intrinsic convention.
179 2015-02-20 Yannick Moy <moy@adacore.com>
181 * sem_prag.ads: Minor typo in comment.
183 2015-02-20 Pascal Obry <obry@adacore.com>
185 * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
187 2015-02-20 Vincent Celier <celier@adacore.com>
189 * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
192 2015-02-20 Robert Dewar <dewar@adacore.com>
194 * sem_eval.ads: Minor reformatting.
196 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
198 * freeze.adb (Size_Known): Do not set the packed size for
199 independent type or component.
200 (Freeze_Array_Type): Check for Independent[_Components] with packing
201 or explicit component size clause.
202 * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
203 of independence pragmas only for non-GCC back-ends.
204 * sem_ch13.adb (Initialize): Likewise for the initialization.
205 * sem_prag.adb (Record_Independence_Check): New procedure to record an
206 independence check in the table.
207 (Analyze_Pragma): Use it throughout instead of doing it manually.
208 * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
209 independent type or component.
211 2015-02-20 Thomas Quinot <quinot@adacore.com>
213 * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
214 struct direct and readdir. This is required for NFS filesystems
215 mounted from servers that use 64-bit cookies.
217 2015-02-20 Ed Schonberg <schonberg@adacore.com>
219 * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
220 Build_Subprogram_Renaming, to create renaming of subprogram
221 instance in the the declaration of the wrapper package rather
222 than in its body, so that it is available for analysis of aspects
223 propagated from generic to instantiation.
224 (Check_Mismatch): An actual for a formal package that is an
225 incomplete type matches a formal type that is incomplete.
226 (Instantiate_Package_Body): Move code that builds subprogram
227 renaming to Analyze_Subprogram_Instantiation.
228 (Instantiate_Type): The generated subtype is a limited view if
229 the actual is a limited view.
230 (Load_Parent_Of_Generic): Retrieve instance declaration from
231 its new position within wrapper package.
233 2015-02-20 Arnaud Charlet <charlet@adacore.com>
235 * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
237 2015-02-20 Robert Dewar <dewar@adacore.com>
239 * s-osinte-vxworks.ads (To_Timespec): Add comment about the
240 issue of negative arguments.
242 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
244 * gnat1drv.adb: Minor consistency fix.
246 2015-02-20 Pascal Obry <obry@adacore.com>
248 * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
251 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
253 * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
255 * exp_ch6.adb (Expand_Call): Use back-end inlining
256 instead of expansion for simple subprogram renamings.
258 2015-02-20 Robert Dewar <dewar@adacore.com>
260 * exp_util.adb: Minor reformatting.
262 2015-02-20 Vincent Celier <celier@adacore.com>
264 * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
265 is specified several times with different values that indicates
266 the same runtime directory.
268 2015-02-20 Ed Schonberg <schonberg@adacore.com>
270 * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
271 handle properly illegal uses of attributes on prefixes on an
272 incomplete type, both when the type of the prefix is locally
273 incomplete, and when it is a limited view of a type whose
274 non-limited view is not available.
275 (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
278 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
280 * exp_ch6.adb: Fix minor typo in comment.
282 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
284 * sinfo.ads: Add comment.
286 2015-02-20 Olivier Hainque <hainque@adacore.com>
288 * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
289 flags controlling the actual FE inlining out of pragma Inline
290 and pragma Inline_Always.
291 * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
292 on -fno-inline, which disables all inlining in compilers with
293 an Ada back-end and without back-end inlining support.
294 * back_end.adb (Scan_Back_End_Switches): Set the Inline related
295 flag to True on -fno-inline and leave Inline_Always alone for
297 * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
298 names of the Opt flags it sets.
299 * gnat1drv.adb (Adjust_Global_Switches): Remove test on
300 Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
301 * sem_prag.adb (Make_Inline): Remove early return conditioned
302 on Opt.Suppress_All_Inlining.
303 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
304 disable the calls to Build_Body_To_Inline otherwise triggered
305 by pragma Inline or Inline_Always. This will prevent actual
306 front-end inlining of the subprogram on calls.
308 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
310 * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
311 Abort_Undefer_Direct function.
312 * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
313 * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
314 * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
315 * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
317 * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
318 Remove call to Register_Backend_Call and move code resetting
319 Needs_Debug_Info on inlined subprograms to...
320 * inline.ads (Add_Inlined_Body): Add N parameter.
321 (Register_Backend_Call): Delete.
322 * inline.adb (Add_Inlined_Body): ...here and simplify.
323 Register the call with Backend_Calls directly.
324 (Register_Backend_Call): Delete.
325 * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
327 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
329 * s-stalib.ads: Fix typo.
331 2015-02-20 Ed Schonberg <schonberg@adacore.com>
333 * exp_ch3.adb (Default_Initialize_Object): If the object has a
334 delayed freeze, the actions associated with default initialization
335 must be part of the freeze actions, rather that being inserted
336 directly after the object declaration.
338 2015-02-20 Robert Dewar <dewar@adacore.com>
340 * lib-load.adb: Minor comment update.
342 2015-02-20 Vincent Celier <celier@adacore.com>
344 * prj-proc.adb (Process_Case_Construction): When there are
345 incomplete withed projects and the case variable is unknown,
346 skip the case construction.
348 2015-02-20 Ed Schonberg <schonberg@adacore.com>
350 * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
351 when an actual is a view conversion, either because the call is
352 to an inherited operation, or because the actual is an explicit
353 type conversion to an ancestor type. Fixes ACATS 4.0D: C732001
355 2015-02-20 Robert Dewar <dewar@adacore.com>
357 * einfo.ads: Minor comment updates Fix missing pragma Inline
358 for Set_Partial_View_Has_Unknown_Discr.
359 * einfo.adb (Write_Entity_Flags): Add missing entry for
360 Partial_View_Has_Unknown_Discr.
361 * sem_ch3.adb: Minor reformatting.
363 2015-02-20 Vincent Celier <celier@adacore.com>
365 * opt.ads: Minor cleanup: remove mention of gprmake.
366 * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
367 * s-tataat.adb: Do not call System.Tasking.Self but directly
368 System.Task_Primitives.Operations.Self.
370 2015-02-20 Arnaud Charlet <charlet@adacore.com>
372 * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
373 sphinx in the doc directory.
374 * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
376 2015-02-20 Robert Dewar <dewar@adacore.com>
378 * sem_res.adb: Minor reformatting.
379 * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
381 * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
382 aspects from circuitry setting delay required to false if the
383 argument is an integer literal.
385 2015-02-20 Ed Schonberg <schonberg@adacore.com>
387 * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr): New flag
388 on type entities, to enforce AI12-0133: default initialization
389 of types whose partial view has unknown discriminants does not
390 get an invariant check, because clients of the unit can never
391 declare objects of such types.
392 * sem_ch3.adb (Find_Type_Name); Set new flag
393 Partial_View_Has_Unknown_Discr when needed.
394 * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
395 generation of invariant call on default-initialized object.
397 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
399 * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
400 if the parameter either is passed by reference or if the alignment
403 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
405 * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
406 detect primitive operations of tagged and untagged types.
408 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
410 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
411 sets in presence of derivation for subprogram types.
413 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
415 * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
416 present in the same context as the declaration.
418 2015-02-07 Jakub Jelinek <jakub@redhat.com>
421 * gcc-interface/trans.c (gigi): Recreate optimization_default_node
422 and optimization_current_node after tweaking global_options.
424 2015-02-05 Robert Dewar <dewar@adacore.com>
426 * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
427 prj-nmsc.adb: Minor reformatting.
429 2015-02-05 Ed Schonberg <schonberg@adacore.com>
431 * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
432 of a protected type may not be available, so to check conformance
433 with an interface type, examine the interface list in the type
434 declaration directly.
435 (Write_Overloads): Improve information for indirect calls,
438 2015-02-05 Ed Schonberg <schonberg@adacore.com>
440 * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
441 expansion activity in ASIS mode.
443 2015-02-05 Javier Miranda <miranda@adacore.com>
445 * errout.adb (Error_Msg_PT): Add missing error.
446 * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
447 RM rule. Code cleanup.
448 * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
449 anonymous access types. Found working on the tests. Code cleanup.
451 2015-02-05 Vincent Celier <celier@adacore.com>
453 * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
454 when there are incomplete withs.
455 * prj-nmsc.adb (Process_Naming): Do not try to get the value
456 of an element when it is nil.
457 (Check_Naming): Do not check a nil suffix for illegality
458 * prj-proc.adb (Expression): Do not process an empty term.
459 * prj-strt.adb (Attribute_Reference): If attribute cannot be
460 found, parse a possible index to avoid cascading errors.
462 2015-02-05 Ed Schonberg <schonberg@adacore.com>
464 * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
465 for an access_to_subprogram declaration is not a derived type.
467 2015-02-05 Robert Dewar <dewar@adacore.com>
469 * errout.adb (Error_Msg_Internal): For non-serious error set
470 Fatal_Error to Ignored.
471 * lib-load.adb (Load_Unit): Minor comment updates.
472 * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
473 setting from with'ed unit to with'ing unit.
474 * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
477 2015-02-05 Yannick Moy <moy@adacore.com>
479 * sem_prag.adb, par-prag.adb: Minor code clean up.
481 2015-02-05 Yannick Moy <moy@adacore.com>
483 * par-prag.adb (Pragma_Warnings): Update for extended form
484 of pragma Warnings. The "one" argument case may now have 2 or
486 * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
487 extended form of pragma Warnings. Pragma with tool name is either
488 rewritten as null or as an equivalent form without tool name,
490 * snames.ads-tmpl (Name_Gnatprove): New name.
492 2015-02-05 Robert Dewar <dewar@adacore.com>
494 * sem_ch13.adb (Add_Invariants): Don't assume invariant is
496 * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
497 condition is standard Boolean, it can be non-standard derived
500 2015-02-05 Robert Dewar <dewar@adacore.com>
502 * checks.adb (Enable_Range_Check): Disconnect attempted
503 optimization for the case of range check for subscript of
506 2015-02-05 Robert Dewar <dewar@adacore.com>
508 * par-ch13.adb (With_Present): New function
509 (Aspect_Specifications_Present): Handle WHEN in place of WITH
510 (Get_Aspect_Specifications): Comment update.
511 * par.adb: Comment updates.
513 2015-02-05 Robert Dewar <dewar@adacore.com>
515 * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
516 * frontend.adb (Frontend): New setting of Fatal_Error.
517 * lib-load.adb (Create_Dummy_Package_Unit): New setting of
519 (Load_Main_Source): New setting of Fatal_Error
520 (Load_Unit): New setting of Fatal_Error.
521 * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
523 (Ensure_System_Dependency): New setting of Fatal_Error.
524 * lib.adb (Fatal_Error): New setting of Fatal_Error
525 (Set_Fatal_Error): New setting of Fatal_Error.
526 * lib.ads: New definition of Fatal_Error and associated routines.
527 * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
528 * par-load.adb (Load): New setting of Fatal_Error.
529 * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
530 * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
532 (Optional_Subunit): New setting of Fatal_Error.
533 (Analyze_Proper_Body): New setting of Fatal_Error.
534 (Load_Needed_Body): New setting of Fatal_Error.
536 2015-02-05 Ed Schonberg <schonberg@adacore.com>
538 * sem_res.adb (Resolve_Call): If the function being called has
539 out parameters do not check for language version if the function
540 comes from a predefined unit, as those are always compiled in
543 2015-02-05 Ed Schonberg <schonberg@adacore.com>
545 * sem_ch3.adb (Process_Full_View): Verify that the full view
546 of a type extension must carry an explicit limited keyword if
547 the partial view does (RM 7.3 (10.1)).
549 2015-02-05 Robert Dewar <dewar@adacore.com>
551 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
552 sem_warn.ads: Minor reformatting.
553 * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
555 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
556 error for abstract type.
558 2015-02-05 Yannick Moy <moy@adacore.com>
560 * opt.ads (Warn_On_Suspicious_Contract): Update comment
562 * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
563 suspicious uses of 'Update.
564 * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
565 function issues warning on suspicious uses of 'Update.
566 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
567 package spec and body as SPARK_Mode Off.
569 2015-02-05 Robert Dewar <dewar@adacore.com>
571 * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
572 (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
573 (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
574 * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
577 2015-02-05 Hristian Kirtchev <kirtchev@adacore.com>
579 * sem_prag.adb (Check_Pragma_Conformance): Add
580 local variable Arg. Ensure that all errors are associated with
581 the pragma if it appears without an argument. Add comments on
584 2015-02-05 Robert Dewar <dewar@adacore.com>
586 * lib-xref.adb: Minor reformatting.
588 2015-02-05 Tristan Gingold <gingold@adacore.com>
591 * env.c: Fix thinko: handle Darwin case before default one.
593 2015-01-30 Robert Dewar <dewar@adacore.com>
595 * a-assert.adb: Minor reformatting.
596 * sem_ch13.adb: Minor comment clarification.
597 * types.ads: Minor comment update.
598 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
599 when we have a predicate that is nothing but an inherited dynamic
602 2015-01-30 Jerome Guitton <guitton@adacore.com>
604 * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
605 include cert link spec.
607 2015-01-30 Robert Dewar <dewar@adacore.com>
609 * einfo.ads: Minor comment fix.
610 * freeze.adb (Freeze_Profile): Add test for suspicious import
612 * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
613 use in Pure unit is now moved to Freeze (to properly catch
614 Pure_Function exemption).
616 2015-01-30 Bob Duff <duff@adacore.com>
618 * sem_res.ads: Minor comment fix.
619 * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
620 check both operands of an operator.
622 2015-01-30 Yannick Moy <moy@adacore.com>
624 * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
625 policy for Pre to Ignore.
626 (Assert): Add precondition.
628 2015-01-30 Robert Dewar <dewar@adacore.com>
630 * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
632 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
633 documentation for some special cases of invalid attempts at
636 2015-01-30 Gary Dismukes <dismukes@adacore.com>
638 * errout.ads: Minor reformatting.
640 2015-01-30 Yannick Moy <moy@adacore.com>
642 * inline.adb (Process_Formals): Use the sloc of
643 the inlined node instead of the sloc of the actual parameter,
644 when replacing formal parameters by the actual one.
646 2015-01-30 Arnaud Charlet <charlet@adacore.com>
648 * g-expect.adb (Get_Command_Output): Use infinite timeout when
651 2015-01-30 Ed Schonberg <schonberg@adacore.com>
653 * sem_ch12.adb (Analyze_Associations): If an in-parameter is
654 defaulted in an instantiation, add an entry in the list of actuals
655 to indicate the default value of the formal (as is already done
656 for defaulted subprograms).
658 2015-01-30 Javier Miranda <miranda@adacore.com>
660 * errout.adb (Error_Msg_PT): Minor error phrasing update.
662 2015-01-30 Robert Dewar <dewar@adacore.com>
664 * sem_warn.adb (Warn_On_Known_Condition): Improve error message
667 2015-01-30 Pierre-Marie de Rodat <derodat@adacore.com>
669 * exp_dbug.adb (Get_Encoded_Name): When
670 -fgnat-encodings=minimal, do not generate names for biased types.
672 2015-01-30 Tristan Gingold <gingold@adacore.com>
675 * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
677 2015-01-30 Gary Dismukes <dismukes@adacore.com>
679 * freeze.adb: Minor reformatting.
681 2015-01-30 Javier Miranda <miranda@adacore.com>
683 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
684 improve its documentation.
685 * errout.adb (Error_Msg_PT): Improve the error message.
686 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
687 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
688 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
690 2015-01-30 Robert Dewar <dewar@adacore.com>
692 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
693 message for False case.
695 2015-01-30 Doug Rupp <rupp@adacore.com>
697 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
698 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
701 2015-01-30 Gary Dismukes <dismukes@adacore.com>
703 * sem_attr.adb (Declared_Within_Generic_Unit):
704 New function to test whether an entity is declared within the
705 declarative region of a given generic unit.
706 (Resolve_Attribute): For checking legality of subprogram'Access within
707 a generic unit, call new Boolean function Declared_Within_Generic_Unit
708 instead of simply comparing the results of Enclosing_Generic_Unit on
709 the prefix and access type. Correct minor comment typos.
711 2015-01-30 Robert Dewar <dewar@adacore.com>
713 * freeze.adb, exp_util.ads: Update comment.
714 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
715 * sem_util.adb: Minor: fix typo.
717 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
719 * sem_attr.adb (Analyze_Attribute): Ensure that
720 the check concerning Refined_Post takes precedence over the
723 2015-01-30 Gary Dismukes <dismukes@adacore.com>
725 * sem_prag.adb: Minor typo fixes and reformatting.
727 2015-01-30 Yannick Moy <moy@adacore.com>
729 * sem_attr.adb: Code clean up.
731 2015-01-30 Robert Dewar <dewar@adacore.com>
733 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
734 * ali.ads (Unit_Record): Add new field Serious_Errors.
735 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
737 * lib-writ.ads: New attribute SE (serious erors) in unit line.
739 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
741 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
742 Lit_Indexes, Scale_Value, Storage_Size_Variable,
743 String_Literal_Low_Bound along associated routines and
745 (Pending_Access_Types): New routine.
746 (Set_Pending_Access_Types): New routine.
747 (Write_Field15_Name): Add an entry for Pending_Access_Types.
748 * einfo.ads Add new attribute Pending_Access_Types along
749 with usage in nodes. Update the usage of attributes
750 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
751 Storage_Size_Variable, String_Literal_Low_Bound.
752 (Pending_Access_Types): New routine along with pragma Inline.
753 (Set_Pending_Access_Types): New routine along with pragma Inline.
754 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
755 Ins_Node. Determine the insertion node for anonynous access type
756 that acts as a component type of an array. Update the call to
757 Build_Finalization_Master.
758 (Expand_Freeze_Record_Type): Update
759 the calls to Build_Finalization_Master.
760 (Freeze_Type): Remove
761 local variable RACW_Seen. Factor out the code that deals with
762 remote access-to-class-wide types. Create a finalization master
763 when the designated type contains a private component. Fully
764 initialize all pending access types.
765 (Process_RACW_Types): New routine.
766 (Process_Pending_Access_Types): New routine.
767 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
768 needs to set primitive Finalize_Address.
769 (Expand_N_Allocator): Allocation no longer sets primitive
771 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
772 Update the call to Build_Finalization_Master.
773 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
774 needs to set primitive Finalize_Address.
775 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
776 (Build_Finalization_Master): New parameter profile. Associate
777 primitive Finalize_Address with the finalization master if the
778 designated type has been frozen, otherwise treat the access
779 type as pending. Simplify the insertion of the master and
780 related initialization code.
781 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
783 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
784 Simplify the implementation.
785 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
786 along with comment on usage.
787 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
788 the comment on usage.
789 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
790 Finalize_Address to retrieve the primitive.
791 (Finalize_Address): New routine.
792 (Find_Finalize_Address): Removed.
793 * exp_util.ads (Finalize_Address): New routine.
794 * freeze.adb (Freeze_All): Remove the generation of finalization
796 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
797 pending access types from the partial to the full view.
799 2015-01-30 Robert Dewar <dewar@adacore.com>
801 * sem_disp.adb: Minor reformatting.
802 * sem_disp.ads: Documentation update.
804 2015-01-30 Ed Schonberg <schonberg@adacore.com>
806 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
807 or a function call, return True if type is class-wide.
808 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
809 Apply RM 4.5.7 (17/3): all or none of the dependent expression
810 of a conditional expression must be dynamically tagged.
812 2015-01-30 Ed Schonberg <schonberg@adacore.com>
814 * sem_ch6.adb (Analyze_Function_Return): In an extended return
815 statement, apply accessibility check to result object when there
816 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
818 2015-01-30 Robert Dewar <dewar@adacore.com>
820 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
821 Boolean for case where ELSE is omitted.
822 * sem_res.adb: Minor reformatting.
824 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
826 Fix build under cygwin/64.
827 * adaint.h: Add check for __CYGWIN__.
828 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
830 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
833 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
834 * mingw32.h: Don't include <tchar.h> under cygwin.
835 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
837 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
839 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
840 (DEF_FUNCTION_TYPE_VAR_12): New macros.
842 2015-01-09 Michael Collison <michael.collison@linaro.org>
844 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
845 vec.h, double-int.h, input.h, alias.h, symtab.h,
846 fold-const.h, wide-int.h, and inchash.h due to
847 flattening of tree.h.
848 * gcc-interface/decl.c: Ditto.
849 * gcc-interface/misc.c: Ditto.
850 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
851 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
852 fold-const.h, wide-int.h, and inchash.h due to
853 flattening of tree.h.
854 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
855 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
856 fold-const.h, wide-int.h, inchash.h due to
857 flattening of tree.h.
858 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
859 vec.h, double-int.h, input.h, alias.h, symtab.h,
860 fold-const.h, wide-int.h, and inchash.h due to
861 flattening of tree.h.
862 * gcc-interface/utils2.c: Ditto.
864 2015-01-07 Robert Dewar <dewar@adacore.com>
866 * sem_warn.adb (Check_One_Unit): Don't give unused entities
867 warning for a package which is used as a generic parameter.
869 2015-01-07 Bob Duff <duff@adacore.com>
871 * usage.adb (Usage): Correct documentation of
874 2015-01-07 Robert Dewar <dewar@adacore.com>
876 * s-fileio.adb: Minor reformatting.
878 2015-01-07 Ed Schonberg <schonberg@adacore.com>
880 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
881 access to subprogram, replace its formals with new entities when
882 building the object declaration, both if actual is present and
883 when it is defaulted.
885 2015-01-07 Ed Schonberg <schonberg@adacore.com>
887 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
888 conversion and type of expression has invariant, apply invariant
891 2015-01-07 Ed Schonberg <schonberg@adacore.com>
893 * sem_ch3.adb (Create_Constrained_Components): A call to
894 Gather_Components may detect an error if an inherited discriminant
895 that controls a variant is non-static.
896 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
897 Gather_Components may report an error if an inherited discriminant
898 in a variant in non-static.
899 * sem_util.adb (Gather_Components): If a non-static discriminant
900 is inherited do not report error here, but let caller handle it.
901 (Find_Actual): Small optimization.
903 2015-01-07 Bob Duff <duff@adacore.com>
905 * usage.adb (Usage): Document -gnatw.f switch.
907 2015-01-07 Ed Schonberg <schonberg@adacore.com>
909 * sem_ch12.adb: Code clean up and minor reformatting.
911 2015-01-07 Robert Dewar <dewar@adacore.com>
913 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
914 Raise_Accessibility_Error call.
915 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
916 on handling of invalid digits in based constants.
917 * s-fatgen.ads: Minor reformatting.
918 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
919 Avoid noting bogus modification for Valid test.
920 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
921 * einfo.ads: Minor reformatting.
922 * sem_warn.adb: Minor comment clarification.
923 * sem_ch12.adb: Minor reformatting.
925 2015-01-07 Ed Schonberg <schonberg@adacore.com>
927 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
928 over static predicates when the loop parameter specification
929 carries a Reverse indicator.
931 2015-01-07 Ed Schonberg <schonberg@adacore.com>
933 * sem_ch12.adb (Instantiate_Object): If formal has a default,
934 actual is missing and formal has an anonymous access type, copy
935 access definition in full so that tree for instance is properly
936 formatted for ASIS use.
938 2015-01-07 Bob Duff <duff@adacore.com>
940 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
941 for P'Access, where P is a subprogram in the same package as
942 the P'Access, and the P'Access is evaluated at elaboration
943 time, and occurs before the body of P. For example, "X : T :=
944 P'Access;" would allow a subsequent call to X.all to be an
945 access-before-elaboration error; hence the warning. This warning
946 is enabled by the -gnatw.f switch.
947 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
948 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
949 * gnat_ugn.texi: Document the new warning.
951 2015-01-07 Johannes Kanig <kanig@adacore.com>
953 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
956 2015-01-07 Robert Dewar <dewar@adacore.com>
958 * s-taprop-linux.adb, clean.adb: Minor reformatting.
960 2015-01-07 Arnaud Charlet <charlet@adacore.com>
962 * s-tassta.adb: Relax some overzealous assertions.
964 2015-01-07 Ed Schonberg <schonberg@adacore.com>
966 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
967 view of a type is legal when context is a thunk generated for
968 operation inherited from an interface.
969 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
970 a thunk and return type is an incomplete type do not continue
971 expansion; thunk will be fully elaborated when generating code.
973 2015-01-07 Doug Rupp <rupp@adacore.com>
975 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
976 (QueryPerformanceFrequency): New imported procedure.
977 * s-taprop-mingw.adb (RT_Resolution): Call above and return
978 resolution vice a hardcoded value.
979 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
980 resolution vice a hardcoded value.
981 * s-linux-android.ads (clockid_t): New subtype.
982 * s-osinte-aix.ads (clock_getres): New imported subprogram.
983 * s-osinte-android.ads (clock_getres): Likewise.
984 * s-osinte-freebsd.ads (clock_getres): Likewise.
985 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
986 * s-osinte-darwin.ads (clock_getres): New subprogram.
987 * s-osinte-darwin.adb (clock_getres): New subprogram.
988 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
989 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
990 calculate resolution vice hard coded value.
992 2015-01-07 Ed Schonberg <schonberg@adacore.com>
994 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
995 limited view, use non-limited view when available to create
996 equivalent record type.
998 2015-01-07 Vincent Celier <celier@adacore.com>
1000 * gnatcmd.adb: Remove command Sync and any data and processing
1001 related to this command. Remove project processing for gnatstack.
1002 * prj-attr.adb: Remove package Synchonize and its attributes.
1004 2015-01-07 Vincent Celier <celier@adacore.com>
1006 * clean.adb: Minor error message change.
1008 2015-01-07 Tristan Gingold <gingold@adacore.com>
1011 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
1013 2015-01-07 Javier Miranda <miranda@adacore.com>
1015 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
1016 protect the frontend against never ending recursion caused by
1017 circularities in the sources.
1019 2015-01-07 Robert Dewar <dewar@adacore.com>
1021 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
1022 exp_ch3.adb: Minor reformatting.
1024 2015-01-07 Doug Rupp <rupp@adacore.com>
1026 * s-linux.ads (clockid_t): New subtype.
1027 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
1028 (clockid_t): New subtype.
1029 (clock_getres): Import system call.
1030 * s-taprop-linux.adb (System.OS_Constants): With and rename.
1031 (RT_Resolution): Remove
1032 hardcoded value and call clock_getres.
1033 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
1034 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
1036 2015-01-07 Robert Dewar <dewar@adacore.com>
1038 * sem_warn.adb (Check_One_Unit): Guard against context item
1039 with no Entity field.
1041 2015-01-07 Vincent Celier <celier@adacore.com>
1043 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
1044 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
1046 2015-01-07 Vincent Celier <celier@adacore.com>
1048 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
1049 errors/warnings in the first parsing of the project files,
1050 to display the warnings when there is no errors.
1052 2015-01-07 Tristan Gingold <gingold@adacore.com>
1054 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
1056 2015-01-07 Doug Rupp <rupp@adacore.com>
1058 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
1059 value from Int_Lock as parameter to Int_Unlock.
1060 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
1061 * s-vxwext.ads (Int_Unlock): Likewise.
1062 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
1063 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
1064 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
1065 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
1067 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
1069 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
1072 2015-01-07 Tristan Gingold <gingold@adacore.com>
1074 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
1077 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
1079 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
1080 automatically set No_Strict_Aliasing on access types.
1081 * fe.h (No_Strict_Aliasing_CP): Declare.
1082 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
1083 No_Strict_Aliasing_CP is set.
1085 2015-01-07 Johannes Kanig <kanig@adacore.com>
1087 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
1088 not build function wrapper in gnatprove mode when the package
1089 is externally axiomatized.
1091 2015-01-07 Jose Ruiz <ruiz@adacore.com>
1093 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
1094 intermediate computations when the parameters have different signs.
1096 2015-01-07 Javier Miranda <miranda@adacore.com>
1098 * exp_ch3.adb (Build_Init_Procedure): For derived types,
1099 improve the code which takes care of identifying and moving to
1100 the beginning of the init-proc the call to the init-proc of the
1103 2015-01-07 Olivier Hainque <hainque@adacore.com>
1105 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
1106 Elaborate the expression as part of the same stmt group as the actions.
1108 2015-01-07 Robert Dewar <dewar@adacore.com>
1110 * sem_ch3.adb: Minor error message change.
1112 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1114 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
1115 Following AI05-028, the pragam applies legally to any composite type.
1117 2015-01-07 Arnaud Charlet <charlet@adacore.com>
1119 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
1120 (sigwait, sigwaitinfo): Removed, not needed after all on any
1121 VxWorks configurations.
1123 2015-01-07 Robert Dewar <dewar@adacore.com>
1125 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
1127 2015-01-07 Javier Miranda <miranda@adacore.com>
1129 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
1130 generation of accessibility check.
1132 2015-01-07 Ed Schonberg <schonberg@adacore.com>
1134 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
1135 illegal completion from a class- wide type, set etype of the
1136 derived type properly to prevent cascaded errors.
1138 2015-01-07 Robert Dewar <dewar@adacore.com>
1140 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
1143 2015-01-07 Robert Dewar <dewar@adacore.com>
1145 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
1147 (OK_No_Use_Of_Entity_Name): New function.
1148 (Set_Restriction_No_Use_Of_Entity): New procedure.
1149 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
1151 (OK_No_Use_Of_Entity_Name): New function.
1152 (Set_Restriction_No_Use_Of_Entity): New procedure.
1153 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
1155 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1156 Add processing for new restriction No_Use_Of_Entity.
1158 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
1160 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
1161 component type as to Has_Atomic_Components type. Remove useless
1162 test on Is_Aliased component type.
1164 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
1166 * alloc.ads Alphabetize several declarations. Add constants
1167 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
1168 * atree.adb Add with and use clauses for Opt.
1169 (Allocate_Initialize_Node): Mark a node as ignored Ghost
1170 if it is created in an ignored Ghost region.
1171 (Ekind_In): New variant.
1172 (Is_Ignored_Ghost_Node): New routine.
1173 (Set_Is_Ignored_Ghost_Node): New routine.
1174 * atree.adb Aplhabetize several subprograms declarations. Flag
1175 Spare0 is now known as Is_Ignored_Ghost_Node.
1176 (Ekind_In): New variant.
1177 (Is_Ignored_Ghost_Node): New routine.
1178 (Set_Is_Ignored_Ghost_Node): New routine.
1179 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
1180 (Contains_Ignored_Ghost_Code): New routine.
1181 (Set_Contains_Ignored_Ghost_Code): New routine.
1182 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
1183 It is now possible to set this property on an unanalyzed entity.
1184 (Write_Entity_Flags): Output the status of flag
1185 Contains_Ignored_Ghost_Code.
1186 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
1188 (Contains_Ignored_Ghost_Code): New routine
1189 along with pragma Inline.
1190 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
1191 * exp_ch3.adb Add with and use clauses for Ghost.
1192 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
1193 Set the Ghost_Mode in effect.
1194 (Restore_Globals): New routine.
1195 * exp_ch7.adb (Process_Declarations): Do not process a context
1196 that invoves an ignored Ghost entity.
1197 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
1198 construct that has been rewritten as a null statement.
1199 * exp_disp.adb Add with and use clauses for Ghost.
1200 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
1201 the Ghost_Mode in effect.
1202 (Restore_Globals): New routine.
1203 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
1204 does not require any clean up. Add two missing cases that deal
1205 with block statements.
1206 * freeze.adb Add with and use clauses for Ghost.
1207 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
1208 Set the Ghost_Mode in effect.
1209 (Restore_Globals): New routine.
1210 * frontend.adb Add with and use clauses for Ghost. Remove any
1211 ignored Ghost code from all units that qualify.
1212 * ghost.adb New unit.
1213 * ghost.ads New unit.
1214 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
1215 the table in package Ghost.
1216 * lib.ads: Alphabetize several subprogram declarations.
1217 * lib-xref.adb (Output_References): Do not generate reference
1218 information for ignored Ghost entities.
1219 * opt.ads Add new type Ghost_Mode_Type and new global variable
1221 * rtsfind.adb (Load_RTU): Provide a clean environment when
1222 loading a runtime unit.
1223 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
1224 entry/exit as the node may set a different mode.
1226 Capture/restore the value of Ghost_Mode on entry/exit as the
1227 unit may be withed from a unit with a different Ghost mode.
1228 * sem_ch3.adb Add with and use clauses for Ghost.
1229 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
1230 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
1231 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
1232 the entity as Ghost when there is a Ghost_Mode in effect.
1233 (Array_Type_Declaration): The implicit base type inherits the
1234 "ghostness" from the array type.
1235 (Derive_Subprogram): The
1236 alias inherits the "ghostness" from the parent subprogram.
1237 (Make_Implicit_Base): The implicit base type inherits the
1238 "ghostness" from the parent type.
1239 * sem_ch5.adb Add with and use clauses for Ghost.
1240 (Analyze_Assignment): Set the Ghost_Mode in effect.
1241 * sem_ch6.adb Add with and use clauses for Ghost.
1242 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
1243 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
1244 Set the Ghost_Mode in effect. Mark the entity as Ghost when
1245 there is a Ghost_Mode in effect.
1246 * sem_ch7.adb Add with and use clauses for Ghost.
1247 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
1248 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
1249 effect. Mark the entity as Ghost when there is a Ghost_Mode
1251 * sem_ch8.adb Add with and use clauses for Ghost.
1252 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
1253 Analyze_Object_Renaming, Analyze_Package_Renaming,
1254 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
1255 the entity as Ghost when there is a Ghost_Mode in effect.
1256 (Find_Type): Check the Ghost context of a type.
1257 * sem_ch11.adb Add with and use clauses for Ghost.
1258 (Analyze_Exception_Declaration): Set the Ghost_Mode in
1259 effect. Mark the entity as Ghost when there is a Ghost_Mode
1261 * sem_ch12.adb Add with and use clauses for Ghost.
1262 (Analyze_Generic_Package_Declaration,
1263 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
1264 Mark the entity as Ghost when there is a Ghost_Mode in effect.
1265 * sem_prag.adb Add with and use clauses for Ghost.
1266 (Analyze_Pragma): Ghost-related checks are triggered when there
1267 is a Ghost mode in effect.
1268 (Create_Abstract_State): Mark the
1269 entity as Ghost when there is a Ghost_Mode in effect.
1270 * sem_res.adb Add with and use clauses for Ghost.
1271 (Check_Ghost_Context): Removed.
1272 * sem_util.adb (Check_Ghost_Completion): Removed.
1273 (Check_Ghost_Derivation): Removed.
1274 (Incomplete_Or_Partial_View):
1275 Add a guard in case the entity has not been analyzed yet
1276 and does carry a scope.
1277 (Is_Declaration): New routine.
1278 (Is_Ghost_Entity): Removed.
1279 (Is_Ghost_Statement_Or_Pragma):
1281 (Is_Subject_To_Ghost): Removed.
1282 (Set_Is_Ghost_Entity):
1284 (Within_Ghost_Scope): Removed.
1285 * sem_util.adb (Check_Ghost_Completion): Removed.
1286 (Check_Ghost_Derivation): Removed.
1287 (Is_Declaration): New routine.
1288 (Is_Ghost_Entity): Removed.
1289 (Is_Ghost_Statement_Or_Pragma): Removed.
1290 (Is_Subject_To_Ghost): Removed.
1291 (Set_Is_Ghost_Entity): Removed.
1292 (Within_Ghost_Scope): Removed.
1293 * sinfo.ads Add a section on Ghost mode.
1294 * treepr.adb (Print_Header_Flag): New routine.
1295 (Print_Node_Header): Factor out code. Output flag
1296 Is_Ignored_Ghost_Node.
1297 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
1299 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1301 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
1302 true test and unreachable 'else' arm.
1304 2015-01-06 Vincent Celier <celier@adacore.com>
1306 * prj-conf.adb (Check_Target): Improve error message when
1307 there are mismatched targets between the on in the configuration
1308 project file and the specified one, either in the main project
1309 file or in the --target= switch.
1311 2015-01-06 Pascal Obry <obry@adacore.com>
1313 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
1314 Install_Name attribute definitions.
1316 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1318 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
1319 generated Import pragma for the internal imported procedure does
1320 not come from an aspect, so that Is_Imported can be properly
1323 2015-01-06 Gary Dismukes <dismukes@adacore.com>
1325 * sem_ch12.adb (Might_Inline_Subp): Record whether
1326 any subprograms in the generic package are marked with
1327 pragma Inline_Always (setting flag Has_Inline_Always).
1328 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
1329 alongside existing test of Front_End_Inlining as alternative
1330 conditions for setting Inline_Now. Also add test of
1331 Has_Inline_Always along with Front_End_Inlining test as an
1332 alternative condition for setting Needs_Body to False.
1334 2015-01-06 Tristan Gingold <gingold@adacore.com>
1336 * i-cpoint.adb (Copy_Array): Handle overlap.
1338 2015-01-06 Pascal Obry <obry@adacore.com>
1340 * bindgen.adb: Minor style fix.
1342 2015-01-06 Robert Dewar <dewar@adacore.com>
1344 * sem_util.ads, sem_util.adb: Minor reformatting.
1346 2015-01-06 Vincent Celier <celier@adacore.com>
1348 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
1349 with flags before parsing the projects.
1350 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
1351 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
1352 to True in the flags, when Ignore_Missing_With is True and an
1353 imported project cannot be found.
1354 * prj-proc.adb (Expression): When there are incomplete withs and
1355 a variable or attribute is not found, set the variable/attribute
1357 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
1360 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
1362 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
1363 prj-err.adb: Add new switch --no-command-line.
1365 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1367 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
1369 2015-01-06 Robert Dewar <dewar@adacore.com>
1371 * sem_ch11.adb: Minor reformatting.
1373 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1375 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
1376 Build_Array_Aggr_Code, used to initialized components covered
1377 by a box association. If the component type is scalar and has
1378 a default aspect, use it to initialize such components.
1380 2015-01-06 Pascal Obry <obry@adacore.com>
1382 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
1383 control the setup of the exception handler.
1384 * initialize.c: Remove unused declaration.
1385 * bindgen.adb: Always call __gnat_runtime_initialize and pass
1386 whether the exeception handler must be set or not.
1388 2015-01-06 Thomas Quinot <quinot@adacore.com>
1390 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
1391 order to native from default, make sure to also adjust bit order.
1392 * exp_aggr.adb: Minor reformatting.
1394 2015-01-06 Robert Dewar <dewar@adacore.com>
1396 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
1397 s-valrea.adb, s-valrea.ads: Add some additional guards for
1398 Str'Last = Positive'Last.
1400 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1402 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
1405 2015-01-06 Javier Miranda <miranda@adacore.com>
1407 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
1409 2015-01-06 Thomas Quinot <quinot@adacore.com>
1411 * sem_util.ads: Minor reformatting.
1412 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
1413 (In_RCI_Declaration) Return to old name, as proper checking of
1414 entity being in the visible part depends on entity kind and must
1415 be done by the caller.
1417 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1419 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
1420 for operators in SPARK.
1422 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1424 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
1425 expression in an others association before making copies for
1426 separate resolution and accessibility checks. This ensures that
1427 the type of the expression is available to ASIS in all cases,
1428 in particular if the expression is itself an aggregate.
1430 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1432 * einfo.ads (Has_Independent_Components): Document extended
1434 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
1435 (Set_Has_Independent_Components): Adjust assertion.
1436 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
1437 for pragma Atomic_Components. Set Has_Independent_Components
1438 on the object instead of the type for an object declaration with
1439 pragma Independent_Components.
1441 2015-01-06 Olivier Hainque <hainque@adacore.com>
1443 * set_targ.adb (Read_Target_Dependent_Values): Set
1444 Long_Double_Index when "long double" is read.
1445 (elaboration code): Register_Back_End_Types only when not reading from
1446 config files. Doing otherwise is pointless and error prone.
1448 2015-01-06 Robert Dewar <dewar@adacore.com>
1450 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
1452 2015-01-06 Robert Dewar <dewar@adacore.com>
1454 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
1455 Str'Last = Positive'Last.
1457 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1459 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
1460 where the non-limited type is a generic actual and appears as
1461 a subtype of the non-limited view of the other.
1462 * freeze.adb (Build_Renamed_Body): If the return type of the
1463 declaration that is being completed is a limited view and the
1464 non-limited view is available, use it in the specification of
1467 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1469 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
1470 incomplete view, the type of the classwide type common to both
1471 views is the type being declared.
1473 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1475 * einfo.ads (Is_Independent): Further document extended usage.
1477 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
1479 * einfo.ads (Is_Independent): Document extended usage.
1480 * einfo.adb (Is_Independent): Remove obsolete assertion.
1481 (Set_Is_Independent): Likewise.
1482 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
1483 (Process_Atomic_Independent_Shared_Volatile): ...this.
1484 Deal with pragma Independent here.
1485 (Analyze_Pragma): Adjust
1486 to above renaming and also invoke it for pragma Independent.
1487 Adjust comment for Independent_Components.
1489 2015-01-06 Robert Dewar <dewar@adacore.com>
1491 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
1492 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
1494 2015-01-06 Robert Dewar <dewar@adacore.com>
1496 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
1498 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
1499 Str'Last = Positive'Last.
1501 2015-01-06 Robert Dewar <dewar@adacore.com>
1503 * sem_prag.adb (Process_Inline): Remove redundant construct
1504 warning (-gnatw.r) for an ineffective pragma Inline.
1506 2015-01-06 Robert Dewar <dewar@adacore.com>
1508 * s-valint.adb: Fix typo in last checkin.
1509 * s-valuns.adb (Value_Unsigned): More efficient fix for
1511 * sem_attr.adb (Analyze_Attribute): Minor reformatting
1512 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
1514 2015-01-06 Robert Dewar <dewar@adacore.com>
1516 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
1517 Str'Last = Positive'Last
1519 2015-01-06 Thomas Quinot <quinot@adacore.com>
1521 * xoscons.adb: Display exception information and return non-zero
1522 exit status in top level exception handler.
1524 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1526 * sem_ch8.adb: Code clean up.
1528 2015-01-06 Tristan Gingold <gingold@adacore.com>
1530 * targparm.ads: Remove obsolete comment.
1532 2015-01-06 Olivier Hainque <hainque@adacore.com>
1534 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
1535 constructing a ref to variable, update inner_const_flag from the
1536 variable TREE_READONLY attribute.
1537 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
1539 (get_target_float_size): Remove.
1540 (get_target_double_size): Remove.
1541 (get_target_long_double_size): Remove.
1543 2015-01-06 Pascal Obry <obry@adacore.com>
1545 * adaint.c (ProcListEvt): Set to NULL.
1546 * rtinit.c: New file.
1547 (__gnat_rt_init_count): New reference counter set to 0.
1548 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
1549 this code is actually needed for the runtime initialization. This
1550 routine returns immediately if the initialization has already been done.
1551 * final.c: Revert previous change.
1552 * rtfinal.c: New file.
1553 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
1554 section and event. The default version of this routine is empty (except
1555 for the reference counting code). This routine returns immediately if
1556 some others libraries are referencing the runtime.
1557 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
1558 remove circuitry to initialize the signal handler as this is
1559 now done by the runtime initialization routine.
1560 (Gen_Adafinal): Generate call to Runtime_Finalize.
1561 * gnat_ugn.texi: Update documentation about concurrency and
1562 initialization/finalization of the run-time.
1563 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
1564 references to rtfinal.o and rtinit.o
1566 2015-01-06 Robert Dewar <dewar@adacore.com>
1568 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
1570 * sem_attr.adb: Implement Enum_Image attribute.
1571 * snames.ads-tmpl: Add entries for Enum_Image attribute.
1573 2015-01-06 Robert Dewar <dewar@adacore.com>
1575 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
1576 * restrict.ads (No_Use_Of_Entity): New table.
1577 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
1578 Ignore No_Use_Of_Entity (will be processed in parser).
1579 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
1581 2015-01-06 Vincent Celier <celier@adacore.com>
1583 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
1584 to check for an extended project, if a project does not have
1585 yet a project declaration.
1587 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
1589 * scos.ads: Update documentation about the SCO table build
1590 process and about table records format.
1591 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
1592 (SCO_Record_Filtered): New procedure.
1593 (Set_SCO_Logical_Operator): New procedure.
1594 (dsco): Update documentation.
1595 * par_sco.adb: Update library-level comments.
1596 (SCO_Generation_State_Type): New type.
1597 (SCO_Generation_State): New variable.
1598 (SCO_Raw_Table): New package instanciation.
1599 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
1601 (Tristate): New type.
1602 (Is_Logical_Operator): Return Tristate and update documentation.
1603 (Has_Decision): Update call to Is_Logical_Operator and complete
1605 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
1606 comment, add an assertion for state checking and change
1607 references to SCO_Table into SCO_Raw_Table.
1608 (dsco): Refactor to dump the raw and the filtered tables.
1609 (Process_Decisions.Output_Decision_Operand): Handle putative
1610 short-circuit operators.
1611 (Process_Decisions.Output_Element): Update references
1612 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1613 (Process_Decisions.Process_Decision_Operand): Update call
1614 to Is_Logical_Operator.
1615 (Process_Decisions.Process_Node): Handle putative short-circuit
1616 operators and change references to
1617 SCO_Table into SCO_Raw_Table.
1618 (SCO_Output): Add an assertion
1619 for state checking and remove code that used to stamp out SCO entries.
1620 (SCO_Pragma_Disabled): Change reference to SCO_Table
1622 (SCO_Record): Rename to SCO_Record_Raw,
1623 add an assertion for state checking and change references
1624 to SCO_Table into SCO_Raw_Table.
1625 (Set_SCO_Condition): Add an assertion for state checking, update
1626 references to Condition_Pragma_Hash_Table and change references to
1627 SCO_Table into SCO_Raw_Table.
1628 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
1629 change references to SCO_Table into SCO_Raw_Table.
1630 (Set_SCO_Logical_Operator): New procedure.
1631 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
1632 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
1633 (SCO_Record_Fildered): New procedure.
1634 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
1635 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
1637 * par-load.adb (Load): Update reference to SCO_Record.
1638 * par.adb (Par): Update reference to SCO_Record.
1639 * put_scos.adb (Put_SCOs): Add an assertion to check that no
1640 putative SCO condition reaches this end.
1641 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
1642 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
1643 when corresponding to an "and"/"or" operator affected by the
1644 Short_Circuit_And_Or pragma.
1646 2015-01-06 Robert Dewar <dewar@adacore.com>
1648 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
1649 msg for attempted USE of generic subprogram or subprogram.
1651 2015-01-06 Robert Dewar <dewar@adacore.com>
1653 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
1654 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
1655 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
1657 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1659 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
1660 that specify stream subprograms, if the prefix is a class-wide
1661 type then the generated attribute definition clause must apply
1662 to the same class-wide type.
1663 (Default_Iterator): An iterator defined by an aspect of some
1664 container type T must have a first parameter of type T, T'class,
1665 or an access to such (from code reading RM 5.5.1 (2/3)).
1667 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1669 * gnat1drv.adb: Minor: complete previous change.
1671 2015-01-06 Olivier Hainque <hainque@adacore.com>
1673 * set_targ.ads (C_Type_For): New function. Return the name of
1674 a C type supported by the back-end and suitable as a basis to
1675 construct the standard Ada floating point type identified by
1676 the T parameter. This is used as a common ground to feed both
1677 ttypes values and the GNAT tree nodes for the standard floating
1679 * set_targ.adb (Long_Double_Index): The index at which "long
1680 double" gets registered in the FPT_Mode_Table. This is useful to
1681 know whether we have a "long double" available at all and get at
1682 it's characteristics without having to search the FPT_Mode_Table
1683 when we need to decide which C type should be used as the
1684 basis for Long_Long_Float in Ada.
1685 (Register_Float_Type): Fill Long_Double_Index.
1686 (FPT_Mode_Index_For): New function. Return the index in
1687 FPT_Mode_Table that designates the entry corresponding to the
1688 provided C type name.
1689 (FPT_Mode_Index_For): New function. Return the index in
1690 FPT_Mode_Table that designates the entry for a back-end type
1691 suitable as a basis to construct the standard Ada floating point
1692 type identified by the input T parameter.
1693 (elaboration code): Register_Back_End_Types unconditionally,
1694 so C_Type_For can operate regardless of -gnateT. Do it
1695 early so we can query it for the floating point sizes, via
1696 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
1697 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
1698 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
1699 which C type should be used as the basis for the construction
1700 of the Standard Ada floating point types.
1701 * get_targ.ads (Get_Float_Size, Get_Double_Size,
1702 Get_Long_Double_Size): Remove.
1703 * get_targ.adb: Likewise.
1705 2015-01-06 Thomas Quinot <quinot@adacore.com>
1707 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
1708 parameter and rename to...
1709 (In_RCI_Visible_Declarations): Fix handling of private part of nested
1711 (Validate_RCI_Subprogram_Declaration): Reject illegal function
1712 returning anonymous access in RCI unit.
1714 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1716 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
1717 function wrapper may be a homonym of another local declaration.
1718 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
1719 build function and operator wrappers after the actual subprogram
1720 has been resolved, and replace the standard renaming declaration
1721 with the declaration of wrapper.
1722 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
1723 make public for use elsewhere.
1724 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
1725 rewrite, now that actual is fully resolved when wrapper is
1728 2015-01-06 Javier Miranda <miranda@adacore.com>
1730 * exp_disp.adb: Revert previous change.
1732 2015-01-06 Robert Dewar <dewar@adacore.com>
1734 * exp_util.adb: Change name Name_Table_Boolean to
1735 Name_Table_Boolean1.
1736 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
1737 Introduce Name_Table_Boolean2/3.
1738 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
1739 Introduce Name_Table_Boolean2/3.
1740 * par-ch13.adb: Change name Name_Table_Boolean to
1741 Name_Table_Boolean1.
1743 2015-01-06 Bob Duff <duff@adacore.com>
1745 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
1747 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1749 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
1750 others choice that covers multiple components, analyze each
1751 copy with the type of the component even in compile-only mode,
1752 to detect potential accessibility errors.
1754 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1756 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
1757 (Resolve_Actuals): An effectively volatile out
1758 parameter cannot act as an in or in out actual in a call.
1759 (Resolve_Entity_Name): An effectively volatile out parameter
1762 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1764 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
1765 the expansion of an expression function it may be pre-analyzed
1766 if a 'access attribute is applied to the function, in which case
1767 last_entity may have been assigned already.
1769 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1771 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
1772 type and actual has the corresponding full view, there is no
1773 error, but a case of use of incomplete type in a predicate or
1774 invariant expression.
1776 2015-01-06 Vincent Celier <celier@adacore.com>
1778 * makeutl.adb (Insert_No_Roots): Make sure that the same source
1779 in two different project tree is checked in both trees, if they
1780 are sources of two different projects, extended or not.
1782 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1784 * gnat1drv.adb: Minor code clean up.
1785 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
1787 2015-01-06 Bob Duff <duff@adacore.com>
1789 * osint.adb (Read_Source_File): Don't print out
1790 file name unless T = Source.
1792 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1794 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
1795 recognize improper uses of constant_reference types as actuals
1796 for in-out parameters.
1797 (Check_Function_Call): Do not collect identifiers if function
1798 name is missing because of previous error.
1800 2015-01-06 Robert Dewar <dewar@adacore.com>
1802 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
1803 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
1804 Minor change of name Name_Table_Info => Name_Table_Int.
1806 2015-01-06 Robert Dewar <dewar@adacore.com>
1808 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
1809 in previous checkin.
1810 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
1812 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
1814 2015-01-06 Vincent Celier <celier@adacore.com>
1816 * a-strsup.adb (Times (Natural;String;Positive)): Raise
1817 Length_Error, not Index_Error, when the result is too long.
1819 2015-01-06 Thomas Quinot <quinot@adacore.com>
1821 * a-direct.adb (Create_Path): Minor error handling and
1822 performance improvement.
1824 2015-01-06 Robert Dewar <dewar@adacore.com>
1826 * checks.ads, sem_ch12.adb: Minor reformatting.
1827 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
1828 zero check for fixed-point case if Backend_Divide_Checks_On_Target
1831 2015-01-06 Robert Dewar <dewar@adacore.com>
1833 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1834 Do not set restriction No_Elaboration_Code unless the pragma
1835 appears in the main unit).
1837 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1839 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
1840 that with clause has already been analyzed before checking kind
1843 2015-01-06 Robert Dewar <dewar@adacore.com>
1845 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
1846 (as required by RM).
1848 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1850 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
1852 2015-01-06 Robert Dewar <dewar@adacore.com>
1854 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
1855 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
1857 2015-01-06 Javier Miranda <miranda@adacore.com>
1859 * exp_disp.adb (Expand_Interface_Conversion): No displacement
1860 of the pointer to the object needed when the type of the operand
1861 is not an interface type and the interface is one of its parent
1862 types (since they share the primary dispatch table).
1864 2015-01-06 Vincent Celier <celier@adacore.com>
1866 * prj-env.adb: Minor comment update.
1868 2015-01-06 Javier Miranda <miranda@adacore.com>
1870 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
1871 access types whose target type is an interface type to operands
1872 that are access types; required to report an error when the
1873 operand is not an access type.
1875 2015-01-06 Bob Duff <duff@adacore.com>
1877 * a-cfinve.adb (Copy): Set the discriminant to the Length when
1879 * a-cofove.ads (Capacity): Add a postcondition.
1880 * a-cfinve.ads (Capacity): Add a postcondition.
1881 (Reserve_Capacity): Correct the postcondition in the case where
1882 Capacity = 0; that means "Capacity => Length (Container)".
1883 * a-cofove.adb (Elems[c]): Add a comment
1884 explaining the dangers and how to avoid them.
1886 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1888 * sem_ch12.adb: Code clean up.
1890 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1892 * gnatvsn.ads: Bump copyright year.
1894 2015-01-06 Robert Dewar <dewar@adacore.com>
1896 * s-taskin.ads, s-traces.ads: Minor reformatting.
1897 * exp_util.adb: Minor typo fix.
1899 2015-01-06 Vincent Celier <celier@adacore.com>
1901 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
1902 with the runtime name.
1903 * prj-env.adb (Initialize_Default_Project_Path): When both
1904 Target_Name and Runtime_Name are not empty string, add to the
1905 project path the two directories .../lib/gnat and .../share/gpr
1906 related to the runtime.
1907 * prj-env.ads (Initialize_Default_Project_Path): New String
1908 parameter Runtime_Name, defaulted to the empty string.
1910 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1912 * frontend.adb: Guard against the case where a configuration
1913 pragma may be split into multiple pragmas and the original
1914 rewritten as a null statement.
1915 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
1916 pragma using Insert_Before rather than Insert_Action. This
1917 takes care of the configuration pragma case where Insert_Action
1920 2015-01-06 Bob Duff <duff@adacore.com>
1922 * a-coboho.ads (Element_Access): Add "pragma
1923 No_Strict_Aliasing (Element_Access);". This is needed because
1924 we are unchecked-converting from Address to Element_Access.
1925 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
1928 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1930 * sem_res.adb (Resolve_Actuals): Remove the
1931 restriction which prohibits volatile actual parameters with
1932 enabled external propery Async_Writers to act appear in procedure
1933 calls where the corresponding formal is of mode OUT.
1935 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1937 * gnat_ugn.texi: Bump @copying's copyright year.
1939 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
1942 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
1944 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
1946 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
1947 of unchecked asprintf.
1950 Copyright (C) 2015 Free Software Foundation, Inc.
1952 Copying and distribution of this file, with or without modification,
1953 are permitted in any medium without royalty provided the copyright
1954 notice and this notice are preserved.