[multiple changes]
[gcc.git] / gcc / ada / ChangeLog
1 2015-05-22 Robert Dewar <dewar@adacore.com>
2
3 * sem_ch8.adb (Analyze_Object_Renaming): Check for renaming
4 component of an object to which Volatile_Full_Access applies.
5
6 2015-05-22 Jerome Guitton <guitton@adacore.com>
7
8 * exp_dbug.ads: Add note about non bit-packed arrays.
9
10 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
11
12 * sem_prag.adb: Fix typo.
13 * einfo.ads: Grammar fixes in comments.
14
15 2015-05-22 Bob Duff <duff@adacore.com>
16
17 * a-cborma.ads, a-cidlli.ads, a-cimutr.ads, a-ciormu.ads,
18 * a-cihase.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads,
19 * a-cborse.ads, a-comutr.ads, a-ciorma.ads, a-cobove.ads,
20 * a-coormu.ads, a-convec.ads, a-cohase.ads, a-coinho.ads,
21 * a-cbdlli.ads, a-cbmutr.ads, a-cbhase.ads, a-cdlili.ads,
22 * a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads,
23 * a-coinho-shared.ads (Constant_Reference_Type, Reference_Type):
24 Add an initialization expression "raise Program_Error". See,
25 for example, RM-A.18.2(148.4).
26
27 2015-05-22 Robert Dewar <dewar@adacore.com>
28
29 * debug.adb: Update documentation.
30 * einfo.ads, einfo.adb (Needs_Typedef): New flag
31 * exp_unst.adb (Unnest_Subprogram): Mark AREC types as needing
32 typedef's in C.
33 * frontend.adb: Update comments.
34 * gnat1drv.adb (Adjust_Global_Switches): Set all needed flags
35 for -gnatd.V
36 * opt.ads (Generate_C_Code): New switch.
37 * osint-c.adb (Write_C_File_Info): Removed, not used
38 (Write_H_File_Info): Removed, not used
39 * osint-c.ads (Write_C_File_Info): Removed, not used
40 (Write_H_File_Info): Removed, not used
41 * osint.ads (Write_Info): Minor comment updates.
42 (Output_FD): Moved from private part to public part of spec.
43 * sem.adb (Semantics): Force expansion on if in Generate_C_Code
44 mode.
45 * atree.ads: minor typo in comment.
46 * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
47 Do not allow VFA on composite object with aliased component.
48
49 2015-05-22 Arnaud Charlet <charlet@adacore.com>
50
51 * osint-c.adb, osint-c.ads (Set_File_Name): Move back to spec.
52
53 2015-05-22 Pascal Obry <obry@adacore.com>
54
55 * prj-util.adb: Minor comment editing.
56
57 2015-05-22 Pascal Obry <obry@adacore.com>
58
59 * makeutl.ads (In_Place_Option): New constant.
60 * prj.ads (Obj_Root_Dir): New variable (absolute path to relocate
61 objects).
62 (Root_Src_Tree): New variable (absolute path of root source tree).
63 * prj-conf.adb (Do_Autoconf): Take into account the object root
64 directory (if defined) to generate configuration project.
65 * prj-nmsc.adb (Get_Directories): Handle case where Obj_Root_Dir
66 is defined.
67 (Locate_Directory): Likewise.
68
69 2015-05-22 Pascal Obry <obry@adacore.com>
70
71 * prj-util.ads, prj-util.adb (Relative_Path): New routine.
72
73 2015-05-22 Bob Duff <duff@adacore.com>
74
75 * exp_utils.ads, exp_utils.adb (Find_Optional_Prim_Op): New
76 interface to return Empty when not found, so we can avoid handling
77 Program_Error in that case.
78 (Find_Prim_Op): Fix latent bug: raise Program_Error when there are no
79 primitives.
80 * exp_ch7.adb, sem_util.adb: Use Find_Optional_Prim_Op when the
81 code is expecting Empty.
82 * sem_ch8.adb: Use Find_Optional_Prim_Op to avoid handling
83 Program_Error.
84
85 2015-05-22 Robert Dewar <dewar@adacore.com>
86
87 * sem_ch3.adb, sem_intr.adb, exp_ch4.adb, s-rannum.adb,
88 sem_eval.adb, s-fatgen.adb, s-expmod.ads: Remove incorrect hyphen in
89 non-binary.
90 * exp_util.adb: Add comment.
91 * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move from spec to
92 body.
93 (Set_File_Name): New name for the above.
94 (Create_C_File, Create_H_File, Write_C_File_Info, Write_H_File_Info,
95 Close_C_File, Close_H_File): New procedure.
96 * osint.adb: Minor reformatting.
97 * osint.ads: Minor comment updates.
98
99 2015-05-22 Robert Dewar <dewar@adacore.com>
100
101 * exp_ch4.adb: Minor rewording.
102 * exp_util.ads: Clarify that Find_Prim_Op is only for
103 tagged types.
104
105 2015-05-22 Robert Dewar <dewar@adacore.com>
106
107 * atree.adb, atree.ads, treepr.adb: Change name Needs_Actuals_Check to
108 Check_Actuals.
109 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**x in modular
110 and overflow cases.
111
112 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
113
114 * exp_pakd.adb (Install_PAT): Propagate representation aspects
115 from the original array type to the PAT.
116
117 2015-05-22 Robert Dewar <dewar@adacore.com>
118
119 * treepr.adb (Print_Node_Header): Add output of Needs_Actuals_Check.
120
121 2015-05-22 Robert Dewar <dewar@adacore.com>
122
123 * atree.adb, atree.ads (Needs_Actuals_Check): New flag.
124
125 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
126
127 * sem_prag.adb (Analyze_Pragma): Remove the detection
128 of a useless Part_Of indicator when the related item is a constant.
129 (Check_Matching_Constituent): Do not emit an error on a constant.
130 (Check_Missing_Part_Of): Do not check for a missing Part_Of indicator
131 when the related item is a constant.
132 (Collect_Body_States): Code cleanup.
133 (Collect_Visible_States): Code cleanup.
134 (Report_Unused_States): Do not emit an error on a constant.
135 * sem_util.ads, sem_util.adb (Has_Variable_Input): Removed.
136
137 2015-05-22 Eric Botcazou <ebotcazou@adacore.com>
138
139 * sem_ch8.adb (Analyze_Object_Renaming): Copy
140 Has_Volatile_Full_Access from renamed to renaming entities.
141 * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
142 Tidy up and remove redundant setting of Has_Volatile_Full_Access.
143
144 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
145
146 * ghost.adb (Check_Ghost_Completion): Update references to SPARK
147 RM 6.9 rules.
148 (Check_Ghost_Policy): Update references to SPARK RM 6.9 rules.
149 * sem_ch3.adb (Analyze_Object_Declaration): Update references
150 to SPARK RM 6.9 rules.
151 (Check_Completion): Ghost entities do not require a special form of
152 completion.
153 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Update references
154 to SPARK RM 6.9 rules.
155 (Analyze_Subprogram_Body_Helper): Update references to SPARK RM 6.9
156 rules.
157 * sem_ch7.adb (Analyze_Package_Body_Helper): Update references
158 to SPARK RM 6.9 rules.
159 (Requires_Completion_In_Body): Ghost entities do not require a special
160 form of completion.
161
162 2015-05-22 Robert Dewar <dewar@adacore.com>
163
164 * a-csquin.ads: Use Ada 2012 notation.
165 * sem_ch8.adb: Minor reformatting.
166
167 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
168
169 * sem_ch13.adb (Analyze_Aspect_Specifications): Aspect Import
170 acts as a completion.
171
172 2015-05-22 Ed Schonberg <schonberg@adacore.com>
173
174 * sem_ch13.adb: Minor reformatting.
175
176 2015-05-22 Jose Ruiz <ruiz@adacore.com>
177
178 * a-reatim.adb: Minor change, fix typo.
179
180 2015-05-22 Robert Dewar <dewar@adacore.com>
181
182 * sem_util.ads: Minor addition of ??? comment.
183 * sem_prag.adb, sem_util.adb: Minor reformatting.
184 * sem_ch13.adb: minor reformatting.
185
186 2015-05-22 Robert Dewar <dewar@adacore.com>
187
188 * a-reatim.ads: Add Compile_Time_Error to ensure Duration
189 is 64-bits.
190 * sem_ch13.adb: Improve error message.
191 * exp_ch4.adb: Minor reformatting.
192
193 2015-05-22 Hristian Kirtchev <kirtchev@adacore.com>
194
195 * sem_prag.adb (Analyze_Pragma): Constants without variable
196 input do not require indicator Part_Of.
197 (Check_Missing_Part_Of): Constants without variable input do not
198 requrie indicator Part_Of.
199 (Collect_Visible_States): Constants without variable input are
200 not part of the hidden state of a package.
201 * sem_util.ads, sem_util.adb (Has_Variable_Input): New routine.
202
203 2015-05-22 Robert Dewar <dewar@adacore.com>
204
205 * exp_util.adb (Activate_Atomic_Synchronization): Do not set
206 Atomic_Sync_Required for an object renaming declaration.
207 * sem_ch8.adb (Analyze_Object_Renaming): Copy Is_Atomic and
208 Is_Independent to renaming object.
209
210 2015-05-22 Ed Schonberg <schonberg@adacore.com>
211
212 * sem_ch5.adb (Analyze_Iterator_Specification): Diagnose
213 various illegalities in iterators over arrays and containers:
214 a) New function Get_Cursor_Type, to verify that the cursor is
215 not a limited type at the point of iteration.
216 b) If the container is a constant, an element_iterator is illegal
217 if the container type does not have a Constant_Indexing aspect.
218 c) If the iterate function has an in-out controlling parameter,
219 the container cannot be a constant object.
220 d) Reject additional cases of iterators over a
221 discriminant-dependent component of a mutable object.
222
223 2015-05-21 Hristian Kirtchev <kirtchev@adacore.com>
224
225 * einfo.adb (Contract): This attribute now applies to constants.
226 (Set_Contract): This attribute now applies to constants.
227 (Write_Field34_Name): Add output for constants.
228 * einfo.ads Attribute Contract now applies to constants.
229 * sem_ch3.adb (Analyze_Object_Contract): Constants now have
230 their Part_Of indicator verified.
231 * sem_prag.adb (Analyze_Constituent): A constant is now a valid
232 constituent.
233 (Analyze_Global_Item): A constant cannot act as an output.
234 (Analyze_Initialization_Item): Constants are now a valid
235 initialization item.
236 (Analyze_Initializes_In_Decl_Part): Rename
237 global variable States_And_Vars to States_And_Objs and update
238 all its occurrences.
239 (Analyze_Input_Item): Constants are now a
240 valid initialization item. Remove SPARM RM references from error
241 messages.
242 (Analyze_Pragma): Indicator Part_Of can now apply to a constant.
243 (Collect_Body_States): Collect both source constants
244 and variables.
245 (Collect_States_And_Objects): Collect both source constants and
246 variables.
247 (Collect_States_And_Variables): Rename
248 to Collect_States_And_Objects and update all its occurrences.
249 (Collect_Visible_States): Do not collect constants and variables
250 used to map generic formals to actuals.
251 (Find_Role): The role of a constant is that of an input. Separate the
252 role of a variable from that of a constant.
253 (Report_Unused_Constituents): Add specialized wording for constants.
254 (Report_Unused_States): Add specialized wording for constants.
255 * sem_util.adb (Add_Contract_Item): Add processing for constants.
256 * sem_util.ads (Add_Contract_Item): Update the comment on usage.
257 (Find_Placement_In_State_Space): Update the comment on usage.
258
259 2015-05-21 Ed Schonberg <schonberg@adacore.com>
260
261 * sem_ch5.adb: minor reformatting.
262
263 2015-05-21 Robert Dewar <dewar@adacore.com>
264
265 * freeze.adb (Freeze_Entity): Properly tag -gnatw.z messages.
266
267 2015-05-21 Robert Dewar <dewar@adacore.com>
268
269 * freeze.adb: Minor reformatting.
270 * cstand.adb (Print_Standard): Fix bad printing of Duration
271 low bound.
272 * a-reatim.adb (Time_Of): Complete rewrite to properly detect
273 out of range args.
274
275 2015-05-21 Ed Schonberg <schonberg@adacore.com>
276
277 * sem_ch5.adb: add (useless) initial value.
278 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram):
279 Check whether the procedure has parameters before processing
280 formals in ASIS mode.
281
282 2015-05-21 Ed Schonberg <schonberg@adacore.com>
283
284 * sem_ch13.adb (Check_Iterator_Functions): Emit error on Iterator
285 aspect as well when indexing function is illegal.
286 (Valid_Default_Iterator): Handle properly somme illegal cases
287 to prevent compilation abandoned messages.
288 (Check_Primitive_Function): Verify that type and indexing function
289 are in the same scope.
290 * freeze.adb (Freeze_Record): Extend patch on the presence of
291 indexing aspects to aspect Default_Iterator.
292
293 2015-05-19 David Malcolm <dmalcolm@redhat.com>
294
295 * gcc-interface/trans.c (Sloc_to_locus1): Strenghthen local "map"
296 from line_map * to line_map_ordinary *.
297
298 2015-05-12 Jason Merrill <jason@redhat.com>
299
300 * sigtramp-vxworks.c: Add space between string literal and macro
301 name.
302
303 2015-05-12 Arnaud Charlet <charlet@adacore.com>
304
305 * gnat_rm.texi, gnat_ugn.texi, doc: Documentation updates and clean ups
306
307 2015-05-12 Ed Schonberg <schonberg@adacore.com>
308
309 * sem_ch5.adb (Analyze_Iterator_Specifications): Additional
310 legality checks for array and container iterators:
311 a) The domain of iteration cannot be a component that depends
312 on discriminants of a mutable object. The check was recently
313 added for element iterators.
314 b) The cursor type cannot be a limited type at the point of the
315 iteration, because the cursor will be assigned to in the body
316 of the loop.
317
318 2015-05-12 Robert Dewar <dewar@adacore.com>
319
320 * freeze.adb (Freeze_Record_Type): Make sure that if we have
321 aspect Iterator_Element, then we have either Constant_Indexing
322 or Variable_Indexing.
323
324 2015-05-12 Ed Schonberg <schonberg@adacore.com>
325
326 * a-coormu.ads, a-coormu.adb: Add Indexing aspect, Reference_Type,
327 and Reference_Control_Type to support element iterators over
328 ordered multisets.
329 * a-ciormu.ads, a-ciormu.adb: Ditto for
330 indefinite_ordered_multisets.
331
332 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
333
334 * exp_ch4.adb (Expand_N_Expression_With_Actions): Force
335 the evaluation of the EWA expression. Code cleanup.
336 (Process_Transient_Object): Code cleanup.
337 * exp_util.adb (Is_Aliased): Controlled transient objects found
338 within EWA nodes are not aliased.
339 (Is_Finalizable_Transient): Iterators are not finalizable transients.
340
341 2015-05-12 Robert Dewar <dewar@adacore.com>
342
343 * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile):
344 Don't allow Atomic and Volatile_Full_Access for the same entity.
345
346 2015-05-12 Ed Schonberg <schonberg@adacore.com>
347
348 * sem_ch5.adb (Analyze_Iterator_Specification): Implement new
349 semantics and safety checks specified in AI12-0151.
350
351 2015-05-12 Pierre-Marie de Rodat <derodat@adacore.com>
352
353 * sem_ch10.adb (Sem_Ch10.Analyze_Proper_Body): Generate SCOs
354 for subunit in generic units.
355
356 2015-05-12 Robert Dewar <dewar@adacore.com>
357
358 * sem_elab.adb (Check_A_Call): Avoid checking internal call
359 from Valid_Scalars
360
361 2015-05-12 Ed Schonberg <schonberg@adacore.com>
362
363 * sem_ch6.adb (Process_Formals): An untagged incomplete type
364 is legal in the profile of a null procedure.
365
366 2015-05-12 Ed Schonberg <schonberg@adacore.com>
367
368 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly
369 the checks on a derived formal whose parent type is a previous
370 formal that is not a derived type.
371
372 2015-05-12 Robert Dewar <dewar@adacore.com>
373
374 * aspects.ads, aspects.adb: Add entries for aspect Volatile_Full_Access
375 * einfo.adb (Has_Volatile_Full_Access): New flag.
376 (Has_Volatile_Full_Access): New flag.
377 * einfo.ads (Has_Volatile_Full_Access): New flag.
378 * par-prag.adb: Add dummy entry for Volatile_Full_Access.
379 * sem_prag.adb (Analyze_Pragma, case Volatile_Full_Access):
380 Implement new pragma.
381 * snames.ads-tmpl: Add entries for pragma Volatile_Full_Access.
382
383 2015-05-12 Robert Dewar <dewar@adacore.com>
384
385 * targparm.ads: Minor reformatting.
386
387 2015-05-12 Robert Dewar <dewar@adacore.com>
388
389 * a-reatim.adb (Time_Of): Properly detect overflow when TS = 0.0.
390 * a-reatim.ads: Minor reformatting.
391
392 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
393
394 * einfo.ads: Update the documentation of flags
395 Has_Inherited_Default_Init_Cond and Has_Default_Init_Cond.
396
397 2015-05-12 Robert Dewar <dewar@adacore.com>
398
399 * impunit.adb: Add entry for a-dhfina.ads
400 * a-dhfina.ads: New file.
401
402 2015-05-12 Ed Schonberg <schonberg@adacore.com>
403
404 * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): if the array
405 type has convention Fortran, a multidimensional iterator varies
406 the first dimension fastest.
407
408 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
409
410 * einfo.adb: Node32 is now used as Encapsulating_State.
411 Node37 is now used as Associated_Entity.
412 (Associated_Entity): New routine.
413 (Encapsulating_State): Update the assertion guard to include constants.
414 (Set_Associated_Entity): New routine.
415 (Set_Encapsulating_State): Update the assertion guard to
416 include constants.
417 (Write_Field10_Name): Remove the output for Encapsulating_State.
418 (Write_Field32_Name): Add output for Encapsulating_State.
419 (Write_Field37_Name): Add output for Associated_Entity.
420 * einfo.ads New attribute Associated_Entity along with placement
421 in entities. Attribute Encapsulating_State now uses Node32.
422 (Associated_Entity): New routine along with pragma Inline.
423 (Set_Associated_Entity): New routine along with pragma Inline.
424 * inline.ads Code reformatting.
425 * sem_attr.adb (Analyze_Attribute): Correct the prefix of
426 attribute 'Result when the context is a generic instantiation.
427 (Analyze_Attribute_Old_Result): Pragmas Depends and
428 Refined_Depends are a valid context for attribute 'Result.
429 (Denote_Same_Function): Allow attribute 'Result to denote
430 generic functions.
431 * sem_ch3.adb Add with and use clauses for Sem_Ch12.
432 (Analyze_Declarations): Capture global references within the
433 contracts of packages, subprograms and their respective bodies.
434 * sem_ch6.adb (Analyze_Aspects_On_Body_Or_Stub): Removed.
435 (Analyze_Completion_Contract): Removed.
436 (Analyze_Generic_Subprogram_Body): Enchange the aspects after
437 creating the generic copy. Create a generic contract for the
438 template. Analyze the aspects of the generic body. Analyze the
439 contract of the generic body when it is a compilation unit and
440 capture global references.
441 (Analyze_Subprogram_Body_Contract): Code cleanup.
442 (Analyze_Subprogram_Contract): Do not save global references here.
443 (Save_Global_References_In_List): Removed.
444 * sem_ch7.adb (Analyze_Package_Body_Contract): Code cleanup.
445 (Analyze_Package_Body_Helper): Create a generic contract for
446 the template.
447 (Analyze_Package_Contract): Code cleanup.
448 * sem_ch10.adb Add with and use clauses for Sem_Ch12.
449 (Analyze_Compilation_Unit): Capture global references in a
450 generic subprogram declaration that acts as a compilation unit.
451 * sem_ch12.adb Add with and use clauses for Sem_Prag. Illustrate
452 the implementation of generic contracts. Alphabetize various
453 subprograms.
454 (Analyze_Generic_Package_Declaration):
455 Create a generic contract for the template.
456 (Analyze_Generic_Subprogram_Declaration): Create a generic
457 contract for the template.
458 (Analyze_Subprogram_Instantiation): Instantiate the contract of the
459 subprogram.
460 (Copy_Generic_Node): Link defining entities of the generic template
461 with the corresponding defining entities of the generic copy. Update
462 the processing of pragmas.
463 (Instantiate_Contract): Removed.
464 (Instantiate_Subprogram_Contract): New routine.
465 (Requires_Delayed_Save): New routine.
466 (Save_Global_References): Rename formal parameter N to Templ. Various
467 cleanups.
468 (Save_Global_References_In_Aspects): Moved from the spec.
469 (Save_Global_References_In_Contract): New routine.
470 (Save_References_In_Aggregate): New routine.
471 (Save_References_In_Char_Lit_Or_Op_Symbol): New routine.
472 (Save_References_In_Descendants): New routine.
473 (Save_References_In_Identifier): New routine.
474 (Save_References_In_Operator): New routine.
475 (Save_References_In_Pragma): New routine.
476 * sem_ch12.ads (Save_Global_References): Rename formal
477 parameter N to Templ. Update the comment on usage.
478 (Save_Global_References_In_Aspects): Moved to the body.
479 (Save_Global_References_In_Contract): New routine.
480 * sem_ch13.adb (Analyze_Aspect_Specifications_On_Body_Or_Stub):
481 New routine.
482 * sem_ch13.ads (Analyze_Aspect_Specifications_On_Body_Or_Stub):
483 New routine.
484 * sem_prag.adb (Add_Item_To_Name_Buffer): Add support for
485 generic parameters.
486 (Analyze_Contract_Cases_In_Decl_Part): Code cleanup.
487 (Analyze_Depends_Global): New routine.
488 (Analyze_Depends_In_Decl_Part): Code cleanup.
489 (Analyze_Global_In_Decl_Part): Code cleanup.
490 (Analyze_Global_Item): Constants are now valid global items. Do
491 not perform state-related checks in an instance. Change the way
492 renamings are handled. (Analyze_Initial_Condition_In_Decl_Part):
493 Code cleanup.
494 (Analyze_Initializes_In_Decl_Part): Code cleanup.
495 (Analyze_Input_Output): The analysis of attribute 'Result in
496 the context of pragmas Depends or Refined_Depends now reuses
497 the existing attribute analysis machinery. Constants and
498 generic parameters are now valid dependency items. Do not
499 perform state-related checks in an instance. Change the way
500 renamings are handled. (Analyze_Pragma): Add a "characteristics"
501 section for pragmas Abstract_State, Contract_Cases, Depends,
502 Extensions_Visible, Global, Initial_Condition, Initializes,
503 Post, Post_Class, Postcondition, Pre, Pre_Class, Precondition,
504 Refined_Depends, Refined_Global, Refined_Post, Refined_State, Test_Case.
505 (Analyze_Pre_Post_Condition): Do not create a generic
506 template here.
507 (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup.
508 (Analyze_Refined_Depends_Global_Post): New routine.
509 (Analyze_Refined_Depends_In_Decl_Part): Code cleanup.
510 (Analyze_Refined_Global_In_Decl_Part): Code cleanup.
511 (Analyze_Refined_Pragma): Removed.
512 (Analyze_Refined_State_In_Decl_Part): Code cleanup.
513 (Analyze_Test_Case_In_Decl_Part): Code cleanup.
514 (Check_Dependency_Clause): Do not perform this check in an instance.
515 (Check_Function_Return): Add support for generic functions.
516 (Check_In_Out_States): Do not perform this check in an instance.
517 (Check_Input_States): Do not perform this check in an instance.
518 (Check_Mode_Restriction_In_Function): Add support for generic functions.
519 (Check_Output_States): Do not perform this check in an instance.
520 (Check_Postcondition_Use_In_Inlined_Subprogram): Rename
521 parameter Subp_Id to Spec_Id and update comment on usage.
522 (Check_Proof_In_States): Do not perform this check in an instance.
523 (Check_Refined_Global_Item): Add support for constants.
524 (Check_Refined_Global_List): Do not perform this check in an instance.
525 (Collect_Global_Items): Reimplemented.
526 (Collect_Subprogram_Inputs_Outputs): Add support for generic parameters.
527 (Create_Generic_Template): Removed.
528 (Find_Related_Package_Or_Body): Moved to spec.
529 (Find_Role): Add support for generic parameters and constants.
530 (Get_Argument): Moved to spec. Rename parameter Spec_Id to Context_Id.
531 (Match_Item): Add support for constants.
532 (Preanalyze_Test_Case_Arg): Reimplemented.
533 (Report_Extra_Clauses): Do not perform this check in an instance.
534 (Report_Extra_Constituents): Do not perform this check in an instance.
535 * sem_prag.ads (Collect_Subprogram_Inputs_Outputs): Update
536 the comment on usage.
537 (Find_Related_Package_Or_Body): Moved from body.
538 (Get_Argument): Moved from body.
539 * sem_util.adb Add with and use clauses for Sem_Ch12.
540 (Corresponding_Spec_Of): Add support for packages and package bodies.
541 (Create_Generic_Contract): New routine.
542 (Is_Contract_Annotation): Reimplemented.
543 (Is_Generic_Declaration_Or_Body): New routine.
544 (Is_Package_Contract_Annotation): New routine.
545 (Is_Subprogram_Contract_Annotation): New routine.
546 * sem_util.ads (Corresponding_Spec_Of): Update the comment on usage.
547 (Create_Generic_Contract): New routine.
548 (Is_Generic_Declaration_Or_Body): New routine.
549 (Is_Package_Contract_Annotation): New routine.
550 (Is_Subprogram_Contract_Annotation): New routine.
551 * sinfo.adb (Is_Generic_Contract_Pragma): New routine.
552 (Set_Is_Generic_Contract_Pragma): New routine.
553 * sinfo.ads Add new attribute Is_Generic_Contract_Pragma along
554 with occurrences in nodes.
555 (Is_Generic_Contract_Pragma): New routine along with pragma Inline.
556 (Set_Is_Generic_Contract_Pragma): New routine along with pragma Inline.
557 * treepr.adb (Print_Entity_Info): Output fields 36 to 41.
558
559 2015-05-12 Robert Dewar <dewar@adacore.com>
560
561 * a-taster.ads: Minor comment fix: fix bad header, this is a
562 pure RM unit.
563
564 2015-05-12 Robert Dewar <dewar@adacore.com>
565
566 * sem_intr.adb: (Check_Shift): Diagnose bad modulus value.
567
568 2015-05-12 Robert Dewar <dewar@adacore.com>
569
570 * gnat1drv.adb (Adjust_Global_Switches): Default to suppressing
571 Alignment_Checks on non-strict alignment machine.
572 * sem_ch13.adb (Validate_Address_Clauses): Don't give
573 compile-time alignment warnings if run time Alignment_Check
574 is suppressed.
575
576 2015-05-12 Thomas Quinot <quinot@adacore.com>
577
578 * g-sercom.ads, g-sercom-linux.adb (GNAT.Serial_Communications.
579 Data_Rate): New literals B75, B110, B150, B300, B600.
580
581 2015-05-12 Doug Rupp <rupp@adacore.com>
582
583 * init.c (__gnat_init_float) [vxworks]: For e500v2,
584 do nothing and leave the responsibility to install the handler
585 and enable the exceptions to the BSP.
586
587 2015-05-12 Robert Dewar <dewar@adacore.com>
588
589 * sem_ch9.adb, einfo.ads, exp_intr.adb: Minor reformatting.
590 * sem_disp.adb: Minor code reorganization (remove junk redundant
591 null statement).
592 * exp_unst.adb (Unnest_Subprogram.Uplev_Refs): Ignore uplevel
593 references to bounds of types coming from original type reference.
594 * checks.ads: Minor reformatting.
595 * checks.adb: Minor reformatting.
596 * sem_prag.adb (Analyze_Pragma, case Check): If in ignored
597 assertion, then make sure we do not drag in bignum stuff.
598
599 2015-05-12 Ed Schonberg <schonberg@adacore.com>
600
601 * sem_ch9.adb (Collect_Interfaces): Initialize
602 Direct_Primitive_Operations for a tagged synchronized type,
603 so it can used in ASIS mode.
604 * sem_disp.adb (Check_Dispatching_Operation): If expansion is
605 disabled, attach subprogram to list of Direct_Primitive_Operations
606 of synchronized type itself, for ASIS use, because in this case
607 Corresponding_Record_Type is not built.
608 * einfo.ads: Indicate use of Direct_Primitive_Operations on
609 synchronized type.
610
611 2015-05-12 Pierre-Marie de Rodat <derodat@adacore.com>
612
613 * exp_pakd.adb: Make clearer the comment in exp_pakd.adb about
614 ___XP suffixes.
615
616 2015-05-12 Robert Dewar <dewar@adacore.com>
617
618 * sem_ch3.adb, sem_util.adb, sem_ch6.adb: Minor reformatting.
619
620 2015-05-12 Robert Dewar <dewar@adacore.com>
621
622 * exp_unst.adb (Visit_Node): Deal with subprogram and package stubs.
623
624 2015-05-12 Ed Schonberg <schonberg@adacore.com>
625
626 * exp_intr.adb (Expand_Dispatching_Constructor_Call): The
627 tag to be retrieved for the generated call is the first entry
628 in the dispatch table for the return type of the instantiated
629 constructor.
630
631 2015-05-12 Bob Duff <duff@adacore.com>
632
633 * exp_ch7.adb, exp_ch7.ads, exp_intr.adb, exp_util.adb,
634 exp_util.ads: Update comments.
635
636 2015-05-12 Ed Schonberg <schonberg@adacore.com>
637
638 * sem_ch3.adb (Add_Internal_Interface_Entities): Do no generate
639 freeze nodes for these in ASIS mode, because they lead to
640 elaoration order issues in gigi.
641
642 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
643
644 * sem_ch6.adb (Analyze_Expression_Function): Code
645 cleanup. Use Copy_Subprogram_Spec to create a proper spec.
646 (Analyze_Subprogram_Body_Helper): Code cleanup. Do not
647 prepare a stand alone body for inlining in GNATprove mode
648 when inside a generic. (Body_Has_Contract): Reimplemented.
649 (Build_Subprogram_Declaration): New routine.
650 * sem_ch10.adb (Analyze_Compilation_Unit): Capture global
651 references within generic bodies by loading them.
652 * sem_util.adb (Copy_Parameter_List): Code cleanup.
653 (Copy_Subprogram_Spec): New routine.
654 (Is_Contract_Annotation): New routine.
655 * sem_util.ads (Copy_Subprogram_Spec): New routine.
656 (Is_Contract_Annotation): New routine.
657
658 2015-05-12 Hristian Kirtchev <kirtchev@adacore.com>
659
660 * sem_attr.adb (Resolve_Attribute): Do not analyze the generated
661 body of an expression function when the prefix of attribute
662 'Access is the body.
663
664 2015-05-12 Ed Schonberg <schonberg@adacore.com>
665
666 * sem_ch3.adb (Build_Derived_Enumeration_Type): The anonymous base
667 created for a derived enumeration type is not a first subtype,
668 even though it is defined through a full type declaration.
669 * sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): Do not process
670 aspects for the anonymous base type constructed for a derived
671 scalar type, because they will be set when the first subtype
672 is frozen.
673 (Inherit_Aspects_At_Freeze_Point): Fix typos on handling of
674 Default_Value and Default_Component_Value, that prevented the
675 proper inheritance of these aspects.
676
677 2015-05-12 Gary Dismukes <dismukes@adacore.com>
678
679 * exp_ch6.adb, exp_unst.adb: Minor typo fixes.
680
681 2015-05-12 Robert Dewar <dewar@adacore.com>
682
683 * sem_ch3.adb: Minor reformatting.
684
685 2015-05-12 Vincent Celier <celier@adacore.com>
686
687 * gnatcmd.adb: If we want to invoke gnatmake (gnatclean) with
688 -P, then check if gprbuild (gprclean) is available; if it is,
689 use gprbuild (gprclean) instead of gnatmake (gnatclean).
690
691 2015-05-12 Robert Dewar <dewar@adacore.com>
692
693 * debug.adb: Add flag -gnatd.3 to output diagnostic info from
694 Exp_Unst.
695 * einfo.ad, einfo.adb: Reorganize (and remove most of) flags used by
696 Exp_Unst.
697 * exp_ch6.adb (Unest_Bodies): Table for delayed calls to
698 Unnest_Subprogram (Expand_N_Subprogram_Body): Add entry to table
699 for later call instead of calling Unnest_Subprogram directly
700 (Initialize): New procedure (Unnest_Subprograms): New procedure
701 * exp_ch6.ads (Add_Extra_Actual_To_Call): Move into proper
702 alpha order.
703 (Initialize): New procedure.
704 (Unnest_Subprograms): New procedure.
705 * exp_unst.adb (Unnest_Subprogram): Major rewrite, moving
706 all processing to this routine which is now called late
707 after instantiating bodies. Fully handles the case of generic
708 instantiations now.
709 * exp_unst.ads: Major rewrite, moving all processing to
710 Unnest_Subprogram.
711 * frontend.adb (Frontend): Add call to Exp_Ch6.Initialize.
712 (Frontend): Add call to Unnest_Subprograms.
713 * sem_ch8.adb (Find_Direct_Name): Back to old calling sequence
714 for Check_Nested_Access.
715 * sem_util.adb (Build_Default_Subtype): Minor reformatting
716 (Check_Nested_Access): Back to original VM-only form (we
717 now do all the processing for Unnest_Subprogram at the time
718 it is called.
719 (Denotes_Same_Object): Minor reformatting
720 (Note_Possible_Modification): Old calling sequence for
721 Check_Nested_Access.
722 * sem_util.ads (Check_Nested_Access): Back to original VM-only
723 form (we now do all the processing for Unnest_Subprogram at the
724 time it is called.
725
726 2015-05-12 Robert Dewar <dewar@adacore.com>
727
728 * sem_ch3.adb, freeze.adb, sem_ch6.adb: Minor reformatting.
729
730 2015-05-12 Ed Schonberg <schonberg@adacore.com>
731
732 * sem_ch3.adb (Analyze_Object_Declaration): New function
733 Has_Delayed_Aspect, used to defer resolution of an aggregate
734 expression when the object declaration carries aspects Address
735 and/or Alignment.
736 * freeze.adb (Freeze_Object_Declaration): New subsidiary procedure
737 to Freeze_Entity. In addition to the previous processing steps
738 at the freeze point of an object, this procedure also handles
739 aggregates in object declarations, when the declaration carries
740 delayed aspects that require that the initialization of the
741 object be attached to its freeze actions.
742
743 2015-05-12 Ed Schonberg <schonberg@adacore.com>
744
745 * sem_ch6.adb (Analyze_Subprogram_Declaration): Following
746 AI12-0147, null procedures and expression functions are allowed
747 in protected bodies.
748
749 2015-05-12 Tristan Gingold <gingold@adacore.com>
750
751 * i-cpoint.adb (Copy_Terminated_Array): Copy nothing if Length is 0.
752
753 2015-05-12 Ed Schonberg <schonberg@adacore.com>
754
755 * sem_ch3.adb (Complete_Private_Subtype): Propagate
756 Has_Delayed_Aspects flag from private to full view, to ensure
757 that predicate functions are constructed.
758
759 2015-05-12 Ed Schonberg <schonberg@adacore.com>
760
761 * sem_ch6.adb (Process_Formals): If a tagged formal is an
762 incomplete class-wide type, the subprogram must have a delayed
763 freeze even though the opertation is not a primitive of the
764 type. THis ensures that the backend can recover the full view
765 when elaborating the subprogram declaration.
766
767 2015-05-12 Ed Schonberg <schonberg@adacore.com>
768
769 * exp_util.adb (Get_Current_Value_Condition): Nothing to be
770 done if an elsif part has been rewritten so that it is not part
771 of an enclosing if_statement.
772
773 2015-05-12 Robert Dewar <dewar@adacore.com>
774
775 * sem_type.adb, sem_ch10.adb, freeze.adb, sem_ch6.adb, exp_disp.adb:
776 Minor reformatting.
777
778 2015-05-12 Bob Duff <duff@adacore.com>
779
780 * exp_attr.adb (Size): Remove unnecessary check for types with
781 unknown discriminants. That was causing the compiler to build
782 a function call _size(T), where T is a type, not an object.
783
784 2015-05-12 Ed Schonberg <schonberg@adacore.com>
785
786 * sem_ch4.adb (Extended_Primitive_Ops): Exclude overriding
787 primitive operations of a type extension declared in the package
788 body, to prevent duplicates in extended list.
789
790 2015-05-12 Ed Schonberg <schonberg@adacore.com>
791
792 * sem_ch3.adb (Analyze_Component_Declaration): If the component is
793 an unconstrained synchronized type with discriminants, create a
794 constrained default subtype for it, so that the enclosing record
795 can be given the proper size.
796 * sem_util.adb (Build_Default_Subtype): If the subtype is created
797 for a record discriminant, do not analyze the declarztion at
798 once because it is added to the freezing actions of the enclosing
799 record type.
800
801 2015-05-12 Robert Dewar <dewar@adacore.com>
802
803 * exp_prag.adb (Expand_N_Pragma): Rewrite ignored pragma as
804 Null statements.
805 * namet.ads (Boolean3): Document this flag used for Ignore_Pragma.
806 * par-prag.adb (Prag): Implement Ignore_Pragma.
807 * sem_prag.adb: Implement Ignore_Pragma.
808 * snames.ads-tmpl: Add entries for pragma Ignore_Pragma.
809
810 2015-05-12 Javier Miranda <miranda@adacore.com>
811
812 * sem_ch10.adb (Build_Shadow_Entity): Link the class-wide shadow
813 entity with its corresponding real entity.
814 (Decorate_Type): Unconditionally build the class-wide shadow entity of
815 tagged types.
816 * einfo.ads, einfo.adb (Has_Non_Limited_View): New synthesized
817 attribute.
818 (Non_Limited_View): Moved from field 17 to field 19 be available
819 in class-wide entities.
820 * exp_attr.adb (Access_Cases): Code cleanup.
821 * exp_disp.adb (Expand_Interface_Actuals): Ditto.
822 * exp_util.adb (Non_Limited_Designated_Type): Ditto.
823 * freeze.adb (Build_Renamed_Bdody): Ditto.
824 * sem_aux.adb (Available_View): Ditto.
825 * sem_ch4.adb (Analyze_Selected_Component): Ditto.
826 (Try_One_Prefix_Interpretation): Ditto.
827 * sem_ch5.adb (Analyze_Assignment): Ditto.
828 * sem_ch6.adb (Detect_And_Exchange): Ditto.
829 * sem_ch8.adb (Find_Expanded_Name): Ditto.
830 * sem_disp.adb (Check_Controlling_Type): Ditto.
831 * sem_res.adb (Resolve_Type_Conversion): Ditto.
832 (Full_Designated_Type): Ditto.
833 * sem_type.adb (Covers): Ditto.
834 * sem_util.adb: Fix typo in comment.
835
836 2015-05-12 Robert Dewar <dewar@adacore.com>
837
838 * exp_unst.adb (Get_Real_Subp): New subprogram.
839 (Unnest_Subprogram): Use Get_Real_Subp.
840 (Uplev_Refs_For_One_Subp): Skip if no ARECnU entity.
841 (Uplev_Refs_For_One_Subp): Use actual subtype in unconstrained case.
842
843 2015-05-12 Robert Dewar <dewar@adacore.com>
844
845 * a-reatim.adb ("/"): Add explicit check for Time_Span_First / -1.
846
847 2015-05-12 Ed Schonberg <schonberg@adacore.com>
848
849 * sem_ch4.adb (Extended_Primitive_Ops): New subprogram,
850 auxiliary to Try_Primitive_Operation to handle properly prefixed
851 calls where the operation is not a primitive of the type, but
852 is declared in the package body that is in the immediate scope
853 of the type.
854
855 2015-05-12 Robert Dewar <dewar@adacore.com>
856
857 * sem_util.adb (Is_Variable): Allow X'Deref(Y) as a variable.
858
859 2015-05-12 Ed Schonberg <schonberg@adacore.com>
860
861 * sem_ch8.adb (Find_Expanded_Name): Handle properly a fully
862 qualified name for an instance of a generic grand-child unit in
863 the body its parent.
864
865 2015-05-12 Robert Dewar <dewar@adacore.com>
866
867 * exp_unst.adb (Upref_Name): New subprogram.
868 (Unnest_Subprogram): Use Upref_Name.
869 (Unnest_Subprogram): Use new Deref attribute.
870 * exp_unst.ads: Doc updates.
871
872 2015-05-12 Thomas Quinot <quinot@adacore.com>
873
874 * adaint.c: Enable Large File Support in adaint so that __gnat_readdir
875 can access files on filesystems mounted from servers that use large
876 NFS file handles.
877
878 2015-05-09 Eric Botcazou <ebotcazou@adacore.com>
879
880 * gcc-interface/utils.c (gnat_write_global_declarations): Use type_decl
881 method instead of global_decl for TYPE_DECLs.
882
883 2015-04-27 Jim Wilson <jim.wilson@linaro.org>
884
885 * gcc-interface/Makefile-lan.in (ada.mostlyclean): Remove gnatbind
886 and gnat1.
887
888 2015-04-13 Eric Botcazou <ebotcazou@adacore.com>
889
890 * gnatvsn.ads (Library_Version): Bump to 6.
891
892 2015-04-09 Iain Sandoe <iain@codesourcery.com>
893
894 * gcc-interface/Makefile.in (darwin, powerpc): Enable atomics.
895
896 2015-04-08 Eric Botcazou <ebotcazou@adacore.com>
897
898 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Do not make
899 a function returning an unconstrained type 'const' for the middle-end.
900
901 * gcc-interface/trans.c (Pragma_to_gnu) <case Pragma_Warning>: Use
902 exact condition to detect Reason => "..." pattern.
903
904 2015-03-31 Tom de Vries <tom@codesourcery.com>
905
906 PR ada/65490
907 * terminals.c (child_setup_tty): Fix warning 'argument to sizeof in
908 bzero call is the same expression as the destination'.
909
910 2015-03-26 Eric Botcazou <ebotcazou@adacore.com>
911
912 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: New case.
913
914 2015-03-24 Gary Dismukes <dismukes@adacore.com>
915
916 * sem_ch3.adb: Minor typo fix (missing paren).
917
918 2015-03-24 Robert Dewar <dewar@adacore.com>
919
920 * sinfo.ads: Update comment.
921
922 2015-03-24 Robert Dewar <dewar@adacore.com>
923
924 * exp_attr.adb: Add entry for typ'Deref.
925 * sem_attr.adb (Deref): New GNAT attribute.
926 * sem_attr.ads: Add entry for new GNAT attribute Deref.
927 * snames.ads-tmpl: Add entries for new attribute Deref.
928
929 2015-03-24 Ed Schonberg <schonberg@adacore.com>
930
931 * sem_ch13.adb (Rep_Item_Too_Early): allow pragma Convention
932 on generic type.
933
934 2015-03-24 Gary Dismukes <dismukes@adacore.com>
935
936 * inline.adb: Minor typo fix.
937
938 2015-03-24 Arnaud Charlet <charlet@adacore.com>
939
940 * doc/gnat_ugn/building_executable_programs_with_gnat.rst,
941 doc/gnat_ugn/gnat_utility_programs.rst
942 doc/gnat_rm/implementation_defined_attributes.rst
943 doc/gnat_rm/implementation_defined_pragmas.rst
944 doc/gnat_rm/representation_clauses_and_pragmas.rst
945 doc/gnat_rm/about_this_guide.rst
946 doc/gnat_rm/implementation_of_ada_2012_features.rst: Doc improvements.
947 * gnat_rm.texi, gnat_ugn.texi: Regenerate.
948
949 2015-03-23 Jakub Jelinek <jakub@redhat.com>
950
951 PR bootstrap/65522
952 * adadecode.c (ada_demangle): Guard with IN_RTS instead of IN_GCC.
953
954 2015-03-20 Eric Botcazou <ebotcazou@adacore.com>
955
956 PR ada/65451
957 * gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
958 Make sure to chain only main variants through TYPE_NEXT_PTR_TO.
959
960 * gcc-interface/trans.c (Attribute_to_gnu): Revert latest change.
961
962 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
963
964 * gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
965 of the expression ends up being composite.
966
967 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
968
969 * gcc-interface/decl.c (is_from_limited_with_of_main): New predicate.
970 (gnat_to_gnu_entity) <E_Subprogram_Type>: Invoke it on return and
971 parameter types to detect circularities in ASIS mode.
972 * gcc-interface/trans.c (Attribute_to_gnu): Mention AI05-0151.
973
974 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
975
976 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Abstract_State>: Do not
977 short-circuit the regular handling.
978
979 2015-03-13 Robert Dewar <dewar@adacore.com>
980
981 * exp_unst.adb (Note_Uplevel_Reference): Eliminate duplicate
982 references.
983 (Actual_Ref): New function.
984 (AREC_String): Minor reformatting.
985 (Unnest_Subprogram): Use Actual_Ref.
986 * frontend.adb (Frontend): Turn off Unnest_Subprogram_Mode
987 before call to Instantiate_Bodies.
988
989 2015-03-13 Ed Schonberg <schonberg@adacore.com>
990
991 * freeze.adb (Freeze_Profile): If the return type of a function
992 being frozen is an untagged limited view and the function is
993 abstract, mark the type as frozen because there is no later
994 point at which the profile of the subprogram will be elaborated.
995
996 2015-03-13 Robert Dewar <dewar@adacore.com>
997
998 * einfo.adb, einfo.ads, atree.adb, atree.ads, atree.h: Add seventh
999 component to entities. Add new fields Field36-41 and Node36-41.
1000
1001 2015-03-13 Claire Dross <dross@adacore.com>
1002
1003 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Rewrite after review.
1004
1005 2015-03-13 Robert Dewar <dewar@adacore.com>
1006
1007 * exp_util.adb (Is_Volatile_Reference): Compile time known
1008 value is never considered to be a volatile reference.
1009
1010 2015-03-13 Robert Dewar <dewar@adacore.com>
1011
1012 * sem_ch3.adb (Analyze_Object_Contract): Suppress "constant
1013 cannot be volatile" for internally generated object (such as
1014 FIRST and LAST constants).
1015
1016 2015-03-13 Ed Schonberg <schonberg@adacore.com>
1017
1018 * sem_ch12.adb (Validate_Access_Subprogram_Instance): If a
1019 convention is specified for the formal parameter, verify that
1020 the actual has the same convention.
1021 * sem_prag.adb (Set_Convention_From_Pragma): Allow convention
1022 pragma to be set on a generic formal type.
1023 * sem_util.adb (Set_Convention): Ignore within an instance,
1024 as it has already been verified in the generic unit.
1025
1026 2015-03-13 Claire Dross <dross@adacore.com>
1027
1028 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline
1029 subprograms with unconstrained record parameters containing
1030 Itype declarations.
1031 * sinfo.ads Document GNATprove assumption that type should match
1032 in the AST.
1033 * sem_ch6.adb (Analyze_Subprogram_Body_Contract):
1034 Do not check for Refined_Depends and Refined_Globals contracts
1035 as they are optional.
1036
1037 2015-03-13 Ed Schonberg <schonberg@adacore.com>
1038
1039 * sem_ch12.adb (Instantiate_Type): For a floating-point type,
1040 capture dimension info if any, because the generated subtype
1041 declaration does not come from source and will not process dimensions.
1042 * sem_dim,adb (Analyze_Dimension_Extension_Or_Record_Aggregate):
1043 Do not analyze expressions with an initialization procedure
1044 because aggregates will have been checked at the point of record
1045 declaration.
1046
1047 2015-03-13 Robert Dewar <dewar@adacore.com>
1048
1049 * aspects.ads, aspects.adb: Add entries for aspect Unimplemented.
1050 * einfo.ads, einfo.adb (Is_Unimplemented): New flag.
1051 * sem_ch13.adb: Add dummy entry for aspect Unimplemented.
1052 * snames.ads-tmpl: Add entry for Name_Unimplemented.
1053
1054 2015-03-13 Gary Dismukes <dismukes@adacore.com>
1055
1056 * style.adb (Missing_Overriding): Apply the
1057 Comes_From_Source test to the Original_Node of the subprogram
1058 node, to handle the case of a null procedure declaration that
1059 has been rewritten as an empty procedure body.
1060
1061 2015-03-13 Robert Dewar <dewar@adacore.com>
1062
1063 * exp_util.ads: Minor fix to comment.
1064 * sem_ch3.adb (Constrain_Index): Correct pasto from previous
1065 change.
1066
1067 2015-03-13 Robert Dewar <dewar@adacore.com>
1068
1069 * exp_util.ads, exp_util.adb (Force_Evaluation): Add Related_Id and
1070 Is_Low/High_Bound params.
1071 * sem_ch3.adb (Constrain_Index): Use new Force_Evaluation calling
1072 sequence to simplify generation of FIRST/LAST temps for bounds.
1073
1074 2015-03-12 Olivier Hainque <hainque@adacore.com>
1075
1076 * gcc-interface/trans.c (Attribute_to_gnu) <Code_Address case>:
1077 On targets where a function symbol designates a function descriptor,
1078 fetch the function code address from the descriptor.
1079 (USE_RUNTIME_DESCRIPTORS): Provide a default definition.
1080
1081 2015-03-04 Robert Dewar <dewar@adacore.com>
1082
1083 * sem_warn.adb: Minor reformatting.
1084 * init.c: Minor tweaks.
1085
1086 2015-03-04 Dmitriy Anisimko <anisimko@adacore.com>
1087
1088 * a-coinho-shared.adb: Fix clear of already empty holder.
1089
1090 2015-03-04 Robert Dewar <dewar@adacore.com>
1091
1092 * exp_unst.adb (Check_Dynamic_Type): Ignore library level types.
1093 (Check_Uplevel_Reference_To_Type): Ignore call inside generic.
1094 (Note_Uplevel_Reference): Ignore call inside generic.
1095 (Note_Uplevel_Reference): Fix check for no entity field.
1096 (Unnest_Subprogram): Ignore call inside generic.
1097 (Find_Current_Subprogram): Use Defining_Entity, not Defining_Unit_Name.
1098 (Visit_Node): Ignore calls to Imported subprograms.
1099 (Visit_Node): Fix problem in finding subprogram body in some cases.
1100 (Add_Form_To_Spec): Use Defining_Entity, not Defining_Unit_Name.
1101
1102 2015-03-04 Robert Dewar <dewar@adacore.com>
1103
1104 * einfo.adb (Is_ARECnF_Entity): Removed.
1105 (Last_Formal): Remove special handling of Is_ARECnF_Entity.
1106 (Next_Formal): Remove special handling of Is_ARECnF_Entity.
1107 (Next_Formal_With_Extras): Remove special handling of Is_ARECnF_Entity.
1108 (Number_Entries): Minor reformatting.
1109 * einfo.ads (Is_ARECnF_Entity): Removed.
1110 * exp_unst.adb (Unnest_Subprogram): Remove setting of
1111 Is_ARECnF_Entity.
1112 (Add_Extra_Formal): Use normal Extra_Formal circuit.
1113 * sprint.adb (Write_Param_Specs): Properly handle case where
1114 there are no source formals, but we have at least one Extra_Formal
1115 present.
1116
1117 2015-03-04 Ed Schonberg <schonberg@adacore.com>
1118
1119 * sem_aggr.adb (Resolve_Record_Aggregate,
1120 Add_Discriminant_Values): If the value is a reference to the
1121 current instance of an enclosing type, use its base type to check
1122 against prefix of attribute reference, because the target type
1123 may be otherwise constrained.
1124
1125 2015-03-04 Robert Dewar <dewar@adacore.com>
1126
1127 * atree.h: Add entries for Flag287-Flag309.
1128 * einfo.adb: Add (unused) flags Flag287-Flag309.
1129
1130 2015-03-04 Ed Schonberg <schonberg@adacore.com>
1131
1132 * sem_util.adb (Collect_Interfaces, Collect): When gathering
1133 interfaces of ancestors, handle properly a subtype of a private
1134 extension.
1135
1136 2015-03-04 Robert Dewar <dewar@adacore.com>
1137
1138 * einfo.adb (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
1139 (Next_Formal): Don't return ARECnF formal.
1140 (Last_Formal): Don't consider ARECnF formal.
1141 (Next_Formal_With_Extras): Do consider ARECnF formal.
1142 * einfo.ads (Is_ARECnF_Entity): New flag (ARECnF is an extra formal).
1143 * exp_unst.adb (Create_Entities): Set Is_ARECnF_Entity flag.
1144
1145 2015-03-04 Javier Miranda <miranda@adacore.com>
1146
1147 * exp_ch6.adb (Expand_Simple_Function_Return): When the returned
1148 object is a class-wide interface object and we generate the
1149 accessibility described in RM 6.5(8/3) then displace the pointer
1150 to the object to reference the base of the object (to get access
1151 to the TSD of the object).
1152
1153 2015-03-04 Hristian Kirtchev <kirtchev@adacore.com>
1154
1155 * sem_prag.adb (Analyze_Abstract_State): Use routine
1156 Malformed_State_Error to issue general errors.
1157 (Analyze_Pragma): Diagnose a syntax error related to a state
1158 declaration with a simple option.
1159 (Malformed_State_Error): New routine.
1160
1161 2015-03-04 Robert Dewar <dewar@adacore.com>
1162
1163 * a-strsup.adb (Super_Slice): Deal with super flat case.
1164 * einfo.ads: Minor reformatting.
1165 * s-imgdec.adb (Set_Decimal_Digits): Add comment about possibly
1166 redundant code.
1167
1168 2015-03-04 Claire Dross <dross@adacore.com>
1169
1170 * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
1171 a-cforse.ads, a-cofove.ads: Use Default_Initial_Condition on formal
1172 containers.
1173
1174 2015-03-04 Ed Schonberg <schonberg@adacore.com>
1175
1176 * sem_warn.adb (Check_References): When checking for an unused
1177 in-out parameter of a class- wide type, use its type to determine
1178 whether it is private, in order to avoid a spurious warning when
1179 subprogram spec and body are in different units.
1180
1181 2015-03-04 Yannick Moy <moy@adacore.com>
1182
1183 * sem_attr.adb: Improve warning messages.
1184
1185 2015-03-04 Robert Dewar <dewar@adacore.com>
1186
1187 * exp_ch6.adb (Expand_N_Subprogram_Body): Avoid trying to unnest
1188 generic subprograms.
1189 * exp_unst.adb (Check_Dynamic_Type): Handle record types properly
1190 (Note_Uplevel_Reference): Ignore uplevel references to non-types
1191 (Get_Level): Consider only subprograms, not blocks.
1192 (Visit_Node): Set proper condition for generating ARECnF entity.
1193 Ignore indirect calls. Ignore calls to subprograms
1194 outside our nest.
1195 (Unnest_Subprogram): Minor changes in dealing with ARECnF entity.
1196 (Add_Form_To_Spec): Properly set Last_Entity field.
1197 (Unnest_Subprogram): Set current subprogram scope for analyze calls.
1198 Handle case of no uplevel refs in outer subprogram
1199 Don't mark uplevel entities as aliased.
1200 Don't deal with calls with no ARECnF requirement.
1201
1202 2015-03-04 Robert Dewar <dewar@adacore.com>
1203
1204 * s-valrea.adb (Scan_Real): Remove redundant tests from scaling loops.
1205 * s-imgdec.adb (Set_Decimal_Digits): Remove redundant Max
1206 operation in computing LZ.
1207 * sem_attr.adb: Minor typo fix
1208
1209 2015-03-04 Robert Dewar <dewar@adacore.com>
1210
1211 * exp_ch7.adb: Minor reformatting.
1212 * exp_unst.adb (Build_Tables): Fix minor glitch for no separate
1213 spec case.
1214 * erroutc.adb (Delete_Msg): add missing decrement of info msg counter.
1215
1216 2015-03-04 Hristian Kirtchev <kirtchev@adacore.com>
1217
1218 * exp_ch6.adb (Build_Pragma_Check_Equivalent): Suppress
1219 references to formal parameters subject to pragma Unreferenced.
1220 (Suppress_Reference): New routine.
1221 * sem_attr.adb (Analyze_Attribute): Reimplement the analysis
1222 of attribute 'Old. Attributes 'Old and 'Result now share
1223 common processing.
1224 (Analyze_Old_Result_Attribute): New routine.
1225 (Check_Placement_In_Check): Removed.
1226 (Check_Placement_In_Contract_Cases): Removed.
1227 (Check_Placement_In_Test_Case): Removed.
1228 (Check_Use_In_Contract_Cases): Removed.
1229 (Check_Use_In_Test_Case): Removed.
1230 (In_Refined_Post): Removed.
1231 (Is_Within): Removed.
1232 * sem_warn.adb (Check_Low_Bound_Tested): Code cleanup.
1233 (Check_Low_Bound_Tested_For): New routine.
1234
1235 2015-03-04 Hristian Kirtchev <kirtchev@adacore.com>
1236
1237 * exp_ch3.adb (Expand_N_Object_Declaration):
1238 Generate a runtime check to test the expression of pragma
1239 Default_Initial_Condition when the object is default initialized.
1240
1241 2015-03-02 Robert Dewar <dewar@adacore.com>
1242
1243 * scng.adb (Scan): Ignore illegal character in relaxed
1244 semantics mode.
1245
1246 2015-03-02 Ed Schonberg <schonberg@adacore.com>
1247
1248 * sem_ch4.adb (Analyze_Set_Membership); Retain Overloaded flag
1249 on left operand, so it can be properly resolved with type of
1250 alternatives of right operand.
1251 * sem_res.adb (Resolve_Set_Membership): Handle properly an
1252 overloaded left-hand side when the alternatives on the right
1253 hand side are literals of some universal type. Use first
1254 non-overloaded alternative to find expected type.
1255
1256 2015-03-02 Ed Schonberg <schonberg@adacore.com>
1257
1258 * exp_ch7.adb (Make_Set_Finalize_Address_Call): Use underlying
1259 type to retrieve designated type, because the purported access
1260 type may be a partial (private) view, when it is declared in
1261 the private part of a nested package, and finalization actions
1262 are generated when completing compilation of enclosing unit.
1263
1264 2015-03-02 Robert Dewar <dewar@adacore.com>
1265
1266 * back_end.adb (Call_Back_End): Remove previous patch,
1267 the back end now gets to see the result of -gnatd.1
1268 (Unnest_Subprogram_Mode) processing.
1269 * elists.ads, elists.adb (List_Length): New function.
1270 * exp_unst.ads, exp_unst.adb: Major changes, first complete version.
1271 * sem_util.adb (Check_Nested_Access): Handle formals in
1272 Unnest_Subprogram_Mode.
1273 (Adjust_Named_Associations): Minor reformatting.
1274 * sprint.adb (Sprint_Node_Actual): Fix failure to print aliased
1275 for parameters.
1276
1277 2015-03-02 Robert Dewar <dewar@adacore.com>
1278
1279 * atree.ads, atree.adb (Uint24): New function
1280 (Set_Uint24): New procedure.
1281 * atree.h (Uint24): New macro for field access.
1282 * back_end.adb (Call_Back_End): For now, don't call back end
1283 if unnesting subprogs.
1284 * einfo.adb (Activation_Record_Component): New field
1285 (Subps_Index): New field.
1286 * einfo.ads (Activation_Record_Component): New field
1287 (Subps_Index): New field Minor reordering of comments into alpha order.
1288 * exp_unst.ads, exp_unst.adb: Continued development.
1289
1290 2015-03-02 Gary Dismukes <dismukes@adacore.com>
1291
1292 * exp_disp.ads: Minor reformatting.
1293
1294 2015-03-02 Ed Schonberg <schonberg@adacore.com>
1295
1296 * sem_ch8.adb (Chain_Use_Clause): Do not chain use clause from
1297 ancestor to list of use clauses active in descendant unit if we
1298 are within the private part of an intervening parent, to prevent
1299 circularities in use clause list.
1300
1301 2015-03-02 Javier Miranda <miranda@adacore.com>
1302
1303 * exp_ch9.adb (Build_Corresponding_Record): Propagate type
1304 invariants to the corresponding record type.
1305 * exp_disp.ad[sb] (Set_DT_Position_Value): New subprogram
1306 which sets the value of the DTC_Entity associated with a given
1307 primitive of a tagged type and propagates the value to the
1308 wrapped subprogram.
1309 (Set_DTC_Entity_Value): Propagate the DTC
1310 value to the wrapped entity.
1311 * sem_ch13.adb (Build_Invariant_Procedure): Append the code
1312 associated with invariants of progenitors.
1313 * sem_ch3.adb (Build_Derived_Record_Type): Inherit type invariants
1314 of parents and progenitors.
1315 (Process_Full_View): Check hidden inheritance of class-wide type
1316 invariants.
1317 * sem_ch7.adb (Analyze_Package_Specification): Do not generate
1318 the invariant procedure for interface types; build the invariant
1319 procedure for tagged types inheriting invariants from their
1320 progenitors.
1321 * sem_prag.adb (Pragma_Invariant) Allow invariants in interface
1322 types but do not build their invariant procedure since their
1323 invariants will be propagated to the invariant procedure of
1324 types covering the interface.
1325 * exp_ch6.adb, exp_disp.adb, sem_ch3.adb, sem_ch7.adb,
1326 sem_ch8.adb, sem_disp.adb: Replace all calls to Set_DT_Position
1327 by calls to Set_DT_Position_Value.
1328
1329 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
1330
1331 * sem_attr.adb (Analyze_Attribute): Factor out heavily indented
1332 code in Denote_Same_Function. Do not analyze attribute 'Result
1333 when it is inside procedure _Postconditions. Remove a misplaced
1334 warning diagnostic. Code cleanup.
1335 (Denote_Same_Function): New routine.
1336 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Code
1337 cleanup. Warn on pre/postconditions on an inlined subprogram.
1338 (Analyze_Pragma, Refined_Post case): Warn on pre/postconditions on
1339 an inlined subprogram.
1340 (Analyze_Pre_Post_Condition_In_Decl_Part): Code cleanup. Warn on
1341 pre/post condition on an inlined subprogram.
1342 (Analyze_Test_Case_In_Decl_Part): Code cleanup. Warn on
1343 pre/postconditions on an inlined subprogram.
1344 (Check_Postcondition_Use_In_Inlined_Subprogram): New routine.
1345
1346 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
1347
1348 * sem_prag.adb (Ensure_Aggregate_Form):
1349 Ensure that the name denoted by the Chars of a pragma argument
1350 association has the proper Sloc when converted into an aggregate.
1351
1352 2015-03-02 Bob Duff <duff@adacore.com>
1353
1354 * sem_ch6.adb (Check_Private_Overriding): Capture
1355 Incomplete_Or_Partial_View in a constant. This is cleaner and
1356 more efficient.
1357
1358 2015-03-02 Gary Dismukes <dismukes@adacore.com>
1359
1360 * einfo.ads, exp_unst.ads: Minor reformatting.
1361
1362 2015-03-02 Ed Schonberg <schonberg@adacore.com>
1363
1364 * a-strsea.adb (Find_Token): Ensure that the range of iteration
1365 does not perform any improper character access. This prevents
1366 erroneous access in the unusual case of an empty string target
1367 and a From parameter less than Source'First.
1368
1369 2015-03-02 Robert Dewar <dewar@adacore.com>
1370
1371 * elists.adb (List_Length): Fix incorrect result.
1372
1373 2015-03-02 Bob Duff <duff@adacore.com>
1374
1375 * sem_ch6.adb (Check_Private_Overriding): Refine the legality
1376 checks here. It used to check that the function is merely
1377 overriding SOMEthing. Now it checks that the function is
1378 overriding a corresponding public operation. This is a correction
1379 to the implementation of the rule in RM-3.9.3(10).
1380
1381 2015-03-02 Robert Dewar <dewar@adacore.com>
1382
1383 * debug.adb: Document new debug flag -gnatd.1.
1384 * einfo.ads, einfo.adb (Has_Nested_Subprogram): New flag.
1385 (Has_Uplevel_Reference): New flag (Is_Static_Type): New flag.
1386 (Uplevel_Reference_Noted):New flag (Uplevel_References): New field.
1387 * elists.ads elists.adb (List_Length): New function.
1388 * exp_ch6.adb (Expand_N_Subprogram_Body): Call Unnest_Subprogram
1389 when appropriate (Process_Preconditions): Minor code
1390 reorganization and reformatting
1391 * exp_unst.ads, exp_unst.adb: New files.
1392 * gnat1drv.adb (Adjust_Global_Switches): Set
1393 Unnest_Subprogram_Mode if -gnatd.1
1394 * namet.ads, namet.adb (Name_Find_Str): New version of Name_Find with
1395 string argument.
1396 * opt.ads (Unnest_Subprogram_Mode): New flag.
1397 * par-ch3.adb (P_Identifier_Declarations): Fixes to -gnatd.2 handling.
1398 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set
1399 Has_Nested_Subprogram flag.
1400 * sem_ch8.adb (Find_Direct_Name): New calling sequence for
1401 Check_Nested_Access.
1402 (Find_Selected_Component): Minor comment addition.
1403 * sem_util.adb (Check_Nested_Access): New version for use with Exp_Unst.
1404 (Note_Possible_Modification): New calling sequence for
1405 Check_Nested_Access.
1406 * sem_util.ads (Check_Nested_Access): New version for use with Exp_Unst.
1407 * gcc-interface/Make-lang.in (GNAT1_OBJS): Add exp_unst.o
1408
1409 2015-03-02 Pierre-Marie de Rodat <derodat@adacore.com>
1410
1411 * gcc-interface/utils.c (gnat_pushdecl): For non-artificial pointer
1412 types, preserve the original type and create copies just like the C
1413 front-end does. For artificial ones, do not define a name for
1414 the original type.
1415 (create_type_decl): When gnat_pushdecl made the input type the
1416 original type for the new declaration, do not define a stub
1417 declaration for it.
1418 * gcc-interface/utils2.c (build_binary_op): Accept two different
1419 pointer types when they point to the same type.
1420
1421 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
1422
1423 * exp_util.adb (Possible_Bit_Aligned_Component): Do not process
1424 an unanalyzed node.
1425 * sem_util.adb (Kill_Current_Values): Do not invalidate and
1426 de-null a constant.
1427
1428 2015-03-02 Robert Dewar <dewar@adacore.com>
1429
1430 * sem_ch3.adb, exp_attr.adb, checks.adb, exp_aggr.adb: Minor
1431 reformatting.
1432
1433 2015-03-02 Ed Schonberg <schonberg@adacore.com>
1434
1435 * sem_ch8.adb: extend use of Available_Subtype.
1436
1437 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
1438
1439 * sem_prag.adb (Duplication_Error): Remove the special handling
1440 of 'Class or _Class in the context of pre/postconditions.
1441 (Process_Class_Wide_Condition): Remove the special handling of
1442 'Class or _Class in the context of pre/postconditions.
1443 * sem_util.adb (Original_Aspect_Pragma_Name): Names Pre_Class
1444 and Post_Class no longer need to be converted to _Pre and _Post.
1445 * sem_util.ads (Original_Aspect_Pragma_Name): Update the comment
1446 on usage.
1447
1448 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
1449
1450 * exp_ch6.adb (Process_Preconditions): Modify the
1451 mechanism that find the first source declaration to correct exit
1452 the loop once it has been found.
1453
1454 2015-03-02 Gary Dismukes <dismukes@adacore.com>
1455
1456 * a-strsea.adb: Minor typo fix.
1457
1458 2015-03-02 Bob Duff <duff@adacore.com>
1459
1460 * einfo.ads: Minor comment fixes.
1461
1462 2015-03-02 Gary Dismukes <dismukes@adacore.com>
1463
1464 * einfo.adb, checks.adb: Minor reformatting and typo fixes.
1465
1466 2015-03-02 Ed Schonberg <schonberg@adacore.com>
1467
1468 * exp_aggr.adb (Get_Assoc_Expr): If the Default_Component_Value
1469 is defined for the array type, use it instead of a Default_Value
1470 specified for the component type itself.
1471
1472 2015-03-02 Thomas Quinot <quinot@adacore.com>
1473
1474 * exp_attr.adb (Expand_N_Attribute_Reference, case Input): When
1475 expanding a 'Input attribute reference for a class-wide type,
1476 do not generate a separate object declaration for the controlling
1477 tag dummy object; instead, generate the expression inline in the
1478 dispatching call. Otherwise, the declaration (which involves a
1479 call to String'Input, returning a dynamically sized value on the
1480 secondary stack) will be expanded outside of proper secondary
1481 stack mark/release operations, and will thus cause a secondary
1482 stack leak.
1483
1484 2015-03-02 Hristian Kirtchev <kirtchev@adacore.com>
1485
1486 * checks.adb (Add_Validity_Check): Change the names of all
1487 formal parameters to better illustrate their purpose. Update
1488 the subprogram documentation. Update all occurrences of the
1489 formal parameters. Generate a pre/postcondition pragma by
1490 calling Build_Pre_Post_Condition.
1491 (Build_PPC_Pragma): Removed.
1492 (Build_Pre_Post_Condition): New routine.
1493 * einfo.adb Node8 is no longer used as Postcondition_Proc. Node14
1494 is now used as Postconditions_Proc. Flag240 is now renamed to
1495 Has_Expanded_Contract. (First_Formal): The routine can now
1496 operate on generic subprograms.
1497 (First_Formal_With_Extras): The routine can now operate on generic
1498 subprograms.
1499 (Has_Expanded_Contract): New routine.
1500 (Has_Postconditions): Removed.
1501 (Postcondition_Proc): Removed.
1502 (Postconditions_Proc): New routine.
1503 (Set_Has_Expanded_Contract): New routine.
1504 (Set_Has_Postconditions): Removed.
1505 (Set_Postcondition_Proc): Removed.
1506 (Set_Postconditions_Proc): New routine.
1507 (Write_Entity_Flags): Remove the output of Has_Postconditions. Add
1508 the output of Has_Expanded_Contract.
1509 (Write_Field8_Name): Remove the output of Postcondition_Proc.
1510 (Write_Field14_Name): Add the output of Postconditions_Proc.
1511 * einfo.ads New attributes Has_Expanded_Contract and
1512 Postconditions_Proc along with occurrences in entities.
1513 Remove attributes Has_Postconditions and Postcondition_Proc
1514 along with occurrences in entities.
1515 (Has_Expanded_Contract): New routine along with pragma Inline.
1516 (Has_Postconditions): Removed along with pragma Inline.
1517 (Postcondition_Proc): Removed along with pragma Inline.
1518 (Postconditions_Proc): New routine along with pragma Inline.
1519 (Set_Has_Expanded_Contract): New routine along with pragma Inline.
1520 (Set_Has_Postconditions): Removed along with pragma Inline.
1521 (Set_Postcondition_Proc): Removed along with pragma Inline.
1522 (Set_Postconditions_Proc): New routine along with pragma Inline.
1523 * exp_ch6.adb (Add_Return): Code cleanup. Update the
1524 generation of the call to the _Postconditions routine of
1525 the procedure. (Expand_Non_Function_Return): Reformat the
1526 comment on usage. Code cleanup. Update the generation of
1527 the call to the _Postconditions routine of the procedure or
1528 entry [family].
1529 (Expand_Simple_Function_Return): Update the
1530 generation of the _Postconditions routine of the function.
1531 (Expand_Subprogram_Contract): Reimplemented.
1532 * exp_ch6.ads (Expand_Subprogram_Contract): Update the parameter
1533 profile along the comment on usage.
1534 * exp_ch9.adb (Build_PPC_Wrapper): Code cleanup.
1535 (Expand_N_Task_Type_Declaration): Generate pre/postconditions
1536 wrapper when the entry [family] has a contract with
1537 pre/postconditions.
1538 * exp_prag.adb (Expand_Attributes_In_Consequence): New routine.
1539 (Expand_Contract_Cases): This routine and its subsidiaries now
1540 analyze all generated code.
1541 (Expand_Old_In_Consequence): Removed.
1542 * sem_attr.adb Add with and use clause for Sem_Prag.
1543 (Analyze_Attribute): Reimplment the analysis of attribute 'Result.
1544 (Check_Use_In_Test_Case): Use routine Test_Case_Arg to obtain
1545 "Ensures".
1546 * sem_ch3.adb (Analyze_Declarations): Analyze the contract of
1547 a generic subprogram.
1548 (Analyze_Object_Declaration): Do not create a contract node.
1549 (Derive_Subprogram): Do not create a contract node.
1550 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Do
1551 not create a contract node.
1552 (Analyze_Completion_Contract): New routine.
1553 (Analyze_Function_Return): Alphabetize.
1554 (Analyze_Generic_Subprogram_Body): Alphabetize. Do not create a
1555 contract node. Do not copy pre/postconditions to the original
1556 generic template.
1557 (Analyze_Null_Procedure): Do not create a contract node.
1558 (Analyze_Subprogram_Body_Contract): Reimplemented.
1559 (Analyze_Subprogram_Body_Helper): Do not mark the enclosing scope
1560 as having postconditions. Do not create a contract node. Analyze
1561 the subprogram body contract of a body that acts as a compilation
1562 unit. Expand the subprogram contract after the declarations have
1563 been analyzed.
1564 (Analyze_Subprogram_Contract): Reimplemented.
1565 (Analyze_Subprogram_Specification): Do not create a contract node.
1566 (List_Inherited_Pre_Post_Aspects): Code cleanup.
1567 * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Update the
1568 comment on usage.
1569 (Analyze_Subprogram_Contract): Update the
1570 parameter profile and the comment on usage.
1571 * sem_ch7.adb (Analyze_Package_Body_Helper): Do not create a
1572 contract node.
1573 (Analyze_Package_Declaration): Do not create a
1574 contract node.
1575 (Is_Subp_Or_Const_Ref): Ensure that the prefix has an entity.
1576 * sem_ch8.adb (Analyze_Subprogram_Renaming): Do not create a
1577 contract node.
1578 * sem_ch9.adb (Analyze_Entry_Declaration): Do not create a
1579 contract node.
1580 * sem_ch10.adb (Analyze_Compilation_Unit): Move local variables to
1581 their proper section and alphabetize them. Analyze the contract of
1582 a [generic] subprogram after all Pragmas_After have been analyzed.
1583 (Analyze_Subprogram_Body_Stub_Contract): Alphabetize.
1584 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Do not
1585 create a contract node.
1586 (Analyze_Generic_Subprogram_Declaration):
1587 Alphabetize local variables. Do not create a contract
1588 node. Do not generate aspects out of pragmas for ASIS.
1589 (Analyze_Subprogram_Instantiation): Instantiate
1590 the contract of the subprogram. Do not create a
1591 contract node. (Instantiate_Contract): New routine.
1592 (Instantiate_Subprogram_Body): Alphabetize local variables.
1593 (Save_Global_References_In_Aspects): New routine.
1594 (Save_References): Do not save the global references found within
1595 the aspects of a generic subprogram.
1596 * sem_ch12.ads (Save_Global_References_In_Aspects): New routine.
1597 * sem_ch13.adb (Analyze_Aspect_Specifications): Do not use
1598 Original_Node for establishing linkages.
1599 (Insert_Pragma): Insertion in a subprogram body takes precedence over
1600 the case where the subprogram body is also a compilation unit.
1601 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Use
1602 Get_Argument to obtain the proper expression. Install the generic
1603 formals when the related context is a generic subprogram.
1604 (Analyze_Depends_In_Decl_Part): Use Get_Argument to obtain
1605 the proper expression. Use Corresponding_Spec_Of to obtain
1606 the spec. Install the generic formal when the related context
1607 is a generic subprogram.
1608 (Analyze_Global_In_Decl_Part): Use Get_Argument to obtain the proper
1609 expression. Use Corresponding_Spec_Of to obtain the spec. Install the
1610 generic formal when the related context is a generic subprogram.
1611 (Analyze_Initial_Condition_In_Decl_Part): Use Get_Argument
1612 to obtain the proper expression. Remove the call to
1613 Check_SPARK_Aspect_For_ASIS as the analysis is now done
1614 automatically.
1615 (Analyze_Pragma): Update all occurrences
1616 to Original_Aspect_Name. Pragmas Contract_Cases, Depends,
1617 Extensions_Visible, Global, Postcondition, Precondition and
1618 Test_Case now carry generic templates when the related context
1619 is a generic subprogram. The same pragmas are no longer
1620 forcefully fully analyzed when the context is a subprogram
1621 that acts as a compilation unit. Pragmas Abstract_State,
1622 Initial_Condition, Initializes and Refined_State have been clean
1623 up. Pragmas Post, Post_Class, Postcondition, Pre, Pre_Class
1624 and Precondition now use the same routine for analysis. Pragma
1625 Refined_Post does not need to check the use of 'Result or
1626 the lack of a post-state in its expression. Reimplement the
1627 analysis of pragma Test_Case.
1628 (Analyze_Pre_Post_Condition): New routine.
1629 (Analyze_Pre_Post_Condition_In_Decl_Part):
1630 Reimplemented.
1631 (Analyze_Refined_Depends_In_Decl_Part): Use Get_Argument to obtain the
1632 proper expression.
1633 (Analyze_Refined_Global_In_Decl_Part): Use Get_Argument to obtain
1634 the proper expression.
1635 (Analyze_Test_Case_In_Decl_Part): Reimplemented.
1636 (Check_Pre_Post): Removed.
1637 (Check_Precondition_Postcondition): Removed.
1638 (Check_SPARK_Aspect_For_ASIS): Removed.
1639 (Check_Test_Case): Removed.
1640 (Collect_Subprogram_Inputs_Outputs): Use Get_Argument
1641 to obtain the proper expression. Use Corresponding_Spec_Of to
1642 find the proper spec.
1643 (Create_Generic_Template): New routine.
1644 (Duplication_Error): New routine.
1645 (Expression_Function_Error): New routine.
1646 (Find_Related_Subprogram_Or_Body): Moved to the spec
1647 of Sem_Prag. Emit precise error messages. Account for cases of
1648 rewritten expression functions, generic instantiations, handled
1649 sequence of statements and pragmas from aspects.
1650 (Get_Argument): New routine.
1651 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
1652 (Preanalyze_CTC_Args): Removed.
1653 (Process_Class_Wide_Condition): New routine.
1654 * sem_prag.ads (Analyze_Test_Case_In_Decl_Part): Update
1655 the parameter profile along with the comment on usage.
1656 (Find_Related_Subprogram_Or_Body): Moved from the body of Sem_Prag.
1657 (Make_Aspect_For_PPC_In_Gen_Sub_Decl): Removed.
1658 (Test_Case_Arg): New routine.
1659 * sem_util.adb Add with and use clauses for Sem_Ch6.
1660 (Add_Contract_Item): This routine now creates a contract
1661 node the first time an item is added. Remove the duplicate
1662 aspect/pragma checks.
1663 (Check_Result_And_Post_State): Reimplemented.
1664 (Corresponding_Spec_Of): New routine.
1665 (Get_Ensures_From_CTC_Pragma): Removed.
1666 (Get_Requires_From_CTC_Pragma): Removed.
1667 (Has_Significant_Contract): New routine.
1668 (Inherit_Subprogram_Contract): Inherit only if the source
1669 has a contract.
1670 (Install_Generic_Formals): New routine.
1671 (Original_Aspect_Name): Removed.
1672 (Original_Aspect_Pragma_Name): New routine.
1673 * sem_util.ads (Check_Result_And_Post_State): Reimplemented.
1674 (Corresponding_Spec_Of): New routine.
1675 (Get_Ensures_From_CTC_Pragma): Removed.
1676 (Get_Requires_From_CTC_Pragma): Removed.
1677 (Has_Significant_Contract): New routine.
1678 (Install_Generic_Formals): New routine.
1679 (Original_Aspect_Name): Removed.
1680 (Original_Aspect_Pragma_Name): New routine.
1681 * sem_warn.adb Add with and use clauses for Sem_Prag.
1682 (Within_Postcondition): Use Test_Case_Arg to extract "Ensures".
1683
1684 2015-03-02 Ed Schonberg <schonberg@adacore.com>
1685
1686 * sem_ch8.adb (Available_Subtype): Optimization in
1687 Find_Selected_Component: when safe, use existing subtype of
1688 array component, possibly discriminant-dependent, rather than
1689 creating new subtype declaration for it. In this fashion different
1690 occurrences of the component have the same subtype, rather than
1691 just equivalent ones. Simplifies value tracing in GNATProve.
1692
1693 2015-03-01 Arnaud Charlet <charlet@adacore.com>
1694
1695 PR ada/65259
1696
1697 * doc/gnat_ugn/gnat_project_manager.rst,
1698 doc/gnat_ugn/platform_specific_information.rst: Remove reference to
1699 image, too troublesome with texi format.
1700 * gnat_ugn.texi: Regenerate.
1701
1702 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1703
1704 PR libgomp/64625
1705 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Remove.
1706 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
1707 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1708
1709 2015-02-23 Thomas Schwinge <thomas@codesourcery.com>
1710
1711 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8): Fix number of
1712 arguments parameter.
1713 (DEF_FUNCTION_TYPE_VAR_12): Likewise.
1714
1715 2015-02-22 Arnaud Charlet <charlet@adacore.com>
1716
1717 * doc/Makefile: postprocess texinfo files to update @dircategory
1718 and update texi files under gcc/ada.
1719 * gnat_ugn.texi, gnat_rm.texi: Regenerated.
1720
1721 2015-02-22 Arnaud Charlet <charlet@adacore.com>
1722
1723 * doc/gnat_ugn/project-manager-figure.png,
1724 doc/gnat_ugn/rtlibrary-structure.png: New.
1725
1726 2015-02-22 Tom de Vries <tom@codesourcery.com>
1727
1728 PR ada/65100
1729 * gnat-style.texi (@subsection Loop Statements): Replace @noindent by
1730 @item, and fix warning '@itemize has text but no @item'.
1731
1732 2015-02-20 Ed Schonberg <schonberg@adacore.com>
1733
1734 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Pragma
1735 legally applies to an abstract subprogram declaration.
1736 * freeze.adb: Minor comment addition.
1737
1738 2015-02-20 Robert Dewar <dewar@adacore.com>
1739
1740 * errout.ads: Document replacement of Name_uPre/Post/Type_Invariant.
1741 * erroutc.adb (Set_Msg_Str): Replace _xxx.
1742 (Pre/Post/Type_Invariant) by xxx'Class.
1743 * erroutc.ads (Set_Msg_Str): Replace _xxx.
1744 (Pre/Post/Type_Invariant) by xxx'Class.
1745 * sem_prag.adb (Fix_Error): Remove special casing of
1746 Name_uType_Invariant.
1747 (Analyze_Pre_Post_Condition_In_Decl_Part): Remove special casing of
1748 Name_uPre and Name_uPost in aspect case (done in Errout now).
1749
1750 2015-02-20 Robert Dewar <dewar@adacore.com>
1751
1752 * g-alveop.adb: Minor style fixes.
1753
1754 2015-02-20 Robert Dewar <dewar@adacore.com>
1755
1756 * freeze.adb (Warn_Overlay): Guard against blow up with address
1757 clause.
1758
1759 2015-02-20 Bob Duff <duff@adacore.com>
1760
1761 * exp_attr.adb (May_Be_External_Call): Remove this. There is no need
1762 for the compiler to guess whether the call is internal or external --
1763 it is always external.
1764 (Expand_Access_To_Protected_Op): For P'Access, where P
1765 is a protected subprogram, always create a pointer to the
1766 External_Subprogram.
1767
1768 2015-02-20 Robert Dewar <dewar@adacore.com>
1769
1770 * a-dispat.adb, a-stcoed.ads: Minor reformatting.
1771
1772 2015-02-20 Robert Dewar <dewar@adacore.com>
1773
1774 * sem_ch13.adb (Build_Discrete_Static_Predicate): Allow static
1775 predicate for non-static subtype.
1776 (Build_Predicate_Functions): Do not assume subtype associated with a
1777 static predicate must be static.
1778
1779 2015-02-20 Robert Dewar <dewar@adacore.com>
1780
1781 * errout.adb (Set_Msg_Node): Better handling of internal names
1782 (Set_Msg_Node): Kill message when we cannot eliminate internal name.
1783 * errout.ads: Document additional case of message deletion.
1784 * namet.adb (Is_Internal_Name): Refined to consider wide
1785 strings in brackets notation and character literals not to be
1786 internal names.
1787 * sem_ch8.adb (Find_Selected_Component): Give additional error
1788 when selector name is a subprogram whose first parameter has
1789 the same type as the prefix, but that type is untagged.
1790
1791 2015-02-20 Robert Dewar <dewar@adacore.com>
1792
1793 * g-allein.ads, g-alveop.adb, g-alveop.ads, opt.ads: Minor reformatting
1794
1795 2015-02-20 Tristan Gingold <gingold@adacore.com>
1796
1797 * opt.ads (GNAT_Mode_Config): New variable.
1798 * opt.adb (Set_Opt_Config_Switches): Consider GNAT_Mode_Config
1799 to set Assertions_Enabled.
1800 * switch-c.adb (Scan_Front_End_Switches): Set GNAT_Mode_Config
1801 for -gnatg.
1802
1803 2015-02-20 Robert Dewar <dewar@adacore.com>
1804
1805 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add an additional
1806 comment regarding the handling of unterminated fixed-point
1807 constants.
1808 * s-valuns.ads (Scan_Raw_Unsigned): Add comments
1809 corresponding to those previously added for
1810 System.Val_LLU.Scan_Raw_Long_Long_Unsigned.
1811
1812 2015-02-20 Olivier Hainque <hainque@adacore.com>
1813
1814 * g-allein.ads, g-alveop.ads, g-alveop.adb: Code clean ups.
1815
1816 2015-02-20 Robert Dewar <dewar@adacore.com>
1817
1818 * sem_prag.adb: Minor comment clarification.
1819
1820 2015-02-20 Olivier Hainque <hainque@adacore.com>
1821
1822 * g-allein.ads (vec_ctf, vec_vcsfx, vec_vcfux): Remove.
1823 * g-alleve.ads, g-alleva.adb (vcfux): Likewise.
1824 * g-alveop.ads (vec_vcfsx, vec_vcfux): Just rename the ll versions.
1825 (vec_ctf): Now renamings as well.
1826
1827 2015-02-20 Robert Dewar <dewar@adacore.com>
1828
1829 * switch-c.adb, bindgen.adb: Minor reformatting.
1830
1831 2015-02-20 Ed Schonberg <schonberg@adacore.com>
1832
1833 * sem_prag.adb (Analyze_Pragma, case Type_Invariant):
1834 Invariant'class is allowed on an abstract type.
1835
1836 2015-02-20 Ed Schonberg <schonberg@adacore.com>
1837
1838 * sem_ch3.adb (Access_Definition): If the access definition is
1839 for a protected component and defines an access to protected
1840 subprogram, do not create an itype reference for it because a
1841 full type declaration will be built in order to generate the
1842 proper equivalent type.
1843 (Analyze_Subtype_Declaration): Add information of incomplete
1844 subtypes, for Ada 2012 extended uses of incomplete types.
1845
1846 2015-02-20 Gary Dismukes <dismukes@adacore.com>
1847
1848 * sem_res.adb: Minor reformatting.
1849
1850 2015-02-20 Vincent Celier <celier@adacore.com>
1851
1852 * switch-c.adb (Scan_Front_End_Switches): When comparing runtime
1853 path name for several switches --RTS, use the normalized path
1854 names.
1855
1856 2015-02-20 Vincent Celier <celier@adacore.com>
1857
1858 * bindgen.adb: Minor reformatting and code reorganization.
1859
1860 2015-02-20 Jose Ruiz <ruiz@adacore.com>
1861
1862 * a-stcoed.ads: Add spec for this package (Unimplemented_Unit).
1863 * impunit.adb (Non_Imp_File_Names_12): Mark unit a-stcoed.ads as
1864 defined by Ada 2012.
1865
1866 2015-02-20 Arnaud Charlet <charlet@adacore.com>
1867
1868 * sysdep.c, expect.c, s-oscons-tmplt.c, gsocket.h, adaint.c: Remove
1869 obsolete references to RTX, nucleus, VMS.
1870
1871 2015-02-20 Ed Schonberg <schonberg@adacore.com>
1872
1873 * sem_prag.adb (Fix_Error): For an illegal Type_Invariant'Class
1874 aspect, use name that mentions Class explicitly, rather than
1875 compiler-internal name.
1876
1877 2015-02-20 Robert Dewar <dewar@adacore.com>
1878
1879 * debug.adb: Add documentation for -gnatd.2 (allow statements
1880 in decl sequences).
1881 * par-ch3.adb (P_Identifier_Declarations): Handle
1882 statement appearing where declaration expected more cleanly.
1883 (Statement_When_Declaration_Expected): Implement debug flag
1884 -gnatd.2.
1885
1886 2015-02-20 Jose Ruiz <ruiz@adacore.com>
1887
1888 * a-dinopr.ads: Add spec for this package (Unimplemented_Unit).
1889 * a-dispat.ads (Yield): Include procedure added in Ada 2012.
1890 * a-dispat.adb (Yield): Implement procedure added in Ada 2012.
1891 * impunit.adb (Non_Imp_File_Names_05): Mark unit a-dinopr.ads as
1892 defined by Ada 2005.
1893 * snames.ads-tmpl (Name_Non_Preemptive_FIFO_Within_Priorities):
1894 This is the correct name for the dispatching policy (FIFO was
1895 missing).
1896
1897 2015-02-20 Javier Miranda <miranda@adacore.com>
1898
1899 * sem_res.adb (Resolve_Type_Conversion): If the type of the
1900 operand is the limited-view of a class-wide type then recover
1901 the class-wide type of the non-limited view.
1902
1903 2015-02-20 Arnaud Charlet <charlet@adacore.com>
1904
1905 * gcc-interface/Makefile.in: Remove references to nucleus.
1906 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Procedure): Set
1907 extern_flag to true for Inline_Always subprograms with
1908 Intrinsic convention.
1909
1910 2015-02-20 Yannick Moy <moy@adacore.com>
1911
1912 * sem_prag.ads: Minor typo in comment.
1913
1914 2015-02-20 Pascal Obry <obry@adacore.com>
1915
1916 * s-osprim-mingw.adb: Fix Get_Base_Time parameter mode.
1917
1918 2015-02-20 Vincent Celier <celier@adacore.com>
1919
1920 * makeutl.adb (Get_Directories.Add_Dir): Add a directory only
1921 if it exists.
1922
1923 2015-02-20 Robert Dewar <dewar@adacore.com>
1924
1925 * sem_eval.ads: Minor reformatting.
1926
1927 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
1928
1929 * freeze.adb (Size_Known): Do not set the packed size for
1930 independent type or component.
1931 (Freeze_Array_Type): Check for Independent[_Components] with packing
1932 or explicit component size clause.
1933 * gnat1drv.adb (Post_Compilation_Validation_Checks): Do the validation
1934 of independence pragmas only for non-GCC back-ends.
1935 * sem_ch13.adb (Initialize): Likewise for the initialization.
1936 * sem_prag.adb (Record_Independence_Check): New procedure to record an
1937 independence check in the table.
1938 (Analyze_Pragma): Use it throughout instead of doing it manually.
1939 * gcc-interface/decl.c (gnat_to_gnu_field): Add support for
1940 independent type or component.
1941
1942 2015-02-20 Thomas Quinot <quinot@adacore.com>
1943
1944 * adaint.c (__gnat_readdir): For Solaris, use 64 bit variants of
1945 struct direct and readdir. This is required for NFS filesystems
1946 mounted from servers that use 64-bit cookies.
1947
1948 2015-02-20 Ed Schonberg <schonberg@adacore.com>
1949
1950 * sem_ch12.adb (Analyze_Subprogram_Instantiaion): New subprogram
1951 Build_Subprogram_Renaming, to create renaming of subprogram
1952 instance in the the declaration of the wrapper package rather
1953 than in its body, so that it is available for analysis of aspects
1954 propagated from generic to instantiation.
1955 (Check_Mismatch): An actual for a formal package that is an
1956 incomplete type matches a formal type that is incomplete.
1957 (Instantiate_Package_Body): Move code that builds subprogram
1958 renaming to Analyze_Subprogram_Instantiation.
1959 (Instantiate_Type): The generated subtype is a limited view if
1960 the actual is a limited view.
1961 (Load_Parent_Of_Generic): Retrieve instance declaration from
1962 its new position within wrapper package.
1963
1964 2015-02-20 Arnaud Charlet <charlet@adacore.com>
1965
1966 * s-parame-vxworks.adb, s-os_lib.ads: Update comments.
1967
1968 2015-02-20 Robert Dewar <dewar@adacore.com>
1969
1970 * s-osinte-vxworks.ads (To_Timespec): Add comment about the
1971 issue of negative arguments.
1972
1973 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
1974
1975 * gnat1drv.adb: Minor consistency fix.
1976
1977 2015-02-20 Pascal Obry <obry@adacore.com>
1978
1979 * s-osprim-mingw.adb (Get_Base_Time): Properly release lock in all
1980 paths.
1981
1982 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
1983
1984 * inline.adb (Expand_Inlined_Call): Skip again calls to subprogram
1985 renamings.
1986 * exp_ch6.adb (Expand_Call): Use back-end inlining
1987 instead of expansion for simple subprogram renamings.
1988
1989 2015-02-20 Robert Dewar <dewar@adacore.com>
1990
1991 * exp_util.adb: Minor reformatting.
1992
1993 2015-02-20 Vincent Celier <celier@adacore.com>
1994
1995 * switch-c.adb (Scan_Front_End_Switches): Do not fail when --RTS=
1996 is specified several times with different values that indicates
1997 the same runtime directory.
1998
1999 2015-02-20 Ed Schonberg <schonberg@adacore.com>
2000
2001 * sem_attr.adb (Check_Not_Incomplete_Type): Clean up code to
2002 handle properly illegal uses of attributes on prefixes on an
2003 incomplete type, both when the type of the prefix is locally
2004 incomplete, and when it is a limited view of a type whose
2005 non-limited view is not available.
2006 (Analyze_Attribute): Add calls to Check_Not_Incomplete_Type for
2007 'Address and others.
2008
2009 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
2010
2011 * exp_ch6.adb: Fix minor typo in comment.
2012
2013 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
2014
2015 * sinfo.ads: Add comment.
2016
2017 2015-02-20 Olivier Hainque <hainque@adacore.com>
2018
2019 * opt.ads: Replace Opt.Suppress_All_Inlining by two separate
2020 flags controlling the actual FE inlining out of pragma Inline
2021 and pragma Inline_Always.
2022 * adabkend.adb (Scan_Compiler_Arguments): Set both flags to True
2023 on -fno-inline, which disables all inlining in compilers with
2024 an Ada back-end and without back-end inlining support.
2025 * back_end.adb (Scan_Back_End_Switches): Set the Inline related
2026 flag to True on -fno-inline and leave Inline_Always alone for
2027 gcc back-ends.
2028 * back_end.ads (Scan_Compiler_Arguments): Adjust spec wrt the
2029 names of the Opt flags it sets.
2030 * gnat1drv.adb (Adjust_Global_Switches): Remove test on
2031 Opt.Suppress_All_Inlining in the Back_End_Inlining computation.
2032 * sem_prag.adb (Make_Inline): Remove early return conditioned
2033 on Opt.Suppress_All_Inlining.
2034 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the flags to
2035 disable the calls to Build_Body_To_Inline otherwise triggered
2036 by pragma Inline or Inline_Always. This will prevent actual
2037 front-end inlining of the subprogram on calls.
2038
2039 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
2040
2041 * exp_ch3.adb (Default_Initialize_Object): Call Add_Inlined_Body on the
2042 Abort_Undefer_Direct function.
2043 * exp_ch5.adb (Expand_N_Assignment_Statement): Likewise.
2044 * exp_intr.adb (Expand_Unc_Deallocation): Likewise.
2045 * exp_prag.adb (Expand_Pragma_Abort_Defer): Likewise.
2046 * exp_ch4.adb (Expand_N_Selected_Component): Adjust call to
2047 Add_Inlined_Body.
2048 * exp_ch6.adb (Expand_Call): Adjust calls to Add_Inlined_Body.
2049 Remove call to Register_Backend_Call and move code resetting
2050 Needs_Debug_Info on inlined subprograms to...
2051 * inline.ads (Add_Inlined_Body): Add N parameter.
2052 (Register_Backend_Call): Delete.
2053 * inline.adb (Add_Inlined_Body): ...here and simplify.
2054 Register the call with Backend_Calls directly.
2055 (Register_Backend_Call): Delete.
2056 * s-stalib.ads (Abort_Undefer_Direct): Restore pragma Inline.
2057
2058 2015-02-20 Eric Botcazou <ebotcazou@adacore.com>
2059
2060 * s-stalib.ads: Fix typo.
2061
2062 2015-02-20 Ed Schonberg <schonberg@adacore.com>
2063
2064 * exp_ch3.adb (Default_Initialize_Object): If the object has a
2065 delayed freeze, the actions associated with default initialization
2066 must be part of the freeze actions, rather that being inserted
2067 directly after the object declaration.
2068
2069 2015-02-20 Robert Dewar <dewar@adacore.com>
2070
2071 * lib-load.adb: Minor comment update.
2072
2073 2015-02-20 Vincent Celier <celier@adacore.com>
2074
2075 * prj-proc.adb (Process_Case_Construction): When there are
2076 incomplete withed projects and the case variable is unknown,
2077 skip the case construction.
2078
2079 2015-02-20 Ed Schonberg <schonberg@adacore.com>
2080
2081 * exp_ch6.adb (Expand_Actuals): Add caller-side invariant checks
2082 when an actual is a view conversion, either because the call is
2083 to an inherited operation, or because the actual is an explicit
2084 type conversion to an ancestor type. Fixes ACATS 4.0D: C732001
2085
2086 2015-02-20 Robert Dewar <dewar@adacore.com>
2087
2088 * einfo.ads: Minor comment updates Fix missing pragma Inline
2089 for Set_Partial_View_Has_Unknown_Discr.
2090 * einfo.adb (Write_Entity_Flags): Add missing entry for
2091 Partial_View_Has_Unknown_Discr.
2092 * sem_ch3.adb: Minor reformatting.
2093
2094 2015-02-20 Vincent Celier <celier@adacore.com>
2095
2096 * opt.ads: Minor cleanup: remove mention of gprmake.
2097 * s-stalib.ads (Abort_Undefer_Direct): Do not inline.
2098 * s-tataat.adb: Do not call System.Tasking.Self but directly
2099 System.Task_Primitives.Operations.Self.
2100
2101 2015-02-20 Arnaud Charlet <charlet@adacore.com>
2102
2103 * gnat_rm.texi, gnat_ugn.texi: Now automatically generated from
2104 sphinx in the doc directory.
2105 * doc: New directory containing sphinx versions of gnat_rm and gnat_ugn
2106
2107 2015-02-20 Robert Dewar <dewar@adacore.com>
2108
2109 * sem_res.adb: Minor reformatting.
2110 * exp_ch9.adb (Build_Protected_Spec): Copy Aliased setting when
2111 building spec.
2112 * sem_ch13.adb (Analyze_Aspect_Specifications): Exclude Boolean
2113 aspects from circuitry setting delay required to false if the
2114 argument is an integer literal.
2115
2116 2015-02-20 Ed Schonberg <schonberg@adacore.com>
2117
2118 * einfo.ads. einfo.adb (Partial_View_Has_Unknown_Discr): New flag
2119 on type entities, to enforce AI12-0133: default initialization
2120 of types whose partial view has unknown discriminants does not
2121 get an invariant check, because clients of the unit can never
2122 declare objects of such types.
2123 * sem_ch3.adb (Find_Type_Name); Set new flag
2124 Partial_View_Has_Unknown_Discr when needed.
2125 * exp_ch3.adb (Expand_N_Object_Declaration): Use flag to suppress
2126 generation of invariant call on default-initialized object.
2127
2128 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
2129
2130 * gcc-interface/decl.c (gnat_to_gnu_param): Do not strip the padding
2131 if the parameter either is passed by reference or if the alignment
2132 would be lowered.
2133
2134 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
2135
2136 * gcc-interface/decl.c (is_cplusplus_method): Use Is_Primitive flag to
2137 detect primitive operations of tagged and untagged types.
2138
2139 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
2140
2141 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not bother about alias
2142 sets in presence of derivation for subprogram types.
2143
2144 2015-02-08 Eric Botcazou <ebotcazou@adacore.com>
2145
2146 * gcc-interface/utils.c (begin_subprog_body): Assert that the body is
2147 present in the same context as the declaration.
2148
2149 2015-02-07 Jakub Jelinek <jakub@redhat.com>
2150
2151 PR middle-end/64340
2152 * gcc-interface/trans.c (gigi): Recreate optimization_default_node
2153 and optimization_current_node after tweaking global_options.
2154
2155 2015-02-05 Robert Dewar <dewar@adacore.com>
2156
2157 * prj-proc.adb, sem_aux.adb, exp_ch9.adb, errout.adb, prj-dect.adb,
2158 prj-nmsc.adb: Minor reformatting.
2159
2160 2015-02-05 Ed Schonberg <schonberg@adacore.com>
2161
2162 * sem_type.adb (Covers): In ASIS_Mode the Corresponding_Record
2163 of a protected type may not be available, so to check conformance
2164 with an interface type, examine the interface list in the type
2165 declaration directly.
2166 (Write_Overloads): Improve information for indirect calls,
2167 for debugger use.
2168
2169 2015-02-05 Ed Schonberg <schonberg@adacore.com>
2170
2171 * exp_ch3.adb (Make_Tag_Assignment): Do not perform this
2172 expansion activity in ASIS mode.
2173
2174 2015-02-05 Javier Miranda <miranda@adacore.com>
2175
2176 * errout.adb (Error_Msg_PT): Add missing error.
2177 * sem_ch6.adb (Check_Synchronized_Overriding): Check the missing
2178 RM rule. Code cleanup.
2179 * exp_ch9.adb (Build_Wrapper_Spec): Propagate "constant" in
2180 anonymous access types. Found working on the tests. Code cleanup.
2181
2182 2015-02-05 Vincent Celier <celier@adacore.com>
2183
2184 * prj-dect.adb (Parse_Attribute_Declaration): Continue scanning
2185 when there are incomplete withs.
2186 * prj-nmsc.adb (Process_Naming): Do not try to get the value
2187 of an element when it is nil.
2188 (Check_Naming): Do not check a nil suffix for illegality
2189 * prj-proc.adb (Expression): Do not process an empty term.
2190 * prj-strt.adb (Attribute_Reference): If attribute cannot be
2191 found, parse a possible index to avoid cascading errors.
2192
2193 2015-02-05 Ed Schonberg <schonberg@adacore.com>
2194
2195 * sem_aux.adb (Is_Derived_Type): A subprogram_type generated
2196 for an access_to_subprogram declaration is not a derived type.
2197
2198 2015-02-05 Robert Dewar <dewar@adacore.com>
2199
2200 * errout.adb (Error_Msg_Internal): For non-serious error set
2201 Fatal_Error to Ignored.
2202 * lib-load.adb (Load_Unit): Minor comment updates.
2203 * sem_ch10.adb (Analyze_With_Clause): Propagate Fatal_Error
2204 setting from with'ed unit to with'ing unit.
2205 * sem_prag.adb (Analyze_Pragma, case Warnings): Document handling
2206 of ambiguity.
2207
2208 2015-02-05 Yannick Moy <moy@adacore.com>
2209
2210 * sem_prag.adb, par-prag.adb: Minor code clean up.
2211
2212 2015-02-05 Yannick Moy <moy@adacore.com>
2213
2214 * par-prag.adb (Pragma_Warnings): Update for extended form
2215 of pragma Warnings. The "one" argument case may now have 2 or
2216 3 arguments.
2217 * sem_prag.adb (Analyze_Pragma/Pragma_Warnings): Update for
2218 extended form of pragma Warnings. Pragma with tool name is either
2219 rewritten as null or as an equivalent form without tool name,
2220 before reanalysis.
2221 * snames.ads-tmpl (Name_Gnatprove): New name.
2222
2223 2015-02-05 Robert Dewar <dewar@adacore.com>
2224
2225 * sem_ch13.adb (Add_Invariants): Don't assume invariant is
2226 standard Boolean.
2227 * sem_prag.adb (Analyze_Pragma, case Check): Don't assume
2228 condition is standard Boolean, it can be non-standard derived
2229 Boolean.
2230
2231 2015-02-05 Robert Dewar <dewar@adacore.com>
2232
2233 * checks.adb (Enable_Range_Check): Disconnect attempted
2234 optimization for the case of range check for subscript of
2235 unconstrained array.
2236
2237 2015-02-05 Robert Dewar <dewar@adacore.com>
2238
2239 * par-ch13.adb (With_Present): New function
2240 (Aspect_Specifications_Present): Handle WHEN in place of WITH
2241 (Get_Aspect_Specifications): Comment update.
2242 * par.adb: Comment updates.
2243
2244 2015-02-05 Robert Dewar <dewar@adacore.com>
2245
2246 * errout.adb (Handle_Serious_Error): New setting of Fatal_Error.
2247 * frontend.adb (Frontend): New setting of Fatal_Error.
2248 * lib-load.adb (Create_Dummy_Package_Unit): New setting of
2249 Fatal_Error.
2250 (Load_Main_Source): New setting of Fatal_Error
2251 (Load_Unit): New setting of Fatal_Error.
2252 * lib-writ.adb (Add_Preprocessing_Dependency): New setting of
2253 Fatal_Error.
2254 (Ensure_System_Dependency): New setting of Fatal_Error.
2255 * lib.adb (Fatal_Error): New setting of Fatal_Error
2256 (Set_Fatal_Error): New setting of Fatal_Error.
2257 * lib.ads: New definition of Fatal_Error and associated routines.
2258 * par-ch10.adb (P_Compilation_Unit): New setting of Fatal_Error.
2259 * par-load.adb (Load): New setting of Fatal_Error.
2260 * rtsfind.adb (Load_RTU): New setting of Fatal_Error.
2261 * sem_ch10.adb (Analyze_Compilation_Unit): New setting of
2262 Fatal_Error.
2263 (Optional_Subunit): New setting of Fatal_Error.
2264 (Analyze_Proper_Body): New setting of Fatal_Error.
2265 (Load_Needed_Body): New setting of Fatal_Error.
2266
2267 2015-02-05 Ed Schonberg <schonberg@adacore.com>
2268
2269 * sem_res.adb (Resolve_Call): If the function being called has
2270 out parameters do not check for language version if the function
2271 comes from a predefined unit, as those are always compiled in
2272 Ada 2012 mode.
2273
2274 2015-02-05 Ed Schonberg <schonberg@adacore.com>
2275
2276 * sem_ch3.adb (Process_Full_View): Verify that the full view
2277 of a type extension must carry an explicit limited keyword if
2278 the partial view does (RM 7.3 (10.1)).
2279
2280 2015-02-05 Robert Dewar <dewar@adacore.com>
2281
2282 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads,
2283 sem_warn.ads: Minor reformatting.
2284 * exp_ch13.adb (Expand_N_Freeze_Entity): Add guard for aspect
2285 deleted by -gnatI.
2286 * sem_prag.adb (Analyze_Pragma, case Type_Invariant): Give
2287 error for abstract type.
2288
2289 2015-02-05 Yannick Moy <moy@adacore.com>
2290
2291 * opt.ads (Warn_On_Suspicious_Contract): Update comment
2292 describing use.
2293 * sem_attr.adb (Analyze_Attribute/Attribute_Update): Warn on
2294 suspicious uses of 'Update.
2295 * sem_warn.adb, sem_warn.ads (Warn_On_Suspicious_Update): New
2296 function issues warning on suspicious uses of 'Update.
2297 * g-rannum.adb, g-rannum.ads, s-rannum.adb, s-rannum.ads: Mark
2298 package spec and body as SPARK_Mode Off.
2299
2300 2015-02-05 Robert Dewar <dewar@adacore.com>
2301
2302 * sem_prag.adb (Set_Elab_Unit_Name): New name for Set_Unit_Name
2303 (Analyze_Pragma): Change Set_Unit_Name to Set_Elab_Unit_Name
2304 (Set_Elab_Unit_Name): Generate reference for Elaborate[_All]
2305 * sem_warn.adb (Warn_On_Unreferenced_Entity): Suppress warning
2306 for exported entity.
2307
2308 2015-02-05 Hristian Kirtchev <kirtchev@adacore.com>
2309
2310 * sem_prag.adb (Check_Pragma_Conformance): Add
2311 local variable Arg. Ensure that all errors are associated with
2312 the pragma if it appears without an argument. Add comments on
2313 various cases.
2314
2315 2015-02-05 Robert Dewar <dewar@adacore.com>
2316
2317 * lib-xref.adb: Minor reformatting.
2318
2319 2015-02-05 Tristan Gingold <gingold@adacore.com>
2320
2321 PR ada/64349da/64349
2322 * env.c: Fix thinko: handle Darwin case before default one.
2323
2324 2015-01-30 Robert Dewar <dewar@adacore.com>
2325
2326 * a-assert.adb: Minor reformatting.
2327 * sem_ch13.adb: Minor comment clarification.
2328 * types.ads: Minor comment update.
2329 * sem_eval.adb (Real_Or_String_Static_Predicate_Matches): Avoid blow up
2330 when we have a predicate that is nothing but an inherited dynamic
2331 predicate.
2332
2333 2015-01-30 Jerome Guitton <guitton@adacore.com>
2334
2335 * gcc-interface/Makefile.in (x86-vxworks): Update GCC_SPEC_FILES to
2336 include cert link spec.
2337
2338 2015-01-30 Robert Dewar <dewar@adacore.com>
2339
2340 * einfo.ads: Minor comment fix.
2341 * freeze.adb (Freeze_Profile): Add test for suspicious import
2342 in pure unit.
2343 * sem_prag.adb (Process_Import_Or_Interface): Test for suspicious
2344 use in Pure unit is now moved to Freeze (to properly catch
2345 Pure_Function exemption).
2346
2347 2015-01-30 Bob Duff <duff@adacore.com>
2348
2349 * sem_res.ads: Minor comment fix.
2350 * sem_type.adb: sem_type.adb (Remove_Conversions): Need to
2351 check both operands of an operator.
2352
2353 2015-01-30 Yannick Moy <moy@adacore.com>
2354
2355 * a-assert.ads, a-assert.adb: Mark package spec in SPARK. Set assertion
2356 policy for Pre to Ignore.
2357 (Assert): Add precondition.
2358
2359 2015-01-30 Robert Dewar <dewar@adacore.com>
2360
2361 * sem_prag.adb (Process_Import_Or_Interface): Warn if used in
2362 Pure unit.
2363 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Clarify
2364 documentation for some special cases of invalid attempts at
2365 based integers.
2366
2367 2015-01-30 Gary Dismukes <dismukes@adacore.com>
2368
2369 * errout.ads: Minor reformatting.
2370
2371 2015-01-30 Yannick Moy <moy@adacore.com>
2372
2373 * inline.adb (Process_Formals): Use the sloc of
2374 the inlined node instead of the sloc of the actual parameter,
2375 when replacing formal parameters by the actual one.
2376
2377 2015-01-30 Arnaud Charlet <charlet@adacore.com>
2378
2379 * g-expect.adb (Get_Command_Output): Use infinite timeout when
2380 calling Expect.
2381
2382 2015-01-30 Ed Schonberg <schonberg@adacore.com>
2383
2384 * sem_ch12.adb (Analyze_Associations): If an in-parameter is
2385 defaulted in an instantiation, add an entry in the list of actuals
2386 to indicate the default value of the formal (as is already done
2387 for defaulted subprograms).
2388
2389 2015-01-30 Javier Miranda <miranda@adacore.com>
2390
2391 * errout.adb (Error_Msg_PT): Minor error phrasing update.
2392
2393 2015-01-30 Robert Dewar <dewar@adacore.com>
2394
2395 * sem_warn.adb (Warn_On_Known_Condition): Improve error message
2396 for object case.
2397
2398 2015-01-30 Pierre-Marie de Rodat <derodat@adacore.com>
2399
2400 * exp_dbug.adb (Get_Encoded_Name): When
2401 -fgnat-encodings=minimal, do not generate names for biased types.
2402
2403 2015-01-30 Tristan Gingold <gingold@adacore.com>
2404
2405 PR ada/64349
2406 * env.c: Move vxworks and darwin includes out of #ifdef IN_RTS.
2407
2408 2015-01-30 Gary Dismukes <dismukes@adacore.com>
2409
2410 * freeze.adb: Minor reformatting.
2411
2412 2015-01-30 Javier Miranda <miranda@adacore.com>
2413
2414 * errout.ads (Error_Msg_PT): Replace Node_Id by Entity_Id and
2415 improve its documentation.
2416 * errout.adb (Error_Msg_PT): Improve the error message.
2417 * sem_ch6.adb (Check_Conformance): Update call to Error_Msg_PT.
2418 (Check_Synchronized_Overriding): Update call to Error_Msg_PT.
2419 * sem_ch3.adb (Check_Abstract_Overriding): Code cleanup.
2420
2421 2015-01-30 Robert Dewar <dewar@adacore.com>
2422
2423 * sem_warn.adb (Warn_On_Known_Condition): Do special casing of
2424 message for False case.
2425
2426 2015-01-30 Doug Rupp <rupp@adacore.com>
2427
2428 * s-vxwext-kernel.ads (Task_Cont): Remove imported subprogram body.
2429 * s-vxwext-kernel.adb (Task_Cont): New subpprogram body specialized for
2430 kernel.
2431
2432 2015-01-30 Gary Dismukes <dismukes@adacore.com>
2433
2434 * sem_attr.adb (Declared_Within_Generic_Unit):
2435 New function to test whether an entity is declared within the
2436 declarative region of a given generic unit.
2437 (Resolve_Attribute): For checking legality of subprogram'Access within
2438 a generic unit, call new Boolean function Declared_Within_Generic_Unit
2439 instead of simply comparing the results of Enclosing_Generic_Unit on
2440 the prefix and access type. Correct minor comment typos.
2441
2442 2015-01-30 Robert Dewar <dewar@adacore.com>
2443
2444 * freeze.adb, exp_util.ads: Update comment.
2445 * exp_util.adb, exp_ch3.adb: Minor code reorganization and reformatting.
2446 * sem_util.adb: Minor: fix typo.
2447
2448 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
2449
2450 * sem_attr.adb (Analyze_Attribute): Ensure that
2451 the check concerning Refined_Post takes precedence over the
2452 other cases.
2453
2454 2015-01-30 Gary Dismukes <dismukes@adacore.com>
2455
2456 * sem_prag.adb: Minor typo fixes and reformatting.
2457
2458 2015-01-30 Yannick Moy <moy@adacore.com>
2459
2460 * sem_attr.adb: Code clean up.
2461
2462 2015-01-30 Robert Dewar <dewar@adacore.com>
2463
2464 * ali.adb (Scan_ALI): Set Serious_Errors flag in Unit record.
2465 * ali.ads (Unit_Record): Add new field Serious_Errors.
2466 * lib-writ.adb (Write_Unit_Information): Set SE (serious errors)
2467 attribute in U line.
2468 * lib-writ.ads: New attribute SE (serious erors) in unit line.
2469
2470 2015-01-30 Hristian Kirtchev <kirtchev@adacore.com>
2471
2472 * einfo.adb Update the usage of attributes Entry_Bodies_Array,
2473 Lit_Indexes, Scale_Value, Storage_Size_Variable,
2474 String_Literal_Low_Bound along associated routines and
2475 Write_FieldX_Name.
2476 (Pending_Access_Types): New routine.
2477 (Set_Pending_Access_Types): New routine.
2478 (Write_Field15_Name): Add an entry for Pending_Access_Types.
2479 * einfo.ads Add new attribute Pending_Access_Types along
2480 with usage in nodes. Update the usage of attributes
2481 Entry_Bodies_Array, Lit_Indexes, Scale_Value,
2482 Storage_Size_Variable, String_Literal_Low_Bound.
2483 (Pending_Access_Types): New routine along with pragma Inline.
2484 (Set_Pending_Access_Types): New routine along with pragma Inline.
2485 * exp_ch3.adb (Expand_Freeze_Array_Type): Add new local variable
2486 Ins_Node. Determine the insertion node for anonynous access type
2487 that acts as a component type of an array. Update the call to
2488 Build_Finalization_Master.
2489 (Expand_Freeze_Record_Type): Update
2490 the calls to Build_Finalization_Master.
2491 (Freeze_Type): Remove
2492 local variable RACW_Seen. Factor out the code that deals with
2493 remote access-to-class-wide types. Create a finalization master
2494 when the designated type contains a private component. Fully
2495 initialize all pending access types.
2496 (Process_RACW_Types): New routine.
2497 (Process_Pending_Access_Types): New routine.
2498 * exp_ch4.adb (Expand_Allocator_Expression): Allocation no longer
2499 needs to set primitive Finalize_Address.
2500 (Expand_N_Allocator): Allocation no longer sets primitive
2501 Finalize_Address.
2502 * exp_ch6.adb (Add_Finalization_Master_Actual_To_Build_In_Place_Call):
2503 Update the call to Build_Finalization_Master.
2504 (Make_Build_In_Place_Call_In_Allocator): Allocation no longer
2505 needs to set primitive Finalize_Address.
2506 * exp_ch7.adb (Add_Pending_Access_Type): New routine.
2507 (Build_Finalization_Master): New parameter profile. Associate
2508 primitive Finalize_Address with the finalization master if the
2509 designated type has been frozen, otherwise treat the access
2510 type as pending. Simplify the insertion of the master and
2511 related initialization code.
2512 (Make_Finalize_Address_Body): Allow Finalize_Address for class-wide
2513 abstract types.
2514 (Make_Set_Finalize_Address_Call): Remove forlam parameter Typ.
2515 Simplify the implementation.
2516 * exp_ch7.ads (Build_Finalization_Master): New parameter profile
2517 along with comment on usage.
2518 (Make_Set_Finalize_Address_Call): Remove formal parameter Typ. Update
2519 the comment on usage.
2520 * exp_util.adb (Build_Allocate_Deallocate_Proc): Use routine
2521 Finalize_Address to retrieve the primitive.
2522 (Finalize_Address): New routine.
2523 (Find_Finalize_Address): Removed.
2524 * exp_util.ads (Finalize_Address): New routine.
2525 * freeze.adb (Freeze_All): Remove the generation of finalization
2526 masters.
2527 * sem_ch3.adb (Analyze_Full_Type_Declaration): Propagate any
2528 pending access types from the partial to the full view.
2529
2530 2015-01-30 Robert Dewar <dewar@adacore.com>
2531
2532 * sem_disp.adb: Minor reformatting.
2533 * sem_disp.ads: Documentation update.
2534
2535 2015-01-30 Ed Schonberg <schonberg@adacore.com>
2536
2537 * sem_disp.adb (Is_Dynamically_Tagged): when applied to an entity
2538 or a function call, return True if type is class-wide.
2539 * sem_res.adb (Resolve_Case_Expression, Resolve_If_Expression);
2540 Apply RM 4.5.7 (17/3): all or none of the dependent expression
2541 of a conditional expression must be dynamically tagged.
2542
2543 2015-01-30 Ed Schonberg <schonberg@adacore.com>
2544
2545 * sem_ch6.adb (Analyze_Function_Return): In an extended return
2546 statement, apply accessibility check to result object when there
2547 is no initializing expression (Ada 2012 RM 6.5 (5.4/3))
2548
2549 2015-01-30 Robert Dewar <dewar@adacore.com>
2550
2551 * sem_ch4.adb (Analyze_If_Expression): Allow for non-standard
2552 Boolean for case where ELSE is omitted.
2553 * sem_res.adb: Minor reformatting.
2554
2555 2015-01-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2556
2557 Fix build under cygwin/64.
2558 * adaint.h: Add check for __CYGWIN__.
2559 * mingw32.h: Prevent windows.h from including x86intrin.h in GCC.
2560
2561 2015-01-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2562
2563 PR ada/64640
2564 * adaint.c: Handle __CYGWIN__ like __MINGW32__ here.
2565 * mingw32.h: Don't include <tchar.h> under cygwin.
2566 (_O_U8TEXT, _O_U16TEXT, _O_WTEXT): Set to _O_TEXT if not yet defined.
2567
2568 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2569
2570 * gcc-interface/utils.c (DEF_FUNCTION_TYPE_VAR_8)
2571 (DEF_FUNCTION_TYPE_VAR_12): New macros.
2572
2573 2015-01-09 Michael Collison <michael.collison@linaro.org>
2574
2575 * gcc-interface/cuintp.c: Include hash-set.h, machmode.h,
2576 vec.h, double-int.h, input.h, alias.h, symtab.h,
2577 fold-const.h, wide-int.h, and inchash.h due to
2578 flattening of tree.h.
2579 * gcc-interface/decl.c: Ditto.
2580 * gcc-interface/misc.c: Ditto.
2581 * gcc-interface/targtyps.c: Include hash-set.h, machmode.h,
2582 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h,
2583 fold-const.h, wide-int.h, and inchash.h due to
2584 flattening of tree.h.
2585 * gcc-interface/trans.c: Include hash-set.h, machmode.h,
2586 vec.h, double-int.h, input.h, alias.h, symtab.h, real.h,
2587 fold-const.h, wide-int.h, inchash.h due to
2588 flattening of tree.h.
2589 * gcc-interface/utils.c: Include hash-set.h, machmode.h,
2590 vec.h, double-int.h, input.h, alias.h, symtab.h,
2591 fold-const.h, wide-int.h, and inchash.h due to
2592 flattening of tree.h.
2593 * gcc-interface/utils2.c: Ditto.
2594
2595 2015-01-07 Robert Dewar <dewar@adacore.com>
2596
2597 * sem_warn.adb (Check_One_Unit): Don't give unused entities
2598 warning for a package which is used as a generic parameter.
2599
2600 2015-01-07 Bob Duff <duff@adacore.com>
2601
2602 * usage.adb (Usage): Correct documentation of
2603 -gnatw.f switches.
2604
2605 2015-01-07 Robert Dewar <dewar@adacore.com>
2606
2607 * s-fileio.adb: Minor reformatting.
2608
2609 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2610
2611 * sem_ch12.adb (Instantiate_Object): If formal is an anonymous
2612 access to subprogram, replace its formals with new entities when
2613 building the object declaration, both if actual is present and
2614 when it is defaulted.
2615
2616 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2617
2618 * sem_ch5.adb (Analyze_Assignment): If left-hand side is a view
2619 conversion and type of expression has invariant, apply invariant
2620 check on expression.
2621
2622 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2623
2624 * sem_ch3.adb (Create_Constrained_Components): A call to
2625 Gather_Components may detect an error if an inherited discriminant
2626 that controls a variant is non-static.
2627 * sem_aggr.adb (Resolve_Record_Aggregate, Step 5): The call to
2628 Gather_Components may report an error if an inherited discriminant
2629 in a variant in non-static.
2630 * sem_util.adb (Gather_Components): If a non-static discriminant
2631 is inherited do not report error here, but let caller handle it.
2632 (Find_Actual): Small optimization.
2633
2634 2015-01-07 Bob Duff <duff@adacore.com>
2635
2636 * usage.adb (Usage): Document -gnatw.f switch.
2637
2638 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2639
2640 * sem_ch12.adb: Code clean up and minor reformatting.
2641
2642 2015-01-07 Robert Dewar <dewar@adacore.com>
2643
2644 * exp_ch4.adb (Expand_N_Type_Conversion): Add guard for
2645 Raise_Accessibility_Error call.
2646 * s-valllu.ads (Scan_Raw_Long_Long_Unsigned): Add documentation
2647 on handling of invalid digits in based constants.
2648 * s-fatgen.ads: Minor reformatting.
2649 * sem_attr.adb (Analyze_Attribute, case Unrestricted_Access):
2650 Avoid noting bogus modification for Valid test.
2651 * snames.ads-tmpl (Name_Attr_Long_Float): New Name.
2652 * einfo.ads: Minor reformatting.
2653 * sem_warn.adb: Minor comment clarification.
2654 * sem_ch12.adb: Minor reformatting.
2655
2656 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2657
2658 * exp_ch5.adb (Expand_Predicated_Loop): Handle properly loops
2659 over static predicates when the loop parameter specification
2660 carries a Reverse indicator.
2661
2662 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2663
2664 * sem_ch12.adb (Instantiate_Object): If formal has a default,
2665 actual is missing and formal has an anonymous access type, copy
2666 access definition in full so that tree for instance is properly
2667 formatted for ASIS use.
2668
2669 2015-01-07 Bob Duff <duff@adacore.com>
2670
2671 * sem_elab.adb (Check_Internal_Call_Continue): Give a warning
2672 for P'Access, where P is a subprogram in the same package as
2673 the P'Access, and the P'Access is evaluated at elaboration
2674 time, and occurs before the body of P. For example, "X : T :=
2675 P'Access;" would allow a subsequent call to X.all to be an
2676 access-before-elaboration error; hence the warning. This warning
2677 is enabled by the -gnatw.f switch.
2678 * opt.ads (Warn_On_Elab_Access): New flag for warning switch.
2679 * warnsw.adb (Set_Dot_Warning_Switch): Set Warn_On_Elab_Access.
2680 * gnat_ugn.texi: Document the new warning.
2681
2682 2015-01-07 Johannes Kanig <kanig@adacore.com>
2683
2684 * lib-xref-spark_specific.adb (Collect_SPARK_Xrefs): Skip unneeded
2685 cross ref files.
2686
2687 2015-01-07 Robert Dewar <dewar@adacore.com>
2688
2689 * s-taprop-linux.adb, clean.adb: Minor reformatting.
2690
2691 2015-01-07 Arnaud Charlet <charlet@adacore.com>
2692
2693 * s-tassta.adb: Relax some overzealous assertions.
2694
2695 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2696
2697 * sem_ch6.adb (Analyze_Return_Type): An call that returns a limited
2698 view of a type is legal when context is a thunk generated for
2699 operation inherited from an interface.
2700 * exp_ch6.adb (Expand_Simple_Function_Return): If context is
2701 a thunk and return type is an incomplete type do not continue
2702 expansion; thunk will be fully elaborated when generating code.
2703
2704 2015-01-07 Doug Rupp <rupp@adacore.com>
2705
2706 * s-osinte-mingw.ads (LARGE_INTEGR): New subtype.
2707 (QueryPerformanceFrequency): New imported procedure.
2708 * s-taprop-mingw.adb (RT_Resolution): Call above and return
2709 resolution vice a hardcoded value.
2710 * s-taprop-solaris.adb (RT_Resolution): Call clock_getres and return
2711 resolution vice a hardcoded value.
2712 * s-linux-android.ads (clockid_t): New subtype.
2713 * s-osinte-aix.ads (clock_getres): New imported subprogram.
2714 * s-osinte-android.ads (clock_getres): Likewise.
2715 * s-osinte-freebsd.ads (clock_getres): Likewise.
2716 * s-osinte-solaris-posix.ads (clock_getres): Likewise.
2717 * s-osinte-darwin.ads (clock_getres): New subprogram.
2718 * s-osinte-darwin.adb (clock_getres): New subprogram.
2719 * thread.c (__gnat_clock_get_res) [__APPLE__]: New function.
2720 * s-taprop-posix.adb (RT_Resolution): Call clock_getres to
2721 calculate resolution vice hard coded value.
2722
2723 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2724
2725 * exp_util.adb (Make_CW_Equivalent_Type): If root type is a
2726 limited view, use non-limited view when available to create
2727 equivalent record type.
2728
2729 2015-01-07 Vincent Celier <celier@adacore.com>
2730
2731 * gnatcmd.adb: Remove command Sync and any data and processing
2732 related to this command. Remove project processing for gnatstack.
2733 * prj-attr.adb: Remove package Synchonize and its attributes.
2734
2735 2015-01-07 Vincent Celier <celier@adacore.com>
2736
2737 * clean.adb: Minor error message change.
2738
2739 2015-01-07 Tristan Gingold <gingold@adacore.com>
2740
2741 PR ada/64349
2742 * env.c (__gnat_environ): Adjust for darwin9/darwin10.
2743
2744 2015-01-07 Javier Miranda <miranda@adacore.com>
2745
2746 * sem_ch10.adb (Analyze_With_Clause): Compiling under -gnatq
2747 protect the frontend against never ending recursion caused by
2748 circularities in the sources.
2749
2750 2015-01-07 Robert Dewar <dewar@adacore.com>
2751
2752 * a-reatim.adb, make.adb, exp_pakd.adb, i-cpoint.adb, sem_ch8.adb,
2753 exp_ch3.adb: Minor reformatting.
2754
2755 2015-01-07 Doug Rupp <rupp@adacore.com>
2756
2757 * s-linux.ads (clockid_t): New subtype.
2758 * s-osinte-linux.ads (pragma Linker Options): Add -lrt.
2759 (clockid_t): New subtype.
2760 (clock_getres): Import system call.
2761 * s-taprop-linux.adb (System.OS_Constants): With and rename.
2762 (RT_Resolution): Remove
2763 hardcoded value and call clock_getres.
2764 * s-linux-sparc.ads, s-linux-mipsel.ads, s-linux-hppa.ads,
2765 s-linux-alpha.ads, s-linux-x32.ads (clockid_t): Add new subtype.
2766
2767 2015-01-07 Robert Dewar <dewar@adacore.com>
2768
2769 * sem_warn.adb (Check_One_Unit): Guard against context item
2770 with no Entity field.
2771
2772 2015-01-07 Vincent Celier <celier@adacore.com>
2773
2774 * clean.adb (Gnatclean): Warn that 'gnatclean -P' is obsolete.
2775 * make.adb (Initialize): Warn that 'gnatmake -P' is obsolete.
2776
2777 2015-01-07 Vincent Celier <celier@adacore.com>
2778
2779 * prj-conf.adb (Parse_Project_And_Apply_Config): Always finalize
2780 errors/warnings in the first parsing of the project files,
2781 to display the warnings when there is no errors.
2782
2783 2015-01-07 Tristan Gingold <gingold@adacore.com>
2784
2785 * i-cpoint.adb (Copy_Terminated_Array): Nicely handle null target.
2786
2787 2015-01-07 Doug Rupp <rupp@adacore.com>
2788
2789 * s-taprop-vxworks.adb (Stop_All_Tasks): Pass return
2790 value from Int_Lock as parameter to Int_Unlock.
2791 * s-osinte-vxworks.ads (Int_Unlock): Add parameter.
2792 * s-vxwext.ads (Int_Unlock): Likewise.
2793 * s-vxwext-kernel.adb (intUnlock, Int_Unlock): Likewise.
2794 * s-vxwext-kernel.ads (Int_Unlock): Likewise.
2795 * s-vxwext-rtp.adb (Int_Unlock): Likewise.
2796 * s-vxwext-rtp.ads (Int_Unlock): Likewise.
2797
2798 2015-01-07 Pierre-Marie de Rodat <derodat@adacore.com>
2799
2800 * exp_pakd.adb: Add a comment in exp_pakd.adb to explain why we
2801 keep ___XP suffixes
2802
2803 2015-01-07 Tristan Gingold <gingold@adacore.com>
2804
2805 * i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
2806 handle overlap.
2807
2808 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
2809
2810 * sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
2811 automatically set No_Strict_Aliasing on access types.
2812 * fe.h (No_Strict_Aliasing_CP): Declare.
2813 * gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
2814 No_Strict_Aliasing_CP is set.
2815
2816 2015-01-07 Johannes Kanig <kanig@adacore.com>
2817
2818 * sem_ch8.adb (Analyze_Subprogram_Renaming) do
2819 not build function wrapper in gnatprove mode when the package
2820 is externally axiomatized.
2821
2822 2015-01-07 Jose Ruiz <ruiz@adacore.com>
2823
2824 * a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
2825 intermediate computations when the parameters have different signs.
2826
2827 2015-01-07 Javier Miranda <miranda@adacore.com>
2828
2829 * exp_ch3.adb (Build_Init_Procedure): For derived types,
2830 improve the code which takes care of identifying and moving to
2831 the beginning of the init-proc the call to the init-proc of the
2832 parent type.
2833
2834 2015-01-07 Olivier Hainque <hainque@adacore.com>
2835
2836 * gcc-interface/trans.c (gnat_to_gnu, <N_Expression_With_Action>):
2837 Elaborate the expression as part of the same stmt group as the actions.
2838
2839 2015-01-07 Robert Dewar <dewar@adacore.com>
2840
2841 * sem_ch3.adb: Minor error message change.
2842
2843 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2844
2845 * sem_prag.adb (Analyze_Pragma, case Preelaborable_Initialization):
2846 Following AI05-028, the pragam applies legally to any composite type.
2847
2848 2015-01-07 Arnaud Charlet <charlet@adacore.com>
2849
2850 * s-osinte-vxworks.adb, s-osinte-vxworks.ads
2851 (sigwait, sigwaitinfo): Removed, not needed after all on any
2852 VxWorks configurations.
2853
2854 2015-01-07 Robert Dewar <dewar@adacore.com>
2855
2856 * sem_ch3.adb, freeze.adb, exp_disp.adb: Minor reformatting.
2857
2858 2015-01-07 Javier Miranda <miranda@adacore.com>
2859
2860 * exp_disp.adb (Expand_Interface_Conversion): Adding missing
2861 generation of accessibility check.
2862
2863 2015-01-07 Ed Schonberg <schonberg@adacore.com>
2864
2865 * sem_ch3.adb (Derived_Type_Declaration): In the case of an
2866 illegal completion from a class- wide type, set etype of the
2867 derived type properly to prevent cascaded errors.
2868
2869 2015-01-07 Robert Dewar <dewar@adacore.com>
2870
2871 * prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
2872 reformatting.
2873
2874 2015-01-07 Robert Dewar <dewar@adacore.com>
2875
2876 * restrict.adb (Check_Restriction_No_Use_Of_Attribute):
2877 New procedure.
2878 (OK_No_Use_Of_Entity_Name): New function.
2879 (Set_Restriction_No_Use_Of_Entity): New procedure.
2880 * restrict.ads (Check_Restriction_No_Use_Of_Attribute):
2881 New procedure.
2882 (OK_No_Use_Of_Entity_Name): New function.
2883 (Set_Restriction_No_Use_Of_Entity): New procedure.
2884 * sem_ch8.adb (Find_Direct_Name): Add check for violation of
2885 No_Use_Of_Entity.
2886 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
2887 Add processing for new restriction No_Use_Of_Entity.
2888
2889 2015-01-07 Eric Botcazou <ebotcazou@adacore.com>
2890
2891 * freeze.adb (Freeze_Array_Type): Apply same handling to Is_Atomic
2892 component type as to Has_Atomic_Components type. Remove useless
2893 test on Is_Aliased component type.
2894
2895 2015-01-07 Hristian Kirtchev <kirtchev@adacore.com>
2896
2897 * alloc.ads Alphabetize several declarations. Add constants
2898 Ignored_Ghost_Units_Initial and Ignored_Ghost_Units_Increment.
2899 * atree.adb Add with and use clauses for Opt.
2900 (Allocate_Initialize_Node): Mark a node as ignored Ghost
2901 if it is created in an ignored Ghost region.
2902 (Ekind_In): New variant.
2903 (Is_Ignored_Ghost_Node): New routine.
2904 (Set_Is_Ignored_Ghost_Node): New routine.
2905 * atree.adb Aplhabetize several subprograms declarations. Flag
2906 Spare0 is now known as Is_Ignored_Ghost_Node.
2907 (Ekind_In): New variant.
2908 (Is_Ignored_Ghost_Node): New routine.
2909 (Set_Is_Ignored_Ghost_Node): New routine.
2910 * einfo.adb: Flag 279 is now known as Contains_Ignored_Ghost_Code.
2911 (Contains_Ignored_Ghost_Code): New routine.
2912 (Set_Contains_Ignored_Ghost_Code): New routine.
2913 (Set_Is_Checked_Ghost_Entity, Set_Is_Ignored_Ghost_Entity):
2914 It is now possible to set this property on an unanalyzed entity.
2915 (Write_Entity_Flags): Output the status of flag
2916 Contains_Ignored_Ghost_Code.
2917 * einfo.ads New attribute Contains_Ignored_Ghost_Code along with
2918 usage in nodes.
2919 (Contains_Ignored_Ghost_Code): New routine
2920 along with pragma Inline.
2921 (Set_Contains_Ignored_Ghost_Code): New routine along with pragma Inline.
2922 * exp_ch3.adb Add with and use clauses for Ghost.
2923 (Freeze_Type): Capture/restore the value of Ghost_Mode on entry/exit.
2924 Set the Ghost_Mode in effect.
2925 (Restore_Globals): New routine.
2926 * exp_ch7.adb (Process_Declarations): Do not process a context
2927 that invoves an ignored Ghost entity.
2928 * exp_dbug.adb (Qualify_All_Entity_Names): Skip an ignored Ghost
2929 construct that has been rewritten as a null statement.
2930 * exp_disp.adb Add with and use clauses for Ghost.
2931 (Make_DT): Capture/restore the value of Ghost_Mode on entry/exit. Set
2932 the Ghost_Mode in effect.
2933 (Restore_Globals): New routine.
2934 * exp_util.adb (Requires_Cleanup_Actions): An ignored Ghost entity
2935 does not require any clean up. Add two missing cases that deal
2936 with block statements.
2937 * freeze.adb Add with and use clauses for Ghost.
2938 (Freeze_Entity): Capture/restore the value of Ghost_Mode on entry/exit.
2939 Set the Ghost_Mode in effect.
2940 (Restore_Globals): New routine.
2941 * frontend.adb Add with and use clauses for Ghost. Remove any
2942 ignored Ghost code from all units that qualify.
2943 * ghost.adb New unit.
2944 * ghost.ads New unit.
2945 * gnat1drv.adb Add with clause for Ghost. Initialize and lock
2946 the table in package Ghost.
2947 * lib.ads: Alphabetize several subprogram declarations.
2948 * lib-xref.adb (Output_References): Do not generate reference
2949 information for ignored Ghost entities.
2950 * opt.ads Add new type Ghost_Mode_Type and new global variable
2951 Ghost_Mode.
2952 * rtsfind.adb (Load_RTU): Provide a clean environment when
2953 loading a runtime unit.
2954 * sem.adb (Analyze): Capture/restore the value of Ghost_Mode on
2955 entry/exit as the node may set a different mode.
2956 (Do_Analyze):
2957 Capture/restore the value of Ghost_Mode on entry/exit as the
2958 unit may be withed from a unit with a different Ghost mode.
2959 * sem_ch3.adb Add with and use clauses for Ghost.
2960 (Analyze_Full_Type_Declaration, Analyze_Incomplete_Type_Decl,
2961 Analyze_Number_Declaration, Analyze_Private_Extension_Declaration,
2962 Analyze_Subtype_Declaration): Set the Ghost_Mode in effect. Mark
2963 the entity as Ghost when there is a Ghost_Mode in effect.
2964 (Array_Type_Declaration): The implicit base type inherits the
2965 "ghostness" from the array type.
2966 (Derive_Subprogram): The
2967 alias inherits the "ghostness" from the parent subprogram.
2968 (Make_Implicit_Base): The implicit base type inherits the
2969 "ghostness" from the parent type.
2970 * sem_ch5.adb Add with and use clauses for Ghost.
2971 (Analyze_Assignment): Set the Ghost_Mode in effect.
2972 * sem_ch6.adb Add with and use clauses for Ghost.
2973 (Analyze_Abstract_Subprogram_Declaration, Analyze_Procedure_Call,
2974 Analyze_Subprogram_Body_Helper, Analyze_Subprogram_Declaration):
2975 Set the Ghost_Mode in effect. Mark the entity as Ghost when
2976 there is a Ghost_Mode in effect.
2977 * sem_ch7.adb Add with and use clauses for Ghost.
2978 (Analyze_Package_Body_Helper, Analyze_Package_Declaration,
2979 Analyze_Private_Type_Declaration): Set the Ghost_Mode in
2980 effect. Mark the entity as Ghost when there is a Ghost_Mode
2981 in effect.
2982 * sem_ch8.adb Add with and use clauses for Ghost.
2983 (Analyze_Exception_Renaming, Analyze_Generic_Renaming,
2984 Analyze_Object_Renaming, Analyze_Package_Renaming,
2985 Analyze_Subprogram_Renaming): Set the Ghost_Mode in effect. Mark
2986 the entity as Ghost when there is a Ghost_Mode in effect.
2987 (Find_Type): Check the Ghost context of a type.
2988 * sem_ch11.adb Add with and use clauses for Ghost.
2989 (Analyze_Exception_Declaration): Set the Ghost_Mode in
2990 effect. Mark the entity as Ghost when there is a Ghost_Mode
2991 in effect.
2992 * sem_ch12.adb Add with and use clauses for Ghost.
2993 (Analyze_Generic_Package_Declaration,
2994 Analyze_Generic_Subprogram_Declaration): Set the Ghost_Mode in effect.
2995 Mark the entity as Ghost when there is a Ghost_Mode in effect.
2996 * sem_prag.adb Add with and use clauses for Ghost.
2997 (Analyze_Pragma): Ghost-related checks are triggered when there
2998 is a Ghost mode in effect.
2999 (Create_Abstract_State): Mark the
3000 entity as Ghost when there is a Ghost_Mode in effect.
3001 * sem_res.adb Add with and use clauses for Ghost.
3002 (Check_Ghost_Context): Removed.
3003 * sem_util.adb (Check_Ghost_Completion): Removed.
3004 (Check_Ghost_Derivation): Removed.
3005 (Incomplete_Or_Partial_View):
3006 Add a guard in case the entity has not been analyzed yet
3007 and does carry a scope.
3008 (Is_Declaration): New routine.
3009 (Is_Ghost_Entity): Removed.
3010 (Is_Ghost_Statement_Or_Pragma):
3011 Removed.
3012 (Is_Subject_To_Ghost): Removed.
3013 (Set_Is_Ghost_Entity):
3014 Removed.
3015 (Within_Ghost_Scope): Removed.
3016 * sem_util.adb (Check_Ghost_Completion): Removed.
3017 (Check_Ghost_Derivation): Removed.
3018 (Is_Declaration): New routine.
3019 (Is_Ghost_Entity): Removed.
3020 (Is_Ghost_Statement_Or_Pragma): Removed.
3021 (Is_Subject_To_Ghost): Removed.
3022 (Set_Is_Ghost_Entity): Removed.
3023 (Within_Ghost_Scope): Removed.
3024 * sinfo.ads Add a section on Ghost mode.
3025 * treepr.adb (Print_Header_Flag): New routine.
3026 (Print_Node_Header): Factor out code. Output flag
3027 Is_Ignored_Ghost_Node.
3028 * gcc-interface/Make-lang.in: Add dependency for unit Ghost.
3029
3030 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3031
3032 * freeze.adb (Freeze_Array_Type) <Complain_CS>: Remove always
3033 true test and unreachable 'else' arm.
3034
3035 2015-01-06 Vincent Celier <celier@adacore.com>
3036
3037 * prj-conf.adb (Check_Target): Improve error message when
3038 there are mismatched targets between the on in the configuration
3039 project file and the specified one, either in the main project
3040 file or in the --target= switch.
3041
3042 2015-01-06 Pascal Obry <obry@adacore.com>
3043
3044 * prj-attr.adb, projects.texi, snames.ads-tmpl: Add Mode and
3045 Install_Name attribute definitions.
3046
3047 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3048
3049 * freeze.adb (Wrap_Imported_Subprogram): Indicate that the
3050 generated Import pragma for the internal imported procedure does
3051 not come from an aspect, so that Is_Imported can be properly
3052 set for it.
3053
3054 2015-01-06 Gary Dismukes <dismukes@adacore.com>
3055
3056 * sem_ch12.adb (Might_Inline_Subp): Record whether
3057 any subprograms in the generic package are marked with
3058 pragma Inline_Always (setting flag Has_Inline_Always).
3059 (Analyze_Package_Instantiation): Add test of Has_Inline_Always
3060 alongside existing test of Front_End_Inlining as alternative
3061 conditions for setting Inline_Now. Also add test of
3062 Has_Inline_Always along with Front_End_Inlining test as an
3063 alternative condition for setting Needs_Body to False.
3064
3065 2015-01-06 Tristan Gingold <gingold@adacore.com>
3066
3067 * i-cpoint.adb (Copy_Array): Handle overlap.
3068
3069 2015-01-06 Pascal Obry <obry@adacore.com>
3070
3071 * bindgen.adb: Minor style fix.
3072
3073 2015-01-06 Robert Dewar <dewar@adacore.com>
3074
3075 * sem_util.ads, sem_util.adb: Minor reformatting.
3076
3077 2015-01-06 Vincent Celier <celier@adacore.com>
3078
3079 * prj-conf.adb (Parse_Project_And_Apply_Config): Reset incomplete
3080 with flags before parsing the projects.
3081 * prj-err.adb (Error_Msg): Do nothing if there are incomplete withs.
3082 * prj-part.adb (Post_Parse_Context_Clause): Set Incomplete_Withs
3083 to True in the flags, when Ignore_Missing_With is True and an
3084 imported project cannot be found.
3085 * prj-proc.adb (Expression): When there are incomplete withs and
3086 a variable or attribute is not found, set the variable/attribute
3087 to unknown.
3088 * prj.ads (Processing_Flags): New flag Incomplete_Withs,
3089 defaulted to False.
3090
3091 2015-01-06 Vasiliy Fofanov <fofanov@adacore.com>
3092
3093 * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-conf.adb,
3094 prj-err.adb: Add new switch --no-command-line.
3095
3096 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3097
3098 * sem_ch12.adb: Sloc of wrapper is that of instantiation.
3099
3100 2015-01-06 Robert Dewar <dewar@adacore.com>
3101
3102 * sem_ch11.adb: Minor reformatting.
3103
3104 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3105
3106 * exp_aggr.adb (Get_Assoc_Expr): New routine internal to
3107 Build_Array_Aggr_Code, used to initialized components covered
3108 by a box association. If the component type is scalar and has
3109 a default aspect, use it to initialize such components.
3110
3111 2015-01-06 Pascal Obry <obry@adacore.com>
3112
3113 * rtinit.c (__gnat_runtime_initialize): Add a parameter to
3114 control the setup of the exception handler.
3115 * initialize.c: Remove unused declaration.
3116 * bindgen.adb: Always call __gnat_runtime_initialize and pass
3117 whether the exeception handler must be set or not.
3118
3119 2015-01-06 Thomas Quinot <quinot@adacore.com>
3120
3121 * freeze.adb (Set_SSO_From_Defaults): When setting scalar storage
3122 order to native from default, make sure to also adjust bit order.
3123 * exp_aggr.adb: Minor reformatting.
3124
3125 2015-01-06 Robert Dewar <dewar@adacore.com>
3126
3127 * s-valllu.adb, s-valllu.ads, s-valuti.ads, s-valuns.adb, s-valuns.ads,
3128 s-valrea.adb, s-valrea.ads: Add some additional guards for
3129 Str'Last = Positive'Last.
3130
3131 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3132
3133 * sem_ch12.adb, sem_ch8.adb: Ongoing work for wrappers for actual
3134 subprograms.
3135
3136 2015-01-06 Javier Miranda <miranda@adacore.com>
3137
3138 * exp_disp.adb (Expand_Interface_Conversion): Reapply patch.
3139
3140 2015-01-06 Thomas Quinot <quinot@adacore.com>
3141
3142 * sem_util.ads: Minor reformatting.
3143 * sem_cat.adb (In_RCI_Visible_Declarations): Change back to...
3144 (In_RCI_Declaration) Return to old name, as proper checking of
3145 entity being in the visible part depends on entity kind and must
3146 be done by the caller.
3147
3148 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3149
3150 * sem_ch12.adb, sem_ch12.ads, sem_ch8.adb: Ongoing work for wrappers
3151 for operators in SPARK.
3152
3153 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3154
3155 * sem_aggr.adb (Get_Value): In ASIS mode, preanalyze the
3156 expression in an others association before making copies for
3157 separate resolution and accessibility checks. This ensures that
3158 the type of the expression is available to ASIS in all cases,
3159 in particular if the expression is itself an aggregate.
3160
3161 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3162
3163 * einfo.ads (Has_Independent_Components): Document extended
3164 usage.
3165 * einfo.adb (Has_Independent_Components): Remove obsolete assertion.
3166 (Set_Has_Independent_Components): Adjust assertion.
3167 * sem_prag.adb (Analyze_Pragma): Also set Has_Independent_Components
3168 for pragma Atomic_Components. Set Has_Independent_Components
3169 on the object instead of the type for an object declaration with
3170 pragma Independent_Components.
3171
3172 2015-01-06 Olivier Hainque <hainque@adacore.com>
3173
3174 * set_targ.adb (Read_Target_Dependent_Values): Set
3175 Long_Double_Index when "long double" is read.
3176 (elaboration code): Register_Back_End_Types only when not reading from
3177 config files. Doing otherwise is pointless and error prone.
3178
3179 2015-01-06 Robert Dewar <dewar@adacore.com>
3180
3181 * s-valrea.adb (Value_Real): Check for Str'Last = Positive'Last
3182
3183 2015-01-06 Robert Dewar <dewar@adacore.com>
3184
3185 * a-wtgeau.adb, a-ztgeau.adb, a-tigeau.adb (String_Skip): Raise PE if
3186 Str'Last = Positive'Last.
3187
3188 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3189
3190 * sem_ch6.adb (Matches_Limited_View): Handle properly the case
3191 where the non-limited type is a generic actual and appears as
3192 a subtype of the non-limited view of the other.
3193 * freeze.adb (Build_Renamed_Body): If the return type of the
3194 declaration that is being completed is a limited view and the
3195 non-limited view is available, use it in the specification of
3196 the generated body.
3197
3198 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3199
3200 * sem_ch3.adb (Find_Type_Name): If there is a previous tagged
3201 incomplete view, the type of the classwide type common to both
3202 views is the type being declared.
3203
3204 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3205
3206 * einfo.ads (Is_Independent): Further document extended usage.
3207
3208 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3209
3210 * einfo.ads (Is_Independent): Document extended usage.
3211 * einfo.adb (Is_Independent): Remove obsolete assertion.
3212 (Set_Is_Independent): Likewise.
3213 * sem_prag.adb (Process_Atomic_Shared_Volatile): Rename into...
3214 (Process_Atomic_Independent_Shared_Volatile): ...this.
3215 Deal with pragma Independent here.
3216 (Analyze_Pragma): Adjust
3217 to above renaming and also invoke it for pragma Independent.
3218 Adjust comment for Independent_Components.
3219
3220 2015-01-06 Robert Dewar <dewar@adacore.com>
3221
3222 * snames.ads-tmpl: Remove entries for attribute Enum_Image.
3223 * exp_attr.adb: Remove reference to Attribute_Enum_Image.
3224
3225 2015-01-06 Robert Dewar <dewar@adacore.com>
3226
3227 * s-vallli.adb (Value_Long_Long_Integer): Handle case of Str'Last
3228 = Positive'Last.
3229 * s-valllu.adb (Value_Long_Long_Unsigned): Handle case of
3230 Str'Last = Positive'Last.
3231
3232 2015-01-06 Robert Dewar <dewar@adacore.com>
3233
3234 * sem_prag.adb (Process_Inline): Remove redundant construct
3235 warning (-gnatw.r) for an ineffective pragma Inline.
3236
3237 2015-01-06 Robert Dewar <dewar@adacore.com>
3238
3239 * s-valint.adb: Fix typo in last checkin.
3240 * s-valuns.adb (Value_Unsigned): More efficient fix for
3241 Positive'Last case.
3242 * sem_attr.adb (Analyze_Attribute): Minor reformatting
3243 (Eval_Attribute): Static ervaluation of 'Img for enumeration types.
3244
3245 2015-01-06 Robert Dewar <dewar@adacore.com>
3246
3247 * s-valint.adb, s-valuns.adb (Value_Integer): Deal with case where
3248 Str'Last = Positive'Last
3249
3250 2015-01-06 Thomas Quinot <quinot@adacore.com>
3251
3252 * xoscons.adb: Display exception information and return non-zero
3253 exit status in top level exception handler.
3254
3255 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3256
3257 * sem_ch8.adb: Code clean up.
3258
3259 2015-01-06 Tristan Gingold <gingold@adacore.com>
3260
3261 * targparm.ads: Remove obsolete comment.
3262
3263 2015-01-06 Olivier Hainque <hainque@adacore.com>
3264
3265 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Variable): When
3266 constructing a ref to variable, update inner_const_flag from the
3267 variable TREE_READONLY attribute.
3268 * gcc-interface/targtyps.c (WIDEST_HARDWARE_FP_SIZE): Remove default
3269 definition.
3270 (get_target_float_size): Remove.
3271 (get_target_double_size): Remove.
3272 (get_target_long_double_size): Remove.
3273
3274 2015-01-06 Pascal Obry <obry@adacore.com>
3275
3276 * adaint.c (ProcListEvt): Set to NULL.
3277 * rtinit.c: New file.
3278 (__gnat_rt_init_count): New reference counter set to 0.
3279 (__gnat_runtime_initialize): Move code here from __gnat_initialize when
3280 this code is actually needed for the runtime initialization. This
3281 routine returns immediately if the initialization has already been done.
3282 * final.c: Revert previous change.
3283 * rtfinal.c: New file.
3284 (__gnat_runtime_finalize)[Win32]: Add finalization of the critical
3285 section and event. The default version of this routine is empty (except
3286 for the reference counting code). This routine returns immediately if
3287 some others libraries are referencing the runtime.
3288 * bindgen.adb (Gen_Adainit): Generate call to Runtime_Initialize
3289 remove circuitry to initialize the signal handler as this is
3290 now done by the runtime initialization routine.
3291 (Gen_Adafinal): Generate call to Runtime_Finalize.
3292 * gnat_ugn.texi: Update documentation about concurrency and
3293 initialization/finalization of the run-time.
3294 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Add
3295 references to rtfinal.o and rtinit.o
3296
3297 2015-01-06 Robert Dewar <dewar@adacore.com>
3298
3299 * exp_attr.adb (Expand_N_Attribute_Reference): Add dummy entry
3300 for Enum_Image.
3301 * sem_attr.adb: Implement Enum_Image attribute.
3302 * snames.ads-tmpl: Add entries for Enum_Image attribute.
3303
3304 2015-01-06 Robert Dewar <dewar@adacore.com>
3305
3306 * namet.ads: Document use of Boolean2 for No_Use_Of_Entity.
3307 * restrict.ads (No_Use_Of_Entity): New table.
3308 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings):
3309 Ignore No_Use_Of_Entity (will be processed in parser).
3310 * snames.ads-tmpl: Add entry for Name_No_Use_Of_Entity.
3311
3312 2015-01-06 Vincent Celier <celier@adacore.com>
3313
3314 * prj-tree.adb (Imported_Or_Extended_Project_Of): Do not try
3315 to check for an extended project, if a project does not have
3316 yet a project declaration.
3317
3318 2015-01-06 Pierre-Marie Derodat <derodat@adacore.com>
3319
3320 * scos.ads: Update documentation about the SCO table build
3321 process and about table records format.
3322 * par_sco.ads (SCO_Record): Rename to SCO_Record_Raw.
3323 (SCO_Record_Filtered): New procedure.
3324 (Set_SCO_Logical_Operator): New procedure.
3325 (dsco): Update documentation.
3326 * par_sco.adb: Update library-level comments.
3327 (SCO_Generation_State_Type): New type.
3328 (SCO_Generation_State): New variable.
3329 (SCO_Raw_Table): New package instanciation.
3330 (Condition_Pragma_Hash_Table): Rename to SCO_Raw_Hash_Table.
3331 ("<"): New.
3332 (Tristate): New type.
3333 (Is_Logical_Operator): Return Tristate and update documentation.
3334 (Has_Decision): Update call to Is_Logical_Operator and complete
3335 documentation.
3336 (Set_Table_Entry): Rename to Set_Raw_Table_Entry, update
3337 comment, add an assertion for state checking and change
3338 references to SCO_Table into SCO_Raw_Table.
3339 (dsco): Refactor to dump the raw and the filtered tables.
3340 (Process_Decisions.Output_Decision_Operand): Handle putative
3341 short-circuit operators.
3342 (Process_Decisions.Output_Element): Update references
3343 to Set_Table_Entry and to Condition_Pragma_Hash_Table.
3344 (Process_Decisions.Process_Decision_Operand): Update call
3345 to Is_Logical_Operator.
3346 (Process_Decisions.Process_Node): Handle putative short-circuit
3347 operators and change references to
3348 SCO_Table into SCO_Raw_Table.
3349 (SCO_Output): Add an assertion
3350 for state checking and remove code that used to stamp out SCO entries.
3351 (SCO_Pragma_Disabled): Change reference to SCO_Table
3352 into SCO_Raw_Table.
3353 (SCO_Record): Rename to SCO_Record_Raw,
3354 add an assertion for state checking and change references
3355 to SCO_Table into SCO_Raw_Table.
3356 (Set_SCO_Condition): Add an assertion for state checking, update
3357 references to Condition_Pragma_Hash_Table and change references to
3358 SCO_Table into SCO_Raw_Table.
3359 (Set_SCO_Pragma_Enabled): Add an assertion for state checking and
3360 change references to SCO_Table into SCO_Raw_Table.
3361 (Set_SCO_Logical_Operator): New procedure.
3362 (Traverse_Declarations_Or_Statements.Set_Statement_Entry): Update
3363 references to Set_Table_Entry and to Condition_Pragma_Hash_Table.
3364 (SCO_Record_Fildered): New procedure.
3365 * gnat1drv.adb (Gnat1drv): Invoke the SCO filtering pass.
3366 * lib-writ.adb (Write_ALI): Invoke the SCO filtering pass and
3367 output SCOs.
3368 * par-load.adb (Load): Update reference to SCO_Record.
3369 * par.adb (Par): Update reference to SCO_Record.
3370 * put_scos.adb (Put_SCOs): Add an assertion to check that no
3371 putative SCO condition reaches this end.
3372 * sem_ch10.adb (Analyze_Proper_Body): Update reference to SCO_Record.
3373 * sem_res.adb (Resolve_Logical_Op): Validate putative SCOs
3374 when corresponding to an "and"/"or" operator affected by the
3375 Short_Circuit_And_Or pragma.
3376
3377 2015-01-06 Robert Dewar <dewar@adacore.com>
3378
3379 * sem_ch8.adb (Analyze_Use_Package): Give more specific error
3380 msg for attempted USE of generic subprogram or subprogram.
3381
3382 2015-01-06 Robert Dewar <dewar@adacore.com>
3383
3384 * s-valllu.adb, a-tiinau.adb, a-timoau.adb, a-ztinau.adb, a-ztmoau.adb,
3385 s-valuns.adb, s-valrea.adb, a-wtflau.adb, a-tiflau.adb, a-ztflau.adb,
3386 a-wtinau.adb, a-wtmoau.adb: Document recognition of : in place of #.
3387
3388 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3389
3390 * sem_ch13.adb (Analyze_Aspect_Specifications): For aspects
3391 that specify stream subprograms, if the prefix is a class-wide
3392 type then the generated attribute definition clause must apply
3393 to the same class-wide type.
3394 (Default_Iterator): An iterator defined by an aspect of some
3395 container type T must have a first parameter of type T, T'class,
3396 or an access to such (from code reading RM 5.5.1 (2/3)).
3397
3398 2015-01-06 Arnaud Charlet <charlet@adacore.com>
3399
3400 * gnat1drv.adb: Minor: complete previous change.
3401
3402 2015-01-06 Olivier Hainque <hainque@adacore.com>
3403
3404 * set_targ.ads (C_Type_For): New function. Return the name of
3405 a C type supported by the back-end and suitable as a basis to
3406 construct the standard Ada floating point type identified by
3407 the T parameter. This is used as a common ground to feed both
3408 ttypes values and the GNAT tree nodes for the standard floating
3409 point types.
3410 * set_targ.adb (Long_Double_Index): The index at which "long
3411 double" gets registered in the FPT_Mode_Table. This is useful to
3412 know whether we have a "long double" available at all and get at
3413 it's characteristics without having to search the FPT_Mode_Table
3414 when we need to decide which C type should be used as the
3415 basis for Long_Long_Float in Ada.
3416 (Register_Float_Type): Fill Long_Double_Index.
3417 (FPT_Mode_Index_For): New function. Return the index in
3418 FPT_Mode_Table that designates the entry corresponding to the
3419 provided C type name.
3420 (FPT_Mode_Index_For): New function. Return the index in
3421 FPT_Mode_Table that designates the entry for a back-end type
3422 suitable as a basis to construct the standard Ada floating point
3423 type identified by the input T parameter.
3424 (elaboration code): Register_Back_End_Types unconditionally,
3425 so C_Type_For can operate regardless of -gnateT. Do it
3426 early so we can query it for the floating point sizes, via
3427 FPT_Mode_Index_For. Initialize Float_Size, Double_Size and
3428 Long_Double_Size from the FPT_Mode_Table, as cstand will do.
3429 * cstand.adb (Create_Float_Types): Use C_Type_For to determine
3430 which C type should be used as the basis for the construction
3431 of the Standard Ada floating point types.
3432 * get_targ.ads (Get_Float_Size, Get_Double_Size,
3433 Get_Long_Double_Size): Remove.
3434 * get_targ.adb: Likewise.
3435
3436 2015-01-06 Thomas Quinot <quinot@adacore.com>
3437
3438 * sem_cat.adb (In_RCI_Declaration): Remove unnecessary
3439 parameter and rename to...
3440 (In_RCI_Visible_Declarations): Fix handling of private part of nested
3441 package.
3442 (Validate_RCI_Subprogram_Declaration): Reject illegal function
3443 returning anonymous access in RCI unit.
3444
3445 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3446
3447 * sem_ch6.adb (New_Overloaded_Entity): In GNATprove mode, a
3448 function wrapper may be a homonym of another local declaration.
3449 * sem_ch8.adb (Analyze_Subprogram_Renaming): In GNATprove mode,
3450 build function and operator wrappers after the actual subprogram
3451 has been resolved, and replace the standard renaming declaration
3452 with the declaration of wrapper.
3453 * sem_ch12.ads (Build_Function_Wrapper, Build_Operator_Wraooer):
3454 make public for use elsewhere.
3455 * sem_ch12.adb (Build_Function_Wrapper, Build_Operator_Wraooer):
3456 rewrite, now that actual is fully resolved when wrapper is
3457 constructed.
3458
3459 2015-01-06 Javier Miranda <miranda@adacore.com>
3460
3461 * exp_disp.adb: Revert previous change.
3462
3463 2015-01-06 Robert Dewar <dewar@adacore.com>
3464
3465 * exp_util.adb: Change name Name_Table_Boolean to
3466 Name_Table_Boolean1.
3467 * namet.adb: Change name Name_Table_Boolean to Name_Table_Boolean1
3468 Introduce Name_Table_Boolean2/3.
3469 * namet.ads: Change name Name_Table_Boolean to Name_Table_Boolean1
3470 Introduce Name_Table_Boolean2/3.
3471 * par-ch13.adb: Change name Name_Table_Boolean to
3472 Name_Table_Boolean1.
3473
3474 2015-01-06 Bob Duff <duff@adacore.com>
3475
3476 * gnat_rm.texi: Improve documentation regarding No_Task_Termination.
3477
3478 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3479
3480 * sem_aggr.adb (Resolve_Record_Aggregte, Get_Value): For an
3481 others choice that covers multiple components, analyze each
3482 copy with the type of the component even in compile-only mode,
3483 to detect potential accessibility errors.
3484
3485 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
3486
3487 * sem_res.adb (Is_Assignment_Or_Object_Expression): New routine.
3488 (Resolve_Actuals): An effectively volatile out
3489 parameter cannot act as an in or in out actual in a call.
3490 (Resolve_Entity_Name): An effectively volatile out parameter
3491 cannot be read.
3492
3493 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3494
3495 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): If the body is
3496 the expansion of an expression function it may be pre-analyzed
3497 if a 'access attribute is applied to the function, in which case
3498 last_entity may have been assigned already.
3499
3500 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3501
3502 * sem_ch4.adb (Analyze_One_Call): If formal has an incomplete
3503 type and actual has the corresponding full view, there is no
3504 error, but a case of use of incomplete type in a predicate or
3505 invariant expression.
3506
3507 2015-01-06 Vincent Celier <celier@adacore.com>
3508
3509 * makeutl.adb (Insert_No_Roots): Make sure that the same source
3510 in two different project tree is checked in both trees, if they
3511 are sources of two different projects, extended or not.
3512
3513 2015-01-06 Arnaud Charlet <charlet@adacore.com>
3514
3515 * gnat1drv.adb: Minor code clean up.
3516 (Adjust_Global_Switches): Ignore gnatprove_mode in codepeer_mode.
3517
3518 2015-01-06 Bob Duff <duff@adacore.com>
3519
3520 * osint.adb (Read_Source_File): Don't print out
3521 file name unless T = Source.
3522
3523 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3524
3525 * sem_util.adb (Is_Variable, Is_OK_Variable_For_Out_Formal):
3526 recognize improper uses of constant_reference types as actuals
3527 for in-out parameters.
3528 (Check_Function_Call): Do not collect identifiers if function
3529 name is missing because of previous error.
3530
3531 2015-01-06 Robert Dewar <dewar@adacore.com>
3532
3533 * ali-util.adb, sem_prag.adb, rtsfind.adb, sem_util.adb, sem_res.adb,
3534 ali.adb, binde.adb, namet.adb, namet.ads, gnatls.adb, bcheck.adb:
3535 Minor change of name Name_Table_Info => Name_Table_Int.
3536
3537 2015-01-06 Robert Dewar <dewar@adacore.com>
3538
3539 * exp_strm.adb (Build_Elementary_Input_Call): Clarify comments
3540 in previous checkin.
3541 * freeze.adb (Freeze_Fixed_Point_Type): Add warning for shaving
3542 of bounds.
3543 * sem_prag.adb, sem_ch10.adb, sem_ch6.adb: Minor reformatting.
3544
3545 2015-01-06 Vincent Celier <celier@adacore.com>
3546
3547 * a-strsup.adb (Times (Natural;String;Positive)): Raise
3548 Length_Error, not Index_Error, when the result is too long.
3549
3550 2015-01-06 Thomas Quinot <quinot@adacore.com>
3551
3552 * a-direct.adb (Create_Path): Minor error handling and
3553 performance improvement.
3554
3555 2015-01-06 Robert Dewar <dewar@adacore.com>
3556
3557 * checks.ads, sem_ch12.adb: Minor reformatting.
3558 * exp_ch4.adb (Expand_N_Op_Divide): Generate explicit divide by
3559 zero check for fixed-point case if Backend_Divide_Checks_On_Target
3560 is False.
3561
3562 2015-01-06 Robert Dewar <dewar@adacore.com>
3563
3564 * sem_prag.adb (Analyze_Pragma, case No_Elaboration_Code_All):
3565 Do not set restriction No_Elaboration_Code unless the pragma
3566 appears in the main unit).
3567
3568 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3569
3570 * sem_ch10.adb (Is_Regular_With_Clause): Add guard to verify
3571 that with clause has already been analyzed before checking kind
3572 of with_clause.
3573
3574 2015-01-06 Robert Dewar <dewar@adacore.com>
3575
3576 * exp_strm.adb (Build_Elementary_Input_Call): Return base type
3577 (as required by RM).
3578
3579 2015-01-06 Arnaud Charlet <charlet@adacore.com>
3580
3581 * a-reatim.adb ("/"): Add explicit pragma Unsuppress (Division_Check).
3582
3583 2015-01-06 Robert Dewar <dewar@adacore.com>
3584
3585 * sem_prag.adb (Process_Suppress_Unsuppress): Add extra warning
3586 for ignoring pragma Suppress (Elaboration_Check) in SPARK mode.
3587
3588 2015-01-06 Javier Miranda <miranda@adacore.com>
3589
3590 * exp_disp.adb (Expand_Interface_Conversion): No displacement
3591 of the pointer to the object needed when the type of the operand
3592 is not an interface type and the interface is one of its parent
3593 types (since they share the primary dispatch table).
3594
3595 2015-01-06 Vincent Celier <celier@adacore.com>
3596
3597 * prj-env.adb: Minor comment update.
3598
3599 2015-01-06 Javier Miranda <miranda@adacore.com>
3600
3601 * sem_res.adb (Valid_Conversion): Restrict the checks on anonymous
3602 access types whose target type is an interface type to operands
3603 that are access types; required to report an error when the
3604 operand is not an access type.
3605
3606 2015-01-06 Bob Duff <duff@adacore.com>
3607
3608 * a-cfinve.adb (Copy): Set the discriminant to the Length when
3609 Capacity = 0.
3610 * a-cofove.ads (Capacity): Add a postcondition.
3611 * a-cfinve.ads (Capacity): Add a postcondition.
3612 (Reserve_Capacity): Correct the postcondition in the case where
3613 Capacity = 0; that means "Capacity => Length (Container)".
3614 * a-cofove.adb (Elems[c]): Add a comment
3615 explaining the dangers and how to avoid them.
3616
3617 2015-01-06 Ed Schonberg <schonberg@adacore.com>
3618
3619 * sem_ch12.adb: Code clean up.
3620
3621 2015-01-06 Arnaud Charlet <charlet@adacore.com>
3622
3623 * gnatvsn.ads: Bump copyright year.
3624
3625 2015-01-06 Robert Dewar <dewar@adacore.com>
3626
3627 * s-taskin.ads, s-traces.ads: Minor reformatting.
3628 * exp_util.adb: Minor typo fix.
3629
3630 2015-01-06 Vincent Celier <celier@adacore.com>
3631
3632 * gnatls.adb (Search_RTS): Invoke Initialize_Default_Project_Path
3633 with the runtime name.
3634 * prj-env.adb (Initialize_Default_Project_Path): When both
3635 Target_Name and Runtime_Name are not empty string, add to the
3636 project path the two directories .../lib/gnat and .../share/gpr
3637 related to the runtime.
3638 * prj-env.ads (Initialize_Default_Project_Path): New String
3639 parameter Runtime_Name, defaulted to the empty string.
3640
3641 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
3642
3643 * frontend.adb: Guard against the case where a configuration
3644 pragma may be split into multiple pragmas and the original
3645 rewritten as a null statement.
3646 * sem_prag.adb (Analyze_Pragma): Insert a brand new Check_Policy
3647 pragma using Insert_Before rather than Insert_Action. This
3648 takes care of the configuration pragma case where Insert_Action
3649 would fail.
3650
3651 2015-01-06 Bob Duff <duff@adacore.com>
3652
3653 * a-coboho.ads (Element_Access): Add "pragma
3654 No_Strict_Aliasing (Element_Access);". This is needed because
3655 we are unchecked-converting from Address to Element_Access.
3656 * a-cofove.ads, a-cofove.adb (Elems,Elemsc): Fix bounds of the
3657 result to be 1.
3658
3659 2015-01-06 Hristian Kirtchev <kirtchev@adacore.com>
3660
3661 * sem_res.adb (Resolve_Actuals): Remove the
3662 restriction which prohibits volatile actual parameters with
3663 enabled external propery Async_Writers to act appear in procedure
3664 calls where the corresponding formal is of mode OUT.
3665
3666 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3667
3668 * gnat_ugn.texi: Bump @copying's copyright year.
3669
3670 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3671
3672 PR ada/64492
3673 * gcc-interface/Makefile.in (../stamp-tools): Reinstate dropped code.
3674
3675 2015-01-04 Uros Bizjak <ubizjak@gmail.com>
3676
3677 * gcc-interface/misc.c (internal_error_function): Use xasprintf instead
3678 of unchecked asprintf.
3679
3680 \f
3681 Copyright (C) 2015 Free Software Foundation, Inc.
3682
3683 Copying and distribution of this file, with or without modification,
3684 are permitted in any medium without royalty provided the copyright
3685 notice and this notice are preserved.