1 2015-01-07 Robert Dewar <dewar@adacore.com>
3 * sem_ch3.adb: Minor error message change.
5 2015-01-07 Ed Schonberg <schonberg@adacore.com>
7 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
8 Following AI05-028, the pragam applies legally to any composite type.
10 2015-01-07 Arnaud Charlet <charlet@adacore.com>
12 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
13 (sigwait, sigwaitinfo): Removed, not needed after all on any
14 VxWorks configurations.
16 2015-01-07 Robert Dewar <dewar@adacore.com>
18 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
20 2015-01-07 Javier Miranda <miranda@adacore.com>
22 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
23 generation of accessibility check.
25 2015-01-07 Ed Schonberg <schonberg@adacore.com>
27 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
28 illegal completion from a class- wide type, set etype of the
29 derived type properly to prevent cascaded errors.
31 2015-01-07 Robert Dewar <dewar@adacore.com>
33 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
36 2015-01-07 Robert Dewar <dewar@adacore.com>
38 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
40 (OK_No_Use_Of_Entity_Name): New function.
41 (Set_Restriction_No_Use_Of_Entity): New procedure.
42 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
44 (OK_No_Use_Of_Entity_Name): New function.
45 (Set_Restriction_No_Use_Of_Entity): New procedure.
46 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
48 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
49 Add processing for new restriction No_Use_Of_Entity.
51 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
53 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
54 component type as to Has_Atomic_Components type. Remove useless
55 test on Is_Aliased component type.
57 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
59 * alloc.ads Alphabetize several declarations. Add constants
60 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
61 * atree.adb Add with and use clauses for Opt.
62 (Allocate_Initialize_Node): Mark a node as ignored Ghost
63 if it is created in an ignored Ghost region.
64 (Ekind_In): New variant.
65 (Is_Ignored_Ghost_Node): New routine.
66 (Set_Is_Ignored_Ghost_Node): New routine.
67 * atree.adb Aplhabetize several subprograms declarations. Flag
68 Spare0 is now known as Is_Ignored_Ghost_Node.
69 (Ekind_In): New variant.
70 (Is_Ignored_Ghost_Node): New routine.
71 (Set_Is_Ignored_Ghost_Node): New routine.
72 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
73 (Contains_Ignored_Ghost_Code): New routine.
74 (Set_Contains_Ignored_Ghost_Code): New routine.
75 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
76 It is now possible to set this property on an unanalyzed entity.
77 (Write_Entity_Flags): Output the status of flag
78 Contains_Ignored_Ghost_Code.
79 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
81 (Contains_Ignored_Ghost_Code): New routine
82 along with pragma Inline.
83 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
84 * exp_ch3.adb Add with and use clauses for Ghost.
85 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
86 Set the Ghost_Mode in effect.
87 (Restore_Globals): New routine.
88 * exp_ch7.adb (Process_Declarations): Do not process a context
89 that invoves an ignored Ghost entity.
90 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
91 construct that has been rewritten as a null statement.
92 * exp_disp.adb Add with and use clauses for Ghost.
93 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
94 the Ghost_Mode in effect.
95 (Restore_Globals): New routine.
96 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
97 does not require any clean up. Add two missing cases that deal
98 with block statements.
99 * freeze.adb Add with and use clauses for Ghost.
100 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
101 Set the Ghost_Mode in effect.
102 (Restore_Globals): New routine.
103 * frontend.adb Add with and use clauses for Ghost. Remove any
104 ignored Ghost code from all units that qualify.
105 * ghost.adb New unit.
106 * ghost.ads New unit.
107 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
108 the table in package Ghost.
109 * lib.ads: Alphabetize several subprogram declarations.
110 * lib-xref.adb (Output_References): Do not generate reference
111 information for ignored Ghost entities.
112 * opt.ads Add new type Ghost_Mode_Type and new global variable
114 * rtsfind.adb (Load_RTU): Provide a clean environment when
115 loading a runtime unit.
116 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
117 entry/exit as the node may set a different mode.
119 Capture/restore the value of Ghost_Mode on entry/exit as the
120 unit may be withed from a unit with a different Ghost mode.
121 * sem_ch3.adb Add with and use clauses for Ghost.
122 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
123 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
124 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
125 the entity as Ghost when there is a Ghost_Mode in effect.
126 (Array_Type_Declaration): The implicit base type inherits the
127 "ghostness" from the array type.
128 (Derive_Subprogram): The
129 alias inherits the "ghostness" from the parent subprogram.
130 (Make_Implicit_Base): The implicit base type inherits the
131 "ghostness" from the parent type.
132 * sem_ch5.adb Add with and use clauses for Ghost.
133 (Analyze_Assignment): Set the Ghost_Mode in effect.
134 * sem_ch6.adb Add with and use clauses for Ghost.
135 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
136 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
137 Set the Ghost_Mode in effect. Mark the entity as Ghost when
138 there is a Ghost_Mode in effect.
139 * sem_ch7.adb Add with and use clauses for Ghost.
140 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
141 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
142 effect. Mark the entity as Ghost when there is a Ghost_Mode
144 * sem_ch8.adb Add with and use clauses for Ghost.
145 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
146 Analyze_Object_Renaming, Analyze_Package_Renaming,
147 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
148 the entity as Ghost when there is a Ghost_Mode in effect.
149 (Find_Type): Check the Ghost context of a type.
150 * sem_ch11.adb Add with and use clauses for Ghost.
151 (Analyze_Exception_Declaration): Set the Ghost_Mode in
152 effect. Mark the entity as Ghost when there is a Ghost_Mode
154 * sem_ch12.adb Add with and use clauses for Ghost.
155 (Analyze_Generic_Package_Declaration,
156 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
157 Mark the entity as Ghost when there is a Ghost_Mode in effect.
158 * sem_prag.adb Add with and use clauses for Ghost.
159 (Analyze_Pragma): Ghost-related checks are triggered when there
160 is a Ghost mode in effect.
161 (Create_Abstract_State): Mark the
162 entity as Ghost when there is a Ghost_Mode in effect.
163 * sem_res.adb Add with and use clauses for Ghost.
164 (Check_Ghost_Context): Removed.
165 * sem_util.adb (Check_Ghost_Completion): Removed.
166 (Check_Ghost_Derivation): Removed.
167 (Incomplete_Or_Partial_View):
168 Add a guard in case the entity has not been analyzed yet
169 and does carry a scope.
170 (Is_Declaration): New routine.
171 (Is_Ghost_Entity): Removed.
172 (Is_Ghost_Statement_Or_Pragma):
174 (Is_Subject_To_Ghost): Removed.
175 (Set_Is_Ghost_Entity):
177 (Within_Ghost_Scope): Removed.
178 * sem_util.adb (Check_Ghost_Completion): Removed.
179 (Check_Ghost_Derivation): Removed.
180 (Is_Declaration): New routine.
181 (Is_Ghost_Entity): Removed.
182 (Is_Ghost_Statement_Or_Pragma): Removed.
183 (Is_Subject_To_Ghost): Removed.
184 (Set_Is_Ghost_Entity): Removed.
185 (Within_Ghost_Scope): Removed.
186 * sinfo.ads Add a section on Ghost mode.
187 * treepr.adb (Print_Header_Flag): New routine.
188 (Print_Node_Header): Factor out code. Output flag
189 Is_Ignored_Ghost_Node.
190 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
192 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
194 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
195 true test and unreachable 'else' arm.
197 2015-01-06 Vincent Celier <celier@adacore.com>
199 * prj-conf.adb (Check_Target): Improve error message when
200 there are mismatched targets between the on in the configuration
201 project file and the specified one, either in the main project
202 file or in the --target= switch.
204 2015-01-06 Pascal Obry <obry@adacore.com>
206 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
207 Install_Name attribute definitions.
209 2015-01-06 Ed Schonberg <schonberg@adacore.com>
211 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
212 generated Import pragma for the internal imported procedure does
213 not come from an aspect, so that Is_Imported can be properly
216 2015-01-06 Gary Dismukes <dismukes@adacore.com>
218 * sem_ch12.adb (Might_Inline_Subp): Record whether
219 any subprograms in the generic package are marked with
220 pragma Inline_Always (setting flag Has_Inline_Always).
221 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
222 alongside existing test of Front_End_Inlining as alternative
223 conditions for setting Inline_Now. Also add test of
224 Has_Inline_Always along with Front_End_Inlining test as an
225 alternative condition for setting Needs_Body to False.
227 2015-01-06 Tristan Gingold <gingold@adacore.com>
229 * i-cpoint.adb (Copy_Array): Handle overlap.
231 2015-01-06 Pascal Obry <obry@adacore.com>
233 * bindgen.adb: Minor style fix.
235 2015-01-06 Robert Dewar <dewar@adacore.com>
237 * sem_util.ads, sem_util.adb: Minor reformatting.
239 2015-01-06 Vincent Celier <celier@adacore.com>
241 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
242 with flags before parsing the projects.
243 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
244 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
245 to True in the flags, when Ignore_Missing_With is True and an
246 imported project cannot be found.
247 * prj-proc.adb (Expression): When there are incomplete withs and
248 a variable or attribute is not found, set the variable/attribute
250 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
253 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
255 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
256 prj-err.adb: Add new switch --no-command-line.
258 2015-01-06 Ed Schonberg <schonberg@adacore.com>
260 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
262 2015-01-06 Robert Dewar <dewar@adacore.com>
264 * sem_ch11.adb: Minor reformatting.
266 2015-01-06 Ed Schonberg <schonberg@adacore.com>
268 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
269 Build_Array_Aggr_Code, used to initialized components covered
270 by a box association. If the component type is scalar and has
271 a default aspect, use it to initialize such components.
273 2015-01-06 Pascal Obry <obry@adacore.com>
275 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
276 control the setup of the exception handler.
277 * initialize.c: Remove unused declaration.
278 * bindgen.adb: Always call __gnat_runtime_initialize and pass
279 whether the exeception handler must be set or not.
281 2015-01-06 Thomas Quinot <quinot@adacore.com>
283 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
284 order to native from default, make sure to also adjust bit order.
285 * exp_aggr.adb: Minor reformatting.
287 2015-01-06 Robert Dewar <dewar@adacore.com>
289 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
290 s-valrea.adb, s-valrea.ads: Add some additional guards for
291 Str'Last = Positive'Last.
293 2015-01-06 Ed Schonberg <schonberg@adacore.com>
295 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
298 2015-01-06 Javier Miranda <miranda@adacore.com>
300 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
302 2015-01-06 Thomas Quinot <quinot@adacore.com>
304 * sem_util.ads: Minor reformatting.
305 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
306 (In_RCI_Declaration) Return to old name, as proper checking of
307 entity being in the visible part depends on entity kind and must
308 be done by the caller.
310 2015-01-06 Ed Schonberg <schonberg@adacore.com>
312 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
313 for operators in SPARK.
315 2015-01-06 Ed Schonberg <schonberg@adacore.com>
317 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
318 expression in an others association before making copies for
319 separate resolution and accessibility checks. This ensures that
320 the type of the expression is available to ASIS in all cases,
321 in particular if the expression is itself an aggregate.
323 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
325 * einfo.ads (Has_Independent_Components): Document extended
327 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
328 (Set_Has_Independent_Components): Adjust assertion.
329 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
330 for pragma Atomic_Components. Set Has_Independent_Components
331 on the object instead of the type for an object declaration with
332 pragma Independent_Components.
334 2015-01-06 Olivier Hainque <hainque@adacore.com>
336 * set_targ.adb (Read_Target_Dependent_Values): Set
337 Long_Double_Index when "long double" is read.
338 (elaboration code): Register_Back_End_Types only when not reading from
339 config files. Doing otherwise is pointless and error prone.
341 2015-01-06 Robert Dewar <dewar@adacore.com>
343 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
345 2015-01-06 Robert Dewar <dewar@adacore.com>
347 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
348 Str'Last = Positive'Last.
350 2015-01-06 Ed Schonberg <schonberg@adacore.com>
352 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
353 where the non-limited type is a generic actual and appears as
354 a subtype of the non-limited view of the other.
355 * freeze.adb (Build_Renamed_Body): If the return type of the
356 declaration that is being completed is a limited view and the
357 non-limited view is available, use it in the specification of
360 2015-01-06 Ed Schonberg <schonberg@adacore.com>
362 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
363 incomplete view, the type of the classwide type common to both
364 views is the type being declared.
366 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
368 * einfo.ads (Is_Independent): Further document extended usage.
370 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
372 * einfo.ads (Is_Independent): Document extended usage.
373 * einfo.adb (Is_Independent): Remove obsolete assertion.
374 (Set_Is_Independent): Likewise.
375 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
376 (Process_Atomic_Independent_Shared_Volatile): ...this.
377 Deal with pragma Independent here.
378 (Analyze_Pragma): Adjust
379 to above renaming and also invoke it for pragma Independent.
380 Adjust comment for Independent_Components.
382 2015-01-06 Robert Dewar <dewar@adacore.com>
384 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
385 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
387 2015-01-06 Robert Dewar <dewar@adacore.com>
389 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
391 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
392 Str'Last = Positive'Last.
394 2015-01-06 Robert Dewar <dewar@adacore.com>
396 * sem_prag.adb (Process_Inline): Remove redundant construct
397 warning (-gnatw.r) for an ineffective pragma Inline.
399 2015-01-06 Robert Dewar <dewar@adacore.com>
401 * s-valint.adb: Fix typo in last checkin.
402 * s-valuns.adb (Value_Unsigned): More efficient fix for
404 * sem_attr.adb (Analyze_Attribute): Minor reformatting
405 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
407 2015-01-06 Robert Dewar <dewar@adacore.com>
409 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
410 Str'Last = Positive'Last
412 2015-01-06 Thomas Quinot <quinot@adacore.com>
414 * xoscons.adb: Display exception information and return non-zero
415 exit status in top level exception handler.
417 2015-01-06 Ed Schonberg <schonberg@adacore.com>
419 * sem_ch8.adb: Code clean up.
421 2015-01-06 Tristan Gingold <gingold@adacore.com>
423 * targparm.ads: Remove obsolete comment.
425 2015-01-06 Olivier Hainque <hainque@adacore.com>
427 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
428 constructing a ref to variable, update inner_const_flag from the
429 variable TREE_READONLY attribute.
430 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
432 (get_target_float_size): Remove.
433 (get_target_double_size): Remove.
434 (get_target_long_double_size): Remove.
436 2015-01-06 Pascal Obry <obry@adacore.com>
438 * adaint.c (ProcListEvt): Set to NULL.
439 * rtinit.c: New file.
440 (__gnat_rt_init_count): New reference counter set to 0.
441 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
442 this code is actually needed for the runtime initialization. This
443 routine returns immediately if the initialization has already been done.
444 * final.c: Revert previous change.
445 * rtfinal.c: New file.
446 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
447 section and event. The default version of this routine is empty (except
448 for the reference counting code). This routine returns immediately if
449 some others libraries are referencing the runtime.
450 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
451 remove circuitry to initialize the signal handler as this is
452 now done by the runtime initialization routine.
453 (Gen_Adafinal): Generate call to Runtime_Finalize.
454 * gnat_ugn.texi: Update documentation about concurrency and
455 initialization/finalization of the run-time.
456 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
457 references to rtfinal.o and rtinit.o
459 2015-01-06 Robert Dewar <dewar@adacore.com>
461 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
463 * sem_attr.adb: Implement Enum_Image attribute.
464 * snames.ads-tmpl: Add entries for Enum_Image attribute.
466 2015-01-06 Robert Dewar <dewar@adacore.com>
468 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
469 * restrict.ads (No_Use_Of_Entity): New table.
470 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
471 Ignore No_Use_Of_Entity (will be processed in parser).
472 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
474 2015-01-06 Vincent Celier <celier@adacore.com>
476 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
477 to check for an extended project, if a project does not have
478 yet a project declaration.
480 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
482 * scos.ads: Update documentation about the SCO table build
483 process and about table records format.
484 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
485 (SCO_Record_Filtered): New procedure.
486 (Set_SCO_Logical_Operator): New procedure.
487 (dsco): Update documentation.
488 * par_sco.adb: Update library-level comments.
489 (SCO_Generation_State_Type): New type.
490 (SCO_Generation_State): New variable.
491 (SCO_Raw_Table): New package instanciation.
492 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
494 (Tristate): New type.
495 (Is_Logical_Operator): Return Tristate and update documentation.
496 (Has_Decision): Update call to Is_Logical_Operator and complete
498 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
499 comment, add an assertion for state checking and change
500 references to SCO_Table into SCO_Raw_Table.
501 (dsco): Refactor to dump the raw and the filtered tables.
502 (Process_Decisions.Output_Decision_Operand): Handle putative
503 short-circuit operators.
504 (Process_Decisions.Output_Element): Update references
505 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
506 (Process_Decisions.Process_Decision_Operand): Update call
507 to Is_Logical_Operator.
508 (Process_Decisions.Process_Node): Handle putative short-circuit
509 operators and change references to
510 SCO_Table into SCO_Raw_Table.
511 (SCO_Output): Add an assertion
512 for state checking and remove code that used to stamp out SCO entries.
513 (SCO_Pragma_Disabled): Change reference to SCO_Table
515 (SCO_Record): Rename to SCO_Record_Raw,
516 add an assertion for state checking and change references
517 to SCO_Table into SCO_Raw_Table.
518 (Set_SCO_Condition): Add an assertion for state checking, update
519 references to Condition_Pragma_Hash_Table and change references to
520 SCO_Table into SCO_Raw_Table.
521 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
522 change references to SCO_Table into SCO_Raw_Table.
523 (Set_SCO_Logical_Operator): New procedure.
524 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
525 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
526 (SCO_Record_Fildered): New procedure.
527 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
528 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
530 * par-load.adb (Load): Update reference to SCO_Record.
531 * par.adb (Par): Update reference to SCO_Record.
532 * put_scos.adb (Put_SCOs): Add an assertion to check that no
533 putative SCO condition reaches this end.
534 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
535 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
536 when corresponding to an "and"/"or" operator affected by the
537 Short_Circuit_And_Or pragma.
539 2015-01-06 Robert Dewar <dewar@adacore.com>
541 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
542 msg for attempted USE of generic subprogram or subprogram.
544 2015-01-06 Robert Dewar <dewar@adacore.com>
546 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
547 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
548 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
550 2015-01-06 Ed Schonberg <schonberg@adacore.com>
552 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
553 that specify stream subprograms, if the prefix is a class-wide
554 type then the generated attribute definition clause must apply
555 to the same class-wide type.
556 (Default_Iterator): An iterator defined by an aspect of some
557 container type T must have a first parameter of type T, T'class,
558 or an access to such (from code reading RM 5.5.1 (2/3)).
560 2015-01-06 Arnaud Charlet <charlet@adacore.com>
562 * gnat1drv.adb: Minor: complete previous change.
564 2015-01-06 Olivier Hainque <hainque@adacore.com>
566 * set_targ.ads (C_Type_For): New function. Return the name of
567 a C type supported by the back-end and suitable as a basis to
568 construct the standard Ada floating point type identified by
569 the T parameter. This is used as a common ground to feed both
570 ttypes values and the GNAT tree nodes for the standard floating
572 * set_targ.adb (Long_Double_Index): The index at which "long
573 double" gets registered in the FPT_Mode_Table. This is useful to
574 know whether we have a "long double" available at all and get at
575 it's characteristics without having to search the FPT_Mode_Table
576 when we need to decide which C type should be used as the
577 basis for Long_Long_Float in Ada.
578 (Register_Float_Type): Fill Long_Double_Index.
579 (FPT_Mode_Index_For): New function. Return the index in
580 FPT_Mode_Table that designates the entry corresponding to the
581 provided C type name.
582 (FPT_Mode_Index_For): New function. Return the index in
583 FPT_Mode_Table that designates the entry for a back-end type
584 suitable as a basis to construct the standard Ada floating point
585 type identified by the input T parameter.
586 (elaboration code): Register_Back_End_Types unconditionally,
587 so C_Type_For can operate regardless of -gnateT. Do it
588 early so we can query it for the floating point sizes, via
589 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
590 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
591 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
592 which C type should be used as the basis for the construction
593 of the Standard Ada floating point types.
594 * get_targ.ads (Get_Float_Size, Get_Double_Size,
595 Get_Long_Double_Size): Remove.
596 * get_targ.adb: Likewise.
598 2015-01-06 Thomas Quinot <quinot@adacore.com>
600 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
601 parameter and rename to...
602 (In_RCI_Visible_Declarations): Fix handling of private part of nested
604 (Validate_RCI_Subprogram_Declaration): Reject illegal function
605 returning anonymous access in RCI unit.
607 2015-01-06 Ed Schonberg <schonberg@adacore.com>
609 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
610 function wrapper may be a homonym of another local declaration.
611 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
612 build function and operator wrappers after the actual subprogram
613 has been resolved, and replace the standard renaming declaration
614 with the declaration of wrapper.
615 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
616 make public for use elsewhere.
617 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
618 rewrite, now that actual is fully resolved when wrapper is
621 2015-01-06 Javier Miranda <miranda@adacore.com>
623 * exp_disp.adb: Revert previous change.
625 2015-01-06 Robert Dewar <dewar@adacore.com>
627 * exp_util.adb: Change name Name_Table_Boolean to
629 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
630 Introduce Name_Table_Boolean2/3.
631 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
632 Introduce Name_Table_Boolean2/3.
633 * par-ch13.adb: Change name Name_Table_Boolean to
636 2015-01-06 Bob Duff <duff@adacore.com>
638 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
640 2015-01-06 Ed Schonberg <schonberg@adacore.com>
642 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
643 others choice that covers multiple components, analyze each
644 copy with the type of the component even in compile-only mode,
645 to detect potential accessibility errors.
647 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
649 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
650 (Resolve_Actuals): An effectively volatile out
651 parameter cannot act as an in or in out actual in a call.
652 (Resolve_Entity_Name): An effectively volatile out parameter
655 2015-01-06 Ed Schonberg <schonberg@adacore.com>
657 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
658 the expansion of an expression function it may be pre-analyzed
659 if a 'access attribute is applied to the function, in which case
660 last_entity may have been assigned already.
662 2015-01-06 Ed Schonberg <schonberg@adacore.com>
664 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
665 type and actual has the corresponding full view, there is no
666 error, but a case of use of incomplete type in a predicate or
667 invariant expression.
669 2015-01-06 Vincent Celier <celier@adacore.com>
671 * makeutl.adb (Insert_No_Roots): Make sure that the same source
672 in two different project tree is checked in both trees, if they
673 are sources of two different projects, extended or not.
675 2015-01-06 Arnaud Charlet <charlet@adacore.com>
677 * gnat1drv.adb: Minor code clean up.
678 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
680 2015-01-06 Bob Duff <duff@adacore.com>
682 * osint.adb (Read_Source_File): Don't print out
683 file name unless T = Source.
685 2015-01-06 Ed Schonberg <schonberg@adacore.com>
687 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
688 recognize improper uses of constant_reference types as actuals
689 for in-out parameters.
690 (Check_Function_Call): Do not collect identifiers if function
691 name is missing because of previous error.
693 2015-01-06 Robert Dewar <dewar@adacore.com>
695 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
696 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
697 Minor change of name Name_Table_Info => Name_Table_Int.
699 2015-01-06 Robert Dewar <dewar@adacore.com>
701 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
703 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
705 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
707 2015-01-06 Vincent Celier <celier@adacore.com>
709 * a-strsup.adb (Times (Natural;String;Positive)): Raise
710 Length_Error, not Index_Error, when the result is too long.
712 2015-01-06 Thomas Quinot <quinot@adacore.com>
714 * a-direct.adb (Create_Path): Minor error handling and
715 performance improvement.
717 2015-01-06 Robert Dewar <dewar@adacore.com>
719 * checks.ads, sem_ch12.adb: Minor reformatting.
720 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
721 zero check for fixed-point case if Backend_Divide_Checks_On_Target
724 2015-01-06 Robert Dewar <dewar@adacore.com>
726 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
727 Do not set restriction No_Elaboration_Code unless the pragma
728 appears in the main unit).
730 2015-01-06 Ed Schonberg <schonberg@adacore.com>
732 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
733 that with clause has already been analyzed before checking kind
736 2015-01-06 Robert Dewar <dewar@adacore.com>
738 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
741 2015-01-06 Arnaud Charlet <charlet@adacore.com>
743 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
745 2015-01-06 Robert Dewar <dewar@adacore.com>
747 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
748 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
750 2015-01-06 Javier Miranda <miranda@adacore.com>
752 * exp_disp.adb (Expand_Interface_Conversion): No displacement
753 of the pointer to the object needed when the type of the operand
754 is not an interface type and the interface is one of its parent
755 types (since they share the primary dispatch table).
757 2015-01-06 Vincent Celier <celier@adacore.com>
759 * prj-env.adb: Minor comment update.
761 2015-01-06 Javier Miranda <miranda@adacore.com>
763 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
764 access types whose target type is an interface type to operands
765 that are access types; required to report an error when the
766 operand is not an access type.
768 2015-01-06 Bob Duff <duff@adacore.com>
770 * a-cfinve.adb (Copy): Set the discriminant to the Length when
772 * a-cofove.ads (Capacity): Add a postcondition.
773 * a-cfinve.ads (Capacity): Add a postcondition.
774 (Reserve_Capacity): Correct the postcondition in the case where
775 Capacity = 0; that means "Capacity => Length (Container)".
776 * a-cofove.adb (Elems[c]): Add a comment
777 explaining the dangers and how to avoid them.
779 2015-01-06 Ed Schonberg <schonberg@adacore.com>
781 * sem_ch12.adb: Code clean up.
783 2015-01-06 Arnaud Charlet <charlet@adacore.com>
785 * gnatvsn.ads: Bump copyright year.
787 2015-01-06 Robert Dewar <dewar@adacore.com>
789 * s-taskin.ads, s-traces.ads: Minor reformatting.
790 * exp_util.adb: Minor typo fix.
792 2015-01-06 Vincent Celier <celier@adacore.com>
794 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
795 with the runtime name.
796 * prj-env.adb (Initialize_Default_Project_Path): When both
797 Target_Name and Runtime_Name are not empty string, add to the
798 project path the two directories .../lib/gnat and .../share/gpr
799 related to the runtime.
800 * prj-env.ads (Initialize_Default_Project_Path): New String
801 parameter Runtime_Name, defaulted to the empty string.
803 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
805 * frontend.adb: Guard against the case where a configuration
806 pragma may be split into multiple pragmas and the original
807 rewritten as a null statement.
808 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
809 pragma using Insert_Before rather than Insert_Action. This
810 takes care of the configuration pragma case where Insert_Action
813 2015-01-06 Bob Duff <duff@adacore.com>
815 * a-coboho.ads (Element_Access): Add "pragma
816 No_Strict_Aliasing (Element_Access);". This is needed because
817 we are unchecked-converting from Address to Element_Access.
818 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
821 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
823 * sem_res.adb (Resolve_Actuals): Remove the
824 restriction which prohibits volatile actual parameters with
825 enabled external propery Async_Writers to act appear in procedure
826 calls where the corresponding formal is of mode OUT.
828 2015-01-05 Jakub Jelinek <jakub@redhat.com>
830 * gnat_ugn.texi: Bump @copying's copyright year.
832 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
835 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
837 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
839 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
840 of unchecked asprintf.
843 Copyright (C) 2015 Free Software Foundation, Inc.
845 Copying and distribution of this file, with or without modification,
846 are permitted in any medium without royalty provided the copyright
847 notice and this notice are preserved.