1 2014-10-20 Gary Dismukes <dismukes@adacore.com>
3 * gnat_ugn.texi: Minor reformatting.
4 * sem_ch3.adb: Minor reformatting.
6 2014-10-20 Vincent Celier <celier@adacore.com>
8 * prj-attr.adb: New project level attribute Runtime.
9 * prj-conf.adb (Get_Project_Runtimes): New procedure to get
10 the attributes Runtime declared in the main project, to use
11 in auto-configuration.
12 (Get_Or_Create_Configuration_File): Call Get_Project_Runtimes.
13 * prj-proc.adb (Runtime_Defaults): New table to store
14 the default values of attributes Runtime (<language>).
15 (Set_Default_Runtime_For): New procedure to store the default
16 value of a Runtime (<language>) in table Runtime_Defaults.
17 (Expression): Use the value stored in table Runtime_Defaults as
18 the default for Runtime (<language>).
19 * prj-proc.ads (Set_Default_Runtime_For): New procedure.
20 * prj.ads (Attribute_Default_Value): New enumerated value
23 2014-10-20 Ed Schonberg <schonberg@adacore.com>
25 * sem_ch3.adb (Analyze_Object_Declaration): If the type is
26 an unconstrained unchecked_union type, rewrite declaration
27 as a renaming to prevent attempt to retrieve non- existent
28 discriminants from expression.
30 2014-10-20 Ed Schonberg <schonberg@adacore.com>
32 * gnat_ugn.texi: Minor reformatting.
34 2014-10-20 Tristan Gingold <gingold@adacore.com>
36 * init.c (__gnat_is_stack_guard): Don't use mach_vm_region_recurse on
38 * raise-gcc.c: Add ATTRIBUTE_UNUSED to remove warnings for
41 2014-10-20 Hristian Kirtchev <kirtchev@adacore.com>
43 * sem_attr.adb (Analyze_Attribute): Replace
44 variables CS and PS with Proc_Id and Subp_Id to better illustrate
45 their purpose. Account for the case where _Postconditions
46 has not been generated yet and the context is aspect/pragma
47 Refined_Post. In that scenario the expected prefix of attribute
48 'Result is the current scope.
50 2014-10-20 Robert Dewar <dewar@adacore.com>
52 * par-ch4.adb (P_Expression): Handle extraneous comma/semicolon
53 in middle of expression with logical operators.
55 2014-10-20 Robert Dewar <dewar@adacore.com>
57 * par-ch13.adb (Possible_Misspelled_Aspect): New function.
59 2014-10-20 Steve Baird <baird@adacore.com>
61 * pprint.adb: Improve Expression_Image function.
63 2014-10-20 Robert Dewar <dewar@adacore.com>
65 * gnat_rm.texi: Document No_Tagged_Streams pragma and aspect.
66 * snames.ads-tmpl: Add entry for pragma No_Tagged_Streams.
67 * aspects.ads, aspects.adb: Add aspect No_Tagged_Streams.
68 * einfo.adb (No_Tagged_Streams_Pragma): New field.
69 * einfo.ads: Minor reformatting (reorder entries).
70 (No_Tagged_Streams_Pragma): New field.
71 * exp_ch3.adb: Minor comment update.
72 * opt.ads (No_Tagged_Streams): New variable.
73 * par-prag.adb: Add dummy entry for pragma No_Tagged_Streams.
74 * sem.ads (Save_No_Tagged_Streams): New field in scope record.
75 * sem_attr.adb (Check_Stream_Attribute): Check stream ops
76 prohibited by No_Tagged_Streams.
77 * sem_ch3.adb (Analyze_Full_Type_Declaration): Set
78 No_Tagged_Streams_Pragma.
79 (Analyze_Subtype_Declaration): ditto.
80 (Build_Derived_Record_Type): ditto.
81 (Record_Type_Declaration): ditto.
82 * sem_ch8.adb (Pop_Scope): Restore No_Tagged_Streams.
83 (Push_Scope): Save No_Tagged_Streams.
84 * sem_prag.adb (Analyze_Pragma, case No_Tagged_Streams): Implement new
87 2014-10-20 Robert Dewar <dewar@adacore.com>
89 * sem_ch3.adb, prj-proc.adb, sem_ch4.adb, prj-env.adb, lib.ads,
90 sem_ch13.adb: Minor reformatting.
92 2014-10-20 Javier Miranda <miranda@adacore.com>
94 * exp_ch3.adb (Expand_N_Object_Declaration): Expand the
95 declaration of a class-wide limited object containing an
96 initializing expression into a renaming declaration. Required to
97 avoid passing such declaration to the backend and also to avoid
98 generating an extra copy.
100 2014-10-20 Eric Botcazou <ebotcazou@adacore.com>
102 * inline.adb (List_Inlining_Info): Minor tweaks.
103 (Add_Inlined_Body): Inline the enclosing package
104 if it is not internally generated, even if it doesn't come
107 2014-10-20 Ed Schonberg <schonberg@adacore.com>
109 * sem_ch4.adb (Process_Function_Call): If the first actual
110 denotes a discrete type, the mode must be interpreted as a slice
111 of an array returned by a parameterless call.
113 2014-10-20 Vasiliy Fofanov <fofanov@adacore.com>
115 * prj-env.ads, prj-env.adb (Get_Runtime_Path): No longer inhibit
116 searching for runtime referenced by a simple name on a project path.
118 2014-10-20 Olivier Hainque <hainque@adacore.com>
120 * vxworks-x86-link.spec: New file.
121 * system-vxworks-x86.ads: Add pragma Linker_Options to link with
122 vxworks-x86-link.spec.
124 2014-10-20 Vincent Celier <celier@adacore.com>
126 * opt.ads (Origin_Of_Target): New type.
127 (Target_Origin): New variable.
128 * prj-conf.adb (Parse_Project_And_Apply_Config): Record
129 Target_Value and Target_Origin. If target was not specified
130 on the command line with --target=, check if attribute Target
131 is declared in the main project. If it is and it is not the
132 native target, parse again the projects so that 'Target get
133 the new value. Fail if the target has changed again. Invoke
134 Process_Project_And_Apply_Config with Do_Phase_1 set to False
135 is Process_Project_Tree_Phase_1 has already been invoked.
136 * prj-conf.ads (Process_Project_And_Apply_Config): New Boolean
137 parameter Do_Phase_1, defaulted to True.
138 * prj-proc.adb (Expression): Check the special values and
139 defaults for attribute Target.
141 2014-10-20 Ed Schonberg <schonberg@adacore.com>
143 * sem_ch3.adb (Handle_Late_Controlled_Primitive): Do not analyze
144 the subprogram spec of the body in full, because it will be
145 reanalyzed when the declaration itself is analyzed; otherwise. a
146 formal may end up duplicated in the list of formals leading to
147 spurious conformance errors with an existing declaration.
149 2014-10-20 Ed Schonberg <schonberg@adacore.com>
151 * sem_ch13.adb: Improve error recovery on illegal aspect.
153 2014-10-20 Arnaud Charlet <charlet@adacore.com>
155 * set_targ.adb (Write_Target_Dependent_Values, Write_Line):
156 Fix calling C APIs with no trailing NUL char by calling better
159 2014-10-20 Tristan Gingold <gingold@adacore.com>
161 * gnat_ugn.texi: Document that gdb users must be in group
162 _developer on mac os.
164 2014-10-20 Arnaud Charlet <charlet@adacore.com>
166 * a-tgdico.ads: Fix typo.
168 2014-10-20 Ed Schonberg <schonberg@adacore.com>
170 * exp_aggr.adb (Convert_To_Assignments): Do not create a
171 transient scope for a component whose type requires it, if the
172 context is an initialization procedure, because the target of
173 the assignment must be visible outside of the block.
175 2014-10-20 Tristan Gingold <gingold@adacore.com>
177 * tracebak.c: Define PC_ADJUST for arm-darwin.
178 * env.c: Remove darwin specific code.
179 * raise-gcc.c (__gnat_Unwind_ForcedUnwind): Error on arm-darwin.
181 2014-10-20 Ed Schonberg <schonberg@adacore.com>
183 * sem_ch3.adb (Analyze_Full_Type_Declaration): If previous view
184 is incomplete rather than private, and full type declaration
185 has aspects, analyze aspects on the full view rather than
186 the incomplete view, to prevent freezing anomalies with the
189 2014-10-17 Robert Dewar <dewar@adacore.com>
191 * exp_ch9.adb (Expand_N_Task_Body): Add defense against
193 * freeze.adb (Freeze_Entity): Add defense against checking null
195 * restrict.adb (Tasking_Allowed): Add test for No_Run_Time mode.
196 * sem_ch13.adb (Freeze_Entity_Checks): Add defense against
198 * sem_ch9.adb (Analyze_Task_Type_Declaration): Give error if
201 2014-10-17 Robert Dewar <dewar@adacore.com>
203 * prj-makr.adb: Minor reformatting.
205 2014-10-17 Robert Dewar <dewar@adacore.com>
207 * gnatcmd.adb, make.adb, prj-part.adb, gnatlink.adb, prj-nmsc.adb,
208 prj-conf.adb, prj-env.adb: Use Is_Directory_Separator where possible.
210 2014-10-17 Ed Schonberg <schonberg@adacore.com>
212 * exp_prag.adb (Undo_Initialization): If Initialize_Scalars
213 is enabled, code will be generated for some composite types
214 to initialize an object after its declaration. If there is
215 a subsequent Import pragma for the object, that code must be
216 removed as specified byw the semantics of the pragma, and to
217 prevent out-of-order elaboration issues in the back-end.
219 2014-10-17 Hristian Kirtchev <kirtchev@adacore.com>
221 * exp_ch4.adb (Expand_N_Op_Concat): Keep concatenation operator
222 wrapping mechanism under debug flag -gnatd.h.
223 * debug.adb: Claim debug switch -gnatd.h.
225 2014-10-17 Doug Rupp <rupp@adacore.com>
227 * gcc-interface/Makefile.in: Enable the socket runtime bits
230 2014-10-17 Ed Schonberg <schonberg@adacore.com>
232 * sem_ch13.adb (Add_Invariants, Replace_Type_References): Do
233 not perform the replacement on the expression for an inherited
234 class-wide invariant if in ASIS_Mode and the type reference is
235 already the prefix of a 'Class attribute reference: the expression
236 has already been preanalyzed and the replacement performed when
237 first encountered on the declaration of the parent type.
239 2014-10-17 Robert Dewar <dewar@adacore.com>
241 * sem_ch5.adb, sem_ch7.adb, prj-nmsc.adb, sem_ch13.adb, exp_ch3.adb:
244 2014-10-17 Ed Schonberg <schonberg@adacore.com>
246 * exp_ch3.adb (Build_Component_Invariant_Call): Retrieve Invariant
247 subprogram from base type.
248 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
249 subprogram for private type, not any of its subtypes.
250 * sem_ch13.adb (Build_Invariant_Procedure_Declaration): Set type
251 of procedure entity, because a call to it may be generated in
252 a client unit before the corresponding subprogram declaration
255 2014-10-17 Vincent Celier <celier@adacore.com>
257 * prj-nmsc.adb (Get_Directories): Do not create directories
258 when a project is abstract.
260 2014-10-17 Ed Schonberg <schonberg@adacore.com>
262 * sem_ch5.adb (Analyze_Iterator_Specification): If the domain
263 of iteration is given by an expression that is not an array type,
264 verify that its type implements an iterator iterface.
266 2014-10-17 Robert Dewar <dewar@adacore.com>
268 * sem_attr.adb (Eval_Attribute): Ensure that attribute
269 reference is not marked as being a static expression if the
270 prefix evaluation raises CE.
272 2014-10-17 Robert Dewar <dewar@adacore.com>
274 * exp_pakd.adb: Move bit packed entity tables to spec.
275 * exp_pakd.ads: Move bit packed entity tables here from body.
276 * freeze.adb (Freeze_Array_Type): Check that packed array type
278 * rtsfind.adb (PRE_Id_Table): New table (Entity_Not_Defined):
279 Specialize messages using PRE_Id_Table.
280 * uintp.ads, uintp.adb (UI_Image): New functional form.
282 2014-10-17 Robert Dewar <dewar@adacore.com>
284 * aspects.ads, aspects.adb: Add Suppress_Initialization aspect.
285 * einfo.ads, einfo.adb (Suppress_Initialization): Now applies to
287 * exp_ch3.adb (Default_Initialize_Object): Handle
288 Suppress_Initialization.
289 * exp_prag.adb (Expand_Pragma_Suppress_Initialization): New
290 procedure (Expand_N_Pragma): Handle Suppress_Initialization
291 (Expand_Pragma_Import_Or_Interface): Use Undo_Initialization
292 (Undo_Initialization): New procedure.
293 * sem_prag.adb (Analyze_Pragma, case Suppress_Initialization):
294 This is now allowed for E_Variable case.
295 * gnat_rm.texi: Document new aspect Suppress_Initialization
296 Suppress_Initialization aspect/pragma can apply to variable.
297 * einfo.ads: Minor reformatting.
299 2014-10-17 Arnaud Charlet <charlet@adacore.com>
301 * spark_xrefs.ads: Add documentation pointer to Flow_Computed_Globals.
303 2014-10-17 Robert Dewar <dewar@adacore.com>
305 * cstand.adb (Create_Standard): Mark Short_Integer as
306 implementation defined.
307 * sem_util.adb (Set_Entity_With_Checks): Avoid blow up for
308 compiler built with assertions for No_Implementation_Identifiers test.
310 2014-10-17 Robert Dewar <dewar@adacore.com>
312 * aspects.ads: Documentation fix, aspect Lock_Free does have a
313 corresponding pragma.
314 * gnat_rm.texi: Document implementation defined boolean aspects
317 2014-10-17 Ed Schonberg <schonberg@adacore.com>
319 * sem_ch13.adb (Add_Invariants): For a class-wide type invariant,
320 preserve semantic information on the invariant expression
321 (typically a function call) because it may be inherited by a
322 type extension in a different unit, and it cannot be resolved
323 by visibility elsewhere because it may refer to local entities.
325 2014-10-17 Robert Dewar <dewar@adacore.com>
327 * gnat_rm.texi: Document that string literal can be used for
328 pragma Warnings when operating in Ada 83 mode.
330 2014-10-17 Ed Schonberg <schonberg@adacore.com>
332 * freeze.adb (Find_Aggregate_Component_Desig_Type): New
333 subsidiary function to Freeze_ Expression, used to determine
334 whether an aggregate for an array of access types also freezes the
335 designated type, when some aggregate components are allocators.
337 2014-10-17 Ed Schonberg <schonberg@adacore.com>
339 * a-strsea.adb (Find_Token): AI05-031 indicates that the
340 procedure must raise Index_Error when Source is not empty and
341 the From parameter is not within the range of the Source string.
343 2014-10-17 Robert Dewar <dewar@adacore.com>
345 * sem_prag.adb (Is_Static_String_Expression): Allow string
346 literal in Ada 83 mode.
348 2014-10-17 Vincent Celier <celier@adacore.com>
350 * prj-conf.adb (Get_Config_Switches): In CodePeer mode, do
351 not take into account any compiler command from package IDE.
353 2014-10-17 Ed Schonberg <schonberg@adacore.com>
355 * sem_ch12.adb (Build_Function_Wrapper): The formals of the
356 wrapper must have the same identifiers as those of the formal
357 subprogram, because calls within the generic may use named
360 2014-10-17 Robert Dewar <dewar@adacore.com>
362 * sem_ch3.adb, a-strsea.adb: Minor reformatting.
363 * par-ch6.adb (P_Subprogram): Fix bad handling of null procedures.
365 2014-10-17 Ed Schonberg <schonberg@adacore.com>
367 * sem_ch3.adb (Build_Derived_Enumeration_Type): Propagate aspect
368 specfications from original type declaration to declaration of
369 implicit base, because original node is rewritten as a subtype
370 declaration on which type aspects do not belong.
372 2014-10-17 Hristian Kirtchev <kirtchev@adacore.com>
374 * sem_ch3.adb (Propagate_Default_Init_Cond_Attributes): A derived type
375 inherits the attributes related to pragma Default_Initial_Condition
376 from its parent type.
378 2014-10-17 Ed Schonberg <schonberg@adacore.com>
380 * a-strsea.adb (Index - versions with a From parameter):
381 According to AI05-056, the Index functions with a From parameter
382 return 0 if the source is an empty string.
384 2014-10-17 Hristian Kirtchev <kirtchev@adacore.com>
386 * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Disable
387 the consistency checks in ASIS mode.
389 2014-10-17 Arnaud Charlet <charlet@adacore.com>
391 * s-expmod.ads: Minor typo fix.
393 2014-10-17 Robert Dewar <dewar@adacore.com>
395 * sem_util.adb: Minor reformatting.
397 2014-10-17 Ed Schonberg <schonberg@adacore.com>
399 * sem_ch12.adb (Build_Function_Wrapper): Build wrappers for
400 actuals that are defaulted subprograms of the formal subprogram
403 2014-10-17 Robert Dewar <dewar@adacore.com>
405 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we deal with the
406 implementation base type.
407 * sinfo.ads: Add a note for N_Op_Eq and N_Op_Ne that record
408 operands are always expanded out into component comparisons.
410 2014-10-17 Robert Dewar <dewar@adacore.com>
412 * s-vallli.adb: Minor comment correction.
413 * s-valuti.ads: Minor comment reformatting.
415 2014-10-17 Robert Dewar <dewar@adacore.com>
417 * gnat_rm.texi: Document System.Atomic_Counters.
418 * impunit.adb: Add System.Atomic_Counters (s-atocou.ads) to the
419 list of user- accessible units added as children of System.
420 * s-atocou.ads: Update comment.
422 2014-10-17 Arnaud Charlet <charlet@adacore.com>
424 * s-expmod.ads: Add comments.
426 2014-10-17 Hristian Kirtchev <kirtchev@adacore.com>
428 * sem_ch3.adb (Build_Derived_Record_Type): Remove the propagation
429 of all attributes related to pragma Default_Initial_Condition.
430 (Build_Derived_Type): Propagation of all attributes related
431 to pragma Default_Initial_Condition.
432 (Process_Full_View): Account for the case where the full view derives
433 from another private type and propagate the attributes related
434 to pragma Default_Initial_Condition to the private view.
435 (Propagate_Default_Init_Cond_Attributes): New routine.
436 * sem_util.adb: Alphabetize various routines.
437 (Build_Default_Init_Cond_Call): Use an unchecked type conversion
438 when calling the default initial condition procedure of a private type.
439 (Build_Default_Init_Cond_Procedure_Declaration): Prevent
440 the generation of multiple default initial condition procedures.
442 2014-10-17 Robert Dewar <dewar@adacore.com>
444 * prj-conf.adb: Revert previous change.
446 2014-10-17 Robert Dewar <dewar@adacore.com>
448 * lib-writ.ads, s-valdec.ads: Minor reformatting.
450 2014-10-17 Ed Schonberg <schonberg@adacore.com>
452 * sem_ch12.adb: Additional work on function wrappers.
454 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
456 * exp_util.adb (Possible_Bit_Aligned_Component): Also recurse
457 on the renamed object of renamings.
459 2014-10-17 Vincent Celier <celier@adacore.com>
461 * prj-conf.adb (Parse_Project_And_Apply_Config): In CodePeer
462 mode, always use the native target.
464 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
466 * gcc-interface/misc.c: Adjust include files.
468 2014-10-13 Eric Botcazou <ebotcazou@adacore.com>
469 Alan Modra <amodra@gmail.com>
472 * uintp.adb (Vector_To_Uint): Move from here to...
473 * uintp.ads (UI_Vector): Make public.
474 (Vector_To_Uint): ...here.
476 2014-10-10 Robert Dewar <dewar@adacore.com>
478 * freeze.adb, sem_attr.adb: Minor reformatting.
480 2014-10-10 Johannes Kanig <kanig@adacore.com>
482 * a-cfdlli.ads, a-cfhama.ads, a-cfhase.ads, a-cforma.ads,
483 a-cforse.ads, a-cofove.ads: add "Default_Initial_Condition"
486 2014-10-10 Vincent Celier <celier@adacore.com>
488 * prj-conf.adb (Do_Autoconf): In Codepeer mode, do not try to get
489 any configuration switches from the project file.
491 2014-10-10 Ed Schonberg <schonberg@adacore.com>
493 * sem_ch12.adb (Build_Wrapper): Renamed as Build_Operator_Wrapper.
494 (Build_Function_Wrapper): New function, to construct a wrapper
495 function for actuals that are functions with an arbitrary
496 number of parameters. Used in GNATProve mode to simplify proof
497 propagation in instantiations.
499 2014-10-10 Robert Dewar <dewar@adacore.com>
501 * freeze.adb, gnat1drv.adb, sem_ch13.adb: Minor reformatting and
504 2014-10-10 Hristian Kirtchev <kirtchev@adacore.com>
506 * sem_res.adb (Is_OK_Volatile_Context): Allow
507 a volatile object reference to appear as the expression of a
510 2014-10-10 Ed Schonberg <schonberg@adacore.com>
512 * sem_ch13.adb (Analyze_Aspect_Specifications, Library_Unit_Aspects):
513 Aspect specification is legal on a local instantiation of a
514 library-level generic unit.
516 2014-10-10 Gary Dismukes <dismukes@adacore.com>
518 * gnat1drv.adb (Adjust_Global_Switches): Set Front_End_Inlining
519 if inlining has been enabled via -gnatn and the target is not GCC.
521 2014-10-10 Ed Schonberg <schonberg@adacore.com>
523 * freeze.adb (Freeze_Entity): Freezing a subprogram does
524 not always freeze its profile. In particular, an attribute
525 reference that takes the access type does not freeze the types
528 2014-10-10 Robert Dewar <dewar@adacore.com>
530 * errout.adb (Adjust_Name_Case): New procedure.
531 (Set_Msg_Node): Use Adjust_Name_Case.
532 * errout.ads (Adjust_Name_Case): New procedure.
533 * exp_intr.adb (Add_Source_Info): Minor code reorganization
535 (Write_Entity_Name): Use Errout.Adjust_Name_Case.
536 * sem_prag.adb (Is_Non_Significant_Pragma_Reference): Review
537 and fix up entries in Sig_Flags, and correct logical errors in
539 * sprint.adb (Sprint_Node_Actual): Properly print string for
542 2014-10-10 Ed Schonberg <schonberg@adacore.com>
544 * sem_ch3.adb (Analyze_Object_Declaration): For an object of an
545 anonymous array type with delayed aspects, defer freezing of
546 type until object itself is frozen.
547 * freeze.adb (Freeze_Entity): When freezing an object of an
548 anonymous array type with delayed aspects, remove freeze node of
549 object after freezing type, to prevent out-of-order elaboration
550 in the back-end. The initialization call for the object has
551 already been constructed when expanding the object declaration.
553 2014-10-10 Robert Dewar <dewar@adacore.com>
555 * exp_intr.adb (Write_Entity_Name): Moved to outer level
556 (Write_Entity_Name): Properly handle operator names
557 (Expand_Source_Info): New procedure.
558 * exp_intr.ads (Add_Source_Info): New procedure.
560 2014-10-10 Robert Dewar <dewar@adacore.com>
562 * butil.ads: Minor reformatting.
563 * sem_ch5.adb: Code clean up.
565 2014-10-10 Robert Dewar <dewar@adacore.com>
567 * exp_ch11.adb (Expand_N_Raise_Statement): Handle
568 Prefix_Exception_Messages.
569 * opt.adb: Handle new flags Prefix_Exception_Message[_Config].
570 * opt.ads: New flags Prefix_Exception_Message[_Config].
571 * par-prag.adb: New dummy entry for pragma Prefix_Exception_Messages.
572 * snames.ads-tmpl: Add entries for new pragma Prefix_Exception_Messages.
573 * sem_prag.adb: Implement new pragma Prefix_Exception_Messages
574 * gnat_rm.texi: Document pragma Prefix_Exception_Messages.
576 2014-10-10 Gary Dismukes <dismukes@adacore.com>
578 * sinfo.ads, gnat_ugn.texi, a-except.adb, a-except-2005.adb,
579 raise-gcc.c Spelling changes (prolog => prologue, epilog => epilogue).
581 2014-10-10 Ed Schonberg <schonberg@adacore.com>
583 * sem_ch5.adb (Is_Wrapped_In_Block): Handle properly blocks that
584 contain pragmas generated for loop invariants and type predicates.
585 Clarify use of this subprogram.
587 2014-10-10 Yannick Moy <moy@adacore.com>
589 * sem_prag.adb (Analyze_Global_Item): Accept formal objects in Global
591 * errout.adb, errout.ads (SPARK_Msg_NE): Issue error unless
594 2014-10-10 Vadim Godunko <godunko@adacore.com>
596 * a-stwima.adb (To_Sequence): Compute size of result array.
598 2014-10-10 Javier Miranda <miranda@adacore.com>
600 * gnat_ugn.texi (Interfacing with C++ at the Class Level): Update the
601 sources of the example to avoid a warning when the Ada files are
602 automatically generated by the binding generator.
604 2014-10-10 Ed Schonberg <schonberg@adacore.com>
606 * sem_attr.adb (Resolve_Attribute, case 'Update): Set
607 Do_Range_Check on the expression of a record component
608 association when needed, as is done for array components, when
609 the corresponding type is a scalar type.
611 2014-10-10 Gary Dismukes <dismukes@adacore.com>
613 * a-coinho-shared.adb: Minor typo fix.
614 * prj-env.ads: Minor reformatting.
616 2014-10-10 Hristian Kirtchev <kirtchev@adacore.com>
618 * sem_res.adb (Resolve_String_Literal): Do not
619 generate a string literal subtype for the default expression of
620 a formal parameter in GNATprove mode.
622 2014-10-10 Yannick Moy <moy@adacore.com>
624 * errout.adb (SPARK_Msg_N): Issue error unless SPARK_Mode is Off.
626 2014-10-10 Ed Schonberg <schonberg@adacore.com>
628 * exp_ch5.adb (Expand_Formal_Container_Element_Loop): Analyze
629 declaration for loop parameter before rest of loop, and set
630 entity kind to prevent assignments to it in the user code.
631 * sem_ch3.adb (Analyze_Object_Contract): No contracts apply to the
632 loop parameter in an element iteration over o formal container.
634 2014-10-10 Robert Dewar <dewar@adacore.com>
636 * gnat_ugn.texi: Document use of user-level routines to handle
637 e.g. col major arrays.
639 2014-10-10 Doug Rupp <rupp@adacore.com>
641 * s-osinte-android.adb: Fix misspelling.
642 * gsocket.h: Tweak the Android quirks.
644 2014-10-10 Robert Dewar <dewar@adacore.com>
646 * errout.ads (SPARK_Msg_N): Fix spec to match change in body.
648 2014-10-10 Robert Dewar <dewar@adacore.com>
650 * sem_ch13.adb: Minor code reorganization.
652 2014-10-10 Pat Rogers <rogers@adacore.com>
654 * gnat_rm.texi: Text now indicates pragma No_Run_Time is not
657 2014-10-10 Vadim Godunko <godunko@adacore.com>
659 * a-coinho-shared.adb: Add minor comment.
660 * a-stzmap.adb (To_Sequence): Compute size of result array.
662 2014-10-10 Javier Miranda <miranda@adacore.com>
664 * exp_ch3.adb (Build_Init_Procedure): Complete the condition of an
665 if-stmt to match its current documentation.
667 2014-10-10 Robert Dewar <dewar@adacore.com>
669 * sem_ch7.adb, einfo.adb, einfo.ads, sem_prag.adb, sem_ch12.adb,
670 freeze.adb, sem_util.adb, sem_res.adb, exp_ch6.adb, exp_ch13.adb,
671 sem_ch6.adb, sem_cat.adb, sem_disp.adb
672 (Is_Subprogram_Or_Generic_Subprogram): New primitive. Use this primitive
673 throughout where appropriate.
675 2014-10-10 Bob Duff <duff@adacore.com>
677 * a-coinho-shared.ads: Minor reformatting.
678 * s-traceb.adb: Minor clean up.
680 2014-10-10 Robert Dewar <dewar@adacore.com>
682 * ali.adb (Scan_ALI): Read and process new GP flag on ALI P line.
683 * ali.ads (GNATprove_Mode): New component in ALI table.
684 (GNATprove_Mode_Specified): New global.
685 * gnatbind.adb (Gnatbind): Give fatal error if any file compiled
687 * lib-writ.ads, lib-writ.adb (GP): New flag on P line for
690 2014-10-10 Javier Miranda <miranda@adacore.com>
692 * exp_ch3.adb (Build_Init_Procedure): Adding assertion.
693 (Build_Init_Statement): Ensure that statements
694 associated with the parent components are located at the beginning
695 of the returned list of statements.
697 2014-10-10 Ed Schonberg <schonberg@adacore.com>
699 * sem_ch13.adb (Inherit_Aspects_At_Freeze_Node): If the full
700 view of a private type T that has a type invariant is a scalar
701 or constrained array type, the base type created for the full
702 view has the same type invariant.
704 2014-10-10 Robert Dewar <dewar@adacore.com>
706 * exp_util.ads, sem_ch12.adb, exp_util.adb, i-fortra.ads: Minor code
709 2014-09-22 Eric Botcazou <ebotcazou@adacore.com>
711 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
712 * gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
714 2014-09-15 Jakub Jelinek <jakub@redhat.com>
716 * gcc-interface/Make-lang.in (check_acats_numbers0,
717 check_acats_numbers1, check_acats_numbers2, check_acats_numbers3,
718 check_acats_numbers4, check_acats_numbers5, check_acats_numbers6,
719 check_acats_numbers, check_acats_subdirs): New variables.
720 (check_acats_targets): Use $(check_acats_subdirs).
721 (check-acats, check-acats%): Rewritten so that for parallelized
722 testing each job runs all the chapters files, with
723 GCC_RUNTEST_PARALLELIZE_DIR set in environment. Prepare the support
724 directory sequentially and share it.
725 (check-acats-subtargets): Always print just check-acats.
727 2014-08-25 Martin Liska <mliska@suse.cz>
729 * gcc-interface/utils.c (rest_of_subprog_body_compilation): Adjust to
730 new cgraph interface.
731 (gnat_write_global_declarations): Likewise.
733 2014-08-13 Sylvestre Ledru <sylvestre@debian.org>
735 * 9drpc.adb: Fix a typo
736 * s-interr.ads: Likewise
737 * s-taskin.ads: Likewise
738 * s-traces.ads: Likewise
741 2014-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
743 * socket.c: For RTEMS, use correct prototype of gethostbyname_r().
744 * gsocket.h Add include of <unistd.h> on RTEMS.
746 2014-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
748 * s-osinte-rtems.adb: Correct formatting of line in license block.
750 2014-08-04 Claire Dross <dross@adacore.com>
752 * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
753 For an instance, look at the scope before the generic parent.
755 2014-08-04 Yannick Moy <moy@adacore.com>
757 * lib-writ.ads: Update comments.
758 * sem_disp.ads, sem_disp.adb (Inherited_Subprograms): Add
759 parameters to filter inherited subprograms.
761 2014-08-04 Robert Dewar <dewar@adacore.com>
763 * gnat_rm.texi: Add section on use of address clause for memory
766 2014-08-04 Ed Schonberg <schonberg@adacore.com>
768 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype, in
769 particular the subtype created for a generic actual, inherits
770 invariant information from the base type.
772 2014-08-04 Robert Dewar <dewar@adacore.com>
774 * aspects.ads, aspects.adb: Add entries for aspect Obsolescent.
775 * gnat_rm.texi: Add documentation for aspect Obsolescent.
776 * sem_ch13.adb (Analyze_Aspect_Specifications): Implement aspect
778 (Check_Aspect_At_Freeze_Point): Add dummy entry for pragma Obsolescent.
779 * s-osprim-mingw.adb: Minor reformatting.
780 * sem_res.adb (Is_Atomic_Ref_With_Address): New function
781 (Resolve_Indexed_Component): Rework warnings for non-atomic access
782 (Resolve_Selected_Component): Add warnings for non-atomic access.
784 2014-08-04 Doug Rupp <rupp@adacore.com>
786 * g-calend.adb (timeval_to_duration, duration_to_timeval): Change sec
788 * g-calend.ads (timeval): Bump up size to accomodate sec type.
789 * s-taprop-linux.adb (timeval_to_duration): Change sec formal to
791 * s-osprim-posix.adb (timeval): Bump up size to accomodate
793 (timeval_to_duration): Change sec formal to Long_Long_Integer
794 * s-osinte-darwin.adb (timeval): Bump up
795 size to accomodate new sec type.
796 (timeval_to_duration): Change sec formal to long_long
797 * s-osinte-android.adb: Likewise.
798 * cal.c (__gnat_timeal_to_duration, __gnat_duration_to_timeval): Change
799 sec formal from long to long long.
801 2014-08-04 Robert Dewar <dewar@adacore.com>
803 * sem_res.adb (Resolve_Qualified_Expression): Make sure
804 Do_Range_Check flag gets set.
806 2014-08-04 Robert Dewar <dewar@adacore.com>
808 * einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
809 * exp_ch3.adb (Build_Array_Init_Proc): Use
810 Is_Standard_String_Type.
811 (Expand_Freeze_Array_Type): ditto.
812 (Get_Simple_Init_Val): ditto.
813 (Needs_Simple_Initialization): ditto.
814 * sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
815 * sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
817 2014-08-04 Pascal Obry <obry@adacore.com>
819 * adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
820 _stprintf which insert garbage into the wfull_path buffer.
822 2014-08-04 Arnaud Charlet <charlet@adacore.com>
824 * cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
826 * fe.h: Minor reformatting.
828 2014-08-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
830 * cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
832 2014-08-04 Robert Dewar <dewar@adacore.com>
834 * par-ch13.adb (Get_Aspect_Specifications): Improve error
835 recovery, fixing a -gnatQ bomb.
837 2014-08-04 Yannick Moy <moy@adacore.com>
839 * sem_ch3.adb (Analyze_Object_Declaration): In GNATprove mode,
840 do not generate two Itypes with the same name for an array
842 * sinfo.ads: Expand doc on GNATprove mode.
844 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
846 * exp_ch3.adb (Expand_Freeze_Record_Type): Set the finalization
847 master and storage pool attributes on the root type of an
848 anonymous access type.
849 * exp_ch4.adb (Expand_N_Allocator): Set the finalization master
850 and storage pool attributes on the root type of an anonymous
853 2014-08-04 Arnaud Charlet <charlet@adacore.com>
855 * exp_ch3.adb: Minor reformatting.
856 * tb-alvms.c, tb-alvxw.c, tb-ivms.c: Removed.
857 * tracebak.c: Remove use of above files.
858 * gcc-interface/Makefile.in: Update dependencies.
860 2014-08-04 Pierre-Marie Derodat <derodat@adacore.com>
862 * gcc-interface/utils.c (gnat_set_type_context): Also set the
863 context for parallel types' TYPE_STUB_DECL. Do not change
864 anything if the context is already set for them.
865 (gnat_pushdecl): Update the comment for calls to
866 gnat_set_type_context to mention parallel types.
867 (add_parallel_type): When adding a context-less parallel type to
868 a type that has a context, propagate the context from the latter
870 (process_deferred_decl_context): Call gnat_set_type_context
871 rather than manually setting the type context.
872 (build_unc_object_type): Call gnat_set_type_context on the
875 2014-08-04 Ed Schonberg <schonberg@adacore.com>
877 * exp_ch5.adb (Expand_N_Case_Statement): If a choice is a
878 subtype indication and the case statement has only two choices,
879 replace subtype indication with its range, because the resulting
880 membership test cannot have a subtype indication as an operand.
882 2014-08-04 Arnaud Charlet <charlet@adacore.com>
884 * exp_ch3.adb: Update comments, minor reformatting.
886 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
888 * sem_ch3.adb (Analyze_Declarations): Explain why the bodies of
889 the default initial condition procedures are build here.
890 * sem_util.adb (Build_Default_Init_Cond_Procedure): Wrap the
891 analyzed argument of pragma Default_Initial_Condition in some
892 dummy code as GNATprove mode disables assertions, but still
893 needs to see the argument.
895 2014-08-04 Robert Dewar <dewar@adacore.com>
897 * exp_ch6.adb, sem_util.adb: Minor reformatting.
899 2014-08-04 Olivier Hainque <hainque@adacore.com>
901 * a-comutr.ads: Set Root_Node_Type'Alignment to
902 Standard'Maximum_Alignment, so that it is at least as large as
903 the max default for Tree_Node_Type'Alignment.
905 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
907 * exp_ch3.adb (Freeze_Type): Remove the generation and inheritance
908 of the default initial condition procedure [body].
909 * sem_ch3.adb (Analyze_Declarations): Create the bodies of
910 all default initial condition procedures at the end of private
911 declaration analysis.
912 * sem_util.adb (Build_Default_Init_Cond_Procedure_Bodies): New
914 (Build_Default_Init_Cond_Procedure_Body): Merged in the
915 processing of routine Build_Default_Init_Cond_Procedure_Bodies.
916 * sem_util.ads (Build_Default_Init_Cond_Procedure_Bodies):
918 (Build_Default_Init_Cond_Procedure_Body): Removed.
920 2014-08-04 Ed Schonberg <schonberg@adacore.com>
922 * sem_elab.adb (Check_Elab_Call): Do not check a call to a
924 * exp_ch6.adb (Expand_Call): Clarify handling of inserted
927 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
929 * sem_prag.adb (Analyze_Pragma): Ensure that an
930 internally generated spec for a stand alone body is recognized
931 as a proper context for pragma SPARK_Mode.
933 2014-08-04 Robert Dewar <dewar@adacore.com>
935 * erroutc.adb (Delete_Msg): Do not decrement Warnings_Treated_As_Errors.
937 2014-08-04 Arnaud Charlet <charlet@adacore.com>
939 * adabkend.adb (Scan_Back_End_Switches): Ignore extra -o
940 when -gnatO has already been specified, for compatibility
942 (Scan_Compiler_Args): Do not call Set_Output_Object_File_Name in
944 * g-expect.ads: Fix typo.
946 2014-08-04 Thomas Quinot <quinot@adacore.com>
948 * exp_ch4.adb (Insert_Dereference_Action): the actual Size
949 must account for the bounds template if the designated type is
950 an unconstrained array.
952 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
954 * a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb Add
955 SPARK_Mode in the body.
956 * sem_ch7.adb (Analyze_Package_Body_Helper): Restore the original
957 way to verify the consistency of SPARK_Mode between a spec and
959 * sem_ch12.adb (Analyze_Package_Instantiation): Remove the call
960 to Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
962 (Analyze_Subprogram_Instantiation): Remove the call to
963 Set_Ignore_Pragma_SPARK_Mode. Set flag Ignore_Pragma_SPARK_Mode
965 * sem_prag.adb (Analyze_Pragma): Remove local variable
966 Inst_Id. SPARK_Mode can no longer be applied to a package or
967 subprogram instantiation.
968 * sem_util.adb, sem_util.ads (Set_Ignore_Pragma_SPARK_Mode):
971 2014-08-04 Robert Dewar <dewar@adacore.com>
973 * sem_prag.adb, osint.adb, osint.ads: Minor reformatting.
975 2014-08-04 Yannick Moy <moy@adacore.com>
977 * sem_ch3.adb (Derive_Type_Declaration,
978 Process_Discriminants): Remove SPARK-specific legality checks.
980 2014-08-04 Thomas Quinot <quinot@adacore.com>
982 * g-sechas.ads, g-sechas.adb (HMAC_Initial_Context): New subprogram.
983 * gnat_rm.texi (GNAT.MD5/SHA1/SHA224/SHA256/SHA512): Document support
986 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
988 * sem_ch7.adb (Analyze_Package_Body_Helper): When verifying the
989 compatibility of SPARK_Mode between a spec and a body, use the
990 SPARK_Mode of the public part.
991 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Use
992 the already available routine to exchange the aspects between
993 the template and its copy. Analyze the aspects of copy to
994 ensure that the corresponding pragmas perform their semantic
995 effects. The partial analysis of aspects is no longer needed.
996 (Analyze_Package_Instantiation): Save and restore the SPARK_Mode
998 (Analyze_Subprogram_Instantiation): Save and restore the SPARK_Mode of
1000 * sem_prag.adb (Analyze_Pragma): Do not bypass a subprogram
1001 instantiation which does not come from source.
1003 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1005 * a-cfhama.ads, a-cfhase.ads, a-cforma.ads, a-cforse.ads Add
1006 SPARK_Mode pragmas to the public and private part of the unit.
1007 * sem_ch3.adb (Derive_Type_Declaration): Ensure that a derived
1008 type cannot have discriminants if the parent type already has
1010 (Process_Discriminants): Ensure that the type of a discriminant is
1012 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The check on
1013 SPARK_Mode compatibility between a spec and a body can now be
1014 safely performed while processing a generic.
1015 * sem_ch7.adb (Analyze_Package_Body_Helper): The check on
1016 SPARK_Mode compatibility between a spec and a body can now be
1017 safely performed while processing a generic.
1018 * sem_prag.adb (Analyze_Pragma): Pragma SPARK_Mode can now be
1019 safely analyzed when processing a generic.
1021 2014-08-04 Nicolas Roche <roche@adacore.com>
1023 * g-dirope.adb: Minor reformating.
1025 2014-08-04 Robert Dewar <dewar@adacore.com>
1027 * sem_ch6.adb: Minor reformatting.
1029 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1031 * sem_prag.adb (Analyze_Pragma, case Assert and related pragmas):
1032 Before normalizing these pragmas into a pragma Check, preanalyze
1033 the optional Message argument, (which is subsequently copied)
1034 so that it has the proper semantic information for ASIS use.
1035 * sem_case.adb: Initialize flag earlier.
1036 * osint.adb, osint.ads (Find_File): Add parameter Full_Name, used when
1037 the full source path of a configuration file is requested.
1038 (Read_Source_File): Use Full_Name parameter..
1040 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1042 * opt.ads Alphabetize various global flags. New flag
1043 Ignore_Pragma_SPARK_Mode along with a comment on usage.
1044 * sem_ch6.adb (Analyze_Generic_Subprogram_Body):
1045 Pragma SPARK_Mode is now allowed in generic units.
1046 (Analyze_Subprogram_Body_Helper): Do not verify the compatibility
1047 between the SPARK_Mode of a spec and that of a body when inside
1049 * sem_ch7.adb (Analyze_Package_Body_Helper): Do not verify the
1050 compatibility between the SPARK_Mode of a spec and that of a
1051 body when inside a generic.
1052 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration):
1053 Pragma SPARK_Mode is now allowed in generic units.
1054 (Analyze_Package_Instantiation): Save and restore the value of
1055 flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
1056 the governing SPARK_Mode before analyzing the instance.
1057 (Analyze_Subprogram_Instantiation): Save and restore the value
1058 of flag Ignore_ Pragma_SPARK_Mode in a stack-like fasion. Set
1059 the governing SPARK_Mode before analyzing the instance.
1060 * sem_ch13.adb (Analyze_Aspect_Specifications): Emulate the
1061 placement of a source pragma when inserting the generated pragma
1062 for aspect SPARK_Mode.
1063 * sem_prag.adb (Analyze_Pragma): Reimplement the handling of
1064 pragma SPARK_Mode to allow for generics and their respective
1066 * sem_util.ads, sem_util.adb (Check_SPARK_Mode_In_Generic): Removed.
1067 (Set_Ignore_Pragma_SPARK_Mode): New routine.
1069 2014-08-04 Eric Botcazou <ebotcazou@adacore.com>
1071 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Component>: Deal with
1072 renaming discriminants in tagged types first.
1073 * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Test
1074 the underlying type of the prefix.
1075 (Pragma_to_gnu, case Pragma_Warning): Ignore Reason => "..."
1076 (process_freeze_entity): Reset the nodes of all the view of a type,
1079 2014-08-04 Doug Rupp <rupp@adacore.com>
1080 Olivier Hainque <hainque@adacore.com>
1082 * gcc-interface/Makefile.in (x86 VxWorks): Add filter-out for vxworks7
1083 and remove incorrect EH_MECHANISM macros.
1084 Add sigtramp.h to EXTRA_LIBGNAT_SRCS when we add sigtramp-vxworks.o to
1087 2014-08-04 Robert Dewar <dewar@adacore.com>
1089 * exp_attr.adb (Expand_N_Attribute_Reference): Make sure prefix
1090 of constructed 'Valid attribute in -gnatVa mode does not appear
1091 to come from source.
1092 * sem_attr.adb (Analyze_Access_Attribute): Don't set
1093 Never_Set_In_Source for non-source reference.
1094 * sem_util.adb: Minor reformatting.
1095 * sem_warn.adb (Check_References): Don't check Address_Taken,
1096 not necessary, see comment.
1098 2014-08-04 Robert Dewar <dewar@adacore.com>
1100 * sem_util.adb, sem_case.adb: Minor reformatting.
1102 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1104 * exp_ch9.adb (Extract_Entry): If the synchronized object is a
1105 limited view, replace with non-limited view, which is available
1106 at the point of an entry call.
1108 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1110 * exp_ch6.adb (Expand_Call): If the call is to a function in
1111 a run-time unit that is marked Inline_Always, we must suppress
1112 debugging information on it, so that the code that is eventually
1113 inlined will not affect debugging of the user program.
1115 2014-08-04 Robert Dewar <dewar@adacore.com>
1117 * inline.adb, einfo.ads, s-tassta.adb, s-tarest.adb: Minor comment
1120 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1122 * sem_prag.adb (Process_Import_Or_Interface): Handle properly
1123 an aspect Import that specifies a False value.
1125 2014-08-04 Robert Dewar <dewar@adacore.com>
1127 * gnat_rm.texi: Add section on aspect Invariant'Class.
1129 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1131 * sem_case.adb (Check_Choice_Set): New flag Predicate_Error,
1132 for better control of cascaded error messages when some choice
1133 in a case statement over a predicated type violates the given
1136 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1138 * sem_ch3.adb (Build_Derived_Type): Modify the
1139 inheritance of the rep chain to ensure that a non-tagged type's
1140 items are not clobbered during the inheritance.
1142 2014-08-04 Robert Dewar <dewar@adacore.com>
1144 * sem_ch3.adb, einfo.ads: Minor reformatting.
1146 2014-08-04 Yannick Moy <moy@adacore.com>
1148 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Fix
1149 detection of subprograms that cannot be inlined in GNATprove mode.
1151 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1153 * einfo.adb: Add guard to Returns_Limited_View.
1155 2014-08-04 Jose Ruiz <ruiz@adacore.com>
1157 * s-tassta.adb, s-tarest.adb (Task_Wrapper): Force maximum alignment of
1158 the secondary stack to respect the alignments of the returned objects.
1160 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1162 * einfo.ads, einfo.adb (Returns_Limited_View): New flag defined
1163 on function entities whose return type is a limited view.
1164 * freeze.adb (Freeze_Entity): Use Returns_Limited_View to determine
1165 where to place the freeze node for a function that returns the
1166 limited view of a type, when the function is called and frozen
1167 in a different unit.
1169 2014-08-04 Eric Botcazou <ebotcazou@adacore.com>
1171 * sem_ch3.adb (Build_Derived_Private_Type): Minor code
1174 2014-08-04 Robert Dewar <dewar@adacore.com>
1176 * gnat_ugn.texi: Clarify documentation on assertions.
1178 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1180 * sem_aggr.adb (Resolve_Record_Aggregate, Get_Value): Warn
1181 if a component association has a box initialization when the
1182 component type has no default initialization, either through an
1183 initial value, an aspect, or an implicit initialization procedure.
1185 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1187 * freeze.adb: Code clean up.
1189 2014-08-04 Thomas Quinot <quinot@adacore.com>
1191 * sem_ch5.adb: Minor reformatting.
1193 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1195 * freeze.adb (Late_Freeze_Subprogram): Following AI05-151,
1196 a function can return a limited view of a type declared
1197 elsewhere. In that case the function cannot be frozen at the end
1198 of its enclosing package. If its first use is in a different unit,
1199 it cannot be frozen there, but if the call is legal the full view
1200 of the return type is available and the subprogram can now be
1201 frozen. However the freeze node cannot be inserted at the point
1202 of call, but rather must go in the package holding the function,
1203 so that the backend can process it in the proper context.
1205 2014-08-04 Robert Dewar <dewar@adacore.com>
1207 * exp_ch5.adb, sem_ch5.adb, einfo.ads: Minor reformatting.
1209 2014-08-04 Arnaud Charlet <charlet@adacore.com>
1211 * sem_ch4.adb (Operator_Check): Refine previous change.
1213 2014-08-04 Arnaud Charlet <charlet@adacore.com>
1215 * sem_scil.ads: Improve comments.
1216 * sem_ch4.adb (Analyze_Equality_Op): Add support for
1217 Allow_Integer_Address (equality between Address and Integer).
1219 2014-08-04 Yannick Moy <moy@adacore.com>
1221 * a-cfhama.adb, a-cforse.adb: Minor fixes to avoid using prefix
1222 notation on untagged objects.
1223 * sem.ads: Update comment.
1224 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do
1225 not inline subprograms declared in the visible part of a package.
1227 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1229 * exp_ch5.adb: minor reformatting.
1230 * einfo.ads, einfo.adb (Is_Processed_Transient): Applies to loop
1233 2014-08-04 Thomas Quinot <quinot@adacore.com>
1235 * s-fatgen.adb: Minor reformatting.
1237 2014-08-04 Arnaud Charlet <charlet@adacore.com>
1239 * exp_util.adb (Is_Possibly_Unaligned_Object): Always return
1242 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1244 * sem_ch5.adb (Analyze_Loop_Statement): Set properly the kind of
1245 the loop parameter for element iterators over containers and
1246 arrays, so that improper uses of it are detected in the loop
1247 body when expansion is disabled.
1248 * exp_ch5.adb (Expand_Iterator_Loop): The entity kind of the
1249 generated cursor is that of the analyzed loop parameter.
1251 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1253 * exp_ch3.adb (Build_CPP_Init_Procedure): Remove
1254 Flag_Decl. Do not analyze the declaration of the flag as it is
1255 not part of the tree yet, instead add it to the freeze actions
1258 2014-08-04 Robert Dewar <dewar@adacore.com>
1260 * checks.adb (Apply_Scalar_Range_Check): Make sure we handle
1261 case of OUT and IN OUT parameter correctly (where Source_Typ is
1262 set), we were missing one case where a check must be applied.
1264 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1266 * sem_ch8.adb (Build_Class_Wide_Wrapper): Update the comment on
1267 the generated code. Instead of hiding the renaming and using the
1268 wrapper as the proper association, have the subprogram renaming
1270 (Build_Spec): The entity of the wrapper is
1271 now derived from the entity of the related primitive.
1273 2014-08-04 Emmanuel Briot <briot@adacore.com>
1275 * s-regpat.adb: s-regpat.adb (Parse): fix incorrect link when
1276 using non-capturing groups.
1278 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1280 * inline.adb (Build_Body_To_Inline): Remove Unmodified and
1281 related pragmas before copying the original body, to prevent
1282 spurious errors when the pragmas apply to formals that will not
1283 appear in the inlined body.
1285 2014-08-04 Robert Dewar <dewar@adacore.com>
1287 * exp_prag.adb, sem_ch7.adb, einfo.adb, sem_prag.adb, sem_util.adb,
1288 exp_ch3.adb: Minor reformatting.
1290 2014-08-04 Robert Dewar <dewar@adacore.com>
1292 * prj-strt.adb, prj-strt.ads, sem_attr.adb: Minor reformatting.
1294 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1296 * aspects.adb Add an entry in table Canonical_Aspect for
1297 Default_Initial_Condition.
1298 * aspects.ads Add an entry in tables Aspect_Id, Aspect_Argument,
1299 Aspect_Names and Aspect_Delay for Default_Initial_Condition.
1300 * einfo.adb Flag3 is now Has_Default_Init_Cond. Flag132
1301 is now Is_Default_Init_Cond_ Procedure. Flag133 is now
1302 Has_Inherited_Default_Init_Cond.
1303 (Default_Init_Cond_Procedure): New routine.
1304 (Has_Default_Init_Cond): New routine.
1305 (Has_Inherited_Default_Init_Cond): New routine.
1306 (Is_Default_Init_Cond_Procedure): New routine.
1307 (Set_Default_Init_Cond_Procedure): New routine.
1308 (Set_Has_Default_Init_Cond): New routine.
1309 (Set_Has_Inherited_Default_Init_Cond): New routine.
1310 (Set_Is_Default_Init_Cond_Procedure): New routine.
1311 (Write_Entity_Flags): Output all the new flags.
1312 * einfo.ads New attributes Default_Init_Cond_Procedure,
1313 Has_Inherited_Default_Init_Cond and Is_Default_Init_Cond_Procedure
1314 along with usage in nodes.
1315 (Default_Init_Cond_Procedure): New routine.
1316 (Has_Default_Init_Cond): New routine and pragma Inline.
1317 (Has_Inherited_Default_Init_Cond): New routine and
1319 (Is_Default_Init_Cond_Procedure): New routine and
1321 (Set_Default_Init_Cond_Procedure): New routine.
1322 (Set_Has_Default_Init_Cond): New routine and pragma Inline.
1323 (Set_Has_Inherited_Default_Init_Cond): New routine and pragma Inline.
1324 (Set_Is_Default_Init_Cond_Procedure): New routine and pragma Inline.
1325 * exp_ch3.adb (Expand_N_Object_Declaration): New constant
1326 Next_N. Generate a call to the default initial condition procedure
1327 if the object's type is subject to the pragma. (Freeze_Type):
1328 Generate the body of the default initial condition procedure or
1329 inherit the spec from a parent type.
1330 * exp_ch7.adb Add with and use clause for Exp_Prag.
1331 (Expand_Pragma_Initial_Condition): Removed.
1332 * exp_prag.ads, exp_prag.adb (Expand_Pragma_Initial_Condition): New
1334 * par-prag.adb (Prag): Pragma Default_Initial_Condition does
1335 not need special treatment by the parser.
1336 * sem_ch3.adb (Build_Derived_Record_Type): Propagate the
1337 attributes related to pragma Default_Initial_Condition to the
1339 (Process_Full_View): Propagate the attributes
1340 related to pragma Default_Initial_Condition to the full view.
1341 * sem_ch7.adb (Analyze_Package_Specification): Build the
1342 declaration of the default initial condition procedure for all
1343 types that qualify or inherit the one from the parent type.
1344 * sem_ch13.adb (Analyze_Aspect_Specifications):
1345 Add processing for aspect Default_Initial_Condition.
1346 (Check_Aspect_At_Freeze_Point): Aspect
1347 Default_Initial_Condition does not require delayed analysis.
1348 (Replace_Type_References_Generic): Moved to spec.
1349 * sem_ch13.ads (Replace_Type_References_Generic): Moved from body.
1350 * sem_prag.adb Add an entry in table Sif_Glags for
1351 Default_Initial_Condition.
1352 (Analyze_Pragma): Pragma
1353 Default_Initial_Condition is now part of assertion
1354 policy. Add processing for pragma Default_Initial_Condition.
1355 (Is_Valid_Assertion_Kind): Pragma Default_Initial_Condition is
1356 now recognized as a proper assertion policy.
1357 * sem_util.ads, sem_util.adb (Build_Default_Init_Cond_Call): New
1359 (Build_Default_Init_Cond_Procedure_Body): New routine.
1360 (Build_Default_Init_Cond_Procedure_Declaration): New routine.
1361 (Inherit_Default_Init_Cond_Procedure): New routine.
1362 * snames.ads-tmpl Add new predefined name and pragma id for
1363 Default_Initial_Condition.
1365 2014-08-04 Vincent Celier <celier@adacore.com>
1367 * prj-dect.adb (Parse_Case_Construction): It is no longer
1368 an error if the variable for a case construction is not
1369 typed, only if the variable value is not a single string. Call
1370 Parse_Choice_List and End_Case_Construction with the new parameter
1371 to indicate that the variable is typed.
1372 * prj-strt.adb (End_Case_Construction): Only check the labels
1373 if the variable is typed. If the variable is not typed,
1374 issue a warning when there is no "when others" allternative.
1375 (Parse_Choice_List): Manage the labels only if the variable
1377 * prj-strt.ads (End_Case_Construction): New Boolean parameter
1379 (Parse_Choice_List): Ditto.
1381 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1383 * sem_ch5.adb: Additional fix to Check_Predicate_Use.
1385 2014-08-04 Vincent Celier <celier@adacore.com>
1387 * projects.texi: Update documentation of case constructions with
1388 variables that are not typed.
1390 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1392 * sem_ch8.adb (Build_Class_Wide_Wrapper): If the operator carries
1393 an Eliminated pragma, indicate that the wrapper is also to be
1394 eliminated, to prevent spurious errors when using gnatelim on
1395 programs that include box-initialization of equality operators
1396 (consequence of AI05-071)..
1398 2014-08-04 Robert Dewar <dewar@adacore.com>
1400 * checks.adb (Activate_Overflow_Check): Handle floating-point
1402 * checks.ads (Activate_Overflow_Check): Clarify handling of
1403 floating-point cases.
1404 * exp_util.adb (Check_Float_Op_Overflow): Reset Do_Overflow_Check
1405 flag if we generate an explicit overflow check (for
1406 Check_Float_Overflow mode).
1408 2014-08-04 Robert Dewar <dewar@adacore.com>
1410 * prj-proc.adb, prj-part.adb, prj-strt.adb, prj.adb, prj.ads,
1411 prj-attr.adb, prj-attr.ads: Minor reformatting.
1413 2014-08-04 Yannick Moy <moy@adacore.com>
1415 * expander.adb (Expand): Always perform special
1416 expansion in GNATprove mode, even when doing pre-analysis.
1418 2014-08-04 Thomas Quinot <quinot@adacore.com>
1420 * repinfo.adb (List_Scalar_Storage_Order): List bit order if
1421 not default. Also list bit order if SSO is specified. Do not
1422 assume that bit order is always equal to scalar storage order.
1424 2014-08-04 Thomas Quinot <quinot@adacore.com>
1426 * freeze.adb (Set_SSO_From_Default): Do not set scalar storage
1427 order to reverse SSO for a type that has an explicit native
1430 2014-08-04 Doug Rupp <rupp@adacore.com>
1432 * cal.c: Macro check for VxWorks7.
1433 * init.c (getpid): Likewise.
1434 * mkdir.c (__gnat_mkdir): Likewise.
1435 * sysdep.c (__gnat_is_file_not_found_error): Likewise.
1437 2014-08-04 Gary Dismukes <dismukes@adacore.com>
1439 * exp_ch3.adb (Expand_N_Object_Declaration): Inhibit generation
1440 of an invariant check in the case where No_Initialization is set,
1441 since the object is uninitialized.
1443 2014-08-04 Thomas Quinot <quinot@adacore.com>
1445 * snames.ads-tmpl (Default_Scalar_Storage_Order): Now an attribute
1446 name, in addition to a pragma name.
1447 * snames.adb-tmpl (Get_Pragma_Id, Is_Configuration_Pragma_Name,
1448 Is_Pragma_Name): Adjust accordingly.
1449 * sem_attr.ads, sem_attr.adb, exp_attr.adb
1450 (Attribute_Default_Scalar_Storage_Order): Add handling of new
1452 * gnat_rm.texi: Document the above.
1454 2014-08-04 Arnaud Charlet <charlet@adacore.com>
1456 * exp_util.adb (Check_Float_Op_Overflow): No-op in codepeer
1457 mode for now, to revert to previous behavior.
1458 * checks.adb: Revert previous change, no longer needed.
1460 2014-08-04 Robert Dewar <dewar@adacore.com>
1462 * gnat1drv.adb (Adjust_Global_Switches): Don't set
1463 Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1464 * sem_prag.adb (Analyze_Pragma, case Check_Float_Overflow): Don't
1465 set Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1466 * switch-c.adb (Scan_Front_End_Switches): Don't set
1467 Check_Float_Overflow if Machine_Oveflows_On_Target is True.
1469 2014-08-04 Vincent Celier <celier@adacore.com>
1471 * prj-attr.adb: Add new default indications for
1472 attributes Object_Dir, Exec_Dir, Source_Dirs and Target.
1473 (Attribute_Default_Of): New function (Initialize): Set the
1474 default for those attributes that have one specified.
1475 * prj-attr.ads (Attribute_Data): New component Default.
1476 * prj-proc.adb (Expression): Take into account the new defaults
1477 for attributes Object_Dir, Exec_Dir and Source_Dirs.
1478 * prj-strt.adb (Attribute_Reference): Set the default for
1480 * prj-tree.ads, prj-tree.adb (Default_Of): New function.
1481 (Set_Default_Of): New procedure.
1482 * prj.adb (The_Dot_String): New global Name_Id variable,
1483 initialized in procedure Initialize.
1484 (Dot_String): New function
1485 (Initialize): Initialize The_Dot_String.
1486 (Reset): Create the string list Shared.Dot_String_List.
1487 * prj.ads (Attribute_Default_Value): New enumeration type.
1488 (Project_Qualifier): Change enumeration value Dry to Abstract_Project.
1489 (Dot_String): New function.
1490 (Shared_Project_Tree_Data): New string list component Dot_String_List.
1491 * projects.texi: Document new defaults for attribute Object_Dir,
1492 Exec_Dir and Source_Dirs.
1494 2014-08-04 Robert Dewar <dewar@adacore.com>
1496 * sem_ch12.adb: Minor reformatting.
1498 2014-08-04 Arnaud Charlet <charlet@adacore.com>
1500 * exp_util.adb, checks.adb (Check_Float_Op_Overflow): Add special
1501 expansion in CodePeer_Mode.
1502 (Selected_Range_Checks): Add handling of overflow checks in
1505 2014-08-04 Robert Dewar <dewar@adacore.com>
1507 * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
1508 Remove special test for Float'First, no longer required.
1509 (Expand_N_Attribute_Reference, case Succ): Remove special test
1510 for Float'First, no longer required.
1511 * s-fatgen.adb (Pred): return infinity unchanged.
1514 2014-08-04 Claire Dross <dross@adacore.com>
1516 * sem_ch12.adb (Analyze_Associations): Defaults should only be
1517 used if there is no explicit match.
1518 * exp_util.adb (Get_First_Parent_With_Ext_Axioms_For_Entity):
1519 Also check for pragma external_axiomatization on generic units.
1521 2014-08-04 Robert Dewar <dewar@adacore.com>
1523 * checks.adb (Activate_Overflow_Check): Remove
1524 Check_Float_Overflow processing.
1525 (Apply_Scalar_Range_Check): Ditto.
1526 (Generate_Range_Check): Ditto.
1527 * exp_ch4.adb (Expand_N_Op_Add): Add call to
1528 Check_Float_Op_Overflow.
1529 (Expand_N_Op_Divide): ditto.
1530 (Expand_N_Op_Multiply): ditto.
1531 (Expand_N_Op_Subtract): ditto.
1532 * exp_util.ads, exp_util.adb (Check_Float_Op_Overflow): New procedure.
1533 * sem_attr.adb (Analyze_Attribute, case Pred): Make sure
1534 Do_Range_Check is set for floating-point case in -gnatc or
1536 (Analyze_Attribute, case Succ): Make sure
1537 Do_Range_Check is set for floating-point case in -gnatc or
1539 * sem_res.adb (Resolve_Type_Conversion): Make sure Do_Range_Check
1540 flag is set for real to integer conversion in GNATprove or
1543 2014-08-04 Gary Dismukes <dismukes@adacore.com>
1545 * sem_ch13.adb (Analyze_Aspect_Specifications): Resolve
1546 the expression of an Import or Export aspect as type Boolean
1547 and require it to be static. Add ??? comment. Also, set the
1548 Is_Exported flag when appropriate.
1550 2014-08-04 Robert Dewar <dewar@adacore.com>
1552 * exp_ch4.adb: Minor reformatting.
1553 * exp_attr.adb: Minor reformatting.
1555 2014-08-04 Thomas Quinot <quinot@adacore.com>
1557 * s-fatgen.ads, s-fatgen.adb (S, P): New visible type declarations
1558 (Unaligned_Valid): Remove now unused subprogram.
1559 * exp_attr.adb (Expand_N_Attribute_Reference, case
1560 Attribute_Valid): If the prefix is in reverse SSO or potentially
1561 unaligned, copy it using a byte copy operation to a temporary
1563 * einfo.adb: Minor comment fix.
1565 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1567 * freeze.adb (Freeze_Entity): Do not freeze formal subprograms.
1569 2014-08-04 Robert Dewar <dewar@adacore.com>
1571 * s-imgrea.adb (Image_Floating_Point): Don't add space before +Inf.
1572 * s-fatgen.adb (Pred): Handle Float'First.
1573 (Succ): Handle Float'Last.
1575 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1577 * sem_util.adb (Is_Potentially_Unevaluated): If the original
1578 node of a parent node in the tree is a short-circuit operation,
1579 the node is potentially unevaluated.
1581 2014-08-04 Robert Dewar <dewar@adacore.com>
1583 * sem_res.adb (Resolve_Type_Conversion): Set Do_Range_Check on
1584 conversion from a real type to an integer type.
1586 2014-08-04 Yannick Moy <moy@adacore.com>
1588 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_ch7.adb, sem_ch9.adb,
1589 sem_ch12.adb, sem_util.adb, sem_util.ads, sem_res.adb, sem_attr.adb,
1590 exp_ch6.adb, sem_ch4.adb, restrict.adb, restrict.ads, sem_ch6.adb,
1591 sem_ch8.adb, sem_ch11.adb: Update some subprogram names to refer to
1592 SPARK_05 instead of SPARK.
1594 2014-08-04 Robert Dewar <dewar@adacore.com>
1596 * sem.ads: Minor reformatting.
1597 * sem_ch13.adb (Analyze_Aspect_External_Or_Link_Name): Minor
1599 (Analyze_Aspect_Specifications, case Convention): Put External_Name
1600 before Link_Name when constructing pragma.
1602 2014-08-04 Yannick Moy <moy@adacore.com>
1604 * sem.adb, sem.ads (In_Default_Expr): Global flag that is set
1605 to True during analysis of a default component expression.
1606 (Semantics): Save and restore In_Default_Expr around analysis.
1607 * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration):
1608 Call new wrapper Preanalyze_Default_Expression.
1609 (Preanalyze_Default_Expression): New wrapper on
1610 Preanalyze_Spec_Expression which sets and restores In_Default_Expr.
1611 * sem_res.adb (Resolve_Call): Mark calls inside default
1612 expressions as not inlined in GNATprove mode.
1614 2014-08-04 Robert Dewar <dewar@adacore.com>
1616 * exp_ch4.adb: Minor reformatting.
1618 2014-08-04 Olivier Hainque <hainque@adacore.com>
1620 * link.c: remove const on __gnat_objlist_file_supported for AIX
1622 2014-08-04 Robert Dewar <dewar@adacore.com>
1624 * sem_util.ads: Minor addition of comment.
1626 2014-08-04 Vincent Celier <celier@adacore.com>
1628 * prj-dect.adb (Check_Package_Allowed): Allow package IDE in
1629 all projects, including aggregate and aggregate library projects.
1631 2014-08-04 Yannick Moy <moy@adacore.com>
1633 * back_end.adb (Call_Back_End): Do not call gigi in GNATprove mode.
1635 2014-08-04 Robert Dewar <dewar@adacore.com>
1637 * sem_eval.adb (Test_In_Range): Always in range for
1638 Is_Known_Valid target type, where input type has smaller or
1639 equal size and does not have biased rep.
1641 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1643 * sem_attr.adb (Eval_Attribute): Constrained is not treated as
1644 a static attribute, and the Static flag must not be set on it
1645 during resolution. It may be constant-folded during expansion,
1646 but if expansion is disabled it is not a static expression.
1648 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1650 * sem_ch8.adb (Build_Class_Wide_Wrapper): Mark the primitive as
1651 referenced once resolution has taken place.
1653 2014-08-04 Gary Dismukes <dismukes@adacore.com>
1655 * exp_ch4.adb (Expand_N_Type_Conversion): Don't
1656 compare access levels in the case where the target type is the
1657 anonymous type of an access discriminant, since the level of
1658 such types is defined based on context. Add comment.
1660 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1662 * sem_ch8.adb (Build_Class_Wide_Wrapper): Handle various special
1663 cases related to equality. Remove the special processing
1664 for dispatching abstract subprograms as it is not needed.
1665 (Interpretation_Error): Add a specialized error message for
1666 predefined operators.
1667 (Is_Intrinsic_Equality): New routine.
1668 (Is_Suitable_Candidate): New routine.
1670 2014-08-04 Gary Dismukes <dismukes@adacore.com>
1672 * checks.adb: Minor comment reformatting.
1674 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1676 * restrict.adb (Check_Restriction): For checked max_parameter
1677 restrictions reset Violated flag, so that subsequent violations
1678 are properly detected.
1680 2014-08-04 Robert Dewar <dewar@adacore.com>
1682 * sem_ch3.adb (Check_Initialization): Fix bad test of GNATprove
1684 (Process_Discriminants): Fix bad test of GNATprove mode
1686 2014-08-04 Hristian Kirtchev <kirtchev@adacore.com>
1688 * sem_ch12.adb (Instantiate_Formal_Subprogram):
1689 Move variable to their own section. Propagate the source
1690 location of a formal parameter to the corresponding formal of
1691 the subprogram renaming declaration. Code reformatting.
1693 2014-08-04 Arnaud Charlet <charlet@adacore.com>
1695 * g-trasym-vms-ia64.adb, g-trasym-vms-alpha.adb: Removed.
1697 2014-08-04 Ed Schonberg <schonberg@adacore.com>
1699 * exp_aggr.adb (Expand_Array_Aggregate): Do not attempt expansion
1700 if error already detected. We may reach this point in spite of
1701 previous errors when compiling with -gnatq, to force all possible
1702 errors (this is the usual ACATS mode).
1704 2014-08-04 Gary Dismukes <dismukes@adacore.com>
1706 * checks.adb (Generate_Range_Check): For the case of converting
1707 a base type with a larger range to a smaller target subtype, only
1708 use unchecked conversions of bounds in the range check followed
1709 by conversion in the case where both types are discrete. In other
1710 cases, convert to the target base type and save in a temporary
1711 followed by the range check.
1712 (Convert_And_Check_Range): New procedure factoring code to save
1713 conversion to a temporary followed by a range check (called two
1714 places in Generate_Range_Check).
1715 * exp_ch4.adb (Expand_N_Type_Conversion): Relax previous
1716 check-in, to generate range checks for conversions between
1717 any floating-point types rather than limiting it to matching
1720 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1722 * gcc-interface/trans.c: Use hash_set instead of pointer_set.
1724 2014-08-01 Ed Schonberg <schonberg@adacore.com>
1726 * restrict.adb (Update_Restrictions): For restrictions with a
1727 maximum parameter (e.g. number of protected entries in Ravenscar)
1728 do not compute the maximum of the violation over several objects,
1729 because the restriction is per-object.
1730 (Check_Restriction): After possible message, reset the value
1731 of of a checked max_parameter restriction to zero, to prevent
1733 * sem_ch3.adb (Build_Derived_Private_Type): Use base of parent
1734 (sub)type to determine whether derived type should be on the
1735 list of private dependents of a type whose full view may become
1736 visible subsequently.
1738 2014-08-01 Olivier Hainque <hainque@adacore.com>
1740 * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS, native): use
1741 $(CXX) instead of ../../xg++ to feed CXX.
1742 (CXX_LFLAGS): Remove. Now unused as the proper flags
1743 are expected to be included in the CXX variable.
1745 2014-08-01 Pierre-Marie Derodat <derodat@adacore.com>
1747 * gcc-interface/decl.c (elaborate_expression_1): Return the new
1748 variable when debug info is needed and the expression is not
1749 constant. Tag as external only new variables that are global.
1750 (gnat_to_gnu_entity): Call it after the GNU declaration is saved.
1751 * gcc-interface/trans.c (Attribute_to_gnu): Do not cache
1752 attributes for IN array parameters when their actual subtype
1754 (Compilation_Unit_to_gnu): Call it to process all remaining nodes.
1755 * gcc-interface/gigi.h (process_deferred_decl_context): New.
1756 * gcc-interface/utils.c (gnat_write_global_declarations): Do not
1757 emit debug info for ignored global declarations.
1758 (struct deferred_decl_context_node,
1759 add_deferred_decl_context, add_deferred_type_context,
1760 compute_deferred_decl_context, defer_or_set_type_context,
1761 deferred_decl_context_queue, get_debug_scope,
1762 get_global_context, process_deferred_decl_context): New.
1763 (gnat_pushdecl): Re-implement the DECL_CONTEXT and TYPE_CONTEXT
1764 computation machinery to rely on the GNAT Scope attribute.
1766 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
1768 * gcc-interface/utils2.c (build_simple_component_ref): Add guard.
1770 2014-08-01 Robert Dewar <dewar@adacore.com>
1772 * sem_ch8.adb, opt.ads Minor comment updates.
1774 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1776 * exp_intr.adb (Expand_Unc_Deallocation): Request a renaming
1777 from the side effects removal machinery.
1778 * exp_util.adb (Duplicate_Subexpr): Add formal parameter
1779 Renaming_Req. Update the nested call to Remove_Side_Effects.
1780 (Duplicate_Subexpr_No_Checks): Add formal parameter
1781 Renaming_Req. Update the nested call to Remove_Side_Effects.
1782 (Duplicate_Subexpr_Move_Checks): Add formal parameter
1783 Renaming_Req. Update the nested call to Remove_Side_Effects.
1784 (Remove_Side_Effects): Add formal parameter Renaming_Req. Generate
1785 an object renaming declaration when the caller requests it.
1786 * exp_util.ads (Duplicate_Subexpr): Add formal
1787 parameter Renaming_Req. Update comment on usage.
1788 (Duplicate_Subexpr_No_Checks): Add formal parameter Renaming_Req.
1789 (Duplicate_Subexpr_Move_Checks): Add formal parameter
1792 2014-08-01 Bob Duff <duff@adacore.com>
1794 * gnat_ugn.texi: Minor updates.
1796 2014-08-01 Robert Dewar <dewar@adacore.com>
1798 * atree.adb: Minor reformatting.
1800 2014-08-01 Ed Schonberg <schonberg@adacore.com>
1802 * exp_aggr.adb (Init_Hidden_Discriminants): If some ancestor is a
1803 private extension, get stored constraint, if any, from full view.
1805 2014-08-01 Robert Dewar <dewar@adacore.com>
1807 * opt.ads (No_Elab_Code_All_Pragma): New global variable.
1808 * sem_ch10.adb (Check_No_Elab_Code_All): New procedure
1809 (Analyze_Compilation_Unit): Call Check_No_Elab_Code_All
1810 (Analyze_Subunit_Context): Call Check_No_Elab_Code_All.
1811 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1812 Remove code for checking with's, now in sem_ch10.adb, set
1813 Opt.No_Elab_Code_All_Pragma.
1815 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
1817 * sem_ch3.adb (Copy_And_Build): Copy the declaration for
1818 access types as well and adjust the subtype mark if there are
1821 2014-08-01 Robert Dewar <dewar@adacore.com>
1823 * sem_eval.adb (Test_In_Range): Return Unknown if error posted.
1825 2014-08-01 Robert Dewar <dewar@adacore.com>
1827 * sem_ch3.adb, einfo.ads, exp_ch4.adb: Code clean ups.
1829 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
1831 * einfo.ads (Has_Private_Ancestor): Remove obsolete usage.
1832 * exp_ch4.adb (Expand_Composite_Equality): Add conversion
1833 of the actuals in the case of untagged record types too.
1834 * sem_ch3.adb (Build_Full_Derivation): New procedure to create the
1835 full derivation of a derived private type, extracted from...
1836 (Copy_And_Build): In the case of record types and most
1837 enumeration types, copy the original declaration. Build the
1838 full derivation according to the approach extracted from...
1839 (Build_Derived_Private_Type): ...here. Call Build_Full_Derivation
1840 to create the full derivation in all existing cases and also
1841 create it in the no-discriminants/discriminants case instead of
1842 deriving directly from the full view.
1843 (Is_Visible_Component): Remove obsolete code.
1844 * sem_aggr.adb (Resolve_Record_Aggregate): Likewise.
1846 2014-08-01 Arnaud Charlet <charlet@adacore.com>
1848 * fe.h (GNAT_Mode): New.
1849 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
1850 reverse SSO in GNAT mode.
1852 2014-08-01 Thomas Quinot <quinot@adacore.com>
1854 * freeze.adb: Minor reformatting.
1856 2014-08-01 Thomas Quinot <quinot@adacore.com>
1858 * exp_ch3.adb (Default_Initialize_Object): Do not generate
1859 default initialization for an imported object.
1861 2014-08-01 Olivier Hainque <hainque@adacore.com>
1863 * seh_init.c (__gnat_map_SEH): Cast argument of IsBadCodePtr
1864 to the expected FARPROC type instead of void *.
1865 * adaint.c (f2t): Expect __time64_t * as second argument, in line with
1866 other datastructures.
1867 (__gnat_file_time_name_attr): Adjust accordingly.
1868 (__gnat_check_OWNER_ACL): Declare pSD as PSECURITY_DESCRIPTOR,
1870 (__gnat_check_OWNER_ACL): Declare AccessMode
1871 parameter as ACCESS_MODE instead of DWORD, in line with callers
1873 (__gnat_set_executable): Add ATTRIBUTE_UNUSED on mode,
1874 unused on win32. Correct cast of "args" on call to spawnvp.
1875 (add_handle): Cast realloc calls into their destination types.
1876 (win32_wait): Remove declaration and initialization of unused variable.
1877 (__gnat_locate_exec_on_path): Cast alloca calls
1878 into their destination types.
1879 * initialize.c (append_arg, __gnat_initialize): Cast xmalloc calls into
1880 their destination types.
1882 2014-08-01 Gary Dismukes <dismukes@adacore.com>
1884 * exp_ch4.adb (Expand_N_Type_Conversion): Expand
1885 range checks for conversions between floating-point subtypes
1886 when the target and source types are the same.
1888 2014-08-01 Robert Dewar <dewar@adacore.com>
1890 * exp_aggr.adb: Minor reformatting.
1892 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
1894 * sem_ch13.adb (Check_Indexing_Functions): Initialize
1897 2014-08-01 Arnaud Charlet <charlet@adacore.com>
1899 * gnat1drv.adb (Gnat1drv): In gnatprove mode, we now write the
1900 ALI file before we call the backend (so that gnat2why can append
1903 2014-08-01 Thomas Quinot <quinot@adacore.com>
1905 * exp_pakd.adb (Expand_Bit_Packed_Element_Set,
1906 Expand_Packed_Element_Reference): Pass additional Rev_SSO
1907 parameter indicating whether the packed array type has reverse
1908 scalar storage order to the s-pack* Set/Get routines.
1909 * s-pack*.ad* (Get, Set, GetU, SetU): New formal Rev_SSO
1910 indicating reverse scalar storage order.
1912 2014-08-01 Robert Dewar <dewar@adacore.com>
1914 * sem_ch3.adb (Check_Initialization): Set Do_Range_Check
1915 for initial component value in -gnatc or GNATprove mode.
1916 (Process_Discriminants): Same fix for default discriminant values.
1917 * sem_eval.adb (Test_In_Range): Improve accuracy of results by
1920 2014-08-01 Robert Dewar <dewar@adacore.com>
1922 * sinfo.ads: Minor comment clarification.
1924 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1926 * sem_ch13.adb (Analyze_Aspect_Specifications): Code
1927 reformatting. Store the generated pragma Import in the related
1928 subprogram as routine Wrap_Imported_Subprogram will need it later.
1929 * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): An item of
1930 a private type with discriminants is considered to fall in the
1931 category of unconstrained or tagged items.
1933 2014-08-01 Arnaud charlet <charlet@adacore.com>
1935 * s-os_lib.adb (Open_Append): New functions to open a file for
1936 appending. This binds to the already existing (but not used)
1938 * osint.ads, osint.adb (Open_File_To_Append_And_Check): New procedure
1939 to open a file for appending.
1940 * osint-c.ads, osint-c.adb (Open_Output_Library_Info): New procedure
1941 to open the ALI file for appending.
1943 2014-08-01 Robert Dewar <dewar@adacore.com>
1945 * sem_ch8.adb: Minor reformatting.
1947 2014-08-01 Yannick Moy <moy@adacore.com>
1949 * sem_ch13.adb (Insert_Pragma): Add special case for precondition
1950 pragmas from aspects, which need to be inserted in proper order.
1952 2014-08-01 Ed Schonberg <schonberg@adacore.com>
1954 * exp_aggr.adb (Expand_Record_Aggregate, Init_Hidden_Discriminants):
1955 Handle properly a type extension that constrains a discriminated
1956 derived type that renames other discriminants of an ancestor.
1958 2014-08-01 Thomas Quinot <quinot@adacore.com>
1960 * s-pack06.adb, s-pack10.adb, s-pack03.ads, s-pack12.adb, s-pack14.ads,
1961 s-pack25.adb: Fix minor inconsistencies and typos.
1963 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1965 * sem_ch8.adb (Analyze_Subprogram_Renaming): Alphabetize
1966 globals and move certain variables to the "local
1967 variable" section. Call Build_Class_Wide_Wrapper when
1968 renaming a default actual subprogram with a class-wide actual.
1969 (Build_Class_Wide_Wrapper): New routine.
1970 (Check_Class_Wide_Actual): Removed.
1971 (Find_Renamed_Entity): Code reformatting.
1972 (Has_Class_Wide_Actual): Alphabetize. Change the
1973 logic of the predicate as the renamed name may not necessarely
1974 denote the correct subprogram.
1976 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
1978 * sem_ch7.adb: Fix minor oversight in condition.
1980 2014-08-01 Bob Duff <duff@adacore.com>
1982 * projects.texi: Minor documentation improvements.
1984 2014-08-01 Robert Dewar <dewar@adacore.com>
1986 * aspects.ads, aspects.adb: Add aspect No_Elaboration_Code_All.
1987 * gnat_rm.texi: Document No_Elaboration_Code_All pragma and aspect.
1988 * lib-load.adb: Initialize No_Elab_Code_All field.
1989 * lib-writ.adb: Initialize No_Elab_Code_All.
1990 * lib.ads, lib.adb: New field No_Elab_Code_All.
1991 * par-prag.adb: Add dummy entry for pragma No_Elaboration_Code_All.
1992 * restrict.ads, restrict.adb: Restriction No_Elaboration_Code_All no
1994 * sem_ch10.adb (Analyze_Context): Processing for
1995 No_Elaboration_Code_All removed.
1996 (Generate_Parent_References): Moved to Sem_Util.
1997 * sem_prag.adb: Add processing for pragma No_Elaboration_Code_All.
1998 * sem_util.ads, sem_util.adb (Get_Parent_Entity): Moved here from
2000 * snames.ads-tmpl: Add entry for pragma No_Elaboration_Code_All.
2001 * targparm.adb: Minor comment updates Add comments on ignoring
2002 pragma No_Elaboration_Code_All.
2004 2014-08-01 Nicolas Roche <roche@adacore.com>
2006 * adaint.c (__gnat_set_close_on_exec): Ensure that
2007 we can unset "close_on_exec" flag.
2009 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2011 * exp_ch9.adb (Build_Wrapper_Spec, Replicate_Formals): When building
2012 the parameter specs of the wrapper program for a primitive operation
2013 of a synchronized type that implements an interface, copy the
2014 null_exclusion indicator as well.
2016 2014-08-01 Robert Dewar <dewar@adacore.com>
2018 * sem_eval.ads: Minor reformatting.
2020 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2022 * exp_ch3.adb (Build_Initialization_Call): Call Underlying_Type
2023 to go down the chain of private derivations.
2024 * freeze.adb (Freeze_Entity): Fix typo in comment.
2026 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2028 * sem_ch3.adb (Access_Type_Declaration): If designated type is
2029 a limited view, create a master entity (as is already done for
2030 class-wide types) in case the full view designates a type that
2032 * sem_ch8.adb (Find_Selected_Component): If prefix is a dereference
2033 and the designated type is a limited view, use the non-limited
2036 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2038 * gcc-interface/ada-tree.h (DECL_BY_DESCRIPTOR_P): Delete.
2039 (DECL_FUNCTION_STUB): Likewise.
2040 (SET_DECL_FUNCTION_STUB): Likewise.
2041 (DECL_PARM_ALT_TYPE): Likewise.
2042 (SET_DECL_PARM_ALT_TYPE): Likewise.
2043 (TYPE_VAX_FLOATING_POINT_P): Delete.
2044 (TYPE_DIGITS_VALUE): Likewise.
2045 (SET_TYPE_DIGITS_VALUE): Likewise.
2046 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_malloc32_decl.
2047 (malloc32_decl): Delete.
2048 (build_vms_descriptor): Likewise.
2049 (build_vms_descriptor32): Likewise.
2050 (fill_vms_descriptor): Likewise.
2051 (convert_vms_descriptor): Likewise.
2052 (TARGET_ABI_OPEN_VMS): Likewise.
2053 (TARGET_MALLOC64): Likewise.
2054 * gcc-interface/decl.c (add_parallel_type_for_packed_array): New.
2055 (gnat_to_gnu_entity): Call it to add the original type as a parallel
2056 type to the implementation type of a packed array type.
2057 <E_Procedure>: Remove now obsolete kludge.
2058 <E_Exception>: Delete obsolete comment.
2059 <object>: Small tweak.
2060 <E_Subprogram_Type>: Remove support for stub subprograms, as well as
2061 for the descriptor passing mechanism.
2062 (gnat_to_gnu_param): Likewise.
2063 * gcc-interface/misc.c (gnat_init_gcc_fp): Remove special case.
2064 (gnat_print_type): Adjust.
2065 * gcc-interface/trans.c (gigi): Remove obsolete initializations.
2066 (vms_builtin_establish_handler_decl): Delete.
2067 (gnat_vms_condition_handler_decl): Likewise.
2068 (establish_gnat_vms_condition_handler): Likewise.
2069 (build_function_stub): Likewise.
2070 (Subprogram_Body_to_gnu): Do not call above functions.
2071 (Call_to_gnu): Remove support for the descriptor passing mechanism.
2072 * gcc-interface/utils.c (make_descriptor_field): Delete.
2073 (build_vms_descriptor32): Likewise.
2074 (build_vms_descriptor): Likewise.
2075 (fill_vms_descriptor): Likewise.
2076 (convert_vms_descriptor64): Likewise.
2077 (convert_vms_descriptor32): Likewise.
2078 (convert_vms_descriptor): Likewise.
2079 * gcc-interface/utils.c (unchecked_convert): Likewise.
2080 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove obsolete stuff.
2082 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2084 * gcc-interface/trans.c (gigi): Use gnat_to_gnu_type for the exception
2085 type and get_unpadded_type for the longest FP type.
2086 (Attribute_to_gnu) <Machine>: Compare the precision of the types.
2087 (convert_with_check): Adjust formatting and remove FIXME.
2089 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2091 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
2092 Do not convert the RM bounds to the base type.
2093 (E_Floating_Point_Subtype): Likewise.
2094 (E_Array_Subtype): Convert the bounds to the base type.
2095 * gcc-interface/trans.c (get_type_length): New function.
2096 (Attribute_to_gnu) <Range_Length>: Call it.
2098 (Loop_Statement_to_gnu): Convert the bounds to the base type.
2099 (gnat_to_gnu) <N_In>: Likewise.
2100 * gcc-interface/utils.c (make_type_from_size): Do not convert the RM
2101 bounds to the base type.
2102 (create_range_type): Likewise.
2103 (convert): Convert the bounds to the base type for biased types.
2104 * gcc-interface/utils2.c (compare_arrays): Convert the bounds to the
2107 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2109 * gcc-interface/trans.c (gnat_to_gnu) <N_Selected_Component>: Remove
2110 incorrect implicit type derivation.
2111 * gcc-interface/utils.c (max_size) <tcc_reference>: Convert the bounds
2114 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2116 * sem_attr.adb (Analyze_Attribute): Preanalyze and resolve the
2117 prefix of attribute Loop_Entry.
2118 * sem_prag.adb (Analyze_Pragma): Verify the placement of pragma
2119 Loop_Variant with respect to an enclosing loop (if any).
2120 (Contains_Loop_Entry): Update the parameter profile and all
2121 calls to this routine.
2122 * sem_res.adb (Resolve_Call): Code reformatting. Do not ask
2123 for the corresponding body before determining the nature of the
2124 ultimate alias's declarative node.
2126 2014-08-01 Robert Dewar <dewar@adacore.com>
2128 * gnat1drv.adb, sem_ch4.adb: Minor reformatting.
2130 2014-08-01 Robert Dewar <dewar@adacore.com>
2132 * sem_eval.adb (Rewrite_In_Raise_CE): Don't try to reuse inner
2133 constraint error node since it is a list member.
2135 2014-08-01 Robert Dewar <dewar@adacore.com>
2137 * sem_warn.adb: Minor reformatting.
2139 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2141 * einfo.adb (Underlying_Type): Return the underlying full view
2142 of a private type if present.
2143 * freeze.adb (Freeze_Entity):
2144 Build a single freeze node for partial, full and underlying full
2146 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Private_Type>: Add a
2147 missing guard before the access to the Underlying_Full_View.
2148 * gcc-interface/trans.c (process_freeze_entity): Deal with underlying
2149 full view if present.
2150 * gcc-interface/utils.c (make_dummy_type): Avoid superfluous work.
2152 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2154 * sem_res.adb (Resolve_Entry_Call): When an entry has
2155 preconditions, the entry call is wrapped in a procedure call
2156 that incorporates the precondition checks. To prevent a double
2157 expansion, with possible duplication of extra formals, that
2158 procedure call must only be pre-analyzed and resolved. Expansion
2159 takes place upon return to the caller Resolve_Call.
2161 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2163 * sem_res.adb (Resolve_Call): Do not perform
2164 GNATprove-specific inlining while within a generic.
2166 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2168 * sem_ch4.adb (Analyze_Case_Expression): Handle properly a
2169 case expression with incompatible alternatives, when the first
2170 alternative is overloaded.
2172 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2174 * sem_res.adb (Check_Parameterless_Call): Use Relocate_Node
2175 to create the name of the parameterless call, rather than
2176 New_Copy, to preserve the tree structure when the name is a
2177 complex expression, e.g. a selected component that denotes a
2178 protected operation, whose prefix is itself a selected component.
2180 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2182 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use
2183 Unit_Declaration_Node to retrieve body when inlining, to handle
2184 properly subprogram child units.
2186 2014-08-01 Robert Dewar <dewar@adacore.com>
2188 * sem_attr.adb: Minor reformatting.
2190 2014-08-01 Vincent Celier <celier@adacore.com>
2192 * debug.adb: Minor documentation addition for -dn switch.
2194 2014-08-01 Robert Dewar <dewar@adacore.com>
2196 * sem_aggr.adb, exp_ch9.adb, sem_prag.adb, sem_util.adb,
2197 sem_attr.adb, sem_eval.ads, sem_cat.adb, sem_ch13.adb: Improve
2198 documentation of Is_Static_Expression vs Is_OK_Static_Expression.
2199 In several places, use the Is_OK version as suggested by the spec.
2201 2014-08-01 Vincent Celier <celier@adacore.com>
2203 * gnatcmd.adb: Revert last change which was not correct.
2205 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2207 * freeze.adb (Find_Constant): Ensure that the constant being
2208 inspected is still an object declaration (i.e. not a renaming).
2210 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2212 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): a)
2213 An attribute_reference to Loop_Entry denotes an iterator
2214 specification: its prefix is an object, as is the case for 'Old.
2215 b) If the domain of iteration is an expression whose type has
2216 the Iterable aspect defined, this is an iterator specification.
2218 2014-08-01 Robert Dewar <dewar@adacore.com>
2220 * gnatcmd.adb: Minor reformatting.
2222 2014-08-01 Robert Dewar <dewar@adacore.com>
2224 * atree.ads (Info_Messages): New counter.
2225 * err_vars.ads: Minor comment update.
2226 * errout.adb (Delete_Warning_And_Continuations): Deal
2227 with new Info_Messages counter.
2228 (Error_Msg_Internal): ditto.
2229 (Delete_Warning): ditto.
2230 (Initialize): ditto.
2231 (Write_Error_Summary): ditto.
2232 (Output_Messages): ditto.
2233 (To_Be_Removed): ditto.
2234 * erroutc.adb (Delete_Msg): Deal with Info_Messages counter.
2235 (Compilation_Errors): ditto.
2236 * errutil.adb (Error_Msg): Deal with Info_Messages counter.
2238 (Initialize): ditto.
2239 * sem_prag.adb (Analyze_Pragma): Minor comment addition.
2240 * gnat_ugn.texi: Document that -gnatwe does not affect info
2243 2014-08-01 Robert Dewar <dewar@adacore.com>
2245 * debug.adb: Document debug switch -gnatd.Z.
2246 * sem.adb (Semantics): Force expansion on in no or configurable
2249 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2251 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): An
2252 unchecked conversion denotes an iterator specification. Such a
2253 conversion will be inserted in the context of an inlined call
2254 when needed, and its argument is always an object.
2256 2014-08-01 Robert Dewar <dewar@adacore.com>
2258 * make.adb, makeutl.ads: Minor reformatting.
2259 * debug.adb, opt.ads: Clarify documentation of Front_End_Inlining and
2262 2014-08-01 Tristan Gingold <gingold@adacore.com>
2264 * gnatcmd.adb (GNATCmd): Set AAMP_On_Target using command name.
2266 2014-08-01 Javier Miranda <miranda@adacore.com>
2268 * gnat1drv.adb (Adjust_Global_Switches): Reverse meaning of
2270 * debug.adb: Updating documentation.
2271 * exp_ch6.adb (Expand_Call): Remove assertion.
2273 2014-08-01 Robert Dewar <dewar@adacore.com>
2275 * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, sem_util.adb,
2276 sem_res.adb: Minor reformatting.
2278 2014-08-01 Vincent Celier <celier@adacore.com>
2280 * make.adb (Initialize): Set Keep_Temporary_Files to True when
2282 * makeusg.adb: Add line for new switch --keep-temp-files.
2283 * makeutl.ads (Keep_Temp_Files_Option): New constant String.
2284 * opt.ads (Keep_Temporary_Files): Document that it is also used
2285 by gnatmake and gprbuild.
2286 * switch-m.adb: Recognize new switch --keep-temp-files.
2288 2014-08-01 Tristan Gingold <gingold@adacore.com>
2290 * sem_ch9.adb (Analyze_Task_Type_Declaration): Move code from ...
2291 * exp_ch9.adb (Make_Task_Create_Call): ... here.
2293 2014-08-01 Vincent Celier <celier@adacore.com>
2295 * gnat1drv.adb: Do not try to get the target parameters when
2296 invoked with -gnats.
2298 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2300 * exp_ch7.adb (Find_Last_Init): Nothing to do for an object
2301 declaration subject to No_Initialization.
2303 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2305 * sem_aggr.adb (Resolve_Array_Aggregate): Reject choice that
2306 is a subtype with dynamic predicates, or a non-static subtype
2308 * sem_ch3.adb (Analyze_Number_Declaration): Reject qualified
2309 expression if subtype has a dynamic predicate.
2310 (Constrain_Index): Reject subtype indication if subtype mark
2312 (Inerit_Predicate_Flags): Inherit Has_Predicates as well.
2313 (Make_Index): If index is a subtype indication, itype inhereits
2314 predicate flags for subsequent testing.
2315 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): New
2316 procedure Check_Predicate_Use, to reject illegal uses of domains
2317 of iteration that have dynamic predicates.
2318 * sem_res.adb (Resolve_Slice): Reject slices given by a subtype
2319 indication to which a predicate applies.
2320 * sem_util.adb (Bad_Predicated_Subtype_Use): Add guard to
2321 prevent cascaded errors when subtype is invalid.
2323 2014-08-01 Robert Dewar <dewar@adacore.com>
2325 * sem_ch10.adb: Minor reformatting.
2327 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2329 * sem_ch6.adb (Same_Generic_Actual): Make function symmetric,
2330 because either type may be a subtype of the other.
2332 2014-08-01 Vincent Celier <celier@adacore.com>
2334 * makeusg.adb: Add documentation for debug switch -dn.
2336 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2338 * sem_dim.adb (Process_Minus, Process_Divide): Label dimension
2339 expression with standard operator and type, for pretty-printing
2340 use, when in ASIS_Mode. When generating code dimensional analysis
2341 is not involved and dimension expressions are handled statically,
2342 and other operators are resolved in the usual way.
2344 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2346 * sem_ch3.adb (Build_Derived_Record_Type): Remove setting of
2347 Parent_Subtype in ASIS mode, leads to several failures.
2348 * sem_ch4.adb (Analyze_Selected_Component): In an instance,
2349 if the prefix is a type extension, check whether component is
2350 declared in the parent type, possibly in a parent unit. Needed
2351 in ASIS mode when Parent_Subtype is not set.
2353 2014-08-01 Robert Dewar <dewar@adacore.com>
2355 * sem_prag.adb: Minor reformatting.
2356 * s-regpat.adb: Minor reformatting.
2357 * sem_ch3.adb (Analyze_Object_Declaration): Do not set
2358 Treat_As_Volatile on constants.
2360 2014-08-01 Tristan Gingold <gingold@adacore.com>
2362 * exp_ch9.adb (Make_Task_Create_Call): Improve error message.
2364 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2366 * sem_ch10.adb (Analyze_Compilation_Unit): Do not place a
2367 warning on a with_clause created for the renaming of a parent
2368 unit in an explicit with_clause.
2370 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2372 * sem_ch13.adb (Analyze_Aspect_Specifications, case Aspect_Import):
2373 Set Is_Imported flag at once, to simplify subsequent legality
2374 checks. Reject the aspect on an object whose declaration has an
2375 explicit initial value.
2376 * sem_prag.adb (Process_Import_Or_Interface): Use original node
2377 to check legality of an initial value for an imported entity.
2378 Set Is_Imported flag in case of error to prevent cascaded errors.
2379 Do not set the Is_Imported flag if the pragma comes from an
2380 aspect, because it is already done when analyzing the aspect.
2382 2014-08-01 Emmanuel Briot <briot@adacore.com>
2384 * g-regpat.adb (Parse): Add support for non-capturing parenthesis.
2386 2014-08-01 Robert Dewar <dewar@adacore.com>
2388 * sem_ch7.adb, einfo.adb, einfo.ads, sem_ch13.adb: Minor change of
2391 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2393 * sem_ch3.adb (Analyze_Object_Contract): Enable the volatility
2394 checks when the related variable comes from source.
2395 * sem_res.adb (Resolve_Actuals): Enable the volatility checks
2396 when the related actual parameter comes from source. Update comment.
2397 * freeze.adb (Freeze_Record_Type): Do not freeze the designated
2398 type of an array of pointers when the designated type is
2399 class-wide and its root type is the record being currently frozen.
2401 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2403 * sem_ch5.adb (Analyze_Iterator_Specification): Preserve Ekind
2404 of renaming declaration created for domain of iteration.
2405 * sem_aggr.adb (Resolve_Array_Aggregate): Better placement
2406 for error messages on aggregates whose index subtypes have
2407 predicates. The new placement avoids posting messages on previous
2408 subtype declarations rather than on the aggregate itself.
2409 * sem_disp.adb (Is_Inherited_Public_Operation): New predicate for
2410 Add_Dispatching_Operation, to handle properly the overriding of
2411 the predefined operations on controlled types, when the partial
2412 view of a type is not visibly controlled.
2414 2014-08-01 Ben Brosgol <brosgol@adacore.com>
2416 * gnat_ugn.texi: Add tutorial on portable fixed-point types as an
2419 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2421 * einfo.adb (Is_Hidden_Non_Overridden_Subprogram): Remove the
2422 assertion check as the attribute is defined for all entities.
2423 (Set_Is_Hidden_Non_Overridden_Subprogram): Remove the assertion
2424 check as the attribute is defined for all entities.
2425 * einfo.ads Update the documentation of attribute
2426 Is_Hidden_Non_Overridden_Subprogram.
2427 * sem_ch7.adb (Install_Package_Entity): No need to check the
2428 entity kind of the Id.
2429 * sem_ch13.adb (Hide_Matching_Homograph): Update the comment on
2430 usage. Ensure that the homographs are of the same entity kind
2431 and not fully conformant.
2432 (Hide_Non_Overridden_Subprograms): Update the comment on usage.
2434 2014-08-01 Robert Dewar <dewar@adacore.com>
2436 * inline.adb: Minor code reorganization.
2437 * sem_ch12.adb, s-tasdeb.ads: Minor reformatting.
2439 2014-08-01 Robert Dewar <dewar@adacore.com>
2441 * inline.adb, s-os_lib.ads: Minor reformatting.
2443 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2445 * s-tasdeb.ads, s-tasdeb.adb (Master_Hook, Master_Completed_Hook): New.
2446 * s-tassta.adb (Task_Wrapper, Vulnerable_Complete_Master): Call new
2449 2014-08-01 Yannick Moy <moy@adacore.com>
2451 * inline.adb (Cannot_Inline): Issue info message instead of
2452 warning for subprograms not inlined in GNATprove mode.
2453 * sem_res.adb (Resolve_Call): Take body into account for deciding
2454 whether subprogram can be inlined in GNATprove mode or not.
2456 2014-08-01 Claire Dross <dross@adacore.com>
2458 * exp_util.ads (Get_First_Parent_With_Ext_Axioms_For_Entity): Renaming
2459 of Get_First_Parent_With_External_Axiomatization_For_Entity for
2461 * sem_ch12.adb (Analyze_Associations): Only call Build_Wrapper
2462 for parameters of packages with external axiomatization.
2464 2014-08-01 Robert Dewar <dewar@adacore.com>
2466 * sem_res.adb: Minor comment addition.
2468 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2470 * s-crtl.ads, i-cstrea.ads, adaint.c, adaint.h, osint.adb,
2471 s-fileio.adb (__gnat_fopen, __gnat_freopen): Remove vms_form parameter,
2473 * s-os_lib.ads: Minor reformatting.
2475 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2477 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Restore more
2478 completely previous code since only GCC back-ends are prepared
2479 to handle e.g. 'Machine attribute.
2480 * targparm.adb, targparm.ads: Remove remaining refs and
2481 handling of OpenVMS_On_Target, VAX_Float_On_Target and
2482 RTX_RTSS_Kernel_Module_On_Target.
2483 * hostparm.ads (OpenVMS, Max_Debug_Name_Length): Removed,
2486 2014-08-01 Robert Dewar <dewar@adacore.com>
2488 * exp_dist.adb, exp_attr.adb: Minor reformatting.
2489 * sem_ch3.adb, mlib-tgt-specific-hpux.adb, a-direct.ads,
2490 a-synbar-posix.adb, exp_ch9.adb, sem_ch10.adb, sem_prag.adb,
2491 sem_ch12.adb, sem.ads, sem_res.adb, s-exctra.adb, s-soflin.ads,
2492 g-alveop.ads, sem_ch8.adb, vxaddr2line.adb, sem_cat.ads: Remove
2493 improper use of shall.
2495 2014-08-01 Robert Dewar <dewar@adacore.com>
2497 * sem_aggr.adb, exp_atag.adb, layout.adb, nlists.adb, nlists.ads,
2498 exp_attr.adb, exp_ch9.adb, par-ch12.adb, exp_aggr.adb,
2499 exp_ch3.adb: Minor reformatting & code reorganization.
2501 2014-08-01 Robert Dewar <dewar@adacore.com>
2503 * gnat_rm.texi: Remove VMS specific rules for pragma Ident.
2504 * Makefile.rtl, adaint.c, gnat_rm.texi, s-asthan.adb, s-asthan.ads,
2505 s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2506 s-po32gl.adb, s-po32gl.ads, s-vaflop.adb, s-vaflop.ads, s-vmexta.adb,
2507 s-vmexta.ads, sem_vfpt.adb, sem_vfpt.ads, socket.c: Remove VMS specific
2509 * gcc-interface/decl.c, gcc-interface/Makefile.in,
2510 gcc-interface/Make-lang.in: Ditto. Also remove refs to rTX.
2512 2014-08-01 Pascal Obry <obry@adacore.com>
2514 * s-os_lib.ads: Rename File_Size to Large_File_Size.
2516 2014-08-01 Robert Dewar <dewar@adacore.com>
2518 * a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
2519 a-numaux-darwin.adb, a-numaux-darwin.ads, a-numaux.ads,
2520 a-numaux-libc-x86.ads: Fix bad package header comments.
2521 * elists.ads, elists.adb (Append_New_Elmt): New procedure.
2522 * gnat_rm.texi, a-calend.adb, gnatcmd.adb, einfo.adb, einfo.ads,
2523 checks.adb, sem_prag.adb, sem_prag.ads, rtsfind.ads, freeze.adb,
2524 sem_util.adb, sem_attr.adb, exp_dbug.adb, exp_dbug.ads, gnat1drv.adb,
2525 targparm.adb, targparm.ads, exp_ch6.adb, switch-b.adb, s-shasto.ads,
2526 stand.ads, s-auxdec.ads, opt.adb, opt.ads, mlib-tgt.ads, s-fatgen.adb,
2527 s-fatgen.ads, system.ads, snames.ads-tmpl, s-stalib.ads,
2528 s-os_lib.adb: Remove VMS-specific code.
2530 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2532 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): Revert to
2533 previous state in CodePeer_Mode.
2535 2014-08-01 Robert Dewar <dewar@adacore.com>
2537 * hostparm.ads: Put back definition of OpenVMS as False to aid
2538 the transition process.
2539 * sem_ch7.adb: Minor reformatting.
2540 * prj-env.adb: Minor code fix.
2541 * gnat_rm.texi: Complete previous change.
2542 * sem_ch3.adb: Minor reformatting.
2543 * sem_ch6.adb: Minor reformatting.
2544 * sem_elab.adb: Minor reformatting.
2545 * exp_strm.adb: Complete previous change.
2547 2014-08-01 Vincent Celier <celier@adacore.com>
2549 * sem_warn.adb (Warn_On_Unreferenced_Entity): Do not issue a
2550 warning when a constant is unreferenced and its type has pragma
2551 Unreferenced_Objects.
2553 2014-08-01 Hristian Kirtchev <kirtchev@adacore.com>
2555 * einfo.adb: Flag2 is now known as
2556 Is_Hidden_Non_Overridden_Subprogram.
2557 (Is_Hidden_Non_Overridden_Subprogram): New routine.
2558 (Set_Is_Hidden_Non_Overridden_Subprogram): New routine.
2559 (Write_Entity_Fields): Output Flag2.
2560 * einfo.ads: New attribute Is_Hidden_Non_Overridden_Subprogram
2561 along with occurrences in entities.
2562 (Is_Hidden_Non_Overridden_Subprogram): New routine and pragma Inline.
2563 (Set_Is_Hidden_Non_Overridden_Subprogram): New routine
2565 * sem_ch7.adb (Install_Package_Entity): Do not enter implicitly
2566 declared non-overriden homographs into visibility.
2567 * sem_ch13.adb (Freeze_Entity_Checks): Hide all
2568 implicitly declared non-overriden homographs.
2569 (Hide_Non_Overridden_Subprograms): New routine.
2571 2014-08-01 Robert Dewar <dewar@adacore.com>
2573 * snames.ads-tmpl, s-os_lib.adb, s-os_lib.ads, s-fileio.adb: Remove
2575 * prj-conf.adb: Minor reformatting.
2576 * xr_tabls.adb (Read_File): Restore code which was enabled on
2577 non VMS platforms before.
2578 * prj-env.adb (Initialize_Default_Project_Path): Ditto.
2579 * sem_ch5.adb: Minor reformatting.
2580 * lib-writ.adb, lib-writ.ads, bindgen.adb, sem_vfpt.adb,
2581 sem_vfpt.ads, ali.adb, ali.ads, opt.ads, bcheck.adb, exp_strm.adb:
2582 Remove VMS-specific code.
2584 2014-08-01 Vincent Celier <celier@adacore.com>
2586 * make.adb (Await_Compile): Remove loop that was only needed
2589 2014-08-01 Robert Dewar <dewar@adacore.com>
2591 * a-calcon.ads, a-direct.adb, a-dirval-mingw.adb, a-dirval.adb,
2592 a-dirval.ads, a-except-2005.adb, a-excpol-abort.adb,
2593 a-numaux-darwin.ads, a-numaux.ads, bindgen.adb, bindusg.adb,
2594 einfo.adb, einfo.ads, err_vars.ads, errout.ads, errutil.adb,
2595 exp_ch3.adb, exp_ch4.adb, exp_ch7.adb, exp_ch7.ads, fname-uf.adb,
2596 fname.adb, fname.ads, freeze.adb, g-debpoo.adb, g-dirope.ads,
2597 g-excact.ads, g-expect.ads, g-socket.adb, g-socket.ads, g-sothco.ads,
2598 g-traceb.ads, gnat_rm.texi, gnatlink.adb, gnatls.adb, i-cstrea.adb,
2599 krunch.adb, krunch.ads, layout.adb, lib-util.adb, make.adb,
2600 mlib.adb, osint-b.adb, osint-b.ads, osint-c.adb, osint.adb,
2601 osint.ads, output.ads, par.adb, prj-conf.adb, prj-env.adb,
2602 prj-makr.adb, prj-nmsc.adb, prj.adb, prj.ads, repinfo.adb, rtsfind.adb,
2603 rtsfind.ads, s-excmac-gcc.ads, s-fatgen.adb, s-mastop.ads,
2604 s-parame-ae653.ads, s-parame-hpux.ads, s-parame-vxworks.ads,
2605 s-parame.ads, s-soflin.ads, s-stoele.adb, s-tasini.adb,
2606 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-mingw.ads,
2607 s-taspri-posix-noaltstack.ads, s-taspri-posix.ads,
2608 s-taspri-solaris.ads, s-taspri-vxworks.ads, s-trasym.ads,
2609 sem_ch12.adb, sem_ch4.adb, sem_eval.adb, sem_intr.adb, sem_mech.adb,
2610 sem_mech.ads, sem_prag.adb, sem_res.adb, sem_util.adb, sem_util.ads,
2611 sinfo.adb, sinfo.ads, sinput-c.adb, symbols.ads, targparm.adb,
2612 treepr.adb, types.ads, xr_tabls.adb, xr_tabls.ads: Remove VMS
2613 specific code and comments.
2615 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2617 * sem_ch5.adb (Analyze_Iterator_Specification): New procedure
2618 Check_Reverse_Iteration, to verify the legality of the Reverse
2619 indicator on various container types, and to detect illegal
2620 reverse iterations on containers that only supoort forward
2623 2014-08-01 Vincent Celier <celier@adacore.com>
2625 * gnatcmd.adb: Remove the VMS specific stuff. Integrate in
2626 procedure GNATCmd the relevant declarations from packages VMS_Cmds
2628 * gnatcmd.ads: Update comments to remove any trace of VMS
2630 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2632 * sem_ch12.adb: sem_ch12.adb (Build_Wrapper): Capture entity for
2633 defaulted actual that is an operator, before building wrapper
2634 for it in GNATprove mode. Restrict construction of wrapper to
2635 actuals that are operators.
2637 2014-08-01 Vincent Celier <celier@adacore.com>
2639 * vms_conv.adb, vms_conv.ads, vms_data.ads, vms_cmds.ads: Remove VMS
2640 specific packages no longer needed.
2642 2014-08-01 Pascal Obry <obry@adacore.com>
2644 * s-os_lib.ads (System.CRTL): Move with clause to body.
2645 (File_Size): New type.
2646 (File_Length64): Use it.
2647 (File_Length): Restore previous spec returning a Long_Integer.
2648 * s-os_lib.adb (System.CRTL): Move with clause here.
2650 2014-08-01 Vincent Celier <celier@adacore.com>
2652 * mlib-prj.adb: Update comments to remove any mention of VMS.
2654 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2656 * ug_words, xgnatugn.adb, gcc-interface/Make-lang.in: Remove
2657 xgnatugn.adb and ug_words.
2659 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2661 * exp_attr.adb (Expand_N_Attribute_Reference): Check whether
2662 expansion can be avoid for Machine, Model and Rounding.
2663 (Is_Inline_Floating_Point_Attribute): Return true for Machine
2664 & Model, as well as Rounding if wrapped in a conversion to an
2666 * sem_res.adb (Simplify_Type_Conversion): Deal with Rounding as well.
2667 * gcc-interface/gigi.h (fp_arith_may_widen): Declare.
2668 * gcc-interface/utils.c (fp_arith_may_widen): New global variable.
2669 * gcc-interface/misc.c (enumerate_modes): Compute it.
2670 * gcc-interface/trans.c (FP_ARITH_MAY_WIDEN): Delete.
2671 (lvalue_required_for_attribute_p): Deal with Descriptor_Size,
2673 (Attribute_to_gnu) <Attr_Model>: New case.
2674 <Attr_Machine>): Likewise.
2675 (convert_with_check): Test
2676 fp_arith_may_widen variable.
2678 2014-08-01 Pascal Obry <obry@adacore.com>
2680 * adaint.h (GNAT_FOPEN): New definition for Windows.
2681 (GNAT_OPEN): Likewise.
2682 (GNAT_STAT): Likewise.
2683 (GNAT_FSTAT): Likewise.
2684 (GNAT_LSTAT): Likewise.
2685 (GNAT_STRUCT_STAT): Likewise.
2686 * adaint.c (__gnat_stat): Fix computation of file size for
2689 2014-08-01 Vincent Celier <celier@adacore.com>
2691 * Makefile.rtl: Minor comment update.
2693 2014-08-01 Vincent Celier <celier@adacore.com>
2695 * Make-generated.in: Remove dependencies for vms-help.
2697 2014-08-01 Gary Dismukes <dismukes@adacore.com>
2699 * makeutl.ads, opt.ads: Minor grammar fixes.
2700 * makeutl.adb: Minor code reorganization.
2702 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2704 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in,
2705 gnatsym.adb: Remove gnatsym (VMS only tool).
2707 2014-08-01 Ben Brosgol <brosgol@adacore.com>
2709 * gnat_ugn.texi, projects.texi, xgnatugn.adb: Removed all VMS
2710 conditionalization from gnat_ugn.texi and projects.texi, and updated
2711 (considerably simplified) xgnatugn.adb, to be removed soon.
2713 2014-08-01 Vincent Celier <celier@adacore.com>
2715 * debug.adb: Remove doc for gnatmake/gprbuild switch -ds.
2716 * make.adb (List_Bad_Compilations): Use Opt.No_Exit_Message
2717 instead of Debug.Debug_Flag_S.
2718 * makeutl.adb (Finish_Program, Fail_Program): Use Opt flag
2719 No_Exit_Message instead of Debug.Debug_Flag_S to suppress exit
2721 * makeutl.ads (No_Exit_Message_Option): New constant string
2722 for switch --no-exit-message.
2723 * opt.ads (No_Exit_Message): New Boolean flag, defaulted to False.
2724 * switch-m.adb (Scan_Make_Switches): Recognize new switch
2727 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2729 * exp_vfpt.adb, exp_vfpt.ads: Removed, no longer used.
2730 * gcc-interface/Make-lang.in: Remove exp_vfpt.o
2732 2014-08-01 Javier Miranda <miranda@adacore.com>
2734 * inline.ads (Inlined_Calls, Backend_Calls,
2735 Backend_Inlined_Subps, Backend_Not_Inlined_Subps): Declarations
2736 moved to inline.adb (Cannot_Inline): Update documentation.
2737 (Check_And_Build_Body_To_Inline): Renamed.
2738 (List_Inlining_Info): Subprogram moved here from package exp_ch6.
2739 * inline.adb (Check_Inlining_Restrictions): New local variable.
2740 (Inlined_Calls, Backend_Calls, Backend_Inlined_Subps,
2741 Backend_Not_Inlined_Subps): Declarations moved here
2742 from inline.ads (Number_Of_Statements): Removed.
2743 (Remove_Pragmas): Avoid duplicated version of this subprogram.
2744 (Build_Body_To_Inline): Code cleanup.
2745 (Build_Body_To_Inline.Has_Excluded_Statament): Removed.
2746 (Check_And_Build_Body_To_Inline): Renamed. Code cleanup.
2747 (Check_Body_To_Inline): Removed.
2748 (Generate_Body_To_Inline): Renamed as Generate_Subprogram_Body.
2749 (Has_Excluded_Declaration): No action if not
2750 Check_Inlining_Restrictions.
2751 (Has_Excluded_Statement): No action if not Check_Inlining_Restrictions.
2752 (Initialize): Initialize the lists of inlined calls and subprograms.
2753 (List_Inlining_Info): Subprogram moved here from package exp_ch6.
2754 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Update call
2755 to Check_And_Build_Body_To_Inline since it has been renamed as
2756 Check_And_Split_Unconstrained_Function
2757 * exp_ch6.ad[sb] (List_Inlining_Info): Subprogram moved to
2759 * gnat1drv.adb Update call to Inline.List_Inlining_Info.
2761 2014-08-01 Vincent Celier <celier@adacore.com>
2763 * debug.adb: Add documentation for new debug switch -ds.
2764 * make.adb (List_Bad_Compilations): Do not issue any message
2765 when switch -ds is specified.
2766 * makeutl.adb (Fail_Program): Do not issue any message when
2768 (Finish_Program): Ditto.
2770 2014-08-01 Robert Dewar <dewar@adacore.com>
2772 * s-exnint.adb, s-exnint.ads, s-wwdwch.ads, s-carsi8.ads,
2773 s-casi32.ads, indepsw.adb, a-timoau.ads, s-explli.adb, s-explli.ads,
2774 s-casi16.ads, s-powtab.ads, g-wistsp.ads, a-ztmoau.adb,
2775 indepsw-gnu.adb, s-imgllb.ads, types.adb, gnat.ads, s-proinf.adb,
2776 indepsw-aix.adb, s-caun64.ads, s-imgllw.ads, s-traces-default.adb,
2777 s-vxwork-x86.ads, s-expllu.adb, s-exnlli.adb, s-exnlli.ads,
2778 s-traces.adb, widechar.ads, stand.adb, s-expint.adb,
2779 s-tratas-default.adb, s-expint.ads, s-geveop.ads, s-caun32.ads,
2780 s-expuns.adb, s-mantis.adb, s-mantis.ads, s-caun16.ads, s-tasinf.adb,
2781 s-memcop.ads, s-dsaser.ads, s-imgbiu.ads, a-szmzco.ads, g-strspl.ads,
2782 s-casi64.ads, g-zstspl.ads, indepsw-mingw.adb, tree_io.adb,
2783 s-boarop.ads, uname.ads, s-fore.adb, s-fore.ads, g-timsta.adb,
2784 g-timsta.ads, s-assert.adb, s-vector.ads, s-tratas.adb,
2785 s-tratas.ads: Minor fix to copyright notices.
2787 2014-08-01 Eric Botcazou <ebotcazou@adacore.com>
2789 * sinfo.ads: Remove long obsolete comment.
2790 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2792 * sem_util.adb: Add guard to setting of No_Predicate_On_Actual.
2793 * sem_ch3.adb: Minor reformatting.
2795 2014-08-01 Pascal Obry <obry@adacore.com>
2797 * cstreams.c: Only enable large file support on know supported
2798 platforms. Add missing defines/includes.
2800 2014-08-01 Ed Schonberg <schonberg@adacore.com>
2802 * einfo.ads, einfo.adb New flags No_Predicate_On_Actual and
2803 No_Dynamic_Predicate_On_Actual, to enforce the generic contract
2804 on generic units that contain constructs that forbid subtypes
2806 * sem_ch3.adb (Analyze_Subtype_Declaration, Process_Subtype):
2807 Inherit flags indicating the presence of predicates in subtype
2808 declarations with and without constraints.
2809 (Inherit_Predicate_Flags): Utility for the above.
2810 * sem_util.adb (Bad_Predicated_Subtype_Use): In a generic context,
2811 indicate that the actual cannot have predicates, and preserve
2812 warning. In an instance, report error if actual has predicates
2813 and the construct appears in a package declaration.
2814 * sem_ch12.adb (Diagnose_Predicated_Actual): Report error
2815 for an actual with predicates, if the corresponding formal
2816 carries No_Predicate_On_Actual or (in the case of a loop)
2817 No_Dynamic_Predicate_On_Actual.
2818 * sem_ch13.adb (Build_Predicate_Functions); Do not build a
2819 Static_Predicate function if the type is non-static (in the
2820 presence of previous errors),
2821 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Set flag
2822 No_Dynamic_Predicate_On_Actual in a generic context, to enforce
2823 generic contract on actuals that cannot have predicates.
2825 2014-08-01 Pascal Obry <obry@adacore.com>
2827 * a-direct.adb (C_Size): Returns an int64.
2828 * osint.adb (System.CRTL): New with clause.
2829 (File_Length.Internal): Returns an int64.
2830 * s-os_lib.ads (File_Length): Returns an int64.
2832 2014-08-01 Robert Dewar <dewar@adacore.com>
2834 * gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
2835 mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
2836 osint.adb, krunch.adb: Minor reformatting.
2838 2014-08-01 Robert Dewar <dewar@adacore.com>
2840 * inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
2841 sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
2842 sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
2843 Remove VMS-specific code.
2844 * gcc-interface/decl.c, gcc-interface/trans.c: Ditto.
2846 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2848 * binde.adb, bindgen.adb, butil.adb, clean.adb, gnatbind.adb,
2849 gnatchop.adb, gnatcmd.adb, gnatls.adb, gnatname.adb, krunch.adb,
2850 make.adb, makeutl.adb, memtrack.adb, mlib-prj.adb, mlib.adb,
2851 mlib.ads, tempdir.adb: Remove VMS handling.
2853 2014-08-01 Pascal Obry <obry@adacore.com>
2855 * adaint.h, adaint.c (__gnat_file_length): Returns an __int64.
2856 (__gnat_named_file_length): Likewise.
2857 (__gnat_file_length_attr): Likewise.
2858 * a-direct.adb (C_Size): Use size_t as returned type.
2859 * osint.adb (File_Length): Adjust spec for Internal routine
2861 * s-os_lib.adb (File_Length): Now returns a CRTL.size_t.
2862 (System.CRTL): With claused moved to spec.
2863 * s-os_lib.ads (System.CRTL): With clause moved to here.
2865 2014-08-01 Pascal Obry <obry@adacore.com>
2867 * adaint.h, adaint.c (__gnat_open): Added.
2868 * s-crtl.ads (open): Import __gnat_open for large file support.
2870 2014-08-01 Robert Dewar <dewar@adacore.com>
2872 * sem_case.adb (Dup_Choice): Improve message for integer constants.
2874 2014-08-01 Arnaud Charlet <charlet@adacore.com>
2876 * gnatlink.adb: Remove special handling of VMS, RTX and JVM.
2878 2014-08-01 Pascal Obry <obry@adacore.com>
2880 * adaint.h (GNAT_OPEN): Defines as open64 where supported.
2881 * adaint.c (GNAT_OPEN): Uses new macro where needed.
2883 2014-07-31 Eric Botcazou <ebotcazou@adacore.com>
2885 * gcc-interface/utils.c (lookup_and_insert_pad_type): New function
2887 (maybe_pad_type): ...here. Call it to canonicalize the pad type.
2888 * gcc-interface/gigi.h: Update comment.
2890 2014-07-31 Javier Miranda <miranda@adacore.com>
2892 * debug.adb Remove documentation of -gnatd.k (no longer needed).
2893 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Code cleanup.
2894 * inline.ads (Backend_Inlined_Subps): New
2895 Elist. (Backend_Not_Inlined_Subps): New Elist.
2896 (Has_Excluded_Declaration): Declaration previously located in
2897 * inline.adb (Has_Excluded_Statement): Declaration previously
2898 located in inline.adb
2899 * inline.adb (Has_Single_Return): Moved out of
2900 Build_Body_To_Inline to avoid having duplicated code.
2901 (Number_Of_Statements): New subprogram.
2902 (Register_Backend_Inlined_Subprogram): New subprogram.
2903 (Register_Backend_Not_Inlined_Subprogram): New subprogram.
2904 (Add_Inlined_Subprogram): Register backend inlined subprograms and
2905 also register subprograms that cannot be inlined by the backend.
2906 (Has_Excluded_Declaration): Moved out of Build_Body_To_Inline
2907 to avoid having duplicated code. Replace occurrences of
2908 Debug_Flag_Dot_K by Back_End_Inlining.
2909 * sem_res.adb (Resolve_Call): Code cleanup.
2910 * exp_ch6.adb (Expand_Call): Complete previous patch. Replace
2911 occurrence of Debug_Flag_Dot_K by Back_End_Inlining.
2912 (List_Inlining_Info): Add listing of subprograms passed to the
2913 backend and listing of subprograms that cannot be inlined by
2915 * sem_ch12.adb, sem_ch3.adb Replace occurrences of
2916 Debug_Flag_Dot_K by Back_End_Inlining.
2918 2014-07-31 Robert Dewar <dewar@adacore.com>
2920 * nlists.ads: Minor code fix (remove unwise Inline for
2923 2014-07-31 Arnaud Charlet <charlet@adacore.com>
2925 * einfo.adb: Remove VMS specific code.
2926 * exp_attr.adb: Remove VAX specific code.
2927 * set_targ.adb: Remove handling of VAX_Float.
2928 * sem_vfpt.adb: Remove references to Vax_Native.
2929 * sem_attr.adb (Is_VAX_Float): Remove ref to VAX_Native.
2931 2014-07-31 Robert Dewar <dewar@adacore.com>
2933 * sem_ch4.adb: Minor reformatting.
2935 2014-07-31 Arnaud Charlet <charlet@adacore.com>
2937 * gcc-interface/trans.c, gcc-interface/misc.c: Remove references
2938 to VMS. Misc clean ups.
2939 * gcc-interface/Makefile.in (gnatlib-shared-vms): Remove.
2941 2014-07-31 Robert Dewar <dewar@adacore.com>
2943 * cstand.adb, einfo.adb, einfo.ads, errout.adb, exp_attr.adb,
2944 exp_prag.adb, frontend.adb, interfac.ads,
2945 par-prag.adb, s-auxdec.ads, s-filofl.ads, s-fishfl.ads, s-fvadfl.ads,
2946 s-fvaffl.ads, s-fvagfl.ads, s-vaflop.ads, sem_attr.adb, sem_attr.ads,
2947 sem_ch13.adb, sem_ch3.adb, sem_ch8.adb, sem_prag.adb, snames.adb-tmpl,
2948 snames.ads-tmpl: Remove obsolete VMS-specific code.
2950 2014-07-31 Robert Dewar <dewar@adacore.com>
2952 * sem_ch3.adb, sem_ch13.adb: Minor reformatting.
2954 2014-07-31 Arnaud Charlet <charlet@adacore.com>
2956 * a-intnam-linux.ads: Minor: update obsolete comments.
2957 * s-taasde.adb: Minor: fix comment header.
2959 2014-07-31 Arnaud Charlet <charlet@adacore.com>
2961 * s-auxdec-vms-ia64.adb, s-parame-vms-alpha.ads, s-asthan-vms-alpha.adb,
2962 s-tpopde-vms.adb, s-mastop-vms.adb, s-tpopde-vms.ads, s-taprop-vms.adb,
2963 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads, s-inmaop-vms.adb,
2964 g-enblsp-vms-alpha.adb, s-ransee-vms.adb, s-osprim-vms.adb,
2965 s-osprim-vms.ads, g-socthi-vms.adb, g-socthi-vms.ads, system-vms_64.ads,
2966 s-osinte-vms.adb, s-osinte-vms.ads, g-eacodu-vms.adb,
2967 s-vaflop-vms-alpha.adb, s-parame-vms-ia64.ads, a-dirval-vms.adb,
2968 a-caldel-vms.adb, mlib-tgt-specific-vms-alpha.adb, s-tasdeb-vms.adb,
2969 symbols-vms.adb, a-intnam-vms.ads, g-expect-vms.adb,
2970 symbols-processing-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2971 s-traent-vms.adb, s-traent-vms.ads, i-cstrea-vms.adb, a-numaux-vms.ads,
2972 symbols-processing-vms-ia64.adb, s-interr-vms.adb, s-memory-vms_64.adb,
2973 s-memory-vms_64.ads, g-enblsp-vms-ia64.adb, s-taspri-vms.ads,
2974 s-auxdec-vms_64.ads, s-intman-vms.adb, s-intman-vms.ads,
2975 s-tpopsp-vms.adb, s-asthan-vms-ia64.adb, a-calend-vms.adb,
2976 a-calend-vms.ads, system-vms-ia64.ads, s-auxdec-vms-alpha.adb: Removed.
2977 * namet.h (Is_Non_Ada_Error): Remove.
2979 2014-07-31 Robert Dewar <dewar@adacore.com>
2981 * exp_util.adb, lib-writ.adb, sem_ch12.adb, s-direio.adb: Minor
2984 2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2986 * exp_attr.adb (Expand_Loop_Entry_Attribute): Update the comment
2987 which demonstrates the expansion of while loops subject to
2988 attribute 'Loop_Entry. The condition of a while loop along with
2989 related condition actions is now wrapped in a function. Instead
2990 of repeating the condition, the expansion now calls the function.
2992 2014-07-31 Ed Schonberg <schonberg@adacore.com>
2994 * sem_case.adb (Check_Against_Predicate): Correct off-by-one
2995 error when reporting of missing values in a case statement for
2996 a type with a static predicate.
2997 (Check_Choices): Reject a choice given by a subtype to which a
2998 Dynamic_Predicate applies.
2999 * sem_ch3.adb (Analyze_Subtype_Declaration): Inherit
3000 Has_Dynamic_Predicate_Aspect flag from parent.
3002 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3004 * sem_ch13.adb (Analyze_Aspect_Specifications): A predicate
3005 cannot apply to a subtype of an incomplete type.
3006 (Is_Static_Choice): Treat an Others_Clause as static. The
3007 staticness of the expression and of the range are checked
3010 2014-07-31 Pascal Obry <obry@adacore.com>
3012 * adaint.h (__gnat_ftell64): Added.
3013 (__gnat_fseek64): Added.
3015 * cstreams.c (__int64): Removed.
3017 2014-07-31 Pascal Obry <obry@adacore.com>
3019 * a-stream.ads (Stream_Element_Offset): Now a signed 64bit type.
3020 * i-cstrea.ads, s-crtl.ads (fseek64): Offset is always a 64bit value.
3021 (ftell64): Always returns a 64bit value.
3022 * cstreams.c (int64): New definition.
3023 (_FILE_OFFSET_BITS): Set to 64 to enable 64bit offset support.
3024 (__gnat_ftell64): Always returns a 64bit value. The implemenation now
3025 uses ftello() on UNIX.
3026 (__gnat_fseek64): Offset is always a 64bit value. The
3027 implementation now uses fseeko() on UNIX.
3028 * a-ststio.adb, s-direio.adb (Set_Position): Simplify code,
3029 always use fseek64 to set the offset.
3030 (Size): Simplify code, always use fseek64/ftell64.
3031 * s-direio.ads (Count): Now an int64.
3032 * g-socket.ads (Vector_Element): Adjust definition for Length
3033 to be a size_t. This matches the C definition and avoid using
3034 a 64bit integer on 32bit platforms now that Count is always 64bit.
3035 * g-socthi-mingw.adb (Ada.Streams): Removed as not used anymore.
3036 (C_Recvmsg): Change some conversion to account for change in
3038 (C_Sendmsg): Likewise.
3040 2014-07-31 Robert Dewar <dewar@adacore.com>
3042 * cstand.adb (Create_Standard): Remove handling of -gnatdm flag.
3043 * debug.adb: Remove documentation of -gnatdm flag.
3044 * gnat1drv.adb (Adjust_Global_Switches): Remove handling of
3047 2014-07-31 Arnaud Charlet <charlet@adacore.com>
3049 * lib-writ.adb (Write_Unit_Information): Fix case where U =
3052 2014-07-31 Claire Dross <dross@adacore.com>
3054 * exp_util.adb, exp_util.ads
3055 (Get_First_Parent_With_External_Axiomatization_For_Entity):
3056 New routine to find the first parent of an entity with
3057 a pragma Annotate (GNATprove, External_Axiomatization).
3058 (Has_Annotate_Pragma_For_External_Axiomatization): New function
3059 to check if a package has a pragma Annotate (GNATprove,
3060 External_Axiomatization).
3061 * einfo.ads, einfo.adb (Is_Generic_Actual_Subprogram): New
3062 flag on the entity for the declaration created for a formal
3063 subprogram in an instance. This is a renaming declaration,
3064 or in GNATprove_Mode the declaration of an expression function
3065 that captures the axiomatization of the actual.
3066 * sem_ch6.adb (Analyze_Expression_Function): For a
3067 Generic_Actual_Subprogram, place body immediately after the
3068 declaration because it may be used in a subsequent declaration
3070 * sem_ch12.adb (Build_Wrapper): Add code to handle instances where
3071 the actual is a function, not an operator. Handle functions with
3072 one and two parameters and binary and unary operators.
3074 2014-07-31 Pascal Obry <obry@adacore.com>
3076 * cstreams.c (__gnat_is_regular_file_fd): Removed.
3077 * adaint.c (__gnat_is_regular_file_fd): Added.
3079 2014-07-31 Robert Dewar <dewar@adacore.com>
3081 * exp_strm.adb: Minor reformatting.
3083 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3085 * sem_ch12.adb (Build_Wrapper): New procedure, subsidiary to
3086 Analyze_Associations, to create a wrapper around operators that
3087 are actuals to formal subprograms. This is done in GNATProve
3088 mode in order to propagate the contracts of the operators to
3089 the body of the instance.
3091 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3093 * sem_attr.adb (Analyze_Attribute, case 'Old): The reference is
3094 legal if within an aspect specification for a generic subprogram.
3096 2014-07-31 Javier Miranda <miranda@adacore.com>
3098 * gnat1drv.adb (Back_End_Inlining): Set to false if
3099 Suppress_All_Inlining is set.
3100 * debug.adb: Adding documentation for -gnatd.z.
3101 * inline.adb (Add_Inlined_Body): Extend the -gnatn2
3102 processing to -gnatn1 for calls to Inline_Always routines.
3103 (Add_Inlined_Subprogram): Remove previous patch.
3105 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3107 * sem_ch13.adb (Check_One_Function): Apply properly the static
3108 semantic rules for indexing aspects and the functions they denote.
3110 2014-07-31 Javier Miranda <miranda@adacore.com>
3112 * debug.adb: Complete documentation of -gnatd.z.
3114 2014-07-31 Bob Duff <duff@adacore.com>
3116 * gnat_ugn.texi: Minor doc fixes.
3118 2014-07-31 Robert Dewar <dewar@adacore.com>
3120 * sem_aggr.adb (Resolve_Array_Aggregate): Fix posting of missing
3123 2014-07-31 Tristan Gingold <gingold@adacore.com>
3125 * s-unstyp.ads (Packed_Byte): Make this type universal aliasing.
3126 (Packed_Bytes1): Make component aliased.
3128 2014-07-31 Robert Dewar <dewar@adacore.com>
3130 * s-unstyp.ads, s-fileio.adb: Minor reformatting.
3132 2014-07-31 Robert Dewar <dewar@adacore.com>
3134 * inline.adb, gnat1drv.adb, exp_ch6.adb, s-fileio.adb: Minor
3137 2014-07-31 Eric Botcazou <ebotcazou@adacore.com>
3139 * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
3140 on array references here, now done more selectively in trans.c.
3142 2014-07-31 Doug Rupp <rupp@adacore.com>
3144 * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
3146 2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3148 * sem_util.adb (Is_Effectively_Volatile): New routine.
3150 2014-07-31 Fedor Rybin <frybin@adacore.com>
3152 * gnat_ugn.texi: Document --test-duration option for gnattest.
3154 2014-07-31 Javier Miranda <miranda@adacore.com>
3155 Eric Botcazou <ebotcazou@adacore.com>
3157 * opt.ads (Back_End_Inlining): New variable which controls
3158 activation of inlining by back-end expansion.
3159 * gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
3160 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
3161 the body to be inlined by the frontend if Back_End_Inlining
3163 * exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
3164 (Expand_Call): If backend inlining is enabled let the backend to
3165 handle inlined subprograms.
3166 * inline.ads (Register_Backend_Call): Moved here from exp_ch6
3167 * inline.adb (Register_Backend_Call): Moved here from exp_ch6.
3168 (Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
3169 (Must_Inline): Do not return Inline_Call if Back_End_Inlining is
3171 * debug.adb Document -gnatd.z
3172 * fe.h Import Back_End_Inlining variable.
3173 * gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
3174 enabled then declare attribute "always inline"
3175 * gcc-interface/decl.c, gcc-interface/trans.c,
3176 gcc-interface/gigi.h: Add handling of Inline_Always pragma.
3178 2014-07-31 Robert Dewar <dewar@adacore.com>
3180 * a-ngelfu.ads: Minor comment fix.
3182 2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3184 * freeze.adb (Freeze_Record_Type): Replace all calls to
3185 Is_SPARK_Volatile with Is_Effectively_Volatile and update
3187 * sem_ch3.adb (Analyze_Object_Contract, Process_Discriminants):
3188 Replace all calls to Is_SPARK_Volatile with
3189 Is_Effectively_Volatile and update related comments.
3190 * sem_ch5.adb (Analyze_Iterator_Specification,
3191 Analyze_Loop_Parameter_Specification): Replace all calls to
3192 Is_SPARK_Volatile with Is_Effectively_Volatile and update
3194 * sem_ch6.adb (Process_Formals): Replace all calls to
3195 Is_SPARK_Volatile with Is_Effectively_Volatile and update
3197 * sem_ch12.adb (Instantiate_Object): Replace the call to
3198 Is_SPARK_Volatile_Object with Is_Effectively_Volatile_Object
3199 and update related comment.
3200 * sem_prag.adb (Analyze_External_Property_In_Decl_Part,
3201 Analyze_Global_Item): Replace all calls to Is_SPARK_Volatile
3202 with Is_Effectively_Volatile and update related comments.
3203 * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Replace
3204 all calls to Is_SPARK_Volatile with Is_Effectively_Volatile and
3205 update related comments.
3206 * sem_util.adb (Has_Enabled_Property,
3207 Variable_Has_Enabled_Property): Replace all calls
3208 to Is_SPARK_Volatile with Is_Effectively_Volatile and
3209 update related comments.
3210 (Is_Effectively_Volatile): New routine.
3211 (Is_Effectively_Volatile_Object): New routine.
3212 (Is_SPARK_Volatile): Removed.
3213 (Is_SPARK_Volatile_Object): Removed.
3214 * sem_util.ads (Is_Effectively_Volatile): New routine.
3215 (Is_Effectively_Volatile_Object): New routine.
3216 (Is_SPARK_Volatile): Removed.
3217 (Is_SPARK_Volatile_Object): Removed.
3219 2014-07-31 Pascal Obry <obry@adacore.com>
3221 * s-fileio.adb (Open): Make sure a shared file gets inserted into
3222 the global list atomically. This ensures that the file descriptor
3223 won't be freed because another tasks is closing the file.
3225 2014-07-31 Robert Dewar <dewar@adacore.com>
3227 * sem_ch3.adb (Process_Range_Expr_In_Decl): Add comments on
3228 generation of _FIRST and _LAST variables even in GNATprove_Mode.
3229 * gnat_ugn.texi: Minor editing.
3230 * sem_prag.adb (Ensure_Aggregate_Form): Make sure generated
3231 aggregate is marked Comes_From_Source if argument is CFS.
3233 2014-07-31 Pascal Obry <obry@adacore.com>
3235 * s-fileio.adb: Remove obsolete comment.
3237 2014-07-31 Vincent Celier <celier@adacore.com>
3239 * a-strbou.ads ("=" (Bounded_String, Bounded_String): Add
3240 overriding keyword before function to avoid error when compiler
3241 is called with -gnatyO (check overriding indicators).
3243 2014-07-31 Tucker Taft <taft@adacore.com>
3245 * gnat_ugn.texi: Add a paragraph pointing the reader
3246 to the "plugins" example.
3248 2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3250 * freeze.adb (Freeze_Expression): Document the
3251 purpose of the parent chain traversal.
3253 2014-07-31 Robert Dewar <dewar@adacore.com>
3255 * checks.ads, checks.adb (Activate_Overflow_Check): Do not set flag for
3256 unconstrained fpt ops.
3258 2014-07-31 Pascal Obry <obry@adacore.com>
3260 * s-fileio.adb (Open): Make sure a shared file gets inserted into
3261 the global list atomically. This ensures that the file descriptor
3262 won't be freed because another tasks is closing the file.
3264 2014-07-31 Vincent Celier <celier@adacore.com>
3266 * projects.texi: Minor spelling error fix.
3268 2014-07-31 Robert Dewar <dewar@adacore.com>
3270 * gnat_rm.texi: Document No_Elaboration_Code_All restriction.
3271 * lib-writ.adb, lib-load.adb: Initialize No_Elab_Code field in unit
3273 * lib.ads, lib.adb (No_Elab_Code): New field in unit information.
3274 * restrict.adb (Process_Restriction_Synonyms): Add handling
3275 of No_Elaboration_Code_All.
3276 * restrict.ads (Process_Restriction_Synonyms): Now handles
3277 No_Elaboration_Code_All.
3278 * sem_ch10.adb (Analyze_Context): Enforce transitive with for
3279 No_Elaboration_Code_All.
3280 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
3281 Handle setting of No_Elab_Code in unit information. Handle
3282 No_Elaboration_Code_All.
3283 * snames.ads-tmpl (Name_No_Elaboration_Code): New name for
3285 (Name_No_Elaboration_Code_All): New name for pragma processing.
3287 2014-07-31 Eric Botcazou <ebotcazou@adacore.com>
3289 * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
3290 types with a null range and use the Esize of the component
3291 instead of its RM_Size to identify appropriate values.
3293 2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3295 * freeze.adb Add with and use clause for Aspects.
3296 (Freeze_Expression): Emit an error when a volatile constant lacks
3297 Boolean aspect Import.
3298 (Has_Boolean_Aspect_Import): New routine.
3300 2014-07-31 Gary Dismukes <dismukes@adacore.com>
3302 * exp_util.adb: Minor reformatting.
3304 2014-07-31 Vincent Celier <celier@adacore.com>
3306 * errutil.adb (Error_Msg): Make sure that all components of
3307 the error message object are initialized.
3309 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3311 * sem_ch4.adb (Try_Container_Indexing): If the container type is
3312 class-wide, use specific type to locate iteration primitives.
3313 * sem_ch13.adb (Check_Indexing_Functions): Add legality checks for
3314 rules in RM 4.1.6 (Illegal_Indexing): New diagnostic procedure.
3315 Minor error message reformating.
3316 * exp_ch5.adb (Expand_Iterator_Loop): Handle properly Iterator
3317 aspect for a derived type.
3319 2014-07-31 Robert Dewar <dewar@adacore.com>
3321 * debug.adb: Document debug flag d.X.
3323 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3325 * sem_util.ads (Find_Specific_Type): Moved here from exp_disp.adb.
3326 * sem_util.adb (Find_Specific_Type): If type is untagged private,
3327 retrieve full view so that primitive operations can be located.
3328 * exp_disp.adb Move Find_Specific_Type to sem_util.
3329 * exp_ch4.adb (Expand_N_Op_Eq): If operands are class-wide, use
3330 Find_Specific_Type to locate primitive equality.
3331 * exp_util.adb (Make_CW_Equivalent_Type): A class_wide equivalent
3332 type does not require initialization.
3333 * exp_attr.adb (Compile_Stream_Body_In_Scope): Within an instance
3334 body all visibility is established, and the enclosing package
3335 declarations must not be installed.
3337 2014-07-31 Yannick Moy <moy@adacore.com>
3339 * sem_parg.adb, sem_prag.ads (Collect_Subprogram_Inputs_Outputs):
3340 Make subprogram public.
3342 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3344 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): New
3345 predicate Discriminated_Size, to distinguish between private
3346 components that depend on discriminants from those whose size
3347 depends on some other non-static expression.
3349 2014-07-31 Nicolas Setton <setton@adacore.com>
3351 * g-exptty.adb (Close): Fix binding to Waitpid: use the
3354 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3356 * sem_ch3.adb (Make_Index): Reject properly the use of 'Length
3357 in a discrete range, when 'range was probably intended.
3359 2014-07-31 Robert Dewar <dewar@adacore.com>
3361 * sem_warn.adb, sem_warn.ads (Has_Junk_Name): Moved from body to spec.
3363 2014-07-31 Robert Dewar <dewar@adacore.com>
3365 * frontend.adb: Minor reformatting.
3366 * sem.adb: Minor reformatting.
3367 * sem_ch6.adb (Analyze_Null_Procedure): Set proper sloc for
3368 identifiers on rewrite.
3369 * par.adb: Minor comment updates.
3370 * a-ngelfu.adb (Cos): Minor simplification.
3371 * par-ch13.adb (Get_Aspect_Specifications): Improve messages
3372 and recovery for bad aspect.
3373 * exp_ch3.adb: Code clean up.
3374 * sem_util.ads: Minor comment correction.
3375 * sem_ch13.adb (Check_Array_Type): Properly handle large types.
3376 * sem_ch3.adb: Code clean up.
3377 * binderr.ads: Minor comment correction.
3379 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3381 * exp_disp.adb (Expand_Interface_Conversion): A call whose
3382 prefix is a static conversion to an interface type that is not
3383 class-wide is not dispatching.
3385 2014-07-31 Robert Dewar <dewar@adacore.com>
3387 * inline.adb, s-traceb.adb, s-traceb-hpux.adb, memtrack.adb,
3388 s-traceb-mastop.adb: Minor reformatting.
3390 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3392 * exp_ch3.adb (Expand_Record_Extension): In ASIS_Mode perform
3393 expansion, to handle properly visibility of selected components
3396 2014-07-31 Robert Dewar <dewar@adacore.com>
3398 * par-ch13.adb (Get_Aspect_Specifications): Set Inside_Depends.
3399 * par-ch2.adb (P_Pragma): Set Inside_Depends.
3400 * par-ch4.adb (P_Simple_Expression): Pass Inside_Depends to
3401 Check_Unary_Plus_Or_Minus.
3402 * scans.ads (Inside_Depends): New flag.
3403 * scng.adb (Scan): Pass Inside_Depends to Check_Arrow.
3404 * style.ads: Add Inside_Depends parameter to Check_Arrow Add
3405 Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
3406 * styleg.adb (Check_Arrow): Handle Inside_Depends case.
3407 (Check_Unary_Plus_Or_Minus): Handle Inside_Depends case.
3408 * styleg.ads: Add Inside_Depends parameter to Check_Arrow Add.
3409 Inside_Depends parameter to Check_Unary_Plus_Or_Minus.
3411 2014-07-31 Javier Miranda <miranda@adacore.com>
3413 * s-vaflop.adb Move the body of function T_To_G before
3414 T_To_D. Required for frontend inlining.
3415 * inline.adb (Has_Excluded_Contract): New subprogram used to
3416 check if a subprogram inlined by the frontend has contracts
3417 which cannot be inlined.
3419 2014-07-31 Bob Duff <duff@adacore.com>
3421 * s-traceb.adb, s-traceb-hpux.adb, s-traceb-mastop.adb:
3422 (Call_Chain): Add 1 to number of frames to skip, to account for
3423 the fact that there's one more frame on the stack.
3424 * gcc-interface/Makefile.in (s-traceb.o): Adjust rules.
3426 2014-07-31 Robert Dewar <dewar@adacore.com>
3428 * checks.adb (Enable_Overflow_Check): More precise setting of
3429 Do_Overflow_Check flag for division.
3431 2014-07-31 Eric Botcazou <ebotcazou@adacore.com>
3433 * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject packed
3434 array types with implementation type.
3436 2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3438 * sem_ch10.adb (Process_State): Remove local variable Name. Add
3439 local variable Decl. Partially declare an abstract state by
3440 generating an entity and storing it in the state declaration.
3441 * sem_prag.adb (Create_Abstract_State): Fully declare a
3442 semi-declared abstract state.
3444 2014-07-31 Robert Dewar <dewar@adacore.com>
3446 * prj-nmsc.adb: Minor reformatting.
3448 2014-07-31 Bob Duff <duff@adacore.com>
3450 * s-tasdeb.adb (System.Tasking.Debug): Remove
3451 all usage of the secondary stack from this package.
3453 2014-07-31 Hristian Kirtchev <kirtchev@adacore.com>
3455 * freeze.adb (Freeze_Expression): Update the loop in charge
3456 of finding a proper insertion place for freeze nodes to handle
3457 N_Expression_With_Actions nodes.
3459 2014-07-31 Robert Dewar <dewar@adacore.com>
3461 * sem_util.adb, a-ngelfu.ads, prj-nmsc.adb, prj-conf.adb: Minor
3464 2014-07-31 Pascal Obry <obry@adacore.com>
3466 * prj-nmsc.adb: Minor reformatting.
3468 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3470 * sem_util.adb (Has_Preelaborable_Initialization): Check that
3471 type is tagged before checking whether a user-defined Initialize
3472 procedure is present.
3474 2014-07-31 Gary Dismukes <dismukes@adacore.com>
3476 * a-ngelfu.ads (Sqrt): Augment postcondition.
3478 2014-07-31 Pascal Obry <obry@adacore.com>
3480 * prj-nmsc.adb (Check_Library_Attributes): An aggegate library
3481 directory and ALI directory must be different than all object
3482 and library directories of aggregated projects.
3484 2014-07-31 Vincent Celier <celier@adacore.com>
3486 * prj-pars.adb, prj-conf.ads, prj-conf.adb (Locate_Runtime): Move spec
3487 to package body, as it is not called from outside. Remove argument
3488 Project_Tree, no longer used. When runtime cannot be found,
3489 call Raise_Invalid_Config instead of failing the program.
3491 2014-07-31 Robert Dewar <dewar@adacore.com>
3493 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Suppress
3495 * gnatlink.adb (Process_Args): Remove generation of -gnato0,
3498 2014-07-31 Robert Dewar <dewar@adacore.com>
3500 * gnat_ugn.texi: Document new switch -gnato0.
3501 * sem_ch3.ads: Minor reformatting.
3502 * gnatlink.adb (Process_Args): Compile bind file with -gnato0
3503 (we do not want overflow checks when incrementing elaboration
3505 * einfo.ads: Minor reformatting.
3507 2014-07-31 Robert Dewar <dewar@adacore.com>
3509 * exp_ch5.adb, freeze.adb, exp_ch3.adb: Minor comment correction.
3510 * s-arit64.adb: Minor reformatting.
3512 2014-07-31 Robert Dewar <dewar@adacore.com>
3514 * gnat1drv.adb (Adjust_Global_Switches): Default for overflow
3515 checking is enabled except in GNAT_Mode.
3516 * switch-c.adb (Scan_Front_End_Switches): Implement -gnato0
3517 (suppress overflow checks).
3519 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3521 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not build an
3522 invariant procedure for an internally generated subtype that is
3523 created for an object of a class-wide type.
3525 2014-07-31 Vincent Celier <celier@adacore.com>
3527 * prj-nmsc.adb, errutil.adb: Make code similar to Errout.
3529 2014-07-31 Gary Dismukes <dismukes@adacore.com>
3531 * gnat_rm.texi, sem_aux.ads, einfo.ads, sem_util.ads, sem_ch6.adb,
3532 exp_disp.adb: Minor reformatting.
3534 2014-07-31 Robert Dewar <dewar@adacore.com>
3536 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, exp_ch9.adb,
3537 sem_ch7.adb, checks.adb, s-exctra.adb, exp_ch6.adb, exp_disp.adb,
3538 exp_dist.adb, sem_ch13.adb, exp_strm.adb, exp_ch3.adb: Minor
3541 2014-07-31 Robert Dewar <dewar@adacore.com>
3543 * sem_ch13.adb: Minor reformatting.
3545 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3547 * exp_ch3.adb (Build_Invariant_Checks): If the enclosing record
3548 is an unchecked_union, warn that invariants will not be checked
3549 on components that have them.
3551 2014-07-31 Robert Dewar <dewar@adacore.com>
3553 * freeze.adb (Freeze_Entity): Check for error of
3554 Type_Invariant'Class applied to a untagged type.
3555 * sem_ch6.adb (Analyze_Null_Procedure): Unconditionally rewrite
3556 as null body, so that we perform error checks even if expansion
3559 2014-07-31 Ed Schonberg <schonberg@adacore.com>
3561 * sem_ch13.adb (Build_Invariant_Procedure): If body of procedure
3562 is already present, nothing to do.
3563 * exp_ch3.adb (Build_Component_Invariant_Call): For an access
3564 component, check whether the access type has an invariant before
3565 checking the designated type.
3566 (Build_Record_Invariant_Proc): Change suffix of generated
3567 name to prevent ambiguity when record type has invariants
3568 in addition to those of components, and two subprograms are
3569 constructed. Consistent with handling of array types.
3570 (Insert_Component_Invariant_Checks): Build invariant procedure
3571 body when one has not been created yet, in the case of composite
3572 types that are completions and whose full declarations carry
3575 2014-07-30 Thomas Quinot <quinot@adacore.com>
3577 * gnat_rm.texi: Minor doc fixes.
3579 2014-07-30 Robert Dewar <dewar@adacore.com>
3581 * a-rbtgbo.adb, sem_ch13.adb: Minor reformatting.
3583 2014-07-30 Vincent Celier <celier@adacore.com>
3585 * errutil.adb (Set_Msg_Text): Process tilde ('~'): no processing
3587 * prj-nmsc.adb (Locate_Directory): Use a tilde ('~') in the
3588 message to report that a directory cannot be created, to avoid
3589 processing of the directory path that may contains special
3590 insertion characters.
3592 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3594 * a-crdlli.ads: Place declaration of Empty_List after full type
3595 declaration for Curosr, to prevent freezing error.
3597 2014-07-30 Robert Dewar <dewar@adacore.com>
3599 * get_targ.adb: Minor code reorganization.
3600 * prj-proc.adb, prj-proc.ads, get_targ.ads, sem_ch6.adb: Minor
3603 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3605 * a-cbhase.adb: a-cbhase.adb (Insert): Raise Constraint_Error,
3606 not Program_Error, when attempting to remove an element not in
3607 the set. This is the given semantics for all set containers.
3609 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3611 * a-rbtgbo.adb (Delete_Node_Sans_Free): If
3612 element is not present in tree return rather than violating
3613 an assertion. Constraint_Error will be raised in the caller if
3614 element is not in the container.
3616 2014-07-30 Arnaud Charlet <charlet@adacore.com>
3618 * set_targ.adb (Read_Target_Dependent_Values): New subprogram.
3619 (elab body): Add provision for default target config file.
3620 * get_targ.ads, get_targ.adb (Get_Back_End_Config_File): New subprogram.
3622 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3624 * a-cbhase.adb (Delete): Raise Constraint_Error, not Program_Error,
3625 when attempting to remove an element not in the set. This is
3626 the given semantics for all set containers.
3627 * a-cborse.adb (Delete): Attempt removal first, to check for
3628 tampering, before checking whether this is an attempt to
3629 delete a non-existing element, and in fthe latter case raise
3632 2014-07-30 Vincent Celier <celier@adacore.com>
3634 * prj-proc.adb (Recursive_Process): Do not create a new
3635 Project_Id if the project is already in the list of projects of
3638 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3640 * sem_ch6.adb (Analyze_Function_Return): Reject a return expression
3641 whose type is an incomplete formal type.
3642 (Analyze_Return_Type): Reject a return type that is an untagged
3643 imcomplete formal type.
3644 (Process_Formals): Reject a formal parameter whose type is an
3645 untagged formal incomplete type.
3646 * sem_res.adb (Resolve_Actuals): Reject an actual whose type is
3647 an untagged formal incomplete type.
3649 2014-07-30 Robert Dewar <dewar@adacore.com>
3651 * gnat_ugn.texi: Minor spelling correction.
3652 * makeutl.adb: Minor code reorganization.
3653 * exp_ch4.adb, exp_aggr.adb, exp_ch3.adb: Minor reformatting.
3655 2014-07-30 Robert Dewar <dewar@adacore.com>
3657 * einfo.ads (Has_Unchecked_Union): Document that this is used
3658 to check for illegal Valid_Scalars attribute references.
3659 * exp_attr.adb (Build_Record_VS_Func): New function
3660 (Expand_N_Attribute_Reference, case Valid_Scalars): Call this
3662 * gnat_rm.texi: Document 'Valid_Scalars cannot be applied to
3663 Unchecked_Union Add note on 'Valid_Scalars generating a lot
3665 * sem_attr.adb (Analyze_Attribute, case Valid_Scalars): Give
3666 error on attempt to apply Valid_Scalars to Unchecked_Union type.
3668 2014-07-30 Steve Baird <baird@adacore.com>
3670 * exp_ch4.adb (Expand_N_Indexed_Component): Disable optimized handling
3671 of A(I..J)(K) in CodePeer_Mode.
3673 2014-07-30 Ben Brosgol <brosgol@adacore.com>
3675 * gnat_ugn.texi: Fix typo.
3677 2014-07-30 Thomas Quinot <quinot@adacore.com>
3679 * lib-writ.ads: document format change.
3681 2014-07-30 Pascal Obry <obry@adacore.com>
3683 * prj-util.adb (For_Interface_Sources): Do not
3684 include sources from withed externally built projects.
3686 2014-07-30 Robert Dewar <dewar@adacore.com>
3688 * lib.adb: Minor reformatting.
3689 * prj-util.adb: Minor reformatting.
3691 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3693 * exp_aggr.adb (Build_Record_Aggr_Code): For an array component
3694 that depends on discriminants, and which is given by an others
3695 clause, create an explicit subtype with the discriminant values
3696 of the enclosing aggregate, because the backend cannot otherwise
3697 retrieve the actual bounds of the array.
3699 2014-07-30 Fedor Rybin <frybin@adacore.com>
3701 * gnat_ugn.texi: Improve gnattest documentation.
3703 2014-07-30 Pascal Obry <obry@adacore.com>
3705 * makeutl.adb (Insert_Project_Sources): Properly handle sources
3706 that are aggregated. We want to include sources not only part
3707 of libraries but also if part of an aggregated project from an
3709 * prj.adb (For_Project_And_Aggregated_Context): Properly check
3710 state of root project.
3712 2014-07-30 Thomas Quinot <quinot@adacore.com>
3714 * lib-load.ads: Minor reformatting.
3715 * sinfo.ads (Library_Unit): Update comment.
3716 * lib.ads (Notes): Simplify. The Unit component in Notes_Entry
3717 is redundant. Instead used the pragma Node_Id directly as the
3720 2014-07-30 Thomas Quinot <quinot@adacore.com>
3722 * lib.adb (Store_Note): Store only notes that do not come from
3723 an instance, and that are in the extended main source unit.
3724 * lib-writ (Write_Unit_Information): Annotations from subunits
3725 must be emitted along with those for the main unit, and they
3726 must carry a specific file name.
3727 * ali.ads (Notes_Record): Use a File_Name_Type instead of a
3728 Unit_Id for the source file containing the pragma, as in the
3729 case of annotations from subunits we might not have a readily
3731 * ali.adb (Scan_ALI): Account for above change in data structure.
3733 2014-07-30 Vincent Celier <celier@adacore.com>
3735 * makeutl.adb (Insert_Project_Sources): When the library project
3736 is an aggregate Stand-Alone Library, insert in the queue the
3737 Ada interface units, with Closure set to True;
3739 2014-07-30 Eric Botcazou <ebotcazou@adacore.com>
3741 * sem_util.adb: Fix minor typo.
3742 * makeutl.adb: Minor reformatting.
3744 2014-07-30 Robert Dewar <dewar@adacore.com>
3746 * exp_ch7.adb, checks.adb, makeutl.adb, makeutl.ads: Minor reformatting.
3748 2014-07-30 Yannick Moy <moy@adacore.com>
3750 * checks.ads: Fix typo in comment.
3752 2014-07-30 Pierre-Marie Derodat <derodat@adacore.com>
3754 * sem_util.adb (Set_Debug_Info_Needed): For scalar types, recurse on
3755 entities that materialize range bounds, if any.
3757 2014-07-30 Vincent Celier <celier@adacore.com>
3759 * projects.texi: Minor spelling fix.
3761 2014-07-30 Hristian Kirtchev <kirtchev@adacore.com>
3763 * checks.adb (Make_Bignum_Block): Use the new secondary stack
3764 build routines to manage the mark.
3765 * exp_ch7.adb (Create_Finalizer, Expand_Cleanup_Actions):
3766 Use the new secodary stack build routines to manage the mark.
3767 (Insert_Actions_In_Scope_Around): Add new formal parameter
3768 Manage_SS along with comment on its usage. Code and comment
3769 reformatting. Mark and release the secondary stack when the
3770 context warrants it.
3771 (Make_Transient_Block): Update the call
3772 to Insert_Actions_In_Scope_Around to account for parameter Manage_SS.
3773 (Wrap_Transient_Declaration): Remove local variable
3774 Uses_SS. Ensure that the secondary stack is marked and released
3775 when the related object declaration appears in a library level
3776 package or package body. Code and comment reformatting.
3777 * exp_util.ads, exp_util.adb (Build_SS_Mark_Call): New routine.
3778 (Build_SS_Release_Call): New routine.
3780 2014-07-30 Steve Baird <baird@adacore.com>
3782 * exp_attr.adb: Revert previous change, not needed after all.
3784 2014-07-30 Vincent Celier <celier@adacore.com>
3786 * makeutl.adb (Queue.Insert_Project_Sources): Insert with
3787 Closure => True for interfaces of Stand-Alone Libraries.
3788 * makeutl.ads (Source_Info (Format => Gprbuild)): Add new
3789 Boolean component Closure, defaulted to False.
3791 2014-07-30 Yannick Moy <moy@adacore.com>
3793 * sem_res.adb: Fix typo in error message.
3795 2014-07-30 Robert Dewar <dewar@adacore.com>
3797 * sem_ch3.adb (Process_Range_Expr_In_Decl): Use _FIRST/_LAST
3798 as name suffixes rather than L/H for subtype bounds.
3799 * tbuild.ads: Minor comment improvements and fixes
3800 (Make_External_Name): Document that suffix can start with an
3803 2014-07-30 Bob Duff <duff@adacore.com>
3805 * gnat_ugn.texi: Document --rep-clauses switch.
3807 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3809 * sem_ch13.adb (Analyze_Aspect_Specifications): Default_Value and
3810 Default_Component_Value can only be specified for scalar type or
3811 arrays of scalar types respectively. This legality check must
3812 be performed at the point the aspect is analyzed, in order to
3813 reject aspect specifications that apply to a partial view.
3815 2014-07-30 Thomas Quinot <quinot@adacore.com>
3817 * freeze.adb: Minor reformatting.
3819 2014-07-30 Robert Dewar <dewar@adacore.com>
3821 * exp_attr.adb (Expand_Attribute, case First/Last): Don't expand in
3824 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3826 * freeze.adb (Check_Expression_Function): At the freeze point
3827 of an expression function, verify that the expression in the
3828 function does not contain references to any deferred constants
3829 that have no completion yet.
3830 (Freeze_Expression, Freeze_Before): call
3831 Check_Expression_Function.
3832 * a-ciorse.ads: Add Reference_Control_Type to detect tampering.
3833 * a-ciorse.adb: Add Adjust and Finalize routines for
3834 Reference_Control_Type. Use it in the construction of Reference
3835 and Constant_Reference values.
3837 2014-07-30 Robert Dewar <dewar@adacore.com>
3839 * exp_aggr.adb: Update comments.
3840 * a-chtgbo.adb, a-chtgbo.ads, a-cbhase.adb, a-cbhase.ads: Minor
3843 2014-07-30 Robert Dewar <dewar@adacore.com>
3845 * cstand.adb (New_Standard_Entity): New version takes name
3846 string to call Make_Name.
3847 (Create_Standard): Use this routine to set name before setting other
3850 2014-07-30 Robert Dewar <dewar@adacore.com>
3852 * exp_attr.adb (Expand_Attribute, case First): Rewrite simple
3854 (Expand_Attribute, case Last): Ditto.
3855 * exp_ch3.adb (Constrain_Index): New calling sequence for
3856 Process_Range_Expr_In_Decl.
3857 (Expand_N_Object_Declaration): Avoid setting Is_Known_Valid in one
3859 * sem_ch3.adb (Constrain_Index): New calling sequence for
3860 Process_Range_Expr_In_Decl.
3861 (Set_Scalar_Range_For_Subtype): ditto.
3862 (Process_Range_Expr_In_Decl): Create constants to hold bounds for
3864 * sem_ch3.ads (Process_Range_Expr_In_Decl): Add Subtyp parameter.
3865 * sem_eval.adb (Compile_Time_Compare): Make sure we use base
3866 types if we are not assuming no invalid values.
3868 2014-07-30 Robert Dewar <dewar@adacore.com>
3870 * clean.adb: Minor reformatting.
3871 * opt.ads: Minor fix to incorrect comment.
3873 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3875 * a-chtgbo.ads, a-chtgbo.adb (Delete_Node_At_Index): New
3876 subprogram, used by bounded hashed sets, to delete a node at
3877 a given index, whose element may have been improperly updated
3878 through a Reference_Preserving key.
3879 * a-cbhase.ads: Add Reference_Control_Type to package Generic_Keys.
3880 * a-cbhase.adb: Add Adjust and Finalize routines for
3881 Reference_Control_Type.
3882 (Delete, Insert): Raise Program_Error, not Constraint_Error,
3883 when operation is illegal.
3884 (Reference_Preserving_Key): Build aggregate for Reference_Control_Type
3885 * a-cmbutr.ads: Add Reference_Control_Type to detect tampering. Add
3886 private with_clause for Ada.Finalization.
3887 * a-cbmutr.adb: Add Adjust and Finalize routines for
3888 Reference_Control_Type. Use it in the construction of Reference
3889 and Constant_Reference values.
3891 2014-07-30 Robert Dewar <dewar@adacore.com>
3893 * sem_ch3.adb, sem_ch3.ads: Minor code reorganization.
3895 2014-07-30 Pascal Obry <obry@adacore.com>
3897 * clean.adb (Clean_Project): Properly check for directory
3898 existence before trying to enter it.
3900 2014-07-30 Robert Dewar <dewar@adacore.com>
3902 * sem_ch3.ads, prj.ads, prj-nmsc.adb: Minor reformatting.
3904 2014-07-30 Robert Dewar <dewar@adacore.com>
3906 * par-ch5.adb (P_Sequence_Of_Statements): Properly handle
3907 missing semicolon after name.
3909 2014-07-30 Pascal Obry <obry@adacore.com>
3911 * prj.ads (Gprinstall_Flags): New constant.
3912 * prj-nmsc.adb (Check_Library_Attributes): Do not fails for
3913 missing library dir if Directories_Must_Exist_In_Projects
3916 2014-07-30 Bob Duff <duff@adacore.com>
3918 * a-except-2005.adb, a-except.adb: Remove obsolete comments.
3919 * s-traceb.ads: Updagte comments.
3921 2014-07-30 Robert Dewar <dewar@adacore.com>
3923 * checks.adb, a-cihase.adb, a-cihase.ads, a-chtgop.adb, a-chtgop.ads,
3924 a-except.adb, a-except-2005.adb, a-cborse.adb, a-cborse.ads,
3925 a-exexda.adb, a-elchha.adb, exp_aggr.adb, a-cohase.adb: Minor
3928 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3930 * a-chtgop.ads, a-chtgop.adb (Delete_Node_At_Index): New
3931 subprogram, used by all versions of hashed sets, to delete a node
3932 whose element has been improperly updated through a Reference_
3934 * a-cohase.adb: Remove Delete_Node, use new common procedure
3935 Delete_Node_At_Index.
3936 * a-cihase.ads: Add Reference_Control_Type to package Generic_Keys.
3937 * a-cihase.adb: Add Adjust and Finalize routines for
3938 Reference_Control_Type.
3939 (Reference_Preserving_Key): Build aggregate for
3940 Reference_Control_Type
3942 2014-07-30 Yannick Moy <moy@adacore.com>
3944 * checks.adb, checks.ads (Determine_Range_R): New procedure to
3945 determine the possible range of a floating-point expression.
3947 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3949 * a-cborse.ads: Add Reference_Control_Type to package Generic_Keys.
3950 * a-cborse.adb: Add Adjust and Finalize routines for
3951 Reference_Control_Type.
3952 (Reference_Preserving_Key): Build aggregate for
3953 Reference_Control_Type.
3954 (Delete): Check for tampering, and raise Program_Error (not
3955 Constraint_Error) when attempting to delete an element not in
3959 2014-07-30 Bob Duff <duff@adacore.com>
3961 * a-elchha.adb, a-except-2005.adb, a-except.adb, a-exexda.adb,
3962 * a-exextr.adb, a-exstat.adb, exp_intr.ads, s-tassta.adb:
3963 Exception_Information is used to produce useful debugging
3964 information for the programmer. However, it was also used to
3965 implement the stream attributes for type Exception_Occurrence. The
3966 latter requires a stable and portable interface, which meant
3967 that we couldn't include a symbolic traceback. A separate set of
3968 routines was used to provide symbolic tracebacks under program
3969 control (i.e. not automatically). The goal of this ticket is
3970 to provide such automatic tracebacks, so the change here is to
3971 split the two functionalities: Exception_Information gives the
3972 maximally useful information for debugging (i.e. it now includes
3973 a symbolic traceback when a decorator is set, and it can be
3974 improved freely in the future without disturbing streaming).
3975 Untailored_Exception_Information always uses hexadecimal addresses
3976 in the traceback, has a stable and portable output, and is now
3979 2014-07-30 Eric Botcazou <ebotcazou@adacore.com>
3981 * exp_aggr.adb (Expand_Array_Aggregate): Add missing test
3982 on the target of the assignment to find out whether it
3983 can be directly done by the back-end.
3984 * exp_util.adb (Is_Possibly_Unaligned_Slice): Remove obscure test.
3986 2014-07-30 Robert Dewar <dewar@adacore.com>
3988 * inline.adb, a-coorse.adb, a-coorse.ads, a-cohase.adb, a-cohase.ads,
3989 a-tasatt.adb: Minor reformatting.
3991 2014-07-30 Robert Dewar <dewar@adacore.com>
3993 * exp_ch4.adb: Minor reformatting.
3995 2014-07-30 Ed Schonberg <schonberg@adacore.com>
3997 * a-coorse.adb, a-coorse.ads (Generic_Keys): Add a
3998 Reference_Control_Type to generic package, to keep additional
3999 information for Reference_Types that manipulate keys. Add Adjust and
4000 Finalize procedures for this type.
4001 (Finalize): When finalizing a reference_preserving_key, verify
4002 that the key of the new value is equivalent to the key of the
4003 original element, raise Program_Error otherwise.
4004 (Insert): Detect tampering.
4005 (Reference_Preserving_Key): Build proper Reference_Control_Type,
4006 and update Busy and Lock bits to detect tampering.
4007 * a-cohase.ads: Keep with-clause private.
4009 2014-07-30 Hristian Kirtchev <kirtchev@adacore.com>
4011 * exp_ch4.adb (Expand_N_Op_Eq): Emit a warning when the operands
4012 of an equality are of an Unchecked_Union type and lack inferable
4015 2014-07-30 Bob Duff <duff@adacore.com>
4017 * g-exctra.adb, g-exctra.ads, s-exctra.adb, s-exctra.ads, Makefile.rtl,
4018 g-trasym.adb, g-trasym.ads, s-trasym.adb, s-trasym.ads: Move
4019 GNAT.Traceback.Symbolic and GNAT.Exception_Traces into the System
4020 hierarchy (System.Traceback.Symbolic and System.Exception_Traces), so
4021 we can call them from the runtimes. Leave renamings in place under GNAT.
4023 2014-07-30 Yannick Moy <moy@adacore.com>
4025 * inline.adb (Check_And_Build_Body_To_Inline): Include code for
4026 inlining in GNATprove mode.
4028 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4030 * a-cohase.adb, a-cohase.ads (Generic_Keys): Add a
4031 Reference_Control_Type to generic package, to keep additional
4032 information for Reference_Types that manipulate keys. Add Adjust and
4033 Finalize procedures for this type.
4034 (Delete_Node): New procedure called when finalizing a
4035 Reference_Control_Type, to remove a node whose element has been
4036 improperly updated through a Reference.
4037 (Insert): Detect tampering.
4038 (Reference_Preserving_Key): Build proper Reference_Control_Type,
4039 and update Busy and Lock bits to detect tampering.
4041 2014-07-30 Bob Duff <duff@adacore.com>
4043 * exp_intr.ads: Minor comment fix.
4045 2014-07-30 Gary Dismukes <dismukes@adacore.com>
4047 * exp_prag.adb, a-tags.ads: Minor typo fixes.
4049 2014-07-30 Bob Duff <duff@adacore.com>
4051 * a-excach.adb, a-excach-cert.adb, a-except-2005.ads,
4052 a-except.ads, g-traceb.adb, memtrack.adb,
4053 s-traceb.adb, s-traceb.ads, s-traceb-hpux.adb, s-traceb-mastop.adb:
4054 Cleanup: Make the three versions of System.Traceback.Call_Chain
4055 have the same interface. Use an array for the Traceback parameter
4056 instead of an Address. This will enable reduction in code
4059 2014-07-30 Pat Rogers <rogers@adacore.com>
4061 * gnat_ugn.texi: Corrected minor textual error in description
4064 2014-07-30 Bob Duff <duff@adacore.com>
4066 * Makefile.rtl: Sort file names.
4068 2014-07-30 Arnaud Charlet <charlet@adacore.com>
4070 * a-tasatt.adb: Complete previous change: kill spurious warning
4071 on e.g. sparc, and make sure we only use the fast path when the
4072 alignment is compatible.
4074 2014-07-30 Yannick Moy <moy@adacore.com>
4076 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Mark new Spec_Id as
4079 2014-07-30 Yannick Moy <moy@adacore.com>
4081 * inline.adb (Build_Body_To_Inline): Issue more precise messages
4082 for declarations that prevent inlining.
4083 (Cannot_Inline): Change usual start of message to refer to contextual
4084 analysis in GNATprove mode.
4085 * sem_res.adb (Resolve_Call): Change usual start of message to
4086 refer to contextual analysis in GNATprove mode, when inlining
4089 2014-07-30 Robert Dewar <dewar@adacore.com>
4091 * sem_res.adb, sem_ch6.adb: Minor code reorganization.
4092 * inline.adb: Minor reformatting.
4094 2014-07-30 Javier Miranda <miranda@adacore.com>
4096 * a-tags.ads: Add comments.
4098 2014-07-30 Pat Rogers <rogers@adacore.com>
4100 * gnat_rm.texi: Minor word error.
4102 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4104 * exp_prag.adb (Expand_Old): Insert declarationss of temporaries
4105 created to capture the value of the prefix of 'Old at the
4106 beginning of the current declarative part, to prevent data flow
4107 anomalies in the postcondition procedure that will follow.
4109 2014-07-30 Yannick Moy <moy@adacore.com>
4111 * debug.adb: Retire debug flag -gnatdQ.
4112 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check SPARK_Mode
4113 on decl, not on body. Ignore predicate functions.
4114 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove use of
4115 debug flag -gnatdQ. Correctly analyze SPARK_Mode on decl and
4116 body when generating a decl for a body on which SPARK_Mode aspect
4118 * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Reorder tests for
4119 attaching pragma to entity, to account for declaration not coming
4121 * sem_res.adb (Resolve_Call): Issue warning and flag subprogram
4122 as not always inlined in GNATprove mode, when called in an
4125 2014-07-30 Vincent Celier <celier@adacore.com>
4127 * debug.adb: Minor comment update.
4129 2014-07-30 Robert Dewar <dewar@adacore.com>
4131 * s-tasuti.adb, s-tassta.adb: Minor reformatting.
4132 * sprint.adb (Sprint_Node): Handle N_Contract case.
4133 * exp_prag.adb: Minor reformatting.
4134 * freeze.adb (Freeze_Entity): Check useless postcondition for
4135 No_Return subprogram.
4136 * sem_prag.adb: Minor reformatting.
4138 2014-07-30 Javier Miranda <miranda@adacore.com>
4140 * a-tags.ads: Complete comments about performance.
4142 2014-07-30 Fedor Rybin <frybin@adacore.com>
4144 * gnat_ugn.texi: Adding description for --exit-status option to
4145 gnattest section. Fixing index entry of --passed-tests option
4146 in gnattest section.
4148 2014-07-30 Javier Miranda <miranda@adacore.com>
4150 * Makefile.rtl, gnat_rm.texi, i-cpp.adb, i-cpp.ads, impunit.adb,
4151 rtsfind.ads: Remove references to package Interfaces.CPP since this
4152 package is no longer needed.
4154 2014-07-30 Bob Duff <duff@adacore.com>
4156 * s-taasde.adb (Timer_Queue): Don't use a
4157 build-in-place function call to initialize the Timer_Queue.
4158 * s-traent.adb, s-traent.ads, s-traent-vms.adb, s-traent-vms.ads:
4159 Turn off polling in these units, because otherwise we get
4160 elaboration circularities with Ada.Exceptions when the -gnatP
4162 * s-tassta.adb (Create_Task): Make sure independent tasks
4163 are created with Parent = Environment_Task. This was not true,
4164 for example, in s-interr.adb, when Interrupt_Manager does "new
4165 Server_Task"; the Server_Task had Parent = Interrupt_Manager,
4166 which is wrong because the master is determined by the access
4167 type, which is at library level.
4168 * s-tasuti.adb (Make_Independent): Avoid setting Parent; it is
4169 now set correctly by Create_Task.
4170 (Make_Passive): Remove the workaround for the race condition in
4172 * frontend.adb (Frontend): Revert to previous method of detecting
4173 temporary configuration pragma files, recognizing such files by
4174 ".tmp" in the name. This is more general than detecting pragmas
4175 Source_File_Name_Project, because it allows any tool to use
4176 this naming convention, no matter the content of the file.
4177 * gnat_ugn.texi: Document this naming convention.
4179 2014-07-30 Robert Dewar <dewar@adacore.com>
4181 * exp_ch7.adb, s-tataat.adb, s-tataat.ads, s-parame-vms-alpha.ads,
4182 inline.adb, s-parame-hpux.ads, exp_smem.adb, s-tasini.adb,
4183 s-tasini.ads, s-parame-vms-ia64.ads, s-parame.ads, s-taskin.ads,
4184 s-parame-vxworks.ads, a-tasatt.adb, a-tasatt.ads: Minor reformatting.
4185 * a-suenco.adb (Convert): Handle overlong encodings in UTF8-UTF8
4188 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4190 * sem_ch5.adb: Improve error recovery.
4191 * inline.adb (Build_Body_To_Inline): Set Full_Analysis to false
4192 before analyzing the body, so that in GNATprove mode there is
4193 no light expansion. Whatever expansion is required by SPARK will
4194 be performed when analysing the inlined code.
4196 2014-07-30 Bob Duff <duff@adacore.com>
4198 * s-tataat.adb, s-tataat.ads, a-tasatt.adb: Minor comment fixes.
4200 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4202 * sem_ch5.adb (Analyze_Loop_Statement): If loop has a label,
4203 verify that it is not hidden by an inner implicit declaration.
4205 2014-07-30 Thomas Quinot <quinot@adacore.com>
4207 * sem.ads (Scope_Table_Entry): New component Locked_Shared_Objects.
4208 * sem_ch8.adb (Push_Scope): Initialize Locked_Shared_Objects.
4209 * exp_smem.adb (Add_Shared_Var_Lock_Procs): Handle the case where
4210 the call returns an unconstrained type: in this case there is
4211 already a transient scope, and we should not establish a new one.
4212 * exp_ch7.adb (Insert_Actions_In_Scope_Around): New formal Clean. If
4213 True, also insert cleanup actions in the tree.
4214 (Wrap_Transient_Declaration): Call Insert_Actions_In_Scope_Around
4215 with Clean set True.
4217 2014-07-30 Arnaud Charlet <charlet@adacore.com>
4219 * s-taskin.ads (Direct_Index, Direct_Index_Range,
4220 Direct_Attribute_Element, Direct_Attribute_Array,
4221 Direct_Index_Vector, Direct_Attributes, Is_Defined,
4222 Indirect_Attributes): Removed. (Atomic_Address,
4223 Attribute_Array, Attributes): New.
4224 * s-tasini.ads, s-tasini.adb (Proc_T, Initialize_Attributes,
4225 Finalize_Attributes_Link, Initialize_Attributes_Link): Removed.
4226 (Finalize_Attributes): Reimplement.
4227 * s-tassta.adb (Create_Task): Remove call to
4228 Initialize_Attributes_Link (Free_Task, Vulnerable_Free_Task):
4229 Replace Finalize_Attributes_Link by Finalize_Attributes.
4230 * a-tasatt.ads, a-tasatt.adb, s-tataat.ads, s-tataat.adb:
4231 Reimplement from scratch, using a simpler and more efficient
4233 * s-tporft.adb (Register_Foreign_Thread): Remove now obsolete comment.
4234 * s-parame.ads, s-parame-hpux.ads,
4235 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads,
4236 * s-parame-vxworks.ads (Max_Attribute_Count): New, replace
4237 Default_Attribute_Count.
4239 2014-07-30 Olivier Hainque <hainque@adacore.com>
4241 * vxworks-ppc-link.spec: New file. Extra link
4242 instructions for ppc-vxworks.
4243 * vxworks-crtbe-link.spec: Likewise, for ZCX related support.
4244 * system-vxworks-ppc.ads: Adjust linker options to use spec files.
4245 * system-vxworks-arm.ads: Likewise.
4246 * gcc-interface/Makefile.in: Enable .spec files.
4248 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4250 * sem_aggr.adb: Minor comment reformatting.
4252 2014-07-30 Robert Dewar <dewar@adacore.com>
4254 * sem_util.ads, sem_util.adb (Is_Junk_Name): Removed.
4255 * sem_warn.adb (Has_Junk_Name): New function
4256 (Check_References): Use Has_Junk_Name to delete junk warnings
4257 (Check_Unset_Reference): ditto.
4258 (Warn_On_Unreferenced_Entity): ditto.
4259 (Warn_On_Useless_Assignment): ditto.
4261 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4263 * checks.adb (Insert_Valid_Check): Do not check for the packed
4264 array type of a prefix that is an access type.
4266 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4268 * sem_attr.adb (Eval_Attribute): Evaluate the GNAT attribute
4269 Unconstrained_Array even if prefix is not frozen yet, as can
4270 occur with a private subtype used as a generic actual.
4272 2014-07-30 Gary Dismukes <dismukes@adacore.com>
4274 * sem_attr.adb: Minor reformatting.
4276 2014-07-30 Pat Rogers <rogers@adacore.com>
4278 * gnat_rm.texi: Corrected minor wording error in description
4279 of No_Exception_Registration.
4281 2014-07-30 Yannick Moy <moy@adacore.com>
4283 * einfo.ads, einfo.adb: New flag Is_Inlined_Always for use in GNATprove
4284 mode. Realphabetize two subprograms.
4285 * inline.adb (Cannot_Inline): Use Is_Inlined_Always in GNATprove mode.
4286 (Can_Be_Inlined_In_GNATprove_Mode): Adapt to possible Empty Body_Id.
4287 (Check_And_Build_Body_To_Inline): Use Is_Inlined_Always in GNATprove
4289 (Expand_Inline_Call): Use Is_Inlined_Always in GNATprove mode.
4290 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not use
4291 Is_Inline in GNATprove mode.
4292 (Analyze_Subprogram_Specification):
4293 Set Is_Inlined_Always at subprogram entity creation.
4294 * sem_res.adb (Resolve_Call): Do not deal with inlining during
4295 pre-analysis. Issue warning on call to possibly inlined
4296 subprogram when body not seen.
4298 2014-07-30 Yannick Moy <moy@adacore.com>
4300 * lib-xref.adb (Generate_Reference): Add special
4301 case for compiler-generated formals in GNATprove mode.
4303 2014-07-30 Yannick Moy <moy@adacore.com>
4305 * sem_ch6.adb: Add comments.
4307 2014-07-30 Thomas Quinot <quinot@adacore.com>
4309 * s-os_lib.ads (GM_Time_Of): Clarify documentation.
4311 2014-07-30 Robert Dewar <dewar@adacore.com>
4313 * sem_aggr.adb, sem_res.adb: Minor reformatting.
4315 2014-07-30 Thomas Quinot <quinot@adacore.com>
4317 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4318 Bit_Order): Set Reverse_Bit_Order on the base type of the
4319 specified first subtype.
4321 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4323 * inline.adb (Expand_Inlined_Call): Use a renaming declaration
4324 to capture the value of actuals of a limited type rather than
4325 an object declaration, to prevent spurious errors when analyzing
4328 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4330 * sem_ch4.adb (Analyze_Type_Conversion): Treat an inlined body
4331 as an instance, and inhibit semantic checks on already analyzed
4332 code to prevent spurious errors.
4334 2014-07-30 Arnaud Charlet <charlet@adacore.com>
4336 * a-exctra.ads ("="): New function, to restore compatibility.
4338 2014-07-30 Pascal Obry <obry@adacore.com>
4340 * adaint.c (__gnat_to_os_time): Set isdst to -1 for the mktime
4341 routine to use the OS dst setting.
4343 2014-07-30 Pat Rogers <rogers@adacore.com>
4345 * gnat_ugn.texi: Minor correction to description of -gnatw.K.
4347 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4349 * sem_util.adb (Wrong_Type): Disable some checks equally within
4350 instances and within inlined bodies, to suppress spurious type
4351 errors on already analyzed code.
4352 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Expression
4353 is legal in an inlined body, juts as it is in an instance body.
4355 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4357 * sem_res.adb (Resolve_Unchecked_Conversion): Within an inlined
4358 body the operand of an unchecked conversion may be a literal, in
4359 which case its type is the target type of the conversion. This
4360 is in contrast to conversions in other contexts, where the
4361 operand cannot be a literal and must be resolvable independent
4364 2014-07-30 Pierre-Marie Derodat <derodat@adacore.com>
4366 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a
4367 mere scalar constant instead of a reference for a renaming of
4369 * gcc-interface/utils.c (renaming_from_generic_instantiation_p): New.
4370 * gcc-interface/gigi.h (renaming_from_generic_instantiation_p): New.
4372 2014-07-30 Robert Dewar <dewar@adacore.com>
4374 * s-tasuti.adb, s-tasuti.ads, einfo.ads, sem_prag.adb, s-taasde.adb,
4375 g-socthi-vms.adb, s-taprop-mingw.adb, s-interr.adb, s-interr-hwint.adb,
4376 g-decstr.adb, s-tasdeb-vms.adb, g-expect-vms.adb, makeutl.adb,
4377 s-interr-vms.adb, g-socthi.adb, exp_aggr.adb, s-tasdeb.adb,
4378 g-awk.adb, gnatls.adb, s-taspri-posix.ads, g-catiio.adb,
4379 s-interr-sigaction.adb, s-os_lib.adb, s-fileio.adb: Minor reformatting
4380 & code reorganization.
4382 2014-07-30 Bob Duff <duff@adacore.com>
4384 * s-tassta.adb, sem_util.ads: Minor reformatting.
4386 2014-07-30 Yannick Moy <moy@adacore.com>
4388 * inline.adb (Build_Body_To_Inline): Detect when
4389 subprogram has multiple returns, or not a single last return
4390 statement, in GNATprove mode.
4391 (Cannot_Inline): Simplify logic to handle case of GNATprove
4394 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4396 * sem_ch6.adb: Stubs are not subject to inlining.
4398 2014-07-30 Bob Duff <duff@adacore.com>
4400 * s-tasuti.ads, s-tasuti.adb (Make_Independent): Change this
4401 from a procedure to a function, so that it can more easily be
4402 called before the "begin" of a task.
4403 * s-taasde.ads (Delay_Block): Make this type immutably limited,
4404 so we can use a build-in-place function call to initialize
4405 Timer_Queue in the body.
4406 * a-rttiev.adb, s-asthan-vms-alpha.adb, s-asthan-vms-ia64.adb,
4407 * s-interr.adb, s-interr-hwint.adb, s-interr-sigaction.adb,
4408 * s-interr-vms.adb, s-taasde.adb: Each independent task now calls
4409 Make_Independent before reaching its "begin", to avoid race
4410 conditions. This causes the activating task to wait until after
4411 Make_Independent is complete before proceeding. In addition,
4412 we initialize data structures used by independent tasks before
4413 activating those tasks, to avoid possible use of uninitialized data.
4414 * s-interr.ads, s-intman.ads, s-taspri-posix.ads, s-tasdeb.ads:
4415 Minor comment fixes.
4417 2014-07-30 Bob Duff <duff@adacore.com>
4419 * a-exctra.ads, s-traent-vms.ads, s-traent.ads (Tracebacks_Array): Move
4420 the declaration of Tracebacks_Array from Ada.Exceptions.Traceback to
4421 System.Traceback_Entries (s-traent.ads and s-traent-vms.ads). Add
4422 subtypes renaming Tracebacks_Array in Ada.Exceptions.Traceback.
4423 * g-debpoo.adb: Refer to Tracebacks_Array in its new home.
4425 2014-07-30 Arnaud Charlet <charlet@adacore.com>
4427 * a-tasatt.adb: Remove old comments.
4429 2014-07-30 Yannick Moy <moy@adacore.com>
4431 * einfo.ads (Is_Inlined): Document new use in GNATprove mode.
4432 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add comments
4433 to explain rationale for inlining or not in GNATprove mode.
4434 (Expand_Inlined_Call): In GNATprove mode, set Is_Inlined flag
4435 to False when inlining is not possible.
4436 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Is_Inlined
4437 flag to indicate that subprogram is fully inlined. To be reversed
4438 if inlining problem is found.
4439 * sem_res.adb (Resolve_Call): Set Is_Inlined flag to False when
4440 call in potentially unevaluated context.
4442 2014-07-30 Jose Ruiz <ruiz@adacore.com>
4444 * s-tarest.adb, s-tarest.ads: Fix comments.
4446 2014-07-30 Robert Dewar <dewar@adacore.com>
4448 * exp_attr.adb, checks.adb, sem_util.adb, sem_util.ads, sem_attr.adb:
4449 Change No_Scalar_Parts predicate to Scalar_Part_Present and
4450 invert sense of test. This avoids the "not No_xxx" situation
4451 which is always ugly.
4453 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4455 * inline.adb (Expand_Inlined_Call): When generating code for
4456 an internal subprogram the expansion uses the location of the
4457 call, so that gdb can skip over it. In GNATprove mode we want to
4458 preserve slocs of original subprogram when expanding an inlined
4459 call, to obtain better warnings, even though subprogram appears
4460 not to come from source if it is the inlining of a subprogram
4461 body without a previous spec.
4463 2014-07-30 Eric Botcazou <ebotcazou@adacore.com>
4465 * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Reject array
4466 types with atomic components.
4468 2014-07-30 Thomas Quinot <quinot@adacore.com>
4470 * Make-generated.in: Remove now unnecessary targets after s-oscons
4473 2014-07-30 Yannick Moy <moy@adacore.com>
4475 * sem_res.adb (Resolve_Call): Use ultimate alias
4476 of callee when available.
4478 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4480 * sem_ch6.adb (Analyze_Expression_Function): To check whether
4481 an expression function is a completion, use the specification of
4482 the previous declaration, not its entity, which may be internally
4483 generated in an inlined context.
4485 2014-07-30 Doug Rupp <rupp@adacore.com>
4487 * adaint.c (__gnat_tmp_name) [__ANDROID__]: Default to putting
4488 temp files in /cache directory unless overridden by TMPDIR.
4490 2014-07-30 Jose Ruiz <ruiz@adacore.com>
4492 * s-tassta.adb, s-tarest.adb (Initialize, Create_Task,
4493 Create_Restricted_Task): Remove redundant check. Number_Of_CPUs returns
4494 type CPU, so it can never be greater than CPU_Range'Last.
4496 2014-07-30 Bob Duff <duff@adacore.com>
4498 * s-taskin.ads: Minor comment fix.
4500 2014-07-30 Thomas Quinot <quinot@adacore.com>
4502 * g-socket.adb: Remove now useless WITH, USE, and USE TYPE
4505 2014-07-30 Yannick Moy <moy@adacore.com>
4507 * debug.adb: Free debug flag dQ used for frontend inlining in
4509 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove test of
4512 2014-07-30 Thomas Quinot <quinot@adacore.com>
4514 * Make-generated.in: Remove generation of s-oscons.ads, only
4515 generate the xoscons utility, in runtime-agnostic rules.
4516 * gcc-interface/Makefile.in: Clean up rules. Remove VMS parts,
4517 no longer supported.
4519 2014-07-30 Bob Duff <duff@adacore.com>
4521 * exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): New
4522 parameter Chain to be used in the allocator case.
4523 (Make_Build_In_Place_Call_In_Allocator): If the allocated object
4524 has tasks, wrap the code in a block that will activate them,
4525 including the usual finalization code to kill them off in case
4526 of exception or abort.
4528 2014-07-30 Robert Dewar <dewar@adacore.com>
4530 * treepr.adb, treepr.ads; Reorganize documentation for new pp routines
4531 Remove renamings (don't work for gdb).
4532 (par): New synonym for p (avoid gdb ambiguities).
4533 * inline.adb, sem_ch6.adb, sem_ch13.adb: Minor reformatting.
4535 2014-07-30 Bob Duff <duff@adacore.com>
4537 * exp_ch9.ads, sem_prag.adb, exp_ch4.adb, sem_ch13.adb: Minor comment
4539 * treepr.ads, treepr.adb (ppp): Make this debugging routine
4540 accept any type covered by Union_Id.
4542 2014-07-30 Robert Dewar <dewar@adacore.com>
4544 * sem_ch4.adb (Analyze_If_Expression): Resolve condition before
4546 * sem_eval.adb (Out_Of_Range): Check for statically unevaluated
4549 2014-07-30 Robert Dewar <dewar@adacore.com>
4551 * sem_ch13.adb (Analyze_Aspect, predicate cases): Diagnose use
4552 of predicate aspect on entity other than a type.
4554 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4556 * sem_ch6.adb (Body_Has_Contract): New predicate to determine
4557 when a subprogram body without a previous spec cannot be inlined
4558 in GNATprove mode, because it includes aspects or pragmas that
4559 generate a SPARK contract clause.
4560 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): A subprogram
4561 instance cannot be inlined.
4563 2014-07-30 Robert Dewar <dewar@adacore.com>
4565 * debug.adb: Document that d7 suppresses compilation time output.
4566 * errout.adb (Write_Header): Include compilation time in
4568 * exp_intr.adb (Expand_Intrinsic_Call): Add
4569 Compilation_Date/Compilation_Time (Expand_Source_Info): Expand
4570 Compilation_Date/Compilation_Time.
4571 * g-souinf.ads (Compilation_Date): New function
4572 (Compilation_Time): New function.
4573 * gnat1drv.adb (Gnat1drv): Set Opt.Compilation_Time.
4574 * gnat_rm.texi (Compilation_Date): New function
4575 (Compilation_Time): New function.
4576 * opt.ads (Compilation_Time): New variable.
4577 * s-os_lib.ads, s-os_lib.adb (Current_Time_String): New function.
4578 * sem_intr.adb (Compilation_Date): New function.
4579 (Compilation_Time): New function.
4580 * snames.ads-tmpl (Name_Compilation_Date): New entry.
4581 (Name_Compilation_Time): New entry.
4583 2014-07-30 Yannick Moy <moy@adacore.com>
4585 * inline.adb: Add comment.
4587 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4589 * par-ch4.adb (Is_Parameterless_Attribute): 'Result is a
4590 parameterless attribute, and a postondition can mention an
4591 indexed component or a slice whose prefix is an attribute
4594 2014-07-30 Robert Dewar <dewar@adacore.com>
4596 * sprint.adb (Sprint_Node_Actual, case Object_Declaration):
4597 Avoid bomb when printing package Standard.
4599 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4601 * sem_elab.adb (Check_Internal_Call_Continue): If an elaboration
4602 entity is created at this point, ensure that the name of the
4603 flag is unique, because the subprogram may be overloaded and
4604 other homonyms may also have elaboration flags created on the fly.
4606 2014-07-30 Hristian Kirtchev <kirtchev@adacore.com>
4608 * sem_attr.adb (Analyze_Array_Component_Update): New routine.
4609 (Analyze_Attribute): Major cleanup of attribute
4610 'Update. The logic is now split into two distinct routines
4611 depending on the type of the prefix. The use of <> is now illegal
4612 in attribute 'Update.
4613 (Analyze_Record_Component_Update): New routine.
4614 (Check_Component_Reference): Removed.
4615 (Resolve_Attribute): Remove the return statement and ??? comment
4616 following the processing for attribute 'Update. As a result,
4617 the attribute now freezes its prefix.
4619 2014-07-30 Javier Miranda <miranda@adacore.com>
4621 * exp_ch4.adb (Apply_Accessibility_Check): Do
4622 not call Base_Address() in VM targets.
4624 2014-07-30 Yannick Moy <moy@adacore.com>
4626 * gnat1drv.adb (Adjust_Global_Switches): Set
4627 Ineffective_Inline_Warnings to True in GNATprove mode.
4628 * inline.adb (Cannot_Inline): Prepare new semantics for GNATprove
4630 * opt.ads (Ineffective_Inline_Warnings): Add comment that
4631 describes use in GNATprove mode.
4632 * sem_prag.adb (Analyze_Pragma|SPARK_Mode): Ignore
4633 pragma when applied to the special body created for inlining.
4635 2014-07-30 Robert Dewar <dewar@adacore.com>
4637 * inline.adb, exp_ch4.adb, sinput.adb, sem_ch6.adb, sem_ch13.adb:
4640 2014-07-30 Hristian Kirtchev <kirtchev@adacore.com>
4642 * aspects.ads Add a comment explaining why SPARK 2014 aspects are
4643 not delayed. Update the delay status of most SPARK 2014 aspects.
4644 * sem_ch13.adb (Analyze_Aspect_Specifications): Update all calls
4645 to Decorate_Aspect_And_Pragma and Insert_Delayed_Pragma to refert
4646 to Decorate and Insert_Pragma. Add various comments concerning
4647 the delay status of several SPARK 2014 aspects. The insertion
4648 of Refined_State now uses routine Insert_After_SPARK_Mode.
4649 (Decorate): New routine.
4650 (Decorate_Aspect_And_Pragma): Removed.
4651 (Insert_Delayed_Pragma): Removed.
4652 (Insert_Pragma): New routine.
4654 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4656 * inline.adb (Expand_Inlined_Call): In GNATprove mode, emit
4657 only a warning, not an error on an attempt to inline a recursive
4660 2014-07-30 Robert Dewar <dewar@adacore.com>
4662 * g-forstr.adb: Minor code reorganization (use J rather than I
4663 as a variable name).
4664 * gnat_rm.texi, sem_prag.adb, sem_util.adb, sem_ch13.adb,
4665 g-forstr.ads: Minor reformatting.
4667 2014-07-30 Eric Botcazou <ebotcazou@adacore.com>
4669 * sprint.adb (Set_Debug_Sloc): Also reset the end location if
4670 we are debugging the generated code.
4672 2014-07-30 Yannick Moy <moy@adacore.com>
4674 * sinput.ads, sinput.adb (Comes_From_Inlined_Body): New function that
4675 returns True for source pointer for an inlined body.
4677 2014-07-30 Javier Miranda <miranda@adacore.com>
4679 * exp_ch4.adb (Apply_Accessibility_Check): Add
4680 missing calls to Base_Address().
4682 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4684 * sem_ch6.adb (Hanalyze_Subprogram_Body_Helper): In GNATprove
4685 mode, subprogram bodies without a previous declaration are also
4686 candidates for front-end inlining.
4688 2014-07-30 Hristian Kirtchev <kirtchev@adacore.com>
4690 * aspects.ads Aspects Async_Readers, Async_Writers,
4691 Effective_Reads and Effective_Writes do not need to be delayed.
4692 * sem_ch13.adb (Analyze_Aspect_Specifications): Propagate the
4693 optional Boolean expression when generating the corresponding
4694 pragma for an external property aspect.
4695 * sem_prag.adb (Analyze_External_Property_In_Decl_Part): Remove
4696 local constant Obj. Add local constant Obj_Id. Reimplement the
4697 check which ensures that the related variable is in fact volatile.
4698 (Analyze_Pragma): Reimplement the analysis of external property pragmas.
4699 * sem_util.adb (Is_Enabled): New routine.
4700 (Variable_Has_Enabled_Property): Reimplement the detection of
4701 an enabled external property.
4703 2014-07-30 Sergey Rybin <rybin@adacore.com frybin>
4705 * gnat_ugn.texi, vms_data.ads: gnatstub: describe generating subunits
4708 2014-07-30 Pascal Obry <obry@adacore.com>
4710 * g-forstr.adb, g-forstr.ads: New.
4711 * gnat_rm.texi, impunit.adb Makefile.rtl: Add new unit
4712 GNAT.Formatted_String.
4714 2014-07-30 Eric Botcazou <ebotcazou@adacore.com>
4716 * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
4717 (Expand_Array_Aggregate): Also enable in-place expansion for
4718 code generated by the compiler. For an object declaration,
4719 set the kind of the object in addition to its type. If an
4720 in-place assignment is to be generated and it can be directly
4721 done by the back-end, do not expand the aggregate.
4722 * fe.h (Is_Others_Aggregate): Declare.
4723 * gcc-interface/trans.c
4724 (gnat_to_gnu) <N_Assignment_Statement>: Add support for an
4725 aggregate with a single Others choice on the RHS by means of
4726 __builtin_memset. Tidy up.
4728 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4730 * gnat_rm.texi: minor reformatting.
4732 2014-07-30 Yannick Moy <moy@adacore.com>
4734 * sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
4737 2014-07-30 Robert Dewar <dewar@adacore.com>
4739 * gnat_rm.texi: Document additional implementation-defined use
4742 2014-07-30 Robert Dewar <dewar@adacore.com>
4744 * prj-proc.adb, prj-strt.adb: Update comments.
4746 2014-07-30 Gary Dismukes <dismukes@adacore.com>
4748 * sinfo.ads, einfo.ads, checks.ads: Minor typo fix and reformatting.
4750 2014-07-30 Vincent Celier <celier@adacore.com>
4752 * prj-proc.adb (Imported_Or_Extended_Project_From): New Boolean
4753 parameter No_Extending, defaulted to False. When No_Extending
4754 is True, do not look for an extending project.
4755 (Expression): For a variable reference that is not for the current
4756 project, get its Id calling Imported_Or_Extended_Project_From
4757 with No_Extending set to True.
4758 * prj-strt.adb (Parse_Variable_Reference): If a referenced
4759 variable is not found in the current project, check if it is
4760 defined in one of the projects it extends.
4762 2014-07-30 Robert Dewar <dewar@adacore.com>
4764 * sem_util.adb (Predicate_Tests_On_Arguments): Omit tests for
4765 some additional cases of internally generated routines.
4767 2014-07-30 Ed Schonberg <schonberg@adacore.com>
4769 * sem_ch10.adb (Analyze_Proper_Body): When compiling for ASIS,
4770 if the compilation unit is a subunit, extend optional processing
4771 to all subunits of the current one. This allows gnatstub to
4772 supress generation of spurious bodies.
4774 2014-07-30 Hristian Kirtchev <kirtchev@adacore.com>
4776 * a-cbmutr.adb (Insert_Child): Use local variable First to keep
4777 track of the initial element's index within the tree.
4779 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
4781 * a-cbmutr.adb (Allocate_Node): Remove the two parameter version.
4782 (Insert_Child): Add local variable First. Capture the index of the
4783 first node being created to ensure correct cursor construction
4784 later on. Use the three parameter version of Allocate_Node
4785 when creating multiple children as this method allows aspect
4786 Default_Value to take effect (if applicable).
4788 2014-07-29 Eric Botcazou <ebotcazou@adacore.com>
4790 * exp_aggr.adb (Safe_Slice_Assignment): Remove.
4791 (Expand_Array_Aggregate): For a safe slice assignment, just set
4792 the target and use the common code path.
4794 2014-07-29 Robert Dewar <dewar@adacore.com>
4796 * sem_util.adb, sem_util.ads, sem_res.adb, exp_ch6.adb: Invert
4797 predicate No_Predicate_Test_On_Arguments, new name is
4798 Predicate_Tests_On_Arguments (with the opposite sense).
4800 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
4802 * sem_attr.adb (Resolve_Attribute): Clean up the code for
4803 attribute 'Access. Do not generate an elaboration flag for a
4804 stand alone expression function. The expression of an expression
4805 function is now frozen when the expression function appears as
4806 the prefix of attribute 'Access.
4807 * sem_ch6.adb (Analyze_Expression_Function): Remove local
4808 variable New_Decl and update all references to it after the
4809 rewriting has taken place. Establish the linkages between the
4810 generated spec and body.
4812 2014-07-29 Robert Dewar <dewar@adacore.com>
4814 * sem_prag.adb (ip, rv): Prevent from being optimized away.
4815 * gnatls.adb (gnatls): Set E_Fatal exit status if ali file not found.
4816 * s-imgllb.adb, s-imgllw.adb, s-imgwiu.adb, s-imgbiu.adb: Minor
4819 2014-07-29 Vincent Celier <celier@adacore.com>
4821 * prj-pp.adb: Minor comment update.
4822 * frontend.adb: If a target dependency info file has been read
4823 through switch -gnateT= add it to the dependencies of the source
4826 2014-07-29 Robert Dewar <dewar@adacore.com>
4828 * sem_ch3.adb, prj.adb: Minor reformatting.
4830 2014-07-29 Vincent Celier <celier@adacore.com>
4832 * prj-pp.adb (Pretty_Print.Output_Project_File): New
4833 procedure to output project file names between quotes without
4834 concatenation, even if the line is too long.
4835 (Pretty_Print): Use Output_Project_File for project being extended and
4838 2014-07-29 Vincent Celier <celier@adacore.com>
4840 * gnat_ugn.texi: Document that configuration pragmas files are
4841 added to the dependencies, unless they contain only pragmas
4842 Source_File_Name_Project.
4844 2014-07-29 Robert Dewar <dewar@adacore.com>
4846 * frontend.adb: Minor reformatting.
4848 2014-07-29 Robert Dewar <dewar@adacore.com>
4850 * exp_ch6.adb (Add_Call_By_Copy_Code): Minor reformatting
4851 (Expand_Actuals): Make sure predicate checks are properly applied
4852 for the case of OUT or IN OUT parameters.
4853 * sem_res.adb: Minor reformatting (Resolve_Actuals): Skip
4854 predicate tests on arguments for Finalize
4855 * sem_util.adb (No_Predicate_Test_On_Arguments): Returns True
4856 if predicate tests on subprogram arguments should be skipped.
4857 * sem_util.ads (No_Predicate_Test_On_Arguments): New function
4859 2014-07-29 Ed Schonberg <schonberg@adacore.com>
4861 * sem_ch3.adb (Analyze_Object_Declaration): If there is an address
4862 clause for the object and the expression is an aggregate, defer
4863 resolution and expansion of the aggregate until the freeze point
4865 * sem_aggr.adb (Resolve_Aggregate): An others_clause is legal if
4866 the parent node is an N_Reference generated during expansion.
4868 2014-07-29 Vincent Celier <celier@adacore.com>
4870 * prj.adb (Add_To_Buffer): Effectively double the size of the buffer.
4872 2014-07-29 Robert Dewar <dewar@adacore.com>
4874 * frontend.adb, inline.adb, sem_util.adb, sem_res.adb,
4875 prepcomp.ads: Minor reformatting and code clean up.
4876 * exp_ch6.adb (Expand_Actuals): Generate predicate test
4877 unconditionally for case of OUT or IN OUT actual (before this
4878 was generated only for certain subcases, which is wrong, the
4879 test is always needed).
4881 2014-07-29 Ed Schonberg <schonberg@adacore.com>
4883 * sem_ch3.adb: Move Has_Defaulted_Discriminants to sem_util.
4884 * sem_ch4.adb (Analyze_Allocator): Defer resolution of expression
4885 until context type is available.
4886 * sem_res.adb (Resolve_Allocator): In the case of a qualified
4887 expression, complete resolution of expression.
4888 (Check_Aliased_Parameter): New procedure within Resolve_Actuals,
4889 to apply Ada2012 checks on aliased formals, as well as
4890 accesibility checks when the context of the call is an allocator
4891 or a qualified expression.
4892 * sem_util.ads, sem_util.adb (Has_Defaulted_Discriminants):
4893 Moved here from sem_ch3.
4894 (Object_Access_Level): Handle properly aliased formals and
4896 * exp_ch6.adb (Expand_Call): Remove check on aliased parameters,
4897 now properly performed in sem_res (Resolve_Actuals,
4898 Check_Aliased_Parameter).
4900 2014-07-29 Yannick Moy <moy@adacore.com>
4902 * debug.adb Enable GNATprove inlining under debug flag -gnatdQ for now.
4903 * inline.ads, inline.adb (Can_Be_Inlined_In_GNATprove_Mode): New
4904 function to decide when a subprogram can be inlined in GNATprove mode.
4905 (Check_And_Build_Body_To_Inline): Include GNATprove_Mode as a
4906 condition for possible inlining.
4907 * sem_ch10.adb (Analyze_Compilation_Unit): Remove special case
4908 for Inline_Always in GNATprove mode.
4909 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build inlined
4910 body for subprograms in GNATprove mode, under debug flag -gnatdQ.
4911 * sem_prag.adb Minor change in comments.
4912 * sem_res.adb (Resolve_Call): Only perform GNATprove inlining
4913 inside subprograms marked as SPARK_Mode On.
4914 * sinfo.ads: Minor typo fix.
4916 2014-07-29 Vincent Celier <celier@adacore.com>
4918 * frontend.adb: Add dependency on gnat.adc when taken into account
4919 and on non-temporary configuration pragmas files specified in
4921 * prepcomp.ads, prepcomp.adb (Add_Dependency): New procedure to add
4922 dependencies on configuration pragmas files.
4924 2014-07-29 Pat Rogers <rogers@adacore.com>
4926 * gnat_ugn.texi: Minor clarification to the explanation for the
4929 2014-07-29 Robert Dewar <dewar@adacore.com>
4931 * types.ads (Mechanism_Type): Change range back to -18 .. Int'Last with
4932 documentation that explains the need for this extended range
4933 (use by C_Pass_By_Copy).
4935 2014-07-29 Robert Dewar <dewar@adacore.com>
4937 * gnat_rm.texi, sem_prag.adb: Minor reformatting.
4939 2014-07-29 Sergey Rybin <rybin@adacore.com frybin>
4941 * gnat_ugn.texi: gnatmetric: clarify documentation for cyclomatic
4944 2014-07-29 Thomas Quinot <quinot@adacore.com>
4947 * s-oscons-tmplt.c: For Linux, define _BSD_SOURCE in order for
4948 CRTSCTS to be visible.
4950 2014-07-29 Bob Duff <duff@adacore.com>
4952 * g-trasym.adb, g-trasym.ads: Code cleanup.
4954 2014-07-29 Doug Rupp <rupp@adacore.com>
4956 * sigtramp-vxworks.c: Minor reformatting.
4958 2014-07-29 Ed Schonberg <schonberg@adacore.com>
4960 * gnat_rm.texi: No doc needed for Ada2012 aspect
4961 Implicit_dereference.
4963 2014-07-29 Robert Dewar <dewar@adacore.com>
4965 * sem_attr.adb (Attribute_12): New array
4966 (Analyze_Attribute): Check impl-defined Ada 2012 attributes.
4967 (Check_Ada_2012_Attribute): Removed.
4969 2014-07-29 Doug Rupp <rupp@adacore.com>
4971 * init.c (vxworks6): Call sigtramp for RTP (as well as DKM) for ARM,
4973 * sigtramp-vxworks.c: New file.
4974 * sigtramp-armvxw.c, sigtramp-ppcvxw.c: removed files.
4976 2014-07-29 Ed Schonberg <schonberg@adacore.com>
4978 * lib-xref.adb (Output_Refs, Check_Type_Reference): For a
4979 derived array type, add information about component type, which
4980 was previously missing in ali file.
4981 * gnat_rm.texi: Add documentation for Atomic_Always_Lock_Free.
4983 2014-07-29 Thomas Quinot <quinot@adacore.com>
4985 * sem_ch3.adb (Constrain_Corresponding_Record): For the case
4986 of the subtype created for a record component, do not mark
4987 the subtype as frozen. For one thing, this is anomalous (in
4988 particular, the base type might not itself be frozen yet);
4989 furthermore, proper freezing of the subtype must happen in any
4990 case. So, we just mark the subtype as requiring delayed freezing
4991 (and we'll actually freeze it when generating the init_proc of
4992 the enclosing record).
4993 Also change the name of the constrained record subtype (append a
4994 'C' so that it is clearly different from the unconstrained record
4995 type, "related_idV") to make debugging easier.
4996 (Process_Full_View): When creating a full subtype for a pending
4997 private subtype, re-establish the scope of the private subtype
4998 so that we get proper visibility on outer discriminants.
4999 * exp_ch3.adb (Build_Init_Statements): Freeze any component
5000 subtype that is not frozen yet.
5002 2014-07-29 Vincent Celier <celier@adacore.com>
5004 * prj-proc.adb (Recursive_Process): Always initialize the
5005 environment when the project is an aggregate project, even when
5006 it is not the root tree.
5007 2014-07-29 Robert Dewar <dewar@adacore.com>
5009 * exp_ch5.adb, exp_ch9.adb: Minor comment additions.
5010 * gnat_rm.texi: Complete list of implementation aspects.
5011 * aspects.ads: Minor comment clarification.
5013 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5015 * exp_ch5.adb (Expand_N_Assignment_Statement): If the target type
5016 is a null-excluding access type, do not generate a constraint
5017 check if Suppress_Assignment_Checks is set on assignment node.
5018 * exp_ch9.adb (Build_Simple_Entry_Call): If actual is an out
5019 parameter of a null-excluding access type, there is access check
5020 on entry, so set Suppress_Assignment_Checks on generated statement
5021 that assigns actual to parameter block.
5022 * sinfo.ads: Document additional use of Suppress_Assignment_Checks.
5024 2014-07-29 Robert Dewar <dewar@adacore.com>
5026 * gnat_rm.texi: Change theta to @ in documentation of aspect
5029 2014-07-29 Robert Dewar <dewar@adacore.com>
5031 * sem_attr.adb (Uneval_Old_Msg): Flags Uneval_Old_Accept/Warn
5033 * sem_ch13.adb (Analyze_Aspect_Specifications): Remove setting
5035 * sem_prag.adb (Analyze_Pragma): Set Uneval_Old_* flags
5036 * sinfo.ads, sinfo.adb: Move Uneval_Old_Accept/Warn to N_Pragma node.
5038 2014-07-29 Javier Miranda <miranda@adacore.com>
5040 * types.ads Update documentation on how to add new reason codes
5042 (RT_Exception_Code): Keep values ordered by their
5043 reason code. Required by the .NET backend.
5044 (RT_CE_Exceptions): Subtype declaration removed.
5045 (RT_PE_Exceptions): Subtype declaration removed.
5046 (RT_SE_Exceptions): Subtype declaration removed.
5047 (Kind): New mapping table of RT_Exception_Codes.
5048 * exp_ch11.adb (Get_RT_Exception_Entity): Updated to use the
5050 * tbuild.adb (Make_Raise_Storage_Error): Updated to use the new
5051 mapping table. (Make_Raise_Program_Error): Updated to use the
5053 (Make_Raise_Storage_Error): Updated to use the new mapping table.
5054 * a-except.adb Keep Rcheck_CE_xxx entities ordered according to
5057 2014-07-29 Thomas Quinot <quinot@adacore.com>
5059 * gnat_rm.texi: Document internal attributes used for PolyORB/DSA
5060 distributed stubs generation.
5061 * exp_ch3.adb: Minor reformatting.
5063 2014-07-29 Yannick Moy <moy@adacore.com>
5065 * sinfo.ads: Document constraint between frontend and GNATprove.
5067 2014-07-29 Robert Dewar <dewar@adacore.com>
5069 * a-except.adb: Minor comment clarification.
5071 2014-07-29 Robert Dewar <dewar@adacore.com>
5073 * gnat_rm.texi: Complete list of implementation attributes.
5074 * snames.ads-tmpl: Clean up list of impl-defined attributes.
5076 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5078 * freeze.adb (Freeze_Record_Type): Perform various
5079 volatility-related checks.
5081 2014-07-29 Robert Dewar <dewar@adacore.com>
5083 * sem_ch3.adb, sem_eval.adb: Minor reformatting.
5085 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5087 * sem_attr.adb: sem_attr.adb (Access_Attribute): Handle properly
5088 the case where the attribute reference appears in a nested scope
5089 from that of the subprogram prefix.
5090 * sem_attr.adb: Minor reformatting.
5092 2014-07-29 Robert Dewar <dewar@adacore.com>
5094 * gnat_ugn.texi: Clarify documentation of Initialize_Scalar
5095 initialization options.
5097 2014-07-29 Robert Dewar <dewar@adacore.com>
5099 * sinfo.ads: Minor comment addition.
5101 2014-07-29 Bob Duff <duff@adacore.com>
5103 * sem_eval.adb, sem_ch13.adb: Minor reformatting.
5105 2014-07-29 Doug Rupp <rupp@adacore.com>
5107 * init.c: Complete previous change.
5109 2014-07-29 Robert Dewar <dewar@adacore.com>
5111 * exp_ch4.adb (Expand_N_If_Expression): Deal with unconstrained
5114 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5116 * sem_attr.adb (Access_Attribute): If the prefix is a subprogram
5117 and the completion will appear in the same declarative part,
5118 create elaboration flag.
5119 * exp_util.adb (Set_Elaboration_Flag): If the subprogram body
5120 is a completion of a declaration in the same declarative part,
5121 and the subprogram has had its address taken, add elaboration
5122 check inside the subprogram body, to detect elaboration errors
5123 that may occur through indirect calls.
5125 2014-07-29 Doug Rupp <rupp@adacore.com>
5127 * sigtramp-armvxw.c: Enhance to handle RTP trampolining.
5128 * init.c: Remove guard on sigtramp for ARM VxWorks RTP.
5130 2014-07-29 Vincent Celier <celier@adacore.com>
5132 * switch-c.adb (Scan_Front_End_Switches): Do not fail when two
5133 runtime directorie specified with two switches --RTS= designate
5134 the same directory, even when there are no literarily the same.
5136 2014-07-29 Robert Dewar <dewar@adacore.com>
5138 * gnat_ugn.texi: Minor documentation clarification.
5139 * switch-c.adb: Minor reformatting.
5141 2014-07-29 Robert Dewar <dewar@adacore.com>
5143 * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
5144 Fix incorrect RTE call which caused bomb if pragma was in
5145 configuration pragma file.
5147 2014-07-29 Jerome Lambourg <lambourg@adacore.com>
5149 * expect.c (__gnat_expect_poll): Fix typo in previous change.
5150 * g-expect.adb: Update comments.
5152 2014-07-29 Arnaud Charlet <charlet@adacore.com>
5154 * s-parame-hpux.ads, s-parame-vms-ia64.ads, s-parame.ads
5155 (Default_Attribute_Count): Bump to 16 on native platforms.
5157 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5159 * sem_res.adb: Add guard to front-end inlining for SPARK.
5161 2014-07-29 Robert Dewar <dewar@adacore.com>
5163 * sem_ch10.adb, debug.adb, sem_prag.adb, sem_res.adb, sem_ch6.adb:
5166 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5168 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Build body to
5169 inline in GNATprove mode when subprogran is marked Inline_Always.
5170 * sem_res.adb (Resolve_Call): Expand call in place in GNATProve
5171 mode if body to inline is available.
5172 * sem_prag.adb (Analyze_Pragma, case Inline_Always): Make pragma
5173 effective in GNATprove mode.
5174 * sem_ch10.adb (Analyze_Compilation_Unit): Call
5175 Check_Package_Body_For_Inlining in GNATprove mode, so that body
5176 containing subprograms with Inline_Always can be available before
5179 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5181 * inline.ads, inline.adb, sem_ch10.adb: Rename Check_Body_For_Inlining
5182 to Check_Package_Body_For_Inlining, to prevent confusion with other
5183 inlining subprograms.
5185 2014-07-29 Robert Dewar <dewar@adacore.com>
5187 * opt.ads: Minor comment update.
5188 * sem_attr.adb (Uneval_Old_Msg): Deal with case of aspect, where
5189 we want setting of Uneval_Old at time of encountering the aspect.
5190 * sem_ch13.adb (Analyze_Aspect_Specifications): Capture setting
5192 * sinfo.adb (Uneval_Old_Accept): New function (Uneval_Old_Warn):
5193 New function (Set_Uneval_Old_Accept): New procedure.
5194 (Set_Uneval_Old_Warn): New procedure.
5195 * sinfo.ads: Uneval_Old_Accept: New flag Uneval_Old_Warn: New flag.
5197 2014-07-29 Robert Dewar <dewar@adacore.com>
5199 * sinfo.ads, inline.adb, inline.ads, sem_ch6.adb: Minor reformatting.
5200 * snames.ads-tmpl: Minor reformatting.
5201 * xsnamest.adb (XSnamesT): Remove special casing of Name_Error
5202 to give <Error>. Not clear why this was there, but the compiler
5203 sources do not reference Name_Error, and this interfered with
5204 the circuits for pragma Unevaluated_Use_Of_Old.
5206 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5208 * sem_prag.adb (Process_Atomic_Shared_Volatile): Allow volatile
5209 types in SPARK 2014 (again).
5210 * sem_res.adb (Is_OK_Volatile_Context): New routine.
5211 (Resolve_Entity_Name): Ensure that a volatile object with
5212 enabled properties Async_Writers or Effectire_Reads appears in
5213 a non-interfering context.
5215 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5217 * sem_ch6.adb: Move Build_Body_To_Inline,
5218 Check_And_Buid_Body_To_Inline, and Cannot_Inline to package Inline.
5219 * exp_ch6.adb: Mode Expand_Inlined_Body to package Inline.
5220 * inline.ads, inline.adb: Package now contains subprograms that
5221 implement front-end inlining. No functional changes, no test
5224 2014-07-29 Robert Dewar <dewar@adacore.com>
5226 * exp_dbug.adb, g-expect.adb, sem_elab.adb: Minor typo fix.
5228 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5230 * sem_ch6.adb (Analyze_Return_Type): Reject a return type that
5231 is a limited view when the context is a package body, because
5232 there is no subsequent place at which the non-limited view may
5234 (Process_Formals): Ditto.
5235 * sinfo.ads, par-ch3.adb: Minor reformatting.
5237 2014-07-29 Jerome Lambourg <lambourg@adacore.com>
5239 * expect.c (__gnat_expect_poll): New parameter dead_process
5240 used to return the dead process among the array of file
5241 descriptors. The Windows, VMS and HPUX implementations now
5242 properly report the dead process via this parameter. Other unixes
5244 * g-expect.adb (Poll): Adapt to the C profile.
5245 (Expect_Internal): Use the new parameter to properly close the
5246 File Descriptor. This then can be properly reported by the
5247 function First_Dead_Process as is expected.
5249 2014-07-29 Robert Dewar <dewar@adacore.com>
5251 * gnat_ugn.texi: Minor clarification of -gnatQ switch.
5253 2014-07-29 Robert Dewar <dewar@adacore.com>
5255 * einfo.adb (Derived_Type_Link): New function
5256 (Set_Derived_Type_Link): New procedure.
5257 (Write_Field31_Name): Output Derived_Type_Link.
5258 * einfo.ads: New field Derived_Type_Link.
5259 * exp_ch6.adb (Expand_Call): Warn if change of representation
5261 * sem_ch13.adb: Minor addition of ??? comment.
5262 (Rep_Item_Too_Late): Warn on case that is legal but could cause an
5263 expensive implicit conversion.
5264 * sem_ch3.adb (Build_Derived_Type): Set Derived_Type_Link if needed.
5266 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5268 * exp_ch3.adb (Build_Init_Procedure): Renamed Local_DF_Id
5269 to DF_Id. Add new local variable DF_Call. Do not perform any
5270 elaboration-related checks on the call to the partial finalization
5271 routine within an init proc to avoid generating bogus elaboration
5272 warnings on expansion-related code.
5273 * sem_elab.adb (Check_A_Call): Move constant Access_Case to
5274 the top level of the routine. Ensure that Output_Calls takes
5275 into account flags -gnatel and -gnatwl when emitting warnings
5277 (Check_Internal_Call_Continue): Update the call to Output_Calls.
5278 (Elab_Warning): Moved to the top level of routine Check_A_Call.
5279 (Emit): New routines.
5280 (Output_Calls): Add new formal parameter Check_Elab_Flag along with a
5281 comment on usage. Output all warnings or info messages only when the
5282 caller context demands it and the proper elaboration flag is set.
5284 2014-07-29 Yannick Moy <moy@adacore.com>
5286 * sem_attr.adb (Analyze_Attribute/Attribute_Old):
5287 Check rule about Old appearing in potentially unevaluated
5288 expression everywhere, not only in Post.
5290 2014-07-29 Arnaud Charlet <charlet@adacore.com>
5292 * sem_prag.adb: Update comment.
5293 * a-except.adb, a-except-2005.adb: Minor editing.
5295 2014-07-29 Pierre-Marie Derodat <derodat@adacore.com>
5297 * exp_dbug.adb (Debug_Renaming_Declaration):
5298 Do not create renaming entities for renamings of non-packed
5299 objects and for exceptions.
5301 2014-07-29 Robert Dewar <dewar@adacore.com>
5303 * sem_ch3.adb, sinfo.ads, types.ads, sem_prag.adb, a-except-2005.adb,
5304 sem_ch6.adb, par-ch3.adb: Minor reformatting.
5306 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5308 * sem_ch6.adb (Check_Return_Subtype_Indication): Reject a return
5309 subtype indication in an extended return statement when the
5310 return value is an ancestor of the return type of the function,
5311 and that return type is a null record extension.
5313 2014-07-29 Thomas Quinot <quinot@adacore.com>
5315 * sem_ch13.adb (Rep_Item_Too_Late): Specialize/clarify error
5316 message produced for the case of a type-related representation
5317 item that is made illegal by 13.10(1).
5318 * gnat_rm.texi (Scalar_Storage_Order): Minor change in
5321 2014-07-29 Robert Dewar <dewar@adacore.com>
5323 * gnat_ugn.texi: Add section on Wide_Wide_Character encodings.
5324 * erroutc.adb (Output_Error_Msgs): Take wide characters into
5325 account in computing position of error flags.
5326 * sinput.adb (Get_Column_Number): Take wide characters into
5329 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5331 * par-ch3.adb (P_Access_Type_Definition): The subtype indication
5332 in an access type definition can carry a null_exclusion indicator.
5333 * sem_ch3.adb (Access_Type_Declaration): If the subtype indication
5334 carries a null_exclusion indicator, verify that the subtype
5335 indication denotes an access type, and create a null-excluding
5337 * sinfo.ads, sinfo.adb: New attribute Null_Excluding_Subtype,
5338 defined on N_Access_To_Object_Definition to indicate that the
5339 subtype indication carries a null_exclusion indicator.
5341 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5343 * exp_ch6.adb (Add_Extra_Actual): Do not construct
5344 the extra actual by name, generate a reference instead.
5346 2014-07-29 Arnaud Charlet <charlet@adacore.com>
5348 * sem_prag.adb (Analyze_Pragma): Do not crash analyzing
5349 Allow_Integer_Address if already set.
5350 * a-except-2005.adb (Rcheck_PE_Stream_Operation_Not_Allowed):
5351 Fix order, for consistency with Rmsg_xx declarations.
5353 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5355 * sem_ch4.adb (Complete_Object_Operation): If the type of the
5356 candidate subprogram is a limited view, use non-limited view
5359 2014-07-29 Robert Dewar <dewar@adacore.com>
5361 * sem_ch13.adb: Minor change in RM reference.
5362 * sem_mech.ads: Minor reformatting.
5363 * einfo.ads: Minor comment fix.
5364 * types.ads: Minor correction to range given for Mechanism_Type.
5365 * exp_ch6.adb (Add_Invariant_And_Predicate_Checks): Do not
5366 check predicate on way out for OUT or IN OUT parameters.
5367 * par-ch3.adb (P_Constraint_Opt): Handle missing RANGE keyword
5368 better (P_Range_Constraint): Corresponding fix.
5369 * checks.ads: Minor comment clarification.
5371 2014-07-29 Gary Dismukes <dismukes@adacore.com>
5373 * sem_ch8.adb (Analyze_Object_Renaming): Set the Is_Volatile
5374 and Treat_As_Volatile flags based on whether the renamed object
5375 is a volatile object.
5377 2014-07-29 Olivier Hainque <hainque@adacore.com>
5380 (Default_Alignment): Rename as Storage_Alignment. This is not
5381 a "default" that can be overriden. Augment comment to clarify
5382 intent and document why we need to manage alignment padding.
5383 (Header_Offset): Set to Header'Object_Size instead of 'Size
5384 rounded up to Storage_Alignment. Storage_Alignment on the
5385 allocation header is not required by our internals so was
5386 overkill. 'Object_Size is enough to ensure proper alignment
5387 of the header address when substracted from a storage address
5388 aligned on Storage_Alignment.
5389 (Minimum_Allocation): Rename as Extra_Allocation, conveying that
5390 this is always added on top of the incoming allocation requests.
5391 (Align): New function, to perform alignment rounding operations.
5392 (Allocate): Add comments on the Storage_Address computation
5393 scheme and adjust so that the alignment padding applies to that
5394 (Storage_Address) only.
5396 2014-07-29 Robert Dewar <dewar@adacore.com>
5398 * exp_ch3.adb (Default_Initialize_Object): Remove incorrect
5399 pragma Unreferenced.
5400 * cstand.adb (Create_Standard): Use E_Array_Type for standard
5401 string types. Make sure index of Any_String/Any_Array is in a list.
5402 * errout.adb: Minor reformatting.
5404 2014-07-29 Robert Dewar <dewar@adacore.com>
5406 * gnat_ugn.texi: Clean up and correct documentation of warnings.
5407 * usage.adb: Minor corrections to make sure warnings are properly
5409 * warnsw.adb (Set_Warning_Switch): Remove redundant return statement.
5410 (WA_Warnings): Add Warn_On_Suspicious_Modulus_Value.
5412 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5414 * exp_ch3.adb (Expand_N_Object_Declaration): The dummy block
5415 created to match internal sequence numbers between compilations
5416 with/without abort must have its type properly set.
5418 2014-07-29 Robert Dewar <dewar@adacore.com>
5420 * ali.adb (Initialize_ALI): Initialize SSO_Default_Specified
5421 (Scan_ALI): Set SSO_Default in ALIs_Record (Scan_ALI): Set
5422 SSO_Default_Specified.
5423 * ali.ads (ALIs_Record): Add field SSO_Default
5424 (SSO_Default_Specified): New global switch.
5425 * bcheck.adb (Check_Consistent_SSO_Default): New procedure
5426 (Check_Configuration_Consistency): Call this procedure
5427 * einfo.adb (SSO_Set_High_By_Default): New
5428 function (SSO_Set_Low_By_Default): New function
5429 (Set_SSO_Set_High_By_Default): New procedure
5430 (Set_SSO_Set_Low_By_Default): New procedure (Write_Entity_Flags):
5432 * einfo.ads (SSO_Set_Low_By_Default): New flag
5433 (SSO_Set_High_By_Default): New flag
5434 * freeze.adb (Set_SSO_From_Default): New procedure
5435 (Freeze_Array_Type): Call Set_SSO_From_Default
5436 (Freeze_Record_Type): Call Set_SSO_From_Default
5437 * gnat_rm.texi: Document pragma Default_Scalar_Storage_Order
5438 * lib-writ.adb (Write_ALI): Set OL/OH in P line as needed
5439 * lib-writ.ads: Add OL/OH parameters to P line
5440 * opt.adb: Set Default_SSO, Default_SSO_Config as appropriate
5441 * opt.ads (Default_SSO): New global switch (Default_SSO_Config):
5443 * repinfo.adb (List_Scalar_Storage_Order): List SSO when it is
5444 set by default using pragma Default_Scalar_Storage_Order.
5445 * sem.ads (Scope_Stack_Entry): Add component Save_Default_SSO
5446 * sem_ch13.adb (Inherit_Delayed_Rep_Aspects):
5447 Clear SSO defaults when explicit SSO is inherited.
5448 (Analyze_Attribute_Definition_Clause): Clear SSO defaults when
5449 explicit SSO is specified.
5450 (Inherit_Aspects_At_Freeze_Point):
5451 Clear SSO default when inheriting SSO.
5452 * sem_ch3.adb (Set_Default_SSO): New procedure
5453 (Analyze_Private_Extension_Declaration): Set defualt SSO
5454 (Array_Type_Declaration): ditto (Build_Derived_Array_Type): ditto
5455 (Build_Derived_Private_Type): ditto (Build_Derived_Record_Type):
5456 ditto (Build_Derived_Type): ditto (Make_Class_Wide_Type): ditto
5457 (Record_Type_Declaration): ditto
5458 * sem_ch8.adb (Pop_Scope): Restore Default_SSO (Push_Scope):
5460 * sem_prag.adb (Analyze_Pragma, case
5461 Default_Scalar_Storage_Order): Set Default_SSO
5463 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5465 * sem_ch6.adb (Valid_Operator_Definition): Verify that
5466 all parameter have mode IN. This check must be done here for
5467 subprogram instantiations that have operator names, because their
5468 analysis does not follow the same path as that for subprogram
5471 2014-07-29 Robert Dewar <dewar@adacore.com>
5473 * freeze.adb (Freeze_Entity, Concurrent_Type case): Add a guard
5474 to make sure that the Etype of a component of the corresponding
5475 record type is present before trying to freeze it.
5476 * sem_ch5.adb: Minor reformatting.
5478 2014-07-29 Robert Dewar <dewar@adacore.com>
5480 * exp_attr.adb, types.ads, types.h, exp_ch11.adb, a-except.adb,
5481 a-except-2005.adb: Add new reason code PE_Stream_Operation_Not_Allowed,
5482 and then use it when a stream operation is used from a library generic
5483 when the restriction (No_Streams) is active.
5485 2014-07-29 Thomas Quinot <quinot@adacore.com>
5487 * projects.texi: Fix minor typo.
5489 2014-07-29 Yannick Moy <moy@adacore.com>
5491 * sem_attr.adb (Analyze_Attribute): Fix generation of warning.
5493 2014-07-29 Arnaud Charlet <charlet@adacore.com>
5495 * sem_ch5.adb (Check_Unreachable_Code): Do not remove code in
5498 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5500 * exp_ch7.adb (Find_Last_Init): Add local variable
5501 Deep_Init_Found. Check the statement immediately following the
5502 declaration if [Deep_]Initialization was not found.
5504 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5506 * exp_util.adb (Is_Aliased): It appears that
5507 'reference-d and renamed objects still play some role in Boolean
5508 expression with actions and cannot be finalized immediately.
5510 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5512 * exp_dbug.adb (Qualify_Needed): For debugging purposes,
5513 Loop names are not part of the full qualification of entity names.
5515 2014-07-29 Robert Dewar <dewar@adacore.com>
5517 * einfo.adb (Has_Protected): Test base type.
5518 * sem_ch4.adb (Analyze_Allocator): Reorganize code to make sure
5519 that we always properly check No_Protected_Type_Allocators.
5521 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5523 * sem_util.ads, sem_util.adb (Defining_Entity): Now applies to
5524 loop declarations as well.
5525 * exp_ch5.adb (Expand_Loop_Statement): Apply Qualify_Entity_Names
5526 to an iterator loop, because it may contain local renaming
5527 declarations that require debugging information.
5529 2014-07-29 Robert Dewar <dewar@adacore.com>
5531 * sem_util.ads, exp_util.adb, sem_attr.adb: Minor reformatting.
5533 2014-07-29 Robert Dewar <dewar@adacore.com>
5535 * einfo.ads, einfo.adb (Static_Real_Or_String_Predicate): New function
5536 (Set_Static_Real_Or_String_Predicate): New procedure
5537 * sem_ch13.adb (Build_Predicate_Functions): Accomodate static
5538 string predicates (Is_Predicate_Static): Handle static string
5540 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches):
5541 New procedure (Check_Expression_Against_Static_Predicate):
5542 Deal with static string predicates, now fully implemented
5543 (Eval_Relational_Op): Allow string equality/inequality as static
5544 if not comes from source.
5546 2014-07-29 Robert Dewar <dewar@adacore.com>
5548 * sem_aggr.adb, exp_ch5.adb, sem_ch5.adb, exp_util.adb, einfo.adb,
5549 einfo.ads, sem_util.adb, sem_attr.adb, sem_case.adb, sem_eval.adb,
5550 sem_eval.ads, sem_ch13.adb: General cleanup of static predicate
5551 handling. Change name of Discrete_Predicate to
5552 Discrete_Static_Predicate, and replace testing of the presence of this
5553 field by testing the flag Has_Static_Expression.
5555 2014-07-29 Robert Dewar <dewar@adacore.com>
5557 * gnat_rm.texi: Document pragma Unevaluated_Use_Of_Old.
5558 * opt.adb: Handle Uneval_Old.
5559 * opt.ads (Uneval_Old, Uneval_Old_Config): New variables.
5560 * par-prag.adb: Add dummy entry for pragma Unevaluated_Use_Of_Old.
5561 * sem.ads (Save_Uneval_Old): New field in Scope_Stack_Entry.
5562 * sem_attr.adb (Uneval_Old_Msg): New procedure.
5563 * sem_ch8.adb (Push_Scope): Save Uneval_Old.
5564 (Pop_Scope): Restore Uneval_Old.
5565 * sem_prag.adb (Analyze_Pragma, case Unevaluated_Use_Of_Old):
5567 * snames.ads-tmpl: Add entries for pragma Unevaluated_Use_Of_Old
5568 Add entries for Name_Warn, Name_Allow.
5570 2014-07-29 Robert Dewar <dewar@adacore.com>
5572 * sem_aggr.adb (Resolve_Array_Aggregate): Change Is_Static_Range
5573 to Is_OK_Static_Range.
5574 * sem_attr.adb (Eval_Attribute): Make sure we properly flag
5575 static attributes (Eval_Attribute, case Size): Handle size of
5576 zero properly (Eval_Attribute, case Value_Size): Handle size of
5578 * sem_ch13.adb: Minor reformatting.
5579 * sem_ch3.adb (Process_Range_Expr_In_Decl): Change
5580 Is_Static_Range to Is_OK_Static_Range.
5581 * sem_eval.adb (Eval_Case_Expression): Total rewrite, was
5582 wrong in several ways (Is_Static_Range): Moved here from spec
5583 (Is_Static_Subtype): Moved here from spec Change some incorrect
5584 Is_Static_Subtype calls to Is_OK_Static_Subtype.
5585 * sem_eval.ads: Add comments to section on
5586 Is_Static_Expression/Raises_Constraint_Error (Is_OK_Static_Range):
5587 Add clarifying comments (Is_Static_Range): Moved to body
5588 (Is_Statically_Unevaluated): New function.
5589 * sem_util.ads, sem_util.adb (Is_Preelaborable_Expression): Change
5590 Is_Static_Range to Is_OK_Static_Range.
5591 * sinfo.ads: Additional commments for Is_Static_Expression noting
5592 that clients should almost always use Is_OK_Static_Expression
5593 instead. Many other changes throughout front end units to obey
5595 * tbuild.ads, tbuild.adb (New_Occurrence_Of): Set Is_Static_Expression
5596 for enumeration literal.
5597 * exp_ch5.adb, sem_intr.adb, sem_ch5.adb, exp_attr.adb, exp_ch9.adb,
5598 lib-writ.adb, sem_ch9.adb, einfo.ads, checks.adb, checks.ads,
5599 sem_prag.adb, sem_ch12.adb, freeze.adb, sem_res.adb, exp_ch4.adb,
5600 exp_ch6.adb, sem_ch4.adb, sem_ch6.adb, exp_aggr.adb, sem_cat.adb:
5601 Replace all occurrences of Is_Static_Expression by
5602 Is_OK_Static_Expression.
5604 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5606 * exp_ch4.adb (Process_Transient_Object): Remove constant
5607 In_Cond_Expr, use its initialization expression in place.
5608 * exp_ch7.adb (Process_Declarations): There is no need to check
5609 that a transient object being hooked is controlled as it would
5610 not have been hooked in the first place.
5611 * exp_util.adb (Is_Aliased): 'Reference-d or renamed transient
5612 objects are not considered aliased when the related context is
5613 a Boolean expression_with_actions.
5614 (Requires_Cleanup_Actions): There is no need to check that a transient
5615 object being hooked is controlled as it would not have been hooked in
5618 2014-07-29 Robert Dewar <dewar@adacore.com>
5620 * errout.adb: Minor reformatting.
5622 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5624 * exp_ch3.adb (Default_Initialize_Object): Add new variables
5625 Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
5626 not allowed to ensure the symmetrical generation of symbols.
5627 * exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
5628 and E_Decl. Add new variables Decl and Dummy. Generate a dummy
5629 temporary when aborts are not allowed to ensure symmertrical
5630 generation of symbols.
5631 * exp_intr.adb (Expand_Unc_Deallocation): Add new variable
5632 Dummy. Generate a dummy temporary when aborts are not allowed
5633 to ensure symmertrical generation of symbols.
5635 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5637 * exp_dbug.adb (Debug_Renaming_Declaration): For an object
5638 renaming, indicate that the renamed entity itself needs debug
5639 information. This is necessary if that entity is a temporary,
5640 e.g. part of the expansion of an explicit dereference in an
5643 2014-07-29 Thomas Quinot <quinot@adacore.com>
5645 * errout.adb (Set_Error_Posted): When propagating flag to
5646 an enclosing named association, also propagate to the parent
5647 of that node, so that named and positional associations are
5648 treated consistently.
5650 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5652 * sem_attr.adb (Resolve_Attribute, case 'Update): Set
5653 Do_Range_Check properly on array component expressions that
5654 have a scalar type. In GNATprove mode, only checks on scalar
5655 components must be marked by the front-end.
5657 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5659 * sem_res.adb (Resolve_Type_Conversion): If the type of the
5660 expression is a limited view, use the non-limited view when
5663 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5665 * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
5666 case statement as coming from a conditional expression.
5667 (Expand_N_If_Expression): Mark the generated if statement as
5668 coming from a conditional expression.
5669 * exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
5670 objects found in case statement alternatives when the case
5671 statement is actually a case expression.
5672 (Expand_N_If_Statement):
5673 Do not process controlled objects found in an if statement when
5674 the if statement is actually an if expression.
5675 * sinfo.adb (From_Conditional_Expression): New routine.
5676 (Set_From_Conditional_Expression): New routine.
5677 * sinfo.ads Add new semantic flag From_Conditional_Expression and
5678 update related nodes.
5679 (From_Conditional_Expression): New routine along with pragma Inline.
5680 (Set_From_Conditional_Expression): New routine along with pragma Inline.
5682 2014-07-29 Hristian Kirtchev <kirtchev@adacore.com>
5684 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
5685 formal parameter Obj_Id and update the comment on usage. Renamed
5686 Obj_Typ to Func_Typ and update all occurrences.
5687 (Find_Last_Init): Remove formal parameter Decl and update the comment
5689 Remove local constants Obj_Id and Obj_Typ. Remove local variables
5690 Init_Typ and Is_Conc. Remove the extraction of the initialization type.
5691 (Find_Last_Init_In_Block): Remove formal parameter
5692 Init_Typ and update the comment on usage.
5693 (Is_Init_Call): Remove formal parameter Init_Typ and update the comment
5694 on usage. Check whether the procedure call is an initialization
5695 procedure of either the object type or the initialization type.
5696 (Is_Init_Proc_Of): New routine.
5697 (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
5698 routine. Add new variable Init_Typ. Add circuitry to extract the object
5699 type as well as the initialization type.
5701 2014-07-29 Robert Dewar <dewar@adacore.com>
5703 * sem_case.adb: Minor reformatting.
5704 * sem_aux.ads: Minor reformatting.
5706 2014-07-29 Ed Schonberg <schonberg@adacore.com>
5708 * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
5709 pointer on these fields, even though they are semantic, because
5710 subsequent analysis and expansion of action nades may require
5711 exploring the tree, for example to locate a node to be wrapped
5712 when a function with controlled result is called.
5714 2014-07-29 Claire Dross <dross@adacore.com>
5716 * sem_aux.adb (Get_Binary_Nkind): Use case on
5717 Name_Id instead of an intermediate string.
5718 (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
5721 2014-07-29 Sergey Rybin <rybin@adacore.com frybin>
5723 * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
5724 about processing sources with preprocessor directives.
5726 2014-07-24 Martin Liska <mliska@suse.cz>
5728 * gcc-interface/trans.c (finalize_nrv): Adjust function call.
5729 * gcc-interface/utils.c (rest_of_subprog_body_compilation): Likewise.
5730 (gnat_write_global_declarations): Likewise.
5732 2014-07-19 David Wohlferd <dw@LimeGreenSocks.com>
5734 * gnat_rm.texi: Clean up for makeinfo 5.2.
5736 2014-07-19 David Wohlferd <dw@LimeGreenSocks.com>
5738 * gnat_rm.texi (Machine Code Insertions): Clean up.
5740 2014-07-18 Robert Dewar <dewar@adacore.com>
5742 * exp_ch7.adb: Minor reformatting.
5744 2014-07-18 Claire Dross <dross@adacore.com>
5746 * sem_aux.ads (Get_Binary_Nkind): New function that returns
5747 the Node_Kind value of an entity defining a binary operator.
5748 (Get_Unary_Nkind): New function that returns the Node_Kind value
5749 of an entity defining a unary operator.
5751 2014-07-18 Pascal Obry <obry@adacore.com>
5753 * sysdep.c: comment update.
5754 * adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
5755 platforms where it is known to be supported.
5757 2014-07-18 Thomas Quinot <quinot@adacore.com>
5759 * sem_dist.adb (Process_Remote_AST_Declaration): Need
5760 to set Fat_Type's Ekind in order to be able to use its
5761 Corresponding_Remote_Type attribute.
5763 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
5765 * einfo.adb Last_Aggregate_Assignment is now Node 30.
5766 (Last_Aggregate_Assignment): Include
5767 constants in the assertion. Update the underlying node.
5768 (Set_Last_Aggregate_Assignment): Include constants in the
5769 assertion. Update the underlying node. (Write_Field11_Name):
5770 Remove the entry for Last_Aggregate_Assignment.
5771 (Write_Field30_Name): Add an entry for Last_Aggregate_Assignment.
5772 * einfo.ads Update the node designation and usage of attribute
5773 Last_Aggregate_Assignment.
5774 * exp_aggr.adb (Expand_Array_Aggregate): Store the last
5775 assignment statement used to initialize a controlled object.
5776 (Late_Expansion): Store the last assignment statement used to
5777 initialize a controlled record or an array of controlled objects.
5778 * exp_ch3.adb (Expand_N_Object_Declaration): Default
5779 initialization of objects is now performed in a separate routine.
5780 (Default_Initialize_Object): New routine.
5781 * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Add formal parameter
5782 Obj_Id. Update the comment on usage.
5783 (Find_Last_Init): Remove formal parameter Typ. Update comment on usage.
5784 Reimplement the logic. (Find_Last_Init_In_Block): New routine.
5785 (Is_Init_Call): Add formal parameter Init_Typ. Update the
5786 comment on usage. Account for the type init proc when trying
5787 to determine whether a statement is an initialization call.
5788 (Make_Adjust_Call): Rename formal parameter For_Parent to
5789 Skip_Self. Update all occurrences of For_Parent. Account for
5790 non-tagged types. Update the call to Make_Call.
5791 (Make_Call): Rename formal parameter For_Parent to Skip_Self. Update
5792 comment on usage. Update all occurrences of For_Parent.
5793 (Make_Final_Call): Rename formal parameter For_Parent to
5794 Skip_Self. Update all occurrences of For_Parent. Account
5795 for non-tagged types. Update the call to Make_Call.
5796 (Process_Object_Declaration): Most variables and constants are
5797 now local to the routine.
5798 * exp_ch7.ads (Make_Adjust_Call): Rename formal parameter
5799 For_Parent to Skip_Self. Update the comment on usage.
5800 (Make_Final_Call): Rename formal parameter For_Parent to
5801 Skip_Self. Update the comment on usage.
5803 2014-07-18 Ed Schonberg <schonberg@adacore.com>
5805 * sem_ch9.adb (Analyze_Requeue): The entry being referenced
5806 can be a procedure that is implemented by entry, and have a
5807 formal that is a synchronized interface. It does not have to
5808 be declared as a protected operation.
5810 2014-07-18 Robert Dewar <dewar@adacore.com>
5812 * gnat_rm.texi: Remove mention of obsolete attributes
5813 Max[_Interrupt]_Priority, which have never been implemented
5814 (or at the very least were removed long ago if they ever were
5815 implemented. Add documentation of Max[_Interrupt]_Priority
5816 constants in package System.
5817 * ttypes.ads: Document actual handling of package System,
5818 rather than a historical fantasy version. Remove mention of
5819 non-existent attributes Max[_Interrupt]_Priority.
5821 2014-07-18 Pascal Obry <obry@adacore.com>
5823 * a-witeio.adb (Put): No 16-bit character output when text
5824 translation is disabled.
5825 * i-cstrea.ads: Code clean up.
5827 2014-07-18 Robert Dewar <dewar@adacore.com>
5829 * gnat_rm.texi: Document that Wchar_T_Size and Word_Size are
5832 2014-07-18 Arnaud Charlet <charlet@adacore.com>
5834 * a-witeio.adb, initialize.c: Update comments. Minor clean ups.
5836 2014-07-18 Pascal Obry <obry@adacore.com>
5838 * adaint.c: Do not include wchar.h on VxWorks.
5839 * mingw32.h: Remove obsolete definition.
5841 2014-07-18 Pascal Obry <obry@adacore.com>
5843 * a-textio.adb, a-witeio.adb, a-ztexio.adb: Use C_Streams Default_Text.
5844 * i-cstrea.ads (Content_Encoding): Moved here, add convention C.
5845 * s-ficobl.ads (Content_Encoding): Moved to C_Streams.
5846 * s-fileio.adb (Open): Adjust to use Content_Encoding from C_Streams.
5848 2014-07-18 Pascal Obry <obry@adacore.com>
5850 * a-textio.adb: Rename Is_Text_File to Text_Encoding.
5851 * a-ztexio.adb: Likewise.
5852 * a-witeio.adb: Likewise.
5853 (Open): Pass file's translation mode to set_text_mode.
5854 * s-ficobl.ads (Content_Encoding): New type.
5855 (Text_Content_Encoding): New subtype.
5856 (AFCB): Rename Is_Text_File to Text_Encoding.
5857 * s-fileio.adb (Open): Handles new text_translation
5858 values. Remove Is_Text_File which is equivalent to Text_Encoding
5859 in Text_Content_Encoding.
5860 * adaint.h (__gnat_set_mode): New routine.
5861 * sysdep.c (__gnat_set_wide_text_mode): Removed.
5862 (__gnat_set_mode): New routine.
5864 2014-07-18 Arnaud Charlet <charlet@adacore.com>
5866 * gcc-interface/decl.c, gcc-interface/trans.c,
5867 gcc-interface/utils.c (Is_Packed_Array_Type): Renamed
5868 Is_Packed_Array_Impl_Type.
5870 2014-07-18 Gary Dismukes <dismukes@adacore.com>
5872 * sem_util.adb: Minor typo correction.
5874 2014-07-18 Ben Brosgol <brosgol@adacore.com>
5876 * gnat_rm.texi: Complete previous change.
5878 2014-07-18 Pascal Obry <obry@adacore.com>
5880 * s-fileio.adb: Minor style fix.
5882 2014-07-18 Ed Schonberg <schonberg@adacore.com>
5884 * sem_ch13.adb (Analyze_Aspect_Specifications): Detect improper
5885 specification of stream attributes for subtypes that are not
5886 first subtypes, to prevent malformed rep_item chains in the case
5887 of such illegal specifications for discriminated private subtypes.
5888 (Check_Overloaded_Name): Verify that the name is an entity name
5889 before other checks.
5891 2014-07-18 Pascal Obry <obry@adacore.com>
5893 * adaint.c (__gnat_fputwc) Do not disable on cross-build.
5895 2014-07-18 Robert Dewar <dewar@adacore.com>
5897 * sem_prag.adb, sem_attr.adb,
5898 sem_aggr.adb, sinfo.ads, sem_eval.ads: Minor reformatting.
5900 2014-07-18 Pascal Obry <obry@adacore.com>
5902 * sysdep.c (__gnat_wide_text_translation_required): Removed from here.
5903 * initialize.c (__gnat_wide_text_translation_required): Defined here.
5905 2014-07-18 Pascal Obry <obry@adacore.com>
5907 * adaint.c (__gnat_fputwc): New routine.
5908 * s-crtl.ads (fputwc): Now imported as __gnat_fputwc.
5910 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
5912 * einfo.adb: Flag 270 is now used as Stores_Attribute_Old_Prefix.
5913 (Set_Stores_Attribute_Old_Prefix): New routine.
5914 (Stores_Attribute_Old_Prefix): New routine.
5915 (Write_Entity_Flags):
5916 Output flag Stores_Attribute_Old_Prefix.
5917 * einfo.ads Add new flag Stores_Attribute_Old_Prefix along with
5919 (Set_Stores_Attribute_Old_Prefix): New routine
5920 along with pragma Inline.
5921 (Stores_Attribute_Old_Prefix): New
5922 routine along with pragma Inline.
5923 * exp_attr.adb (Expand_N_Attribute_Reference): Mark the generated
5924 constant which captures the result of attribute 'Old's prefix.
5925 * sem_util.adb (In_Assertion_Expression_Pragma): Recognize a
5926 relocated expression which acted as a prefix of attribute 'Old.
5928 2014-07-18 Bob Duff <duff@adacore.com>
5930 * s-spsufi.adb (Finalize_And_Deallocate): Set Subpool.Owner to
5931 null before dispatching to Deallocate_Subpool.
5932 * s-stposu.ads (Default_Subpool_For_Pool): Change mode of
5933 parameter of Default_Subpool_For_Pool to 'in out'.
5934 * s-stposu.adb (Set_Pool_Of_Subpool): Use raise expression. Add
5935 a message to the raise.
5936 * sem_util.adb: Minor reformatting.
5938 2014-07-18 Robert Dewar <dewar@adacore.com>
5940 * sem_util.adb (Check_Expression_Against_Static_Predicate):
5941 Mark expression as non-static if it fails static predicate check,
5942 and issue additional warning.
5944 2014-07-18 Pascal Obry <obry@adacore.com>
5946 * a-witeio.adb (Put): Control translation based on
5947 wide_text_translation_required.
5948 * adaint.c (CurrentCCSEncoding): New variable.
5949 * initialize.c (__gnat_initialize): On Windows initialize
5950 CurrentCCSEncoding based on values in GNAT_CCS_ENCODING
5951 environment variable.
5952 * mingw32.h (CurrentCCSEncoding): New external.
5953 (__gnat_wide_text_translation_required): Likewise.
5954 * sysdep.c (wide_text_translation_required): New variable.
5955 (__gnat_set_wide_text_mode): Set mode based on CurrentCCSEncoding.
5957 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
5959 * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
5960 variable Refined_States. Add global variable Matched_Items.
5961 (Check_Dependency_Clause): Account for dependency
5962 clauses utilizing states with visible null refinements.
5963 (Is_Null_Refined_State): New routine.
5964 (Match_Items): Record each successfully matched item of pragma Depends.
5965 (Record_Item): New routine.
5967 2014-07-18 Ed Schonberg <schonberg@adacore.com>
5969 * sem_attr.adb (Analyze_Attribute, case 'Update): Set
5970 Do_Range_Check flag on a dynamic index expression used in a
5971 component association in the argument of Update.
5973 2014-07-18 Gary Dismukes <dismukes@adacore.com>
5975 * einfo.ads, sem_eval.ads, sem_ch13.adb: Minor reformatting.
5977 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
5979 * exp_ch6.adb (Expand_Simple_Function_Return): Redo the marking
5980 of enclosing blocks, loops and the enclosing function using a
5981 parent-based traversal.
5982 * exp_util.adb (Wrap_Statements_In_Block): Suppress the secondary
5983 stack reclamation if the iterator loop contains a return statement
5984 that uses the stack.
5985 * sem_ch5.adb (Analyze_Loop_Statement): There is no need to
5986 patch up the scope stack as the secondary stack management now
5987 takes into account the enclosing function of the iterator loop.
5989 2014-07-18 Robert Dewar <dewar@adacore.com>
5991 * sem_ch3.adb, g-memdum.ads, i-cstrea.ads: Minor reformatting.
5993 2014-07-18 Robert Dewar <dewar@adacore.com>
5995 * einfo.adb (Has_Static_Predicate): New function.
5996 (Set_Has_Static_Predicate): New procedure.
5997 * einfo.ads (Has_Static_Predicate): New flag.
5998 * sem_ch13.adb (Is_Predicate_Static): New function
5999 (Build_Predicate_Functions): Use Is_Predicate_Static to reorganize
6000 (Add_Call): Minor change in Sloc of generated expression
6001 (Add_Predicates): Remove setting of Static_Pred, no longer used.
6002 * sem_ch4.adb (Has_Static_Predicate): Removed this function,
6003 replace by use of the entity flag Has_Static_Predicate_Aspect.
6004 * sem_eval.adb (Eval_Static_Predicate_Check): Check real case
6005 and issue warning that predicate is not checked for now.
6006 * sem_eval.ads (Eval_Static_Predicate_Check): Fix comments in
6008 * sem_util.adb (Check_Expression_Against_Static_Predicate):
6009 Carry out check for any case where there is a static predicate,
6010 and output appropriate message.
6011 * sinfo.ads: Minor comment corrections.
6013 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6015 * exp_ch3.adb (Expand_Freeze_Record_Type): If the type is derived
6016 from an untagged private type whose full view is tagged, the type
6017 is marked tagged for layout reasons, but it has no dispatch table,
6018 so Set_All_DT_Position must not be called.
6019 * exp_ch13.adb: If the freeze node is for a type internal to a
6020 record declaration, as is the case for a class-wide subtype
6021 of a parent component, the relevant scope is the scope of the
6024 2014-07-18 Thomas Quinot <quinot@adacore.com>
6026 * g-memdum.adb, g-memdum.ads: Code clean ups.
6028 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
6030 * sem_prag.adb (Check_Dependency_Clause):
6031 Update the comment on usage. Reimplement the mechanism which
6032 attempts to match a single clause of Depends against one or
6033 more clauses of Refined_Depends.
6034 (Input_Match): Removed.
6035 (Inputs_Match): Removed.
6036 (Is_Self_Referential): Removed.
6037 (Normalize_Clause): Update the call to Split_Multiple_Outputs.
6038 (Normalize_Outputs): Rename variable Split to New_Claue and update
6039 all its occurrences.
6040 (Report_Extra_Clauses): Update the comment on usage.
6041 (Split_Multiple_Outputs): Renamed to Normalize_Outputs.
6043 2014-07-18 Gary Dismukes <dismukes@adacore.com>
6045 * i-cstrea.ads: Minor reformatting.
6047 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
6049 * exp_util.adb (Wrap_Statements_In_Block): Propagate both
6050 secondary stack-related flags to the generated block.
6051 * sem_ch5.adb (Analyze_Loop_Statement): Update the scope chain
6052 once the loop is relocated in a block.
6054 2014-07-18 Robert Dewar <dewar@adacore.com>
6056 * repinfo.ads: Add documentation on handling of back annotation
6059 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6061 * sinfo.ads, sinfo.adb (Incomplete_View): New semantic attribute
6062 of full type declaration, denotes previous declaration for
6063 incomplete view of the type.
6064 * sem_ch3.adb (Analyze_Full_Type_Declaration): Set Incomplete_View
6065 of declaration if one is present.
6066 (Replace_Type): When constructing the signature of an inherited
6067 operation, handle properly the case where the operation has a
6068 formal whose type is an incomplete view.
6069 * sem_util.adb (Collect_Primitive_Operations): Handle properly
6070 the case of an operation declared after an incomplete declaration
6071 for a type T and before the full declaration of T.
6073 2014-07-18 Pascal Obry <obry@adacore.com>
6075 * i-cstrea.ads: Add documentation for set_wide_text_mode.
6077 2014-07-18 Robert Dewar <dewar@adacore.com>
6079 * a-witeio.adb: Minor code reorganization.
6080 * i-cstrea.ads: Add comment.
6082 2014-07-18 Thomas Quinot <quinot@adacore.com>
6084 * s-oscons-tmplt.c (NAME_MAX): Minor cleaup and comment
6087 2014-07-18 Robert Dewar <dewar@adacore.com>
6089 * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting.
6091 2014-07-18 Pascal Obry <obry@adacore.com>
6093 * s-crtl.ads, i-cstrea.ads (fputwc): New routine.
6094 * a-witeio.adb (Put): On platforms where there is translation
6095 done by the OS output the raw text.
6096 (New_Line): Use Put above to properly handle the LM wide characters.
6098 2014-07-18 Thomas Quinot <quinot@adacore.com>
6100 * g-memdum.adb, g-memdum.ads (Dump): New parameter Prefix, defaulted
6101 to Absolute_Address.
6103 2014-07-18 Eric Botcazou <ebotcazou@adacore.com>
6105 * opt.ads (Suppress_Back_Annotation): Remove as unused.
6106 * fe.h (Back_Annotate_Rep_Info): Likewise.
6107 (Global_Discard_Names): Likewise.
6109 2014-07-18 Robert Dewar <dewar@adacore.com>
6111 * sem_ch13.adb (Is_Type_Ref): Check that type name is not
6114 2014-07-18 Vincent Celier <celier@adacore.com>
6116 * s-osinte-vms.ads: Fix style errors.
6118 2014-07-18 Thomas Quinot <quinot@adacore.com>
6120 * s-oscons-tmplt.c (_POSIX_SOURCE): Define in order to get
6121 NAME_MAX and PATH_MAX.
6123 2014-07-18 Bob Duff <duff@adacore.com>
6125 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function,
6126 Build_Record_Or_Elementary_Output_Procedure): For Input and
6127 Output attributes, do not read/write the discriminants if they
6128 have default values; that will be done by Read/Write.
6130 2014-07-18 Robert Dewar <dewar@adacore.com>
6132 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, layout.adb, sem_type.adb,
6133 exp_util.adb, exp_attr.adb, einfo.adb, einfo.ads, exp_pakd.adb,
6134 checks.adb, exp_pakd.ads, freeze.adb, sem_util.adb, exp_dbug.adb,
6135 exp_dbug.ads, exp_ch4.adb, sem_ch8.adb, exp_aggr.adb, sem_eval.adb,
6136 sem_ch13.adb: Change name Packed_Array_Type to Packed_Array_Impl_Type.
6138 2014-07-18 Robert Dewar <dewar@adacore.com>
6140 * lib-writ.adb, makeutl.adb, ali.ads: Minor reformatting.
6142 2014-07-18 Vincent Celier <celier@adacore.com>
6144 * lib-writ.ads: Update documentation about the D lines.
6146 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6148 * sem_ch13.adb (Replace_Type_References_Generic): Use type entity
6149 as a parameter, rather than its Chars field, in order to locate
6150 freeze node of type. If the predicate or invariant has references
6151 to types other than the one to which the contract applies, these
6152 types must be frozen, and the corresponding predicate functions
6153 created, before that freeze node.
6155 2014-07-18 Robert Dewar <dewar@adacore.com>
6157 * freeze.adb, einfo.ads, einfo.adb: Minor code reorganization.
6158 * par_sco.adb: Minor reformatting.
6160 2014-07-18 Gary Dismukes <dismukes@adacore.com>
6162 * exp_ch4.adb (Real_Range_Check): Turn off
6163 the Do_Range_Check flag on the conversion's current Expression
6164 argument rather than on the originally captured Operand node,
6165 as Expression may reflect a rewriting (as in conversions to a
6168 2014-07-18 Vincent Celier <celier@adacore.com>
6170 * ali.adb (Scan_ALI): Set Sdep_Record.Unit_Name, when the unit
6172 * ali.ads (Sdep_Record): New component Unit_Name.
6173 * lib-writ.adb (Write_ALI): Write the unit name in D lines.
6174 * makeutl.adb (Check_Source_Info_In_ALI): Return False if a
6175 dependent unit is in a project and the source file name is not
6178 2014-07-18 Bob Duff <duff@adacore.com>
6180 * s-addima.ads: Minor: add comment.
6182 2014-07-18 Thomas Quinot <quinot@adacore.com>
6184 * freeze.adb (Check_Component_Storage_Order): Fix enforcement
6185 of nesting rules for composites with different SSOs.
6187 2014-07-18 Thomas Quinot <quinot@adacore.com>
6189 * par_sco.adb (Is_Logical_Operator): An If_Expression is not
6190 a proper logical operator.
6191 (Has_Decision): An If_Expression indicates the presence of a decision
6192 although it is not a logical operator.
6194 2014-07-18 Robert Dewar <dewar@adacore.com>
6196 * gnat_ugn.texi: Remove note that -gnatR not allowed with -gnatc.
6197 * switch-c.adb: Remove prohibition of -gnatR and -gnatc together.
6199 2014-07-18 Eric Botcazou <ebotcazou@adacore.com>
6201 * sem_ch13.adb (Kill_Rep_Clause): Clear Comes_From_Source flag
6202 on the null statement.
6204 2014-07-18 Thomas Quinot <quinot@adacore.com>
6206 * adaint.c: Minor comment rewording.
6207 * socket.c: Define macros _REENTRANT and _THREAD_SAFE so that
6208 use of errno in this file is thread safe.
6210 2014-07-18 Arnaud Charlet <charlet@adacore.com>
6212 * gnat_ugn.texi: Doc clarification.
6213 * sem_ch13.adb (Kill_Rep_Clause): Use Replace not Rewrite.
6214 * sem_ch13.ads: Minor comment update.
6216 2014-07-18 Robert Dewar <dewar@adacore.com>
6218 * repinfo.ads: Minor comment fix.
6220 2014-07-18 Robert Dewar <dewar@adacore.com>
6222 * par-prag.adb: Add dummy entry for Default_Scalar_Storage_Order.
6223 * sem_prag.adb: Add dummy implementation of
6224 Default_Scalar_Storage_Order.
6225 * snames.ads-tmpl: Add dummy entry for
6226 Default_Scalar_Storage_Order pragma.
6228 2014-07-18 Robert Dewar <dewar@adacore.com>
6230 * opt.adb (Tree_Read): Read Address_Is_Private,
6231 Ignore_Rep_Clauses, Ignore_Style_Check_Pragmas, Multiple_Unit_Index.
6232 (Tree_Write): Corresponding writes
6233 * opt.ads: Minor comment reformatting and fixes.
6234 * tree_io.ads: Increment ASIS_Version_Number.
6236 2014-07-18 Robert Dewar <dewar@adacore.com>
6238 * sem_attr.adb, s-os_lib.ads, prj-tree.adb: Minor reformatting.
6239 * types.h: Fix typo.
6241 2014-07-18 Robert Dewar <dewar@adacore.com>
6243 * freeze.adb (Check_Address_Clause): Use Kill_Rep_Clause (no
6245 * gnat_ugn.texi: Document that -gnatI removes rep clauses from
6247 * sem_ch13.adb (Kill_Rep_Clause): New procedure
6248 (Analyze_Attribute_Definition_Clause): Use
6249 Kill_Rep_Clause. This is just a cleanup, no functional effect.
6250 (Analyze_Enumeration_Representation_Clause):
6251 Use Kill_Rep_Clause. This means that enum rep
6252 clauses are now properly removed from -gnatct trees.
6253 (Analyze_Record_Representation_Clause): Same change.
6254 * sem_ch13.ads (Kill_Rep_Clause): New procedure.
6256 2014-07-18 Pascal Obry <obry@adacore.com>
6258 * s-os_lib.ads, s-os_lib.adb (GM_Time_Of): New routine to create an
6259 OS_Time from time parts.
6260 * adaint.h, adaint.c (__gnat_to_os_time): New routine.
6262 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6264 * sem_ch4.adb (Try_Container_Indexing): Refine previous patch for
6265 indexing over containers that are derived types: check whether
6266 signature of found operation has the correct first parameter
6267 before retrieving directly a primitive operation.
6269 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6271 * sem_attr.adb (Analyze_Attribute, case 'Update): Set
6272 Do_Range_Check flag on dynamic bounds of a range used in a
6273 component association in the argument of Update.
6275 2014-07-18 Thomas Quinot <quinot@adacore.com>
6277 * adaint.c: #define _REENTRANT and _THREAD_SAFE in order for
6278 accesses to errno(3) to be thread safe.
6280 2014-07-18 Vincent Celier <celier@adacore.com>
6282 * prj-tree.adb (Imported_Or_Extended_Project_Of): For each non
6283 limited imported project that is an extending project, return
6284 a project being extended if it has the expected name.
6286 2014-07-18 Pascal Obry <obry@adacore.com>
6288 * s-os_lib.ads, s-os_lib.adb (Set_File_Last_Modify_Time_Stamp): New
6289 routine to set the last modification time stamp for the given file.
6290 * gnatchop.adb (File_Time_Stamp): Removed.
6292 Set_File_Last_Modify_Time_Stamp instead of ad-hoc implementation.
6294 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6296 * sem_aggr.adb (Aggregate_Constraint_Checks): Moved to sem_util.
6297 * sem_util.ads, sem_util.adb (Aggregate_Constraint_Checks):
6298 Moved here, so it can be shared with the resolution of 'Update,
6299 whose argument shares some features with aggregates.
6300 * sem_attr.adb (Resolve_Attribute, case 'Update): Apply
6301 Aggregate_Constraint_Checks with the expression of each
6302 association, so that the Do_Range_Check flag is set when needed.
6304 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6306 * sem_ch4.adb (Try_Container_Indexing): If the container
6307 type is a derived type, the value of the inherited aspect is
6308 the Reference operation declared for the parent type. However,
6309 Reference is also a primitive operation of the new type, and
6310 the inherited operation has a different signature. We retrieve
6311 the right one from the list of primitive operations of the
6314 2014-07-18 Vincent Celier <celier@adacore.com>
6316 * debug.adb: Update comment.
6318 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
6320 * exp_util.adb (Needs_Finalization): There is no reason why a
6321 C type should not benefit from finalization actions.
6323 2014-07-18 Thomas Quinot <quinot@adacore.com>
6325 * s-oscons-tmplt.c (NAME_MAX): Fix definition for Solaris
6326 (FILENAME_MAX): Remove unneeded definition.
6328 2014-07-18 Robert Dewar <dewar@adacore.com>
6330 * exp_attr.adb, debug.adb: Update comments.
6332 2014-07-18 Vincent Celier <celier@adacore.com>
6334 * par-ch4.adb (Simple_Expression): Add missing style check
6335 for binary adding operators.
6336 (Term): Add missing style check for multiplying operators.
6338 2014-07-18 Robert Dewar <dewar@adacore.com>
6340 * impunit.adb: Minor comment correction.
6341 * widechar.adb, s-wchcon.ads: Minor comment corrections.
6343 2014-07-18 Robert Dewar <dewar@adacore.com>
6345 * sem_ch13.adb (Build_Discrete_Static_Predicate): New name
6346 for Build_Static_Predicate (Build_Predicate_Functions):
6347 Don't try to build discrete predicate for real type.
6348 (Build_Predicate_Functions): Report attempt to use
6349 Static_Predicate function on real type as unimplemented.
6350 * sem_util.adb (Check_Expression_Against_Static_Predicate):
6351 Add guard to prevent blow up on predicate for real type.
6353 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6355 * einfo.adb (Set_Static_Predicate): Simplify assertion to handle
6356 properly static predicate on enumeration types and modular types
6359 2014-07-18 Pierre-Marie Derodat <derodat@adacore.com>
6361 * scos.ads (SCO_Unit_Table_Entry): Add a field to keep track of
6362 the corresponding source file index.
6363 * get_scos.ads (Get_SCOs): Add a default value for it.
6364 * par_sco.adb (SCO_Record): Fill the corresponding value.
6367 2014-07-18 Vincent Celier <celier@adacore.com>
6369 * a-strunb-shared.adb, s-auxdec.ads, s-rannum.adb, atree.ads,
6370 urealp.adb, vms_data.ads, lib.ads, s-auxdec-vms_64.ads: Minor
6372 * gnat_ugn.texi: Add documentation for new gnatmem switch -t.
6374 2014-07-18 Thomas Quinot <quinot@adacore.com>
6376 * g-sercom.ads (Set): document possible data loss.
6378 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6380 * exp_attr.adb (Expand_N_Attribute_Reference, cases Input,
6381 Output, Read, Write): If the restriction No_Streams is active,
6382 replace each occurrence of a stream attribute by an explicit
6385 2014-07-18 Robert Dewar <dewar@adacore.com>
6387 * par_sco.adb, a-reatim.ads, exp_attr.adb, sem_util.adb: Minor
6390 2014-07-18 Robert Dewar <dewar@adacore.com>
6392 * einfo.ads, einfo.adb (Has_Out_Or_In_Out_Parameter): New flag and
6394 (Set_Has_Out_Or_In_Out_Parameter): New procedure.
6395 * sem_ch6.adb (Set_Formal_Mode): Set Has_Out_Or_In_Out_Parameter flag.
6396 * sem_res.adb (Resolve_Call): Error if call of Ada 2012 function
6397 with OUT or IN OUT from earlier Ada mode (e.g. Ada 2005)
6399 2014-07-18 Robert Dewar <dewar@adacore.com>
6401 * bcheck.adb (Check_Consistent_Restrictions):
6402 Remove obsolete code checking for violation of
6403 No_Standard_Allocators_After_Elaboration (main program)
6404 * bindgen.adb (Gen_Adainit): Handle
6405 No_Standard_Allocators_After_Elaboration
6406 (Gen_Output_File_Ada): ditto.
6407 * exp_ch4.adb (Expand_N_Allocator): Handle
6408 No_Standard_Allocators_After_Elaboration.
6409 * Makefile.rtl: Add entry for s-elaall
6410 * rtsfind.ads: Add entry for Check_Standard_Allocator.
6411 * s-elaall.ads, s-elaall.adb: New files.
6412 * sem_ch4.adb (Analyze_Allocator): Handle
6413 No_Standard_Allocators_After_Elaboration.
6415 2014-07-18 Robert Dewar <dewar@adacore.com>
6417 * lib.adb, lib.ads, lib-writ.adb, lib-writ.ads, ali.adb,
6418 ali.ads, lib-load.adb: Remove Lib.Has_Allocator and all uses.
6419 Remove AB parameter from ali files and all uses.
6420 Remove Allocator_In_Body and all uses.
6422 2014-07-18 Robert Dewar <dewar@adacore.com>
6424 * g-expect-vms.adb: Add comment.
6426 2014-07-18 Thomas Quinot <quinot@adacore.com>
6428 * par_sco.adb (Is_Logical_Operation): return True for
6431 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6433 * sem_attr.adb (Resolve_Attribute, case 'Update): Do full
6434 analysis and resolution of each choice in the associations within
6435 the argument of Update, because they may be variable names.
6437 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
6439 * exp_attr.adb (Expand_Loop_Entry_Attribute): Insert any condition
6440 actions before the generated if statement.
6442 2014-07-18 Hristian Kirtchev <kirtchev@adacore.com>
6444 * gnat_ugn.texi Enhance the documentation of
6445 switches -gnateA and -gnateV.
6447 2014-07-18 Ed Schonberg <schonberg@adacore.com>
6449 * sem_util.adb (Build_Default_Subtype): Add missing condition
6450 so that code matches description: use the full view of the base
6451 only if the base is private and the subtype is not.
6453 2014-07-17 Gary Dismukes <dismukes@adacore.com>
6455 * exp_disp.adb: Minor reformatting.
6456 * exp_disp.adb: Minor code reorganization.
6458 2014-07-17 Thomas Quinot <quinot@adacore.com>
6460 * gnat_rm.texi, freeze.adb (Check_Component_Storage_Order): Do not
6461 require an explicit SSO attribute definition clause on a composite type
6462 just because one of its components has one.
6464 2014-07-17 Robert Dewar <dewar@adacore.com>
6466 * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Rewrite
6467 attribute out of existence if the enclosing pragma is ignored.
6468 * sem_util.adb: Minor reformatting.
6470 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6472 * exp_aggr.adb (Expand_Array_Aggregate): Handle properly an
6473 array aggregate expanded into assignments when it appears as a
6474 local declaration in an inlined body.
6476 2014-07-17 Doug Rupp <rupp@adacore.com>
6478 * init.c [__ANDROID__]: Modify for ZCX.
6479 * exp_aggr.adb: Minor reformatting
6480 * sigtramp-armvxw.c, sigtramp-ppcvxw.c: Update comments.
6482 2014-07-17 Robert Dewar <dewar@adacore.com>
6484 * a-strunb-shared.ads, a-stwiun-shared.ads, a-stzunb-shared.ads,
6485 exp_ch7.adb, g-pehage.ads, g-socket.ads, gnat_ugn.texi, gnat_ugx.texi,
6486 scng.adb: Remove incorrect usage "allow to" and "allows to".
6488 2014-07-17 Robert Dewar <dewar@adacore.com>
6490 * exp_dist.adb: Minor reformatting.
6492 2014-07-17 Bob Duff <duff@adacore.com>
6494 * gnat_ugn.texi: Improve documentation of Unrestricted_Access.
6496 2014-07-17 Robert Dewar <dewar@adacore.com>
6498 * sem_ch13.adb (Build_Invariant_Procedure): Add variable Nam
6499 (Add_Invariants): Set Nam to Name_Type_Invariant if from aspect.
6501 2014-07-17 Thomas Quinot <quinot@adacore.com>
6503 * exp_pakd.adb (Create_Packed_Array_Type.Install_PAT): For a
6504 non-bit-packed array, propagate Reverse_Storage_Order to the
6507 2014-07-17 Javier Miranda <miranda@adacore.com>
6509 * exp_disp.adb: Fix comment.
6510 * exp_pakd.adb: Minor reformatting.
6512 2014-07-17 Robert Dewar <dewar@adacore.com>
6514 * bindgen.adb (Gen_Elab_Calls): Skip reference to elab
6515 entity if none exists (Gen_Elab_Calls): Complain if clash with
6516 No_Multiple_Elaboration.
6517 * s-rident.ads, restrict.ads: Add restriction No_Multiple_Elaboration.
6518 * sem_util.adb (Build_Elaboration_Entity): Skip building entity
6520 * gnat_rm.texi: Document restriction No_Multiple_Elaboration.
6521 * sem_ch4.adb: Minor comment updates.
6523 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6525 * exp_ch9.adb (Buid_Protected_Subprogram_Call): Preserve type
6526 of function call for later use when shared passive objects
6529 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6531 * par-ch13.adb (Get_Aspect_Specifications):
6532 Catch a case where the argument of SPARK aspect Refined_State
6533 is not properly parenthesized.
6535 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6537 * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not extend
6538 the lifetime of a reference to an Ada 2012 container element.
6539 (Is_Element_Reference): New routine.
6541 2014-07-17 Robert Dewar <dewar@adacore.com>
6543 * ali.ads: Minor comment fix.
6544 * lib-writ.adb: Minor reformatting.
6546 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6548 * sem_ch10.adb (Analyze_Proper_Body): When analyzing a subunit
6549 in ASIS mode, load another subunit only if it a subunit of the
6550 current one, not a sibling that has been reached through the
6551 analysis of an ancestor. This allows the construction of the
6552 ASIS tree for the subunit even when sibling subunits have errors.
6554 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6556 * sem_ch3.adb (Analyze_Declarations): Remove the guard which
6557 prevents the analysis of various contracts when the associated
6558 construct is erroneous.
6559 * sem_util.adb (Save_SPARK_Mode_And_Set): Do not query the
6560 SPARK_Pragma of an illegal or a partially decorated construct.
6562 2014-07-17 Robert Dewar <dewar@adacore.com>
6564 * s-imguns.ads: Minor reformatting.
6566 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6568 * exp_ch7.adb (Build_Finalization_Master): Move all local
6569 variables to the proper code section. When looking for an existing
6570 finalization master, inspect the ultimate ancestor type of the
6572 * sem_util.ads, sem_util.adb (Root_Type_Of_Full_View): New routine.
6574 2014-07-17 Robert Dewar <dewar@adacore.com>
6576 * aspects.ads, aspects.adb: Add entries for aspect Annotate.
6577 * gnat_rm.texi: Document Entity argument for pragma Annotate and
6579 * sem_ch13.adb (Analyze_Aspect_Specification): Add processing
6580 for Annotate aspect.
6581 * sem_prag.adb (Analyze_Pragma, case Annotate): Allow optional
6582 Entity argument at end.
6583 * sinfo.ads (N_Aspect_Specification): Add note on Annotate aspect.
6585 2014-07-17 Tristan Gingold <gingold@adacore.com>
6587 * s-imguns.ads: Fix minor typo.
6589 2014-07-17 Thomas Quinot <quinot@adacore.com>
6591 * sprint.adb: Minor reformatting.
6593 2014-07-17 Robert Dewar <dewar@adacore.com>
6595 * sprint.adb (Write_Itype): Print proper header for string
6598 2014-07-17 Steve Baird <baird@adacore.com>
6600 * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting.
6602 2014-07-17 Vincent Celier <celier@adacore.com>
6604 * gnatbind.adb: Change in message "try ... for more information".
6606 2014-07-17 Robert Dewar <dewar@adacore.com>
6608 * sprint.adb: Code clean up.
6610 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6612 * exp_ch7.adb (Find_Last_Init): Relocate local variables to
6613 the relevant code section. Add new local constant Obj_Id. When
6614 a limited controlled object is initialized by a function call,
6615 the build-in-place object access function call acts as the last
6616 initialization statement.
6617 * exp_util.adb (Is_Object_Access_BIP_Func_Call): New routine.
6618 (Is_Secondary_Stack_BIP_Func_Call): Code reformatting.
6619 * exp_util.ads (Is_Object_Access_BIP_Func_Call): New routine.
6621 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6623 * sem_ch8.adb (Analyze_Generic_Renaming): For generic subprograms,
6624 propagate intrinsic flag to renamed entity, to allow e.g. renaming
6625 of Unchecked_Conversion.
6626 * sem_ch3.adb (Analyze_Declarations): Do not analyze contracts
6627 if the declaration has errors.
6629 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6631 * a-rbtgbk.adb: a-rbtgbk.adb (Generic_Insert_Post): Check whether
6632 container is busy before checking whether capacity allows for
6633 a further insertion. Insertion in a busy container that is full
6634 raises Program_Error rather than Capacity_Error. Previous to that
6635 patch which exception was raised varied among container types.
6637 2014-07-17 Robert Dewar <dewar@adacore.com>
6639 * g-comlin.ads, g-comlin.adb: Minor clean up.
6641 2014-07-17 Bob Duff <duff@adacore.com>
6643 * gnat_ugn.texi: Update gnatpp doc.
6645 2014-07-17 Robert Dewar <dewar@adacore.com>
6647 * gnat_rm.texi: Document new restriction No_Long_Long_Integers.
6648 * exp_ch4.adb (Make_Array_Comparison_Op): Add note that we
6649 could do this by actually expanding a real generic.
6650 * a-tags.ads: Add comments about performance.
6651 * sprint.adb (Sprint_Node_Actual, case N_Object_Declaration):
6652 Print Etype of defining identifier, rather than the object
6653 definition. More information.
6655 2014-07-17 Thomas Quinot <quinot@adacore.com>
6657 * exp_dist.adb: Minor documentation clarification.
6659 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6661 * exp_util.adb (Is_Aliased): Revert previous change.
6663 2014-07-17 Vincent Celier <celier@adacore.com>
6665 * g-comlin.adb (Try_Help): New procedure.
6666 (Getopt): Use new procedure Try_Help.
6667 * g-comlin.ads (Try_Help): New procedure.
6669 2014-07-17 Bob Duff <duff@adacore.com>
6671 * gnat_ugn.texi: Minor update.
6673 2014-07-17 Robert Dewar <dewar@adacore.com>
6675 * gnat_rm.texi: Improve documentation of Unrestricted_Access.
6676 * sinfo.ads: Document restriction on aggregates (must expand to
6677 assignments if one or more assignments needs expansion, e.g. for
6679 * sem_ch13.adb: All warning messages regarding bit order should
6681 * gnat_ugn.texi: Minor correction of missing @ on @code
6683 2014-07-17 Robert Dewar <dewar@adacore.com>
6685 * restrict.ads (Implementation_Restriction): Add No_Long_Long_Integer.
6686 * s-rident.ads (Partition_Boolean_Restrictions): Add
6687 No_Long_Long_Integer.
6688 * sem_ch3.adb (Modular_Type_Declaration): Size must be <=
6689 Long_Integer'Size if restriction No_Long_Long_Integer is active.
6690 (Signed_Integer_Type_Declaration): Do not allow Long_Long_Integer
6691 as the implicit base type for a signed integer type declaration
6692 if restriction No_Long_Long_Integer is active.
6693 * sem_util.ads, sem_util.adb (Set_Entity_With_Checks): Include check for
6694 No_Long_Long_Integer.
6696 2014-07-17 Robert Dewar <dewar@adacore.com>
6698 * sem_ch3.adb, a-ztexio.ads, exp_imgv.adb, casing.adb, casing.ads,
6699 einfo.ads, checks.adb, sem_ch12.adb, a-textio.ads, freeze.adb,
6700 repinfo.adb, exp_ch6.adb, sem_ch4.adb, a-witeio.ads, sem_ch8.adb,
6701 sem_warn.adb, exp_aggr.adb, exp_dist.adb, par-tchk.adb, s-fatgen.adb,
6702 treepr.adb, lib-xref.adb: Remove the word kludge from ada sources.
6704 2014-07-17 Robert Dewar <dewar@adacore.com>
6706 * debug.adb: Remove -gnatdQ.
6707 * exp_disp.adb: Remove -gnatdQ.
6708 * a-ztenio.ads, a-wtinio.ads, a-wtmoio.ads, a-ztcoau.ads, a-tiinio.ads,
6709 a-wtfiio.ads, a-timoio.ads, sem_ch12.adb, a-tifiio.ads, a-ztinio.ads,
6710 rtsfind.adb, rtsfind.ads, a-ztmoio.ads, a-wtdeio.ads, a-ztfiio.ads,
6711 a-tideio.ads, a-wtflio.ads, a-ztdeio.ads, sem_ch8.adb, a-tiflio.ads,
6712 sprint.adb, a-ztflio.ads, snames.ads-tmpl, a-wtenio.ads,
6713 a-tienio.ads: Rename Text_IO_Kludge to Text_IO_Special_Unit.
6715 2014-07-17 Robert Dewar <dewar@adacore.com>
6717 * back_end.adb: Minor reformatting and comment additions.
6718 * checks.ads, checks.adb (Duplicated_Tag_Checks_Suppressed): New
6720 * exp_disp.adb (Make_DT): Use Duplicated_Tag_Checks_Suppressed.
6721 (Make_VM_TSD): Use Duplicated_Tag_Checks_Suppressed.
6722 * gnat_rm.texi: Document new check Duplicated_Tag_Checks_Suppressed.
6723 * gnat_ugn.texi: Additional documentation for Duplicated_Tag_Check.
6724 * snames.ads-tmpl (Duplicated_Tag_Checks_Suppressed): New check.
6725 * types.ads (Duplicated_Tag_Checks_Suppressed): New check.
6727 2014-07-17 Robert Dewar <dewar@adacore.com>
6729 * gnat_rm.texi: Minor comment updates.
6731 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6733 * sem_util.adb (Make_Explicit_Dereference): If the expression
6734 being dereferenced is a generalized indexing, reset the overloaded
6735 flag on the generalized indexing call, consistent with the
6736 resetting of the flag on the original indexed component.
6738 2014-07-17 Robert Dewar <dewar@adacore.com>
6740 * gnat_ugn.texi: Document advise not to mix -gnatV? and
6743 2014-07-17 Robert Dewar <dewar@adacore.com>
6745 * checks.adb (Insert_Valid_Check): Don't insist on a name
6746 for the prefix when we make calls to Force_Evaluation and
6747 Duplicate_Subexpr_No_Checks.
6748 * exp_util.adb (Is_Volatile_Reference): Handle all cases properly
6749 (Remove_Side_Effects): Handle all volatile references right
6750 (Side_Effect_Free): Volatile reference is never side effect free
6751 * sinfo.ads (N_Attribute_Reference): Add comments explaining
6752 that in the tree, the prefix can be a general expression.
6754 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6756 * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
6757 Analyze_Subprogram_Contract): Add comments on SPARK_Mode save/restore.
6758 * sem_ch7.adb (Analyze_Package_Body_Contract,
6759 Analyze_Package_Contract): Add comments on SPARK_Mode save/restore.
6761 2014-07-17 Robert Dewar <dewar@adacore.com>
6763 * exp_ch7.ads, exp_util.ads: Document Insert_Action_After,
6764 Store_After_Actions_In_Scope.
6766 2014-07-17 Robert Dewar <dewar@adacore.com>
6768 * sem_aux.ads: Minor comment addition.
6770 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6772 * sem_res.adb (Make_Call_Into_Operator): If the call is already
6773 a rewriting of an operator node, there are no actuals to be
6774 propagated from original node to rewritten node when in ASIS mode.
6776 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6778 * sem_ch6.adb (Analyze_Subprogram_Body_Contract,
6779 Analyze_Subprogram_Contract): Add new local variable Mode. Save
6780 and restore the SPARK mode of the related construct in a
6782 * sem_ch7.adb (Analyze_Package_Body_Contract,
6783 Analyze_Package_Contract): Add new local variable Mode. Save and
6784 restore the SPARK mode of the related construct in a stack-like fashion.
6785 * sem_util.adb Remove with and use clause for Opt.
6786 (Restore_SPARK_Mode): New routine.
6787 (Save_SPARK_Mode_And_Set): New routine.
6788 * sem_util.ads Add with and use clause for Opt.
6789 (Restore_SPARK_Mode): New routine.
6790 (Save_SPARK_Mode_And_Set): New routine.
6792 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6794 * exp_util.adb (Is_Aliased): Transient objects
6795 within an expression with actions cannot be considered aliased.
6797 2014-07-17 Thomas Quinot <quinot@adacore.com>
6799 * sem.ads (Scope_Stack_Entry): Reorganize storage of action lists;
6800 introduce a new list (cleanup actions) for each (transient) scope.
6801 * sinfo.ads, sinfo.adb (Cleanup_Actions): New attribute for
6803 * exp_ch7.ads (Store_Cleanup_Actions_In_Scope): New subprogram.
6804 * exp_ch7.adb (Store_Actions_In_Scope): New subprogram, common
6805 processing for Store_xxx_Actions_In_Scope.
6806 (Build_Cleanup_Statements): Allow for a list of additional
6807 cleanup statements to be passed by the caller.
6808 (Expand_Cleanup_Actions): Take custom cleanup actions associated
6809 with an N_Block_Statement into account.
6810 (Insert_Actions_In_Scope_Around): Account for Scope_Stack_Entry
6811 reorganization (refactoring only, no behaviour change).
6812 (Make_Transient_Block): Add assertion to ensure that the current
6813 scope is indeed a block (namely, the entity for the transient
6814 block being constructed syntactically, which has already been
6815 established as a scope). If cleanup actions are present in the
6816 transient scope, transfer them now to the transient block.
6817 * exp_ch6.adb (Expand_Protected_Subprogram_Call): Freeze the
6818 called function while it is still present as the name in a call
6819 in the tree. This may not be the case later on if the call is
6820 rewritten into a transient block.
6821 * exp_smem.adb (Add_Shared_Var_Lock_Procs): The post-actions
6822 inserted after calling a protected operation on a shared passive
6823 protected must be performed in a block finalizer, not just
6824 inserted in the tree, so that they are executed even in case of
6825 a normal (RETURN) or abnormal (exception) transfer of control
6826 outside of the current scope.
6827 * exp_smem.ads (Add_Shared_Var_Lock_Procs): Update documentation
6828 * sem_ch8.adb, expander.adb, exp_ch11.adb: Adjust for
6829 Scope_Stack_Entry reorganization.
6831 2014-07-17 Thomas Quinot <quinot@adacore.com>
6833 * exp_disp.adb (Make_DT, Make_VM_TSD): Do not omit Check_TSD
6834 call for types that do not have an explicit attribute definition
6835 clause for External_Tag, as their default tag may clash with an
6836 explicit tag defined for some other type.
6838 2014-07-17 Hristian Kirtchev <kirtchev@adacore.com>
6840 * exp_util.adb (Is_Controlled_Function_Call): Recognize a
6841 controlled function call with multiple actual parameters that
6842 appears in Object.Operation form.
6844 2014-07-17 Thomas Quinot <quinot@adacore.com>
6846 * einfo.ads, einfo.adb (Has_External_Tag_Rep_Clause): Remove
6848 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
6849 External_Tag): No need to set entity flag.
6850 * sem_aux.ads, sem_aux.adb (Has_External_Tag_Rep_Clause):
6851 Reimplement correctly in terms of Has_Rep_Item.
6853 2014-07-17 Thomas Quinot <quinot@adacore.com>
6855 * exp_ch7.adb (Establish_Transient_Scope.Find_Node_To_Be_Wrapped):
6856 Start examining the tree at the node passed to
6857 Establish_Transient_Scope (not its parent).
6858 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6859 The access type for the variable storing the reference to
6860 the call must be declared and frozen prior to establishing a
6862 * exp_ch9.adb: Minor reformatting.
6864 2014-07-17 Pascal Obry <obry@adacore.com>
6866 * s-os_lib.ads: Minor comment update.
6868 2014-07-17 Tristan Gingold <gingold@adacore.com>
6870 * sysdep.c: Add ATTRIBUTE_UNUSED to avoid warnings. Fix some
6872 * socket.c: Remove #warning to avoid warning.
6873 * expect.c: Indent some preprocessor directives to clarify
6874 nested if. Do not use wait.h on PikeOS. Add ATTRIBUTE_UNUSED
6876 * env.c: Fix indentation. Port to PikeOS.
6877 * gsocket.h: Port to PikeOS. Remove #warning.
6878 * terminals.c: Port to PikeOS. Fix indentation of the stubs.
6879 Add ATTRIBUTE_UNUSED to stubs arguments. Fix return statement
6880 of stubbed __gnat_setup_parent_communication.
6881 * adaint.c: Port to PikeOS. Reindent some preprocessor
6882 directives to clarify nested if. Fix indentation. Add missing
6885 2014-07-17 Robert Dewar <dewar@adacore.com>
6887 * sem_attr.adb: Minor reformatting.
6889 2014-07-17 Robert Dewar <dewar@adacore.com>
6891 * exp_ch7.adb, exp_ch7.ads, sinfo.ads: Minor reformatting.
6893 2014-07-17 Ed Schonberg <schonberg@adacore.com>
6895 * sem_case.adb (Check_Choice_Set): If the case expression is the
6896 expression in a predicate, do not recheck coverage against itself,
6897 to prevent spurious errors.
6898 * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Indicate that
6899 expression comes from an aspect specification, to prevent spurious
6900 errors when expression is a case expression in a predicate.
6902 2014-07-17 Pascal Obry <obry@adacore.com>
6904 * adaint.c, adaint.h (__gnat_set_executable): Add mode parameter.
6905 * s-os_lib.ads, s-os_lib.adb (Set_Executable): Add Mode parameter.
6907 2014-07-17 Vincent Celier <celier@adacore.com>
6909 * gnatchop.adb, make.adb, gnatbind.adb, clean.adb, gprep.adb,
6910 gnatxref.adb, gnatls.adb, gnatfind.adb, gnatname.adb: Do not output
6911 the usage for an erroneous invocation of a gnat tool.
6913 2014-07-16 Vincent Celier <celier@adacore.com>
6915 * gnatls.adb: Get the target parameters only if -nostdinc was
6918 2014-07-16 Ed Schonberg <schonberg@adacore.com>
6920 * checks.adb (Insert_Valid_Check): If the expression is a packed
6921 component of a modular type of the right size the data is always
6922 valid. This os particularly useful if the component is part of
6923 a volatile variable.
6925 2014-07-16 Robert Dewar <dewar@adacore.com>
6927 * gnat_rm.texi, sinfo.ads, freeze.adb, exp_aggr.adb: Minor reformatting
6929 2014-07-16 Thomas Quinot <quinot@adacore.com>
6931 * exp_ch7.ads: Minor documentation fix.
6933 2014-07-16 Ed Schonberg <schonberg@adacore.com>
6935 * sem_ch3.adb (Find_Type_Name): Diagnose properly
6936 a private extension completion that is an interface definition
6937 with an interface list.
6939 2014-07-16 Arnaud Charlet <charlet@adacore.com>
6941 * gnatls.adb (Gnatls): Code clean ups.
6943 2014-07-16 Thomas Quinot <quinot@adacore.com>
6945 * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind.
6946 * sem.adb (Analyze): Handle N_Compound_Statement.
6947 * sprint.adb (Sprint_Node_Actual): Ditto.
6948 * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New
6949 procedure to handle N_Compound_Statement.
6950 * exp_aggr.adb (Collect_Initialization_Statements):
6951 Use a proper compound statement node, instead of a bogus
6952 expression-with-actions with a NULL statement as its expression,
6953 to wrap collected initialization statements.
6954 * freeze.ads, freeze.adb
6955 (Explode_Initialization_Compound_Statement): New public procedure,
6956 lifted from Freeze_Entity.
6957 (Freeze_Entity): When freezing
6958 an object with captured initialization statements and without
6959 delayed freezing, explode compount statement.
6960 * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special
6961 case that used to handle bogus EWAs with NULL statement as
6963 * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with
6964 delayed freezing and captured initialization statements, explode
6967 2014-07-16 Gary Dismukes <dismukes@adacore.com>
6969 * g-rewdat.adb, g-rewdat.ads: Minor reformatting.
6971 2014-07-16 Doug Rupp <rupp@adacore.com>
6973 * s-interr-hwint.adb: Casing error on parameter.
6975 2014-07-16 Pascal Obry <obry@adacore.com>
6977 * Makefile.rtl: Add g-rewdat.o dependencies in
6978 GNATRTL_NONTASKING_OBJS.
6980 2014-07-16 Ed Schonberg <schonberg@adacore.com>
6982 * sem_case.adb: Code clean up.
6984 2014-07-16 Vincent Celier <celier@adacore.com>
6986 * make.adb: Do not read gnat.adc when gnatmake is invoked
6989 2014-07-16 Pascal Obry <obry@adacore.com>
6991 * gnat_rm.texi, impunit.adb, g-rewdat.adb, g-rewdat.ads: Initial
6992 implementation of GNAT.Rewrite_Data.
6994 2014-07-16 Vincent Celier <celier@adacore.com>
6996 * gnatls.adb (Normalize): New function.
6997 (Gnatls): Get the target parameters. On targets other than VMS,
6998 normalize the path names in the source search path, the object search
6999 path and the project search path.
7001 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7003 * sem_case.adb: Avoid self-checking of case expressions in
7006 2014-07-16 Robert Dewar <dewar@adacore.com>
7008 * gnat_rm.texi: Document effect of Suppress_Initialization on tags and
7011 2014-07-16 Eric Botcazou <ebotcazou@adacore.com>
7013 * switch-b.adb (Scan_Binder_Switches): Add missing guard.
7015 2014-07-16 Ben Brosgol <brosgol@adacore.com>
7017 * gnat_ugn.texi: Fix typo.
7019 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7021 * exp_ch4.adb (Expand_N_Case_Expression): Do not expand case
7022 expression if it is the specification of a subtype predicate:
7023 it will be expanded when the return statement is analyzed, or
7024 when a static predicate is transformed into a static expression
7025 for evaluation by the front-end.
7026 * sem_ch13.adb (Get_RList): If the expression for a static
7027 predicate is a case expression, extract the alternatives of the
7028 branches with a True value to create the required statically
7029 evaluable expression.
7031 2014-07-16 Thomas Quinot <quinot@adacore.com>
7033 * exp_prag.adb (Expand_Pragma_Check): Use the location of the
7034 expression, not the location of the aspect, for all generated
7035 code, so that in particular the call to raise_assert_failure
7036 gets the sloc of the associated condition.
7038 (Expand_Subprogram_Contract.Build_Postconditions_Procedure):
7039 Set an explicit End_Label on the handled sequence of statements
7040 for the _Postconditions procedure so that the implicit return
7041 statement does not erroneously get associated with code generated
7042 for the last condition in postconditions.
7044 2014-07-16 Thomas Quinot <quinot@adacore.com>
7046 * ug_words: Fix name of VMS synonym for -gnatw.z (SIZE_ALIGNMENT,
7047 not SIZE_ALIGN) and -gnatw.Z (NOSIZE_ALIGNMENT, not NOSIZE_ALIGN).
7048 * vms_data.ads: Add missing spaces in VMS synonyms for -gnatw.z /
7051 2014-07-16 Robert Dewar <dewar@adacore.com>
7053 * sem_ch3.adb, sem_prag.adb, sem_util.adb, sem_res.adb, sem_ch13.adb:
7054 Minor code reorganization (use Is_Access_Type, not in Access_Kind).
7055 * exp_ch3.adb: Minor code reorganization, use Is_Access_Type,
7057 * par-ch4.adb (At_Start_Of_Attribute): New function
7058 (P_Simple_Expression): Better msg for bad attribute prefix.
7059 * scans.ads: Minor reformatting.
7061 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7063 * sem_attr.adb (Resolve_Attribute, case 'Update): If choice is a
7064 static constant, check that in belongs to the corresponding index
7065 subtype, to produce the proer warning when expansion is disabled.
7067 2014-07-16 Robert Dewar <dewar@adacore.com>
7069 * freeze.adb (Freeze_Entity): Warn on incompatible size/alignment.
7070 * gnat_ugn.texi: Document -gnatw.z and -gnatw.Z.
7071 * ug_words: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for -gnatw.z/-gnatw.Z
7072 * usage.adb: Add lines for -gnatw.z/-gnatw.Z.
7073 * vms_data.ads: VMS synonyms (WARNINGS=[NO]SIZE_ALIGN) for
7075 * warnsw.adb: Set Warn_On_Size_Alignment appropriately.
7076 * warnsw.ads (Warn_On_Size_Alignment): New flag Minor
7079 2014-07-16 Hristian Kirtchev <kirtchev@adacore.com>
7081 * exp_ch7.adb (Process_Declarations): Reinstate the check on
7082 a hook object to ensure that the related transient declaration
7084 * exp_util.adb (Is_Aliased): Do not consider expresison with
7085 actions as a special context.
7086 (Requires_Cleanup_Actions): Reinstate the check on a hook object to
7087 ensure that the related transient declaration is finalizable.
7089 2014-07-16 Robert Dewar <dewar@adacore.com>
7091 * checks.ads, checks.adb (Allocation_Checks_Suppressed): New function.
7092 * snames.ads-tmpl: Add Allocation_Check to list of check names.
7093 * types.ads: Add Allocation_Check to list of check names.
7095 2014-07-16 Thomas Quinot <quinot@adacore.com>
7097 * sem_util.adb (Enter_Name): replace bogus test for presence of
7098 Corresponding_Remote_Type with correct test on Ekind.
7099 * sem_res.adb (Valid_Conversion): ditto; also clarify validity
7100 of calls to Corresponding_ Remote_Type (documentation fix).
7102 2014-07-16 Robert Dewar <dewar@adacore.com>
7104 * gnat_rm.texi: Document illegal case of Unrestricted_Access.
7105 * sem_attr.adb (Analyze_Access_Attribute): Set_Non_Aliased_Prefix
7107 (Resolve_Attribute, case Access): Flag illegal Unrestricted_Access use.
7108 * sinfo.ads, sinfo.adb (Non_Aliased_Prefix): New flag.
7110 2014-07-16 Robert Dewar <dewar@adacore.com>
7112 * gnat_ugn.texi: Document binder switch -Ra.
7113 * gnatbind.adb (List_Closure_Display): Implement -Ra switch
7115 * opt.ads (List_Closure_All): New switch.
7116 * switch-b.adb (Scan_Binder_Switches): Recognize -Ra to set
7119 2014-07-16 Ben Brosgol <brosgol@adacore.com>
7121 * gnat_rm.texi: Minor edits, to make case consistent in names
7122 of types and fields.
7124 2014-07-16 Robert Dewar <dewar@adacore.com>
7126 * gnat_rm.texi: Document erroneous mixing of thin pointers and
7128 * gnat_ugn.texi: Add note on size of access types about thin
7129 pointers and the use of attribute Unrestricted_Access.
7131 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7133 * a-cbdlli.ads, a-cbdlli.adb, a-cbhama.ads, a-cbhama.adb,
7134 * a-cbhase.ads, a-cbhase.adb, a-cborma.ads, a-cborma.adb,
7135 * a-cborse.ads, a-cborse.adb, a-cobove.ads a-cobove.adb: Add Control
7136 machinery to detect tampering on bounded vectors.
7138 2014-07-16 Robert Dewar <dewar@adacore.com>
7140 * gnat_rm.texi: Document that leading/trailing asterisks are
7141 now implied for the pattern match string for pragma Warnings
7142 and Warning_As_Error.
7143 * sem_prag.adb (Acquire_Warning_Match_String): New procedure.
7144 (Analyze_Pragma, case Warning_As_Error): Call
7145 Acquire_Warning_Match_String.
7146 (Analyze_Pragma, case Warnings): Call Acquire_Warning_Match_String.
7148 2014-07-16 Bob Duff <duff@adacore.com>
7150 * gnat_ugn.texi: Document need for project file
7151 for --incremental switch for gnat2xml.
7153 2014-07-16 Robert Dewar <dewar@adacore.com>
7155 * gnat_rm.texi: Fix example of non-packable components in packed
7158 2014-07-16 Robert Dewar <dewar@adacore.com>
7160 * s-tpoben.adb, s-tasren.adb, s-interr.adb, s-interr-hwint.adb,
7161 s-shasto.adb, s-interr-vms.adb, s-interr-sigaction.adb: Avoid use of
7162 upper case in exception messages.
7164 2014-07-16 Robert Dewar <dewar@adacore.com>
7166 * snames.ads-tmpl, sem_attr.adb, exp_attr.adb: Same_Storage attribute
7167 is renamed Has_Same_Storage.
7168 * gnat_rm.texi: Document missing SPARK pragmas and attributes.
7169 * sem_prag.adb: Minor comment fix (use LOCAL_NAME in syntax
7172 2014-07-16 Robert Dewar <dewar@adacore.com>
7174 * exp_util.adb, sem_attr.adb, exp_ch4.adb, a-cohase.ads,
7175 a-coinho-shared.adb, a-coinho-shared.ads: Minor reformatting.
7177 2014-07-16 Robert Dewar <dewar@adacore.com>
7179 * gnat_ugn.texi: Add note that integrated
7180 preprocessing cannot be applied to configuration pragma files.
7182 2014-07-16 Yannick Moy <moy@adacore.com>
7184 * sem_attr.adb (Analyze_Attribute/cases Pred
7185 and Succ): Always enable range check on fixed-point types if
7186 not suppressed for the type.
7188 2014-07-16 Hristian Kirtchev <kirtchev@adacore.com>
7190 * sem_util.adb (State_Has_Enabled_Property):
7191 Account for an external property denoted by an others choice.
7193 2014-07-16 Hristian Kirtchev <kirtchev@adacore.com>
7195 * exp_ch4.ads, exp_ch4.adb (Find_Hook_Context): Relocated to Exp_Util.
7196 * exp_ch7.adb (Process_Declarations): There is no need to check
7197 that a transient object being hooked is controlled as it would
7198 not have been hooked in the first place.
7199 * exp_ch9.adb Remove with and use clause for Exp_Ch4.
7200 * exp_util.adb (Find_Hook_Context): Relocated from Exp_Ch4.
7201 (Is_Aliased): A renaming of a transient controlled object is
7202 not considered aliasing when it occurs within an expression
7204 (Requires_Cleanup_Actions): There is no need to
7205 check that a transient object being hooked is controlled as it
7206 would not have been hooked in the first place.
7207 * exp_util.ads (Find_Hook_Context): Relocated from Exp_Ch4.
7209 2014-07-16 Hristian Kirtchev <kirtchev@adacore.com>
7211 * sem_ch13.adb (Insert_After_SPARK_Mode): Moved to
7212 the outer level of routine Analyze_Aspect_Specifications. Ensure
7213 that the corresponding pragmas of aspects Initial_Condition and
7214 Initializes are inserted after pragma SPARK_Mode.
7216 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7218 * sem_attr.adb (Analyze_Attribute, case 'Update): Handle
7219 properly a choice list with more than one choice, where each
7220 is an aggregate denoting a sequence of array indices for a
7221 multidimentional array. For SPARK use.
7223 2014-07-16 Vadim Godunko <godunko@adacore.com>
7225 * a-coinho-shared.adb (Adjust): Create
7226 copy of internal shared object and element when source container
7229 (Query_Element): Likewise.
7230 (Update_Element): Likewise.
7231 (Constant_Reference): Likewise. Raise Constraint_Error on attempt
7232 to get reference for empty holder.
7233 (Reference): Likewise.
7235 2014-07-16 Thomas Quinot <quinot@adacore.com>
7237 * exp_ch4.adb (Find_Hook_Context): New subprogram, extracted
7238 from Process_Transient_Oject.
7239 * exp_ch4.ads: Ditto.
7240 * exp_ch9.adb (Build_Class_Wide_Master): Insert the _master
7241 declaration as an action on the topmost enclosing expression,
7242 not on a possibly conditional subexpreession.
7244 2014-07-16 Vadim Godunko <godunko@adacore.com>
7246 * a-coinho.adb, a-coinho-shared.adb, a-coinho.ads, a-coinho-shared.ads:
7247 Fix parameter mode of Update_Element.
7249 2014-07-16 Robert Dewar <dewar@adacore.com>
7251 * a-coinho.adb, a-coinho-shared.adb, a-coinho-shared.ads: Minor
7254 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7256 * a-cohase.ads: Type Iterator must be controlled, so that the
7257 tampering bit is properly set through an iteration.
7258 * a-cohase.adb: Add Finalize operation for type Iterator.
7260 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7262 * a-coinho-shared.adb, a-coinho-shared.ads: Proper structures for
7265 2014-07-16 Ed Schonberg <schonberg@adacore.com>
7267 * a-coinho-shared.adb: Fix spurious accessibility check.
7269 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7271 * gcc-interface/utils.c (process_attributes): Use set_decl_tls_model.
7273 2014-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7276 * gnat_rm.texi: Fix errors with makeinfo 5.1.
7278 2014-06-14 Arnaud Charlet <charlet@adacore.com>
7281 * gnat_rm.texi: Attempt to fix error with makeinfo 5.1.
7283 2014-06-13 Yannick Moy <moy@adacore.com>
7285 * exp_attr.adb: Fix typo in comment.
7286 * gnat1drv.adb (Adjust_Global_Switches): Force float overflow
7287 checking in GNATprove_Mode.
7289 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7291 * a-coinho-shared.adb, a-coinho-shared.ads: Update shared version.
7293 2014-06-13 Robert Dewar <dewar@adacore.com>
7295 * sem_ch3.adb, sem_ch9.adb, a-coinho.adb, a-coinho.ads: Minor
7298 2014-06-13 Hristian Kirtchev <kirtchev@adacore.com>
7300 * sem_prag.adb (Analyze_Pragma): Add local
7301 variable Missing_Parentheses. Emit an error when a state
7302 declaration with options appears without parentheses. Add a
7303 guard to prevent a bogus error when a state declaration may be
7304 interpreted as an option if a previous declaration with options
7305 was not parenthesized.
7307 2014-06-13 Robert Dewar <dewar@adacore.com>
7309 * checks.adb: Validate_Alignment_Check_Warnings: New procedure
7310 (Apply_Address_Clause_Check): Make Aligment_Warnings table entry.
7311 * checks.ads (Alignment_Warnings_Record): New type.
7312 (Alignment_Warnings): New table
7313 (Validate_Alignment_Check_Warnings): New procedure.
7314 * errout.adb (Delete_Warning_And_Continuations): New procedure
7315 (Error_Msg_Internal): Set Warning_Msg (Delete_Warning): Handle
7316 Warnings_Treated_As_Errors (Finalize): Minor reformatting
7317 * errout.ads (Warning_Msg): New variable
7318 (Delete_Warning_And_Continuations): New procedure
7319 * erroutc.adb (Delete_Msg): Handle Warnings_Treated_As_Errors count.
7320 * gnat1drv.adb (Post_Compilation_Validation_Checks): New procedure.
7322 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7324 * a-coinho.adb, a-coinho.ads: Add Reference machinery.
7326 2014-06-13 Hristian Kirtchev <kirtchev@adacore.com>
7328 * errout.adb (SPARK_Msg_N): New routine.
7329 (SPARK_Msg_NE): New routine.
7330 * errout.ads Add a section on SPARK-related error routines.
7331 (SPARK_Msg_N): New routine.
7332 (SPARK_Msg_NE): New routine.
7333 * sem_ch13.adb (Analyze_Aspect_Specifications): Ensure that
7334 pragma Abstract_State is always inserted after SPARK_Mode.
7335 (Insert_After_SPARK_Mode): New routine.
7336 * sem_prag.adb (Analyze_Abstract_State,
7337 Analyze_Constituent, Analyze_External_Property,
7338 Analyze_External_Property_In_Decl_Part, Analyze_Global_Item,
7339 Analyze_Global_List, Analyze_Initialization_Item,
7340 Analyze_Initialization_Item_With_Inputs, Analyze_Input_Item,
7341 Analyze_Input_List, Analyze_Input_Output, Analyze_Part_Of,
7342 Analyze_Pragma, Analyze_Refined_Depends_In_Decl_Part,
7343 Analyze_Refined_Global_In_Decl_Part,
7344 Analyze_Refined_State_In_Decl_Part, Analyze_Refinement_Clause,
7345 Check_Aspect_Specification_Order, Check_Constituent_Usage,
7346 Check_Declaration_Order, Check_Dependency_Clause,
7347 Check_Duplicate_Mode, Check_Duplicate_Option,
7348 Check_Duplicate_Property, Check_External_Properties,
7349 Check_External_Property, Check_Function_Return,
7350 Check_Matching_Constituent, Check_Matching_State,
7351 Check_Mode_Restriction_In_Enclosing_Context,
7352 Check_Mode_Restriction_In_Function, Check_Refined_Global_Item,
7353 Check_State_And_Constituent_Use, Create_Or_Modify_Clause,
7354 Has_Extra_Parentheses, Inconsistent_Mode_Error,
7355 Match_Error, Propagate_Part_Of, Report_Extra_Clauses,
7356 Report_Extra_Constituents_In_List, Report_Extra_Inputs,
7357 Report_Unrefined_States, Report_Unused_Constituents,
7358 Report_Unused_States, Role_Error, Usage_Error):
7359 Convert Error_Msg_XXX calls to SPARK_Msg_XXX calls
7360 to report semantic errors only when SPARK_Mode is on.
7361 (Analyze_Depends_In_Decl_Part): Do not check the syntax of
7362 pragma Depends explicitly, this is now done by the analysis.
7363 (Analyze_Global_In_Decl_List): Do not check the syntax of
7364 pragma Global explicitly, this is now done by the analysis.
7365 (Analyze_Initializes_In_Decl_Part): Do not check the syntax of
7366 pragma Initializes explicitly, this is now done by the analysis.
7367 (Analyze_Part_Of): Do not check the syntax of the encapsulating
7368 state, this is now done by the analysis.
7369 (Analyze_Pragma): Do
7370 not check the syntax of a state declaration, this is now done
7372 (Analyze_Refined_Depends_In_Decl_Part): Do not
7373 check the syntax of pragma Refined_Depends explicitly, this is now
7374 done by the analysis.
7375 (Analyze_Refined_Global_In_Decl_Part): Do
7376 not check the syntax of pragma Refined_Global explicitly, this is
7377 now done by the analysis.
7378 (Analyze_Refined_State_In_Decl_Part):
7379 Do not check the syntax of pragma Refined_State explicitly, this
7380 is now done by the analysis.
7381 (Check_Dependence_List_Syntax): Removed.
7382 (Check_Global_List_Syntax): Removed.
7383 (Check_Initialization_List_Syntax): Removed.
7384 (Check_Item_Syntax): Removed.
7385 (Check_Missing_Part_Of): Do not consider items from an instance.
7386 (Check_Refinement_List_Syntax): Removed.
7387 (Check_State_Declaration_Syntax): Removed.
7388 (Collect_Global_List): Do not raise Program_Error when the input is
7390 (Process_Global_List): Do not raise Program_Error when the input
7392 * sem_ch13.adb: Minor reformatting.
7394 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7396 * sem_ch3.adb (Find_Type_Name): Diagnose a private type completion
7397 that is an interface definition with an interface list.
7398 (Process_Full_View): Move error message on missmatched interfaces
7399 between views to the declaration of full view, for clarity.
7400 * sem_ch9.adb (Check_Interfaces): Move error message to full view,
7403 2014-06-13 Robert Dewar <dewar@adacore.com>
7405 * exp_attr.adb (Expand_N_Attribute_Reference, case Pred/Succ): Change
7408 2014-06-13 Robert Dewar <dewar@adacore.com>
7410 * makeutl.adb: Minor reformatting.
7412 2014-06-13 Gail Schenker <schenker@adacore.com>
7414 * debug.adb, sem_eval.adb (Why_Not_Static): Remove temporary code and
7415 associated flag (d.z), no longer needed.
7417 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7419 * sem_ch13.adb (Analyze_Aspect_Specifications): For Import and
7420 Export aspects, do not check whether a corresponding Convention
7421 aspect has been specified. Convention is optional in Ada2012,
7422 and defaults to Convention_Ada.
7424 2014-06-13 Eric Botcazou <ebotcazou@adacore.com>
7426 * checks.adb (Apply_Address_Clause_Check): Only issue the new
7427 warning if the propagation warning is issued.
7429 2014-06-13 Thomas Quinot <quinot@adacore.com>
7431 * exp_ch4.adb: Minor reformatting.
7433 2014-06-13 Robert Dewar <dewar@adacore.com>
7435 * exp_attr.adb (Expand_N_Attribute_Reference, case Pred):
7436 Handle float range check case (Expand_N_Attribute_Reference,
7437 case Succ): Handle float range check case.
7438 * sem_attr.adb (Analyze_Attribute, case Pred/Succ): Handle float
7441 2014-06-13 Vincent Celier <celier@adacore.com>
7443 * makeutl.ads (Compute_Builder_Switches): Change name of
7444 parameter Root_Environment to Env.
7445 * prj-conf.adb (Check_Switches): Call Locate_Runtime with the
7446 Env parameter of procedure Get_Or_Create_Configuration_File.
7447 (Locate_Runtime): Call Find_Rts_In_Path with the Project_Path
7448 of new parameter Env.
7449 * prj-conf.ads (Locate_Runtime): New parameter Env of type
7450 Prj.Tree.Environment.
7452 2014-06-13 Robert Dewar <dewar@adacore.com>
7454 * gnat_rm.texi: Minor comment clarification for Check_Float_Overflow.
7456 2014-06-13 Robert Dewar <dewar@adacore.com>
7458 * exp_attr.adb, exp_ch9.adb, lib-writ.adb, g-comlin.adb: Minor
7460 * sem_attr.adb: Minor code reformatting and simplification.
7461 * checks.adb: Fix minor typo.
7463 2014-06-13 Emmanuel Briot <briot@adacore.com>
7465 * g-comlin.adb (Get_Argument): fix expansion
7466 of command line arguments (e.g. "*.adb") when using a custom
7467 parser. The parser was not passed to the recursive call, and
7468 thus we were trying to do the expansion on the default command
7471 2014-06-13 Thomas Quinot <quinot@adacore.com>
7473 * exp_ch9.adb: Minor reformatting.
7475 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7477 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Old):
7478 To determine whether the attribute should be expanded, examine
7479 whether the enclosing postcondition pragma is to be checked,
7480 rather than using the internal flag Assertions_Enabled.
7482 2014-06-13 Ben Brosgol <brosgol@adacore.com>
7484 * gnat_rm.texi: Minor fixes.
7485 * gnat_ugn.texi: Added a missing "@itemize".
7487 2014-06-13 Robert Dewar <dewar@adacore.com>
7489 * debug.adb: Remove -gnatd.1 flag documentation.
7490 * layout.adb (Layout_Type): Remove special handling of size
7491 for anonymous access type.
7492 * sem_ch3.adb (Replace_Type): Remove special handling of size
7493 for anonymous access type.
7495 2014-06-13 Robert Dewar <dewar@adacore.com>
7497 * debug.adb: Document debug flag -gnatd.1.
7498 * layout.adb (Layout_Type): Size change for anonymous access
7499 types under -gnatd.1.
7500 * sem_ch3.adb (Replace_Type): Size change for anonymous access
7501 types under -gnatd.1.
7503 2014-06-13 Robert Dewar <dewar@adacore.com>
7505 * layout.adb (Layout_Type): Anonymous access types designating
7506 unconstrained arrays are always thin pointers.
7507 * sem_ch3.adb (Replace_Type): Anonymous access types designating
7508 unconstrained arrays are always thin pointers.
7510 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7512 * sem_attr.adb (Analyze_Attribute): Use Check_Parameterless_Call
7513 to resolve the prefix of an attribute that is an entity name
7514 and may be a parameterless call. Minor code reorganization.
7516 2014-06-13 Robert Dewar <dewar@adacore.com>
7518 * lib.ads, lib.adb, lib-writ.adb, lib-load.adb (Is_Compiler_Unit):
7520 * opt.ads (Compiler_Unit): New flag.
7521 * par-ch5.adb (Test_Statement_Required): Call Check_Compiler_Unit
7522 for null statement sequence (not allowed in compiler unit).
7523 * par-prag.adb (Prag): Handle Compiler_Unit[_Warning] during
7525 * restrict.ads, restrict.adb (Check_Compiler_Unit): New version and new
7527 * sem_ch11.adb, sem_ch3.adb, sem_ch4.adb: New calling sequence for
7528 Check_Compiler_Unit.
7529 * sem_ch6.adb (Analyze_Extended_Return_Statement): Call
7530 Check_Compiler_Unit (this construct is not allowed in compiler
7532 * sem_prag.adb (Analyze_Pragma, case Compiler_Unit[_Warning]):
7533 Set Opt.Compiler_Unit.
7535 2014-06-13 Geert Bosch <bosch@adacore.com>
7537 * gnat_rm.texi, s-tasinf-solaris.ads, sem_prag.adb, gnat_ugn.texi,
7538 s-tasinf-mingw.ads, s-tasinf.ads, s-tasinf-linux.ads,
7539 s-tasinf-vxworks.ads: Make Task_Info pragma and package obsolescent.
7541 2014-06-13 Robert Dewar <dewar@adacore.com>
7543 * s-tasini.adb, s-tarest.adb, s-taprob.adb: Minor reformatting.
7545 2014-06-13 Hristian Kirtchev <kirtchev@adacore.com>
7547 * freeze.adb (Freeze_Entity): Remove the check concerning volatile
7548 types in SPARK as it is poorly placed and poorly formulated. The
7549 check was flagging ALL volatile entities as illegal in SPARK.
7550 * sem_prag.adb (Process_Atomic_Shared_Volatile): Flag volatile
7551 types as illegal in SPARK.
7553 2014-06-13 Robert Dewar <dewar@adacore.com>
7555 * sem_cat.adb: Minor reformatting.
7557 2014-06-13 Yannick Moy <moy@adacore.com>
7559 * sem_prag.adb (Analyze_Pragma/Post_Class): Fix typo.
7561 2014-06-13 Arnaud Charlet <charlet@adacore.com>
7563 * gnat_rm.texi: Add detail on SPARK_05 restriction.
7565 2014-06-13 Bob Duff <duff@adacore.com>
7567 * s-solita.adb (Get_Sec_Stack_Addr, Init_Tasking_Soft_Links):
7568 Add assertions requiring the secondary stack to be initialized.
7569 * s-solita.ads (Init_Tasking_Soft_Links): Comment.
7570 * s-taprob.adb, s-tarest.adb, s-tasini.adb (elab code): Make sure the
7571 secondary stack is initialized before calling Init_Tasking_Soft_Links,
7572 by adding pragmas Elaborate_Body.
7574 2014-06-13 Thomas Quinot <quinot@adacore.com>
7576 * sem_ch13.adb (Analyze_Stream_TSS_Definition): Remove temporary
7577 kludge disabling new legality check.
7579 2014-06-13 Hristian Kirtchev <kirtchev@adacore.com>
7581 * freeze.adb (Freeze_Record_Type): Remove checks related to SPARK
7583 (Freeze_Type): Volatile types are now illegal in SPARK.
7585 2014-06-13 Robert Dewar <dewar@adacore.com>
7587 * aspects.ads, aspects.adb: Add aspect Thread_Local_Storage.
7588 * gnat_rm.texi: Document aspect Thread_Local_Storage.
7590 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7592 * sem_cat.adb (Validate_Static_Object_Name): A constant whose
7593 value is a temporary that renames an aggregate is legal in a
7594 preelaborated unit. Illegalities, if any will be detected in
7595 the aggregate components.
7597 2014-06-13 Ed Schonberg <schonberg@adacore.com>
7599 * einfo.ads: Minor reformatting an comment expansion.
7601 2014-06-13 Robert Dewar <dewar@adacore.com>
7603 * back_end.ads, back_end.adb: Make_Id, Make_SC, Set_RND are moved to
7605 * tbuild.ads, tbuild.adb: Make_Id, Make_SC, Set_RND are moved here from
7607 * gnat1drv.adb: Make_Id, Make_SC, Set_RND are moved to Tbuild
7608 * sem_warn.adb: Minor reformatting.
7610 2014-06-13 Doug Rupp <rupp@adacore.com>
7612 * adaint.c (__gnat_open_new_temp) [VMS]: Open binary
7615 2014-06-13 Yannick Moy <moy@adacore.com>
7617 * sem_warn.adb (Check_Unset_References): Take
7618 case of Refined_Post into account in Within_Postcondition check.
7620 2014-06-13 Hristian Kirtchev <kirtchev@adacore.com>
7622 * freeze.adb (Freeze_Record_Type): Volatile types are not allowed in
7625 2014-06-13 Yannick Moy <moy@adacore.com>
7627 * sem_ch13.adb (Analyze_Aspect_Specifications/Aspect_Import,
7628 Aspect_Export): Consider that variables may be set outside the program.
7630 2014-06-13 Robert Dewar <dewar@adacore.com>
7632 * back_end.adb (Make_Id): New function.
7633 (Make_SC): New function.
7634 (Set_RND): New procedure.
7635 * back_end.ads (Make_Id): New function.
7636 (Make_SC): New function.
7637 (Set_RND): New procedure.
7638 * einfo.ads: Minor comment updates.
7639 * frontend.adb: Move Atree.Initialize call to Gnat1drv.
7640 * gnat1drv.adb (Gnat1drv): New calling sequence for
7641 Get_Target_Parameters.
7642 (Gnat1drv): Move Atree.Initialize here from Frontend.
7643 * targparm.adb (Get_Target_Parameters): New calling
7644 sequence (Get_Target_Parameters): Handle pragma Restriction
7646 * targparm.ads (Get_Target_Parameters): New calling sequence.
7648 2014-06-13 Gary Dismukes <dismukes@adacore.com>
7650 * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym
7651 loop if the pragma does not come from source, so that an implicit
7652 pragma Import only applies to the first declaration, avoiding
7653 possible conflicts with earlier explicit and implicit declarations
7654 due to multiple Provide_Shift_Operators pragmas.
7655 (Set_Imported): Remove previous fix that bypassed pragma duplication
7657 * gnat_rm.texi: Change 'equivalent' to 'similar' in description
7658 of Provide_Shift_Operators.
7660 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7662 * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Pass
7663 string pointer directly to set_decl_section_name.
7665 2014-06-11 Robert Dewar <dewar@adacore.com>
7667 * sem_ch13.adb: Minor reformatting.
7669 2014-06-11 Hristian Kirtchev <kirtchev@adacore.com>
7671 * sem_prag.adb (Check_Clause_Syntax): Add new
7672 local variable Outputs. Account for the case where multiple
7673 output items appear as an aggregate.
7675 2014-06-11 Robert Dewar <dewar@adacore.com>
7677 * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
7680 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7682 * einfo.ads: Minor reformatting.
7684 2014-06-11 Hristian Kirtchev <kirtchev@adacore.com>
7686 * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
7687 new variable First_Node. Update the position after all insertions have
7688 taken place to First_Node.
7690 2014-06-11 Robert Dewar <dewar@adacore.com>
7692 * debug.adb: Remove debug flag -gnatd.1, no longer needed.
7693 * layout.adb (Layout_Type): Remove test of -gnatd.1.
7695 2014-06-11 Robert Dewar <dewar@adacore.com>
7697 * sem_ch13.adb: Minor reformatting.
7699 2014-06-11 Hristian Kirtchev <kirtchev@adacore.com>
7701 * sem_prag.adb (Check_Clause_Syntax): Add new
7702 local variable Outputs. Account for the case where multiple
7703 output items appear as an aggregate.
7705 2014-06-11 Robert Dewar <dewar@adacore.com>
7707 * sem_warn.adb (Output_Obsolescent_Entity_Warnings): Tag warning
7710 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7712 * einfo.ads: Minor reformatting.
7714 2014-06-11 Hristian Kirtchev <kirtchev@adacore.com>
7716 * a-cbdlli.adb, a-cdlili.adb, a-cidlli.adb, a-crdlli.adb (Insert): Add
7717 new variable First_Node. Update the position after all insertions have
7718 taken place to First_Node.
7720 2014-06-11 Robert Dewar <dewar@adacore.com>
7722 * debug.adb: Remove debug flag -gnatd.1, no longer needed.
7723 * layout.adb (Layout_Type): Remove test of -gnatd.1.
7725 2014-06-11 Thomas Quinot <quinot@adacore.com>
7727 * freeze.ads: Minor reformatting.
7728 * checks.adb (Determine_Range): Do not attempt to determine
7729 the range of a deferred constant whose full view has not been
7731 * sem_res.adb (Resolve): Remove undesirable guard against
7732 resolving expressions from expression functions.
7734 2014-06-11 Robert Dewar <dewar@adacore.com>
7736 * debug.adb (Debug_Flag_Dot_1): Set to enable fix for anonymous
7738 * layout.adb (Layout_Type): Make anonymous access types for
7739 subprogram formal types and return types always thin. For now
7740 only enabled if -gnatd.1 set.
7742 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7744 * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
7745 rule for stream attributes of interface types (RM 13.13.2 (38/3)):
7746 subprogram must be a null procedure.
7748 2014-06-11 Hristian Kirtchev <kirtchev@adacore.com>
7750 * sem_prag.adb (Analyze_Input_Item): Allow formal
7751 parameters to appear as input_items in an initialization_list
7752 of pragma Initializes. Encapsulation now applies to states and
7753 variables only (as it should). Add RM references to key errors.
7754 * sem_prag.adb (Set_Imported): Suppress errors
7755 about preceding Imports when the pragma does not come from source,
7756 which can happen through use of pragma Provide_Shift_Operators.
7758 2014-06-11 Thomas Quinot <quinot@adacore.com>
7760 * sem_ch3.adb: Minor reformatting.
7761 * einfo.ads (Full_View): Minor comment update.
7763 2014-06-11 Robert Dewar <dewar@adacore.com>
7765 * einfo.adb (Is_Independent): New flag.
7766 * einfo.ads (Is_Independent): New flag.
7767 (Has_Independent_Components): Clean up and fix comments.
7768 * sem_prag.adb (Fix_Error): Deal with changing argument
7769 [of] to entity [for].
7770 (Analyze_Pragma, case Independent): Set Is_Independent flag
7771 (Analyze_Pragma, case Independent_Components): Set Is_Independent flag
7772 in all components of specified record.
7774 2014-06-11 Thomas Quinot <quinot@adacore.com>
7776 * sem_ch12.adb (Analyze_Formal_Decimal_Fixed_Point_Type):
7777 Set proper Etype on bounds of dummy type created for analysis
7780 2014-06-11 Robert Dewar <dewar@adacore.com>
7782 * debug.adb: Minor comment fix (add missing section of dot
7785 2014-06-11 Robert Dewar <dewar@adacore.com>
7787 * gnat_rm.texi, switch-c.adb, sem_prag.adb, a-tgdico.ads, par-prag.adb,
7788 opt.ads, a-finali.ads, snames.ads-tmpl: Remove all traces of
7789 pragma/aspects Pure_05 Pure_12 Preelaborate_05.
7790 * errout.adb (Output_Messages): Avoid duplicate output for
7791 library level instance.
7792 * sem_elab.adb (Is_Call_Of_Generic_Formal): Moved to outer level
7793 (Check_Elab_Call): Add call to Is_Call_Of_Generic_Formal
7794 * exp_ch4.adb (Expand_N_Op_Expon): New interface for Exp_Modular.
7795 * s-expmod.ads, s-expmod.adb (Exp_Modular): Change interface to
7796 accomodate largest modulus value.
7797 * gnat_ugn.texi: Minor updates.
7799 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7801 * sem_ch12.adb (Instantiate_Package_Body): Do not attempt to
7802 load body of generic package or its parent, if body is optional
7803 and the unit does not require a body.
7805 2014-06-11 Robert Dewar <dewar@adacore.com>
7807 * gnat_rm.texi: Document System.Unsigned_Types.
7808 * impunit.adb: System.Unsigned_Types (s-unstyp.ads) is user accessible.
7809 * s-unstyp.ads: Update comments (this is now user available unit).
7811 2014-06-11 Robert Dewar <dewar@adacore.com>
7813 * make.adb, sem_res.adb: Minor reformatting.
7815 2014-06-11 Thomas Quinot <quinot@adacore.com>
7817 * a-astaco.ads, a-tags.ads, s-excdeb.ads, a-tgdico.ads, a-stmaco.ads,
7818 a-except-2005.ads, s-except.ads, a-taside.ads, a-dynpri.ads,
7819 a-chahan.ads, a-sytaco.ads, s-stalib.ads, a-strmap.ads: Change pragmas
7820 Preelaborate_05 to just Preelaborate in runtime units, and similarly
7821 change Pure_05 to just Pure.
7823 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7825 * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not attempt
7826 analysis if error has been posted on subprogram body.
7828 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7830 * sem_ch13.adb (Analyze_Stream_TSS_Definition): Apply legality
7831 rule given in RM 13.1 (8/1) for operational attributes to stream
7832 attributes: the attribute must apply to a first subtype. Fixes
7833 missing errors in ACATS test bdd2004.
7835 2014-06-11 Robert Dewar <dewar@adacore.com>
7837 * exp_ch3.adb (Build_Record_Init_Proc): Don't build for variant
7838 record type if restriction No_Implicit_Conditionals is active.
7839 (Expand_N_Object_Declaration): Don't allow default initialization
7840 for variant record type if restriction No_Implicit_Condition is active.
7841 (Build_Variant_Record_Equality): Don't build for variant
7842 record type if restriction No_Implicit_Conditionals is active.
7843 * exp_ch4.adb (Expand_N_Op_Eq): Error if variant records with
7844 No_Implicit_Conditionals.
7845 * sem_aux.ads, sem_aux.adb (Has_Variant_Part): New function.
7847 2014-06-11 Ramon Fernandez <fernandez@adacore.com>
7849 * i-cstrin.ads: Update comments.
7851 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7853 * sem_res.adb (Resolve_Selected_Component): Handle properly a
7854 selected component whose prefix is overloaded, when none of the
7855 interpretations matches the expected type.
7857 2014-06-11 Bob Duff <duff@adacore.com>
7859 * make.adb (Wait_For_Available_Slot): Give a more
7860 informative error message; if the ALI file is not found, print
7861 the full path of what it's looking for.
7863 2014-06-11 Sergey Rybin <rybin@adacore.com frybin>
7865 * gnat_ugn.texi, vms_data.ads: add description of gnatstub -W<par>
7866 option to specify the result file encoding.
7868 2014-06-11 Robert Dewar <dewar@adacore.com>
7870 * errout.ads, sem_ch12.adb: Minor reformatting.
7871 * debug.adb, erroutc.adb: Remove -gnatd.q debug switch.
7872 * lib-xref.adb: Minor reformatting.
7873 * restrict.adb: Minor code reorganization (put routines in
7876 2014-06-11 Yannick Moy <moy@adacore.com>
7878 * einfo.ads: Minor typo in comment
7880 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7882 * sinfo.ads, sinfo.adb: New attribute Uninitialized_Variable, for
7883 formal private types and private type extensions, to indicate
7884 variable in a generic unit whose uninitialized use suggest that
7885 actual type should be fully initialized.
7886 Needs_Initialized_Actual: removed, functionaity replaced by
7888 * lib-xref.adb (Generate_Reference): Generate a reference for
7889 variables of a formal type when the unit is not the main unit,
7890 to enable appropriate warnings in an instance.
7891 * sem_ch12.adb (Check_Ininialized_Type): Improve warning on use
7892 of variable in a generic unit that suggests that actual type
7893 should be full initialized.
7894 * sem_warn.adb; (May_Need_Initialized_Actual): Make into procedure
7895 and do not emot warning, which now only appears in an instance.
7897 2014-06-11 Eric Botcazou <ebotcazou@adacore.com>
7899 * gnat_ugn.texi: Fix minor typo.
7901 2014-06-11 Hristian Kirtchev <kirtchev@adacore.com>
7903 * sem_ch3.adb Add with and use clause for Sem_Ch10.
7904 (Analyze_Declarations): Code reformatting. Analyze the contract
7905 of a subprogram body stub at the end of the declarative region.
7906 * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Spec_Id is
7907 now a variable. Do not process the body if its contract is not
7908 available. Account for subprogram body stubs when extracting
7909 the corresponding spec.
7910 * sem_ch6.ads (Analyze_Subprogram_Contract): Update the comment
7912 * sem_ch10.ads, sem_ch10.adb (Analyze_Subprogram_Body_Stub_Contract):
7914 * sem_prag.adb (Analyze_Depends_In_Decl_Part):
7915 Account for subprogram body stubs when extracting the
7917 (Analyze_Global_In_Decl_List):
7918 Account for subprogram body stubs when extracting the
7920 (Analyze_Refined_Depends_In_Decl_Part):
7921 Use Find_Related_Subprogram_Or_Body to retrieve the declaration
7922 of the related body. Spec_Is now a variable. Account for
7923 subprogram body stubs when extracting the corresponding spec.
7924 (Analyze_Refined_Global_In_Decl_Part): Use
7925 Find_Related_Subprogram_Or_Body to retrieve the declaration
7926 of the related body. Spec_Is now a variable. Account for
7927 subprogram body stubs when extracting the corresponding spec.
7928 (Collect_Subprogram_Inputs_Output): Account for subprogram body
7929 stubs when extracting the corresponding spec.
7931 2014-06-11 Vincent Celier <celier@adacore.com>
7933 * gnatcmd.adb (Process_Link): Do not invoke gnatlink with
7936 2014-06-11 Robert Dewar <dewar@adacore.com>
7938 * debug.adb: Add debug flag -gnatd.q.
7939 * erroutc.adb (Prescan_Message): Bomb if untagged warning with
7941 * styleg.adb (Check_Xtra_Parens): Message should be a style
7943 * sem_aggr.adb, sem_ch3.adb, exp_ch9.adb, checks.adb, sem_prag.adb,
7944 par-endh.adb, eval_fat.adb, freeze.adb, sem_util.adb, sem_attr.adb,
7945 sem_elab.adb, sem_ch6.adb, sem_warn.adb, sem_cat.adb,
7946 sem_ch13.adb, lib-xref.adb: Add remaining warning tags.
7948 2014-06-11 Ben Brosgol <brosgol@adacore.com>
7950 * gnat_rm.texi: Revised chapter on Implementation Defined
7953 2014-06-11 Geert Bosch <bosch@adacore.com>
7955 * s-exctab.adb: avoid race conditions in exception registration.
7957 2014-06-11 Robert Dewar <dewar@adacore.com>
7959 * errout.adb (Warn_Insertion): New function.
7960 (Error_Msg): Use Warn_Insertion and Prescan_Message.
7961 (Error_Msg_Internal): Set Info field of error object.
7962 (Error_Msg_NEL): Use Prescan_Message.
7963 (Set_Msg_Text): Don't store info: at start of message.
7964 (Skip_Msg_Insertion_Warning): New name for Set_Msg_Insertion_Warning.
7965 (Skip_Msg_Insertion_Warning): Now just skips warning insertion.
7966 * errout.ads: Document new ?$? and >$> insertion sequences
7967 Document use of "(style)" and "info: "
7968 * erroutc.adb (dmsg): Print several missing fields
7969 (Get_Warning_Tag): Handle -gnatel case (?$?) (Output_Msg_Text):
7970 Deal with new tagging of info messages
7971 * erroutc.ads: Is_Info_Msg: New global (Error_Msg_Object):
7972 Add field Info (Prescan_Message): New procedure, this procedure
7973 replaces the old Test_Style_Warning_Serious_Unconditional_Msg
7974 * errutil.adb, exp_util.adb, par-ch7.adb, sem_ch13.adb, sem_ch7.adb,
7975 sem_elab.adb: Follow new rules for info message (info belongs
7976 only at the start of a message, and only in the first message,
7977 not in any of the continuations).
7978 * gnat_ugn.texi: Document full set of warning tags.
7980 2014-06-11 Gary Dismukes <dismukes@adacore.com>
7982 * sem_util.adb: Minor typo fix.
7984 2014-06-11 Ed Schonberg <schonberg@adacore.com>
7986 * sem_warn.adb (Check_References): Do not emit spurious warnings
7987 on uninitialzed variable of a formal private type if variable
7990 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
7992 * gcc-interface/utils.c (process_attributes) <ATTR_LINK_SECTION>: Use
7993 set_decl_section_name accessor.
7995 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
7997 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
7998 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
7999 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
8001 2014-05-21 Robert Dewar <dewar@adacore.com>
8003 * layout.adb: Minor reformatting.
8004 * sem_prag.adb (Analyze_Pragma, case Inspection_Point): Call
8007 2014-05-21 Robert Dewar <dewar@adacore.com>
8009 * restrict.ads (Implementation_Restriction): Add entry for
8011 * rtsfind.ads: Add entries for Fixed_IO and Decimal_IO in
8012 Ada.[Wide_[Wide_]Text_IO.
8013 * s-rident.ads (Restriction_Id): Add entry for No_Fixed_IO.
8014 * sem_attr.adb (Analyze_Attribute): Disallow fixed point types
8015 for Img, Image, Value, Wide_Image, Wide_Value, Wide_Wide_Image,
8016 Wide_Wide_Value if restriction No_Fixed_IO is set.
8017 * sem_util.adb (Set_Entity_Checks): Check restriction No_Fixed_IO.
8019 2014-05-21 Robert Dewar <dewar@adacore.com>
8021 * gnatcmd.adb: Minor error msg changes (no upper case letter
8023 * sem_ch12.adb, sem_ch5.adb, sem_res.adb, sem_util.adb: Minor
8026 2014-05-21 Robert Dewar <dewar@adacore.com>
8028 * debug.adb: Debug flag -gnatd.G inhibits static elab tracing
8029 via generic formals.
8030 * sem_elab.adb (Is_Call_Of_Generic_Formal): Return False if
8033 2014-05-21 Thomas Quinot <quinot@adacore.com>
8035 * exp_pakd.adb (Revert_Storage_Order): Renamed from Byte_Swap to
8036 more accurately describe that this subprogram needs to come into
8037 play also in cases where no byte swapping is involved, because
8038 it also takes care of some required shifts (left-justification
8041 2014-05-21 Thomas Quinot <quinot@adacore.com>
8043 * freeze.adb (Check_Component_Storage_Order): Indicate whether
8044 a Scalar_Storage_Order attribute definition is present for the
8046 (Freeze_Record_Type): Suppress junk warnings
8047 about purportedly junk Bit_Order / Scalar_Storage_Order attribute
8050 2014-05-21 Robert Dewar <dewar@adacore.com>
8052 * sem_ch8.adb (Analyze_Subprogram_Renaming): Put back call
8053 to Kill_Elaboration_Checks.
8055 2014-05-21 Gary Dismukes <dismukes@adacore.com>
8057 * layout.adb (Assoc_Add): Suppress the optimization of the (E
8058 - C1) + C2 case, when the expression type is unsigned and C1 <
8059 C2, to avoid creating a negative literal when folding.
8061 2014-05-21 Hristian Kirtchev <kirtchev@adacore.com>
8063 * freeze.adb (Freeze_Record_Type): Update the use of
8065 * sem_ch3.adb (Analyze_Object_Contract): Update the use of
8067 (Process_Discriminants): Update the use of Is_SPARK_Volatile.
8068 * sem_ch5.adb (Analyze_Iterator_Specification): Update the use
8069 of Is_SPARK_Volatile.
8070 (Analyze_Loop_Parameter_Specification):
8071 Update the use of Is_SPARK_Volatile.
8072 * sem_ch6.adb (Process_Formals): Catch an illegal use of an IN
8073 formal parameter when its type is volatile.
8074 * sem_prag.adb (Analyze_Global_Item): Update the use of
8076 * sem_res.adb (Resolve_Entity_Name): Correct the guard which
8077 determines whether an entity is a volatile source SPARK object.
8078 * sem_util.adb (Has_Enabled_Property): Accout for external
8079 properties being set on objects other than abstract states
8080 and variables. An example would be a formal parameter.
8081 (Is_SPARK_Volatile): New routine.
8082 (Is_SPARK_Volatile_Object):
8083 Remove the entity-specific tests. Call routine Is_SPARK_Volatile
8084 when checking entities and/or types.
8085 * sem_util.ads (Is_SPARK_Volatile): New routine.
8087 2014-05-21 Robert Dewar <dewar@adacore.com>
8089 * sem_warn.adb: Minor fix to warning messages (use ?? instead
8092 2014-05-21 Vincent Celier <celier@adacore.com>
8094 * gnatcmd.adb (GNATCmd): For platforms other than VMS, recognize
8095 switch --version and --help.
8097 2014-05-21 Robert Dewar <dewar@adacore.com>
8099 * sem_elab.adb (Is_Call_Of_Generic_Formal): New function.
8101 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8103 * sem_ch5.adb (Analyze_Iterator_Specification): Set type of
8104 iterator variable when the domain of iteration is a formal
8105 container and this is an element iterator.
8107 2014-05-21 Bob Duff <duff@adacore.com>
8109 * sem_ch12.adb: Minor reformatting.
8111 2014-05-21 Robert Dewar <dewar@adacore.com>
8113 * sinfo.ads, sem_ch12.adb, sem_warn.adb: Minor reformatting.
8115 2014-05-21 Robert Dewar <dewar@adacore.com>
8117 * sem_elab.adb: Minor reformatting.
8118 * s-taprop.ads: Minor comment fix.
8119 * sem_ch8.adb (Analyze_Subprogram_Renaming): Remove call to
8120 Kill_Elaboration_Checks.
8121 * errout.adb, erroutc.adb: Minor reformatting.
8123 2014-05-21 Thomas Quinot <quinot@adacore.com>
8125 * exp_pakd.adb (Byte_Swap): Handle the case of a sub-byte
8126 component. No byte swapping occurs, but this procedure also takes
8127 care of appropriately justifying the argument.
8129 2014-05-21 Hristian Kirtchev <kirtchev@adacore.com>
8131 * sem_ch6.adb: sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub):
8133 (Analyze_Subprogram_Body_Helper): Move the
8134 analysis of aspect specifications and the processing of the
8135 subprogram body contract after inlining has taken place.
8136 (Diagnose_Misplaced_Aspect_Specifications): Removed.
8138 2014-05-21 Javier Miranda <miranda@adacore.com>
8140 * sem_ch3.adb (Build_Derived_Record_Type): Revert previous change.
8142 2014-05-21 Robert Dewar <dewar@adacore.com>
8144 * sem_eval.ads, sem_eval.adb (Why_Not_Static): Messages are not
8145 continuations any more.
8147 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8149 * sinfo.ads, sinfo.adb: New flag Needs_Initialized_Actual,
8150 present in formal_Private_Definitions and on private extension
8151 declarations of a formal derived type. Set when the use of the
8152 formal type in a generic suggests that the actual should be a
8153 fully initialized type.
8154 * sem_warn.adb (May_Need_Initialized_Actual): new subprogram
8155 to indicate that an entity of a generic type has default
8156 initialization, and that the corresponing actual type in any
8157 subsequent instantiation should be fully initialized.
8158 * sem_ch12.adb (Check_Initialized_Type): new subprogram,
8159 to emit a warning if the actual for a generic type on which
8160 Needs_Initialized_Actual is set is not a fully initialized type.
8162 2014-05-21 Robert Dewar <dewar@adacore.com>
8164 * sem_elab.adb, prj-dect.adb: Minor reformatting.
8166 2014-05-21 Robert Dewar <dewar@adacore.com>
8168 * erroutc.ads: Minor comment addition.
8170 2014-05-21 Robert Dewar <dewar@adacore.com>
8172 * errout.ads: Add documentation for use of >*> tag.
8173 * restrict.adb: Make sure we use >*> tag for restriction warnings.
8175 2014-05-21 Gary Dismukes <dismukes@adacore.com>
8177 * debug.adb: Add case of illegal overriding_indicator for a
8178 protected subprogram body to description of -gnatd.E switch.
8179 * sem_ch6.adb (Verify_Overriding_Indicator): Issue error message
8180 for cases of giving overriding_indicators on protected subprogram
8181 bodies, but change this to a warning if -gnatd.E is enabled. No
8182 longer give a style warning about missing indicators on protected
8185 2014-05-21 Robert Dewar <dewar@adacore.com>
8187 * prj.ads, sem_ch12.adb, prj.adb, exp_pakd.adb,
8188 sem_elab.ads: Minor reformatting.
8189 * erroutc.adb, erroutc.ads (Warning_Specifically_Suppressed): Make Tag
8192 2014-05-21 Pascal Obry <obry@adacore.com>
8194 * prj-dect.adb: Allow package Install in aggregate project.
8196 2014-05-21 Robert Dewar <dewar@adacore.com>
8198 * sem_ch13.adb (Analyze_Aspect_Specifications):
8199 Insert_Delayed_Pragma is now used for the case of Attach_Handler.
8200 * sem_prag.adb: Minor comment improvements.
8202 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8204 * sem_ch12.adb (Install_Body): When checking whether freezing of
8205 instantiation must be delayed, verify that the common enclosing
8206 subprogram to generic and instance is in fact an overloadable
8209 2014-05-21 Vincent Celier <celier@adacore.com>
8211 * makeutl.adb (Mains.Complete_Mains.Do_Complete): Look for all
8212 mains with the same name and fail if there is more than one.
8213 * prj.ads, prj.adb (Find_All_Sources): New function
8215 2014-05-21 Robert Dewar <dewar@adacore.com>
8217 * sem_ch13.adb: Minor reformatting.
8218 * lib-xref-spark_specific.adb, sem_util.adb: Minor reformatting.
8219 * sem_prag.adb: Minor error message improvement.
8221 2014-05-21 Yannick Moy <moy@adacore.com>
8223 * lib-xref-spark_specific.adb, lib-xref.ads, lib-xref.adb
8224 (Enclosing_Subprogram_Or_Package): Only return a library-level
8227 2014-05-21 Javier Miranda <miranda@adacore.com>
8229 * sem_ch3.adb (Build_Derived_Record_Type): Initialize Parent_Base
8230 to the full view of the parent type when processing a derived type
8231 which is the full view of a private type not defined in a generic
8232 unit which is derived from a private type with discriminants
8233 whose full view is a non-tagged record type.
8235 2014-05-21 Javier Miranda <miranda@adacore.com>
8237 * exp_ch4.adb (Expand_Allocator_Expression.Apply_Accessibility_Check):
8238 Complete previous patch.
8240 2014-05-21 Thomas Quinot <quinot@adacore.com>
8243 * g-socket.adb (Read and Write for Datagram_Socket_Stream_Type):
8244 Provide a behaviour more consistent with underlying datagram
8245 socket: do not attempt to loop over Send_Socket/Receive_Socket
8246 iterating along the buffer.
8248 2014-05-21 Hristian Kirtchev <kirtchev@adacore.com>
8250 * freeze.adb (Freeze_Record_Type): Ensure that a discriminated
8251 or a tagged type is not labelled as volatile. Ensure that a
8252 non-volatile type has no volatile components.
8253 * sem_ch3.adb (Analyze_Object_Contract): Add local constant
8254 Obj_Typ. Code reformatting. Ensure that a discriminated or
8255 tagged object is not labelled as volatile.
8256 * sem_prag.adb (Process_Atomic_Shared_Volatile): Ensure that
8257 pragma Volatile applies to a full type declaration or an object
8258 declaration when SPARK mode is on.
8260 2014-05-21 Sergey Rybin <rybin@adacore.com frybin>
8262 * gnat_ugn.texi: For ASIS tools, reword the paragraph about
8263 providing options needed for compiling the argument source for
8264 the situation when a project file can be used as a tool parameter.
8266 2014-05-21 Gary Dismukes <dismukes@adacore.com>
8268 * gnat_rm.texi: Minor typo fix.
8270 2014-05-21 Robert Dewar <dewar@adacore.com>
8272 * stand.adb (Tree_Read): Read missing entities.
8273 (Tree_Write): Write missing entities.
8275 2014-05-21 Ben Brosgol <brosgol@adacore.com>
8277 * gnat_ugn.texi: Wordsmithing edits to Coupling Metrics Control
8278 section in gnatmetric chapter.
8280 2014-05-21 Robert Dewar <dewar@adacore.com>
8282 * exp_ch6.adb (Expand_Actuals): Spec moved here, since not used
8283 outside Exp_Ch6 (Expand_Actuals): Deal with proper insertion of
8284 post-call copy write back (see detailed comment in code).
8285 * exp_ch6.ads (Expand_Actuals): Moved to body, not used outside
8287 * tbuild.ads: Minor reformatting.
8289 2014-05-21 Robert Dewar <dewar@adacore.com>
8291 * stand.ads: Add warning about adding new entities and
8292 Tree_Read/Tree_Write.
8294 2014-05-21 Robert Dewar <dewar@adacore.com>
8296 * sem_util.adb (Set_Entity_With_Checks): Don't complain about
8297 references to restricted entities within the units in which they
8300 2014-05-21 Robert Dewar <dewar@adacore.com>
8302 * gnat1drv.adb (Check_Bad_Body): Use Source_File_Is_Body to
8303 simplify the needed test, and also deal with failure to catch
8304 situations with non-standard names.
8305 * sinput-l.ads, sinput-l.adb (Source_File_Is_No_Body): New function
8306 (Source_File_Is_Subunit): Removed, no longer used.
8308 2014-05-21 Javier Miranda <miranda@adacore.com>
8311 (Expand_Allocator_Expression.Apply_Accessibility_Check): for a
8312 renaming of an access to interface object there is no need to
8313 generate extra code to reference the tag.
8315 2014-05-21 Robert Dewar <dewar@adacore.com>
8317 * errout.adb, erroutc.adb, erroutc.ads: Allow warning tag in pragma
8318 Warnings (Off, string).
8320 2014-05-21 Robert Dewar <dewar@adacore.com>
8322 * osint.adb: Fix three error messages to say invalid instead
8324 * par-ch4.adb, exp_aggr.adb, sem_attr.adb, sem_aux.adb, sem_ch3.adb,
8325 sem_ch5.adb, sem_ch6.adb, sem_ch7.adb, sem_dim.adb, sem_res.adb,
8326 sem_util.adb, sem_util.ads: Fix incorrect use of erroneous in comments.
8328 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8330 * freeze.adb, sem_ch13.adb, sem_ch13.ads, sem_ch9.adb,
8331 sem_ch9.ads: Move discriminant manipulation routines for analysis of
8332 aspect specifications from sem_ch9 to sem_ch13, where they belong.
8334 2014-05-21 Robert Dewar <dewar@adacore.com>
8336 * gnat_ugn.texi: Clearly document -gnatw.g (GNAT warnings).
8337 Clearly document -gnatyg (GNAT style switches).
8338 * usage.adb: Add line line for -gnatw.g (GNAT warnings) More
8339 detail for line for -gnatyg (GNAT style switches) -gnatw.d/D is
8340 available for VMS after all.
8341 * warnsw.adb: Reorganize to eliminate duplicated code
8342 (Restore_Warnings): Add a couple of missing entries
8343 (Save_Warnings): Add a couple of missing entries.
8344 * warnsw.ads: Add missing entries to Warning_Record (not clear
8345 what the impact is).
8347 2014-05-21 Robert Dewar <dewar@adacore.com>
8349 * errout.adb (Set_Msg_Insertion_Warning): Handle ?*? (restriction
8351 * errout.ads: Document ?*? (restriction warning) insertion.
8352 * erroutc.adb (Get_Warning_Tag): Deal with ?*? (restriction
8354 * erroutc.ads: Document use of * for restriction warning tag.
8355 * restrict.adb (Restriction_Msg): Tag with ?*? instead of ??.
8357 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8359 * sem_ch9.adb (Push_Scope_And_Install_Discriminants): Do not
8360 make discriminants immediately visible when analyzing an aspect
8361 of a subtype declaration.
8362 (Uninstall_Discriminants): Do not apply to the entity in a
8363 subtype declaration.
8365 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8367 * sem_util.adb: Code clean up.
8369 2014-05-21 Eric Botcazou <ebotcazou@adacore.com>
8371 * gnat_ugn.texi: Document -Werror.
8373 2014-05-21 Bob Duff <duff@adacore.com>
8375 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object):
8376 This was returning False if the Object is a constant view. Fix
8377 it to return True in that case, because it might be a view of
8379 (Has_Discriminant_Dependent_Constraint): Fix latent
8380 bug; this function was crashing when passed a discriminant.
8382 2014-05-21 Robert Dewar <dewar@adacore.com>
8384 * gnat_ugn.texi: Remove misplaced section that is now obsolete.
8385 * s-arit64.adb: Minor code reorganization.
8386 * sem_prag.adb: Minor comment fix (remove erroneous use of the
8389 2014-05-21 Robert Dewar <dewar@adacore.com>
8391 * g-table.adb, g-dyntab.adb (Reallocate): Fix possible overflow in
8392 computing new table size.
8394 2014-05-21 Robert Dewar <dewar@adacore.com>
8396 * einfo.ads: Minor reformatting.
8397 * ceinfo.adb: Deal with slight format change of einfo.ads.
8399 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8401 * sem_prag.adb (Analyze_Part_Of): Further work on the proper
8402 implementation of the SPARK 2014 rule concerning private child
8405 2014-05-21 Vincent Celier <celier@adacore.com>
8407 * makeusg.adb: Add switch -d to usage.
8409 2014-05-21 Ed Schonberg <schonberg@adacore.com>
8411 * sem_util.adb (Find_Actual): If an actual that is the prefix
8412 of an enclosing prefixed call has been rewritten, use Nkind
8413 and Sloc to identify the corresponding formal, when handling
8414 deferred references.
8416 2014-05-21 Robert Dewar <dewar@adacore.com>
8418 * debug.adb: Document -gnatd.z switch.
8419 * sem_eval.adb (Why_Non_Static): Test -gnatd.z switch.
8421 2014-05-21 Robert Dewar <dewar@adacore.com>
8423 * einfo.ads (Can_Never_Be_Null): Minor comment update.
8424 * sem_prag.adb (Check_Arg_Is_Task_Dispatching_Policy): Minor
8425 error message change.
8426 * s-arit64.adb ("abs"): New function. Use expression functions
8427 for the simple conversions and arithmetic.
8429 2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
8431 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Rework comment and
8432 set function_start_locus.
8434 2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
8436 * utils.c (gnat_write_global_declarations): Adjust the flags put on
8439 2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
8441 * gcc-interface/decl.c (change_qualified_type): New static function.
8442 (gnat_to_gnu_entity): Use it throughout to add qualifiers on types.
8443 <E_Array_Type>: Set TYPE_VOLATILE on the array type directly.
8444 <E_Array_Subtype>: Likewise.
8445 Do not set flags on an UNCONSTRAINED_ARRAY_TYPE directly.
8446 (gnat_to_gnu_component_type): Likewise.
8447 (gnat_to_gnu_param): Likewise.
8449 2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
8451 * fe.h (Set_Present_Expr): Move around.
8452 (End_Location): New macro.
8453 * gcc-interface/trans.c (Case_Statement_to_gnu): Use End_Location.
8455 2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
8457 * gcc-interface/decl.c (gnat_to_gnu_entity): Use Underlying_Type in
8458 lieu of more verbose construct.
8459 * gcc-interface/trans.c (Call_to_gnu): Likewise.
8460 (gnat_to_gnu): Likewise. Remove obsolete code.
8462 2014-05-18 Eric Botcazou <ebotcazou@adacore.com>
8464 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Do not
8465 consider that regular packed arrays can never be superflat.
8467 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
8469 * gcc-interface/ada-tree.h: Remove usage of variable_size gty
8471 * gcc-interface/decl.c (annotate_value): Adjust.
8472 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8473 (push_range_check_info): Likewise.
8474 (Loop_Statement_to_gnu): Likewise.
8475 (Subprogram_Body_to_gnu): Likewise.
8476 (Compilation_Unit_to_gnu): Likewise.
8477 (start_stmt_group): Likewise.
8478 * gcc-interface/utils.c (init_gnat_utils): Likewise.
8479 (gnat_pushlevel): Likewise.
8480 (maybe_pad_type): Likewise.
8482 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
8484 * seh_init.c: Fix copyright year.
8486 2014-05-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8488 * seh_init.c (__gnat_map_SEH): Compile also when __CYGWIN__ and __SEH__
8489 are defined. Move include windows.h before system.h.
8490 * s-oscons-tmplt.c (DTR_CONTROL_ENABLE, RTS_CONTROL_ENABLE): Compile
8491 also when __CYGWIN__ is defined. Include windef.h before winbase.h.
8493 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
8495 * gcc-interface/decl.c (gnat_to_gnu_entity): Convert integer_one_node
8496 to the appropriate type.
8497 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
8498 (pos_to_constructor): Likewise.
8500 2014-05-13 Eric Botcazou <ebotcazou@adacore.com>
8502 * gcc-interface/decl.c (annotate_value): Fix thinko in latest change.
8504 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
8505 Mike Stump <mikestump@comcast.net>
8506 Richard Sandiford <rdsandiford@googlemail.com>
8508 * gcc-interface/cuintp.c (UI_From_gnu): Use wide-int interfaces.
8509 * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_SIGN.
8510 (annotate_value): Use wide-int interfaces.
8511 * gcc-interface/utils.c (get_nonnull_operand): Use tree_fits_uhwi_p.
8513 2014-04-28 Richard Henderson <rth@redhat.com>
8515 * gcc-interface/Makefile.in: Support aarch64-linux.
8517 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
8519 * exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
8520 add 'Suffix' parameter and adjust comment.
8521 (Get_External_Name_With_Suffix): Delete.
8522 * exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
8523 (Get_External_Name): ...here. Add 'False' default to Has_Suffix, add
8525 (Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
8526 Call Get_External_Name instead of Get_External_Name_With_Suffix.
8527 (Get_Secondary_DT_External_Name): Likewise.
8528 * exp_cg.adb (Write_Call_Info): Likewise.
8529 * exp_disp.adb (Export_DT): Likewise.
8530 (Import_DT): Likewise.
8531 * comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
8532 parameter with False default.
8533 * comperr.adb (Compiler_Abort): Likewise. Adjust accordingly.
8534 * types.h (Fat_Pointer): Rename into...
8535 (String_Pointer): ...this. Add comment on interfacing rules.
8536 * fe.h (Compiler_Abort): Adjust for above renaming.
8537 (Error_Msg_N): Likewise.
8538 (Error_Msg_NE): Likewise.
8539 (Get_External_Name): Likewise. Add third parameter.
8540 (Get_External_Name_With_Suffix): Delete.
8541 * gcc-interface/decl.c (STDCALL_PREFIX): Define.
8542 (create_concat_name): Adjust call to Get_External_Name, remove call to
8543 Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
8544 * gcc-interface/trans.c (post_error): Likewise.
8545 (post_error_ne): Likewise.
8546 * gcc-interface/misc.c (internal_error_function): Likewise.
8548 2014-04-28 Richard Biener <rguenther@suse.de>
8551 * gcc-interface/utils.c: Define flag_isoc11.
8553 2014-04-26 Eric Botcazou <ebotcazou@adacore.com>
8555 * gnatvsn.ads (Library_Version): Bump to 4.10.
8557 2014-04-23 Eric Botcazou <ebotcazou@adacore.com>
8560 2014-04-22 Richard Henderson <rth@redhat.com>
8562 * gcc-interface/Makefile.in: Support aarch64-linux.
8564 2014-04-22 Eric Botcazou <ebotcazou@adacore.com>
8566 * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
8567 (Error_Msg_N): Likewise.
8568 (Error_Msg_NE): Likewise.
8569 (Get_External_Name_With_Suffix): Likewise.
8570 * types.h (Fat_Pointer): Delete.
8571 (String_Pointer): New type.
8572 (DECLARE_STRING_POINTER): New macro.
8573 * gcc-interface/decl.c (create_concat_name): Adjust.
8574 * gcc-interface/trans.c (post_error): Likewise.
8575 (post_error_ne): Likewise.
8576 * gcc-interface/misc.c (internal_error_function): Likewise.
8578 2014-04-22 Richard Henderson <rth@redhat.com>
8580 * gcc-interface/Makefile.in: Support aarch64-linux.
8582 * init.c [__linux__] (HAVE_GNAT_ALTERNATE_STACK): New define.
8583 (__gnat_alternate_stack): Enable for all linux except ia64.
8585 2014-04-22 Eric Botcazou <ebotcazou@adacore.com>
8587 * fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
8588 (Error_Msg_N): Likewise.
8589 (Error_Msg_NE): Likewise.
8590 (Get_External_Name_With_Suffix): Likewise.
8591 * types.h (Fat_Pointer): Delete.
8592 (String_Pointer): New type.
8593 (DECLARE_STRING_POINTER): New macro.
8594 * gcc-interface/decl.c (create_concat_name): Adjust.
8595 * gcc-interface/trans.c (post_error): Likewise.
8596 (post_error_ne): Likewise.
8597 * gcc-interface/misc.c (internal_error_function): Likewise.
8599 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
8600 Pierre-Marie de Rodat <derodat@adacore.com>
8602 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere
8603 scalar constant instead of a reference for renaming of scalar literal.
8604 Do not create a new object for constant renaming except for a function
8605 call. Make sure a VAR_DECL is created for the renaming pointer.
8606 * gcc-interface/trans.c (constant_decl_with_initializer_p): New.
8607 (fold_constant_decl_in_expr): New function.
8608 (Identifier_to_gnu): Use constant_decl_with_initializer_p.
8609 For a constant renaming, try to fold a constant DECL in the result.
8610 (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1.
8611 (Identifier_to_gnu): Reference the renamed object of constant renaming
8613 * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not
8614 invalidate constant renaming pointers.
8616 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
8618 * gcc-interface/utils.c (type_for_vector_element_p): New predicate.
8619 (build_vector_type_for_size): New function.
8620 (build_vector_type_for_array): Likewise.
8621 (unchecked_convert): Build an intermediate vector type to convert
8622 from a generic array type to a vector type.
8623 (handle_vector_size_attribute): Reimplement.
8624 (handle_vector_type_attribute): Likewise.
8626 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
8628 * gcc-interface/decl.c (prepend_one_attribute_pragma): Call
8629 Is_OK_Static_Expression in lieu of Is_Static_Expression to
8630 detect valid arguments.
8632 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
8634 * gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.
8636 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
8638 * gcc-interface/decl.c (gnat_to_gnu_entity): Use TYPE_IDENTIFIER.
8639 (components_to_record): Likewise.
8640 * gcc-interface/utils.c (make_aligning_type): Likewise.
8641 (maybe_pad_type): Likewise.
8642 (finish_record_type): Likewise.
8643 (rest_of_record_type_compilation): Likewise.
8645 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
8647 * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
8648 * sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
8650 * gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
8651 hint for Loop_Optimize.
8652 * gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
8653 * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
8654 with new Ivdep hint.
8655 * gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
8656 * gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
8657 with new Ivdep hint.
8658 (gnat_gimplify_stmt) <LOOP_STMT>: Propagate loop hints.
8660 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
8661 Robert Dewar <dewar@adacore.com>
8663 * opt.ads (Suppress_Back_Annotation): Remove as unused.
8664 * fe.h (Back_Annotate_Rep_Info): Likewise.
8665 (Global_Discard_Names): Likewise.
8666 (List_Representation_Info): Declare.
8667 * types.h (Uint_Minus_1): Likewise.
8668 * repinfo.ads: Document back-annotation change.
8669 * gcc-interface/gigi.h (init_gnat_decl): Declare.
8670 (destroy_gnat_decl): Likewise.
8671 * gcc-interface/decl.c (annotate_value): Do not create the cache of
8672 annotated values here but...
8673 <CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
8675 (init_gnat_decl): ...here instead. New function.
8676 (destroy_gnat_decl): Likewise.
8677 * gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
8678 * gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
8680 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
8682 * gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
8683 offset for the field, if any.
8685 2014-04-09 Eric Botcazou <ebotcazou@adacore.com>
8686 Svante Signell <svante.signell@gmail.com>
8690 * s-osinte-x32.adb: New file.
8691 * s-linux.ads (Time): New section.
8692 * s-linux-alpha.ads (Time): Likewise.
8693 * s-linux-android.ads (Time: Likewise.
8694 * s-linux-hppa.ads (Time): Likewise.
8695 * s-linux-mipsel.ads (Time): Likewise.
8696 * s-linux-sparc.ads (Time): Likewise.
8697 * s-linux-x32.ads (Time): Likewise.
8698 * s-osprim-x32.ads (timespec): Adjust.
8700 (To_Timespec): Likewise.
8701 * s-osinte-linux.ads (Time): Define local subtypes for those defined
8703 * s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
8704 * s-osinte-hpux.ads (timespec): Revert POSIX breakage.
8705 * s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
8706 * s-osinte-solaris-posix.ads (timespec): Likewise.
8707 * s-osinte-posix.adb (To_Timespec): Likewise.
8708 * gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.
8710 2014-04-08 Eric Botcazou <ebotcazou@adacore.com>
8713 * gcc-interface/Makefile.in (arm% linux-android): Switch to EHABI.
8714 * s-linux-android.ads: New file.
8715 * s-intman-android.adb: Likewise.
8716 * s-osinte-android.ads: Adjust.
8717 * sigtramp-armdroid.c: Likewise.
8718 * sigtramp.h: Add Android support.
8720 2014-04-07 Eric Botcazou <ebotcazou@adacore.com>
8722 * gcc-interface/Makefile.in (alpha-vms): Add missing line.
8724 2014-03-30 Eric Botcazou <ebotcazou@adacore.com>
8727 * system-linux-alpha.ads: Adjust for Ada 2005.
8728 * system-linux-mips.ads: Likewise.
8729 * system-linux-mips64el.ads: Likewise.
8730 * system-linux-mipsel.ads: Likewise.
8731 * system-linux-s390.ads: Likewise.
8732 * system-linux-s390x.ads: Likewise.
8733 * system-linux-sparc.ads: Likewise.
8734 * system-linux-sparcv9.ads: Likewise.
8735 * system-rtems.ads: Likewise.
8736 * system-vxworks-arm.ads: Likewise.
8738 2014-03-16 Andreas Schwab <schwab@linux-m68k.org>
8741 * gcc-interface/Makefile.in (target_cpu_default): Revert
8744 2014-03-13 Eric Botcazou <ebotcazou@adacore.com>
8747 * cstand.adb (Register_Float_Type): Add 'precision' parameter and use
8748 it to set the RM size. Use directly 'size' for the Esize.
8749 (Create_Back_End_Float_Types): Adjust call to above.
8750 * get_targ.ads (Register_Type_Proc): Add 'precision' parameter.
8751 * set_targ.ads (FPT_Mode_Entry): Add 'precision' component.
8752 (Write_Target_Dependent_Values): Adjust comment.
8753 * set_targ.adb (Register_Float_Type): Add 'precision' parameter and
8755 (Write_Target_Dependent_Values): Write the precision in lieu of size.
8756 (Initialization): Read the precision in lieu of size and compute the
8757 size from the precision and the alignment.
8758 * gcc-interface/gigi.h (enumerate_modes): Add integer parameter.
8759 * gcc-interface/misc.c (enumerate_modes): Likewise. Do not register
8760 types for vector modes, pass the size in addition to the precision.
8762 2014-03-10 Eric Botcazou <ebotcazou@adacore.com>
8764 * gcc-interface/Make-lang.in (ADA_DEPFILES): Fix typo.
8766 2014-03-07 Doug Rupp <rupp@adacore.com>
8769 * system-linux-armel.ads (Backend_Overflow_Checks): Set to True.
8770 (Support_64_Bit_Divides): Removed, no longer used.
8771 (ZCX_By_Default): Enabled.
8773 2014-02-25 Doug Rupp <rupp@adacore.com>
8775 * gcc-interface/Makefile.in (arm-linux):
8776 (EH_MECHANISM): Use ARM unwinder (-arm)
8777 (LIBGNAT_TARGET_PAIRS: Override defaults with a-exexpr-gcc.adb and
8779 (EXTRA_LIBGNAT_OBJS): Add raise-gcc.o
8780 (EXTRA_GNATRTL_NONTASKING_OBJS): Add g-cppexc.o s-excmac.o.
8781 (arm-wrs-vxworks): Add EH_MECHANISM=-gcc for kernel mode.
8782 (EXTRA_LIBGNAT_OBJS): Add sigtramp-armvxw.o
8783 Add dependencies for sigtramp-armvxw.o.
8785 2014-02-25 Eric Botcazou <ebotcazou@adacore.com>
8787 * gcc-interface/trans.c (Pragma_to_gnu): Deal with Warning_As_Error.
8789 2014-02-25 Robert Dewar <dewar@adacore.com>
8791 * rtsfind.adb (Is_RTE): Protect against entity with no scope
8792 field (previously this call blew up on the Standard entity).
8793 * sem_attr.adb (Analyze_Attribute, case Access): Remove
8794 test for No_Abort_Statements, this is now handled in
8795 Set_Entity_With_Checks.
8796 * exp_ch6.adb, sem_ch10.adb, sem_ch4.adb, sem_ch8.adb, sem_res.adb:
8797 Change name Set_Entity_With_Style_Check => Set_Entity_With_Checks.
8798 * sem_util.ads, sem_util.adb: Change name Set_Entity_With_Style_Check =>
8799 Set_Entity_With_Checks.
8800 (Set_Entity_With_Checks): Add checks for No_Dynamic_Attachment,
8801 Add checks for No_Abort_Statements.
8803 2014-02-25 Robert Dewar <dewar@adacore.com>
8805 * exp_ch9.adb (Expand_Entry_Barrier): Add comment that call to
8806 Check_Restriction is OK.
8808 2014-02-25 Ed Schonberg <schonberg@adacore.com>
8810 * sem_ch3.adb (Process_Full_View): Better error message when
8811 the full view of a private type without discriminants is an
8813 * sem_ch7.adb (Uninstall_Declarations): Ditto.
8815 2014-02-25 Eric Botcazou <ebotcazou@adacore.com>
8817 * sigtramp-armvxw.c: Also restore r0.
8819 2014-02-25 Robert Dewar <dewar@adacore.com>
8821 * errout.adb (Error_Msg_Internal): Warning_Msg_Char set
8822 unconditionally (Set_Msg_Insertion_Warning): Warning_Msg_Char
8823 set unconditionally.
8824 * erroutc.adb (Get_Warning_Tag): Does not give a leading space
8825 any more (Output_Msg_Text): Rewritten with new convention on
8826 output of warnings that are treated as errors.
8827 * erroutc.ads (Error_Msg_Object): Warn_Chr is always set even
8829 * gnat_rm.texi: Updates to documentation on pragma
8831 * warnsw.adb (Set_Dot_Warning_Switch): -gnatw.e should not
8832 set Warning_Doc_Switch.
8833 * lib-writ.ads: Add documentation note on ALI file generation
8835 * exp_ch6.adb (Expand_Call): Remove check for No_Abort_Statements
8837 * sem_attr.adb (Resolve_Attribute, case Access):
8838 Abort_Task'Access violates the No_Abort_Statements restriction.
8839 * sem_res.adb (Resolve_Call): Check restriction
8840 No_Abort_Statements for call to Abort_Task or a renaming of it.
8842 2014-02-25 Robert Dewar <dewar@adacore.com>
8844 * sem_ch3.adb (Array_Type_Declaration): Check for case of using
8846 * lib.ads: Minor reformatting.
8847 * einfo.ads: Minor reformatting.
8849 2014-02-25 Doug Rupp <rupp@adacore.com>
8851 * sem_mech.adb (Set_Mechanisms): For convention Fortran on VMS
8852 use Short_Descriptor(S) as the argument passing mechanism.
8854 2014-02-25 Eric Botcazou <ebotcazou@adacore.com>
8856 * sigtramp-ppcvxw.c (CFI_COMMON_REGS): Also include r0.
8858 2014-02-25 Robert Dewar <dewar@adacore.com>
8860 * atree.ads (Warnings_Treated_As_Errors): New variable.
8861 * errout.adb (Error_Msg_Internal): Set Warn_Err flag in
8862 error object (Initialize): Initialize Warnings_As_Errors_Count
8863 (Write_Error_Summary): Include count of warnings treated as errors.
8864 * erroutc.adb (Warning_Treated_As_Error): New function.
8865 (Matches): Function moved to outer level of package.
8866 * erroutc.ads (Error_Msg_Object): Add Warn_Err flag.
8867 (Warning_Treated_As_Error): New function.
8868 * gnat_rm.texi: Document pragma Treat_Warning_As_Error.
8869 * opt.adb: Add handling of Warnings_As_Errors_Count[_Config].
8870 * opt.ads (Config_Switches_Type): Add entry for
8871 Warnings_As_Errors_Count.
8872 (Warnings_As_Errors_Count): New variable.
8873 (Warnings_As_Errors): New array.
8874 * par-prag.adb: Add dummy entry for Warning_As_Error.
8875 * sem_prag.adb (Analyze_Pragma): Implement new pragma
8877 * snames.ads-tmpl: Add entries for Warning_As_Error pragma.
8879 2014-02-25 Eric Botcazou <ebotcazou@adacore.com>
8881 * sigtramp.h: Fix minor inaccuracy.
8883 2014-02-25 Ben Brosgol <brosgol@adacore.com>
8885 * gnat_ugn.texi: Added description of kill command.
8887 2014-02-25 Robert Dewar <dewar@adacore.com>
8889 * gnat_rm.texi (Address_Clauses): Add a section discussing the
8890 problem of address clauses causing unexpected initialization,
8891 including the effect of Initialize_Scalars.
8893 2014-02-25 Robert Dewar <dewar@adacore.com>
8895 * errout.adb: Various changes for better msgs for anonmous access
8897 * erroutc.ads, erroutc.adb (Buffer_Ends_With): Version with character
8899 (Buffer_Remove): Version with character argument.
8900 * sem_attr.adb (Resolve_Attribute, case Access): Better handling
8901 of mismatching conventions for access-to-subprogram case.
8902 * sem_prag.adb (Set_Convention_From_Pragma): Deal with anonymous
8903 access types in record.
8904 * sem_util.ads, sem_util.adb (Set_Convention): Handle anonymous access
8905 types, including in records.
8907 2014-02-25 Doug Rupp <rupp@adacore.com>
8909 * sigtramp-ppcvxw.c, sigtramp.h, sigtramp-armvxw.c: Comment
8910 enhancements and corrections.
8912 2014-02-25 Robert Dewar <dewar@adacore.com>
8914 * gnat_rm.texi: New section "Conventions and Anonymous Access Types"
8916 2014-02-25 Robert Dewar <dewar@adacore.com>
8918 * gnat_rm.texi: First set of documentation additions for
8919 predefined RM units.
8920 * checks.adb: Minor reformatting.
8921 * sem_elab.adb (Check_Task_Activation): Minor fix to error
8923 * sem_util.adb: Minor reformatting.
8925 2014-02-25 Arnaud Charlet <charlet@adacore.com>
8927 * usage.adb (Usage): Add help on -gnateC.
8928 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateC.
8929 * opt.ads (Generate_CodePeer_Messages): New flag.
8930 * gnat_ugn.texi: Document new switch -gnateC.
8932 2014-02-25 Ben Brosgol <brosgol@adacore.com>
8934 * gnat_rm.texi: Corrected minor typos in Implementation Defined
8936 * opt.ads: Minor reformatting.
8938 2014-02-25 Robert Dewar <dewar@adacore.com>
8940 * binde.adb: Change messages to mention -gnatel instead of -gnatwl.
8941 * gnat_ugn.texi: Update documentation of -gnatwl Add documentation
8943 * opt.ads (Warn_Info_Messages): New flag.
8944 * sem_elab.adb: Use Elab_Warnings, Elab_Info_Messages to control
8946 * sem_prag.adb: Use Elab_Warnings, Elab_Info_Messages to control
8948 * switch-m.ad, switch-c.adb: Recognize new -gnatel/EL switches.
8949 * usage.adb: Add documentation of -gnatel/-gnateL Update
8950 documentation of -gnatwl/-gnatwL.
8951 * warnsw.adb: New handling of Elab_Warnings, Elab_Info_Messages
8952 * warnsw.ads (Elab_Info_Messages): New field in Warning_Record
8954 2014-02-25 Robert Dewar <dewar@adacore.com>
8956 * einfo.ads, einfo.adb (Has_Shift_Operator): New flag.
8957 * gnat_rm.texi: Document pragma Provide_Shift_Operators.
8958 * interfac.ads: Minor code reorganization (add pragma
8959 Compiler_Unit_Warning).
8960 * par-prag.adb: Add dummy entry for Provide_Shift_Operators.
8961 * sem_ch3.adb (Build_Derived_Numeric_Type): Copy
8962 Has_Shift_Operator flag.
8963 * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure
8964 Check_Shift is always called (Check_Shift): Set Has_Shift_Operator.
8965 * sem_prag.adb: Implement pragma Provide_Shift_Operators.
8966 * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators
8967 Add entry for Name_Amount.
8968 * checks.adb (Selected_Range_Checks): When checking for a null
8969 range, make sure we use the base type, and not the subtype for
8970 deciding a range is null.
8971 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check
8972 for suspicious loop bound which is outside the range of the
8974 * gnat_ugn.texi: Add documentation section "Determining the
8975 Chosen Elaboration Order"
8976 * sem_ch13.adb (UC_Entry): Add field Act_Unit
8977 (Validate_Unchecked_Conversion): Store Act_Unit
8978 (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit
8979 * treepr.adb: Minor reformatting.
8981 2014-02-25 Arnaud Charlet <charlet@adacore.com>
8983 * usage.adb: Minor: fix typo.
8985 2014-02-25 Robert Dewar <dewar@adacore.com>
8987 * lib.ads, s-bitops.adb, s-bitops.ads, s-conca5.adb, gnat_rm.texi,
8988 s-conca5.ads, s-conca7.adb, s-conca7.ads, s-crc32.adb, s-crc32.ads,
8989 s-conca9.adb, s-conca9.ads, g-dyntab.adb, s-crtl.ads, g-dyntab.ads,
8990 s-excdeb.adb, s-addope.adb, s-addope.ads, s-carun8.adb, s-carun8.ads,
8991 g-htable.adb, g-htable.ads, g-hesora.adb, g-hesora.ads, s-conca2.adb,
8992 s-conca2.ads, a-comlin.adb, a-chlat1.ads, a-comlin.ads, errout.ads,
8993 a-except.adb, s-conca4.adb, a-except.ads, s-conca4.ads, s-conca6.adb,
8994 s-conca6.ads, g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads,
8995 a-strhas.ads, restrict.adb, aspects.adb, aspects.ads, s-conca8.adb,
8996 s-conca8.ads, back_end.adb, par-prag.adb, g-byorma.adb, g-byorma.ads,
8997 a-elchha.adb, a-elchha.ads, g-speche.adb, g-speche.ads, s-casuti.adb,
8998 s-assert.adb, s-casuti.ads, s-assert.ads, a-clrefi.adb, a-clrefi.ads,
8999 s-conca3.adb, s-conca3.ads, a-ioexce.ads: Implement pragma
9000 Compiler_Unit_Warning, change Compiler_Unit everywhere to
9001 Compiler_Unit_Warning.
9003 2014-02-25 Sergey Rybin <rybin@adacore.com frybin>
9005 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Do not normalize
9006 in ASIS mode aggregates that are used as aspect definitions.
9008 2014-02-25 Robert Dewar <dewar@adacore.com>
9010 * exp_ch7.adb, sem_util.adb, sem_util.ads, exp_ch6.adb: Minor
9013 2014-02-25 Ed Schonberg <schonberg@adacore.com>
9015 * freeze.adb (Freeze_Entity): If the return type of a function
9016 is a limited view, and the non-limited view has not been seen yet,
9017 defer freezing to some later point.
9019 2014-02-25 Robert Dewar <dewar@adacore.com>
9021 * sem_ch3.adb: Minor reformatting.
9023 2014-02-25 Robert Dewar <dewar@adacore.com>
9025 * s-excdeb.ads, s-except.ads, s-exctab.adb, s-exctab.ads, s-finmas.ads,
9026 s-htable.adb, s-htable.ads, s-imenne.adb, s-imenne.ads, s-imgenu.adb,
9027 s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-memory-vms_64.adb,
9028 s-memory-vms_64.ads, s-memory.adb, s-memory.ads, s-os_lib.adb,
9029 s-os_lib.ads, s-parame.adb, s-parame.ads, s-purexc.ads, s-restri.adb,
9030 s-restri.ads, s-rident.ads, s-secsta.adb, s-secsta.ads, s-soflin.adb,
9031 s-soflin.ads, s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9032 s-sopco5.adb, s-sopco5.ads, s-spsufi.ads, s-stache.adb, s-stache.ads,
9033 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads, s-strcom.adb,
9034 s-strcom.ads, s-strhas.adb, s-string.adb, s-string.ads, s-strops.adb,
9035 s-strops.ads, s-ststop.adb, s-ststop.ads, s-traceb.adb, s-traceb.ads,
9036 s-traent.adb, s-traent.ads, s-unstyp.ads, s-utf_32.adb, s-utf_32.ads,
9037 s-wchcnv.adb, s-wchcnv.ads, s-wchcon.adb, s-wchcon.ads, s-wchjis.adb,
9038 s-wchjis.ads, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_prag.adb,
9039 snames.ads-tmpl: Change Compiler_Unit everywhere to
9040 Compiler_Unit_Warning.
9042 2014-02-25 Hristian Kirtchev <kirtchev@adacore.com>
9044 * exp_ch6.adb (Add_Or_Save_Precondition): New routine.
9045 (Collect_Body_Postconditions_In_Decls): New routine.
9046 (Collect_Body_Postconditions_Of_Kind): Factor out code. Handle
9047 postcondition aspects or pragmas that appear on a subprogram
9049 (Collect_Spec_Preconditions): Factor out code. Handle
9050 precondition aspects or pragmas that appear on a subprogram
9052 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The analysis of
9053 aspects that apply to a subprogram body stub is no longer delayed,
9054 the aspects are analyzed on the spot.
9055 (SPARK_Aspect_Error):
9056 Aspects that apply to a subprogram declaration cannot appear in
9058 * sem_ch10.adb Remove with and use clause for Sem_Ch13.
9059 (Analyze_Proper_Body): Add local variable Comp_Unit. Unum
9060 is now a local variable. Code cleanup. Analysis related to
9061 the aspects of a subprogram body stub is now carried out by
9062 Analyze_Subprogram_Body_Helper. Do not propagate the aspects
9063 and/or pragmas of a subprogram body stub to the proper body
9064 as this is no longer needed. Do not analyze the aspects of a
9065 subprogram stub when the corresponding source unit is missing.
9066 (Analyze_Protected_Body_Stub): Flag the illegal use of aspects
9068 (Analyze_Task_Body_Stub): Flag the illegal use of
9070 (Optional_Subunit): Add local variable Unum.
9071 * sem_ch13.adb (Insert_Delayed_Pragma): Do not analyze a generated
9072 pragma when it applies to a subprogram body stub.
9073 * sem_prag.adb (Analyze_Pragma): Pragmas Contract_Cases,
9074 Depends and Global can now apply to a subprogram body stub as
9075 long as it acts as its own spec.
9076 (Analyze_Refined_Pragma):
9077 Code reformatting. Refinement pragmas cannot apply to a subunit.
9079 2014-02-25 Hristian Kirtchev <kirtchev@adacore.com>
9081 * einfo.ads Update the usage of flag
9082 Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities.
9083 * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor
9084 now starts with the letter 'C'. This makes reading expanded
9086 * exp_ch7.adb (Establish_Transient_Scope): Add local variable
9087 Iter_Loop. Signal that an Ada 2012 iterator loop requires
9088 secondary stack management when creating a transient scope for
9089 an element reference.
9090 * exp_util.adb (Process_Statements_For_Controlled_Objects):
9091 When wrapping the statements of a loop, pass the E_Loop entity
9092 to the wrapping machinery.
9093 (Wrap_Statements_In_Block): Add
9094 formal parameter Scop along with comment on usage. Add local
9095 variables Block_Id, Block_Nod and Iter_Loop. Mark the generated
9096 block as requiring secondary stack management when the block is
9097 created inside an Ada 2012 iterator loop. This ensures that any
9098 reference objects are reclaimed on each iteration of the loop.
9099 * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block
9100 tasked with the handling of container iterators as requiring
9101 secondary stack management. This ensures that iterators are
9102 reclaimed when the loop terminates or is exited in any fashion.
9103 * sem_util.adb (Add_Block_Identifier): New routine.
9104 (Find_Enclosing_Iterator_Loop): New routine.
9105 * sem_util.ads (Add_Block_Identifier): New routine.
9106 (Find_Enclosing_Iterator_Loop): New routine.
9108 2014-02-25 Robert Dewar <dewar@adacore.com>
9110 * sinfo.ads: Minor reformatting.
9112 2014-02-25 Tristan Gingold <gingold@adacore.com>
9114 * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix.
9116 2014-02-25 Pascal Obry <obry@adacore.com>
9118 * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code.
9120 2014-02-25 Tristan Gingold <gingold@adacore.com>
9122 * sem_ch10.adb: Minor comment fix.
9124 2014-02-25 Bob Duff <duff@adacore.com>
9126 * s-tasdeb.adb: Misc cleanup of this package,
9127 including printing addresses in hexadecimal.
9128 (Write): Fix minor bug when taking 'Address of an empty string.
9130 2014-02-25 Ed Schonberg <schonberg@adacore.com>
9132 * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a
9133 public child unit when it does not refer to the abstract state
9134 of a public ancestor.
9136 2014-02-25 Yannick Moy <moy@adacore.com>
9138 * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma
9139 Validity_Checks in GNATprove and CodePeer modes.
9141 2014-02-25 Pascal Obry <obry@adacore.com>
9143 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's
9144 Artifacts attribute.
9146 2014-02-25 Yannick Moy <moy@adacore.com>
9148 * sem_prag.adb: Minor reformatting to get consistent messages.
9150 2014-02-25 Robert Dewar <dewar@adacore.com>
9152 * checks.adb: Minor reformatting.
9153 * sinfo.ads (Do_Range_Check): Document that this flag is never
9154 passed to the back end.
9156 2014-02-25 Yannick Moy <moy@adacore.com>
9158 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb,
9159 sem_ch6.adb: Remove useless references to SPARK RM in error messages.
9161 2014-02-25 Hristian Kirtchev <kirtchev@adacore.com>
9163 * sem_res.adb (Appears_In_Check): New routine.
9164 (Resolve_Entity_Name): Remove local variables Prev and
9165 Usage_OK. Par is now a constant. Remove the parent chain traversal
9166 as the placement of a volatile object with enabled property
9167 Async_Writers and/or Effective_Reads must appear immediately
9168 within a legal construct.
9170 2014-02-25 Hristian Kirtchev <kirtchev@adacore.com>
9172 * checks.adb (Apply_Selected_Range_Checks):
9173 Alphabetize local constants and variables. Add comments.
9174 Always insert a range check that requires runtime evaluation into
9177 2014-02-25 Robert Dewar <dewar@adacore.com>
9179 * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting.
9181 2014-02-25 Bob Duff <duff@adacore.com>
9183 * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop
9184 iterations while waiting for independent tasks to terminate;
9185 if an independent task does not terminate, we do not want to
9186 hang here. In that case, the thread will be terminated when the
9188 * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH.
9190 2014-02-25 Ed Schonberg <schonberg@adacore.com>
9192 * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram,
9193 used to perform pre-analysis of the expression for SPARK
9194 aspects that have a non-standard syntax, such as GLobal and
9195 Initializes. The procedure applies to the original expression
9196 in an aspect specification, prior to the analysis of the
9197 corresponding pragma, in order to provide semantic information
9198 for ASIS navigation purposes.
9199 (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part):
9200 Call new subprogram.
9202 2014-02-25 Yannick Moy <moy@adacore.com>
9204 * sem_prag.adb: Remove obsolete reference to SPARK RM in error message.
9206 2014-02-25 Doug Rupp <rupp@adacore.com>
9208 * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM.
9209 (__gnat_adjust_context_for_raise): Bump the PC by 2.
9211 2014-02-25 Ed Schonberg <schonberg@adacore.com>
9213 * par-ch3.adb (P_Basic_Declarative_Items): In the case of a
9214 misplaced IS, add a statement sequence to improper body only if
9215 one has not been parsed already.
9217 2014-02-25 Ed Schonberg <schonberg@adacore.com>
9219 * sem_attr.adb (Analyze_Attribute, case 'Update): Check for
9220 mismatch when multidimensional array is updated with a single
9223 2014-02-25 Yannick Moy <moy@adacore.com>
9225 * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads,
9226 sem_ch6.adb: Mark most references to SPARK RM in error messages
9229 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9231 * par-ch3.adb (P_Basic_Declarative_Items): If an improper body
9232 appears in a list of basic declarations, complete the tree with
9233 an empty statement list, to prevent cascaded errors and crashes
9234 if semantic analysis is attempted.
9236 2014-02-24 Thomas Quinot <quinot@adacore.com>
9238 * g-sercom-mingw.adb (Open): Fix incorrect test for error return
9240 * erroutc.adb: Minor reformatting.
9242 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com>
9244 * sem_prag.adb (Check_Clause_Syntax): Account
9245 for a solitary input item in a dependency list.
9247 2014-02-24 Yannick Moy <moy@adacore.com>
9249 * gnat1drv.adb (Adjust_Global_Switches): Do not
9250 use validity checks at all in GNATprove_Mode.
9252 2014-02-24 Robert Dewar <dewar@adacore.com>
9254 * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb,
9255 atree.adb, atree.ads: Minor reformatting.
9257 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com>
9259 * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce
9260 global and dependence refinement when SPARK_Mode is off.
9261 * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce
9262 state refinement when SPARK_Mode is off.
9263 * sem_ch13.adb (Analyze_Aspect_Specifications): Add local
9264 variable Decl. Insert the generated pragma for Refined_State
9265 after a potential pragma SPARK_Mode.
9266 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local
9267 constant Deps. Remove local variable Expr. Check the syntax
9268 of pragma Depends when SPARK_Mode is off. Factor out the
9269 processing for extra parenthesis around individual clauses.
9270 (Analyze_Global_In_Decl_List): Items is now a constant. Check
9271 the syntax of pragma Global when SPARK_Mode is off.
9272 (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma
9273 Initializes when SPARK_Mode is off.
9274 (Analyze_Part_Of): Check
9275 the syntax of the encapsulating state when SPARK_Mode is off.
9276 (Analyze_Pragma): Check the syntax of pragma Abstract_State when
9277 SPARK_Mode is off. Move the declaration order check with respect
9278 to pragma Initializes to the end of the processing. Do not verify
9279 the declaration order for pragma Initial_Condition when SPARK_Mode
9280 is off. Do not complain about a useless package refinement when
9282 (Analyze_Refined_Depends_In_Decl_Part): Refs
9283 is now a constant. Check the syntax of pragma Refined_Depends
9284 when SPARK_Mode is off.
9285 (Analyze_Refined_Global_In_Decl_Part):
9286 Check the syntax of pragma Refined_Global when SPARK_Mode is off.
9287 (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma
9288 Refined_State when SPARK_Mode is off.
9289 (Check_Dependence_List_Syntax): New routine.
9290 (Check_Global_List_Syntax): New routine.
9291 (Check_Initialization_List_Syntax): New routine.
9292 (Check_Item_Syntax): New routine.
9293 (Check_State_Declaration_Syntax): New routine.
9294 (Check_Refinement_List_Syntax): New routine.
9295 (Has_Extra_Parentheses): Moved to the top level of Sem_Prag.
9297 2014-02-24 Robert Dewar <dewar@adacore.com>
9299 * a-tags.adb, s-os_lib.adb: Minor reformatting.
9301 2014-02-24 Thomas Quinot <quinot@adacore.com>
9303 * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include
9304 strerror message, not just numeric errno value.
9306 2014-02-24 Doug Rupp <rupp@adacore.com>
9308 * raise-gcc.c (exception_class_eq): Make endian neutral.
9310 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9312 * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only
9313 flag, and reset Etype and Analyzed attributes unconditionally
9314 when copying a tree that may be partly analyzed.
9315 * freeze.adb: Change calls to Copy_Separate_Tree accordingly.
9316 * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears
9317 within a subprogram body and applies to it, remove it from the
9318 body before making a copy of it, to prevent spurious errors when
9319 analyzing the copied body.
9321 2014-02-24 Thomas Quinot <quinot@adacore.com>
9323 * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image.
9324 * s-oscons-tmplt.c: On VxWorks, include adaint.h only after
9325 vxWorks.h has been included. Also ensure that file attributes
9326 related definitions are output even in cases where socket support
9328 * a-tags.adb: Code clean up.
9329 * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote
9330 instead of -I to add the main ada source directory to the header
9331 search path, in order to avoid conflict between our own "types.h"
9332 and VxWork's <types.h>.
9334 2014-02-24 Robert Dewar <dewar@adacore.com>
9336 * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter.
9337 * debug.adb: Remove documentation of -gnatd.X, no longer used.
9338 * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated.
9340 2014-02-24 Bob Duff <duff@adacore.com>
9342 * gnat_ugn.texi: Improve documentation of gnatpp.
9344 2014-02-24 Thomas Quinot <quinot@adacore.com>
9346 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads,
9347 g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb,
9348 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb,
9349 g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not
9350 a chars_ptr, because on Windows this is a renaming of
9351 Socket_Error_Message.
9353 2014-02-24 Robert Dewar <dewar@adacore.com>
9355 * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb,
9356 s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb,
9357 a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code
9360 2014-02-24 Thomas Quinot <quinot@adacore.com>
9362 * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure
9363 that the source directory containing s-oscons-tmplt.c is on the
9364 include path, so that all internal header files are available.
9366 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9368 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the
9369 domain of iteration is an attribute reference 'Old, this is an
9370 Ada 2012 iterator and the loop must be rewritten as such.
9372 2014-02-24 Thomas Quinot <quinot@adacore.com>
9374 * s-fileio.adb (Errno_Message): Remove, use shared version from
9376 * s-crtrun.ads, Makefile.rtl: Remove now unused unit.
9377 * g-stseme (Socket_Error_Message): Reimplement in terms of new
9379 * g-socthi.ads, g-socthi.adb: Change profile of
9380 Socket_Error_Message to return String to allow the above.
9381 * g-socket.adb, g-socthi-mingw.adb, g-socthi-mingw.ads,
9382 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9383 * g-socthi-vxworks.ads: Update to account for the above profile
9385 * a-tags.adb: Use strlen builtin binding provided by s-crtl.
9386 * s-crtl.ads (strncpy): New procedure.
9387 * s-os_lib.adb (Copy_Attributes): Import just once (strncpy):
9388 Use import from s-crtl.
9389 * a-envvar.adb, osint.adb: Use imports of C runtime functions
9390 from s-crtl instead of re-importing locally.
9392 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com>
9394 * sem_prag.adb (Analyze_Global_Item): Emit the
9395 variable related checks concerning volatile objects only when
9398 2014-02-24 Robert Dewar <dewar@adacore.com>
9400 * sem_ch5.adb (Analyze_Iterator_Specification): use
9401 Error_Msg_Ada_2012_Feature.
9403 2014-02-24 Jose Ruiz <ruiz@adacore.com>
9405 * s-rident.ads (Profile_Info): For Ravenscar, the restrictions
9406 No_Local_Timing_Events and No_Specific_Termination_Handlers
9407 must be set, according to the Ravenscar profile definition
9410 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9412 * sem_ch6.adb (Analyze_Expression_Function): If this is a
9413 completion, freeze return type and its designated type if needed.
9415 2014-02-24 Thomas Quinot <quinot@adacore.com>
9417 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
9418 'Address): When moving initialization statements to a freeze
9419 entity, keep them under a single node (i.e. do not unwrap
9420 expressions with actions), and set the Initialization_Statements
9421 attribute again so that processing of a later pragma Import can
9424 2014-02-24 Claire Dross <dross@adacore.com>
9426 * a-cfdlli.adb, a-cfdlli.ads, a-cfhama.adb, a-cfhama.ads,
9427 a-cfhase.adb, a-cfhase.ads, a-cforma.adb, a-cforma.ads,
9428 a-cforse.adb, a-cforse.ads, a-cofove.adb, a-cofove.ads: Rename
9429 Left/Right to First_To_Previous/Current_To_Last.
9431 2014-02-24 Thomas Quinot <quinot@adacore.com>
9433 * adaint.h (struct file_attributes): New component "error"
9434 (__gnat_error_attributes): Accessor for the above.
9435 * adaint.c (__gnat_error_attributes): New subprogram
9436 (__gnat_stat): Fix returned value (expect errno value)
9437 (__gnat_stat_to_attr): Add management of error component (set to
9438 stat errno value, except for missing files where it is set to 0,
9439 and exists is set to 0).
9440 * osint.ads (File_Attributes_Size): Update per change above,
9441 also clarify documentation.
9442 * s-filatt.ads: New file, binding to file attributes related
9444 * Makefile.rtl (s-filatt): New runtime unit.
9445 * s-crtl.ads (strlen): Expose binding to GCC builtin (falls back
9446 to library function if not available on target).
9447 * s-os_lib.ads, s-os_lib.adb (Errno_Message): New subprogram.
9448 * s-oscons-tmplt.c (SIZEOF_struct_file_attributes,
9449 SIZEOF_struct_dirent_alloc): New constants.
9450 * Make-generated.in (s-oscons.ads): Now requires adaint.h.
9451 * a-direct.adb (Fetch_Next_Entry): Fix incorrect buffer sizes.
9452 Perform appropriate error checking if stat fails (do not just
9453 ignore existing files if stat fails)
9454 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update
9457 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com>
9459 * sem_prag.adb (Analyze_Global_Item): Move the check concerning
9460 the use of volatile objects as global items in a function to
9461 the variable related checks section.
9462 * sem_util.adb (Async_Readers_Enabled): Directly call
9463 Has_Enabled_Property.
9464 (Async_Writers_Enabled): Directly call Has_Enabled_Property.
9465 (Effective_Reads_Enabled): Directly call Has_Enabled_Property.
9466 (Effective_Writes_Enabled): Directly call Has_Enabled_Property.
9467 (Has_Enabled_Property): Rename formal parameter State_Id to Item_Id.
9468 Update the comment on usage. State_Has_Enabled_Property how handles
9469 the original logic of the routine. Add processing for variables.
9470 (State_Has_Enabled_Property): New routine.
9471 (Variable_Has_Enabled_Property): New routine.
9473 2014-02-24 Robert Dewar <dewar@adacore.com>
9475 * sinfo.ads, sem_ch12.adb, sem_res.adb, sem_ch4.adb, par-ch12.adb:
9477 * atree.ads, atree.adb (Node35): New function.
9478 (Set_Node35): New procedure.
9479 * debug.adb: Define new debug flag -gnatd.X.
9480 * einfo.ads, einfo.adb (Import_Pragma): New field.
9481 * freeze.adb (Wrap_Imported_Procedure): New procedure (not
9482 really active yet, has to be activated with -gnatd.X.
9483 * sem_prag.adb (Set_Imported): Set new Import_Pragma
9484 field (Set_Imported): Don't set Is_Public (see
9485 Freeze.Wrap_Imported_Subprogram)
9486 * par-ch3.adb (P_Component_List): Handle unexpected null component.
9488 2014-02-24 Yannick Moy <moy@adacore.com>
9490 * sem_ch3.adb: Correct reference to SPARK RM in error messages.
9491 * gnat_rm.texi: Correct documentation of attribute Update.
9493 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9495 * sem_ch5.adb (Analyze_Iterator_Specification): Reject container
9496 iterator in older versions of Ada.
9498 2014-02-24 Gary Dismukes <dismukes@adacore.com>
9500 * sem_ch5.adb, sem_aux.ads, sem_ch12.adb, gnat_ugn.texi, par.adb,
9501 par-ch12.adb: Change spelling 'parametrization' to 'parameterization'.
9503 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9505 * sinfo.ads, sinfo.adb: New attribute Generalized_Indexing, for
9506 indexed_components that are instances of Ada 2012 container
9507 indexing operations. Analysis and resolution of such nodes
9508 is performed on the attribute, and the original source is
9509 preserved for ASIS operations. If expansion is enabled, the
9510 indexed component is replaced by the value of this attribute,
9511 which is in a call to an Indexing aspect, in most case wrapped
9512 in a dereference operation.
9513 * sem_ch4.adb (Analyze_Indexed_Component): Create
9514 Generalized_Indexing attribute when appropriate.
9515 (Analyze_Call): If prefix is not overloadable and has an indexing
9516 aspect, transform into an indexed component so it can be analyzed
9517 as a potential container indexing.
9518 (Analyze_Expression): If node is an indexed component with a
9519 Generalized_ Indexing, do not re-analyze.
9520 * sem_res.adb (Resolve_Generalized_Indexing): Complete resolution
9521 of an indexed_component that has been transformed into a container
9523 (Resolve_Indexed_Component): Call the above when required.
9524 (Resolve): Do not insert an explicit dereference operation on
9525 an indexed_component whose type has an implicit dereference:
9526 the operation is inserted when resolving the related
9527 Generalized_Indexing.
9529 2014-02-24 Olivier Ramonat <ramonat@adacore.com>
9531 * gnat_rm.texi, gnat_ugn.texi: Replace Ada Compiler by Ada Development
9534 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com>
9536 * sem_prag.adb (Check_Constituent_Usage): Remove leading spaces in
9538 (Inconsistent_Mode_Error): Remove leading spaces in error messages.
9539 Merge the expected and available mode errors.
9540 (Report_Unused_Constituents): Remove leading spaces in error messages.
9541 (Report_Unused_States): Remove leading spaces in error messages.
9543 2014-02-24 Thomas Quinot <quinot@adacore.com>
9545 * par_sco.adb (Traverse_One): Refine categorization of statement
9548 2014-02-24 Robert Dewar <dewar@adacore.com>
9550 * aspects.ads, aspects.adb: Remove aspects Ada_2005 and Ada_2012,
9551 Pure_05, Pure_12 and Preelaborate_05.
9552 * gnat_rm.texi: Update accordingly.
9553 * sem_prag.adb: Document one argument form of Ada_05/Ada_2005
9554 pragmas Document one argument form of Ada_12/Ada_2012 pragmas
9555 Recognize one argument form of these pragmas only in GNAT mode
9558 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9560 * s-dimmks.ads: Replace symbol for temperature, previously the
9561 Greek letter Theta, by the ASCII @ sign.
9562 * s-diflio.ads: ditto.
9564 2014-02-24 Robert Dewar <dewar@adacore.com>
9566 * exp_ch4.adb: Minor code reorganization (use OR for boolean
9568 * sem_ch3.adb, sem_prag.adb, freeze.adb: Minor reformatting.
9570 2014-02-24 Ben Brosgol <brosgol@adacore.com>
9572 * gnat_ugn.texi, projects.texi: Added the necessary conditionalization
9573 so that references to gnatmem and ASIS tools do not appear in the FSF
9574 edition of the GNAT User's Guide.
9576 2014-02-24 Yannick Moy <moy@adacore.com>
9578 * freeze.adb (Freeze_Entity): Do not issue warning
9579 for pre/post being ignored on imported subprogram in GNATprove
9582 2014-02-24 Robert Dewar <dewar@adacore.com>
9584 * exp_ch5.adb, sem_ch5.adb, sem_type.adb, sem_res.adb, sem_attr.adb,
9585 stand.ads, sem_eval.adb: Minor reformatting.
9587 2014-02-24 Yannick Moy <moy@adacore.com>
9589 * sem_prag.adb: Minor rewording in error message.
9591 2014-02-24 Johannes Kanig <kanig@adacore.com>
9593 * exp_util.adb (Expand_Subtype_From_Expr): Do not expand subtypes in
9594 GNATprove_mode, gnat2why doesn't need nor use these types.
9596 2014-02-24 Gary Dismukes <dismukes@adacore.com>
9598 * exp_ch4.adb (Expand_N_Op_Expon): On the AAMP
9599 target, in the case of signed integer exponentiation that uses a
9600 run-time routine, always select the Exp_* versions, since overflow
9601 checking is automatically done by AAMP arithmetic instructions.
9603 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com>
9605 * sem_ch13.adb (Analyze_Aspect_Specifications):
9606 When the related context is a package instace, insert pragma
9607 Abstract_State after all internally-generated renamings related
9608 to the instance "header".
9610 2014-02-24 Ed Schonberg <schonberg@adacore.com>
9612 * sem_ch3.adb (Analyze_Declarations): Analyze Contract of abstract
9614 * sem_disp.adb (Check_Dispatching_Context): A non-dispatching
9615 call to an abstract subprogram is legal if it appears in a
9616 pre/postcondition of another abstract operation.
9618 2014-02-24 Sergey Rybin <rybin@adacore.com frybin>
9620 * gnat_ugn.texi: Misc updates.
9622 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com>
9624 * exp_prag.adb (Expand_Old): Set the type of the generated temporary.
9626 2014-02-24 Gary Dismukes <dismukes@adacore.com>
9628 * layout.adb (Layout_Variant_Record): Instantiate
9629 Generic_Check_Choices and call Check_Choices before calling
9630 Build_Discr_Checking_Funcs, since we need Others_Discrete_Choices
9631 set to prevent generating incorrect discriminant-checking
9632 functions for 'others' variants (functions that unconditionally
9633 return True rather than accounting for the values covered by the
9635 * sem_eval.ads (Subtypes_Statically_Compatible): Add formal
9636 Formal_Derived_Matching.
9637 (Subtypes_Statically_Match): Add formal Formal_Derived_Matching.
9638 * sem_eval.adb (Subtypes_Statically_Compatible): Pass new
9639 Formal_Derived_Matching formal to Subtypes_Statically_Match.
9640 (Subtypes_Statically_Match): Suppress the Object_Size matching
9641 test in the case where Formal_Derived_Matching is True.
9642 * sem_ch12.adb (Validate_Derived_Type_Instance): Pass
9643 True for Formal_Derived_Matching_Formal on the call to
9644 Subtypes_Statically_Compatible.
9646 2014-02-23 Eric Botcazou <ebotcazou@adacore.com>
9648 * gcc-interface/Make-lang.in (ADA_TOOLS_FLAGS_TO_PASS): Robustify.
9650 2014-02-23 Eric Botcazou <ebotcazou@adacore.com>
9652 * gcc-interface/utils2.c (build_simple_component_ref): Fix formatting.
9653 Look through a conversion between original and packable version to get
9655 (build_component_ref): Rework comment and fix formatting.
9657 2014-02-20 Sergey Rybin <rybin@adacore.com frybin>
9659 * gnat_ugn.texi, vms_data.ads (gnatelim): Add description of
9660 project-specific options.
9662 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9664 * a-cbdlli.adb (Insert): When capacity exceeded, raise Capacity_Error,
9665 not Constraint_Error.
9666 * a-cbmutr.adb (Append_Child, Insert_Child, Prepend_Child): Ditto.
9667 * sem_ch5.adb: Code clean up.
9669 2014-02-20 Hristian Kirtchev <kirtchev@adacore.com>
9671 * sem_prag.adb (Usage_Error): Remove local
9672 constant Typ. Remove the specialized diagnostics for unconstrained
9673 or tagged items as those are not part of the explicit input set
9674 of the related subprogram and should not be flagged.
9676 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9678 * sem_attr.adb: Add guard to preserve all errors.
9680 2014-02-20 Vincent Celier <celier@adacore.com>
9682 * switch-m.adb (Normalize_Compiler_Switches): Take into account
9683 switches that are recorded in ALI files: -gnateA, -gnateE,
9684 -gnateF, -gnateinn, -gnateu, -gnateV and -gnateY.
9686 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9688 * sem_ch5.adb (Analyze_Iterator_Specification): Check legality
9689 of an element iterator form over a formal container with an
9691 * exp_ch5.adb (Build_Formal_Container_Iteration): Utility
9692 to create declaration and loop statements for both forms of
9693 container iterators.
9694 (Expand_Formal_Container_Element_Iterator): New procedure
9695 to handle loops of the form "for E of C" when C is a formal
9697 (Expand_Formal_Container_Iterator): Code cleanup.
9699 2014-02-20 Hristian Kirtchev <kirtchev@adacore.com>
9701 * sem_prag.adb (Add_Item_To_Name_Buffer): New routine.
9702 (Analyze_Contract_Case): Remove the use of
9703 "may". Replace "aspect Contract_Cases" to avoid categorization
9704 of aspect vs pragma.
9705 (Analyze_External_Property_In_Decl_Part): Remove the use of "formal".
9706 (Analyze_Global_Item): Remove
9707 the use of "formal", specify the subprogram. Split the
9708 error message about a state with visible refinement into
9709 two. Remove the use of "global" from "volatile global item".
9710 (Analyze_Initialization_Item): Ensure that the SPARK RM reference
9712 (Analyze_Input_Output): Update the call to
9713 Check_Mode. Specify the duplicated item. Reword the error
9714 message concerning an input of a null output list. Use "\"
9715 for error message continuation.
9716 (Analyze_Part_Of): Remove
9717 the use of "may". Use "\" for error message continuation.
9718 (Analyze_Refined_Depends_In_Decl_Part): Update the error
9719 message concerning a useless refinement to match the format
9721 (Analyze_Refined_Global_In_Decl_Part): Reword the error message
9722 concerning a useless refinement.
9723 (Analyze_Refinement_Clause): Use "\" for error message continuation.
9724 (Check_Constituent_Usage): Use "\" for error message continuation.
9725 (Check_Dependency_Clause): Use "\" for error message continuation.
9726 (Check_Matching_Constituent): Use "\" for error message continuation.
9727 (Check_Missing_Part_Of): Use "\" for error message continuation.
9728 (Check_Mode): Renamed to
9729 Check_Role. Update the comment on usage. Redo the error reporting
9731 (Check_Mode_Restriction_In_Enclosing_Context): Use "\" for error
9732 message continuation.
9733 (Find_Mode): Renamed to Find_Role. Update the parameter profile along
9734 with comment on usage. Update all occurrences of Is_Input and Is_Output.
9735 (Inconsistent_Mode_Error): Use "\" for error message continuation.
9736 (Input_Match): Use "\" for error message continuation.
9737 (Role_Error): New routine.
9738 (Set_Convention_From_Pragma): Use "\" for error message continuation.
9739 (Usage_Error): Add local variable Error_Msg. Build specialized error
9740 message showcasing the offending item kind. Redo the diagnostics for
9741 unconstrained types.
9743 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9745 * exp_util.adb (Is_Iterated_Container): Use high-level primitives
9746 to determine whether a type is a container type, rather than
9747 examining only its type declaration, so that subtypes and derived
9748 types are handled properly.
9750 2014-02-20 Sergey Rybin <rybin@adacore.com frybin>
9752 * gnat_ugn.texi: gnatmetric: add description of project-specific
9755 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9757 * sem_attr.adb (Analyze_Attribute, case 'Update): Verify that
9758 all choices in an association for a record type have the same
9759 type, as is done for record aggregates.
9761 2014-02-20 Robert Dewar <dewar@adacore.com>
9763 * a-cborma.adb, a-cbhama.adb, a-cbdlli.adb, a-cbmutr.adb: Use pragma
9764 Unmodified rather than Warnings (Off). Make comments
9765 uniform in the four affected units.
9767 2014-02-20 Robert Dewar <dewar@adacore.com>
9769 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
9770 Object_Size): For non-scalar types allow any value that is a
9772 * gnat_rm.texi: Document Object_Size for composites more clearly.
9774 2014-02-20 Yannick Moy <moy@adacore.com>
9776 * sem_util.ads, sem_util.adb (Default_Initialization): Remove function.
9778 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9780 * stand.ads: Raise_Type: new predefined entity, used as the type
9781 of a Raise_Expression prior to resolution.
9782 * cstand.adb: Build entity for Raise_Type.
9783 * sem_ch11.adb (Analyze_Raise_Expression): use Raise_Type as the
9784 initial type of the node.
9785 * sem_type.adb (Covers): Raise_Type is compatible with all
9787 * sem_res.adb (Resolve): Remove special handling of Any_Type on
9788 Raise_Expression nodes.
9789 (Resolve_Raise_Expression): Signal ambiguity if the type of the
9790 context is still Raise_Type.
9792 2014-02-20 Robert Dewar <dewar@adacore.com>
9794 * sem_ch12.adb (Validate_Access_Type_Instance): Add message if
9795 mismatching predicates.
9796 * sem_ch6.adb (Check_Conformance): Give better messages on
9798 * sem_eval.adb (Predicates_Match): Move to spec.
9799 * sem_eval.ads (Predicates_Match): Moved here from body.
9801 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9803 * a-cbmutr.adb: Use default value in Insert_Child.
9805 2014-02-20 Vincent Celier <celier@adacore.com>
9807 * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: Call
9808 Stringt.Initialize in all project aware tools.
9810 2014-02-20 Doug Rupp <rupp@adacore.com>
9812 * gnat_ugn.texi: Document gnatbind -X option.
9813 * vms_data.ads: Minor warnings documentation reformatting.
9815 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9817 * exp_ch3.adb (Expand_Freeze_Array_Type): Only create invariant
9818 procedure for a base type.
9820 2014-02-20 Robert Dewar <dewar@adacore.com>
9822 * sem_ch4.adb (Analyze_Case_Expression): Get type from first
9823 expression with type info.
9824 * sem_ch13.adb: Minor reformatting.
9825 * sem_eval.adb (Subtypes_Statically_Match): Make sure we return
9826 False if predicates do not match on the two types.
9828 2014-02-20 Arnaud Charlet <charlet@adacore.com>
9830 * sem_prag.adb (Analyze_Pragma [pragma Attach_Handler]):
9831 In Relaxed_RM_Semantics mode, allow any static integer value,
9832 for compatibility with other compilers.
9834 2014-02-20 Vincent Celier <celier@adacore.com>
9836 * errutil.adb (Initialize): Properly initialize entry in table
9837 Warnings when warnings are suppressed.
9839 2014-02-20 Robert Dewar <dewar@adacore.com>
9841 * s-os_lib.ads: Add warning about non-portability of Rename_File.
9842 * sem_util.ads, sem_util.adb (Is_Junk_Name): New function.
9843 * sem_warn.adb: Use Is_Junk_Name to suppress some warnings.
9844 * gnat_ugn.texi: Document no warnings on junk variable names.
9845 * layout.adb: Minor code reorganization (use Ekind_In).
9846 * stringt.adb: Move initialization of Null_String_Id to Initialize
9849 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9851 * sem_ch13.adb: Initialize optional Element_Id.
9853 2014-02-20 Robert Dewar <dewar@adacore.com>
9855 * s-os_lib.ads (Rename_File): Minor commment addition.
9857 2014-02-20 Thomas Quinot <quinot@adacore.com>
9859 * einfo.ads: Minor reformatting.
9861 2014-02-20 Hristian Kirtchev <kirtchev@adacore.com>
9863 * aspects.adb (Exchange_Aspects): New routine.
9864 * aspects.ads (Exchange_Aspects): New routine.
9865 * atree.adb (Rewrite): Do not check whether the save node has
9866 aspects as it never will, instead check the node about to be clobbered.
9867 * einfo.adb (Write_Field25_Name): Abstract_States can appear in
9868 entities of generic packages.
9869 * sem_ch6.adb (Analyze_Expression_Function): Fix the parent
9870 pointer of an aspect specification list after rewriting takes place.
9871 * sem_ch7.adb (Analyze_Package_Body_Helper): Swap the aspect
9872 specifications of the generic template and the copy used for analysis.
9873 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Swap
9874 the aspect specifications of the generic template and the
9875 copy used for analysis.
9876 (Analyze_Package_Instantiation): Propagate the aspect specifications
9877 from the generic template to the instantiation.
9878 (Build_Instance_Compilation_Unit_Nodes): Propagate the aspect
9879 specifications from the generic template to the instantiation.
9880 * sem_ch13.adb (Analyze_Aspect_Specifications): Handle aspects
9881 Abstract_State, Initializes and Initial_Condition when they
9882 apply to a package instantiation.
9884 2014-02-20 Robert Dewar <dewar@adacore.com>
9886 * stringt.adb: Add call to Initialize in package initialization.
9888 2014-02-20 Robert Dewar <dewar@adacore.com>
9890 * a-crbtgk.adb, a-cihama.adb, a-coinve.adb, a-ciorse.adb, a-crbtgo.adb,
9891 a-cidlli.adb, a-cimutr.adb, a-cihase.adb, a-cohama.adb, a-coorse.adb,
9892 a-chtgke.adb, a-chtgop.adb, a-comutr.adb, a-ciorma.adb, a-cobove.adb,
9893 a-convec.adb, a-cohase.adb, a-chtgbk.adb, a-chtgbo.adb: Minor
9896 2014-02-20 Bob Duff <duff@adacore.com>
9898 * s-os_lib.ads: Minor: Remove incorrect comment.
9900 2014-02-20 Robert Dewar <dewar@adacore.com>
9902 * sem_elab.adb (Check_Elab_Assign): Clearer warning message.
9904 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9906 * a-cborma.adb (Assign): When creating a node without a specified
9907 element, insert an uninitialized element in the map, because
9908 the instance may provide an element type with a default
9909 initialization, e.g a scalar with a Default_Value aspect.
9910 * a-cbhama.adb (Assign_Key): Remove useless Allocate procedure.
9911 (Insert): In the version without explicit element, provide an
9912 uninitialized element, as above.
9913 * a-cbdlli.adb (Append): In the version without explicit element,
9914 provide an uninitalized element, as above.
9915 (Allocate): Remove unused version.
9917 2014-02-20 Robert Dewar <dewar@adacore.com>
9919 * sem_elab.adb: Minor code reorganization (use Nkind_In).
9920 * stringt.adb: Remove temporary pragma Warnings (Off).
9921 * stringt.ads: Add pragma Elaborate_Body to ensure initialization
9924 2014-02-20 Matthew Heaney <heaney@adacore.com>
9926 * a-chtgbk.adb (Replace): Use correct offset when calculating bucket
9929 2014-02-20 Ed Schonberg <schonberg@adacore.com>
9931 * sem_ch5.adb (Analyze_Iterator_Specification): Initialize
9932 properly the cursor type for subsequent volatile testing in SPARK
9933 mode, when domain is a formal container with an Iterabe aspect.
9935 2014-02-20 Robert Dewar <dewar@adacore.com>
9937 * errout.adb (Set_Warnings_Mode_Off): Add Reason argument.
9938 (Set_Specific_Warning_Off): Add Reason argument.
9939 * errout.ads (Set_Warnings_Mode_Off): Add Reason argument.
9940 (Set_Specific_Warning_Off): Add Reason argument.
9941 * erroutc.adb (Warnings_Entry): Add Reason field
9942 (Specific_Warning_Entry): Add Reason field.
9943 (Warnings_Suppressed): return String_Id for Reason.
9944 (Warning_Specifically_Suppressed): return String_Id for Reason.
9945 * erroutc.ads (Warnings_Entry): Add Reason field.
9946 (Specific_Warning_Entry): Add Reason field.
9947 (Set_Specific_Warning_Off): Add Reason argument.
9948 (Set_Warnings_Mode_Off): Add Reason argument.
9949 (Warnings_Suppressed): return String_Id for Reason.
9950 (Warning_Specifically_Suppressed): return String_Id for Reason.
9951 * errutil.adb (Warnings_Suppressed): returns String_Id for Reason
9952 (Warning_Specifically_Suppressed): returns String_Id for Reason
9953 * gnat_rm.texi: Document that Warning parameter is string literal
9954 or a concatenation of string literals.
9955 * par-prag.adb: New handling for Reason argument.
9956 * sem_prag.adb (Analyze_Pragma, case Warning): New handling
9957 for Reason argument.
9958 * sem_util.ads, sem_util.adb (Get_Reason_String): New procedure.
9959 * sem_warn.ads (Warnings_Off_Entry): Add reason field.
9960 * stringt.adb: Set Null_String_Id.
9961 * stringt.ads (Null_String_Id): New constant.
9963 2014-02-20 Robert Dewar <dewar@adacore.com>
9965 * einfo.ads: Minor comment addition: Etype of package is
9967 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
9968 exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
9969 exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
9970 exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
9971 freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
9972 sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
9973 sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
9974 sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
9975 Replace all calls with calls to New_Occurrence_Of.
9977 2014-02-20 Robert Dewar <dewar@adacore.com>
9979 * par-util.adb (Ignore, case of right paren): Make this a
9982 2014-02-19 Robert Dewar <dewar@adacore.com>
9984 * sem_ch5.adb, sem_prag.adb, sem_attr.adb: Minor reformatting.
9985 * debug.adb: Remove -gnatd.X switch, no longer used.
9986 * styleg.adb (Check_Then): Remove check of -gnatd.X, check is
9989 2014-02-19 Bob Duff <duff@adacore.com>
9991 * g-socket.ads: Minor: Correct some comments.
9993 2014-02-19 Ed Schonberg <schonberg@adacore.com>
9995 * sem_ch5.adb: Inhibit iterator rewriting in ASIS mode.
9997 2014-02-19 Arnaud Charlet <charlet@adacore.com>
9999 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not generate
10000 an error on out of range priorities if Relaxed_RM_Semantics.
10001 * sem_prag.adb (Analyze_Pragma): Ditto.
10003 2014-02-19 Bob Duff <duff@adacore.com>
10005 * sem_attr.adb (Resolve_Attribute): Detect the case of F'Access
10006 where F denotes the renaming of an enumeration literal, and
10007 issue a specialized error message.
10009 2014-02-19 Matthew Heaney <heaney@adacore.com>
10011 * a-chtgop.ads (Checked_Index): New operation.
10012 (Next): Changed mode of hash table.
10013 * a-chtgop.adb (Adjust, Delete_Node_Sans_Free): Detect tampering
10014 (Generic_Read, Reserve_Capacity): Ditto.
10015 (Generic_Equal): Detect tampering.
10016 (Next): Changed mode of hash table, detect tampering.
10017 * a-chtgke.ads (Checked_Index, Checked_Equivalent_Keys): New
10019 (Find): Changed mode of hash table.
10020 * a-chtgke.adb (Checked_Equivalent_Keys): New operation
10021 (Delete_Key_Sans_Free, Generic_Conditional_Insert): Detect
10023 (Find): Changed mode of hash table, check for tampering.
10024 (Generic_Replace_Element): Check for tampering.
10025 * a-chtgbk.ads (Checked_Index, Checked_Equivalent_Keys): New operation.
10026 * a-chtgbk.adb (Checked_Index, Checked_Equivalent_Keys): New
10027 operation (Delete_Key_Sans_Free, Generic_Conditional_Insert):
10029 (Find, Generic_Replace_Element): Check for tampering.
10030 * a-chtgbo.ads (Checked_Index): New operation.
10031 * a-chtgbo.adb (Checked_Index): New operation
10032 (Delete_Node_Sans_Free, Generic_Equal): Detect tampering.
10033 (Generic_Read, Next): Ditto.
10034 * a-cohase.adb, a-cihase.adb (Is_In): Changed mode of hash
10035 table (Difference, Intersection): Use variable view of
10036 source, detect tampering (Find, Is_Subset, Overlap): Use
10037 variable view of container (Symmetric_Difference, Union):
10038 Detect tampering (Vet): Use Checked_Index to detect tampering
10039 (Constant_Reference, Element, Find): Use variable view of
10041 (Update_Element_Preserving_Key): Detect tampering.
10042 * a-cbhase.adb (Difference, Find, Is_In): Use variable view
10044 (Is_Subset): Ditto.
10045 (Equivalent_Sets, Overlap): Use Node's Next component.
10046 (Vet): Use Checked_Index to detect tampering.
10047 (Constant_Reference, Element, Find): Use variable view of container.
10048 (Update_Element_Preserving_Key): Detect tampering.
10049 * a-cohama.adb, a-cihama.adb, a-cbhama.adb (Constant_Reference,
10050 Element, Find): Use variable view of container.
10051 (Reference): Rename hash table component.
10052 (Vet): Use Checked_Index to detect tampering.
10054 2014-02-19 Arnaud Charlet <charlet@adacore.com>
10056 * adabkend.adb (Scan_Compiler_Arguments): Add missing handling
10059 2014-02-19 Thomas Quinot <quinot@adacore.com>
10061 * tbuild.adb (New_Occurrence_Of, New_Rerefence_To): Guard
10062 against calls without Def_Id.
10064 2014-02-19 Claire Dross <dross@adacore.com>
10066 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads,
10067 a-cofove.ads: Add global annotations to subprograms.
10069 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10071 * sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Remove
10072 constants Errors, Pack_Id and Pack_Init. Remove variable Vars.
10073 Initial_Condition no longer requires the presence of pragma
10074 Initialized. Do not try to diagnose whether all variables mentioned in
10075 pragma Initializes also appear in Initial_Condition.
10076 (Collect_Variables): Removed.
10077 (Match_Variable): Removed.
10078 (Match_Variables): Removed.
10079 (Report_Unused_Variables): Removed.
10081 2014-02-19 Thomas Quinot <quinot@adacore.com>
10083 * gnat_rm.texi (pragma Stream_Convert): Minor rewording.
10085 2014-02-19 Robert Dewar <dewar@adacore.com>
10087 * sem_util.adb, sem_util.ads, prj-conf.adb, s-os_lib.adb: Minor
10090 2014-02-19 Vincent Celier <celier@adacore.com>
10092 * prj-part.adb (Parse_Single_Project): Use the fully resolved
10093 project path, with all symbolic links resolved, to check if the
10094 same project is imported with a different unresolved path.
10095 * prj-tree.ads (Project_Name_And_Node): Component Canonical_Path
10096 changed to Resolved_Path to reflect that all symbolic links
10099 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10101 * sem_util.ads, sem_util.adb (Get_Cursor_Type): Moved to sem_util
10102 from sem_ch13, for use elsewhere.
10103 * sem_ch13.adb (Get_Cursor_Type): Moved to sem_util.
10104 * sem_ch5.adb (Analyze_Iterator_Specification): Set properly the
10105 cursor type on the loop variable when the iteration is over o
10108 2014-02-19 Vincent Celier <celier@adacore.com>
10110 * prj-conf.adb (Add_Default_GNAT_Naming_Scheme): Add declaration
10111 for an empty Target (Check_Target): Never fail when an empty
10112 target is declared in the configuration project.
10114 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10116 * sem_prag.adb (Check_Arg_Is_Local_Name): Argument is local if
10117 the pragma comes fron a predicate aspect and the context is a
10118 record declaration within the scope that declares the type.
10120 2014-02-19 Robert Dewar <dewar@adacore.com>
10122 * gnat_rm.texi: Minor clarifications.
10123 * expander.adb, sem_aggr.adb: Add comments.
10125 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10127 * sem_prag.adb (Check_Arg_Is_Local_Name): For an aspect that
10128 applies to a subprogram body, the name is the current scope,
10129 rather than being declared in the current scope.
10130 (Analyze_Pragma, case No_Return): Handle properly a No_Return
10131 aspect applied to a subprogram body.
10133 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10135 * sem_ch13.adb (Resolve_Iterable_Operation): Improve resolution
10136 of overloaded subprograms, and fix bug in handling of primitive
10139 2014-02-19 Pascal Obry <obry@adacore.com>
10141 * s-os_lib.adb: Minor reformatting.
10143 2014-02-19 Yannick Moy <moy@adacore.com>
10145 * expander.adb (Expand): Do nothing inside generics.
10146 * sem_aggr.adb (Aggregate_Constraint_Checks): Do nothing inside
10149 2014-02-19 Yannick Moy <moy@adacore.com>
10151 * exp_ch2.adb: Remove useless 'with' of unit Uintp.
10153 2014-02-19 Robert Dewar <dewar@adacore.com>
10155 * sem_ch3.adb, style.adb, sem_prag.adb, sem_ch13.adb: Minor reformatting
10156 * a-sequio.adb: Remove useless pragma Extensions_Allowed (no
10159 2014-02-19 Claire Dross <dross@adacore.com>
10161 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
10162 a-cforse.ads, a-cofove.ads: Add Iterable aspect to formal containers.
10164 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10166 * sem_ch3.adb (Analyze_Declarations): Analyze
10167 a package contract at the end of the private declarations (if
10168 applicable), otherwise analyze it and the end of the visible
10171 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10173 * style.adb (Missing_Overriding): If subprogram is an
10174 instantiation, place warning on the instance node itself,
10175 without mention of the original generic. Do not emit message
10176 if explicit Ada version is older than the introduction of the
10177 overriding indicator.
10179 2014-02-19 Yannick Moy <moy@adacore.com>
10181 * gnat_rm.texi: Doc clarifications.
10183 2014-02-19 Yannick Moy <moy@adacore.com>
10185 * exp_util.adb (Remove_Side_Effects): Do not remove side-effects
10188 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10190 * sem_ch13.adb (Get_Cursor_Type): Obtain cursor type from
10191 specified First primitive, rather than by name.
10192 (Validate_Iterable_Aspect, Resolve_Iterable_Operation): Use it,
10193 and extend error checking for missing primitives and incorrect
10196 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10198 * sem_ch3.adb (Check_Pragma_Implemented): Detect additional
10199 errors when a Synchronization aspect on an overriding protected
10200 operation does not match the given aspect on the overridden
10201 operation of an ancestor interface.
10203 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10205 * sem_prag.adb (Check_Loop_Pragma_Grouping): New routine.
10206 (Check_Loop_Pragma_Placement): Update
10207 comment on usage. Remove local variables Orig_Stmt and
10208 Within_Same_Sequence. Check that the current Loop_Invariant or
10209 Loop_Variant pragma is grouped together with other such pragmas.
10210 (Is_Loop_Pragma): New routine.
10211 (Prev_In_Loop): Removed.
10213 2014-02-19 Robert Dewar <dewar@adacore.com>
10215 * par-ch6.adb (P_Return): For extended return, end column lines
10217 * par.adb: Minor documentation clarification.
10219 2014-02-19 Yannick Moy <moy@adacore.com>
10221 * sem_prag.adb (Check_Loop_Pragma_Placement): Add check
10222 that Loop_Invariant and Loop_Variant appear consecutively.
10223 * gnat_rm.texi Update documentation of Loop_Invariant and
10224 Loop_Variant pragmas.
10226 2014-02-19 Robert Dewar <dewar@adacore.com>
10228 * debug.adb: Document -gnatd.X.
10229 * par-ch5.adb (P_If_Statement): Always check THEN, even if not
10231 (Check_Then_Column): Ditto.
10232 * styleg.adb (Check_Then): Allow THEN on line after IF.
10233 (Check_Then): Check THEN placement under control of -gnatd.X
10234 * styleg.ads (Check_Then): Now called even if THEN is not first
10236 * stylesw.ads (Style_Check_If_Then_Layout): Document new
10238 * gnat_ugn.texi: For -gnatyi, THEN can now be on line after IF.
10240 2014-02-19 Robert Dewar <dewar@adacore.com>
10242 * a-cfhama.adb, a-cfhase.adb, a-cforse.adb, a-cofove.adb, a-ngcefu.adb,
10243 a-teioed.adb, a-wtedit.adb, a-ztedit.adb, exp_ch5.adb, inline.adb,
10244 prj-pp.adb, prj-tree.adb, sem_ch12.adb, sem_ch8.adb,
10245 vms_conv.adb: Fix bad layout of IF statements
10247 2014-02-19 Robert Dewar <dewar@adacore.com>
10249 * exp_util.adb (Side_Effect_Free): Scalar if expressions can be SEF.
10251 2014-02-19 Robert Dewar <dewar@adacore.com>
10253 * exp_util.adb: Update comments.
10255 2014-02-19 Doug Rupp <rupp@adacore.com>
10257 * bindgen.adb (Gen_Adainit) [VMS] New global Float_Format.
10258 * init.c (__gl_float_format): [VMS] New global.
10259 (__gnat_set_features): Call FP_CONTROL to set FPSR for the float
10260 representation in effect.
10262 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10264 * exp_ch6.adb Add with and use clause for Exp_Prag.
10265 (Expand_Contract_Cases): Relocated to Exp_Prag.
10266 * exp_ch6.ads (Expand_Contract_Cases): Relocated to Exp_Prag.
10267 * exp_prag.adb Add with and use clauses for Checks and Validsw.
10268 (Expand_Contract_Cases): Relocated from Exp_Ch6. Update the
10269 structure of the expanded code to showcase the evaluation of
10270 attribute 'Old prefixes. Add local variable Old_Evals. Expand
10271 any attribute 'Old references found within a consequence. Add
10272 circuitry to evaluate the prefixes of attribute 'Old that
10273 belong to a selected consequence.
10274 (Expand_Old_In_Consequence): New routine.
10275 * exp_prag.ads (Expand_Contract_Cases): Relocated from Exp_Ch6.
10276 * sem_attr.adb (Check_Use_In_Contract_Cases): Warn that a
10277 potentially unevaluated prefix is always evaluated.
10279 2014-02-19 Robert Dewar <dewar@adacore.com>
10281 * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration
10282 (Expand_Min_Max_Attribute): Use Matching_Standard_Type.
10283 * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special
10284 handling for the case of Modify_Tree_For_C, this approach did
10286 * exp_util.adb (Matching_Standard_Type): New function
10287 (Side_Effect_Free): New top level functions (from
10288 Remove_Side_Effects).
10289 * exp_util.ads (Side_Effect_Free): New top level functions
10291 * sinfo.ads: Minor comment updates.
10293 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10295 * exp_ch6.adb (Expand_Simple_Function_Return): If return
10296 type is unconstrained and uses the secondary stack, mark the
10297 enclosing function accordingly, to ensure that the value is not
10298 prematurely removed.
10300 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10302 * par.adb Alphabetize the routines in Par.Sync.
10303 (Resync_Past_Malformed_Aspect): New routine.
10304 * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local
10305 variables. Code and comment reformatting. Detect missing
10306 parentheses on aspects [Refined_]Global and [Refined_]Depends
10307 with a non-null definition.
10308 * par-sync.adb: Alphabetize all routines in this separate unit.
10309 (Resync_Past_Malformed_Aspect): New routine.
10311 2014-02-19 Robert Dewar <dewar@adacore.com>
10313 * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False
10314 if Esize values do not match.
10316 2014-02-19 Yannick Moy <moy@adacore.com>
10318 * sinfo.ads: Minor comment update.
10320 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10322 * atree.ads: Minor reformatting (change Entity_Info to Einfo).
10324 2014-02-19 Thomas Quinot <quinot@adacore.com>
10326 * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement
10327 that has the No_Ctrl_Actions flag is a suitable node to be
10328 wrapped if the assigned expression has no finalization actions.
10329 * sem_eval.adb (Eval_Entity_Name): For a compile time known
10330 boolean value, mark the corresponding condition SCO as constant.
10332 2014-02-19 Robert Dewar <dewar@adacore.com>
10334 * exp_util.adb: Minor reformatting.
10335 * exp_util.ads (Matching_Standard_Type): New function.
10336 * exp_ch7.adb: Minor reformatting.
10338 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10340 * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type
10341 to find declaration for Cursor, to handle properly the case of
10342 a discriminated iterable type.
10344 2014-02-19 Vincent Celier <celier@adacore.com>
10346 * gnatcmd.adb (GNATCmd): Always replace the object dirs of
10347 imported library projects with the library ALI dirs, when setting
10349 * prj-env.ads (Ada_Objects_Path): Correct comments about
10350 argument Including_Libraries.
10352 2014-02-19 Gary Dismukes <dismukes@adacore.com>
10354 * gnat_rm.texi: Minor spelling fixes.
10356 2014-02-19 Doug Rupp <rupp@adacore.com>
10358 * init.c: Remove unneeded code.
10359 * fe.h (Float_Format): New macro
10360 * gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
10362 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10364 * sem_prag.adb (Check_Refined_Global_Item):
10365 A state or variable acts as a constituent only it is part of an
10366 encapsulating state and the state has visible refinement.
10368 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10370 * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a
10371 postcondition for a function when the expression does not mention
10372 'Result but the function has in-out parameters.
10374 2014-02-19 Robert Dewar <dewar@adacore.com>
10376 * gnat_rm.texi: Add documentation on Value_Size forcing biased
10379 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10381 * lib-xref.ads Remove the small table of letter and symbol usage as we
10384 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10386 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error
10387 messages depending on the offending misplaced aspect specifications.
10388 (Diagnose_Misplaced_Aspect_Specifications): New routine.
10390 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10392 * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type
10393 for iterable aspect primitives.
10394 (Resolve_Iterable_Operation): Use expected signature of iterable
10395 aspect to resolve primitive when overloading is present.
10396 (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it.
10397 (Check_Signature): Removed.
10399 2014-02-19 Yannick Moy <moy@adacore.com>
10401 * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing
10402 subunit in GNATprove_Mode.
10403 * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode.
10405 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10407 * lib-xref.ads Alphabetize the contents of table
10408 Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters
10409 for E_Abstract_State. List all letters and symbols in use.
10410 * sem_prag.adb (Analyze_Abstract_State): Update all calls
10411 to Create_Abstract_State to reflect the new signature.
10412 (Create_Abstract_State): Change subprogram profile and update
10413 the comment on usage. Use the proper location of the state
10414 declaration when creating a new abstract state entity. Do not
10415 generate an external name, but simply reuse the name coming from
10416 the state declaration.
10418 2014-02-19 Robert Dewar <dewar@adacore.com>
10420 * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure
10421 declarations get properly inserted in Modify_Tree_For_C mode.
10422 * sinfo.ads: Minor comment addition.
10424 2014-02-19 Robert Dewar <dewar@adacore.com>
10426 * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb,
10427 sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting.
10429 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10431 * style.adb (Missing_Overriding): Warning does not apply in
10432 language versions prior to Ada 2005.
10433 * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable.
10434 * sem_attr.adb: Add Attribute_Iterable where needed.
10435 * exp_attr.adb: ditto.
10436 * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to
10437 handle loops and quantified expressions over types that have an
10438 iterable aspect. Called from Expand_Iterator_Loop.
10439 * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types
10440 with Iterable aspect.
10441 * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the
10442 subprograms specified in the Iterable aspect have the proper
10443 signature involving container and cursor.
10444 (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect.
10445 * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram.
10446 * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive):
10447 New procedure to retrieve one of the primitives First, Last,
10448 or Has_Element, from the value of the iterable aspect of a
10450 (Is_Container_Element): Predicate to recognize expressions
10451 that denote an element of one of the predefined containers,
10452 for possible optimization. This subprogram is not currently
10453 used, pending ARG discussions on the legality of the proposed
10454 optimization. Worth preserving for eventual use.
10455 (Is_Iterator): Recognize formal container types.
10456 * aspects.ads, aspects.adb: Add Aspect_Iterable where needed.
10458 2014-02-19 Robert Dewar <dewar@adacore.com>
10460 * exp_attr.adb (Expand_Min_Max_Attribute): New procedure
10461 (Expand_N_Attribute_Reference): Use this procedure for Min and Max.
10462 * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object
10463 declarations from list of actions.
10464 * output.ads, output.adb (Delete_Last_Char): New procedure.
10465 * sinfo.ads: Document handling of Mod and expression with actions
10466 in Modify_Tree_For_C mode.
10468 2014-02-19 Ed Schonberg <schonberg@adacore.com>
10470 * par-ch9.adb (P_Task): Add a null statement to produce a
10471 well-formed task body when due to a previous syntax error the
10472 statement list is empty.
10474 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com>
10476 * sem_prag.adb (Check_Dependency_Clause): Account
10477 for the case where a state with a non-null refinement matches a
10478 null output list. Comment reformatting.
10479 (Inputs_Match): Copy a solitary input to avoid an assertion failure
10480 when trying to match the same input in multiple clauses.
10482 2014-02-19 Gary Dismukes <dismukes@adacore.com>
10484 * sem_attr.adb: Minor typo fix.
10486 2014-02-18 Robert Dewar <dewar@adacore.com>
10488 * cstand.adb (Build_Signed_Integer_Type): Minor change of formal
10489 from Int to Nat (Build_Unsigned_Integer_Type): New procedure
10490 (Create_Standard): Create new unsigned types.
10491 * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C
10492 mode (Expand_N_Reference): Removed, problematic and not needed
10494 * exp_ch4.ads (Expand_N_Reference): Removed, problematic and
10495 not needed for now.
10496 * exp_util.ads, exp_util.adb (Power_Of_Two): New function.
10497 * expander.adb: Remove call to Expand_N_Reference (problematic,
10498 and not needed now).
10499 * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function.
10500 * stand.adb: Read and write unsigned type entities.
10501 * stand.ads: Add new unsigned types.
10503 2014-02-18 Hristian Kirtchev <kirtchev@adacore.com>
10505 * sem_ch4.adb (Analyze_Call): Do not mark a function call
10506 as being inside an assertion expression as the flag is now removed.
10507 (Check_Ghost_Subprogram_Call): Do not query the
10508 In_Assertion_Expression flag as it is now removed, instead use
10509 a predicate function.
10510 * sem_elab.adb (Check_Internal_Call_Continue): Do not query the
10511 In_Assertion_Expression flag as it is now removed, instead use
10512 a predicate function.
10513 * sem_prag.ads: Add new table Assertion_Expression_Pragma.
10514 * sem_util.adb Add with and use clause for Sem_Prag.
10515 (In_Assertion_Expression_Pragma): New routine.
10516 * sem_util.ads (In_Assertion_Expression_Pragma): New routine.
10517 * sinfo.adb (In_Assertion_Expression): Removed.
10518 (Set_In_Assertion_Expression): Removed.
10519 * sinfo.ads Remove flag In_Assertion_Expression along with its
10521 (In_Assertion_Expression): Removed along with
10522 pragma Inline. (Set_In_Assertion_Expression): Removed along
10523 with pragma Inline.
10525 2014-02-18 Sergey Rybin <rybin@adacore.com frybin>
10527 * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be
10528 used together with '-r', '-rf' or '-rnb' options.
10530 2014-02-18 Hristian Kirtchev <kirtchev@adacore.com>
10532 * sem_attr.adb (Analyze_Attribute): Comment
10533 and code reformatting. Use separate routines to check the
10534 legality of attribute 'Old in certain pragmas. Verify
10535 the use of 'Old, 'Result and locally declared entities
10536 within the prefix of 'Old.
10537 (Check_References_In_Prefix): New routine.
10538 (Check_Use_In_Contract_Cases): New routine.
10539 (Check_Use_In_Test_Case): New routine.
10541 2014-02-18 Vincent Celier <celier@adacore.com>
10543 * sem_aux.adb (Is_By_Reference_Type): For each components of
10544 a record type, check also if the component is volatile as it
10545 may have an aspect that makes it volatile. If it is, then the
10546 record type is a by reference type.
10548 2014-02-18 Robert Dewar <dewar@adacore.com>
10550 * exp_attr.adb: Minor reformatting.
10551 * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure.
10552 * exp_util.adb (Remove_Side_Effects): Add conditional expressions
10553 as another case where we don't generate N_Reference nodes for
10555 * expander.adb (Expand): Add call to Expand_N_Reference.
10557 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10559 * sem_prag.adb (Analyze_Refined_Pragma): Remove
10560 local variable Pack_Spec. Refinement pragmas may now apply to
10561 bodies of both visible and private subprograms.
10563 2014-02-06 Robert Dewar <dewar@adacore.com>
10565 * exp_attr.adb (Expand_Loop_Entry_Attribute):
10566 Minor change (Attr => N) (Expand_Pred_Succ): New name
10567 Expand_Pred_Succ_Attribute (Expand_N_Attribute_Reference, case
10568 Max): Expand into if expression if Modify_Tree_For_C mode.
10569 (Expand_N_Attribute_Reference, case Min): ditto
10570 * sinfo.ads: Modify_Tree_For_C takes care of expanding Min and
10573 2014-02-06 Ed Schonberg <schonberg@adacore.com>
10575 * sem_ch3.adb (Analyze_Object_Declaration): Do not generate
10576 predicate check if this is an internal declaration with
10577 No_Initialization set, as for an expanded aggregate component.
10579 2014-02-06 Doug Rupp <rupp@adacore.com>
10581 * init.c (__gnat_default_resignal_p) [VMS]: Test for and resignal
10582 conditions with severity of "SUCCESS" or "INFORMATIONAL".
10584 2014-02-06 Yannick Moy <moy@adacore.com>
10586 * sem_prag.adb (Analyze_Pragma): Analyze pragma
10587 Debug rewritten node before rewriting it as a null statement in
10590 2014-02-06 Robert Dewar <dewar@adacore.com>
10592 * sem_attr.adb (Min_Max): New procedure.
10593 (Max_Alignment_For_Allocation_Max_Size_In_Storage_Elements): New
10596 2014-02-06 Sergey Rybin <rybin@adacore.com frybin>
10598 * gnat_ugn.texi, vms_data.ads: Add documentation of '-t' option for
10601 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10603 * sem_prag.adb (Analyze_Abstract_State): Update
10604 all calls to Create_Abstract_State to pass the proper state
10606 (Create_Abstract_State): Add new formal parameter
10607 State_Decl along with comment on usage. Establish a link between
10608 the abstract state entity and the state declaration.
10610 2014-02-06 Robert Dewar <dewar@adacore.com>
10612 * sem_attr.adb (Analyze_Attribute, case Max): Check for improper
10613 comparison of unordered enumeration type.
10614 (Analyze_Attribute, case Max): Check for improper comparison of
10615 unordered enumeration type.
10616 * sem_res.adb (Bad_Unordered_Enumeration_Reference): Moved to
10618 * sem_util.ads, sem_util.adb (Bad_Unordered_Enumeration_Reference):
10619 Moved here from Sem_Res.
10621 2014-02-06 Robert Dewar <dewar@adacore.com>
10623 * sem_ch3.adb, sem_prag.adb, sem_res.adb, lib-xref.adb: Minor
10626 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10628 * sem_ch6.adb (Process_Formals): Error message reformatting.
10630 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10632 * sem_ch3.adb (Handle_Late_Controlled_Primitive): Add local
10633 variable Spec. Do not inherit the null indicator from the
10634 subprogram body when generating the spec.
10636 2014-02-06 Robert Dewar <dewar@adacore.com>
10638 * casing.adb (Determine_Casing): Consider SPARK_Mode to be
10641 2014-02-06 Ed Schonberg <schonberg@adacore.com>
10643 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false
10644 when the function has a foreign convention, but not if only the
10645 limited return type has such a convention.
10647 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10649 * sem_ch3.adb (Handle_Late_Controlled_Primitive): Remove local
10650 variable Spec. Comment reformatting. Use Copy_Separate_Tree
10651 rather than New_Copy_Tree when building the corresponding
10652 subprogram declaration.
10654 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10656 * sem_prag.adb (Analyze_Global_Item): Remove
10657 the mode-related checks on abstract states with enabled external
10659 (Property_Error): Removed.
10661 2014-02-06 Javier Miranda <miranda@adacore.com>
10663 * lib-xref.adb (Generate_Reference): When
10664 generating the reference to the first private entity take care
10665 of handling swapped entities.
10667 2014-02-06 Sergey Rybin <rybin@adacore.com frybin>
10669 * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
10672 2014-02-06 Robert Dewar <dewar@adacore.com>
10674 * exp_ch4.adb (Expand_N_Shift_Left): Handle shift counts greater
10675 than the word size when operating in Modify_Tree_For_C mode.
10676 * sinfo.ads: Add documentation section on Modify_Tree_For_C mode.
10678 2014-02-06 Robert Dewar <dewar@adacore.com>
10680 * erroutc.adb (Warning_Specifically_Suppressed.Matches):
10681 compare is case insensitive.
10682 * gnat_rm.texi: Document that string compare for Warnings Off
10683 is now case insensitive.
10685 2014-02-06 Eric Botcazou <ebotcazou@adacore.com>
10687 * gnat_rm.texi: Small wording tweak.
10689 2014-02-06 Pascal Obry <obry@adacore.com>
10691 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Included_Patterns
10692 and Included_Artifact_Patterns attribute definitions.
10694 2014-02-06 Yannick Moy <moy@adacore.com>
10696 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
10697 SPARK_Mode pragma component for all subprograms, including stubs.
10699 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10701 * sem_ch10.adb (Analyze_Package_Body_Stub): Maintain
10702 the configuration options of the enclosing context in a
10704 (Analyze_Subprogram_Body_Stub): Maintain the
10705 configuration options of the enclosing context in a stack-like
10708 2014-02-06 Robert Dewar <dewar@adacore.com>
10710 * debug.adb: -gnatd.u sets Modify_Tree_For C
10711 * exp_ch4.adb (Expand_N_Op_Rotate_Left): Expand out
10712 if Modify_Tree_For_C (Expand_N_Op_Rotate_Right): ditto.
10713 (Expand_N_Op_Arithmetic_Right_Shift): ditto.
10714 * exp_intr.adb (Expand_Shift): Call expander so we do
10715 Modify_Tree_For_C expansions.
10716 * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
10719 2014-02-06 Fedor Rybin <frybin@adacore.com>
10721 * prj-proc.ads (Tree_Loaded_Callback): new type Callback used
10722 after the phase 1 of the processing of each aggregated project
10723 to get access to project trees of aggregated projects.
10724 (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded
10725 If specified, On_New_Tree_Loaded is called after each aggregated
10726 project has been processed succesfully.
10727 (Process): new parameter On_New_Tree_Loaded.
10728 * prj-proc.adb (Process_Aggregated_Projects): On_New_Tree_Loaded
10729 callback added after processing of each aggregated project.
10730 (Recursive_Process): new parameter On_New_Tree_Loaded.
10731 (Process): new parameter On_New_Tree_Loaded.
10732 (Process_Project_Tree_Phase_1): new parameter On_New_Tree_Loaded.
10733 * prj-conf.ads (Parse_Project_And_Apply_Config): new parameter
10734 On_New_Tree_Loaded.
10735 * prj-conf.adb (Parse_Project_And_Apply_Config): new parameter
10736 On_New_Tree_Loaded.
10738 2014-02-06 Bob Duff <duff@adacore.com>
10740 * gnat_ugn.texi: Implement --insert-blank-lines and
10741 --preserve-blank-lines switches.
10743 2014-02-06 Sergey Rybin <rybin@adacore.com frybin>
10745 * gnat_ugn.texi, vms_data.ads: Add documentation of -j option for
10748 2014-02-06 Eric Botcazou <ebotcazou@adacore.com>
10750 * gnat_rm.texi (Pragma Optimize_Alignment): Document the effect
10751 of the pragma on individual objects.
10753 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10755 * einfo.adb Node29 is now used as BIP_Initialization_Call.
10756 (BIP_Initialization_Call): New routine.
10757 (Set_BIP_Initialization_Call): New routine.
10758 (Write_Field29_Name): Add an entry for constants and variables.
10759 * einfo.ads Add new attribute BIP_Initialization_Call and update
10760 its usage in nodes.
10761 (BIP_Initialization_Call): New routine along with pragma Inline.
10762 (Set_BIP_Initialization_Call): New routine along with pragma Inline.
10763 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
10764 Add local declaration Res_Decl. Capture the build-in-place
10765 initialization call when the related object declaration has
10766 created a transient block.
10767 * exp_ch7.adb (Process_Transient_Objects): Add local variable
10768 Fin_Insrt. Recognize a scenario where an object declaration acts
10769 as a transient context and is initialized by a build-in-place
10772 2014-02-06 Pascal Obry <obry@adacore.com>
10774 * prj-util.adb (For_Interface_Sources): Fix handling of required
10775 bodies for aggregate libs.
10777 2014-02-06 Robert Dewar <dewar@adacore.com>
10779 * nlists.ads: Minor comment clarifications.
10781 2014-02-06 Robert Dewar <dewar@adacore.com>
10783 * gnat1drv.adb (Adjust_Global_Switches): Set Modify_Tree_For_C
10785 * opt.ads (Modify_Tree_For_C): New flag.
10786 * output.ads, output.adb (Last_Char): New function.
10788 2014-02-06 Pascal Obry <obry@adacore.com>
10790 * projects.texi, prj-env.adb (Initialize_Default_Project_Path): Add
10791 share/gpr for cross-builds.
10793 2014-02-06 Robert Dewar <dewar@adacore.com>
10795 * exp_util.ads, checks.adb, sem_prag.adb, prj-util.adb, sem_ch13.adb:
10796 Minor reformatting and code clean ups.
10798 2014-02-06 Pascal Obry <obry@adacore.com>
10800 * prj-util.adb (For_Interface_Sources): Skip non compilable languages.
10801 * prj.ads: Minor typo fix in comment.
10803 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10805 * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add
10806 local variable Expr. Flag clauses with extra parenthesis as this
10807 is not allowed by the syntax of the pragma. Code reformatting.
10809 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10811 * exp_attr.adb (Expand_N_Attribute_Reference): Alphabetize
10812 variables. Rename variabme Tnn to Temp. Do not create a temporary
10813 if assertions are disabled. Find enclosing routine _Postconditions
10814 and insert the temporary that captures the value of the prefix
10815 before the routine.
10816 * exp_ch6.adb (Build_Postconditions_Procedure):
10817 Insert the generated _Postconditions routine
10818 before the first source declaration of the related
10820 (Insert_After_Last_Declaration): Removed.
10821 (Insert_Before_First_Source_Declaration): New routine.
10823 2014-02-06 Ed Schonberg <schonberg@adacore.com>
10825 * exp_util.adb, exp_util.ads (Within_Internal_Subprogram):
10826 Utility to determine whether current expansion is for the body
10827 of a predefined primitive operation.
10828 (Make_Predicate_Check): Use Within_Internal_Subpgram
10829 * checks.adb (Apply_Predicate_Check): Use
10830 Within_Internal_Subprogram
10831 * sem_ch13.adb (Freeze_Entity_Checks): Ditto.
10833 2014-02-06 Pascal Obry <obry@adacore.com>
10835 * prj.ads, prj-util.adb: Minor reformatting.
10837 2014-02-06 Ed Schonberg <schonberg@adacore.com>
10839 * exp_ch6.adb (Expand_Subprogram_Contract, Append_Enabled_Item):
10840 Take into account the Split_PPC flag to ensure that conjuncts
10841 in a composite postcondition aspect are tested in source order.
10843 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10845 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Flag illegal
10847 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Flag
10848 illegal use of SPARK_Mode.
10849 (Instantiate_Subprogram_Body): Flag illegal use of SPARK_Mode.
10850 * sem_prag.adb (Analyze_Pragma): Code reformatting.
10851 * sem_util.adb Add with and use clause for Aspects.
10852 (Check_SPARK_Mode_In_Generic): New routine.
10853 * sem_util.ads (Check_SPARK_Mode_In_Generic): New routine.
10855 2014-02-06 Thomas Quinot <quinot@adacore.com>
10857 * a-calend.adb (Formatting_Operations.Split): Ensure that
10858 Time_Error is raised for invalid time values.
10860 2014-02-06 Arnaud Charlet <charlet@adacore.com>
10862 * sem_prag.adb (Analyze_Pragma): Rewrite as a null statement
10865 2014-02-06 Robert Dewar <dewar@adacore.com>
10867 * einfo.ads, einfo.adb (Is_Discriminant_Check_Function): New flag.
10868 * exp_ch3.adb (Build_Dcheck_Function): Set
10869 Is_Discriminant_Check_Function.
10871 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10873 * exp_ch7.adb (Is_Subprogram_Call): Inspect
10874 the original tree in certain cases where a construct has been
10875 factored out and replaced by a reference to a temporary.
10877 2014-02-06 Ed Schonberg <schonberg@adacore.com>
10879 * sem_ch3.adb (Process_Full_View): Fix typo in the order of
10880 parameters when propagating predicate function to full view.
10881 (Find_Type_Of_Object): Freeze base type of object type to catch
10882 premature use of discriminated private type without a full view.
10884 2014-02-06 Robert Dewar <dewar@adacore.com>
10886 * sprint.adb: Minor reformatting.
10888 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10890 * exp_ch4.adb (Process_Transient_Object): Add local variable
10891 Temp_Ins. When the transient object is initialized by an
10892 aggregate, the hook must capture the object after the last
10893 component assignment takes place.
10894 * exp_ch7.adb (Detect_Subprogram_Call): Expose the subprogram to
10895 routine Is_Subprogram_Call.
10896 (Is_Subprogram_Call): Inspect an
10897 aggregate that has been heavily expanded for subprogram calls.
10898 (Process_Transient_Objects): Add local variables Expr, Ptr_Id
10899 and Temp_Ins. Remove the nested declare block and adjust the
10900 indentation. When the transient object is initialized by an
10901 aggregate, the hook must capture the object after the last
10902 component assignment takes place.
10904 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10906 * sem_prag.adb (Analyze_Global_Item): Detect illegal uses of
10907 external states with enabled properties that do not match the
10909 (Property_Error): New routine.
10910 * sem_res.adb (Property_Error): New routine.
10911 (Resolve_Actuals): Detect illegal uses of external variables with
10912 enabled properties in procedure calls that do not match the mode of
10913 the corresponding formal parameter.
10915 2014-02-06 Hristian Kirtchev <kirtchev@adacore.com>
10917 * sem_util.adb (Has_Enabled_Property): Rename
10918 formal parameter Prop_Nam to Property. Update the comment on usage
10919 and all occurrences in the body. Add local variable Prop_Nam. When
10920 inspecting a property with an expression, the property name
10921 appears as the first choice of the component association.
10923 2014-02-04 Robert Dewar <dewar@adacore.com>
10925 * exp_ch5.adb, einfo.ads, freeze.adb, sem_ch8.adb: Minor reformatting.
10927 2014-02-04 Gary Dismukes <dismukes@adacore.com>
10929 * sem_aggr.adb: Change "runtime" to "run time" in warning message,
10930 for consistency with other messages.
10932 2014-02-04 Ed Schonberg <schonberg@adacore.com>
10934 * exp_ch5.adb (Expand_Iterator_Loop): For a container element
10935 iterator, indicate that the element is a constant if the container
10936 type does not have a variable indexing aspect.
10937 * sem_ch8.adb (Analyze_Object_Renaming): If the entity is already
10938 marked as constant, do not reset its Ekind, to ensure that
10939 container elements in an element loop are not modified if the
10940 container (e.g. a hashed set) only has a constant indexing aspect.
10942 2014-02-04 Arnaud Charlet <charlet@adacore.com>
10944 * g-souinf.ads: Subprograms in this unit are actually not pure.
10945 * freeze.adb (Freeze_Subprogram): Do not reset Is_Pure for Intrinsics.
10946 * einfo.ads (Is_Pure): Update doc to match implementation.
10948 2014-02-04 Gary Dismukes <dismukes@adacore.com>
10950 * exp_ch13.adb: Minor spelling fix.
10952 2014-02-04 Robert Dewar <dewar@adacore.com>
10954 * opt.ads: Minor comment update.
10956 2014-02-04 Robert Dewar <dewar@adacore.com>
10958 * exp_ch4.adb (Expand_N_Expression_With_Actions): Use Rewrite
10959 instead of Replace.
10961 2014-02-04 Ed Schonberg <schonberg@adacore.com>
10963 * sem_aggr.adb (Resolve_Array_Aggregate): Suppress warnings
10964 on null expressions if component type is non-null, when the
10965 corresponding association covers an empty range of index values.
10967 2014-02-04 Robert Dewar <dewar@adacore.com>
10969 * sinfo.ads: Further comments on N_Expression_With_Actions node.
10971 2014-02-04 Hristian Kirtchev <kirtchev@adacore.com>
10973 * sem_prag.adb (Analyze_Refined_Depends_In_Decl_Part): Remove global
10974 variables Out_Items and Ref_Global. Remove local constant
10975 Body_Id along with dummy variables D1, D2, D3, D4, D5, D6, D7
10976 and D8. Remove the useless collection of global items as this
10977 was a leftover from an earlier version of the routine. Move
10978 several routines out to avoid deep nesting and indentation.
10979 (Inputs_Match): Add formal parameter Dep_Clause. Rename formal
10980 parameter Do_Checks to Post_Errors. Update the comment on usage.
10981 (Is_Matching_Input): Renamed to Input_Match. Add formal parameters
10982 Ref_Inputs and Do_Checks. Rename formal parameter Do_Checks
10983 to Post_Errors. Update the comment on usage. Account for the
10984 case where a self referential state may have a null input_list.
10985 (Is_Self_Referential): New routine.
10987 2014-02-04 Ed Schonberg <schonberg@adacore.com>
10989 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the
10990 entity renames an expression, as in the case of an object of
10991 an unconstrained type initialized by a function call, defer the
10992 rewriting of the expression to the expander.
10993 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10994 'Alignment): If the entity renames an expression, introduce
10995 temporary to capture value, and rewrite original declaration to
10998 2014-02-04 Gary Dismukes <dismukes@adacore.com>
11000 * g-comlin.adb: Minor typo fix.
11002 2014-02-04 Ed Schonberg <schonberg@adacore.com>
11004 * freeze.adb (Freeze_All): Types derived from a formal
11005 access_to_classwide type do not have a finalization master.
11007 2014-02-04 Robert Dewar <dewar@adacore.com>
11009 * sprint.adb: Minor reformatting.
11011 2014-02-04 Robert Dewar <dewar@adacore.com>
11013 * exp_ch4.adb (Expand_N_Expression_With_Actions): Eliminate
11014 cases where Actions is a null list.
11015 * sinfo.ads (N_Expression_With_Actions): Actions can be
11016 temporarily empty during semantic analysis, but must be non-empty
11017 in the final expanded tree.
11019 2014-01-31 Robert Dewar <dewar@adacore.com>
11021 * exp_ch9.adb: Minor reformatting.
11023 2014-01-31 Emmanuel Briot <briot@adacore.com>
11025 * g-comlin.adb (Set_Command_Line): Take the switches
11026 configuration from the Command_Line_Config.
11028 2014-01-31 Hristian Kirtchev <kirtchev@adacore.com>
11030 * sem_prag.adb (Analyze_Refinement_Clause): Guard against a malformed
11033 2014-01-31 Vincent Celier <celier@adacore.com>
11035 * projects.texi: Add more documentation about others used as an
11036 index in indexed attributes.
11038 2014-01-31 Robert Dewar <dewar@adacore.com>
11040 * gnat_ugn.texi: Minor update.
11041 * gnat_rm.texi: Add example to Restriction_Warnings documentation.
11042 * exp_util.adb: Minor reformatting.
11044 2014-01-31 Ed Schonberg <schonberg@adacore.com>
11046 * exp_ch9.adb (Expand_Entry_Barrier): Warn if the barrier
11047 depends on data that is not private to the protected object,
11048 and potentially modifiable in unsynchronized fashion.
11050 2014-01-31 Yannick Moy <moy@adacore.com>
11052 * erroutc.adb (Validate_Specific_Warnings): Remove special case for
11055 2014-01-31 Robert Dewar <dewar@adacore.com>
11057 * prj-attr.ads (First_Attribute_Of): Returns Empty_Attribute
11058 for Unknown_Package.
11059 * sem_ch6.adb, sem_attr.adb: Minor comment addition.
11061 2014-01-31 Hristian Kirtchev <kirtchev@adacore.com>
11063 * exp_util.adb (Build_Allocate_Deallocate_Proc): Rewrite
11064 the logic that generates a runtime check to determine the
11065 controlled status of the object about to be allocated or
11066 deallocated. Class-wide types now always use a runtime check
11067 even if they appear as generic actuals.
11068 (Find_Object): Detect
11069 a special case that involves interface class-wide types because
11070 the object appears as a complex expression.
11072 2014-01-31 Ed Schonberg <schonberg@adacore.com>
11074 * sem_ch6.adb (Process_Formals): In Ada2012 mode, place
11075 subprogram with an incomplete untagged formals on the list of
11076 private dependents, to verify that the type is properly completed
11077 in the private part.
11078 * sem_attr.adb: Code clean up.
11080 2014-01-31 Robert Dewar <dewar@adacore.com>
11082 * exp_ch6.adb: Minor reformatting.
11084 2014-01-31 Vincent Celier <celier@adacore.com>
11086 * prj-attr.adb (First_Attribute_Of): Return Unknown_Attribute
11087 when Pkg is unknown.
11089 2014-01-31 Hristian Kirtchev <kirtchev@adacore.com>
11091 * sem_res.adb (Resolve_Entity_Name): Comment
11092 reformatting. Allow volatile objects in various generated checks.
11094 2014-01-31 Ed Schonberg <schonberg@adacore.com>
11096 * sem_attr.adb (Analyze_Attribute, case 'Update): For a record
11097 component association, set the etype of the identifier, for
11100 2014-01-31 Ed Schonberg <schonberg@adacore.com>
11102 * exp_ch6.adb (Has_Visibility_Of_Subprogram): If type is not
11103 declared in a package, not checks can apply to the subprogram.
11105 2014-01-31 Robert Dewar <dewar@adacore.com>
11107 * erroutc.adb (Validate_Specific_Warnings): Warnings are
11108 controlled -gnatw.W.
11109 * gnat_ugn.texi: Document new warnings controlled by -gnatw.w.
11110 * opt.ads (Warn_On_Warnings_Off): Now controls more cases.
11112 2014-01-31 Arnaud Charlet <charlet@adacore.com>
11114 * exp_disp.adb: Update comments.
11116 2014-01-31 Yannick Moy <moy@adacore.com>
11118 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration,
11119 Save_Global_References): Guard access to expression in aspect.
11121 2014-01-31 Yannick Moy <moy@adacore.com>
11123 * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode):
11124 Issue an error when the pragma is applied to a generic unit,
11125 a generic declaration, or inside a generic.
11127 2014-01-31 Yannick Moy <moy@adacore.com>
11129 * sem_ch8.adb (Analyze_Subprogram_Renaming): Set SPARK_Mode on renaming
11132 2014-01-31 Robert Dewar <dewar@adacore.com>
11134 * exp_ch9.adb, s-tassta.adb, s-tposen.adb, s-tposen.ads: Minor
11137 2014-01-31 Tristan Gingold <gingold@adacore.com>
11139 * exp_disp.adb: Add a historic note.
11141 2014-01-31 Robert Dewar <dewar@adacore.com>
11143 * sem_warn.adb (Warn_On_Useless_Assignments): Add call to
11144 Process_Deferred_References.
11146 2014-01-31 Yannick Moy <moy@adacore.com>
11148 * erroutc.adb (Validate_Specific_Warnings): Do not issue a message for
11149 ineffective pragma Warnings(Off) in GNATprove_Mode.
11151 2014-01-31 Bob Duff <duff@adacore.com>
11153 * s-taskin.ads: Minor comment fix.
11154 * s-tassta.adb (Abort_Dependents): Don't abort all dependents;
11155 just direct dependents. If this is actually an abort, each task
11156 will take care of aborting its dependents, so all dependents will
11157 get aborted, as before. However, when this is called the second
11158 time from Vulnerable_Complete_Master "for convenience" (i.e. to
11159 kill off tasks waiting at terminate alternatives), aborting
11160 indirect dependents is wrong, because it causes some unrelated
11161 tasks to get aborted.
11163 2014-01-31 Robert Dewar <dewar@adacore.com>
11165 * sem_ch4.adb: Minor reformatting.
11167 2014-01-31 Robert Dewar <dewar@adacore.com>
11169 * exp_ch2.adb: New calling sequence for Is_LHS.
11170 * frontend.adb: Add call to Process_Deferred_References.
11171 * lib-xref.ads, lib-xref.adb (Process_Deferred_References): New.
11172 (Deferred_References): New table.
11173 * sem_ch8.adb (Find_Direct_Name): Make deferred reference table
11175 (Find_Expanded_Name): Ditto.
11176 * sem_res.adb: New calling sequence for Is_LHS.
11177 * sem_util.ads, sem_util.adb (Is_LHS): New calling sequence.
11178 * sem_warn.adb: Call Process_Deferred_References before issuing
11181 2014-01-31 Tristan Gingold <gingold@adacore.com>
11183 * exp_util.adb (Corresponding_Runtime_Package): Restrict the
11184 use of System_Tasking_Protected_Objects_Single_Entry.
11185 * exp_ch9.adb (Build_Simple_Entry_Call): Remove Mode parameter
11186 of Protected_Single_Entry_Call.
11187 (Expand_N_Timed_Entry_Call): Remove single_entry case.
11188 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body): Remove
11190 (Make_Disp_Timed_Select_Body): Likewise.
11191 * rtsfind.ads (RE_Timed_Protected_Single_Entry_Call): Remove.
11192 * s-tposen.adb (Send_Program_Error, PO_Do_Or_Queue): Remove
11194 (Wakeup_Entry_Caller): Remove Self_ID and New_State parameters.
11195 (Wait_For_Completion_With_Timeout): Remove.
11196 (Protected_Single_Entry_Call): Remove Mode parameter
11197 (always Simple_Call).
11198 (Service_Entry): Remove Self_Id constant (not used anymore).
11199 (Timed_Protected_Single_Entry_Call): Remove.
11200 * s-tposen.ads (Timed_Protected_Single_Entry_Call): Remove.
11201 (Protected_Single_Entry_Call): Remove Mode parameter.
11203 2014-01-29 Hristian Kirtchev <kirtchev@adacore.com>
11205 * einfo.adb (Get_Pragma): Handle the retrieval of pragma Refined_Post.
11206 * einfo.ads (Get_Pragma): Update the comment on special pragmas
11207 handled by this routine.
11208 * sem_prag.adb (Analyze_Pragma): Add a legal pragma Refined_Post
11209 to the contract of the related subprogram body.
11210 * sem_util.adb (Add_Contract_Item): Handle the insertion of
11211 pragma Refined_Post into the contract of a subprogram body.
11212 * sinfo.ads Update the documentation of node N_Contract.
11213 * sem_res.adb (Resolve_Entity_Name): Add a guard
11214 to detect abstract states and variables only when checking the
11215 SPARK 2014 rules concerning volatile object placement.
11217 2014-01-29 Ed Schonberg <schonberg@adacore.com>
11219 * sem_ch4.adb (Find_Equality_Types, Try_One_Interp): within an instance,
11220 null is compatible with any access type.
11222 2014-01-29 Hristian Kirtchev <kirtchev@adacore.com>
11224 * sem_util.adb (Find_Placement_In_State_Space): Assume that the default
11225 placement is not in a package.
11227 2014-01-29 Hristian Kirtchev <kirtchev@adacore.com>
11229 * sem_util.adb (Has_Enabled_Property): Compare the character field of
11232 2014-01-29 Robert Dewar <dewar@adacore.com>
11234 * sem_intr.adb, a-ztexio.ads, sinfo.ads, sem_res.adb, gnatlink.adb,
11235 vms_conv.adb, a-except.ads, a-except-2005.ads, a-teioed.adb,
11236 sem_warn.ads, treepr.ads, erroutc.ads, a-excach.adb: Minor reformatting.
11238 2014-01-29 Robert Dewar <dewar@adacore.com>
11240 * sem_util.ads, sem_util.adb (In_Pragma_Expression): New function.
11241 * sem_warn.adb (Check_References): Suppress warnings if inside
11242 Initial_Condition pragma.
11244 2014-01-29 Hristian Kirtchev <kirtchev@adacore.com>
11246 * sem_prag.adb (Check_Missing_Part_Of): List all values of
11247 State_Space_Kind for readability reasons. Do not emit an error on
11248 a private item when the enclosing package lacks aspect/pragma
11249 Abstract_State. Do not emit an error on a private package
11250 instantiation when the corresponding generic template lacks
11252 (Has_Visible_State): New routine.
11253 * sem_util.adb (Find_Placement_In_State_Space): The visible
11254 declarations of any kind of child units in general act as proper
11255 placement location.
11257 2014-01-29 Robert Dewar <dewar@adacore.com>
11259 * a-except-2005.adb, a-except.adb, a-excpol-abort.adb, a-exstat.adb,
11260 ali.adb, a-numaux.ads, a-numaux-darwin.ads, a-numaux-libc-x86.ads,
11261 a-numaux-vms.ads, a-numaux-vxworks.ads, a-numaux-x86.ads, aspects.ads,
11262 a-taside.adb, a-teioed.adb, a-textio.adb, a-textio.ads, atree.adb,
11263 atree.ads, a-witeio.adb, a-witeio.ads, a-wtedit.adb, a-ztedit.adb,
11264 a-ztexio.adb, bcheck.adb, binde.adb, checks.adb, comperr.adb,
11265 cstand.adb, debug_a.adb, einfo.ads, errout.adb, erroutc.adb,
11266 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb,
11267 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb, exp_dbug.adb,
11268 exp_disp.adb, exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_util.adb,
11269 freeze.adb, frontend.adb, g-comlin.ads, g-mbdira.adb, gnat1drv.adb,
11270 gprep.adb, g-spipat.adb, i-cpp.ads, i-vxwork.ads, i-vxwork-x86.ads,
11271 krunch.ads, layout.adb, lib-load.adb, lib-writ.adb, lib-writ.ads,
11272 live.adb, namet.ads, osint.adb, osint-c.adb, output.ads, par.adb,
11273 par-ch10.adb, par-ch13.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
11274 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-prag.adb,
11275 par-sync.adb, par-tchk.adb, par-util.adb, prj.adb, repinfo.adb,
11276 rtsfind.adb, s-arit64.adb, s-asthan-vms-alpha.adb,
11277 s-asthan-vms-ia64.adb, s-bignum.adb, scans.adb, scng.adb, s-dimmks.ads,
11278 sem_aggr.adb, sem_attr.adb, sem_aux.adb, sem_cat.adb, sem_ch10.adb,
11279 sem_ch12.adb, sem_ch13.adb, sem_ch13.ads, sem_ch3.adb, sem_ch4.adb,
11280 sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_disp.adb, sem_elab.adb,
11281 sem_elim.adb, sem_eval.adb, sem_intr.adb, sem_prag.adb, sem_res.adb,
11282 sem_type.adb, sem_util.adb, sem_warn.adb, set_targ.adb, s-fatgen.adb,
11283 s-fatgen.ads, s-fileio.adb, s-imgcha.adb, s-imgrea.adb, sinfo.ads,
11284 sinput-c.adb, snames.ads-tmpl, s-os_lib.adb, sprint.adb,
11285 s-regpat.adb, s-secsta.adb, s-stalib.ads,
11286 s-stchop.adb, s-stoele.ads, stand.ads, s-taprop-solaris.adb,
11287 s-tasdeb-vms.adb, s-tasini.adb, s-tassta.adb, s-valdec.adb,
11288 s-valuti.adb, s-wchjis.adb, s-wchwts.adb, system.ads, system-vms_64.ads,
11289 system-vms-ia64.ads, treepr.adb, types.ads, uintp.adb, uname.adb,
11290 urealp.adb, usage.adb, vxaddr2line.adb: Minor reformatting.
11292 2014-01-29 Robert Dewar <dewar@adacore.com>
11294 * expander.adb: Minor reformatting.
11296 2014-01-29 Javier Miranda <miranda@adacore.com>
11298 * exp_ch3.adb (Predefined_Primitive_Bodies): Adding documentation to
11301 2014-01-29 Javier Miranda <miranda@adacore.com>
11303 * exp_ch3.adb (Predefined_Primitive_Bodies): Complete the code
11304 that checks if an interface types defines the predefined "="
11305 function because the compiler was erroneously not generating the
11306 predefined "=" primitive as soon as the name of some interface
11307 primitive is "=" (formals were not checked).
11309 2014-01-29 Ed Schonberg <schonberg@adacore.com>
11311 * expander.adb (Expander): In GNATprove mode, do not process
11312 transient scopes: they are in general not created in this mode,
11313 and an attempt to examine them will lead to constraint errors when
11314 processing configuration pragmas that have analyzable expressions.
11316 2014-01-29 Vincent Celier <celier@adacore.com>
11318 * clean.adb (Gnatclean): Fail if main project is an aggregate
11319 project or if there is an aggregate library project in the
11321 * gnatcmd.adb: Fail if the main project is an aggregate project
11322 or if there is an aggegate library project in the project tree.
11323 * make.adb (Initialize): : Fail if main project is an aggregate
11324 project or if there is an aggregate library project in the
11326 * makeutl.ads (Aggregate_Libraries_In): New Boolean function.
11327 * prj-makr.adb (Initialize): Fail if the main project is an
11328 aggregate project or an aggregate library project.
11330 2014-01-29 Vincent Celier <celier@adacore.com>
11332 * prj-part.adb (Check_Import_Aggregate): New procedure
11333 to check if an imported project is an aggregate project.
11334 (Parse_Single_Project): Call Check_Import_Aggregate
11335 * projects.texi: Document that aggregate projects cannot be
11336 extended or imported.
11338 2014-01-29 Robert Dewar <dewar@adacore.com>
11340 * exp_ch9.adb, sem_ch7.ads, s-regexp.adb, sem_ch13.adb: Minor
11341 reformatting and code clean up.
11342 * gnat_ugn.texi: Add documentation section on Atomic Variables
11345 2014-01-29 Hristian Kirtchev <kirtchev@adacore.com>
11347 * einfo.adb Flag264 is now unused.
11348 (Has_Body_References): Removed.
11349 (Set_Has_Body_References): Removed.
11350 (Write_Entity_Flags): Remove the output for flag Has_Body_References.
11351 * einfo.ads Update the comment on usage of attribute
11352 Body_References. Remove attribute Has_Body_References and its
11354 (Has_Body_References): Removed along with pragma Inline.
11355 (Set_Has_Body_References): Removed along with pragma Inline.
11356 * sem_prag.adb (Analyze_Global_Item): Move the call to
11357 Record_Possible_Body_Reference in the state related checks
11358 section. Add a comment intended function.
11359 (Analyze_Input_Output): Move the call to Record_Possible_Body_Reference
11360 in the state related checks section. Add a comment intended function.
11361 (Analyze_Refinement_Clause): Cleanup the illegal body reference
11362 reporting. Add a comment on timing of error reporting.
11363 (Record_Possible_Body_Reference): Reimplement the routine.
11365 2014-01-29 Vincent Celier <celier@adacore.com>
11367 * makeutl.adb (Mains.Find_File_Add_Extension): Only look for specs for
11368 unit-based languages.
11369 (Mains.Complete_Mains.Do_Complete): Use the source file project
11370 tree when calling Find_File_Add_Extension. Use the correct
11371 project name when reporting an error.
11373 2014-01-29 Hristian Kirtchev <kirtchev@adacore.com>
11375 * aspects.adb Add an entry for aspect Part_Of in table
11377 * aspects.ads Add an entry for aspect Part_Of in tables Aspect_Id,
11378 Aspect_Argument, Aspect_Names and Aspect_Delay.
11379 * atree.h Define Elist9.
11380 * atree.adb (Elist9): New routine.
11381 (Set_Elist9): New routine.
11382 * atree.ads (Elist9): New routine.
11383 (Set_Elist9): New routine.
11384 * einfo.adb Add Part_Of_Constituents and Encapsulating_State to
11385 the list of node usage. Remove Refined_State from the list of
11387 (Encapsulating_State): New routine.
11389 Handle pragma Part_Of; (Part_Of_Constituents): New routine.
11390 (Refined_State): Removed.
11391 (Set_Encapsulating_State): New routine.
11392 (Set_Part_Of_Constituents): New routine.
11393 (Set_Refined_State): Removed.
11394 (Write_Field9_Name): Add an entry
11395 for Part_Of_Constituents (Write_Field10_Name): Add an entry for
11396 Encapsulating_State. Remove the entry for Refined_State.
11397 * einfo.ads Add new attributes Encapsulating_State
11398 and Part_Of_Constituents alond with their usage in
11399 entities. Remove attribute Refined_State along with its
11401 (Encapsulating_State): New routine and
11402 pragma Inline. (Get_Pragma): Update the comment on usage.
11403 (Part_Of_Constituents): New routine and pragma Inline.
11404 (Refined_State): Removed along with pragma Inline.
11405 (Set_Encapsulating_State): New routine and pragma Inline.
11406 (Set_Part_Of_Constituents): New routine and pragma Inline.
11407 (Set_Refined_State): Removed along with pragma Inline.
11408 * par-prag.adb Pragma Part_Of does not need any special processing
11410 * sem_ch3.adb (Analyze_Declarations): Remove local variables
11411 Body_Id and Prag. Call separate routines to analyze the
11412 contract of a package [body].
11413 (Analyze_Object_Contract):
11414 Update the comment on usage. Remove local variables
11415 Items and Nam. Use Get_Pragma rather than traversing the
11416 classification list. Verify whether the lack of indicator
11417 Part_Of agrees with the placement of the variable in state space.
11418 (Analyze_Object_Declaration): Initialize the encapsulating state
11419 of a variable. (Requires_State_Refinement): Moved to sem_util.
11420 * sem_ch7.adb (Analyze_Package_Body_Contract): New routine.
11421 (Analyze_Package_Contract): New routine.
11422 * sem_ch7.ads (Analyze_Package_Body_Contract): New routine.
11423 (Analyze_Package_Contract): New routine.
11424 * sem_ch10.adb (Decorate_State): Initialize the encapsulating
11425 state and Part_Of constituents.
11426 * sem_ch13.adb (Analyze_Aspect_Specifications):
11427 Add processing for aspect Part_Of. Update all
11428 calls to Decorate_Delayed_Aspect_And_Pragma.
11429 (Check_Aspect_At_Freeze_Point): Aspect Part_Of does
11430 not need any special processing at freeze time.
11431 (Decorate_Delayed_Aspect_And_Pragma): Renamed to
11432 Decorate_Aspect_And_Pragma. Add formal parameter Delayed and
11433 update the associated comment.
11434 * sem_prag.adb Add an entry for pragma Part_Of in table Sig_Flags.
11435 (Analyze_Abstract_State): Add new global variable State_Id. Remove
11436 local constants Errors and Loc. Remove local variables Is_Null
11437 and State_Nam. Create the entity of the abstract state on the
11438 spot, before all remaining checks are performed. Verify that a
11439 missing Part_Of option agrees with the placement of the abstract
11440 state within the state space.
11441 (Analyze_Depends_In_Decl_Part):
11442 Add new global variables Constits_Seen and States_Seen. Check
11443 that a state and a corresponding constituent do not appear
11444 in pragma [Refined_]Depends.
11445 (Analyze_Global_In_Decl_Part):
11446 Add new global variables Constits_Seen and States_Seen. Check
11447 that a state and a corresponding constituent do not appear
11448 in pragma [Refined_]Global.
11449 (Analyze_Global_Item):
11450 Remove the now obsolete code that deals with Part_Of.
11451 Add the entity of the global item to the list of processed
11452 items. (Analyze_Initializes_In_Decl_Part): Add new global
11453 variables Constits_Seen and States_Seen. Check that a state
11454 and a corresponding constituent do not appear in pragma
11456 (Analyze_Initialization_Item): Add the entity
11457 of the initialization item to the list of processed items.
11458 (Analyze_Input_Item): Add the entity of the initialization
11459 item to the list of processed items.
11460 (Analyze_Input_Output):
11461 Remove the now obsolete code that deals with Part_Of. Add the
11462 entity of the input/output to the list of processed items.
11463 (Analyze_Part_Of): New routine.
11464 (Analyze_Part_Of_Option): Remove
11465 local constant Par_State. Add local constant Encaps and local
11466 variables Encaps_Id and Legal. Use Analyze_Part of to analyze
11467 the option. Turn the related state into a Part_Of constituent
11468 if the option is legal.
11469 (Analyze_Pragma): Add processing
11470 for pragma Part_Of.
11471 (Analyze_Refined_State_In_Decl_Part):
11472 Remove global constants Pack_Body and Spec_Id. Remove
11473 global variables Abstr_States and Hidden_States. Add new
11474 global variables Available_States, Body_Id, Body_States and
11475 Spec_Id. Add new local constant Body_Decl. Reimplement the
11476 logic that extracts the states available for refinement from
11477 the related package and the body hidden states of the said
11479 (Analyze_Refinement_Clause): Add local variable Part_Of_Constits.
11480 (Check_Applicable_Policy): Alphabetize body.
11481 (Check_Dependency_Clause): Replace Refined_State
11482 with Encapsulating_State.
11483 (Check_Matching_Constituent):
11484 Reimplement the logic that determines whether an item is a valid
11485 / invalid constituent of the current refined state. Return when
11486 a construct does not denote a valid abstract state. Extract the
11487 list of Part_Of constituents for further analysis. Check that all
11488 Part_Of constituents of a state have been used in its refinement.
11489 (Check_Matching_State): Update the comment on usage. Operate
11490 on the list of available states.
11491 (Check_Missing_Part_Of): New routine.
11492 (Check_Refined_Global_Item): Replace Refined_State
11493 with Encapsulating_State.
11494 (Check_State_And_Constituent_Use): New routine.
11495 (Create_Abstract_State): New routine.
11496 (Is_Matching_Input): Replace Refined_State with Encapsulating_State.
11497 (Is_Part_Of): Removed.
11498 (Collect_Body_States): New routine.
11499 (Collect_Constituent): Replace Refined_State with Encapsulating_State.
11500 (Collect_Hidden_States): Removed.
11501 (Report_Unrefined_States): Change the profile of the procedure along
11502 with the comment on usage.
11503 (Report_Unused_Constituents): New routine.
11504 (Report_Unused_Hidden_States): Removed.
11505 (Report_Unused_States): New routine.
11506 * sem_prag.ads (Check_Missing_Part_Of): New routine.
11507 * sem_util.adb (Add_Contract_Item): Pragma Part_Of can now
11508 appear in the classification pragmas of a package instantiation
11510 (Find_Placement_In_State_Space): New routine.
11511 (Is_Child): Removed.
11512 (Is_Child_Or_Sibling): Remove formal
11513 parameter Private_Child. Remove the private child checks.
11514 (Requires_State_Refinement): Moved from sem_ch3.
11515 * sem_util.ads Add new type State_Space_Kind along with
11516 comment on its usage and values.
11517 (Add_Contract_Item): Update the comment on usage.
11518 (Find_Body_Discriminal): Alphabetize spec.
11519 (Find_Placement_In_State_Space): New routine.
11520 (Is_Child_Or_Sibling): Remove formal parameter Private_Child
11521 and update the comment on usage.
11522 (Requires_State_Refinement): Moved from sem_ch3.
11523 * sinfo.ads: Update the documentation of N_Contract.
11524 * snames.ads-tmpl The predefined name for Part_Of is now used
11525 to denote a pragma. Add Pragma_Id for Part_Of.
11527 2014-01-29 Emmanuel Briot <briot@adacore.com>
11529 * s-regexp.adb (Create_Secondary_Table): Automatically grow the state
11531 (Dump): New subprogram.
11533 2014-01-29 Tristan Gingold <gingold@adacore.com>
11535 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): Add
11536 Expand_Entry_Declaration to factorize code.
11538 2014-01-29 Ed Schonberg <schonberg@adacore.com>
11540 * checks.adb: minor clarification.
11541 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Limit
11542 search for primitive operations to the entities that immediately
11543 follow the type declaration.
11545 2014-01-29 Tristan Gingold <gingold@adacore.com>
11547 * exp_ch9.adb (Build_Protected_Entry): Do not call
11548 Complete_Entry_Body anymore.
11549 * rtsfind.ads (RE_Complete_Single_Entry_Body): Remove.
11550 * s-tposen.ads, s-tposen.adb (Complete_Single_Entry_Body): Remove.
11552 2014-01-29 Pierre-Marie Derodat <derodat@adacore.com>
11554 * s-os_lib.adb, s-os_lib.ads (Normalize_Pathname): Return an empty
11555 string when the Name input bigger than allowed. Adapt the function
11558 2014-01-29 Ed Schonberg <schonberg@adacore.com>
11560 * checks.adb (Install_Null_Excluding_Check): Do not emit warning
11561 if expression is within a case_expression of if_expression.
11563 2014-01-29 Robert Dewar <dewar@adacore.com>
11565 * exp_ch9.adb, inline.ads: Minor reformatting.
11567 2014-01-29 Tristan Gingold <gingold@adacore.com>
11569 * exp_ch9.adb (Is_Exception_Safe): Return true if no exceptions.
11571 2014-01-29 Yannick Moy <moy@adacore.com>
11573 * inline.ads (Pending_Body_Info): Add SPARK_Mode and
11574 SPARK_Mode_Pragma components to be able to analyze generic
11576 * sem_ch12.adb (Analyze_Package_Instantiation,
11577 Inline_Instance_Body, Need_Subprogram_Instance_Body,
11578 Load_Parent_Of_Generic): Pass in SPARK_Mode from instantiation
11579 for future analysis of the instance.
11580 (Instantiate_Package_Body,
11581 Instantiate_Subprogram_Body, Set_Instance_Inv): Set SPARK_Mode
11582 from instantiation to analyze the instance.
11584 2014-01-29 Robert Dewar <dewar@adacore.com>
11586 * sem_ch7.adb, sem_prag.adb, sem_ch4.adb, sem_ch6.adb: Minor code
11589 2014-01-29 Yannick Moy <moy@adacore.com>
11591 * gnat_rm.texi: Update description of SPARK_Mode pragma.
11593 2014-01-29 Tristan Gingold <gingold@adacore.com>
11595 * exp_ch9.adb (Expand_N_Protected_Body): Remove Num_Entries.
11597 2014-01-29 Thomas Quinot <quinot@adacore.com>
11599 * sem_ch4.adb (Find_Component_In_Instance): Update comment.
11601 2014-01-29 Ed Schonberg <schonberg@adacore.com>
11603 * exp_util.adb (Build_Task_Image_Prefix): Indicate that the
11604 resulting string is an internal entity. and thus requires no
11605 initialization. This is relevant when Initialize_ Scalars is
11606 enabled, because the resultant spurious initialization may lead to
11607 secondary stack anomalies that produce a mangled name for a task.
11609 2014-01-29 Yannick Moy <moy@adacore.com>
11611 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode
11612 not inherited from spec anymore. Check consistency
11613 rules after processing of declarations.
11614 * sem_ch7.adb (Analyze_Package_Body_Helper): SPARK_Mode not inherited
11615 from spec anymore. Check consistency rules after processing of
11617 (Analyze_Package_Declaration): Set SPARK_Mode only for non-generic
11619 * sem_prag.adb (Analyze_Pragma/Pragma_SPARK_Mode): Implement new
11622 2014-01-27 Robert Dewar <dewar@adacore.com>
11624 * sem_res.adb (Resolve_Comparison_Op): Add type name/location
11626 (Resolve_Range): Add type name/location to unordered msg.
11628 2014-01-27 Claire Dross <dross@adacore.com>
11630 * a-cofove.adb/s (Copy): Add precondition so that Copy (Source,
11631 Capacity) is only called with Capacity >= Length (Source) and
11632 Capacity in Capacity_Range.
11633 * a-cfdlli.adb/s, a-cfhase.adb/s, a-cfhama.adb/s, a-cforse.adb/s,
11634 a-cforma.adb/s (Copy): Add precondition so that Copy (Source, Capacity)
11635 is only called with Capacity >= Source.Capacity. Raise Capacity_Error
11636 in the code is this is not the case.
11638 2014-01-27 Thomas Quinot <quinot@adacore.com>
11640 * sem_ch4.adb (Analyze_Selected_Component): Fix handling of
11641 selected component in an instance where the component of the
11642 actual is not visibile at instantiation.
11644 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11646 * sem_ch6.adb: sem_ch6.adb (Set_Actual_Subtypes): If the type
11647 has a dynamic predicate, generate freeze node for Actual_Subtype
11648 at once, because the declaration of the corresponding predicate
11649 function will make reference to it.
11651 2014-01-27 Tristan Gingold <gingold@adacore.com>
11653 * exp_ch7.adb, exp_ch9.adb: Adjust comments.
11655 2014-01-27 Robert Dewar <dewar@adacore.com>
11657 * exp_ch4.adb (Expand_N_Op_Expon): Remove unsigned type test
11658 for 2**X optimization.
11660 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11662 * a-suenst.adb: strings.utf_encoding.strings (Decode): Check
11663 explicitly whether value is in range of Character, because the
11664 library is typically compiled with range checks disabled, and
11665 we cannot rely on the implicit check on the argument of 'Val.
11667 2014-01-27 Vincent Celier <celier@adacore.com>
11669 * a-ciorma.adb, a-cihama.adb (Assign): Copy the Source to the Target,
11670 not the Target to itself.
11672 2014-01-27 Robert Dewar <dewar@adacore.com>
11674 * vms_conv.ads, ali.adb, sem_ch6.ads, opt.ads, vms_cmds.ads: Minor
11675 changes to avoid incorrect use of unordered enum types.
11677 2014-01-27 Thomas Quinot <quinot@adacore.com>
11679 * sem_ch4.adb: Minor reformatting.
11681 2014-01-27 Robert Dewar <dewar@adacore.com>
11683 * scn.adb (Check_End_Of_Line): Removed.
11684 (Error_Long_Line): Removed.
11685 (Determine_License): Use versions of above routines from Scanner.
11686 * scng.adb (Check_End_Of_Line): Moved to spec.
11687 (Error_Long_Line): Removed, no longer used.
11688 * scng.ads (Check_End_Of_Line): Moved here from body.
11690 2014-01-27 Tristan Gingold <gingold@adacore.com>
11692 * exp_ch7.adb (Build_Cleanup_Statements): Call
11693 Build_Protected_Subprogram_Call_Cleanup to insert the cleanup
11694 for protected body.
11695 * exp_ch9.adb (Build_Protected_Subprogram_Body): Likewise.
11696 Remove Service_Name variable.
11697 (Build_Protected_SUbprogam_Call_Cleanup): New procedure that
11698 factorize code from the above subprograms.
11699 * exp_ch9.ads (Build_Protected_Subprogram_Call_Cleanup): New procedure.
11701 2014-01-27 Hristian Kirtchev <kirtchev@adacore.com>
11703 * einfo.adb (Has_Option): Reimplemented.
11704 * sem_prag.adb (Analyze_Refinement_Clause): Add global
11705 variables AR_Constit, AW_Constit, ER_Constit, EW_Constit,
11706 External_Constit_Seen and State. Add local variables Body_Ref,
11707 Body_Ref_Elmt and Extra_State. Reimplement part of the logic to
11708 avoid a cumbersome while pool. Verify the legality of an external
11709 state and relevant properties.
11710 (Check_External_Property): New routine.
11711 (Check_Matching_State): Remove parameter profile
11712 and update comment on usage.
11713 (Collect_Constituent): Store the
11714 relevant external property of a constituent.
11715 * sem_util.adb (Async_Readers_Enabled): Update the call to
11716 Has_Enabled_Property.
11717 (Async_Writers_Enabled): Update the call to Has_Enabled_Property.
11718 (Effective_Reads_Enabled): Update the call to Has_Enabled_Property.
11719 (Effective_Writes_Enabled): Update the call to Has_Enabled_Property.
11720 (Has_Enabled_Property): Rename formal parameter Extern to State_Id.
11721 Update comment on usage. Reimplement the logic to recognize the various
11722 formats of properties.
11724 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11726 * par-ch5.adb: Minor reformatting.
11728 2014-01-27 Tristan Gingold <gingold@adacore.com>
11730 * s-tposen.ads: Harmonize style and comments.
11732 2014-01-27 Vincent Celier <celier@adacore.com>
11734 * projects.texi: Document that shared library projects, by
11735 default, cannot import projects that are not shared library
11738 2014-01-27 Robert Dewar <dewar@adacore.com>
11740 * sem_ch8.adb (Find_Selected_Component): Use Replace instead
11743 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11745 * a-suenco.adb, a-suenst.adb (Decode): Raise encoding error if
11746 any other exception is raised.
11747 (Convert): If both Input_Scheme and Output_Scheme are UTF_8 it is
11748 still necessary to perform a conversion in order to remove overlong
11751 2014-01-27 Robert Dewar <dewar@adacore.com>
11753 * exp_smem.adb: Minor reformatting.
11755 2014-01-27 Thomas Quinot <quinot@adacore.com>
11757 * a-calfor.ads: Fix incorrect reference to operator "-" in comment.
11759 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11761 * sem_res.adb (Make_Call_Into_Operator): In ASIS mode, relocate
11762 nodes for operands to the original node for the call, to preserve
11763 Original_Node pointers within the resolved operands, given that
11764 they may have been rewritten as well. Previous approach copied
11765 the operands into a new tree and lost those pointers.
11767 2014-01-27 Claire Dross <dross@adacore.com>
11770 * a-cofove.adb, a-cofove.ads: Add Strict_Equal function to the API.
11772 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11774 * sem_util.adb (Check_Internal_Protected_Use): A call through
11775 an anonymous access parameter of the current protected function
11776 is not a potential modification of the current object.
11778 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11780 * a-cobove.adb (Reserve_Capacity): Procedure raises
11781 Capacity_Error, not Constraint_Error, when request cannot be
11784 2014-01-27 Vincent Celier <celier@adacore.com>
11786 * a-coorma.adb, a-cohama.adb (Assign): Copy the Source to the Target,
11787 not the Target to itself.
11789 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11791 * exp_ch4.adb (Expand_Concatenate): If the target of the
11792 concatenation is a library-level entity, always use the off-line
11793 version of concatenation, regardless of optimization level. This
11794 is space-efficient, and prevents linking problems when some
11795 units are compiled with different optimization levels.
11797 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11799 * sem_ch5.adb: Code clean up.
11801 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11803 * par-ch5.adb (P_Iterator_Specification): Improve error recovery
11804 when an array or container iterator includes a subtype indication,
11805 which is only legal in an element iterator.
11807 2014-01-27 Thomas Quinot <quinot@adacore.com>
11809 * exp_ch7.adb: Minor reformatting.
11811 2014-01-27 Robert Dewar <dewar@adacore.com>
11813 * opt.adb (SPARK_Mode): Default for library units is None rather
11815 * opt.ads: Remove AUTO from SPARK_Mode_Type SPARK_Mode_Type is
11817 * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Remove AUTO
11819 * snames.ads-tmpl (Name_Auto): Removed, no longer used.
11821 2014-01-27 Robert Dewar <dewar@adacore.com>
11823 * par-ch5.adb (P_Sequence_Of_Statements): Make entry in
11824 Suspicious_Labels table if we have identifier; followed by loop
11826 * par-endh.adb (Evaluate_End_Entry): Search Suspicious_Labels table.
11827 * par.adb (Suspicious_Labels): New table.
11829 2014-01-27 Robert Dewar <dewar@adacore.com>
11831 * exp_aggr.adb (Check_Bounds): Reason is range check, not
11834 2014-01-27 Yannick Moy <moy@adacore.com>
11836 * get_spark_xrefs.adb (Get_SPARK_Xrefs): Accept new type 'c' for
11838 * lib-xref-spark_specific.adb (Is_Global_Constant): Remove useless
11840 (Add_SPARK_Xrefs): Include references to constants.
11841 * spark_xrefs.ads Document new character 'c' for references to
11844 2014-01-27 Thomas Quinot <quinot@adacore.com>
11846 * exp_smem.adb (Add_Write_After): For a function call, insert write as
11847 an after action in a transient scope.
11849 2014-01-27 Thomas Quinot <quinot@adacore.com>
11851 * exp_smem.adb (Expand_Shared_Passive_Variable): For a reference
11852 to a shared variable as an OUT formal in a call to an init proc,
11853 the 'Read call must be emitted after, not before, the call.
11855 2014-01-27 Robert Dewar <dewar@adacore.com>
11857 * gnat_rm.texi: Remove mention of AUTO mode for SPARK_Mode pragma.
11859 2014-01-27 Robert Dewar <dewar@adacore.com>
11861 * a-wichha.adb (Character_Set_Version): Change to output proper
11864 2014-01-27 Hristian Kirtchev <kirtchev@adacore.com>
11866 * einfo.adb (Is_Input_Only_State): Removed.
11867 (Is_Non_Volatile_State): Removed.
11868 (Is_Output_State): Removed.
11869 * einfo.ads (Is_Input_Only_State): Remove attribute and
11870 subprogram. Update related entity.
11871 (Is_Non_Volatile_State):
11872 Remove attribute and subprogram. Update related entity.
11873 (Is_Output_State): Removed attribute and subprogram. Update
11875 * exp_ch6.adb (Expand_Subprogram_Contract): Update comment on
11877 * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
11878 an object, not just variables.
11879 (Analyze_Object_Contract): New routine.
11880 (Analyze_Variable_Contract): Removed.
11881 (Process_Discriminants): Detect an illegal use of volatile
11882 discriminant in SPARK mode.
11883 * sem_ch5.adb (Analyze_Iterator_Specification):
11884 Detect an illegal use of volatile loop variable.
11885 (Analyze_Loop_Parameter_Specification): Detect an illegal use
11886 of volatile loop variable.
11887 * sem_ch6.adb (Process_Formals): Update the volatile object
11888 detection. Detect an illegal formal of mode IN OUT or OUT in
11889 SPARK mode. Enhance the error messages with references.
11890 * sem_ch12.adb (Instantiate_Object): Update the volatile object
11891 detection. Enhance the error messages with references.
11892 * sem_prag.adb (Analyze_Abstract_State): Enhance the error
11893 messages with references.
11894 (Analyze_Contract_Case): Enhance the error messages with references.
11895 (Analyze_External_Property): Call Check_Duplicate_Property to process
11896 an external property.
11897 (Analyze_External_Property_In_Decl_Part): New routine.
11898 (Analyze_External_State_In_Decl_Part): Removed.
11899 (Analyze_Global_Item): Detect an illegal
11900 use of a volatile constant. Detect an illegal use
11901 of a variable with enabled Effective_Reads. Enhance
11902 the error messages with references. Remove obsolete
11903 checks concerning Input_Only and Output_Only states.
11904 (Analyze_Initialization_Item): Enhance the error messages
11906 (Analyze_Initializes_In_Decl_Part): Do not
11907 collect the states and variables when the initialization list
11909 (Analyze_Input_Item): Enhance the error messages with references.
11910 (Analyze_Input_Output): Enhance the error messages with references.
11911 (Analyze_Pragma): Enhance the error messages with references.
11912 (Analyze_Refinement_Clause): Code reformatting.
11913 (Analyze_Refined_Depends_In_Decl_Part):
11914 Rename global variable Global to Reg_Global and update all
11915 occurrences. Add local variables D7 and D8. Update the error
11916 messages with references. Update the call to Collect_Global_Items.
11917 (Analyze_Refined_Global_In_Decl_Part): Add local variables
11918 Has_Proof_In_State, Proof_In_Constits and Proof_In_Items. Update
11919 the call to Collect_Global_Items. Account for a Proof_In state
11920 in null / useless refinement checks. Verify the coverage of
11922 (Check_Dependency_Clause): Remove local variable
11923 Out_Constits. Remove the retrieval and removal of constituents
11924 for an Output_Only state. Remove the reporting of unused
11925 Output_Only state constituents.
11926 (Check_Duplicate_Mode): Enhance
11927 the error message with a reference.
11928 (Check_Duplicate_Property): New routine.
11929 (Check_Duplicate_Option): Enhance the error message with a reference.
11930 (Check_External_Properties): Enhance the error message with a reference.
11931 (Check_Function_Return): Enhance the error message with a reference.
11932 (Check_In_Out_States): Update
11933 comment on usage. Add a specialized error message for Proof_In
11934 constituents. Enhance the error message with a reference.
11935 (Check_Input_States): Update comment on usage. Account for
11936 possible Proof_In constituents. Enhance the error message
11938 (Check_Matching_Constituent): Enhance the error message with a
11940 (Check_Matching_State): Enchance the error message with a reference.
11941 (Check_Mode): Add local variable From_Global. Update the call to
11942 Find_Mode. Emit more precise error messages concerning extra items
11943 (Check_Mode_Restriction_In_Enclosing_Context): Consider
11944 pragma Refined_Global. Enhance the error message with a
11946 (Check_Mode_Restriction_In_Function): Enhance the error message with
11948 (Check_Output_States): Update comment on usage. Add local variable
11949 Posted. Account for possible Proof_In constituents. Produce a detailed
11950 list of missing constituents.
11951 (Check_Proof_In_States): New routine.
11952 (Check_Refined_Global_Item): Handle Proof_In
11953 constituents. Enchance the error message with a reference.
11954 (Collect_Global_Items): Add formal parameters Proof_In_Items
11955 and Has_Proof_In_State. Update the comment on usage. Account
11956 for Proof_In items.
11957 (Create_Or_Modify_Clause): Enchance
11958 the error message with a reference.
11960 formal parameter From_Global. Update the comment on usage.
11961 Detect when the mode is governed by pragma [Refined_]Global.
11962 (Output_Constituents): Removed.
11963 (Report_Extra_Constituents):
11964 Report extra Proof_In constituents.
11965 (Report_Unused_Constituents): Removed.
11966 (Usage_Error): Code reformatting. Enhance the error
11967 messages with reference.
11968 * sem_prag.ads (Analyze_External_Property_In_Decl_Part): New routine.
11969 (Analyze_External_State_In_Decl_Part): Removed.
11970 * sem_res.adb (Resolve_Actuals): Update the volatile object
11971 detection. Enhance the error message with a reference.
11972 (Resolve_Entity_Name): Update the volatile object
11973 detection. Enhance the error message with a reference.
11974 * sem_util.adb (Is_Refined_State): Add a guard to avoid a crash.
11975 (Is_SPARK_Volatile_Object): New routine.
11976 (Has_Volatile_Component): New routine.
11977 * sem_util.ads (Is_Delegate): Alphabetized.
11978 (Is_SPARK_Volatile_Object): New routine.
11979 (Has_Volatile_Component): New routine.
11980 * snames.ads-tmpl: Remove names Name_Input_Only and Name_Output_Only.
11982 2014-01-27 Ed Schonberg <schonberg@adacore.com>
11984 * sem_attr.adb: Resolve fully prefix of 'Update.
11986 2014-01-27 Ben Brosgol <brosgol@adacore.com>
11988 * gnat_rm.texi: Minor clarifications.
11990 2014-01-27 Robert Dewar <dewar@adacore.com>
11992 * sem_elab.adb (Check_Internal_Call_Continue): Avoid complaining
11993 about call that is generated as part of an Initial_Condition
11995 * sem_prag.adb: Minor spelling correction.
11997 2014-01-27 Robert Dewar <dewar@adacore.com>
11999 * sem_prag.adb (Set_Convention_From_Pragma): Check that
12000 convention Ghost can only apply to functions.
12001 * einfo.ads, einfo.adb (Is_Ghost_Subprogram): Add clarifying comment.
12003 2014-01-27 Robert Dewar <dewar@adacore.com>
12005 * gnat_ugn.texi: Add Short_Enums to documentation of
12008 2014-01-27 Robert Dewar <dewar@adacore.com>
12010 * sem_prag.adb (Analyze_Input_Item): Correct check for input
12011 item in same package.
12012 * sem_util.ads, sem_util.adb (Within_Scope): New function.
12014 2014-01-26 Arnaud Charlet <charlet@adacore.com>
12016 * a-intnam-lynxos.ads, mlib-tgt-specific-lynxos.adb,
12017 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
12018 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-tpopsp-lynxos.adb,
12019 system-lynxos-ppc.ads, system-lynxos-x86.ads: Removed, no longer
12022 2014-01-25 Eric Botcazou <ebotcazou@adacore.com>
12024 * gcc-interface/Makefile.in: Fix oversight.
12026 2014-01-25 Eric Botcazou <ebotcazou@adacore.com>
12028 * gcc-interface/utils.c (convert_to_fat_pointer): Un-obfuscate the
12029 conversion from a thin pointer with a shifted value.
12030 * gcc-interface/utils2.c (gnat_build_constructor): Propagate the
12031 read-only flag from the values onto the result.
12032 (gnat_invariant_expr): Accept read-only CONSTRUCTORs.
12034 2014-01-25 Tristan Gingold <gingold@adacore.com>
12036 * gcc-interface/decl.c (gnat_to_gnu_entity): Always build a variable
12037 for E_Variable with a pragma Linker_Section.
12039 2014-01-25 Robert Dewar <dewar@adacore.com>
12041 * gcc-interface/decl.c (gnat_to_gnu_param): Make sure an Out parameter
12042 with Default_Value aspect is passed in by copy.
12044 2014-01-24 Eric Botcazou <ebotcazou@adacore.com>
12046 * set_targ.adb: Set Short_Enums.
12047 * gcc-interface/lang.opt (fshort-enums): New option.
12048 * gcc-interface/misc.c (gnat_handle_option): Handle it.
12049 (gnat_post_options): Do not modify the global settings.
12051 2014-01-24 Robert Dewar <dewar@adacore.com>
12053 * g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
12055 (Random_Decimal_Fixed): New generic function.
12056 * s-rannum.ads: Minor comment clarifications.
12058 2014-01-24 Robert Dewar <dewar@adacore.com>
12060 * back_end.adb: Remove Short_Enums handling (handled in
12061 Ttypes/Get_Targ now) Minor added comments.
12062 * freeze.adb: Change name Short_Enums_On_Target to
12063 Target_Short_Enums.
12064 * get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
12065 * opt.ads: Minor comment updates.
12066 * sem_ch13.adb: Change name Short_Enums_On_Target to
12067 Target_Short_Enums.
12068 * set_targ.adb: Set Short_Enums from gcc back end.
12069 * set_targ.ads (Short_Enums): New variable.
12070 * targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
12071 Ttypes/Get_Targ now).
12072 * ttypes.ads (Target_Short_Enums): New constant boolean switch
12074 2014-01-24 Pascal Obry <obry@adacore.com>
12076 * g-sercom-mingw.adb: Fix serial port name for port number > 10.
12078 2014-01-24 Gary Dismukes <dismukes@adacore.com>
12080 * exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
12081 comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
12084 2014-01-24 Robert Dewar <dewar@adacore.com>
12086 * sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
12088 2014-01-24 Vincent Celier <celier@adacore.com>
12090 * prj.adb (Add_Aggregated_Project): Do not add a project in
12091 the list if it is already there.
12093 2014-01-24 Yannick Moy <moy@adacore.com>
12095 * lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
12096 Correct the search for a subrogram declaration to which a pragma is
12099 2014-01-24 Bob Duff <duff@adacore.com>
12101 * gnat_ugn.texi: Document --decimal-grouping and
12102 --based-grouping switches in gnatpp.
12104 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12106 * sinfo.ads: Documentation update.
12108 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12110 * sem_ch3.adb (Constant_Redeclaration): New declaration is
12111 illegal if previous one has an initial expression that is an
12112 aggregate expanded into assignments.
12114 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12116 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
12117 code reorganization to remove spurious warning on a loop with
12118 an array element iterator that has a null range.
12120 2014-01-24 Vincent Celier <celier@adacore.com>
12122 * make.adb (Binding_Phase): When setting the Ada paths, use
12123 the library ALI dir, not the object dir in libraries.
12125 2014-01-24 Yannick Moy <moy@adacore.com>
12127 * sinfo.ads: Add documentation of check flag fields.
12129 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12131 * sem_res.adb (Resolve_Actuals): If an actual is a view
12132 conversion of a discriminated object, and the formal type is
12133 discriminated and constrained, apply a discriminant check to
12136 2014-01-24 Robert Dewar <dewar@adacore.com>
12138 * prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
12140 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12142 * sem_ch3.adb (Analyze_Declarations): At the end of an
12143 appropriate declarative part, call Freeze_All from the first
12144 declaration in the scope, not from the first unfrozen one. This
12145 is necessary to apply visibility checks to entities with delayed
12146 aspects. Otherwise, in the presence of instantiations and cleanups
12147 that they may generate, the delayed aspects may be analyzed too
12148 late and produce spurious visibility errors.
12149 * sem_attr.adb: Place etype on range.
12150 * sem_ch6.adb: Documentation expression functions.
12152 2014-01-24 Robert Dewar <dewar@adacore.com>
12154 * exp_ch7.adb: Minor change of Indices to Indexes (preferred
12155 terminology in compiler).
12157 2014-01-24 Robert Dewar <dewar@adacore.com>
12159 * scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
12160 categories, now that Ada 95 supports raise expressions.
12162 2014-01-24 Robert Dewar <dewar@adacore.com>
12164 * freeze.adb (Freeze_Enumeration_Type): Use new target parameter
12165 Short_Enums_On_Target.
12166 * sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
12168 * targparm.ads, targparm.adb: Add new target parameter Short_Enums.
12170 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12172 * sem_ch5.adb (Analyze_Iterator_Specification): If subtype
12173 indication is given explicity, check that it matches the array
12174 component type or the container element type of the domain
12177 2014-01-24 Tristan Gingold <gingold@adacore.com>
12179 * back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
12180 * gcc-interface/misc.c (flag_short_enums): Declare.
12181 (gnat_post_options): Set it.
12183 2014-01-24 Vincent Celier <celier@adacore.com>
12185 * prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
12186 to cache the result when Including_Libraries is False.
12187 * prj-env.ads (Ada_Objects_Path): Update documentation
12188 * prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
12189 (Get_Object_Directory): Return the Library_Ali_Dir only when
12190 when Including_Libraries is True.
12191 * prj.ads (Get_Object_Directory): Fix and complete documentation
12192 (Project_Data): New component Ada_Objects_Path_No_Libs
12194 2014-01-24 Robert Dewar <dewar@adacore.com>
12196 * checks.adb (Expr_Known_Valid): Result of fpt operator never
12199 2014-01-24 Eric Botcazou <ebotcazou@adacore.com>
12201 * back_end.adb: Minor fix in comment.
12203 2014-01-24 Javier Miranda <miranda@adacore.com>
12205 * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
12206 required to report the error in case of task types.
12208 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12210 * sem_attr.adb: Additional index checking.
12212 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12214 * sem_attr.adb (Analyze_Attribute, case 'Update): Analyze
12215 expressions in each component association, and for records note
12216 the entity in each association choice, for subsequent resolution.
12217 (Resolve_Attribute, case 'Update): Complete resolution of
12218 expressions in each component association.
12220 2014-01-24 Robert Dewar <dewar@adacore.com>
12222 * sem.adb (Sem): Avoid premature reference to Current_Sem_Unit
12223 (this was causing Is_Main_Unit_Or_Main_Unit_Spec to be set wrong,
12224 leading to wrong handling of SPARK_Mode for library units).
12226 2014-01-24 Robert Dewar <dewar@adacore.com>
12228 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set SPARK_Mode
12229 on generic instances (do not consider them to be internally
12232 2014-01-24 Doug Rupp <rupp@adacore.com>
12234 * s-osinte-android.ads (pthread_sigmask): Import sigprocmask
12235 vice pthread_sigmask.
12237 2014-01-24 Vincent Celier <celier@adacore.com>
12239 * prj.adb (Debug_Output (Str, Str2)): Output if verbosity is
12242 2014-01-24 Vincent Celier <celier@adacore.com>
12244 * prj-ext.adb (Add): Do not output anything when Silent is True,
12245 whatever the verbosity. When Source is From_External_Attribute,
12246 set the corresponding environment variable if it is not already set.
12247 * prj-ext.ads (Add): New Boolean parameter Silent, defaulted
12249 * prj-proc.adb (Process_Expression_For_Associative_Array):
12250 For attribute External, call Prj.Ext.Add with Silent set to
12251 True for the child environment, to avoid useless output in non
12254 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12256 * sem_res.adb (Set_Slice_Subtype): Handle properly a discrete
12257 range given by a subtype indication, and force evaluation of
12258 the bounds, as for a simple range.
12259 * exp_util.adb (Evaluate_Slice_Bounds): Utility to force evaluation
12260 of bounds of slice for various kinds of discrete ranges.
12261 (Evaluate_Name, Evaluate_Subtype_From_Expr): use
12262 Evaluate_Slice_Bounds.
12264 2014-01-24 Bob Duff <duff@adacore.com>
12266 * s-taskin.ads (Activator): Make this Atomic, because
12267 Activation_Is_Complete reads it, and that can be called
12268 from any task. Previously, this component was only
12269 modified by the activator before activation, and by
12270 Self after activation.
12271 * a-taside.ads, a-taside.adb (Environment_Task,
12272 Activation_Is_Complete): Implement these missing functions.
12274 2014-01-24 Doug Rupp <rupp@adacore.com>
12276 * init.c: Add a handler section for Android.
12278 2014-01-24 Arnaud Charlet <charlet@adacore.com>
12280 * i-cexten.ads (Unsigned_33..64, Unsigned_33..64): New types.
12282 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12284 * sem_ch4.adb (Operator_Check): If one operand is a
12285 Raise_Expression, set its type to that of the other operand.
12286 * sem_res.adb (Resolve_Raise_Expression): new procedure.
12287 (Resolve_Actuals): For an actual that is a Raise_Expression,
12288 set the type to that of the formal.
12289 * sem_type.adb (Find_Unique_Type): If one of the operands is a
12290 Raise_Expression, return type of the other operand.
12292 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12294 * sem_aggr.adb (Resolve_Record_Aggregate): If a scalar
12295 component of the record has a type with a default aspect, and
12296 the corresponding aggregate component is initiaized with a box,
12297 use the default value in the rewritten aggregate.
12299 2014-01-24 Tristan Gingold <gingold@adacore.com>
12301 * s-interr.ads, s-interr.adb, s-interr-hwint.adb, s-interr-vms.adb,
12302 s-interr-sigaction.adb,
12303 s-interr-dummy.adb (Install_Restricted_Handlers): Add Prio parameter.
12304 * exp_ch9.adb (Make_Initialize_Protection): Add Prio parameter
12305 to the call to Install_Restricted_Handlers.
12307 2014-01-24 Emmanuel Briot <briot@adacore.com>
12309 * prj-nmsc.adb (Check_File): Add protection when the source is
12310 not fully initialized.
12312 2014-01-24 Ed Schonberg <schonberg@adacore.com>
12314 * sem_util.adb (Is_Post_State): In a postcondition, a selected
12315 component that denotes an implicit dereference is a reference
12316 to the post state of the subprogram.
12318 2014-01-24 Robert Dewar <dewar@adacore.com>
12320 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): SPARK_Mode OFF
12321 for generated subprograms.
12322 (Analyze_Subprogram_Specification): Ditto.
12324 2014-01-24 Vincent Celier <celier@adacore.com>
12326 * prj-dect.adb (Check_Attribute_Allowed): Detect more forbidden
12327 attributes in package Builder of aggregate and aggregate library
12329 * prj-nmsc.adb (Process_Naming_Scheme.Check.Check_Aggregate):
12330 Remove procedure (Process_Naming_Scheme.Check.Check_Aggregated):
12331 Remove parameters. Change error message from "... externally
12332 build library ..." to "... externally built project ...".
12333 (Process_Naming_Scheme.Check): Do not do any check in aggregate
12334 project, as attribute Library_Dir and Library_Name have already
12335 been detected as forbidden.
12337 2014-01-24 Vincent Celier <celier@adacore.com>
12339 * prj-env.adb (Find_Project): If cached project path is not in
12340 project directory, look in current directory first and use cached
12341 project path only if project is not found in project directory.
12343 2014-01-24 Robert Dewar <dewar@adacore.com>
12345 * sem_util.adb, lib-xref.adb: Correct false positive warnings.
12347 2014-01-24 Vincent Celier <celier@adacore.com>
12349 * projects.texi: Document that aggregate projects are only
12350 supported by gprbuild, but not by gnatmake. Document that the
12351 only attribute Switches in package Binder of aggregate projects
12352 will be ignored if its index is not others. Document that
12353 attribute Global_Config_File is allowed in package Binder of
12354 aggregate projects.
12356 2014-01-24 Robert Dewar <dewar@adacore.com>
12358 * sem_prag.adb: Minor code reorganization.
12359 * sem_util.adb: Minor fix of potential latent bug in Is_LHS.
12361 2014-01-24 Pascal Obry <obry@adacore.com>
12363 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Excluded_Patterns
12364 attribute definition.
12366 2014-01-24 Vincent Celier <celier@adacore.com>
12368 * makeutl.adb (Queue.Insert_No_Roots): In gprbuild, do not put
12369 in the Queue the same source (same path, same multi-source index)
12370 from the same project file, to avoid compiling several times
12373 2014-01-24 Eric Botcazou <ebotcazou@adacore.com>
12375 * einfo.ads (First_Rep_Item): Remove obsolete stuff.
12376 (Has_Gigi_Rep_Item): Likewise.
12377 * sem_prag.adb (Analyze_Pragma) <Pragma_Linker_Section>: Do not set
12378 Has_Gigi_Rep_Item for objects.
12379 * gcc-interface/decl.c (prepend_one_attribute_to): Rename into...
12380 (prepend_one_attribute): ...this.
12381 (prepend_one_attribute_pragma): New function extracted from...
12382 (prepend_attributes): ...here. Swap the parameters for consistency.
12383 (gnat_to_gnu_entity): Adjust calls to prepend_one_attribute_to and to
12384 prepend_attributes.
12385 <object>: Deal with a pragma Linker_Section on a constant
12386 or variable. <E_Function>: Deal with a pragma Linker_Section
12388 (get_minimal_subprog_decl): Adjust calls to prepend_one_attribute_to.
12390 2014-01-24 Vincent Celier <celier@adacore.com>
12392 * opt.ads: Minor comment update.
12394 2014-01-24 Robert Dewar <dewar@adacore.com>
12396 * sem_prag.adb (Analyze_Input_Output): Add missing error check
12398 * sem_util.adb (Is_Refined_State): Add defense against junk
12401 2014-01-24 Pascal Obry <obry@adacore.com>
12403 * projects.texi: Removes Build_Slaves attribute documentation.
12405 2014-01-23 Robert Dewar <dewar@adacore.com>
12407 * opt.adb (Register_Opt_Config_Switches): Save SPARK_Mode_Pragma
12410 2014-01-23 Ed Schonberg <schonberg@adacore.com>
12412 * sem_util.adb (Is_Potentially_Unevaluated): Predicate only
12413 applies to expressions that come from source.
12414 * sem_attr.adb (Analyze_Attribute, case 'Old): Improve error
12416 (Analyze_Attribute, case 'Loop_Entry): Apply SPARK 2014 legality
12417 rule regarding potentially unevaluated expressions, to prefix
12420 2014-01-23 Ed Schonberg <schonberg@adacore.com>
12422 * exp_util.adb (Make_Invqriant_Call): If type of expression is
12423 a private extension, get invariant from base type.
12425 2014-01-23 Robert Dewar <dewar@adacore.com>
12427 * sem_util.adb, sem_attr.adb: Minor reformatting.
12429 2014-01-23 Robert Dewar <dewar@adacore.com>
12431 * opt.adb (Save_Opt_Config_Switches): Save SPARK_Mode_Pragma
12432 (Restore_Opt_Config_Switches): Restore SPARK_Mode_Pragma.
12433 * sem.adb (Semantics): Remove save/restore of
12434 SPARK_Mode[_Pragma]. Not needed since already done in
12435 Save/Restore_Opt_Config_Switches.
12437 2014-01-23 Robert Dewar <dewar@adacore.com>
12439 * gnat_rm.texi, einfo.adb, einfo.ads, sem_prag.adb, gnat_ugn.texi,
12440 freeze.adb, repinfo.adb, aspects.adb, aspects.ads, sem_ch13.adb:
12441 Linker_Section enhancements.
12443 2014-01-23 Tristan Gingold <gingold@adacore.com>
12445 * gnat_rm.texi: Minor editing.
12447 2014-01-23 Robert Dewar <dewar@adacore.com>
12449 * opt.adb (Set_Opt_Config_Switches): Reset SPARK mode for
12450 with'ed internal units.
12451 * sem.adb (Semantics): Save and restore SPARK_Mode[_Pragma].
12453 2014-01-23 Javier Miranda <miranda@adacore.com>
12455 * lib-xref.adb (Generate_Reference): As part of processing the
12456 "end-of-spec" reference generate an extra reference to the first
12457 private entity of the package.
12458 * xr_tabls.adb (Add_Reference): No action needed for the extra
12459 'E' reference associated; similar to the processing of the
12462 2014-01-23 Bob Duff <duff@adacore.com>
12464 * gnat_ugn.texi: Change "--&pp off" to "--!pp off".
12466 2014-01-23 Ed Schonberg <schonberg@adacore.com>
12468 * sem_util.ads, sem_util.adb (Is_Potentially_Unevaluated): new
12469 predicate to implement rule given in 6.1.1 (20/3).
12470 * sem_attr.adb (Analyze_Attribute, case 'Old): Reject prefix of
12471 'Old in a postcondition, if it is potentially unevaluated and
12472 it is not an entity name.
12474 2014-01-23 Bob Duff <duff@adacore.com>
12476 * gnat_ugn.texi: Document the new "--&pp off" feature of gnatpp.
12478 2014-01-23 Robert Dewar <dewar@adacore.com>
12480 * gnatlink.adb (Gnatlink): Fix problem of generating bad name
12483 2014-01-23 Bob Duff <duff@adacore.com>
12485 * g-dynhta.ads: Minor comment fix.
12487 2014-01-23 Yannick Moy <moy@adacore.com>
12489 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Inherit SPARK_Mode
12490 from spec on body only when not already inherited on spec. Set
12491 SPARK_Mode from context on body without previous spec. *
12492 * sem_prag.adb (Analyze_Pragma): Check placement of pragma on
12493 library-level entities. Correct retrieval of entity from
12494 declaration, for cases where the declaration is not a unit.
12495 * sem_ch12.adb (Instantiate_Object): Avoid
12496 calling Is_Volatile_Object on an empty node.
12498 2014-01-23 Robert Dewar <dewar@adacore.com>
12500 * gnatlink.adb (Gnatlink): Check for suspicious executable file
12503 2014-01-23 Robert Dewar <dewar@adacore.com>
12505 * a-ngelfu.ads: Remove bad uses of AND which should be AND THEN.
12506 * sem_res.adb (Check_No_Direct_Boolean_Operators): Don't give
12507 style errors in instances.
12508 * g-dynhta.ads (Static_HTable): Comment updates.
12510 2014-01-23 Vincent Celier <celier@adacore.com>
12512 * prj-conf.adb (Get_Or_Create_Configuration_File): Do not attempt
12513 to find a configuration project file when Config_File_Name is
12514 No_Configuration_File.
12515 * prj-conf.ads (No_Configuration_File): New constant String.
12516 * prj-pars.adb (Parse): Call Get_Or_Create_Configuration_File
12517 with Config_File_Name set to No_Configuration_File, so that
12518 no existing configuration project file will be used, and the
12519 configuration project will be only created in memory when
12520 Add_Default_GNAT_Naming_Scheme is called.
12521 * projects.texi: Minor reformatting.
12523 2014-01-23 Vincent Celier <celier@adacore.com>
12525 * prj-conf.adb (Get_Or_Create_Configuration_File): Never parse
12526 a config project file if On_Load_Config is not null.
12527 * prj-pars.adb: Minor comment changes.
12529 2014-01-23 Ed Schonberg <schonberg@adacore.com>
12531 * lib-xref.adb (Output_References): Output progenitors of
12532 synchronized tagged types, for source navigation.
12534 2014-01-23 Robert Dewar <dewar@adacore.com>
12536 * exp_util.adb, sinfo.adb, sinfo.ads, sem.adb, sem_res.adb,
12537 expander.adb, exp_ch11.adb, exp_ch11.ads, sem_ch11.adb, sem_ch11.ads,
12538 sprint.adb, sprint.ads: Remove unused node N_Subprogram_Info.
12540 2014-01-23 Emmanuel Briot <briot@adacore.com>
12542 * prj-conf.adb (Get_Or_Create_Configuration_File): call
12543 On_Load_Config later.
12545 2014-01-23 Hristian Kirtchev <kirtchev@adacore.com>
12547 * sem_ch3.adb (Analyze_Declarations): Do not
12548 generate the spec of the late primitive in ASIS mode. Add two
12549 comments to explain the special cases when the expansion is
12552 2014-01-23 Robert Dewar <dewar@adacore.com>
12554 * sem_util.adb (Note_Possible_Modification): Fix error of
12555 misbehaving for implicit dereference cases in -gnatc mode.
12557 2014-01-23 Emmanuel Briot <briot@adacore.com>
12559 * prj-pars.adb: Minor reformatting.
12561 2014-01-22 Ed Schonberg <schonberg@adacore.com>
12563 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): A subprogram
12564 body generated for an expression function within a protected body
12565 needs a set of renaming declarations if the expression function
12568 2014-01-22 Ed Schonberg <schonberg@adacore.com>
12570 * lib-xref.adb (Get_Type_Reference): In semantics-only mode,
12571 list interface progenitor of a tagged concurrent type, for better
12574 2014-01-22 Robert Dewar <dewar@adacore.com>
12576 * lib.adb (In_Extended_Main_Code_Unit): Return False for
12578 (In_Extended_Main_Source_Unit): Return False for Standard_Location.
12579 * lib.ads (In_Extended_Main_Code_Unit): Add documentation on
12580 treatment of Slocs No_Location and Standard_Location.
12581 * restrict.adb (Check_Restriction_No_Dependence): Explicitly
12582 check for entity with Standard_Location Sloc, rather than relying
12583 on Lib routines to do that.
12584 * sem_res.adb (Resolve_Call): Implement SPARK_05 restriction
12585 that a call cannot occur before a later occuring body within
12588 2014-01-22 Thomas Quinot <quinot@adacore.com>
12590 * rtsfind.adb: Update comment.
12592 2014-01-22 Hristian Kirtchev <kirtchev@adacore.com>
12594 * sem_aux.ads, sem_aux.adb (Is_Body): New routine.
12595 * sem_ch3.adb (Analyze_Declarations): Add local variable
12596 Body_Seen. Generate the spec of a late controlled
12597 primitive body that is about to freeze its related type.
12598 (Handle_Late_Controlled_Primitive): New routine.
12600 2014-01-22 Robert Dewar <dewar@adacore.com>
12602 * a-stream.adb: Minor reformatting.
12604 2014-01-22 Ed Schonberg <schonberg@adacore.com>
12606 * sem_ch8.adb (From_Actual_Package): Introduce a recursive
12607 sub-procedure Declared_In_Actual to handle properly the visibility
12608 of actuals in actual packages, that are themselves actuals to a
12609 actual package of the current instance. This mimics properly the
12610 visibility of formals of formal packages declared with a box,
12611 within the corresponding generic unit.
12613 2014-01-22 Robert Dewar <dewar@adacore.com>
12615 * checks.adb: Do not assume that a volatile variable is valid.
12617 2014-01-22 Thomas Quinot <quinot@adacore.com>
12619 * g-catiio.ads (Image, Value): Clarify that these functions
12620 operate in the local time zone. Minor documentation update.
12622 2014-01-22 Thomas Quinot <quinot@adacore.com>
12624 * csets.adb, csets.ads, opt.ads: Minor documentation fixes.
12626 2014-01-22 Robert Dewar <dewar@adacore.com>
12628 * sem_aux.adb, sem_aux.ads, sem_ch3.adb (Has_Unconstrained_Elements):
12629 Moved to sem_aux.adb.
12631 2014-01-22 Robert Dewar <dewar@adacore.com>
12633 * vms_data.ads: Minor reformatting.
12635 2014-01-22 Robert Dewar <dewar@adacore.com>
12637 * debug.adb: Document messages affected by -gnatd.E including
12638 the new ones that relate to late definition of equality.
12639 * sem_ch6.adb (Check_Untagged_Equality): In Ada 2012 mode, if
12640 debug flag -gnatd.E is set, then generate warnings rather than
12642 (Check_Untagged_Equality): In earlier versions of Ada,
12643 generate warnings if Warn_On_Ada_2012_Incompatibility flag is set.
12645 2014-01-22 Robert Dewar <dewar@adacore.com>
12647 * sem_prag.adb (Usage_Error): Output additional messages for
12648 unconstrained OUT parameters lacking an input dependency.
12650 2014-01-22 Robert Dewar <dewar@adacore.com>
12652 * sem_ch4.adb: Minor reformatting.
12654 2014-01-22 Robert Dewar <dewar@adacore.com>
12656 * restrict.ads: Minor reformatting.
12657 * sem_res.adb (Resolve_Call): Check for SPARK_05 restriction that
12658 forbids a call from within a subprogram to the same subprogram.
12660 2014-01-22 Thomas Quinot <quinot@adacore.com>
12662 * a-stream.ads (Read_SEA, Write_SEA): New subprograms, optimized
12663 stream attributes for Stream_Element_Array.
12664 * a-stream.adb (Read_SEA, Write_SEA): Bodies for the above.
12665 * rtsfind.adb (Check_CRT): Do not reject a reference to an entity
12666 defined in the current scope.
12668 2014-01-22 Robert Dewar <dewar@adacore.com>
12670 * debug.adb, exp_ch4.adb, erroutc.adb: Minor reformatting.
12672 2014-01-22 Thomas Quinot <quinot@adacore.com>
12674 * sem_ch7.adb, sem_ch8.adb, exp_ch3.adb: Minor reformatting.
12676 2014-01-22 Thomas Quinot <quinot@adacore.com>
12678 * sem_ch3.adb (Analyze_Object_Declaration): For a constant
12679 declaration initialized with a function call, whose type
12680 has variable size, need to remove side effects so that the
12681 initialization expression becomes a dereference of a temporary
12682 reference to the function result.
12684 2014-01-22 Yannick Moy <moy@adacore.com>
12686 * errout.adb (Initialize): Remove trick to add dummy entry
12688 * erroutc.adb (Set_Warnings_Mode_Off,
12689 Set_Warnings_Mode_On): Do nothing if warnings are suppressed by
12690 command line switch.
12691 * opt.ads (Warning_Mode): Document behavior
12692 wrt pragma Warnings, in normal mode and in GNATprove_Mode.
12694 2014-01-22 Robert Dewar <dewar@adacore.com>
12696 * sem_ch3.adb, errout.adb, erroutc.adb: Minor reformatting.
12698 2014-01-22 Robert Dewar <dewar@adacore.com>
12700 * sem_ch13.adb (Check_Pool_Size_Clash): New procedure
12701 (Analyze_Attribute_Definition_Clause, case Storage_Pool): call
12702 Check_Pool_Size_Clash (Analyze_Attribute_Definition_Clause,
12703 case Storage_Size): call Check_Pool_Size_Clash.
12705 2014-01-22 Robert Dewar <dewar@adacore.com>
12707 * sem_ch3.adb, exp_util.adb, sem_dim.adb, sem_elab.adb, sem_ch8.adb,
12708 sem_eval.ads: Minor reformatting.
12710 2014-01-22 Thomas Quinot <quinot@adacore.com>
12712 * sem_eval.adb (Compile_Time_Known_Bounds): Return False for
12713 Any_Composite to prevent cascaded errors.
12715 2014-01-22 Yannick Moy <moy@adacore.com>
12717 * errout.adb (Initialize): Do not insert special entry in Warnings
12718 table in GNATprove_Mode.
12719 * erroutc.adb (Set_Warnings_Mode_On): Add info in Warnings table in
12721 * gnat1drv.adb (Adjust_Global_Switches): Do not suppress frontend
12724 2014-01-22 Robert Dewar <dewar@adacore.com>
12726 * sem_prag.adb (Analyze_Initializes_In_Decl_Part): Handle null
12729 2014-01-22 Robert Dewar <dewar@adacore.com>
12731 * snames.ads-tmpl: Update header.
12733 2014-01-22 Thomas Quinot <quinot@adacore.com>
12735 * exp_util.adb (Insert_Actions): When inserting actions on a
12736 short circuit operator that has already been analyzed, do not park
12737 actions in node; instead introduce an N_Expression_With_Actions
12738 and insert actions immediately.
12739 Add guard for unexpected case of climbing up through statement
12740 in Actions list of an N_Expression_With_Actions.
12741 * sem_elab.adb (Insert_Elab_Check): Remove complex
12742 specialized circuitry for the case where the context is already
12743 analyzed, as it is not needed and introduces irregularities in
12744 finalization. Instead rely on the above change to Insert_Actions
12745 to ensure that late insertion on short circuit operators works
12748 2014-01-22 Ed Schonberg <schonberg@adacore.com>
12750 * sem_ch4.adb (Operator_Check): Improve error message when an
12751 operand of concatenation is an access type.
12753 2014-01-22 Thomas Quinot <quinot@adacore.com>
12755 * sem_dim.adb (Analyze_Dimension_Identifier): Add guard against
12758 2014-01-22 Ed Schonberg <schonberg@adacore.com>
12760 * sem_ch8.adb (Find_Selected_Component): Handle properly the case
12761 of an expanded name in a proper body, whose prefix is a package
12762 in the context of the proper body, when there is a homonym of
12763 the package declared in the parent unit.
12765 2014-01-22 Robert Dewar <dewar@adacore.com>
12767 * sem_warn.adb (Check_Use_Clause): Don't give no entities used
12768 msg if errors found.
12769 (Check_One_Unit): Same change.
12771 2014-01-22 Robert Dewar <dewar@adacore.com>
12773 * ug_words: Add missing/wrong entries for VMS warning switches.
12774 * sem_prag.adb (Check_Duplicate_Pragma): Avoid flagging parent type.
12776 2014-01-22 Jerome Guitton <guitton@adacore.com>
12778 * mlib-tgt-specific-vxworks.adb (Get_Target_Suffix): Replace xscale by
12781 2014-01-22 Robert Dewar <dewar@adacore.com>
12783 * gnat_rm.texi, gnat_ugn.texi: Document passive task optimization
12785 2014-01-22 Eric Botcazou <ebotcazou@adacore.com>
12787 * gcc-interface/Makefile.in: Minor fixes.
12789 2014-01-21 Robert Dewar <dewar@adacore.com>
12791 * par-ch4.adb (P_If_Expression): Rewritten to improve error recovery.
12792 * par-ch5.adb (P_Condition): New version with expression prescanned.
12793 * par.adb (P_Condition): New version with expression prescanned.
12795 2014-01-21 Robert Dewar <dewar@adacore.com>
12797 * gnat_rm.texi: Document that Allow_Integer_Address is ignored
12798 if Address is not a private type.
12799 * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
12800 Ignore pragma if System.Address is not a private type.
12802 2014-01-21 Arnaud Charlet <charlet@adacore.com>
12804 * namet.ads (Name_Len): Initialize to 0 to avoid accessing an
12805 uninitialized value.
12807 2014-01-21 Thomas Quinot <quinot@adacore.com>
12809 * gnat_rm.texi (Scalar_Storage_Order): Update documentation.
12811 2014-01-21 Ed Schonberg <schonberg@adacore.com>
12813 * sem_ch12.adb (Set_Instance_Env): In Ada 2012 mode, preserve
12814 the value of Assertions_Enabled flag when compiling an instance of
12815 an internal unit. This facilitates the use of pre/postconditions
12816 in generic internal units, such as the new elementary function
12819 2014-01-21 Robert Dewar <dewar@adacore.com>
12821 * exp_aggr.adb: Minor reformatting.
12822 * sem_attr.adb: Minor reformatting.
12823 * sem_res.adb: Minor comment addition.
12824 * einfo.adb: Minor comment updates.
12825 * freeze.adb: Minor reformatting and code reorganization.
12827 2014-01-21 Ed Schonberg <schonberg@adacore.com>
12829 * par-ch4.adb (P_If_Expression): Handle more gracefully an
12830 elsif clause that does not have an else part.
12832 2014-01-21 Robert Dewar <dewar@adacore.com>
12834 * checks.adb, sem_util.ads, sem_ch4.adb: Minor reformatting.
12835 * gcc-interface/Makefile.in: clean up target pairs.
12837 2014-01-21 Pascal Obry <obry@adacore.com>
12839 * projects.texi: Minor typo fix.
12841 2014-01-21 Thomas Quinot <quinot@adacore.com>
12843 * freeze.adb (Check_Component_Storage_Order): If a record type
12844 has an explicit Scalar_Storage_Order attribute definition clause,
12845 reject any component that itself is of a composite type and does
12848 2014-01-21 Ed Schonberg <schonberg@adacore.com>
12850 * sem_ch10.adb (Generate_Parent_Reference): Make public so it
12851 can be used to generate proper cross-reference information for
12852 the parent units of proper bodies.
12854 2014-01-21 Thomas Quinot <quinot@adacore.com>
12856 * exp_pakd.adb (Expand_Packed_Element_Set,
12857 Expand_Packed_Element_Reference): No byte swapping required in
12858 the front-end for the case of a reverse storage order array,
12859 as this is now handled uniformly in the back-end. However we
12860 still need to swap back an extracted element if it is itself a
12861 nested composite with reverse storage order.
12863 2014-01-21 Hristian Kirtchev <kirtchev@adacore.com>
12865 * sem_prag.adb (Analyze_External_Property): Add processing for "others".
12866 (Analyze_Pragma): Update the grammar of pragma Abstract_State to
12869 2014-01-21 Arnaud Charlet <charlet@adacore.com>
12871 * gnat_ugn.texi: Minor updates.
12873 2014-01-21 Thomas Quinot <quinot@adacore.com>
12875 * exp_pakd.adb: Update comment, minor reformatting.
12877 2014-01-21 Hristian Kirtchev <kirtchev@adacore.com>
12879 * sem_ch3.adb (Analyze_Variable_Contract): Trigger the volatile
12880 object check when SPARK_Mode is on.
12881 * sem_ch6.adb (Process_Formals): Trigger the volatile object
12882 check when SPARK_Mode is on.
12883 * sem_ch12.adb (Instantiate_Object): Trigger the volatile object
12884 check when SPARK_Mode is on.
12885 * sem_ch13.adb (Analyze_Aspect_Specifications): Insert the
12886 corresponding pragma of aspect SPARK_Mode in the visible
12887 declarations of a package declaration.
12888 * sem_prag.adb (Analyze_Pragma): Trigger the volatile object
12889 check when SPARK_Mode is on.
12890 * sem_res.adb (Resolve_Actuals): Trigger the volatile object
12891 check when SPARK_Mode is on.
12892 (Resolve_Entity_Name): Trigger
12893 the volatile object check when SPARK_Mode is on.
12895 2014-01-21 Robert Dewar <dewar@adacore.com>
12897 * sem_ch3.adb, sem_prag.adb, sem_prag.ads, sem_ch12.adb, sem_res.adb,
12898 sem_ch6.adb, a-except-2005.adb: Minor reformatting.
12900 2014-01-21 Ed Schonberg <schonberg@adacore.com>
12902 * exp_ch3.adb (Expand_N_Object_Declaration): When a class-wide
12903 object is declared, it is rewritten as a renaming of an dynamic
12904 expression that wraps the initial value. The renaming declaration
12905 is first given an internal name, to prevent collisions with the
12906 entity already declared, and then the name is modified to reflect
12907 the original one. the modification of the name must preserve
12908 the source location of the original, to prevent spurious errors
12909 when compiling with style checks if the declaration involves
12910 more than one entity.
12912 2014-01-21 Hristian Kirtchev <kirtchev@adacore.com>
12914 * aspects.adb Add entries for Async_Readers, Async_Writers,
12915 Effective_Reads and Effective_Writes in table Canonical_Aspect.
12916 * aspects.ads Add entries for Async_Readers, Async_Writers,
12917 Effective_Reads and Effective_Writes in tables Aspect_Id,
12918 Aspect_Names, Aspect_Delay and Implementation_Defined_Aspect.
12919 * atree.adb (Ekind_In): New version with 8 parameters.
12920 (Node34): New routine.
12921 (Set_Node34): New routine.
12922 * atree.ads (Ekind_In): New version with 8 parameters.
12923 (Node34): New routine.
12924 (Set_Node34): New routine.
12925 * einfo.adb Contract is now Node34.
12926 (Contract): Update the assertion and node usage.
12927 (Get_Pragma): Include pragmas Async_Readers, Async_Writers,
12928 Effective_Reads and Effective_Writes.
12929 (Set_Contract): Update the assertion and node usage.
12930 (Write_Field24_Name): Remove the output for a contract.
12931 (Write_Field34_Name): Add output for a contract.
12932 * einfo.ads Contract is now Node34. Update the comment on
12933 attribute usage and related node structures.
12934 (Get_Pragma): Update the comment on usage.
12935 * par-prag.adb (Prag): Pragmas Async_Readers, Async_Writers,
12936 Effective_Reads and Effective_Writes do not require special
12937 processing by the parser.
12938 * sem_ch3.adb (Analyze_Variable_Contract): New routine.
12939 (Analyze_Declarations): Analyze the contract of a variable at
12940 the end of the declarative region.
12941 (Analyze_Object_Declaration): Create a contract for a variable.
12942 * sem_ch6.adb (Analyze_Subprogram_Contract): Update the retrieval
12943 of classification pragmas.
12944 (Process_Formals): Detect an illegal
12945 use of a volatile object as a formal in a function.
12946 * sem_ch12.adb (Instantiate_Object): Detect an illegal use of
12947 a volatile object as an actual in generic instantiation.
12948 * sem_prag.adb Add entries for Async_Readers, Async_Writers,
12949 Effective_Reads and Effective_Writes in table Sig_Flags.
12950 (Analyze_External_State_In_Decl_Part): New routine.
12951 (Analyze_Global_Item): Detect an illegal use of a volatile object
12952 as a global item of a function.
12953 (Analyze_Pragma): Reimplement
12954 pragma Abstract_State. Add support for pragmas Async_Readers,
12955 Async_Writers, Effective_Reads and Effective_Writes.
12956 (Check_External_Properties): New routine.
12957 * sem_prag.ads (Analyze_External_State_In_Decl_Part): New routine.
12958 (Check_External_Properties): New routine.
12959 * sem_res.adb (Resolve_Actuals): Detect an illegal use of a
12960 volatile object as an actual in a call.
12961 (Resolve_Entity_Name):
12962 Add local variables Par, Prev and Usage_OK. Detect illegal
12963 contexts of volatile objects.
12964 * sem_util.adb (Add_Contract_Item): Add support for
12965 pragmas associated with the contract of a variable.
12966 (Async_Readers_Enabled): New routine.
12967 (Async_Writers_Enabled): New routine.
12968 (Effective_Reads_Enabled): New routine.
12969 (Effective_Writes_Enabled): New routine.
12970 (Has_Enabled_Property):
12972 (Is_Unchecked_Conversion_Instance): New routine.
12973 (Is_Volatile_Object): Add support for entities that may denote
12975 * sem_util.ads (Add_Contract_Item): Update the
12977 (Async_Readers_Enabled): New routine.
12978 (Async_Writers_Enabled): New routine.
12979 (Effective_Reads_Enabled): New routine.
12980 (Effective_Writes_Enabled): New routine.
12981 (Is_Unchecked_Conversion_Instance): New routine.
12982 * sinfo.ads Update the comment on the structure of N_Contract.
12983 * snames.ads-tmpl Add predefined names for Async_Readers,
12984 Async_Writers, Effective_Reads and Effective_Writes. Add
12985 pragma ids for Async_Readers, Async_Writers, Effective_Reads
12986 and Effective_Writes.
12988 2014-01-21 Robert Dewar <dewar@adacore.com>
12990 * exp_ch4.adb (Eval_Op_Expon): Use CRT_Safe_Compile_Time_Known_Value
12991 * sem_eval.adb (Compile_Time_Known_Value): Remove special
12992 handling of CRT mode (CRT_Safe_Compile_Time_Known_Value): New
12993 function (Eval_Op_Expon): Add CRT_Safe in call to Test_Foldable
12994 (Test_Foldable): Add CRT_Safe parameter
12995 * sem_eval.ads (Compile_Time_Known_Value): Remove special
12996 handling of CRT mode.
12997 (CRT_Safe_Compile_Time_Known_Value): New function.
12999 2014-01-21 Robert Dewar <dewar@adacore.com>
13001 * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Fix problem
13002 with pragma or aspect that applies to package spec or subprogram
13005 2014-01-21 Robert Dewar <dewar@adacore.com>
13007 * exp_aggr.adb: Minor reformatting.
13009 2014-01-21 Johannes Kanig <kanig@adacore.com>
13011 * gnat1drv.adb (Gnat1drv) remove obsolete reference to -gnatd.H.
13013 2014-01-21 Bob Duff <duff@adacore.com>
13015 * gnat_ugn.texi: Document the "checks" attribute in gnat2xml.
13017 2014-01-21 Steve Baird <baird@adacore.com>
13019 * gnat_rm.texi: Improve description of SPARK_Mode pragma.
13021 2014-01-21 Vincent Celier <celier@adacore.com>
13023 * prj-part.adb (Parse_Single_Project): Accept to extend a project
13024 if it has only be imported by an project being extended. When a
13025 project that has only been imported by a project being extended
13026 is imported by another project that is not being extended,
13027 reset the previous indication, so that it will be an error if
13028 this project is extended later.
13029 * prj-tree.adb (Create_Project): Include component From_Extended
13030 in table Projects_HT
13031 * prj-tree.ads (Project_Name_And_Node): New Boolean component
13034 2014-01-21 Robert Dewar <dewar@adacore.com>
13036 * atree.ads, atree.adb: Add Node33 and Set_Node33.
13037 * einfo.ads, einfo.adb (SPARK_Pragma): New field (SPARK_Aux_Pragma):
13038 New field (SPARK_Pragma_Inherited): New flag
13039 (SPARK_Aux_Pragma_Inherited): New flag (SPARK_Mode_Pragmas):
13041 * lib.ads, lib.adb: Remove SPARK_Mode_Pragma, no longer used.
13042 * opt.ads (SPARK_Mode_Pragma): New global variable.
13043 * sem.ads: Add Save_SPARK_Mode_Pragma field to Scope_Stack_Entry.
13044 * sem_ch3.adb: Use new SPARK_Mode data structures.
13045 * sem_ch6.adb: Set SPARK_Mode fields in subprogram specs and bodies.
13046 * sem_ch7.adb: Set SPARK_Mode fields in package spec and body entities.
13047 * sem_ch8.adb (Push_Scope): Save SPARK_Mode_Pragma.
13048 (Pop_Scope): Restore SPARK_Mode_Pragma.
13049 * sem_prag.adb (Analyze_Pragma, case SPARK_Mode): Rewrite for
13050 new data structures.
13052 2014-01-21 Arnaud Charlet <charlet@adacore.com>
13054 * back_end.adb: Undo previous change, not needed. Minor reformatting.
13056 2014-01-21 Thomas Quinot <quinot@adacore.com>
13058 * exp_ch5.adb: Fix comment.
13059 * switch-c.adb: Minor comment update.
13060 * exp_ch3.adb: Minor reformatting.
13062 2014-01-21 Arnaud Charlet <charlet@adacore.com>
13064 * back_end.adb (Scan_Compiler_Arguments): Do not store object
13065 filename in gnatprove mode.
13067 2014-01-21 Thomas Quinot <quinot@adacore.com>
13069 * sinfo.ads (No_Ctrl_Actions): Clarify documentation (flag also
13070 suppresses usage of primitive _assign for tagged types).
13071 * exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Set
13072 No_Ctrl_Actions for a tagged type that does not require
13073 finalization, as we want to disable usage of _assign (which
13074 may cause undesirable discriminant checks on an uninitialized,
13077 2014-01-21 Ed Schonberg <schonberg@adacore.com>
13079 * sem_prag.adb: Reject invariant'class on completion.
13081 2014-01-21 Javier Miranda <miranda@adacore.com>
13083 * exp_ch3.adb (Build_Init_Procedure): For
13084 derivations of interfaces, do not move the the initialization
13085 of the _parent field since such assignment is not generated.
13087 2014-01-21 Ed Schonberg <schonberg@adacore.com>
13089 * sem_res.adb (Rewrite_Renamed_Operator): Do not replace entity
13090 with the operator it renames if we are within an expression of
13091 a pre/postcondition, because the expression will be reanalyzed
13092 at a later point, and the analysis of the renaming may affect
13093 the visibility of the operator when in an instance.
13095 2014-01-21 Robert Dewar <dewar@adacore.com>
13097 * sinfo.ads, sinfo.adb: Change Do_Discriminant_Check to use new Flag1.
13098 Add this flag to type conversion nodes and assignment nodes.
13099 * treepr.adb: Deal properly with Flag 1,2,3.
13100 * treeprs.adt: Minor comment update.
13102 2014-01-21 Robert Dewar <dewar@adacore.com>
13104 * sem_eval.adb (Compile_Time_Known_Value): Add Ignore_CRT
13106 * sem_eval.ads (Compile_Time_Known_Value): Add Ignore_CRT
13107 parameter, completely rewrite spec.
13109 2014-01-21 Ed Schonberg <schonberg@adacore.com>
13111 * sem_ch10.adb (Install_Withed_Unit): If the unit is a subprogram
13112 instance that is inlined, it may have been rewritten as a wrapper
13113 package. In that case the unit that must be made visible is the
13114 related instance of the package.
13116 2014-01-21 Arnaud Charlet <charlet@adacore.com>
13118 * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Refine
13119 previous change in codepeer mode.
13121 2014-01-21 Arnaud Charlet <charlet@adacore.com>
13123 * exp_ch9.adb (Expand_N_Selective_Accept.Add_Accept): Always add
13124 call to Abort_Undefer, as expected by the runtime.
13125 * s-tasren.adb (Local_Complete_Rendezvous): Replace
13126 Defer_Abort_Nestable by Defer_Abort, since we do not expect abort to be
13127 deferred at this point. Update comments.
13129 2014-01-21 Thomas Quinot <quinot@adacore.com>
13131 * exp_ch4.adb, exp_ch5.adb, checks.adb: Minor reformatting.
13133 2014-01-21 Arnaud Charlet <charlet@adacore.com>
13135 * switch-c.adb, usage.adb, gnat_ugn.texi: Mark -gnates as internal,
13138 2014-01-21 Robert Dewar <dewar@adacore.com>
13140 * switch-c.adb, usage.adb, atree.adb, atree.ads: Minor reformatting.
13142 2014-01-21 Thomas Quinot <quinot@adacore.com>
13144 * atree.adb, atree.ads (Num_Extension_Nodes): Switch to Node_Id, since
13145 this is value is used in Node_Id arithmetic operations.
13146 (Copy_Node, Exchange_Entities): Use loops indexed by Num_Extension_Nodes
13147 instead of hard-coded unrolled code.
13149 2014-01-21 Yannick Moy <moy@adacore.com>
13151 * gnat1drv.adb: Minor code cleanup, removing useless code.
13153 2014-01-21 Arnaud Charlet <charlet@adacore.com>
13155 * opt.ads (SPARK_Switches_File_Name): New.
13156 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnates=xxx *
13157 * usage.adb (Usage): Document -gnates, in gnatprove mode only.
13158 * gnat_ugn.texi: Document -gnates.
13160 2014-01-21 Yannick Moy <moy@adacore.com>
13162 * errout.adb (Special_Msg_Delete): Update comment. Remove
13163 special case for GNATprove which should not ignore mismatch
13164 in sizes for representation clauses.
13165 * sem_prag.adb (Analyze_Pragma): Remove special case for GNATprove
13166 which should not ignore pragma Pack.
13168 2014-01-21 Ed Schonberg <schonberg@adacore.com>
13170 * sem_ch4.adb: Code clean up.
13172 2014-01-21 Steve Baird <baird@adacore.com>
13174 * gnat_rm.texi: Improve GNAT RM description of SPARK_Mode pragma.
13176 2014-01-21 Robert Dewar <dewar@adacore.com>
13178 * gcc-interface/gigi.h: Get Flags array address.
13179 * gcc-interface/trans.c: Acquire Flags array address.
13180 * atree.adb: Add support for Flags array and Flag0,1,2,3.
13181 * atree.ads: Add support for Flags array and Flag0,1,2,3.
13182 * atree.h: Add support for Flags array and Flag0,1,2,3.
13183 * back_end.adb: Pass Flags array address to gigi.
13185 2014-01-21 Ed Schonberg <schonberg@adacore.com>
13187 * sem_ch8.adb (Attribute_Renaming): Transfer original attribute
13188 reference to generated body so that legality checks on stream
13189 attributes are properly applied. If type is tagged and already
13190 frozen, insert generated body at the point of the renaming
13193 2014-01-21 Ed Schonberg <schonberg@adacore.com>
13195 * sem_ch12.adb: Code clean up.
13196 * sem_ch8.adb: Minor reformatting
13198 2014-01-20 Robert Dewar <dewar@adacore.com>
13200 * checks.adb: Check SPARK_Mode instead of GNATProve_Mode for
13201 converting warnings on inevitable exceptions to errors.
13202 * exp_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
13203 converting warnings on inevitable exceptions to errors.
13204 * opt.adb (SPARK_Mode_Config): Handled like other config flags
13205 * opt.ads (SPARK_Mode_Type): Moved here from types (renamed from
13206 SPARK_Mode_Id) (SPARK_Mode_Type): Add pragma Ordered, remove
13207 SPARK_ from names (SPARK_Mode): New flag (SPARK_Mode_Config):
13208 New flag (Config_Switches_Type): Add SPARK_Mode field
13209 * sem.adb: Minor code reorganization (remove unnecessary with)
13210 * sem.ads (Scope_Stack_Entry): Add Save_SPARK_Mode field
13211 * sem_aggr.adb: Check SPARK_Mode instead of GNATProve_Mode for
13212 converting warnings on inevitable exceptions to errors.
13213 * sem_attr.adb: Check SPARK_Mode instead of GNATProve_Mode for
13214 converting warnings on inevitable exceptions to errors.
13215 * sem_ch3.adb: Check SPARK_Mode instead of GNATProve_Mode for
13216 converting warnings on inevitable exceptions to errors.
13217 * sem_ch4.adb: Check SPARK_Mode instead of GNATProve_Mode for
13218 converting warnings on inevitable exceptions to errors.
13219 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Reset SPARK_Mode
13220 from spec if needed
13221 * sem_ch7.adb (Analyze_Package_Body_Helper): Reset SPARK_Mode
13222 from spec if needed
13223 * sem_ch8.adb (Push_Scope): Save SPARK_Mode (Pop_Scope):
13225 * sem_elab.adb: Check SPARK_Mode instead of GNATProve_Mode for
13226 converting warnings on inevitable exceptions to errors.
13227 * sem_prag.adb (Get_SPARK_Mode_From_Pragma): New function
13228 (Get_SPARK_Mode_Id): Removed (Get_SPARK_Mode_Type): New name
13229 of Get_SPARK_Mode_Id
13230 * sem_prag.ads (Get_SPARK_Mode_From_Pragma): New function
13231 * sem_res.adb: Check SPARK_Mode instead of GNATProve_Mode for
13232 converting warnings on inevitable exceptions to errors.
13233 * sem_util.adb: Check SPARK_Mode instead of GNATProve_Mode for
13234 converting warnings on inevitable exceptions to errors.
13235 * types.ads (SPARK_Mode_Id): Moved to opt.ads and renamed
13238 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13240 * sem_ch13.adb: Add semantic information to rewritten type
13243 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13245 * exp_ch5.adb (Expand_N_Assignment_Statement): If both sides
13246 are of a type with unknown discriminants, convert both to the
13247 underlying view of the type, so that the proper constraint check
13248 can be applied to the right-hand side.
13250 2014-01-20 Robert Dewar <dewar@adacore.com>
13252 * atree.adb (Copy_Node): Fix failure to copy last component
13253 (Exchange_Entities): Fix failure to exchange last entity
13255 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13257 * sem_ch12.adb: Code clean up.
13259 2014-01-20 Robert Dewar <dewar@adacore.com>
13261 * gnat_rm.texi, sem_ch4.adb: Minor reformatting.
13263 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13265 * sem_ch4.adb (Analyze_Quantified_Expression): If after
13266 pre-analysis the loop parameter specification has been
13267 rewritten as a iterator specification, propagate the change to
13268 the quantified expression, for ASIS navigtion needs.
13270 2014-01-20 Vincent Celier <celier@adacore.com>
13272 * par-ch10.adb: Minor error message change: escape [ and ].
13274 2014-01-20 Robert Dewar <dewar@adacore.com>
13276 * checks.adb: Make warnings on exceptions into errors in GNATprove mode.
13277 * errout.adb: Implement [ and ] insertion characters.
13278 * errout.ads: Document new [ and ] insertion characters.
13279 * sem_ch12.adb, restrict.adb, frontend.adb, exp_ch7.adb: Minor
13280 addition of ??? comment.
13281 * lib-xref.adb, exp_util.adb, gnat1drv.adb: Minor reformatting
13282 * exp_ch4.adb, sem_ch3.adb, sem_ch4.adb, sem_ch6.adb, sem_elab.adb,
13283 sem_eval.adb, sem_res.adb, sem_util.adb, sem_attr.adb, sem_aggr.adb:
13284 Make warnings on exceptions into errors in GNATprove mode.
13285 * sem_dim.adb: Minor reformatting throughout Quote [ and ]
13288 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13290 * sem_ch13.adb: Code clean up.
13292 2014-01-20 Robert Dewar <dewar@adacore.com>
13294 * errout.ads, errout.adb: Implement >? >x? >X? sequences in error
13296 * sem_ch6.adb (Check_Statement_Sequence): Missing return is an
13297 error in GNATprove mode.
13299 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13301 * par-ch4.adb (Is_Parameterless_Attribute): The Ada2012 attribute
13302 reference 'Old takes no parameters, and thus can appear as a
13305 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
13307 * exp_aggr.adb: Fix minor typos.
13309 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13311 * sem_attr.adb (Analyze_Attribute, case 'Constrained): In an
13312 instance the attribute is legal, and its value is determined
13313 statically if the type has no discriminants. This choice is
13314 more useful than rechecking the legality rule in the instance,
13315 is consistent with older usage, and is also consistent with all
13318 2014-01-20 Arnaud Charlet <charlet@adacore.com>
13320 * sem_cat.adb (Validate_Static_Object_Name): Change error into
13321 warning in Relaxed_Semantic_Mode.
13323 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13325 * sem_attr.adb: Code and comments cleanup.
13327 2014-01-20 Yannick Moy <moy@adacore.com>
13329 * debug.adb Free debug flags -gnatd.D, -gnatd.G and -gnatd.V *
13330 * errout.adb (Compilation_Errors): Remove special handling in
13332 * gnat1drv.adb (Adjust_Global_Switches): Remove handling of the
13333 removed debug flags.
13334 * gnat_rm.texi: Initial documentation for Abstract_State, Depends,
13335 Global, Initial_Condition, Initializes and Refined_State pragmas and
13337 * opt.ads (Frame_Condition_Mode, Formal_Extensions,
13338 SPARK_Strict_Mode): Remove global flags.
13339 * sem_ch3.adb (Analyze_Object_Declaration): Check of no hidden state
13340 always performed now, on packages declaring a null state.
13341 (Signed_Integer_Type_Declaration): Remove ill-designed attempt
13342 at providing pedantic mode for bounds of integer types.
13343 * sem_ch4.adb (Analyze_Quantified_Expression): Warning on suspicious
13344 "some" quantified expression now issued under control of -gnatw.t,
13345 like the other warning on unused bound variable.
13346 * sem_prag.adb (Check_Precondition_Postcondition): Remove useless test
13348 (Analyze_Pragma): Remove tests for SPARK 2014
13349 pragmas, not officially allowed by GNAT.
13351 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13353 * sem_prag.adb (Analyze_Pragma): Ensure that
13354 the sole argument of pragmas Abstract_State, Contract_Cases,
13355 Depends, Global and Initializes in in aggregate form.
13356 (Analyze_Refined_Pragma): Ensure that the sole argument of
13357 pragmas Refined_Depends, Refined_Global and Refined_State is in
13359 (Ensure_Aggregate_Form): New routine.
13361 2014-01-20 Doug Rupp <rupp@adacore.com>
13363 * sem_attr.adb (Analyze_Attribute): case
13364 Attribute_Constrained => treat all prefixes as legal for Declib
13367 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13369 * sem_prag.adb (Check_Mode): Reimplement the routine.
13370 (Find_Mode): New routine.
13372 2014-01-20 Robert Dewar <dewar@adacore.com>
13374 * sem_ch4.adb (Operator_Check): Handle additional
13375 Allow_Integer_Address cases.
13377 2014-01-20 Robert Dewar <dewar@adacore.com>
13379 * gnat_rm.texi (Allow_Integer_Address): Remove note about not
13380 allowed if address is non-private, no longer true.
13381 * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13382 Remove check for address being private, causes difficulty when
13383 pragma used in gnat.adc file and is not needed, since we guard
13384 this in Address_Integer_Convert_OK.
13385 * exp_ch7.adb: Minor reformatting.
13386 * sem_ch4.adb: Handle operator operands in Allow_Integer_Address mode.
13388 2014-01-20 Robert Dewar <dewar@adacore.com>
13390 * checks.adb (Apply_Range_Check): Remove gnatprove special
13391 casing of exponentiation.
13392 * sem_res.adb (Resolve_Op_Expon): Apply range check to right
13393 operand for integer case to check range against Natural.
13395 2014-01-20 Robert Dewar <dewar@adacore.com>
13397 * s-tataat.adb: Minor reformatting.
13399 2014-01-20 Robert Dewar <dewar@adacore.com>
13401 * einfo.adb (Is_Descendent_Of_Address): Now applies to all
13402 entities, and also fix documentation to remove mention of visible
13403 integer type, since this is not what the implementation does.
13404 * einfo.ads (Is_Descendent_Of_Address): Now applies to all
13405 entities, and also fix documentation to remove mention of visible
13406 integer type, since this is not what the implementation does.
13407 * gnat_rm.texi: Minor clarification of Allow_Integer_Address
13409 * sem_ch4.adb (Analyze_One_Call): Handle Allow_Integer_Address
13410 case for parameter type check.
13411 * sem_res.adb (Resolve): Use new function
13412 Address_Integer_Convert_OK.
13413 * sem_type.adb: Minor code reorganization (use Ekind_In) Minor
13414 reformatting throughout.
13415 * sem_util.adb (Address_Integer_Convert_OK): New function.
13416 * sem_util.ads: Minor reformatting (put specs in alpha order)
13417 (Address_Integer_Convert_OK): New function.
13419 2014-01-20 Thomas Quinot <quinot@adacore.com>
13421 * exp_ch7.adb (Wrap_Transient_Expression):
13422 Insertion extra conditional expression only if
13423 Opt.Suppress_Control_Flow_Optimizations is set.
13425 2014-01-20 Arnaud Charlet <charlet@adacore.com>
13427 * s-tataat.adb (Initialize_Attributes): Abort might already be
13428 deferred in Create_Task.
13430 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13432 * checks.adb (Apply_Scalar_Range_Check): Flag
13433 the exponent as requiring a range check when the expression is
13436 2014-01-20 Fedor Rybin <frybin@adacore.com>
13438 * gnat_ugn.texi: Documenting --passed-tests option for gnattest.
13440 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13442 * sem_util.adb (Default_Initialization): New routine.
13443 * sem_util.ads: Add new type Default_Initialization_Kind.
13444 (Default_Initialization): New routine.
13446 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13448 * sem_prag.adb (Check_Mode): Correct all error
13449 message logic dealing with in/in out parameters that may appear
13450 as inputs or have a self reference.
13452 2014-01-20 Robert Dewar <dewar@adacore.com>
13454 * exp_ch9.adb, checks.adb, exp_intr.adb: Minor reformatting.
13455 * sem_res.adb (Resolve): Fix error causing infinite loop for
13456 integer used as address. Allow addresses as integers.
13458 2014-01-20 Arnaud Charlet <charlet@adacore.com>
13460 * s-osinte-linux.ads (struct_sigaction): Fix rep clause.
13462 2014-01-20 Bob Duff <duff@adacore.com>
13464 * par-ch8.adb (P_Use_Type_Clause): Detect syntax
13465 error when "use all" is not followed by "type".
13467 2014-01-20 Bob Duff <duff@adacore.com>
13469 * exp_intr.adb (Expand_Unc_Deallocation): Remove warning on abort
13472 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13474 * checks.adb (Apply_Address_Clause_Check): If there is an
13475 alignment check on the expression in an address clause, and there
13476 is no local exception propagation, add an additional explanatory
13477 message to clarify the cause of previous warning.
13479 2014-01-20 Robert Dewar <dewar@adacore.com>
13481 * exp_ch7.adb: Minor reformatting.
13482 * opt.ads: Minor comment updates.
13483 * sem.adb: Minor name change Is_Main_Unit =>
13484 Is_Main_Unit_Or_Main_Unit_Spec.
13485 * sem_ch6.adb: Minor reformatting and code reorganization.
13487 2014-01-20 Bob Duff <duff@adacore.com>
13489 * gnat_ugn.texi: Update gnatpp switches.
13491 2014-01-20 Thomas Quinot <quinot@adacore.com>
13493 * exp_ch9.adb: Minor comment edit.
13495 2014-01-20 Robert Dewar <dewar@adacore.com>
13497 * gnat_rm.texi: Document that Allow_Integer_Address is permitted
13498 only if System.Address is a private type.
13499 * opt.ads (Allow_Integer_Address): No longer set by -gnates.
13500 * sem_prag.adb (Analyze_Pragma, case Allow_Integer_Address):
13501 Allowed only if type System.Address is private, since otherwise
13503 * sem_res.adb: Fix failure to properly Analyze unchecked
13504 conversions that were introduced by Allow_Integer_Address.
13505 * switch-c.adb: Remove -gnates switch.
13506 * usage.adb: Remove -gnates switch.
13507 * gnat_ugn.texi: Remove documentation of -gnates flag.
13509 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13511 * sem_ch6.adb (Analyze_Expression_Function): Pre-analyze and
13512 resolve expression to perform proper name capture.
13514 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13516 * sem.adb (Semantics): When saving/restoring configuration
13517 switches, the spec of a pre- defined unit that is the main unit
13518 must be treated as a predefined unit as well.
13520 2014-01-20 Thomas Quinot <quinot@adacore.com>
13522 * exp_ch7.adb (Wrap_Transient_Expression): For a Boolean
13523 expression, insert an extra conditional expression when saving
13524 the value of the expression, for the benefit of control flow
13525 graph based coverage analysis.
13526 * exp_ch3.adb: Minor reformatting.
13528 2014-01-20 Robert Dewar <dewar@adacore.com>
13530 * gnat1drv.adb: Set Allow_Integer_Address in relaxed semantics mode.
13531 * gnat_rm.texi: Document pragma Allow_Integer_Address.
13532 * gnat_ugn.texi: Document pragma Allow_Integer_Address, -gnates.
13533 * opt.ads: New flag Allow_Integer_Address.
13534 * par-prag.adb: Dummy entry for pragma Allow_Integer_Address.
13535 * sem_ch5.adb: Minor reformatting.
13536 * sem_prag.adb: Implement pragma Allow_Integer_Address.
13537 * sem_res.adb (Resolve): Allow integer address value if
13539 * sem_util.adb: Minor reformatting.
13540 * snames.ads-tmpl: Add entry for pragma Allow_Integer_Address.
13541 * switch-c.adb: Recognize flag -gnates.
13542 * usage.adb: Document flag -gnates.
13544 2014-01-20 Thomas Quinot <quinot@adacore.com>
13546 * s-tadeca.adb: Fix minor typos in comment.
13548 2014-01-20 Pascal Obry <obry@adacore.com>
13550 * s-win32.ads (FreeLibrary): New import.
13552 2014-01-20 Robert Dewar <dewar@adacore.com>
13554 * sem_res.adb, sem_cat.adb: Minor reformatting.
13555 * sem_ch11.adb (Analyze_Raise_Statement): Only give warning about
13556 assigning to OUT parameters for the current subprogram scope.
13557 * exp_ch4.adb: Minor reformatting.
13559 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13561 * exp_ch4.adb (Process_Transient_Object,
13562 Find_Enclosing_Contexts): If the top-level if-expression that
13563 generated the transient object is an actual in a call, the proper
13564 Hook_Context is a construct enclosing the call.
13565 * einfo.ads: Indicate that Related_Expression is used to link a
13566 loop variable to the container expression over which the loop
13568 (Analyze_Iterator_Specification): Set the Related_Expression of
13569 the loop variable in a container element iterator.
13570 (Note_Possible_Modification): If the variable is the loop
13571 variable in a container element iterator, indicate that the
13572 enclosing container is also modified.
13574 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13576 * aspects.adb (Move_Or_Merge_Aspects): Reimplemented.
13578 2014-01-20 Robert Dewar <dewar@adacore.com>
13580 * s-taasde.ads, gnat_ugn.texi, s-tadeca.adb, sem_res.adb, s-tadeca.ads:
13581 Minor reformatting and code clean up.
13583 2014-01-20 Arnaud Charlet <charlet@adacore.com>
13585 * sem_cat.adb (Validate_Object_Declaration): Relax semantics
13586 of objects of private type if Relaxed_RM_Semantics.
13588 2014-01-20 Claire Dross <dross@adacore.com>
13590 * a-cofove.ads (Vector): Capacity discriminant
13591 should be in range of the index.
13593 2014-01-20 Thomas Quinot <quinot@adacore.com>
13595 * a-caldel.ads(To_Duration), s-taasde.ads(Time_Enqueue):
13596 Clarify specs s-tadeca.adb(Enqueue_Calendar): Compensate for
13597 possible difference between epoch of Ada.Calendar clock and Ada
13598 real-time/tasking clock.
13599 * s-taprop-posix.adb: Minor comment fix.
13601 2014-01-20 Doug Rupp <rupp@adacore.com>
13603 * sysdep.c [vxworks]: Remove Vxworks version noise for RTP.
13605 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13607 * exp_attr.adb (Expand_N_Attribute_Reference): Generate validity
13608 checks on the prefix of attribute 'Old.
13609 * sem_ch3.adb (Process_Range_Expr_In_Decl): Suppress the
13610 generation of validity checks on a range that belongs to the
13611 iteration scheme of a quantified expression.
13612 * sem_ch5.adb (One_Bound): Suppress the generation of validity
13613 checks on a bound that belongs to the iteration scheme of a
13614 quantified expression, generate the check in all other cases.
13616 2014-01-20 Bob Duff <duff@adacore.com>
13618 * gnat_ugn.texi: Enable --pp-new by default. Minor reorganization.
13620 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13622 * sem_res.adb (Resolve): When compiling a predefined unit, ignore
13623 interpretations that do not come from other predefined units,
13624 to prevent spurious ambiguities in the presence of user-defined
13625 operators in the context of (an instance of) a predefined unit.
13627 2014-01-20 Robert Dewar <dewar@adacore.com>
13629 * gnat_rm.texi: Document that Loop_Variant is included in
13630 Statement_Assertions.
13631 * sem_prag.adb (Check_Kind): Add Loop_Variant to
13632 Statement_Assertions (Check_Applicable_Policy): Add Loop_Variant
13633 to Statement_Assertions.
13635 2014-01-20 Doug Rupp <rupp@adacore.com>
13637 * sysdep.c (__gnat_is_file_not_found_error) [vxworks6]: Add case
13638 for errno ENOENT from RTP on NFS mounted file system.
13640 2014-01-20 Ed Schonberg <schonberg@adacore.com>
13642 * sem_util.adb (Check_Function_Writable_Actuals): 1) Do not
13643 examine code that does not come from source. The check does not
13644 apply to code generated for constraint checks, and such code may
13645 generate spurious error messages when compiled with expansion
13646 disabled (as in a generic unit) because side effects may not
13648 2) Make error messages more explicit: indicate the component
13649 of the construct whose value is indeterminate because of a
13650 call to a function with in-out parameter in another component,
13651 when there is no mandated order of execution between the two
13652 components (actuals, aggregate components, alternatives).
13654 2014-01-20 Robert Dewar <dewar@adacore.com>
13656 * gnat_rm.texi: Minor cleanup.
13658 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13660 * sem_attr.adb (Analyze_Attribute): Attributes 'Old and 'Result
13661 can now apply to a refined postcondition.
13662 * sem_ch6.adb (Analyze_Subprogram_Contract): Remove local
13663 variable Result_Seen. Add variables Case_Prag, Post_Prag,
13664 Seen_In_Case and Seen_In_Post. Update the mechanism that detects
13665 whether postconditions and/or constract-cases mention attribute
13666 'Result and introduce a post-state when applied to functions.
13667 (Check_Result_And_Post_State): Removed.
13668 * sem_prag.adb (Analyze_Pragma): Add local variable
13669 Result_Seen. Verify that the expression of pragma Refined_Post
13670 mentions attribute 'Result and introduces a post-state.
13671 * sem_util.ads, sem_util.adb (Check_Result_And_Post_State): New routine.
13673 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13675 * exp_ch7.adb (Is_Subprogram_Call): New routine.
13676 (Process_Transient_Objects): Make variable Must_Hook global with
13677 respect to all locally declared subprograms. Search the context
13678 for at least one subprogram call.
13679 (Requires_Hooking): Removed.
13681 2014-01-20 Claire Dross <dross@adacore.com>
13683 * a-cfdlli.ads a-cfhama.ads a-cfhase.ads a-cforma.ads
13684 * a-cforse.ads a-cofove.ads: Add pragma Annotate (GNATprove,
13685 External_Axiomatization);
13687 2014-01-20 Robert Dewar <dewar@adacore.com>
13689 * sem_attr.adb (Analyze_Attribute, case Loop_Entry): Allow
13690 Loop_Entry in Assert, Assert_And_Cut, and Assume pragmas.
13691 * sem_prag.adb (Analyze_Pragma, case Assert[_And_Cut], Assume):
13692 Allow Loop_Entry to be used in these pragmas if they appear in
13693 an appropriate context.
13694 (Placement_Error): Specialize error
13695 message for pragma Assert[_And_Cut] or pragma Assume containing
13696 Loop_Entry attribute.
13697 * a-exexpr-gcc.adb, sinput.adb: Minor reformatting.
13698 * s-excmac-arm.ads, s-except.ads, s-excmac-gcc.ads: Minor reformatting
13699 and code clean ups.
13701 2014-01-20 Robert Dewar <dewar@adacore.com>
13703 * gnat1drv.adb: Minor comment update.
13705 2014-01-20 Tristan Gingold <gingold@adacore.com>
13707 * raise-gcc.c (PERSONALITY_FUNCTION/arm): Remove unused
13708 variables, comment out unused code.
13709 * a-exexpr-gcc.adb: Move declarations to s-excmac-gcc.ads
13710 * s-excmac-gcc.ads: New file, extracted from a-exexpr-gcc.adb
13711 * s-excmac-arm.ads: New file.
13713 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13715 * exp_ch4.adb (Expand_N_Slice): Remove constant D and variables
13716 Drange and Index_Typ. Remove the circuitry which creates a
13717 range check to compare the index type of the array against the
13719 * sem_res.adb (Resolve_Slice): Add local variable Dexpr. Update
13720 the circuitry which creates a range check to handle a
13721 discrete_range denoted by a subtype indication.
13723 2014-01-20 Pierre-Marie Derodat <derodat@adacore.com>
13725 * sinput.adb, sinput.ads (Sloc_Range): Traverse the tree of original
13726 nodes to get the original sloc range.
13728 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13730 * sem_prag.adb (Analyze_Pragma): Use Defining_Entity to obtain the
13731 entity of a [library level] package.
13733 2014-01-20 Tristan Gingold <gingold@adacore.com>
13735 * raise-gcc.c (exception_class_eq): New function.
13736 (is_handled_by): Use it to compare exception classes.
13737 (PERSONALITY_STORAGE): Define. (continue_unwind): New function to
13738 be called to return URC_CONTINUE_UNWIND.
13739 (personality_body): New function, extracted from PERSONALITY_ROUTINE.
13740 (PERSONALITY_ROUTINE): Add an implementation for the ARM unwinder.
13742 2014-01-20 Robert Dewar <dewar@adacore.com>
13744 * opt.ads: Minor comment update.
13746 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13748 * exp_ch4.adb (Expand_N_Slice): Relocate some variables and
13749 constants to the "Local variables" area. Add new constant D. Add
13750 new variables Drange and Index_Typ. Rename Pfx to Rep and Ptp
13751 to Pref_Typ and update all occurrences. Add circuitry to extract
13752 the discrete_range and the index type and build a range check.
13754 2014-01-20 Arnaud Charlet <charlet@adacore.com>
13756 * gnat1drv.adb (Adjust_Global_Switches): Enable
13757 Treat_Categorization_Errors_As_Warnings when Relaxed_RM_Semantics
13760 2014-01-20 Thomas Quinot <quinot@adacore.com>
13762 * sem_ch5.adb, sem_ch4.adb: Minor reformatting.
13764 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13766 * sem_ch13.adb (Analyze_Aspect_Specifications):
13767 When aspect SPARK_Mode appears on a package body, insert the
13768 generated pragma at the top of the body declarations.
13770 2014-01-20 Robert Dewar <dewar@adacore.com>
13772 * sem_aggr.adb, exp_prag.adb, sem_aux.adb, sinfo.ads, sem_ch10.adb,
13773 checks.adb, sem_prag.adb, sem_ch12.adb, freeze.adb, g-arrspl.adb,
13774 expander.adb, gnat1drv.adb, exp_ch4.adb, sem_ch6.adb,
13775 sem_ch8.adb, exp_dist.adb: Minor reformatting.
13777 2014-01-20 Yannick Moy <moy@adacore.com>
13779 * gnat1drv.adb (Gnat1drv): Call Write_ALI with Object=True in GNATprove
13782 2014-01-20 Pascal Obry <obry@adacore.com>
13784 * g-arrspl.ads (Slice_Set): New definition (will use a copy on
13786 * g-arrspl.adb: Adapt all routine to this new implementation.
13787 (Set): Copy the Slice_Set definition before reusing it.
13789 2014-01-20 Arnaud Charlet <charlet@adacore.com>
13791 * sem_prag.adb (Process_Import_Or_Interface): In
13792 Relaxed_RM_Semantics, support old Ada 83 style of pragma Import.
13793 (Analyze_Pragma): Ditto for pragma Export.
13794 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Handle old pragma
13797 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13799 * einfo.ads: E_Abstract_State is now part of the entities that
13800 can be overloaded. Update type Overloadable_Kind to reflect the
13801 inclusion of abstract states.
13802 * sem_ch6.adb (New_Overloaded_Entity): A function can now
13803 overload an abstract state.
13804 * sem_prag.adb (Analyze_Constituent): Handle the overloading
13805 of states by functions. Use Entity_Of to obtain the entity of
13806 a constituent. (Analyze_Global_Item): Handle the overloading of
13807 states by functions.
13808 (Analyze_Initialization_Item): Handle the
13809 overloading of states by functions. Use Entity_Of to obtain the
13811 (Analyze_Input_Item): Handle the overloading
13812 of states by functions. Use Entity_Of to obtain the entity of an item.
13813 (Analyze_Input_Output): Handle the overloading of states by functions.
13814 (Analyze_Refinement_Clause): Handle the overloading
13815 of states by functions. Use Entity_Of to obtain the entity of an item.
13816 (Appears_In): Use Entity_Of to obtain the entity of an element.
13817 (Check_Usage): Use Entity_Of to obtain the entity of
13818 an item. Add a guard to prevent a crash due to a previous error.
13819 (Resolve_State): New routine.
13821 2014-01-20 Yannick Moy <moy@adacore.com>
13823 * spark_xrefs.ads, debug.adb, gnat1drv.adb, errout.adb, errout.ads,
13824 opt.ads: Minor comments updates.
13826 2014-01-20 Hristian Kirtchev <kirtchev@adacore.com>
13828 * einfo.adb (Non_Limited_View): Applies to abstract states.
13829 (Set_From_Limited_With): Applies to abstract states.
13830 (Set_Non_Limited_View): Applies to abstract states.
13831 (Write_Field17): Output the non-limited view of an abstract state.
13832 * einfo.ads: Update the comment on usage and occurrences in
13833 nodes for attributes From_Limited_With and Non_Limited_View.
13834 * sem_aux.adb (Available_View): This routine can now handle
13836 * sem_aux.ads (Available_View): This routine can now handle
13837 abstract states. Update the comment on usage.
13838 * sem_ch8.adb (Find_Expanded_Name): Handle abstract views
13839 of states and variables.
13840 (In_Pragmas_Depends_Or_Global): New routine.
13841 * sem_ch10.adb (Build_Limited_Views): Implement
13842 abstract (limited) views of variables and states.
13843 (Build_Shadow_Entity): This routine is now a procedure. Add
13844 formal parameter Shadow. Update the comment on usage. Add
13845 context-specific decoration for states and variables.
13846 (Decorate_State): New routine. (Decorate_Variable): New routine.
13847 (Find_And_Process_States): New routine.
13848 (Process_Declarations): Renamed to Process_Declarations_And_States.
13849 (Process_Declarations_And_States): Add formal parameters
13850 Pack and Create_Abstract_Views. Update the comment on usage.
13851 (Process_States): New routine.
13852 * sem_prag.adb (Check_Dependency_Clause): Handle abstract
13853 views of states and variables. Match the abstract view of a state
13854 against its corresponding non-abstract view.
13855 (Is_Matching_Input):
13856 Handle abstract views of states and variables. Match the abstract
13857 view of a state against its corresponding non-abstract view.
13858 (Process_Global_Item): Handle abstract views of states and
13861 2014-01-20 Bob Duff <duff@adacore.com>
13863 * sem_ch10.adb (Expand_With_Clause): Don't
13864 recurse on the prefix if the current with-ed name refers to a
13865 package that renames its own parent, eg "package P.Q renames P;".
13867 2014-01-20 Yannick Moy <moy@adacore.com>
13869 * exp_spark.adb (Expand_SPARK_Call): Remove procedure.
13870 * opt.adb, opt.ads (Full_Expander_Active): Remove function.
13871 * checks.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb, sem_aggr.adb,
13872 * sem_ch10.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb, sem_ch9.adb,
13873 * sem_disp.adb, sem_res.adb Replace Full_Expander_Active by
13876 2014-01-20 Yannick Moy <moy@adacore.com>
13878 * sinfo.ads Update documentation of GNATprove mode.
13880 2014-01-20 Yannick Moy <moy@adacore.com>
13882 * adabkend.adb, ali-util.adb, errout.adb, exp_ch7.adb,
13883 * exp_dbug.adb, freeze.adb, lib-xref.adb, restrict.adb,
13884 * sem_attr.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch8.adb,
13885 * sem_prag.adb, sem_res.adb, sem_util.adb Rename SPARK_Mode into
13887 * sem_ch13.adb: Remove blank.
13888 * exp_spark.adb, exp_spark.ads (Expand_SPARK_Call): Only replace
13889 subprograms by alias for renamings, not for inherited primitive
13891 * exp_util.adb (Expand_Subtype_From_Expr): Apply the expansion
13893 (Remove_Side_Effects): Apply the removal in
13894 GNATprove mode, for the full analysis of expressions.
13895 * expander.adb (Expand): Call the light SPARK expansion in GNATprove
13897 (Expander_Mode_Restore, Expander_Mode_Save_And_Set): Ignore
13898 save/restore actions for Expander_Active flag in GNATprove mode,
13899 similar to what is done in ASIS mode.
13900 * frontend.adb (Frontend): Generic bodies are instantiated in
13902 * gnat1drv.adb (Adjust_Global_Switches): Set operating
13903 mode to Check_Semantics in GNATprove mode, although a light
13904 expansion is still performed.
13905 (Gnat1drv): Set Back_End_Mode to
13906 Declarations_Only in GNATprove mode, and later on special case
13907 the GNATprove mode to continue analysis anyway.
13908 * lib-writ.adb (Write_ALI): Always generate ALI files in
13910 * opt.adb, opt.ads (Full_Expander_Active): Make it equivalent to
13912 (SPARK_Mode): Renamed as GNATprove_Mode.
13913 * sem_aggr.adb (Aggregate_Constraint_Checks): Add checks in the
13914 tree in GNATprove_Mode.
13915 * sem_ch12.adb (Analyze_Package_Instantiation): Always instantiate
13916 body in GNATprove mode.
13917 (Need_Subprogram_Instance_Body): Always instantiate body in GNATprove
13919 * sem_ch3.adb (Constrain_Index, Process_Range_Expr_In_Decl):
13920 Make sure side effects are removed in GNATprove mode.
13922 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
13924 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Robustify tests
13925 for aliased objects with an unconstrained nominal subtype.
13926 * gcc-interface/trans.c (Call_to_gnu): Likewise.
13927 (gnat_to_gnu) <case N_Op_Not>: Robustify test for private type.
13928 <case N_Op_Minus>: Remove useless code.
13929 (Exception_Handler_to_gnu_zcx): Minor tweaks.
13931 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
13933 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Record_Subtype>:
13934 Tidy up. For a subtype with discriminants and variant part, if a
13935 variant is statically selected and the fields all have a constant
13936 position, put them in order of increasing position. Likewise if
13937 no variant part but representation clause is present.
13938 * gcc-interface/utils.c (make_packable_type): Robustify.
13939 (maybe_pad_type): Use local variable and tidy up condition. If no
13940 alignment is specified, use the original one.
13941 (create_type_stub_decl): Minor tweak.
13942 (convert) <case VECTOR_CST>: Fix typo.
13943 <case CONSTRUCTOR>: Deal with padding types around the same type.
13944 Do not punt on missing fields.
13945 (unchecked_convert): Call finish_record_type to lay out the special
13946 record types made for conversions from/to problematic integer types.
13947 Bump the alignment of CONSTRUCTORs before converting them to a more
13950 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
13952 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Component>: Remove
13953 obsolete code for type_annotate_only mode, simplify code and slightly
13954 improve wording of comments.
13956 2014-01-12 Eric Botcazou <ebotcazou@adacore.com>
13959 * gcc-interface/cuintp.c (build_cst_from_int): Use 32-bit integer type
13960 as intermediate type.
13961 (UI_To_gnu): Likewise.
13963 2014-01-03 Eric Botcazou <ebotcazou@adacore.com>
13965 * gnatvsn.ads (Current_Year): Bump to 2014.
13967 2014-01-02 Tobias Burnus <burnus@net-b.de>
13969 * gnat_ugn.texi: Bump @copying's copyright year.
13971 Copyright (C) 2014 Free Software Foundation, Inc.
13973 Copying and distribution of this file, with or without modification,
13974 are permitted in any medium without royalty provided the copyright
13975 notice and this notice are preserved.