1 2015-01-30 Gary Dismukes <dismukes@adacore.com>
3 * freeze.adb: Minor reformatting.
5 2015-01-30 Javier Miranda <miranda@adacore.com>
7 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
8 improve its documentation.
9 * errout.adb (Error_Msg_PT): Improve the error message.
10 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
11 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
12 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
14 2015-01-30 Robert Dewar <dewar@adacore.com>
16 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
17 message for False case.
19 2015-01-30 Doug Rupp <rupp@adacore.com>
21 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
22 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
25 2015-01-30 Gary Dismukes <dismukes@adacore.com>
27 * sem_attr.adb (Declared_Within_Generic_Unit):
28 New function to test whether an entity is declared within the
29 declarative region of a given generic unit.
30 (Resolve_Attribute): For checking legality of subprogram'Access within
31 a generic unit, call new Boolean function Declared_Within_Generic_Unit
32 instead of simply comparing the results of Enclosing_Generic_Unit on
33 the prefix and access type. Correct minor comment typos.
35 2015-01-30 Robert Dewar <dewar@adacore.com>
37 * freeze.adb, exp_util.ads: Update comment.
38 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
39 * sem_util.adb: Minor: fix typo.
41 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
43 * sem_attr.adb (Analyze_Attribute): Ensure that
44 the check concerning Refined_Post takes precedence over the
47 2015-01-30 Gary Dismukes <dismukes@adacore.com>
49 * sem_prag.adb: Minor typo fixes and reformatting.
51 2015-01-30 Yannick Moy <moy@adacore.com>
53 * sem_attr.adb: Code clean up.
55 2015-01-30 Robert Dewar <dewar@adacore.com>
57 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
58 * ali.ads (Unit_Record): Add new field Serious_Errors.
59 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
61 * lib-writ.ads: New attribute SE (serious erors) in unit line.
63 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
65 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
66 Lit_Indexes, Scale_Value, Storage_Size_Variable,
67 String_Literal_Low_Bound along associated routines and
69 (Pending_Access_Types): New routine.
70 (Set_Pending_Access_Types): New routine.
71 (Write_Field15_Name): Add an entry for Pending_Access_Types.
72 * einfo.ads Add new attribute Pending_Access_Types along
73 with usage in nodes. Update the usage of attributes
74 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
75 Storage_Size_Variable, String_Literal_Low_Bound.
76 (Pending_Access_Types): New routine along with pragma Inline.
77 (Set_Pending_Access_Types): New routine along with pragma Inline.
78 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
79 Ins_Node. Determine the insertion node for anonynous access type
80 that acts as a component type of an array. Update the call to
81 Build_Finalization_Master.
82 (Expand_Freeze_Record_Type): Update
83 the calls to Build_Finalization_Master.
85 local variable RACW_Seen. Factor out the code that deals with
86 remote access-to-class-wide types. Create a finalization master
87 when the designated type contains a private component. Fully
88 initialize all pending access types.
89 (Process_RACW_Types): New routine.
90 (Process_Pending_Access_Types): New routine.
91 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
92 needs to set primitive Finalize_Address.
93 (Expand_N_Allocator): Allocation no longer sets primitive
95 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
96 Update the call to Build_Finalization_Master.
97 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
98 needs to set primitive Finalize_Address.
99 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
100 (Build_Finalization_Master): New parameter profile. Associate
101 primitive Finalize_Address with the finalization master if the
102 designated type has been frozen, otherwise treat the access
103 type as pending. Simplify the insertion of the master and
104 related initialization code.
105 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
107 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
108 Simplify the implementation.
109 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
110 along with comment on usage.
111 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
112 the comment on usage.
113 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
114 Finalize_Address to retrieve the primitive.
115 (Finalize_Address): New routine.
116 (Find_Finalize_Address): Removed.
117 * exp_util.ads (Finalize_Address): New routine.
118 * freeze.adb (Freeze_All): Remove the generation of finalization
120 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
121 pending access types from the partial to the full view.
123 2015-01-30 Robert Dewar <dewar@adacore.com>
125 * sem_disp.adb: Minor reformatting.
126 * sem_disp.ads: Documentation update.
128 2015-01-30 Ed Schonberg <schonberg@adacore.com>
130 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
131 or a function call, return True if type is class-wide.
132 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
133 Apply RM 4.5.7 (17/3): all or none of the dependent expression
134 of a conditional expression must be dynamically tagged.
136 2015-01-30 Ed Schonberg <schonberg@adacore.com>
138 * sem_ch6.adb (Analyze_Function_Return): In an extended return
139 statement, apply accessibility check to result object when there
140 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
142 2015-01-30 Robert Dewar <dewar@adacore.com>
144 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
145 Boolean for case where ELSE is omitted.
146 * sem_res.adb: Minor reformatting.
148 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
150 Fix build under cygwin/64.
151 * adaint.h: Add check for __CYGWIN__.
152 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
154 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
157 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
158 * mingw32.h: Don't include <tchar.h> under cygwin.
159 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
161 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
163 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
164 (DEF_FUNCTION_TYPE_VAR_12): New macros.
166 2015-01-09 Michael Collison <michael.collison@linaro.org>
168 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
169 vec.h, double-int.h, input.h, alias.h, symtab.h,
170 fold-const.h, wide-int.h, and inchash.h due to
171 flattening of tree.h.
172 * gcc-interface/decl.c: Ditto.
173 * gcc-interface/misc.c: Ditto.
174 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
175 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
176 fold-const.h, wide-int.h, and inchash.h due to
177 flattening of tree.h.
178 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
179 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
180 fold-const.h, wide-int.h, inchash.h due to
181 flattening of tree.h.
182 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
183 vec.h, double-int.h, input.h, alias.h, symtab.h,
184 fold-const.h, wide-int.h, and inchash.h due to
185 flattening of tree.h.
186 * gcc-interface/utils2.c: Ditto.
188 2015-01-07 Robert Dewar <dewar@adacore.com>
190 * sem_warn.adb (Check_One_Unit): Don't give unused entities
191 warning for a package which is used as a generic parameter.
193 2015-01-07 Bob Duff <duff@adacore.com>
195 * usage.adb (Usage): Correct documentation of
198 2015-01-07 Robert Dewar <dewar@adacore.com>
200 * s-fileio.adb: Minor reformatting.
202 2015-01-07 Ed Schonberg <schonberg@adacore.com>
204 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
205 access to subprogram, replace its formals with new entities when
206 building the object declaration, both if actual is present and
207 when it is defaulted.
209 2015-01-07 Ed Schonberg <schonberg@adacore.com>
211 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
212 conversion and type of expression has invariant, apply invariant
215 2015-01-07 Ed Schonberg <schonberg@adacore.com>
217 * sem_ch3.adb (Create_Constrained_Components): A call to
218 Gather_Components may detect an error if an inherited discriminant
219 that controls a variant is non-static.
220 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
221 Gather_Components may report an error if an inherited discriminant
222 in a variant in non-static.
223 * sem_util.adb (Gather_Components): If a non-static discriminant
224 is inherited do not report error here, but let caller handle it.
225 (Find_Actual): Small optimization.
227 2015-01-07 Bob Duff <duff@adacore.com>
229 * usage.adb (Usage): Document -gnatw.f switch.
231 2015-01-07 Ed Schonberg <schonberg@adacore.com>
233 * sem_ch12.adb: Code clean up and minor reformatting.
235 2015-01-07 Robert Dewar <dewar@adacore.com>
237 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
238 Raise_Accessibility_Error call.
239 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
240 on handling of invalid digits in based constants.
241 * s-fatgen.ads: Minor reformatting.
242 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
243 Avoid noting bogus modification for Valid test.
244 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
245 * einfo.ads: Minor reformatting.
246 * sem_warn.adb: Minor comment clarification.
247 * sem_ch12.adb: Minor reformatting.
249 2015-01-07 Ed Schonberg <schonberg@adacore.com>
251 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
252 over static predicates when the loop parameter specification
253 carries a Reverse indicator.
255 2015-01-07 Ed Schonberg <schonberg@adacore.com>
257 * sem_ch12.adb (Instantiate_Object): If formal has a default,
258 actual is missing and formal has an anonymous access type, copy
259 access definition in full so that tree for instance is properly
260 formatted for ASIS use.
262 2015-01-07 Bob Duff <duff@adacore.com>
264 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
265 for P'Access, where P is a subprogram in the same package as
266 the P'Access, and the P'Access is evaluated at elaboration
267 time, and occurs before the body of P. For example, "X : T :=
268 P'Access;" would allow a subsequent call to X.all to be an
269 access-before-elaboration error; hence the warning. This warning
270 is enabled by the -gnatw.f switch.
271 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
272 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
273 * gnat_ugn.texi: Document the new warning.
275 2015-01-07 Johannes Kanig <kanig@adacore.com>
277 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
280 2015-01-07 Robert Dewar <dewar@adacore.com>
282 * s-taprop-linux.adb, clean.adb: Minor reformatting.
284 2015-01-07 Arnaud Charlet <charlet@adacore.com>
286 * s-tassta.adb: Relax some overzealous assertions.
288 2015-01-07 Ed Schonberg <schonberg@adacore.com>
290 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
291 view of a type is legal when context is a thunk generated for
292 operation inherited from an interface.
293 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
294 a thunk and return type is an incomplete type do not continue
295 expansion; thunk will be fully elaborated when generating code.
297 2015-01-07 Doug Rupp <rupp@adacore.com>
299 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
300 (QueryPerformanceFrequency): New imported procedure.
301 * s-taprop-mingw.adb (RT_Resolution): Call above and return
302 resolution vice a hardcoded value.
303 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
304 resolution vice a hardcoded value.
305 * s-linux-android.ads (clockid_t): New subtype.
306 * s-osinte-aix.ads (clock_getres): New imported subprogram.
307 * s-osinte-android.ads (clock_getres): Likewise.
308 * s-osinte-freebsd.ads (clock_getres): Likewise.
309 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
310 * s-osinte-darwin.ads (clock_getres): New subprogram.
311 * s-osinte-darwin.adb (clock_getres): New subprogram.
312 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
313 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
314 calculate resolution vice hard coded value.
316 2015-01-07 Ed Schonberg <schonberg@adacore.com>
318 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
319 limited view, use non-limited view when available to create
320 equivalent record type.
322 2015-01-07 Vincent Celier <celier@adacore.com>
324 * gnatcmd.adb: Remove command Sync and any data and processing
325 related to this command. Remove project processing for gnatstack.
326 * prj-attr.adb: Remove package Synchonize and its attributes.
328 2015-01-07 Vincent Celier <celier@adacore.com>
330 * clean.adb: Minor error message change.
332 2015-01-07 Tristan Gingold <gingold@adacore.com>
335 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
337 2015-01-07 Javier Miranda <miranda@adacore.com>
339 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
340 protect the frontend against never ending recursion caused by
341 circularities in the sources.
343 2015-01-07 Robert Dewar <dewar@adacore.com>
345 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
346 exp_ch3.adb: Minor reformatting.
348 2015-01-07 Doug Rupp <rupp@adacore.com>
350 * s-linux.ads (clockid_t): New subtype.
351 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
352 (clockid_t): New subtype.
353 (clock_getres): Import system call.
354 * s-taprop-linux.adb (System.OS_Constants): With and rename.
355 (RT_Resolution): Remove
356 hardcoded value and call clock_getres.
357 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
358 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
360 2015-01-07 Robert Dewar <dewar@adacore.com>
362 * sem_warn.adb (Check_One_Unit): Guard against context item
363 with no Entity field.
365 2015-01-07 Vincent Celier <celier@adacore.com>
367 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
368 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
370 2015-01-07 Vincent Celier <celier@adacore.com>
372 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
373 errors/warnings in the first parsing of the project files,
374 to display the warnings when there is no errors.
376 2015-01-07 Tristan Gingold <gingold@adacore.com>
378 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
380 2015-01-07 Doug Rupp <rupp@adacore.com>
382 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
383 value from Int_Lock as parameter to Int_Unlock.
384 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
385 * s-vxwext.ads (Int_Unlock): Likewise.
386 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
387 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
388 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
389 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
391 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
393 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
396 2015-01-07 Tristan Gingold <gingold@adacore.com>
398 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
401 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
403 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
404 automatically set No_Strict_Aliasing on access types.
405 * fe.h (No_Strict_Aliasing_CP): Declare.
406 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
407 No_Strict_Aliasing_CP is set.
409 2015-01-07 Johannes Kanig <kanig@adacore.com>
411 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
412 not build function wrapper in gnatprove mode when the package
413 is externally axiomatized.
415 2015-01-07 Jose Ruiz <ruiz@adacore.com>
417 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
418 intermediate computations when the parameters have different signs.
420 2015-01-07 Javier Miranda <miranda@adacore.com>
422 * exp_ch3.adb (Build_Init_Procedure): For derived types,
423 improve the code which takes care of identifying and moving to
424 the beginning of the init-proc the call to the init-proc of the
427 2015-01-07 Olivier Hainque <hainque@adacore.com>
429 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
430 Elaborate the expression as part of the same stmt group as the actions.
432 2015-01-07 Robert Dewar <dewar@adacore.com>
434 * sem_ch3.adb: Minor error message change.
436 2015-01-07 Ed Schonberg <schonberg@adacore.com>
438 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
439 Following AI05-028, the pragam applies legally to any composite type.
441 2015-01-07 Arnaud Charlet <charlet@adacore.com>
443 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
444 (sigwait, sigwaitinfo): Removed, not needed after all on any
445 VxWorks configurations.
447 2015-01-07 Robert Dewar <dewar@adacore.com>
449 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
451 2015-01-07 Javier Miranda <miranda@adacore.com>
453 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
454 generation of accessibility check.
456 2015-01-07 Ed Schonberg <schonberg@adacore.com>
458 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
459 illegal completion from a class- wide type, set etype of the
460 derived type properly to prevent cascaded errors.
462 2015-01-07 Robert Dewar <dewar@adacore.com>
464 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
467 2015-01-07 Robert Dewar <dewar@adacore.com>
469 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
471 (OK_No_Use_Of_Entity_Name): New function.
472 (Set_Restriction_No_Use_Of_Entity): New procedure.
473 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
475 (OK_No_Use_Of_Entity_Name): New function.
476 (Set_Restriction_No_Use_Of_Entity): New procedure.
477 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
479 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
480 Add processing for new restriction No_Use_Of_Entity.
482 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
484 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
485 component type as to Has_Atomic_Components type. Remove useless
486 test on Is_Aliased component type.
488 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
490 * alloc.ads Alphabetize several declarations. Add constants
491 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
492 * atree.adb Add with and use clauses for Opt.
493 (Allocate_Initialize_Node): Mark a node as ignored Ghost
494 if it is created in an ignored Ghost region.
495 (Ekind_In): New variant.
496 (Is_Ignored_Ghost_Node): New routine.
497 (Set_Is_Ignored_Ghost_Node): New routine.
498 * atree.adb Aplhabetize several subprograms declarations. Flag
499 Spare0 is now known as Is_Ignored_Ghost_Node.
500 (Ekind_In): New variant.
501 (Is_Ignored_Ghost_Node): New routine.
502 (Set_Is_Ignored_Ghost_Node): New routine.
503 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
504 (Contains_Ignored_Ghost_Code): New routine.
505 (Set_Contains_Ignored_Ghost_Code): New routine.
506 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
507 It is now possible to set this property on an unanalyzed entity.
508 (Write_Entity_Flags): Output the status of flag
509 Contains_Ignored_Ghost_Code.
510 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
512 (Contains_Ignored_Ghost_Code): New routine
513 along with pragma Inline.
514 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
515 * exp_ch3.adb Add with and use clauses for Ghost.
516 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
517 Set the Ghost_Mode in effect.
518 (Restore_Globals): New routine.
519 * exp_ch7.adb (Process_Declarations): Do not process a context
520 that invoves an ignored Ghost entity.
521 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
522 construct that has been rewritten as a null statement.
523 * exp_disp.adb Add with and use clauses for Ghost.
524 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
525 the Ghost_Mode in effect.
526 (Restore_Globals): New routine.
527 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
528 does not require any clean up. Add two missing cases that deal
529 with block statements.
530 * freeze.adb Add with and use clauses for Ghost.
531 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
532 Set the Ghost_Mode in effect.
533 (Restore_Globals): New routine.
534 * frontend.adb Add with and use clauses for Ghost. Remove any
535 ignored Ghost code from all units that qualify.
536 * ghost.adb New unit.
537 * ghost.ads New unit.
538 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
539 the table in package Ghost.
540 * lib.ads: Alphabetize several subprogram declarations.
541 * lib-xref.adb (Output_References): Do not generate reference
542 information for ignored Ghost entities.
543 * opt.ads Add new type Ghost_Mode_Type and new global variable
545 * rtsfind.adb (Load_RTU): Provide a clean environment when
546 loading a runtime unit.
547 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
548 entry/exit as the node may set a different mode.
550 Capture/restore the value of Ghost_Mode on entry/exit as the
551 unit may be withed from a unit with a different Ghost mode.
552 * sem_ch3.adb Add with and use clauses for Ghost.
553 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
554 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
555 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
556 the entity as Ghost when there is a Ghost_Mode in effect.
557 (Array_Type_Declaration): The implicit base type inherits the
558 "ghostness" from the array type.
559 (Derive_Subprogram): The
560 alias inherits the "ghostness" from the parent subprogram.
561 (Make_Implicit_Base): The implicit base type inherits the
562 "ghostness" from the parent type.
563 * sem_ch5.adb Add with and use clauses for Ghost.
564 (Analyze_Assignment): Set the Ghost_Mode in effect.
565 * sem_ch6.adb Add with and use clauses for Ghost.
566 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
567 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
568 Set the Ghost_Mode in effect. Mark the entity as Ghost when
569 there is a Ghost_Mode in effect.
570 * sem_ch7.adb Add with and use clauses for Ghost.
571 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
572 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
573 effect. Mark the entity as Ghost when there is a Ghost_Mode
575 * sem_ch8.adb Add with and use clauses for Ghost.
576 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
577 Analyze_Object_Renaming, Analyze_Package_Renaming,
578 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
579 the entity as Ghost when there is a Ghost_Mode in effect.
580 (Find_Type): Check the Ghost context of a type.
581 * sem_ch11.adb Add with and use clauses for Ghost.
582 (Analyze_Exception_Declaration): Set the Ghost_Mode in
583 effect. Mark the entity as Ghost when there is a Ghost_Mode
585 * sem_ch12.adb Add with and use clauses for Ghost.
586 (Analyze_Generic_Package_Declaration,
587 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
588 Mark the entity as Ghost when there is a Ghost_Mode in effect.
589 * sem_prag.adb Add with and use clauses for Ghost.
590 (Analyze_Pragma): Ghost-related checks are triggered when there
591 is a Ghost mode in effect.
592 (Create_Abstract_State): Mark the
593 entity as Ghost when there is a Ghost_Mode in effect.
594 * sem_res.adb Add with and use clauses for Ghost.
595 (Check_Ghost_Context): Removed.
596 * sem_util.adb (Check_Ghost_Completion): Removed.
597 (Check_Ghost_Derivation): Removed.
598 (Incomplete_Or_Partial_View):
599 Add a guard in case the entity has not been analyzed yet
600 and does carry a scope.
601 (Is_Declaration): New routine.
602 (Is_Ghost_Entity): Removed.
603 (Is_Ghost_Statement_Or_Pragma):
605 (Is_Subject_To_Ghost): Removed.
606 (Set_Is_Ghost_Entity):
608 (Within_Ghost_Scope): Removed.
609 * sem_util.adb (Check_Ghost_Completion): Removed.
610 (Check_Ghost_Derivation): Removed.
611 (Is_Declaration): New routine.
612 (Is_Ghost_Entity): Removed.
613 (Is_Ghost_Statement_Or_Pragma): Removed.
614 (Is_Subject_To_Ghost): Removed.
615 (Set_Is_Ghost_Entity): Removed.
616 (Within_Ghost_Scope): Removed.
617 * sinfo.ads Add a section on Ghost mode.
618 * treepr.adb (Print_Header_Flag): New routine.
619 (Print_Node_Header): Factor out code. Output flag
620 Is_Ignored_Ghost_Node.
621 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
623 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
625 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
626 true test and unreachable 'else' arm.
628 2015-01-06 Vincent Celier <celier@adacore.com>
630 * prj-conf.adb (Check_Target): Improve error message when
631 there are mismatched targets between the on in the configuration
632 project file and the specified one, either in the main project
633 file or in the --target= switch.
635 2015-01-06 Pascal Obry <obry@adacore.com>
637 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
638 Install_Name attribute definitions.
640 2015-01-06 Ed Schonberg <schonberg@adacore.com>
642 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
643 generated Import pragma for the internal imported procedure does
644 not come from an aspect, so that Is_Imported can be properly
647 2015-01-06 Gary Dismukes <dismukes@adacore.com>
649 * sem_ch12.adb (Might_Inline_Subp): Record whether
650 any subprograms in the generic package are marked with
651 pragma Inline_Always (setting flag Has_Inline_Always).
652 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
653 alongside existing test of Front_End_Inlining as alternative
654 conditions for setting Inline_Now. Also add test of
655 Has_Inline_Always along with Front_End_Inlining test as an
656 alternative condition for setting Needs_Body to False.
658 2015-01-06 Tristan Gingold <gingold@adacore.com>
660 * i-cpoint.adb (Copy_Array): Handle overlap.
662 2015-01-06 Pascal Obry <obry@adacore.com>
664 * bindgen.adb: Minor style fix.
666 2015-01-06 Robert Dewar <dewar@adacore.com>
668 * sem_util.ads, sem_util.adb: Minor reformatting.
670 2015-01-06 Vincent Celier <celier@adacore.com>
672 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
673 with flags before parsing the projects.
674 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
675 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
676 to True in the flags, when Ignore_Missing_With is True and an
677 imported project cannot be found.
678 * prj-proc.adb (Expression): When there are incomplete withs and
679 a variable or attribute is not found, set the variable/attribute
681 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
684 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
686 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
687 prj-err.adb: Add new switch --no-command-line.
689 2015-01-06 Ed Schonberg <schonberg@adacore.com>
691 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
693 2015-01-06 Robert Dewar <dewar@adacore.com>
695 * sem_ch11.adb: Minor reformatting.
697 2015-01-06 Ed Schonberg <schonberg@adacore.com>
699 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
700 Build_Array_Aggr_Code, used to initialized components covered
701 by a box association. If the component type is scalar and has
702 a default aspect, use it to initialize such components.
704 2015-01-06 Pascal Obry <obry@adacore.com>
706 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
707 control the setup of the exception handler.
708 * initialize.c: Remove unused declaration.
709 * bindgen.adb: Always call __gnat_runtime_initialize and pass
710 whether the exeception handler must be set or not.
712 2015-01-06 Thomas Quinot <quinot@adacore.com>
714 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
715 order to native from default, make sure to also adjust bit order.
716 * exp_aggr.adb: Minor reformatting.
718 2015-01-06 Robert Dewar <dewar@adacore.com>
720 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
721 s-valrea.adb, s-valrea.ads: Add some additional guards for
722 Str'Last = Positive'Last.
724 2015-01-06 Ed Schonberg <schonberg@adacore.com>
726 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
729 2015-01-06 Javier Miranda <miranda@adacore.com>
731 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
733 2015-01-06 Thomas Quinot <quinot@adacore.com>
735 * sem_util.ads: Minor reformatting.
736 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
737 (In_RCI_Declaration) Return to old name, as proper checking of
738 entity being in the visible part depends on entity kind and must
739 be done by the caller.
741 2015-01-06 Ed Schonberg <schonberg@adacore.com>
743 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
744 for operators in SPARK.
746 2015-01-06 Ed Schonberg <schonberg@adacore.com>
748 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
749 expression in an others association before making copies for
750 separate resolution and accessibility checks. This ensures that
751 the type of the expression is available to ASIS in all cases,
752 in particular if the expression is itself an aggregate.
754 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
756 * einfo.ads (Has_Independent_Components): Document extended
758 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
759 (Set_Has_Independent_Components): Adjust assertion.
760 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
761 for pragma Atomic_Components. Set Has_Independent_Components
762 on the object instead of the type for an object declaration with
763 pragma Independent_Components.
765 2015-01-06 Olivier Hainque <hainque@adacore.com>
767 * set_targ.adb (Read_Target_Dependent_Values): Set
768 Long_Double_Index when "long double" is read.
769 (elaboration code): Register_Back_End_Types only when not reading from
770 config files. Doing otherwise is pointless and error prone.
772 2015-01-06 Robert Dewar <dewar@adacore.com>
774 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
776 2015-01-06 Robert Dewar <dewar@adacore.com>
778 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
779 Str'Last = Positive'Last.
781 2015-01-06 Ed Schonberg <schonberg@adacore.com>
783 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
784 where the non-limited type is a generic actual and appears as
785 a subtype of the non-limited view of the other.
786 * freeze.adb (Build_Renamed_Body): If the return type of the
787 declaration that is being completed is a limited view and the
788 non-limited view is available, use it in the specification of
791 2015-01-06 Ed Schonberg <schonberg@adacore.com>
793 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
794 incomplete view, the type of the classwide type common to both
795 views is the type being declared.
797 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
799 * einfo.ads (Is_Independent): Further document extended usage.
801 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
803 * einfo.ads (Is_Independent): Document extended usage.
804 * einfo.adb (Is_Independent): Remove obsolete assertion.
805 (Set_Is_Independent): Likewise.
806 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
807 (Process_Atomic_Independent_Shared_Volatile): ...this.
808 Deal with pragma Independent here.
809 (Analyze_Pragma): Adjust
810 to above renaming and also invoke it for pragma Independent.
811 Adjust comment for Independent_Components.
813 2015-01-06 Robert Dewar <dewar@adacore.com>
815 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
816 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
818 2015-01-06 Robert Dewar <dewar@adacore.com>
820 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
822 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
823 Str'Last = Positive'Last.
825 2015-01-06 Robert Dewar <dewar@adacore.com>
827 * sem_prag.adb (Process_Inline): Remove redundant construct
828 warning (-gnatw.r) for an ineffective pragma Inline.
830 2015-01-06 Robert Dewar <dewar@adacore.com>
832 * s-valint.adb: Fix typo in last checkin.
833 * s-valuns.adb (Value_Unsigned): More efficient fix for
835 * sem_attr.adb (Analyze_Attribute): Minor reformatting
836 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
838 2015-01-06 Robert Dewar <dewar@adacore.com>
840 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
841 Str'Last = Positive'Last
843 2015-01-06 Thomas Quinot <quinot@adacore.com>
845 * xoscons.adb: Display exception information and return non-zero
846 exit status in top level exception handler.
848 2015-01-06 Ed Schonberg <schonberg@adacore.com>
850 * sem_ch8.adb: Code clean up.
852 2015-01-06 Tristan Gingold <gingold@adacore.com>
854 * targparm.ads: Remove obsolete comment.
856 2015-01-06 Olivier Hainque <hainque@adacore.com>
858 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
859 constructing a ref to variable, update inner_const_flag from the
860 variable TREE_READONLY attribute.
861 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
863 (get_target_float_size): Remove.
864 (get_target_double_size): Remove.
865 (get_target_long_double_size): Remove.
867 2015-01-06 Pascal Obry <obry@adacore.com>
869 * adaint.c (ProcListEvt): Set to NULL.
870 * rtinit.c: New file.
871 (__gnat_rt_init_count): New reference counter set to 0.
872 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
873 this code is actually needed for the runtime initialization. This
874 routine returns immediately if the initialization has already been done.
875 * final.c: Revert previous change.
876 * rtfinal.c: New file.
877 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
878 section and event. The default version of this routine is empty (except
879 for the reference counting code). This routine returns immediately if
880 some others libraries are referencing the runtime.
881 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
882 remove circuitry to initialize the signal handler as this is
883 now done by the runtime initialization routine.
884 (Gen_Adafinal): Generate call to Runtime_Finalize.
885 * gnat_ugn.texi: Update documentation about concurrency and
886 initialization/finalization of the run-time.
887 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
888 references to rtfinal.o and rtinit.o
890 2015-01-06 Robert Dewar <dewar@adacore.com>
892 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
894 * sem_attr.adb: Implement Enum_Image attribute.
895 * snames.ads-tmpl: Add entries for Enum_Image attribute.
897 2015-01-06 Robert Dewar <dewar@adacore.com>
899 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
900 * restrict.ads (No_Use_Of_Entity): New table.
901 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
902 Ignore No_Use_Of_Entity (will be processed in parser).
903 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
905 2015-01-06 Vincent Celier <celier@adacore.com>
907 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
908 to check for an extended project, if a project does not have
909 yet a project declaration.
911 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
913 * scos.ads: Update documentation about the SCO table build
914 process and about table records format.
915 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
916 (SCO_Record_Filtered): New procedure.
917 (Set_SCO_Logical_Operator): New procedure.
918 (dsco): Update documentation.
919 * par_sco.adb: Update library-level comments.
920 (SCO_Generation_State_Type): New type.
921 (SCO_Generation_State): New variable.
922 (SCO_Raw_Table): New package instanciation.
923 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
925 (Tristate): New type.
926 (Is_Logical_Operator): Return Tristate and update documentation.
927 (Has_Decision): Update call to Is_Logical_Operator and complete
929 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
930 comment, add an assertion for state checking and change
931 references to SCO_Table into SCO_Raw_Table.
932 (dsco): Refactor to dump the raw and the filtered tables.
933 (Process_Decisions.Output_Decision_Operand): Handle putative
934 short-circuit operators.
935 (Process_Decisions.Output_Element): Update references
936 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
937 (Process_Decisions.Process_Decision_Operand): Update call
938 to Is_Logical_Operator.
939 (Process_Decisions.Process_Node): Handle putative short-circuit
940 operators and change references to
941 SCO_Table into SCO_Raw_Table.
942 (SCO_Output): Add an assertion
943 for state checking and remove code that used to stamp out SCO entries.
944 (SCO_Pragma_Disabled): Change reference to SCO_Table
946 (SCO_Record): Rename to SCO_Record_Raw,
947 add an assertion for state checking and change references
948 to SCO_Table into SCO_Raw_Table.
949 (Set_SCO_Condition): Add an assertion for state checking, update
950 references to Condition_Pragma_Hash_Table and change references to
951 SCO_Table into SCO_Raw_Table.
952 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
953 change references to SCO_Table into SCO_Raw_Table.
954 (Set_SCO_Logical_Operator): New procedure.
955 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
956 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
957 (SCO_Record_Fildered): New procedure.
958 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
959 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
961 * par-load.adb (Load): Update reference to SCO_Record.
962 * par.adb (Par): Update reference to SCO_Record.
963 * put_scos.adb (Put_SCOs): Add an assertion to check that no
964 putative SCO condition reaches this end.
965 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
966 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
967 when corresponding to an "and"/"or" operator affected by the
968 Short_Circuit_And_Or pragma.
970 2015-01-06 Robert Dewar <dewar@adacore.com>
972 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
973 msg for attempted USE of generic subprogram or subprogram.
975 2015-01-06 Robert Dewar <dewar@adacore.com>
977 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
978 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
979 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
981 2015-01-06 Ed Schonberg <schonberg@adacore.com>
983 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
984 that specify stream subprograms, if the prefix is a class-wide
985 type then the generated attribute definition clause must apply
986 to the same class-wide type.
987 (Default_Iterator): An iterator defined by an aspect of some
988 container type T must have a first parameter of type T, T'class,
989 or an access to such (from code reading RM 5.5.1 (2/3)).
991 2015-01-06 Arnaud Charlet <charlet@adacore.com>
993 * gnat1drv.adb: Minor: complete previous change.
995 2015-01-06 Olivier Hainque <hainque@adacore.com>
997 * set_targ.ads (C_Type_For): New function. Return the name of
998 a C type supported by the back-end and suitable as a basis to
999 construct the standard Ada floating point type identified by
1000 the T parameter. This is used as a common ground to feed both
1001 ttypes values and the GNAT tree nodes for the standard floating
1003 * set_targ.adb (Long_Double_Index): The index at which "long
1004 double" gets registered in the FPT_Mode_Table. This is useful to
1005 know whether we have a "long double" available at all and get at
1006 it's characteristics without having to search the FPT_Mode_Table
1007 when we need to decide which C type should be used as the
1008 basis for Long_Long_Float in Ada.
1009 (Register_Float_Type): Fill Long_Double_Index.
1010 (FPT_Mode_Index_For): New function. Return the index in
1011 FPT_Mode_Table that designates the entry corresponding to the
1012 provided C type name.
1013 (FPT_Mode_Index_For): New function. Return the index in
1014 FPT_Mode_Table that designates the entry for a back-end type
1015 suitable as a basis to construct the standard Ada floating point
1016 type identified by the input T parameter.
1017 (elaboration code): Register_Back_End_Types unconditionally,
1018 so C_Type_For can operate regardless of -gnateT. Do it
1019 early so we can query it for the floating point sizes, via
1020 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
1021 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
1022 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
1023 which C type should be used as the basis for the construction
1024 of the Standard Ada floating point types.
1025 * get_targ.ads (Get_Float_Size, Get_Double_Size,
1026 Get_Long_Double_Size): Remove.
1027 * get_targ.adb: Likewise.
1029 2015-01-06 Thomas Quinot <quinot@adacore.com>
1031 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
1032 parameter and rename to...
1033 (In_RCI_Visible_Declarations): Fix handling of private part of nested
1035 (Validate_RCI_Subprogram_Declaration): Reject illegal function
1036 returning anonymous access in RCI unit.
1038 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1040 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
1041 function wrapper may be a homonym of another local declaration.
1042 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
1043 build function and operator wrappers after the actual subprogram
1044 has been resolved, and replace the standard renaming declaration
1045 with the declaration of wrapper.
1046 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
1047 make public for use elsewhere.
1048 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
1049 rewrite, now that actual is fully resolved when wrapper is
1052 2015-01-06 Javier Miranda <miranda@adacore.com>
1054 * exp_disp.adb: Revert previous change.
1056 2015-01-06 Robert Dewar <dewar@adacore.com>
1058 * exp_util.adb: Change name Name_Table_Boolean to
1059 Name_Table_Boolean1.
1060 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
1061 Introduce Name_Table_Boolean2/3.
1062 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
1063 Introduce Name_Table_Boolean2/3.
1064 * par-ch13.adb: Change name Name_Table_Boolean to
1065 Name_Table_Boolean1.
1067 2015-01-06 Bob Duff <duff@adacore.com>
1069 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
1071 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1073 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
1074 others choice that covers multiple components, analyze each
1075 copy with the type of the component even in compile-only mode,
1076 to detect potential accessibility errors.
1078 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1080 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
1081 (Resolve_Actuals): An effectively volatile out
1082 parameter cannot act as an in or in out actual in a call.
1083 (Resolve_Entity_Name): An effectively volatile out parameter
1086 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1088 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
1089 the expansion of an expression function it may be pre-analyzed
1090 if a 'access attribute is applied to the function, in which case
1091 last_entity may have been assigned already.
1093 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1095 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
1096 type and actual has the corresponding full view, there is no
1097 error, but a case of use of incomplete type in a predicate or
1098 invariant expression.
1100 2015-01-06 Vincent Celier <celier@adacore.com>
1102 * makeutl.adb (Insert_No_Roots): Make sure that the same source
1103 in two different project tree is checked in both trees, if they
1104 are sources of two different projects, extended or not.
1106 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1108 * gnat1drv.adb: Minor code clean up.
1109 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
1111 2015-01-06 Bob Duff <duff@adacore.com>
1113 * osint.adb (Read_Source_File): Don't print out
1114 file name unless T = Source.
1116 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1118 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
1119 recognize improper uses of constant_reference types as actuals
1120 for in-out parameters.
1121 (Check_Function_Call): Do not collect identifiers if function
1122 name is missing because of previous error.
1124 2015-01-06 Robert Dewar <dewar@adacore.com>
1126 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
1127 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
1128 Minor change of name Name_Table_Info => Name_Table_Int.
1130 2015-01-06 Robert Dewar <dewar@adacore.com>
1132 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
1133 in previous checkin.
1134 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
1136 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
1138 2015-01-06 Vincent Celier <celier@adacore.com>
1140 * a-strsup.adb (Times (Natural;String;Positive)): Raise
1141 Length_Error, not Index_Error, when the result is too long.
1143 2015-01-06 Thomas Quinot <quinot@adacore.com>
1145 * a-direct.adb (Create_Path): Minor error handling and
1146 performance improvement.
1148 2015-01-06 Robert Dewar <dewar@adacore.com>
1150 * checks.ads, sem_ch12.adb: Minor reformatting.
1151 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
1152 zero check for fixed-point case if Backend_Divide_Checks_On_Target
1155 2015-01-06 Robert Dewar <dewar@adacore.com>
1157 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
1158 Do not set restriction No_Elaboration_Code unless the pragma
1159 appears in the main unit).
1161 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1163 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
1164 that with clause has already been analyzed before checking kind
1167 2015-01-06 Robert Dewar <dewar@adacore.com>
1169 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
1170 (as required by RM).
1172 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1174 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
1176 2015-01-06 Robert Dewar <dewar@adacore.com>
1178 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
1179 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
1181 2015-01-06 Javier Miranda <miranda@adacore.com>
1183 * exp_disp.adb (Expand_Interface_Conversion): No displacement
1184 of the pointer to the object needed when the type of the operand
1185 is not an interface type and the interface is one of its parent
1186 types (since they share the primary dispatch table).
1188 2015-01-06 Vincent Celier <celier@adacore.com>
1190 * prj-env.adb: Minor comment update.
1192 2015-01-06 Javier Miranda <miranda@adacore.com>
1194 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
1195 access types whose target type is an interface type to operands
1196 that are access types; required to report an error when the
1197 operand is not an access type.
1199 2015-01-06 Bob Duff <duff@adacore.com>
1201 * a-cfinve.adb (Copy): Set the discriminant to the Length when
1203 * a-cofove.ads (Capacity): Add a postcondition.
1204 * a-cfinve.ads (Capacity): Add a postcondition.
1205 (Reserve_Capacity): Correct the postcondition in the case where
1206 Capacity = 0; that means "Capacity => Length (Container)".
1207 * a-cofove.adb (Elems[c]): Add a comment
1208 explaining the dangers and how to avoid them.
1210 2015-01-06 Ed Schonberg <schonberg@adacore.com>
1212 * sem_ch12.adb: Code clean up.
1214 2015-01-06 Arnaud Charlet <charlet@adacore.com>
1216 * gnatvsn.ads: Bump copyright year.
1218 2015-01-06 Robert Dewar <dewar@adacore.com>
1220 * s-taskin.ads, s-traces.ads: Minor reformatting.
1221 * exp_util.adb: Minor typo fix.
1223 2015-01-06 Vincent Celier <celier@adacore.com>
1225 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
1226 with the runtime name.
1227 * prj-env.adb (Initialize_Default_Project_Path): When both
1228 Target_Name and Runtime_Name are not empty string, add to the
1229 project path the two directories .../lib/gnat and .../share/gpr
1230 related to the runtime.
1231 * prj-env.ads (Initialize_Default_Project_Path): New String
1232 parameter Runtime_Name, defaulted to the empty string.
1234 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1236 * frontend.adb: Guard against the case where a configuration
1237 pragma may be split into multiple pragmas and the original
1238 rewritten as a null statement.
1239 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
1240 pragma using Insert_Before rather than Insert_Action. This
1241 takes care of the configuration pragma case where Insert_Action
1244 2015-01-06 Bob Duff <duff@adacore.com>
1246 * a-coboho.ads (Element_Access): Add "pragma
1247 No_Strict_Aliasing (Element_Access);". This is needed because
1248 we are unchecked-converting from Address to Element_Access.
1249 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
1252 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
1254 * sem_res.adb (Resolve_Actuals): Remove the
1255 restriction which prohibits volatile actual parameters with
1256 enabled external propery Async_Writers to act appear in procedure
1257 calls where the corresponding formal is of mode OUT.
1259 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1261 * gnat_ugn.texi: Bump @copying's copyright year.
1263 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
1266 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
1268 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
1270 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
1271 of unchecked asprintf.
1274 Copyright (C) 2015 Free Software Foundation, Inc.
1276 Copying and distribution of this file, with or without modification,
1277 are permitted in any medium without royalty provided the copyright
1278 notice and this notice are preserved.