[Ada] Allow for GNATprove specific versions of routines from Sem_Disp
[gcc.git] / gcc / ada / ChangeLog
1 2018-05-28 Claire Dross <dross@adacore.com>
2
3 * sem_disp.ads, sem_disp.adb (Inheritance_Utilities): Package for
4 generic inheritance utilities.
5 (Generic_Inherited_Subprograms): Generic version of
6 Inherited_Subprograms, generic in Find_Dispatching_Type function.
7 (Generic_Is_Overriding_Subprogram): Generic version of
8 Is_Overriding_Subprogram, generic in Find_Dispatching_Type function.
9 (Inherited_Subprograms): Instance of Generic_Inherited_Subprograms with
10 Sem_Disp.Find_Dispatching_Type.
11 (Is_Overriding_Subprogram): Instance of
12 Generic_Is_Overriding_Subprogram with Sem_Disp.Find_Dispatching_Type.
13 (Inheritance_Utilities_Inst): Instance of Inheritance_Utilities
14 with Sem_Disp.Find_Dispatching_Type.
15
16 2018-05-28 Eric Botcazou <ebotcazou@adacore.com>
17
18 * exp_ch4.adb (Expand_Composite_Equality): For a composite (or FP)
19 component type, do not expand array equality using the unconstrained
20 base type, except for the case where the bounds of the type depend on a
21 discriminant.
22
23 2018-05-28 Ed Schonberg <schonberg@adacore.com>
24
25 * einfo.ads, einfo.adb (Needs_Activation_Record): New flag on
26 access-to-subprogram types, to indicate that an indirect call through
27 such a type requires an activation record when compiling for LLVM.
28 * sem_ch3.adb (Access_Subprogram_Declaration): Set new flag as needed.
29
30 2018-05-28 Ed Schonberg <schonberg@adacore.com>
31
32 * exp_ch4.adb (Real_Range_Check): Specialize float-to-fixed conversions
33 when bounds of fixed type are static, to remove some spuerfluous
34 implicit conversions and provide an accurate result when converting
35 back and forth between the fixed point type and a floating point type.
36
37 2018-05-28 Ed Schonberg <schonberg@adacore.com>
38
39 * exp_unst.adb (Unnest_Subprogram): Prevent creation of empty
40 activation records.
41
42 2018-05-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43
44 * exp_unst.adb (Check_Static_Type): Add argument to indicate node to be
45 replaced, if any; all callers changed.
46 (Note_Uplevel_Ref): Likewise. Also replace reference to deferred
47 constant with private view so we take the address of that entity.
48 (Note_Uplevel_Bound): Add argument to indicate node to be replaced, if
49 any; all callers changed. Handle N_Indexed_Component like
50 N_Attribute_Reference. Add N_Type_Conversion case.
51 (Visit_Node): Indexed references can be uplevel if the type isn't
52 static.
53 (Unnest_Subprograms): Don't rewrite if no reference given. If call has
54 been relocated, set first_named pointer in original node as well.
55
56 2018-05-28 Ed Schonberg <schonberg@adacore.com>
57
58 * exp_aggr.adb (Flatten): Copy tree of expression in a component
59 association with a range or a set of discrete choices, rather than
60 relocating the node. This avoids inconsistencies in the tree when
61 handling nested subprograms with uplevel references for LLVM.
62
63 2018-05-28 Arnaud Charlet <charlet@adacore.com>
64
65 * exp_util.adb (Possible_Bit_Aligned_Component): Always return False in
66 codepeer mode.
67
68 2018-05-28 Arnaud Charlet <charlet@adacore.com>
69
70 * exp_unst.adb: Fix typo.
71
72 2018-05-28 Bob Duff <duff@adacore.com>
73
74 * libgnat/a-convec.adb (Query_Element): Minor cleanup: remove an
75 unnecessary use of 'Unrestricted_Access.
76
77 2018-05-28 Hristian Kirtchev <kirtchev@adacore.com>
78
79 * repinfo.adb (Expr_Value_S): New routine.
80 (List_Linker_Section): Properly extract the value of the section
81 argument.
82
83 2018-05-28 Patrick Bernardi <bernardi@adacore.com>
84
85 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Update the
86 description of the -D binder switch to reflect current usage.
87 * gnat_ugn.texi: Regenerate.
88
89 2018-05-28 Gary Dismukes <dismukes@adacore.com>
90
91 * exp_ch3.adb: Minor reformatting
92
93 2018-05-28 Justin Squirek <squirek@adacore.com>
94
95 * exp_ch3.adb
96 (Build_Initialization_Call): Add logic to pass the appropriate actual to match
97 new formal.
98 (Init_Formals): Add new formal *_skip_null_excluding_check
99 * exp_util.adb, exp_util.ads
100 (Enclosing_Init_Proc): Added to fetch the enclosing Init_Proc from the current
101 scope.
102 (Inside_Init_Proc): Refactored to use Enclosing_Init_Proc
103 (Needs_Conditional_Null_Excluding_Check): Added to factorize the predicate
104 used to determine how to generate an Init_Proc for a given type.
105 (Needs_Constant_Address): Minor reformatting
106 * sem_res.adb
107 (Resolve_Null): Add logic to generate a conditional check in certain cases
108
109 2018-05-28 Hristian Kirtchev <kirtchev@adacore.com>
110
111 * exp_aggr.adb, gnatlink.adb, sem_ch6.adb, sem_res.adb, sem_util.adb:
112 Minor reformatting.
113
114 2018-05-28 Hristian Kirtchev <kirtchev@adacore.com>
115
116 * sem_prag.adb (Process_Atomic_Independent_Shared_Volatile): Include
117 the declarations of single concurrent types because they fall in the
118 category of full type and object declarations.
119
120 2018-05-28 Eric Botcazou <ebotcazou@adacore.com>
121
122 * repinfo.adb (Compute_Max_Length): Skip _Parent component.
123 (List_Record_Layout): Likewise.
124
125 2018-05-28 Ed Schonberg <schonberg@adacore.com>
126
127 * sem_util.adb (Is_Function_Result): Add a warning if a postcondition
128 includes a call to function to which it applies. This may mean an
129 omission of an attribute reference 'Result, in particular if the
130 function is pqrameterless.
131
132 2018-05-28 Justin Squirek <squirek@adacore.com>
133
134 * sem_ch8.adb (Find_Expanded_Name): Add extra guard to make sure the
135 misresolved package name is not a case of mistaken identity.
136
137 2018-05-28 Yannick Moy <moy@adacore.com>
138
139 * sem_res.adb (Resolve_Range): Re-resolve the low bound of a range in
140 GNATprove mode, as the order of resolution (low then high) means that
141 all the information is not available when resolving the low bound the
142 first time.
143
144 2018-05-28 Eric Botcazou <ebotcazou@adacore.com>
145
146 * repinfo.adb (List_Array_Info): Start with an explicit blank line and
147 end with the linker section, if any.
148 (List_Entities): Do not output the linker section for record types,
149 array types and variables.
150 (Print_Expr): Factor out common processing for unary operators and
151 special values. Adjust and reorder the various cases.
152 (List_Object_Info): End with the linker section, if any.
153 (List_Record_Info): Likewise.
154 (List_Type_Info): Do not start with a blank line.
155
156 2018-05-25 Nicolas Roche <roche@adacore.com>
157
158 * libgnat/s-valrea.adb (Scan_Real): Abort computation once it is sure
159 that the result will be either -infinite or +infinite.
160
161 2018-05-25 Patrick Bernardi <bernardi@adacore.com>
162
163 * libgnat/s-parame.ads, libgnat/s-parame__vxworks.ads,
164 libgnat/s-parame__ae653.ads, libgnat/s-parame__hpux.ads (Size_Type):
165 Expand range of type to match the address space of the target.
166 (Task_Storage_Size): Remove unused type.
167
168 2018-05-25 Ed Schonberg <schonberg@adacore.com>
169
170 * sem_res.adb (Set_Mixed_Mode_Operand): If the operand is an expression
171 of a fixed point type and the parent is a multiplying operation,
172 resolve the operand with its own type because the context will impose a
173 resulting type on the result of the multiplication by means of
174 approriate conversion.
175
176 2018-05-25 Hristian Kirtchev <kirtchev@adacore.com>
177
178 * exp_ch3.adb (Default_Initialize_Object): Ensure that the analysis of
179 the in-place initialization aggregate created for pragmas
180 Initialize_Scalars or Normalize_Scalars is performed with checks
181 suppressed.
182
183 2018-05-25 Arnaud Charlet <charlet@adacore.com>
184
185 * exp_aggr.adb (Convert_To_Positional): Bump default for
186 Max_Others_Replicate to 32. Update comments.
187 * osint.ads (Unknown_Attributes): No longer pretend this is a constant.
188 (No_File_Info_Cache): Initialize separately.
189 * osint.adb (No_File_Info_Cache): Update initializer.
190
191 2018-05-25 Javier Miranda <miranda@adacore.com>
192
193 * sem_res.adb (Resolve_Membership_Op): Allow the use of the membership
194 test when the left operand is a class-wide interface and the right
195 operand is not a class-wide type.
196 * exp_ch4.adb (Tagged_Membership): Adding support for interface as the
197 left operand.
198
199 2018-05-25 Ed Schonberg <schonberg@adacore.com>
200
201 * exp_aggr.adb (Flatten): A quantified expression cannot be duplicated
202 in an others clause to prevent visibility issues with the generated
203 loop variable.
204 (Component_OK_For_Backend): Return false for a quantified expression.
205 (Check_Static_Component): Ditto.
206
207 2018-05-25 Hristian Kirtchev <kirtchev@adacore.com>
208
209 * libgnat/s-secsta.adb (SS_Allocate): Reimplemented.
210 (SS_Allocate_Dynamic): New routine. The allocation logic is now split
211 into three distring cases rather than in one loop which attempts to
212 handle all three cases. This rewrite eliminates an issue where the last
213 frame of the stack cannot be freed, thus causing the memory range of a
214 new frame to approach the overflow point of the memory index type.
215 Since the overflow is logically treated as a
216 too-much-memory-on-the-stack scenario, it causes a bogus Storage_Error.
217 (SS_Allocate_Static): New routine. The routine factorizes the static
218 secondary stack-related code from the former SS_Allocate.
219
220 2018-05-25 Sergey Rybin <rybin@adacore.com>
221
222 * doc/gnat_ugn/gnat_and_program_execution.rst: Add description of '-U'
223 option for gnatelim.
224
225 2018-05-25 Ed Schonberg <schonberg@adacore.com>
226
227 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not create
228 Class_Wide_Clone_Body when analyzing a subprogram_body_stub: the clone
229 is created when the proper body of the stub is analyzed.
230 * sem_util.adb (ZBuild_Class_Wide_Clone_Body): If the subprogram body
231 is the proper body of a subunit, the cloned body must be inserted in
232 the declarative list that contains the stub.
233
234 2018-05-25 Justin Squirek <squirek@adacore.com>
235
236 * exp_ch6.adb (Expand_Simple_Function_Return): Add guard in check to
237 generate code for 6.5(8-10) so that we don't get an assertion error
238 when dealing with an incomplete return type.
239
240 2018-05-25 Arnaud Charlet <charlet@adacore.com>
241
242 * pprint.adb (Expression_Name): Strip too long expressions to avoid
243 carrying very large strings.
244
245 2018-05-25 Patrick Bernardi <bernardi@adacore.com>
246
247 * switch-b.adb (Scan_Binder_Switches): binder switch -Q accepts Natural
248 numbers.
249
250 2018-05-25 Doug Rupp <rupp@adacore.com>
251
252 * tracebak.c (aarch64-linux): Implement.
253
254 2018-05-25 Justin Squirek <squirek@adacore.com>
255
256 * sem_ch8.adb: Minor reformatting.
257
258 2018-05-25 Piotr Trojanek <trojanek@adacore.com>
259
260 * sem_util.adb (Iterate_Call_Parameters): Fix code convention and
261 assertions.
262
263 2018-05-25 Hristian Kirtchev <kirtchev@adacore.com>
264
265 * einfo.adb, einfo.ads, exp_ch3.adb, exp_ch8.adb, exp_unst.adb,
266 pprint.adb, sem_ch12.adb, sem_ch3.adb, sem_prag.adb, sem_util.adb:
267 Minor reformatting.
268
269 2018-05-25 Ed Schonberg <schonberg@adacore.com>
270
271 * sem_ch12.adb (Instance_Exists): New function, subsidiary of
272 Validate_Derived_Type_Instance, to verify that all interfaces
273 implemented by the formal type are also implemented by the actual. The
274 verification is complicated when an interface of the formal is declared
275 in a generic unit and the actual is declared in an instance of it.
276 There is currently no mechanism to relate an interface declared within
277 a generic to the corresponding interface in an instance, so we must
278 traverse the list of interfaces of the actual, looking for a name
279 match, and verifying that that interface is declared in an instance.
280
281 2018-05-25 Piotr Trojanek <trojanek@adacore.com>
282
283 * sem_util.adb (Iterate_Call_Parameters): Rewrite with extra
284 assertions; replace function versions of Next_Formal/Next_Actual with
285 their procedural versions (which are more concise).
286
287 2018-05-25 Doug Rupp <rupp@adacore.com>
288
289 * libgnarl/s-osinte__aix.ads, libgnarl/s-osinte__android.ads,
290 libgnarl/s-osinte__darwin.ads, libgnarl/s-osinte__freebsd.ads,
291 libgnarl/s-osinte__hpux.ads, libgnarl/s-osinte__kfreebsd-gnu.ads,
292 libgnarl/s-osinte__linux.ads, libgnarl/s-osinte__lynxos178e.ads,
293 libgnarl/s-osinte__qnx.ads, libgnarl/s-osinte__rtems.ads
294 (Relative_Timed_Wait): Remove.
295 * libgnarl/s-tpopmo.adb (Timed_Sleep, Timed_Delay): Rewrite to allow
296 for incremental looping. Remove references to Rel_Time and
297 Relative_Timed_Wait.
298 * libgnat/s-osprim__posix.adb, libgnat/s-osprim__posix2008.adb
299 (Timed_Delay): Make separate.
300 * libgnat/s-optide.adb: New separate procedure.
301 * libgnat/s-osprim.ads (Max_System_Delay): New constant.
302 * libgnat/s-osprim__lynxos.ads (Max_Sensible_Delay): Set to 6 months.
303 (Max_System_Delay): New constant.
304
305 2018-05-25 Ed Schonberg <schonberg@adacore.com>
306
307 * sem_ch12.adb (Validate_Derived_Type_Instance): Verify that the actual
308 for a formal derived type implements all the interfaces declared for
309 the formal.
310
311 2018-05-25 Yannick Moy <moy@adacore.com>
312
313 * sem_prag.adb (Check_Applicable_Policy): Deal specially with CodePeer
314 and GNATprove modes when applicable policy is Ignore.
315
316 2018-05-25 Eric Botcazou <ebotcazou@adacore.com>
317
318 * freeze.adb (Freeze_Enumeration_Type): Do not give integer size to a
319 boolean type with convention C.
320 * libgnat/i-cexten.ads (bool): Change to boolean with convention C.
321 * gcc-interface/decl.c (gnat_to_gnu_entity): Add new local variable
322 FOREIGN and use it throughout the function.
323 <E_Enumeration_Type>: Set precision 1 on boolean types with foreign
324 convention.
325 <E_Enumeration_Subtype>: Likewise for subtypes.
326 <E_Record_Type>: Force the size of a storage unit on empty classes.
327 * gcc-interface/utils.c (make_type_from_size) <BOOLEAN_TYPE>: Skip
328 boolean types with precision 1 if the size is the expected one.
329
330 2018-05-25 Arnaud Charlet <charlet@adacore.com>
331
332 * pprint.adb (Expression_Name): Do not print non ASCII characters.
333
334 2018-05-25 Bob Duff <duff@adacore.com>
335
336 * libgnat/a-strunb__shared.ads, libgnat/a-stwiun__shared.ads,
337 libgnat/a-stzunb__shared.ads: (Initialize, Adjust): Add pragma Inline.
338
339 2018-05-25 Bob Duff <duff@adacore.com>
340
341 * sem_util.ads: Minor comment fix.
342
343 2018-05-25 Ed Schonberg <schonberg@adacore.com>
344
345 * exp_unst.adb (Visit_Node): Restrict check for uplevel references in
346 prefixes of array attributes, to prefixes that are entity names whose
347 type is constrained.
348 (Note_Uplevel_Bound): Verify that the bound is declared in an enclosing
349 subprogram, as itype created for loops in pre/postcondition may appear
350 in loops at the library level.
351
352 2018-05-25 Ed Schonberg <schonberg@adacore.com>
353
354 * sem_ch13.adb (Build_Predicate_Functions): The predicate function
355 declaration is inserted into the tree and analyzed at that point, so
356 should not be reinserted when the body is constructed. Inside a
357 generic, ensure that the body is not inserted twice in the tree.
358
359 2018-05-25 Yannick Moy <moy@adacore.com>
360
361 * sem_prag.adb (Check_Grouping): Modify test to ignore statements and
362 declarations not coming from source.
363
364 2018-05-25 Fedor Rybin <frybin@adacore.com>
365
366 * doc/gnat_ugn/gnat_utility_programs.rst: Document new switch
367 --copy-environment for gnattest.
368
369 2018-05-24 Piotr Trojanek <trojanek@adacore.com>
370
371 * sem_elab.adb (Non_Private_View): Simplify by removing a local Result
372 variable.
373 * sem_prag.adb (Get_Base_Subprogram): Same as above.
374
375 2018-05-24 Eric Botcazou <ebotcazou@adacore.com>
376
377 * fe.h (Set_Normalized_First_Bit): Declare.
378 (Set_Normalized_Position): Likewise.
379 * repinfo.adb (List_Record_Layout): Do not use irregular output for a
380 variable position. Fix minor spacing issue.
381 * gcc-interface/decl.c (annotate_rep): If a field has a variable
382 offset, compute the normalized position and annotate it in addition to
383 the bit offset.
384
385 2018-05-24 Eric Botcazou <ebotcazou@adacore.com>
386
387 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu):
388 Constify and rename variables. Fix formatting.
389 (gnat_to_gnu) <N_Exception_Handler>: Minor tweak.
390 <N_Raise_Statement>: Likewise.
391
392 2018-05-24 Javier Miranda <miranda@adacore.com>
393
394 * exp_ch8.adb (Build_Body_For_Renaming): Adding support to build the
395 body of a variant record equality renaming.
396 (Expand_N_Subprogram_Renaming_Declaration): Adapt the code to the new
397 implementation of Build_Body_For_Renaming.
398 * exp_ch3.ads (Build_Variant_Record_Equality): New library level
399 function that factorizes the functionality needed by
400 Build_Body_For_Renaming and Expand_Freeze_Record_Type to build the body
401 of a variant record equality subprogram.
402 * exp_ch3.adb (Build_Variant_Record_Equality): New subprogram.
403 (Build_Variant_Record_Equality): New local procedure of
404 Expand_Freeze_Record_Type containing all the code specific for freezing
405 the record type that cannot be place in the new library level function.
406
407 2018-05-24 Ed Schonberg <schonberg@adacore.com>
408
409 * einfo.ads, einfo.adb (Is_Activation_Record): New flag on
410 in_parameters, used when unesting subprograms for LLVM, to indicate
411 that a generated parameter carries the activation record from the
412 enclosing subprogram.
413 * exp_unst.adb (Check_Static_Type): Handle array attributes of types
414 whose bounds may contain up-level references that need to be added to
415 an activation recoord.
416 (Add_Extra_Formal): Set Is_Activation_Record on new formal.
417
418 2018-05-24 Yannick Moy <moy@adacore.com>
419
420 * pprint.adb (Expression_Image): Improve the printing of expressions,
421 by taking more cases into account, in particular qualified expressions
422 and aggregates. Also count more the number of parentheses to close
423 after the expression.
424
425 2018-05-24 Javier Miranda <miranda@adacore.com>
426
427 * sem_ch3.adb (Is_Visible_Component): For untagged types add missing
428 check for renamed discriminants.
429 * sem_ch4.adb (Analyze_Overloaded_Selected_Component,
430 Analyze_Selected_Component, Check_Misspelled_Selector): For calls to
431 Is_Visible_Component pass the associated selector node to allow
432 checking renamed discriminants on untagged types.
433
434 2018-05-24 Ed Schonberg <schonberg@adacore.com>
435
436 * sem_ch8.adb (Analyze_Use_Type): Do not assign the Prev_Use_Clause
437 link to a use_type clause if this would cause an infinite loop in the
438 machinery that detects redundant use clauses. This may happen when the
439 redundant clauses appear in the context of a child unit and the context
440 of its parent.
441
442 2018-05-24 Piotr Trojanek <trojanek@adacore.com>
443
444 * sinfo.ads: Fix grammar in comment.
445
446 2018-05-24 Justin Squirek <squirek@adacore.com>
447
448 * einfo.ads, einfo.adb (Append_Entity): Modified to use Link_Entities
449 and manage doubly-linked entity chain.
450 (Nested_Scenarios): Removed entity field used for optimization during
451 elaboration to make room for the new field Prev_Entity.
452 (Link_Entities): Added to replace redundant calls to Set_Next_Entity
453 and Set_Prev_Entity as well as centralize changes to the entity chain.
454 (Predicated_Parent): Modified to use Node38.
455 (Prev_Entity): Added to fetch new node field Prev_Entity in all entity
456 types.
457 (Remove_Entity): Moved from sem_util.
458 (Set_Nested_Scenarios): Deleted.
459 (Set_Predicated_Parent): Modified to use Node38.
460 (Set_Prev_Entity): Added to set Prev_Entity field.
461 (Set_Validated_Object): Modified to use Node38.
462 (Unlink_Next_Entity): Added to process Prev_Entity when an unlinking
463 action is required.
464 (Validated_Object): Modified to use Node38.
465 (Write_Field36_Name): Remove Nested_Scenarios, Validated_Object, and
466 predicated parent cases.
467 (Write_Field38_Name): Add predicated parent and Validated_Object cases.
468 * sem_ch3.adb (Process_Subtype): Add guard to protect against
469 inappropriate marking of Predicated_Parent to non-itype subtypes.
470 (Make_Class_Wide_Type): Preserve Prev_Entity field and set in new type.
471 (Copy_And_Swap): Add setting of Prev_Entity.
472 (Build_derived_Record_Type): Replace Set_Next_Entity w/ Link_Entities.
473 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Replace Set_Next_Entity
474 w/ Link_Entities.
475 (New_Overloaded_Entity): Remove block created to search for previous
476 entities in the entity chain with relevant calls to Prev_Entity as well
477 as replace duplicated code from Remove_Entity_And_Homonym with a call
478 to that subprogram.
479 * sem_ch7.adb (Exchange_Declarations): Replace Set_Next_Entity w/
480 Link_Entities.
481 * sem_elab.adb (Find_And_Process_Nested_Scenarios): Remove global and
482 initial subprogram declarations related to Nested_Scenarios.
483 (Process_Nested_Scenarios): Deleted.
484 (Save_Scenario): Deleted.
485 (Traverse_Body): Remove optimization for Nested_Scenarios so as to free
486 node space in the entity tree.
487 * sem_util.adb, sem_util.ads (Remove_Entity): Moved to einfo.
488 (Remove_Entity_And_Homonym): Added to separate functionality of
489 Remove_Entity from the homonym chain directly.
490 * exp_attr.adb (Expand_N_Attribute_Reference): Replace Set_Next_Entity
491 w/ Link_Entities and Unlink_Next_Entity.
492 * exp_ch3.adb (Expand_N_Object_Declaration): Replace Set_Next_Entity w/
493 Link_Entities.
494 * exp_ch6.adb (Replace_Renaming_Declaration_Id): Replace
495 Set_Next_Entity w/ Link_Entities.
496 * exp_disp.adb (Expand_Dispatching_Call): Replace Set_Next_Entity w/
497 Link_Entities and Unlink_Next_Entity.
498 * exp_spark.adb (Expand_SPARK_N_Object_Renaming_Declaration): Replace
499 call to Remove_Entity with its new incarnation.
500 * exp_util.adb (New_Class_Wide_Subtype): Add setting of Prev_Entity.
501 * freeze.adb (Freeze_Record_Type): Replace Set_Next_Entity w/
502 Link_Entities.
503
504 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
505
506 * sem_ch10.adb (Expand_Limited_With_Clause): Update the call to
507 Install_Limited_Withed_Unit.
508 (Expand_With_Clause): Update the call to Install_Withed_Unit.
509 (Implicit_With_On_Parent): Update the call to Install_Withed_Unit.
510 (Install_Context_Clauses): Update the call to Install_Withed_Unit.
511 (Install_Limited_Context_Clauses): Update the calls to
512 Install_Limited_Withed_Unit.
513 (Install_Limited_Withed_Unit): Renamed to better illustrate its
514 purpose.
515 (Install_Private_With_Clauses): Update the calls to Install_Withed_Unit
516 and Install_Limited_Withed_Unit.
517 (Install_With_Clause): Uninstall a limited with clause if a [private]
518 with clause is given for the same package.
519 (Install_Withed_Unit): Renamed to better illustrate its purpose.
520 (Remove_Limited_With_Unit): New routine.
521
522 2018-05-24 Eric Botcazou <ebotcazou@adacore.com>
523
524 * raise-gcc.c (__gnat_SEH_error_handler): Remove prototype.
525 (__gnat_personality_seh0): Adjust and beef up comments, and
526 fix formatting throughout.
527 (__gnat_adjust_context): Deal minimally with version 2.
528 * seh_init.c (__gnat_map_SEH): Fix formatting.
529 (_gnat_SEH_error_handler): Adjust comments.
530 (__gnat_install_SEH_handler): Fix formatting.
531
532 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
533
534 * exp_ch7.adb, sem_ch3.adb, sem_res.adb: Minor reformatting.
535
536 2018-05-24 Ed Schonberg <schonberg@adacore.com>
537
538 * exp_aggr.adb (Flatten): Add a warning on an others clause in an array
539 aggregate with static bounds when named associations cover all index
540 positions and the others clause is redundant.
541
542 2018-05-24 Raphael Amiard <amiard@adacore.com>
543
544 * libgnat/a-cohama.ads: Add documentation.
545
546 2018-05-24 Raphael Amiard <amiard@adacore.com>
547
548 * libgnat/a-convec.ads: Add documentation.
549
550 2018-05-24 Justin Squirek <squirek@adacore.com>
551
552 * exp_ch3.adb (Expand_N_Object_Declaration): Ignore raising an error in
553 expansion for limited tagged types when the node to be expanded is a
554 raise expression due to it not representing a valid object.
555 * exp_ch5.adb (Expand_N_Assignment_Statement): Add exception to error
556 message regarding assignments to limited types to ignore genereated
557 code.
558
559 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
560
561 * exp_util.adb (New_Class_Wide_Subtype): Capture and restore relevant
562 Ghost-related attributes of the class-wide subtype because the copy
563 clobbers them.
564
565 2018-05-24 Justin Squirek <squirek@adacore.com>
566
567 * sem_res.adb (Resolve_Entity_Name): Add guard to protect against
568 marking use clauses as effective when the reference appears within
569 generated code.
570
571 2018-05-24 Cyrille Comar <comar@adacore.com>
572
573 * doc/gnat_rm/the_gnat_library.rst: Fix typos.
574 * gnat_rm.texi: Regenerate.
575
576 2018-05-24 Bob Duff <duff@adacore.com>
577
578 * exp_ch7.adb (Expand_Cleanup_Actions): Create a mark unconditionally
579 for build-in-place functions with a caller-unknown-size result.
580 (Create_Finalizer): For build-in-place functions with a
581 caller-unknown-size result, check at run time whether we need to
582 release the secondary stack.
583
584 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
585
586 * sem_prag.adb (Analyze_Pragma): Use the full view of an internally
587 generated incomplete type.
588
589 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
590
591 * expander.adb (Expand): Update the save and restore of the Ghost
592 region.
593 * exp_ch3.adb (Freeze_Type): Likewise.
594 * exp_disp.adb (Make_DT): Likewise.
595 * exp_util.adb (Build_DIC_Procedure_Body): Likewise.
596 (Build_DIC_Procedure_Declaration): Likewise.
597 (Build_Invariant_Procedure_Body): Likewise.
598 (Build_Invariant_Procedure_Declaration): Likewise.
599 (Make_Predicate_Call): Likewise.
600 * freeze.adb (Add_To_Result): Insert the freeze action of a living
601 entity prior to the start of the enclosing ignored Ghost region.
602 (Freeze_Entity): Update the save and restore of the Ghost region.
603 * ghost.adb (Install_Ghost_Mode): Reimplemented.
604 (Install_Ghost_Region): New routine.
605 (Mark_And_Set_Ghost_Assignment): Install a region rather than a mode.
606 (Mark_And_Set_Ghost_Body): Likewise.
607 (Mark_And_Set_Ghost_Completion): Likewise.
608 (Mark_And_Set_Ghost_Declaration): Likewise.
609 (Mark_And_Set_Ghost_Instantiation): Likewise.
610 (Mark_And_Set_Ghost_Procedure_Call): Likewise.
611 (Name_To_Ghost_Mode): New routine.
612 (Restore_Ghost_Region): New routine.
613 * ghost.ads (Install_Ghost_Region): New routine.
614 (Restore_Ghost_Region): New routine.
615 * opt.ads: Add new global variable Ignored_Ghost_Region.
616 * rtsfind.adb (Load_RTU): Update the save and restore of the Ghost
617 region. Install a clean region.
618 * sem.adb (Analyze): Likewise.
619 (Do_Analyze): Likewise.
620 * sem_ch3.adb (Analyze_Object_Declaration): Likewise
621 (Derive_Progenitor_Subprograms): Use local variable Iface_Alias to
622 capture the ultimate alias of the current primitive.
623 (Process_Full_View): Update the save and restore of the Ghost region.
624 Do not inherit DIC and invariant procedures.
625 * sem_ch5.adb (Analyze_Assignment): Update the save and restore of the
626 Ghost region.
627 * sem_ch6.adb (Analyze_Procedure_Call): Likewise.
628 (Analyze_Subprogram_Body_Helper): Likewise.
629 * sem_ch7.adb (Analyze_Package_Body_Helper): Likewise.
630 * sem_ch12.adb (Analyze_Package_Instantiation): Likewise.
631 (Analyze_Subprogram_Instantiation): Likewise.
632 (Instantiate_Package_Body): Likewise.
633 (Instantiate_Subprogram_Body): Likewise.
634 * sem_ch13.adb (Build_Predicate_Functions): Likewise.
635 (Build_Predicate_Function_Declaration): Likewise.
636 * sem_disp.adb
637 (Add_Dispatching_Operation): Do not consider DIC and invariant
638 procedures.
639 (Check_Dispatching_Operation): Use Add_Dispatching_Operation to collect
640 a dispatching subprogram.
641 (Check_Operation_From_Private_View): Likewise.
642 (Override_Dispatching_Operation): Likewise.
643 * sem_prag.adb (Analyze_Contract_Cases_In_Decl_Part): Update the save
644 and restore of the Ghost region.
645 (Analyze_Initial_Condition_In_Decl_Part): Likewise.
646 (Analyze_Pragma): Update the save and restore of the Ghost region.
647 (Analyze_Pre_Post_Condition_In_Decl_Part): Likewise.
648 * sem_util.adb (Is_Suitable_Primitive): New routine.
649 * sem_util.ads (Is_Suitable_Primitive): New routine.
650 * sinfo.ads: Update the section of Ghost regions.
651
652 2018-05-24 Piotr Trojanek <trojanek@adacore.com>
653
654 * doc/gnat_rm/implementation_defined_pragmas.rst (Contract_Cases):
655 Change "condition" to "case guard" after renaming in the contract
656 grammar.
657 * gnat_rm.texi: Regenerate.
658
659 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
660
661 * exp_util.adb (Expand_Static_Predicates_In_Choices): Indicate that the
662 construct with discrete choices no longer contains a subtype with
663 predicates since the expansion already handled this case.
664
665 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
666
667 * freeze.adb (Wrap_Imported_Subprogram): Generate an unchecked
668 conversion to the return type to avoid a side effect where an imported
669 relocated function generates a new anonymous access type, whose
670 accessibility level does not agree with with that of the wrapper.
671
672 2018-05-24 Javier Miranda <miranda@adacore.com>
673
674 * sem_util.adb (Abstract_Interface_List): Add missing support for
675 private types whose full view is a synchronized type.
676 * sem_ch3.adb (Build_Derived_Private_Type): Skip building the full
677 derivation of a private type parent type is a task type with
678 discriminants as gigi does not use such type directly.
679
680 2018-05-24 Hristian Kirtchev <kirtchev@adacore.com>
681
682 * sem_elab.adb (Build_Variable_Reference_Marker): Do not create a
683 variable marker when the reference appears in the formal part of a
684 compilation unit instance because there is no place to insert it.
685 (In_Compilation_Instance_Formal_Part): New routine.
686
687 2018-05-24 Piotr Trojanek <trojanek@adacore.com>
688
689 * layout.ads, repinfo.ads: Fix references to renamed Backend_Layout
690 configuration parameter.
691
692 2018-05-24 Doug Rupp <rupp@adacore.com>
693
694 * argv-lynxos178-raven-cert.c: New file.
695 * libgnat/system-lynxos178-x86.ads: New file.
696
697 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
698
699 * exp_disp.adb, freeze.adb, gnat1drv.adb, sem_ch5.adb, sem_spark.adb:
700 Minor reformattings.
701
702 2018-05-23 Pascal Obry <obry@adacore.com>
703
704 * adaint.c (win32_wait): Properly free the handle/pid lists when
705 WaitForMultipleObjects fails (return WAIT_FAILED).
706
707 2018-05-23 Pascal Obry <obry@adacore.com>
708
709 * adaint.c (win32_wait): Add missing parentheses.
710
711 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
712
713 * exp_ch3.adb (Check_Large_Modular_Array): Moved to Freeze.
714 (Expand_N_Object_Declaration): Do not check for a large modular array
715 here.
716 * freeze.adb (Check_Large_Modular_Array): Moved from Exp_Ch3.
717 (Freeze_Object_Declaration): Code cleanup. Check for a large modular
718 array.
719 * sem_ch3.adb: Minor reformatting.
720
721 2018-05-23 Ed Schonberg <schonberg@adacore.com>
722
723 * einfo.ads: New attribute on types: Predicated_Parent, to simplify the
724 retrieval of the applicable predicate function to an itype created for
725 a constrained array component.
726 * einfo.adb: Subprograms for Predicated_Parent.
727 (Predicate_Function): Use new attribute.
728 * exp_util.adb (Make_Predicate_Call): If the predicate function is not
729 available for a subtype, retrieve it from the base type, which may have
730 been frozen after the subtype declaration and not captured by the
731 subtype declaration.
732 * sem_aggr.adb (Resolve_Array_Aggregate): An Others association is
733 legal within a generated initiqlization procedure, as may happen with a
734 predicate check on a component, when the predicate function applies to
735 the base type of the component.
736 * sem_ch3.adb (Analyze_Subtype_Declaration): Clean up inheritance of
737 predicates for subtype declarations and for subtype indications in
738 other contexts.
739 (Process_Subtype): Likewise. Handle properly the case of a private type
740 with unknown discriminants whose full view is an unconstrained array.
741 Use Predicated_Parent to indicate source of predicate function on an
742 itype whose parent is itself an itype.
743 (Complete_Private_Subtype): If the private view has unknown
744 discriminants and the full view is an unconstrained array, set base
745 type of completion to the full view of parent.
746 (Inherit_Predicate_Flags): Prevent double assignment of predicate
747 function and flags.
748 (Build_Subtype): For a constrained array component, propagate predicate
749 information from original component type declaration.
750
751 2018-05-23 Boris Yakobowski <yakobowski@adacore.com>
752
753 * libgnat/a-ngelfu.ads (Arctanh, Arccoth): Fix faulty preconditions.
754
755 2018-05-23 Arnaud Charlet <charlet@adacore.com>
756
757 * checks.adb (Minimize_Eliminate_Overflows): Default initialize Lo and
758 Hi.
759 * sem_elab.adb: Make "out" parameters instead of "in out" when
760 relevant.
761
762 2018-05-23 Bob Duff <duff@adacore.com>
763
764 * gnatbind.adb (List_Applicable_Restrictions): Add
765 No_Implementation_Restrictions to the list of restrictions not to list.
766 Remove double negative "not No_Restriction_List". Comment the
767 commentary that is output, so it won't cause errors if used directly in
768 a gnat.adc.
769
770 2018-05-23 Ed Schonberg <schonberg@adacore.com>
771
772 * sem_prag.adb (Inherit_Class_Wide_Pre): Refine legality check on
773 class-wide precondition on a type extension when ancestor does not have
774 a class-wide precondition. Previously the compiler accepted such a
775 precondition when the ancestor had a class-wide postcondition.
776
777 2018-05-23 Javier Miranda <miranda@adacore.com>
778
779 * sem_attr.adb (Valid_Scalars): Do not invoke Error_Attr_P to report
780 the warning on occurrences of this attribute whose evaluation is always
781 true (since that subprogram aborts processing the attribute). In
782 addition, replace the node by its boolean result 'True' (required
783 because the backend has no knowledge of this attribute).
784
785 2018-05-23 Bob Duff <duff@adacore.com>
786
787 * libgnat/a-convec.adb: (Insert, Insert_Space): Suppress warnings. The
788 code in question is not reachable in the case where Count_Type'Last is
789 out of range.
790
791 2018-05-23 Yannick Moy <moy@adacore.com>
792
793 * doc/gnat_rm/implementation_defined_pragmas.rst: Clarify meaning of
794 local pragma Warnings Off without On.
795 * gnat_rm.texi: Regenerate.
796
797 2018-05-23 Olivier Hainque <hainque@adacore.com>
798
799 * libgnat/g-excact.ads (Is_Foreign_Exception): New predicate.
800 * libgnat/g-excact.adb: Implement.
801
802 2018-05-23 Ed Schonberg <schonberg@adacore.com>
803
804 * sem_ch5.adb (Analyze_Iterator_Specification): If a subtype indication
805 is present, verify its legality when the domain of iteration is a
806 GNAT-specific formal container, as is already done for arrays and
807 predefined containers.
808
809 2018-05-23 Yannick Moy <moy@adacore.com>
810
811 * sem_util.adb (Enclosing_Declaration): Fix the case of a named number
812 declaration, which was not taken into account.
813
814 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
815
816 * debug.adb: Switch -gnatd_s is now used to stop elaboration checks on
817 synchronized suspension.
818 * rtsfind.ads: Add entries for units Ada.Synchronous_Barriers and
819 Ada.Synchronous_Task_Control and routines Suspend_Until_True and
820 Wait_For_Release.
821 * sem_elab.adb: Document switch -gnatd_s.
822 (In_Task_Body): New routine.
823 (Is_Potential_Scenario): Code cleanup. Stop the traversal of a task
824 body when the current construct denotes a synchronous suspension call,
825 and restriction No_Entry_Calls_In_Elaboration_Code or switch -gnatd_s
826 is in effect.
827 (Is_Synchronous_Suspension_Call): New routine.
828 * switch-c.adb (Scan_Front_End_Switches): Switch -gnatJ now sets switch
829 -gnatd_s.
830
831 2018-05-23 Javier Miranda <miranda@adacore.com>
832
833 * exp_disp.adb (Make_DT): Restrict the initialization of
834 External_Tag and Expanded_Name to an empty string to the case where
835 both pragmas apply (i.e. No_Tagged_Streams and Discard_Names), since
836 restricted runtimes are compiled with pragma Discard_Names.
837 * doc/gnat_rm/implementation_defined_pragmas.rst,
838 doc/gnat_rm/implementation_defined_characteristics.rst: Add
839 documentation.
840 * gnat_rm.texi: Regenerate.
841
842 2018-05-23 Maroua Maalej <maalej@adacore.com>
843
844 * sem_spark.adb: Fix of some permission rules of pointers in SPARK.
845
846 2018-05-23 Ed Schonberg <schonberg@adacore.com>
847
848 * sem_ch5.adb (Preanalyze_Range): The pre-analysis of the domain of
849 iteration of an Ada2012 loop is performed to determine the type of the
850 domain, but full analysis is performed once the loop is rewritten as a
851 while-loop during expansion. The pre-analysis suppresses expansion; it
852 must also suppress the generation of freeze nodes, which may otherwise
853 appear in the wrong scope before rewritting.
854
855 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
856
857 * sem_elab.adb: Update the section on suppressing elaboration warnings.
858
859 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
860
861 * einfo.adb (Is_Elaboration_Checks_OK_Id): Use predicate
862 Is_Elaboration_Target.
863 (Is_Elaboration_Target): New routine.
864 (Is_Elaboration_Warnings_OK_Id): Use predicate Is_Elaboration_Target.
865 (Set_Is_Elaboration_Checks_OK_Id): Use predicate Is_Elaboration_Target.
866 (Set_Is_Elaboration_Warnings_OK_Id): Use predicate
867 Is_Elaboration_Target.
868 * einfo.ads: Add new synthesized attribute Is_Elaboration_Target along
869 with occurrences in nodes.
870 (Is_Elaboration_Target): New routine.
871 * sem_prag.adb (Analyze_Pragma): Suppress elaboration warnings when an
872 elaboration target is subject to pragma Warnings (Off, ...).
873
874 2018-05-23 Eric Botcazou <ebotcazou@adacore.com>
875
876 * repinfo.adb (List_Type_Info): Remove obsolete stuff.
877
878 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
879
880 * einfo.adb: Flag304 is now Is_Elaboration_Warnings_OK_Id.
881 (Is_Elaboration_Warnings_OK_Id): New routine.
882 (Set_Is_Elaboration_Warnings_OK_Id): New routine.
883 (Write_Entity_Flags): Output Flag304.
884 * einfo.ads: Add new attribute Is_Elaboration_Warnings_OK_Id along with
885 occurrences in entities.
886 (Is_Elaboration_Warnings_OK_Id): New routine along with pragma Inline.
887 (Set_Is_Elaboration_Warnings_OK_Id): New routine along with pragma
888 Inline.
889 * sem_attr.adb (Analyze_Access_Attribute): Capture the state of
890 elaboration warnings.
891 * sem_ch3.adb (Analyze_Object_Declaration): Capture the state of
892 elaboration warnings.
893 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Capture the
894 state of elaboration warnings.
895 (Analyze_Subprogram_Body_Helper): Capture the state of elaboration
896 warnings.
897 (Analyze_Subprogram_Declaration): Capture the state of elaboration
898 warnings.
899 * sem_ch9.adb (Analyze_Entry_Declaration): Capture the state of
900 elaboration warnings.
901 (Analyze_Single_Task_Declaration): Capture the state of elaboration
902 warnings.
903 (Analyze_Task_Type_Declaration): Capture the state of elaboration
904 warnings.
905 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Capture the state
906 of elaboration warnings.
907 (Analyze_Generic_Subprogram_Declaration): Capture the state of
908 elaboration warnings.
909 * sem_elab.adb: Add a section on suppressing elaboration warnings.
910 Type Processing_Attributes includes component Suppress_Warnings
911 intended to suppress any elaboration warnings along a path in the
912 graph. Update Initial_State to include a value for this component.
913 Types Target_Attributes and Task_Attriutes include component
914 Elab_Warnings_OK to indicate whether the target or task has elaboration
915 warnings enabled. component Elab_Warnings_OK.
916 (Build_Access_Marker): Propagate attribute
917 Is_Elaboration_Warnings_OK_Node from the attribute to the generated
918 call marker.
919 (Extract_Instantiation_Attributes): Set the value for Elab_Warnings_OK.
920 (Extract_Target_Attributes): Set the value for Elab_Warnings_OK.
921 (Extract_Task_Attributes): Set the value for Elab_Warnings_OK.
922 (Process_Conditional_ABE_Access): Suppress futher elaboration warnings
923 when already in this mode or when the attribute or target have warnings
924 suppressed.
925 (Process_Conditional_ABE_Activation_Impl): Do not emit any diagnostics
926 if warnings are suppressed.
927 (Process_Conditional_ABE_Call): Suppress further elaboration warnings
928 when already in this mode, or the target or call have warnings
929 suppressed.
930 (Process_Conditional_ABE_Call_Ada): Do not emit any diagnostics if
931 warnings are suppressed.
932 (Process_Conditional_ABE_Call_SPARK): Do not emit any diagnostics if
933 warnings are suppressed.
934 (Process_Conditional_ABE_Instantiation): Suppress further elaboration
935 warnings when already in this mode or when the instantiation has
936 warnings suppressed.
937 (Process_Conditional_ABE_Instantiation_Ada): Do not emit any
938 diagnostics if warnings are suppressed.
939 (Process_Conditional_ABE_Variable_Assignment_Ada): Use the more
940 specific Is_Elaboration_Warnings_OK_Id rather than Warnings_Off.
941 (Process_Conditional_ABE_Variable_Assignment_SPARK): Use the more
942 specific Is_Elaboration_Warnings_OK_Id rather than Warnings_Off.
943 (Process_Task_Object): Suppress further elaboration warnings when
944 already in this mode, or when the object, activation call, or task type
945 have warnings suppressed. Update the processing state to indicate that
946 the path goes through a task body.
947 * sinfo.adb (Is_Elaboration_Warnings_OK_Node): Accept attribute
948 references.
949 (Set_Is_Elaboration_Warnings_OK_Node): Accept attribute references.
950 * sinfo.ads: Attribute Is_Elaboration_Warnings_OK_Node now applies to
951 attribute references.
952
953 2018-05-23 Piotr Trojanek <trojanek@adacore.com>
954
955 * einfo.ads: Minor reformatting.
956
957 2018-05-23 Ed Schonberg <schonberg@adacore.com>
958
959 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
960 anonymous_access_to_ subprogram formal, apply a conversion to force an
961 accsssibility check that will fail statically, enforcing 3.10.2 (13).
962
963 2018-05-23 Daniel Mercier <mercier@adacore.com>
964
965 * gnat1drv.adb: Turn off length expansion in CodePeer mode.
966
967 2018-05-23 Bob Duff <duff@adacore.com>
968
969 * freeze.adb: (Check_Address_Clause): Deal with build-in-place
970 aggregates in addition to build-in-place calls.
971
972 2018-05-23 Bob Duff <duff@adacore.com>
973
974 * einfo.ads: Minor reformatting.
975 * sem_ch3.adb: Likewise.
976 * sinfo.ads: Likewise.
977
978 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
979
980 * exp_ch3.adb (Default_Initialize_Object): Do not optimize scalar array
981 initialization when the component type has predicates.
982 * exp_ch4.adb (Expand_N_Allocator): Do not optimize scalar array
983 allocation when the component type has predicates.
984
985 2018-05-23 Hristian Kirtchev <kirtchev@adacore.com>
986
987 * einfo.adb, exp_disp.adb, sem_ch3.adb, sem_ch6.adb, sem_prag.adb:
988 Minor reformatting.
989
990 2018-05-22 Justin Squirek <squirek@adacore.com>
991
992 * sem_ch6.adb (Analyze_Expression_Function): Propagate flags from the
993 original function spec into the generated function spec due to
994 expansion of expression functions during analysis.
995 (Analyze_Subprogram_Body_Helper): Modify check on formal parameter
996 references from the body to the subprogram spec in the case of
997 expression functions because of inconsistances related to having a
998 generated body.
999 * libgnarl/s-osinte__android.ads: Flag parameters as unused.
1000 * libgnarl/s-osinte__lynxos178e.ads: Likewise.
1001 * libgnarl/s-osinte__qnx.adb: Likewise.
1002 * libgnarl/s-osinte__qnx.ads: Likewise.
1003
1004 2018-05-22 Doug Rupp <rupp@adacore.com>
1005
1006 * init.c (HAVE_ADJUST_CONTEXT_FOR_RAISE): Don't define on VxWorks7 for
1007 AArch64.
1008
1009 2018-05-22 Olivier Hainque <hainque@adacore.com>
1010
1011 * libgnat/a-except.adb (Exception_Propagation.Propagate_Exception):
1012 Expect an Exception_Occurence object, not an Access.
1013 (Complete_And_Propagate_Occurrence): Adjust accordingly.
1014 (Raise_From_Signal_Handler): Likewise.
1015 (Reraise_Occurrence_No_Defer): If we have a Machine_Occurrence
1016 available in the provided occurrence object, just re-propagate the
1017 latter as a bare "raise;" would do.
1018 * libgnat/a-exexpr.adb (Propagate_Exception): Adjust to spec change.
1019 * libgnat/a-exstat.adb (String_To_EO): Initialize X.Machine_Occurrence
1020 to null, to mark that the occurrence we're crafting from the stream
1021 contents is not being propagated (yet).
1022
1023 2018-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1024
1025 * exp_aggr.adb (Initialize_Ctrl_Record_Component): Insert the generated
1026 code for a transient component in line with the rest of the
1027 initialization code, rather than before the aggregate. This ensures
1028 that the component has proper visibility of the discriminants.
1029
1030 2018-05-22 Jerome Lambourg <lambourg@adacore.com>
1031
1032 * adaint.c: Reorganize QNX-specific macros, use syspage to retreive the
1033 number of CPUs.
1034
1035 2018-05-22 Jerome Lambourg <lambourg@adacore.com>
1036
1037 * sigtramp-qnx.c: Properly restore link register in signal trampoline.
1038
1039 2018-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1040
1041 * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Strip away any
1042 conversions before extracting the value of the expression.
1043 * exp_ch3.adb (Default_Initialize_Object): Optimize the default
1044 initialization of an array of scalars.
1045 (Get_Simple_Init_Val): Add processing for array types. Remove the
1046 processing of strings because this case is already handled by the array
1047 case.
1048 (Needs_Simple_Initialization): Moved to Sem_Util.
1049 (Simple_Init_Array_Type): New routine.
1050 (Simple_Init_Initialize_Scalars_Type): Reimplemented to use the new
1051 facilities from Sem_Util.
1052 (Simple_Initialization_OK): New routine.
1053 * exp_ch3.ads (Needs_Simple_Initialization): Moved to Sem_Util.
1054 * exp_ch4.adb (Expand_N_Allocator): Optimize the default allocation of
1055 an array of scalars.
1056 * sem_prag.adb (Analyze_Float_Value): New routine.
1057 (Analyze_Integer_Value): New routine.
1058 (Analyze_Pragma): Reimplement the analysis of pragma Initialize_Scalars
1059 to handled the extended form of the pragma.
1060 (Analyze_Type_Value_Pair): New routine.
1061 * sem_util.adb: Add invalid value-related data structures.
1062 (Examine_Array_Bounds): New routine.
1063 (Has_Static_Array_Bounds): Reimplemented.
1064 (Has_Static_Non_Empty_Array_Bounds): New routine.
1065 (Invalid_Scalar_Value): New routine.
1066 (Needs_Simple_Initialization): Moved from Exp_Ch3.
1067 (Set_Invalid_Scalar_Value): New routines.
1068 * sem_util.ads (Has_Static_Non_Empty_Array_Bounds): New routine.
1069 (Invalid_Scalar_Value): New routine.
1070 (Needs_Simple_Initialization): Moved from Exp_Ch3.
1071 (Set_Invalid_Scalar_Value): New routines.
1072 * snames.ads-tmpl: Add names for the salar type families used by pragma
1073 Initialize_Scalars.
1074
1075 2018-05-22 Javier Miranda <miranda@adacore.com>
1076
1077 * exp_disp.adb (Make_DT): Initialize the External_Tag with an empty
1078 string when pragma No_Tagged_Streams is applicable to the tagged type,
1079 and initialize the Expanded_Name with an empty string when pragma
1080 Discard_Names is applicable to the tagged type.
1081
1082 2018-05-22 Ed Schonberg <schonberg@adacore.com>
1083
1084 * sem_ch6.adb (Check_Conformance): Add RM reference for rule that a
1085 formal subprogram is never subtype conformqnt, and thus cannot be the
1086 prefix of 'Access. Reject as well the attribute when applied to a
1087 renaming of a formal subprogram.
1088
1089 2018-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1090
1091 * exp_ch3.adb (Build_Array_Init_Proc): Update the call to
1092 Needs_Simple_Initialization.
1093 (Build_Init_Statements): Update the call to Get_Simple_Init_Val.
1094 (Check_Subtype_Bounds): Renamed to Extract_Subtype_Bounds. Update the
1095 profile and comment on usage.
1096 (Default_Initialize_Object): Do not use New_Copy_Tree to set the proper
1097 Sloc of a value obtained from aspect Default_Value because this could
1098 potentially replicate large trees. The proper Sloc is now set in
1099 Get_Simple_Init_Val.
1100 (Get_Simple_Init_Val): Reorganized by breaking the various cases into
1101 separate routines. Eliminate the use of global variables.
1102 (Init_Component): Update the call to Get_Simple_Init_Val.
1103 (Needs_Simple_Initialization): Update the parameter profile and all
1104 uses of T.
1105 (Simple_Init_Defaulted_Type): Copy the value of aspect Default_Value
1106 and set the proper Sloc.
1107 * exp_ch3.ads (Get_Simple_Init_Val): Update the parameter profile and
1108 comment on usage.
1109 (Needs_Simple_Initialization): Update the parameter profile.
1110
1111 2018-05-22 Patrick Bernardi <bernardi@adacore.com>
1112
1113 * sem_ch3.adb (Build_Discriminant_Constraints): Raise an error if the
1114 user tries to use a subtype indication as a discriminant constraint.
1115
1116 2018-05-22 Ed Schonberg <schonberg@adacore.com>
1117
1118 * exp_ch4.ads, exp_ch4.adb, exp_util.adb, expander.adb: Remove mention
1119 of N_Reduction_Expression and N_Reduction_Expression_Parameter.
1120 * par-ch4.adb: Remove parsing routines for reduction expressions.
1121 * sem.adb, sinfo.ads, sinfo.adb, sem_ch4.ads, sem_ch4.adb, sem_res.adb,
1122 sem_spark.adb, sprint.adb: Remove analysis routines for reduction
1123 expressions.
1124
1125 2018-05-22 Arnaud Charlet <charlet@adacore.com>
1126
1127 * sem_ch8.adb (Check_Frozen_Renaming): Do not emit error in
1128 Relaxed_RM_Semantics mode.
1129
1130 2018-05-22 Arnaud Charlet <charlet@adacore.com>
1131
1132 * comperr.adb (Delete_SCIL_Files): Take into account
1133 N_Generic_Package_Renaming_Declaration.
1134
1135 2018-05-22 Ed Schonberg <schonberg@adacore.com>
1136
1137 * sem_ch3.adb (Search_Derivation_Levels): Whenever a parent type is
1138 private, use the full view if available, because it may include renamed
1139 discriminants whose values are stored in the corresponding
1140 Stored_Constraint.
1141
1142 2018-05-22 Ed Schonberg <schonberg@adacore.com>
1143
1144 * einfo.ads, einfo.adb: New attribute Hidden_In_Formal_Instance,
1145 defined on packages that are actuals for formal packages, in order to
1146 set/reset the visibility of the formals of a formal package with given
1147 actuals, when there are subsequent uses of those formals in the
1148 enclosing generic, as required by RN 12.7 (10).
1149 * atree.ads, atree.adb: Add operations for Elist30.
1150 * atree.h: Add Elist30.
1151 * sem_ch12.adb (Analyze_Formal_Package_Instantiation): Collect formals
1152 that are not defaulted and are thus not visible within the current
1153 instance.
1154 (Check_Formal_Packages): Reset visibility of formals of a formal
1155 package that are not defaulted, on exit from current instance.
1156
1157 2018-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1158
1159 * sem_prag.adb (Analyze_Input_Output): Emit an error when a non-null,
1160 non-'Result output appears in the output list of a function.
1161
1162 2018-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1163
1164 * exp_attr.adb (Build_Array_VS_Func): Reimplemented.
1165 (Build_Record_VS_Func): Reimplemented.
1166 (Expand_N_Attribute): Reimplement the handling of attribute
1167 'Valid_Scalars.
1168 * sem_attr.adb (Analyze_Attribute): Reimplement the handling of
1169 attribute 'Valid_Scalars.
1170 * sem_util.adb (Scalar_Part_Present): Reimplemented.
1171 (Validated_View): New routine.
1172 * sem_util.ads (Scalar_Part_Present): Update the parameter profile and
1173 comment on usage.
1174 (Validated_View): New routine.
1175 * doc/gnat_rm/implementation_defined_attributes.rst: Update the
1176 documentation of attribute 'Valid_Scalars.
1177 * gnat_rm.texi: Regenerate.
1178
1179 2018-05-22 Bob Duff <duff@adacore.com>
1180
1181 * binde.adb: (Choose): Ignore a pragma Elaborate_Body that appears in
1182 the spec of a SAL_Interface package.
1183
1184 2018-05-22 Ed Schonberg <schonberg@adacore.com>
1185
1186 * freeze.adb (Freeze_Entity): When analyzing delayed aspects of an
1187 entity E within a generic unit, indicate that there are no remaining
1188 delayed aspects after invoking Analyze_Aspects_At_Freeze_Point. The
1189 entity E is not frozen yet but the aspects should not be reanalyzed at
1190 the freeze point, which may be outside of the generic and may not have
1191 the proper visibility.
1192
1193 2018-05-22 Bob Duff <duff@adacore.com>
1194
1195 * doc/gnat_ugn/gnat_utility_programs.rst: Add documentation for
1196 the new --split-line-before-record, --indent-named-statements and
1197 --no-align-modes gnatpp switches.
1198
1199 2018-05-22 Ed Schonberg <schonberg@adacore.com>
1200
1201 * sem_prag.adb (Process_Compile_Time_Warning_Or_Error): Handle properly
1202 a second argument that is a constant of a given string value.
1203
1204 2018-05-22 Doug Rupp <rupp@adacore.com>
1205
1206 * sigtramp-vxworks-target.inc: Align stack to 128bits on AArch64.
1207
1208 2018-05-22 Jerome Lambourg <lambourg@adacore.com>
1209
1210 * sigtramp-qnx.c: Fix stack alignment issue in the signal trampoline.
1211
1212 2018-05-22 Ed Schonberg <schonberg@adacore.com>
1213
1214 * freeze.adb (Freeze_Fixed_Point_Type): If the first subtype has
1215 delayed aspects, analyze them now, os that the representation of the
1216 type (size, bounds) can be computed and validated.
1217
1218 2018-05-22 Olivier Hainque <hainque@adacore.com>
1219
1220 * libgnat/s-dwalin.adb (Enable_Cache): Skip symbols outside of the
1221 executable code section boundaries.
1222
1223 2018-05-22 Javier Miranda <miranda@adacore.com>
1224
1225 * locales.c: New implementation for the Ada.Locales package.
1226 * libgnat/a-locale.ads: Remove comment indicating that this is not
1227 implemented.
1228 * doc/gnat_rm/standard_library_routines.rst: Remove comment indicating
1229 that this is not implemented.
1230 * gnat_rm.texi: Regenerate.
1231
1232 2018-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1233
1234 * exp_ch5.adb, freeze.adb, pprint.adb, sem_ch4.adb, sem_res.adb: Minor
1235 reformattings.
1236
1237 2018-05-22 Justin Squirek <squirek@adacore.com>
1238
1239 * sem_ch12.adb (In_Same_Declarative_Part): Moved to sem_util.
1240 (Freeze_Subprogram_Body, Install_Body): Modify calls to
1241 In_Same_Declarative_Part.
1242 * sem_prag.adb (Analyze_Pragma-Pragma_Pure_Function): Add check to
1243 verify pragma declaration is within the same declarative list with
1244 corresponding error message.
1245 * sem_util.adb, sem_util.ads (In_Same_Declarative_Part): Moved from
1246 sem_ch12.adb and generalized to be useful outside the scope of
1247 freezing.
1248
1249 2018-05-22 Hristian Kirtchev <kirtchev@adacore.com>
1250
1251 * sem_ch6.adb (Analyze_Subprogram_Declaration): Set the proper
1252 categorization of the unit after processing the aspects in case one of
1253 its aspects is converted into a categorization pragma.
1254
1255 2018-05-21 Ed Schonberg <schonberg@adacore.com>
1256
1257 * freeze.adb (Warn_Overlay): Do not emit a wawrning on an object
1258 declaration with an explicit address clause and a type with default
1259 initialization, if the declaration carries an aspect
1260 Suppress_Initialization.
1261
1262 2018-05-21 Daniel Mercier <mercier@adacore.com>
1263
1264 * pprint.adb: Use mixed case for attribute names.
1265
1266 2018-05-21 Hristian Kirtchev <kirtchev@adacore.com>
1267
1268 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Rename the call to
1269 Analyze_Aspect_Specifications_On_Body_Or_Stub.
1270 (Analyze_Subprogram_Body_Helper): Rename the calls to
1271 Analyze_Aspect_Specifications_On_Body_Or_Stub.
1272 * sem_ch9.adb (Analyze_Entry_Body): Rename the call to
1273 Analyze_Aspect_Specifications_On_Body_Or_Stub.
1274 * sem_ch10.adb: Add with and use clause for Sem_Ch13.
1275 (Analyze_Package_Body_Stub): Add constant Id. Decorate the package stub
1276 prior to analyzing its aspects.
1277 (Analyze_Protected_Body_Stub): Add constant Id. Decorate the package
1278 stub prior to analyzing its aspects. Save and restore the configuration
1279 switches.
1280 (Analyze_Task_Body_Stub): Add constant Id. Decorate the package stub
1281 prior to analyzing its aspects.
1282 * sem_ch13.adb (Analyze_Aspect_Specifications_On_Body_Or_Stub): Renamed
1283 to Analyze_Aspects_On_Subprogram_Body_Or_Stub.
1284 * sem_ch13.ads (Analyze_Aspect_Specifications_On_Body_Or_Stub): Renamed
1285 to Analyze_Aspects_On_Subprogram_Body_Or_Stub.
1286 * sem_prag.adb: Code reformatting.
1287 (Analyze_Refined_Depends_Global_Post): Consider task body stubs.
1288
1289 2018-05-21 Jerome Lambourg <lambourg@adacore.com>
1290
1291 * gcc-interface/Makefile.in: Add g-soliop__qnx.ads to the runtime build
1292 for QNX.
1293
1294 2018-05-21 Hristian Kirtchev <kirtchev@adacore.com>
1295
1296 * exp_cg.adb: Remove with and use clause for Exp_Disp.
1297 * exp_ch9.adb: Remove with and use clause for Exp_Disp.
1298 * exp_disp.adb (Is_Predefined_Dispatching_Operation): Moved to Sem_Util.
1299 (Is_Predefined_Interface_Primitive): Moved to Sem_Util.
1300 (Is_Predefined_Internal_Operation): Moved to Sem_Util.
1301 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved to Sem_Util.
1302 (Is_Predefined_Interface_Primitive): Moved to Sem_Util.
1303 (Is_Predefined_Internal_Operation): Moved to Sem_Util.
1304 * exp_dist.adb: Remove with and use clause for Exp_Disp.
1305 * freeze.adb: Remove with and use clause for Exp_Disp.
1306 * sem_cat.adb: Remove with and use clause for Exp_Disp.
1307 * sem_ch6.adb: Remove with and use clause for Exp_Disp.
1308 * sem_ch12.adb: Remove with and use clause for Exp_Disp.
1309 * sem_elab.adb (Check_Overriding_Primitive): Do not process predefined
1310 primitives.
1311 * sem_util.adb: Remove with and use clause for Exp_Disp.
1312 (Is_Predefined_Dispatching_Operation): Moved from Exp_Disp.
1313 (Is_Predefined_Interface_Primitive): Moved from Exp_Disp.
1314 (Is_Predefined_Internal_Operation): Moved from Exp_Disp.
1315 * sem_util.ads (Is_Predefined_Dispatching_Operation): Moved from
1316 Exp_Disp.
1317 (Is_Predefined_Interface_Primitive): Moved from Exp_Disp.
1318 (Is_Predefined_Internal_Operation): Moved from Exp_Disp.
1319
1320 2018-05-21 Ed Schonberg <schonberg@adacore.com>
1321
1322 * sem_res.adb (Valid_Conversion): Improve error message on an illegal
1323 type conversion whose expression has a limited view of a type.
1324
1325 2018-05-21 Ed Schonberg <schonberg@adacore.com>
1326
1327 * exp_ch5.adb (Build_Formal_Container_Iteration): If source has
1328 explicit name for iterator loop, preserve that name in expanded
1329 construct, for possible use in exit statements.
1330
1331 2018-05-21 Javier Miranda <miranda@adacore.com>
1332
1333 * sem_ch4.adb (Analyze_Membership_Op): Avoid compiler crash when the
1334 spec of a unit has Ada 2012 membership tests with multiple choices and
1335 the unit body is not compiled under Ada 2012 mode.
1336
1337 2018-05-21 Doug Rupp <rupp@adacore.com>
1338
1339 * sigtramp-vxworks-target.inc: Set cfa_reg properly from sigcontext
1340 pregs.
1341 (CFI_COMMON_REGS): Restore LR jic probed from prologue.
1342 (REGNO_PC_OFFSET): Change to correct value for Aarch64.
1343
1344 2018-05-21 Jose Ruiz <ruiz@adacore.com>
1345
1346 * doc/gnat_ugn/gnat_utility_programs.rst, exp_attr.adb,
1347 libgnarl/s-tassta.adb: Minor typo fixes
1348
1349 2018-05-21 Ed Schonberg <schonberg@adacore.com>
1350
1351 * sem_ch4.adb (Analyze_One_Call): Recognize complex cases where an
1352 indexed call originally in prefix forn is itself the prefix of a
1353 further call.
1354
1355 2018-05-21 Piotr Trojanek <trojanek@adacore.com>
1356
1357 * sem_eval.adb (Is_Null_Range): Clarify access to the full view of a
1358 type.
1359 (Not_Null_Range): Same as above.
1360
1361 2018-05-21 Hristian Kirtchev <kirtchev@adacore.com>
1362
1363 * exp_ch3.adb: Minor reformatting.
1364 * exp_ch6.adb: Likewise.
1365 * freeze.adb: Likewise.
1366 * inline.adb: Likewise.
1367 * sem_util.adb: Likewise.
1368
1369 2018-05-21 Yannick Moy <moy@adacore.com>
1370
1371 * inline.adb (Expand_Inlined_Call.Process_Formals): Use a type
1372 conversion instead of an unchecked type conversion when inlining a
1373 return statement, unless type qualification is required (for character
1374 and string literal) or no check can result from the conversion (for
1375 access types).
1376 * opt.ads: Update comment.
1377
1378 2018-05-21 Hristian Kirtchev <kirtchev@adacore.com>
1379
1380 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Install the elaboration
1381 model of the compilation unit spec, if any.
1382 * sem_ch7.adb (Analyze_Package_Body_Helper): Install the elaboration
1383 model of the compilation unit spec, if any.
1384 * sem_ch10.adb (Analyze_Subunit): Install the elaboration model of the
1385 parent compilation unit spec, if any.
1386 * sem_elab.adb (Check_Elaboration_Scenarios): Restore the elaboration
1387 model of the main unit.
1388 (Is_Same_Unit): The routine now uses Unit_Entity.
1389 (Is_Subunit): Removed.
1390 (Normalize_Unit): Removed.
1391 (Unit_Entity): New routine.
1392 * sem_prag.adb (Analyze_Pragma): Reimplement the handling of pragma
1393 Elaboration_Checks. The analysis now ensures that the pragma appears at
1394 the configuration level, and on the initial declaration of a unit.
1395 Other placements are either flagged as illegal, or ignored.
1396 (Check_Duplicate_Elaboration_Checks_Pragma): New routine.
1397 (Ignore_Elaboration_Checks_Pragma): New routine.
1398 * sem_util.adb (Install_Elaboration_Model): New routine.
1399 * sem_util.ads (Install_Elaboration_Model): New routine.
1400 * doc/gnat_rm/implementation_defined_pragmas.rst: Update the
1401 documentation of pragma Elaboration_Checks.
1402 * gnat_rm.texi: Regenerate.
1403
1404 2018-05-21 Olivier Hainque <hainque@adacore.com>
1405
1406 * libgnat/s-trasym__dwarf.adb (Executable_Name): Return argv[0] instead
1407 of empty string when argv[0] couldn't be found on PATH.
1408 (Enable_Cache): Raise Program_Error instead of attempting a null
1409 pointer dereference when the Exec_Module initialization failed.
1410
1411 2018-05-21 Piotr Trojanek <trojanek@adacore.com>
1412
1413 * libgnarl/a-reatim.ads (Clock_Time): Remove External aspect.
1414 * libgnarl/a-taside.ads (Tasking_State): Likewise.
1415 * libgnat/a-calend.ads (Clock_Time): Likewise.
1416
1417 2018-05-21 Yannick Moy <moy@adacore.com>
1418
1419 * sem_ch6.adb (Analyze_Procedure_Call): Refine test to recognize prefix
1420 call notation in inlined call in GNATprove mode.
1421
1422 2018-05-21 Hristian Kirtchev <kirtchev@adacore.com>
1423
1424 * einfo.adb (Is_External_State): An abstract state is also external
1425 when it is declared with option "synchronous".
1426 * einfo.ads: Update the documentation of synthesized attribute
1427 Is_External_State.
1428 * sem_util.adb (Find_Simple_Properties): New routine.
1429 (Is_Enabled_External_Property): New routine.
1430 (State_Has_Enabled_Property): Reimplemented. The two flavors of option
1431 External have precedence over option Synchronous when determining
1432 whether a property is in effect.
1433
1434 2018-05-21 Yannick Moy <moy@adacore.com>
1435
1436 * sem_eval.adb (Static_Length): Take into account case of variable of
1437 subtype string literal.
1438
1439 2018-05-21 Olivier Hainque <hainque@adacore.com>
1440
1441 * libgnat/s-objrea.ads (Get_Memory_Bounds): Rename as Get_Xcode_Bounds.
1442 (Object_Section): Rename Flag_Alloc component as Flag_Xcode.
1443 * libgnat/s-objrea.adb (Get_Xcode_Bounds): Adjust to new subprogram and
1444 component name.
1445 (Get_Section, ELF case): Set Flag_Xcode from SHF_EXECINSTR.
1446 * libgnat/s-dwalin.adb (Open): Adjust to the Get_Memory_Bounds name
1447 change.
1448
1449 2018-05-21 Olivier Hainque <hainque@adacore.com>
1450
1451 * libgnat/s-dwalin.ads (Dwarf_Context): Change type of Load_Address to
1452 Address, and type of Low, High to Storage_Offset.
1453 (Low): Rename as Low_Address and convey that the return value is a
1454 runtime reference accounting for a load address.
1455 * libgnat/s-dwalin.adb (Read_Aranges_Entry): Adjust to the
1456 address/offset type changes.
1457 (Aranges_Lookup): Likewise.
1458 (Symbolic_Address): Likewise.
1459 (Symbolic_Traceback): Likewise.
1460 (Dump_Cache): Likewise.
1461 (Is_Inside): Likewise.
1462 (Open): Likewise.
1463 (Set_Load_Address): Likewise.
1464 (Low_Address): Likewise, and account for C.Load_Address.
1465 * libgnat/s-trasym__dwarf.adb (Lt): Use Low_Address instead of Low.
1466 (Multi_Module_Symbolic_Traceback): Compare address in traceback
1467 with module Low_Address instead of Low.
1468
1469 2018-05-21 Olivier Hainque <hainque@adacore.com>
1470
1471 * libgnat/s-dwalin.ads (Dwarf_Context): Rename Load_Slide as
1472 Load_Address.
1473 * libgnat/s-dwalin.adb (Is_Inside): Adjust accordingly.
1474 (Set_Load_Address): Likewise.
1475 (Symbolic_Traceback): Likewise.
1476
1477 2018-05-21 Olivier Hainque <hainque@adacore.com>
1478
1479 * libgnat/s-trasym__dwarf.adb (Add_Module_To_Cache): Expect a
1480 Load_Address argument and pass it down to Init_Module.
1481 * libgnat/s-tsmona__linux.adb (Build_Cache_For_All_Modules): Pass
1482 lm.l_addr as the Load_Address to Add_Module_To_Cache.
1483
1484 2018-05-21 Piotr Trojanek <trojanek@adacore.com>
1485
1486 * einfo.adb (Has_Discriminants): Stronger assertion.
1487 (Set_Has_Discriminants): Stronger assertion.
1488 * sem_ch13.adb (Push_Scope_And_Install_Discriminants): Adapt to respect
1489 the stronger assertion on Has_Discriminant.
1490 (Uninstall_Discriminants_And_Pop_Scope): Same as above.
1491 * sem_util.adb (New_Copy_Tree): Same as above.
1492 * sem_ch7.adb (Generate_Parent_References): Prevent calls to
1493 Has_Discriminant on non-type entities that might happen when the
1494 compiled code has errors.
1495 * sem_ch3.adb (Derived_Type_Declaration): Only call
1496 Set_Has_Discriminant on type entities.
1497
1498 2018-05-21 Arnaud Charlet <charlet@adacore.com>
1499
1500 * exp_unst.adb (Unnest_Subprogram): Unnest all subprograms relevant for
1501 code generation.
1502
1503 2018-05-21 Piotr Trojanek <trojanek@adacore.com>
1504
1505 * lib.ads: Fix typo in enumeration in comment.
1506
1507 2018-05-21 Ed Schonberg <schonberg@adacore.com>
1508
1509 * sem_attr.adb (Analyze_Attribute, case Scalar_Storage_Order): The
1510 attribute reference is legal within a generic unit when the prefix is a
1511 formal private type.
1512
1513 2018-05-21 Hristian Kirtchev <kirtchev@adacore.com>
1514
1515 * exp_ch7.adb (Establish_Transient_Scope): Code cleanup. Do not
1516 delegate the secondary stack management when there is no suitable
1517 transient context, and the transient scope was intended to manage the
1518 secondary stack because this causes premature reclamation. Change the
1519 transient scope creation logic by special casing assignment statements
1520 of controlled components for type initialization procedures.
1521 (Find_Node_To_Be_Wrapped): Renamed to Find_Transient_Context. Update
1522 the comment on usage.
1523 (Find_Transient_Context): Change the initinte loop into a while loop.
1524 Iterations schemes and iterator specifications are not valid transient
1525 contexts because they rely on special processing. Assignment statements
1526 are now treated as a normal transient context, special cases are
1527 handled by the caller. Add special processing for pragma Check.
1528 (Is_OK_Construct): Removed. Its functionality has been merged in
1529 routine Find_Transient_Context.
1530 * sem_ch5.adb (Check_Call): Reimplemented. Add code to properly
1531 retrieve the subprogram being invoked. Use a more accurate predicate
1532 (Requires_Transient_Scope) to determine that the function will emply
1533 the secondary stack.
1534
1535 2018-05-21 Piotr Trojanek <trojanek@adacore.com>
1536
1537 * ada_get_targ.adb: Fix subprogram body headers.
1538 * adabkend.adb: Likewise.
1539 * checks.adb: Likewise.
1540 * exp_ch3.adb: Likewise.
1541 * exp_ch5.adb: Likewise.
1542 * exp_ch9.adb: Likewise.
1543 * exp_dist.adb: Likewise.
1544 * exp_tss.adb: Likewise.
1545 * inline.adb: Likewise.
1546 * lib-writ.adb: Likewise.
1547 * lib-xref-spark_specific.adb: Likewise.
1548 * libgnarl/s-osinte__darwin.adb: Likewise.
1549 * libgnarl/s-stusta.adb: Likewise.
1550 * libgnarl/s-taprop__solaris.adb: Likewise.
1551 * libgnarl/s-tposen.adb: Likewise.
1552 * libgnarl/s-vxwext__kernel-smp.adb: Likewise.
1553 * libgnarl/s-vxwext__kernel.adb: Likewise.
1554 * libgnat/a-btgbso.adb: Likewise.
1555 * libgnat/a-cfdlli.adb: Likewise.
1556 * libgnat/a-cfhama.adb: Likewise.
1557 * libgnat/a-cfinve.adb: Likewise.
1558 * libgnat/a-cimutr.adb: Likewise.
1559 * libgnat/a-coboho.adb: Likewise.
1560 * libgnat/a-cofove.adb: Likewise.
1561 * libgnat/a-cofuve.adb: Likewise.
1562 * libgnat/a-comutr.adb: Likewise.
1563 * libgnat/a-exexda.adb: Likewise.
1564 * libgnat/a-tags.adb: Likewise.
1565 * libgnat/a-tideau.adb: Likewise.
1566 * libgnat/a-wtdeau.adb: Likewise.
1567 * libgnat/a-ztdeau.adb: Likewise.
1568 * libgnat/g-alleve.adb: Likewise.
1569 * libgnat/s-excdeb.adb: Likewise.
1570 * libgnat/s-parint.adb: Likewise.
1571 * libgnat/s-shasto.adb: Likewise.
1572 * libgnat/s-traceb__hpux.adb: Likewise.
1573 * prepcomp.adb: Likewise.
1574 * sem_ch4.adb: Likewise.
1575 * sem_ch6.adb: Likewise.
1576 * sem_dist.adb: Likewise.
1577 * sem_prag.adb: Likewise.
1578 * sem_util.adb: Likewise.
1579 * sinfo.adb: Likewise.
1580 * switch.adb: Likewise.
1581
1582 2018-05-04 John Marino <gnugcc@marino.st>
1583
1584 PR ada/85635
1585 * link.c (BSD platforms): Add missing backslash.
1586
1587 2018-04-27 Eric Botcazou <ebotcazou@adacore.com>
1588
1589 PR ada/85540
1590 * init.c (__gnat_handle_vms_condition): Add missing parentheses.
1591
1592 2018-04-25 Eric Botcazou <ebotcazou@adacore.com>
1593
1594 PR ada/85007
1595 * gnat_ugn.texi: Regenerate.
1596
1597 2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
1598
1599 PR ada/85007
1600 * gnatlink.adb (Gnatlink): Remove handling of -b switch.
1601 * doc/gnat_ugn/building_executable_programs_with_gnat.rst (gnatlink):
1602 Remove documentation of -b switch.
1603
1604 2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
1605
1606 PR ada/85036
1607 * gnatlink.adb (Process_Args): Drop existing link switches if multiple
1608 switches are passed for --LINK.
1609
1610 2018-03-12 Eric Botcazou <ebotcazou@adacore.com>
1611
1612 PR ada/82813
1613 * gcc-interface/misc.c (gnat_post_options): Disable string overflow
1614 warnings.
1615
1616 2018-03-10 Eric Botcazou <ebotcazou@adacore.com>
1617
1618 * gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
1619 Consider only entities for objects.
1620
1621 2018-03-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
1622
1623 * gcc-interface/Makefile.in (OSCONS_CPP): Remove redundant
1624 $(GNATLIBCFLAGS).
1625 (OSCONS_EXTRACT): Add $(GNATLIBCFLAGS_FOR_C).
1626
1627 2018-03-06 Eric Botcazou <ebotcazou@adacore.com>
1628
1629 * gcc-interface/trans.c (convert_with_check): Fix typo in the condition
1630 guarding the overflow check emitted for the upper bound of a floating-
1631 point conversion.
1632
1633 2018-03-06 Eric Botcazou <ebotcazou@adacore.com>
1634
1635 * gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node.
1636
1637 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
1638
1639 * libgnat/i-cexten.ads (Float_128): New type.
1640
1641 2018-02-02 Eric Botcazou <ebotcazou@adacore.com>
1642
1643 * gcc-interface/decl.c (array_type_has_nonaliased_component): Return
1644 false if the component type is a pointer.
1645
1646 2018-01-11 Gary Dismukes <dismukes@adacore.com>
1647
1648 * exp_ch3.adb (Default_Initialize_Object): Call New_Copy_Tree on the
1649 result of Get_Simple_Init_Value and pass the source location of the
1650 object declaration's object_definition.
1651
1652 2018-01-11 Ed Schonberg <schonberg@adacore.com>
1653
1654 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Handle
1655 properly object declarations with initializations that are
1656 build-in-place function calls, when there is an address specification,
1657 either as an aspect specification or an explicit attribute
1658 specification clause, for the initialized object.
1659 * freeze.adb (Check_Address_Clause): Do not remove side-effects from
1660 initial expressions in the case of a build-in-place call.
1661
1662 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
1663
1664 * sem_eval.adb (Is_Null_Range): Retrieve the full view when called on a
1665 private (sub)type; refactor to avoid early return statement.
1666 (Not_Null_Range): Same as above.
1667
1668 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1669
1670 * freeze.adb (Freeze_Entity): Ensure that a Ghost type is not
1671 concurrent, nor effectively volatile.
1672 * ghost.adb (Check_Ghost_Type): New routine.
1673 * ghost.ads (Check_Ghost_Type): New routine.
1674 * sem_util.adb (Is_Declaration): Reimplemented. The routine can now
1675 consider specific subsets of declarations.
1676 (Is_Declaration_Other_Than_Renaming): Removed. Its functionality is
1677 replicated by Is_Declaration.
1678 * sem_util.ads (Is_Declaration): New parameter profile. Update the
1679 comment on usage.
1680 (Is_Declaration_Other_Than_Renaming): Removed.
1681
1682 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1683
1684 * sem_ch5.adb (Analyze_Assignment): Assignments to variables that act
1685 as Part_Of consituents of single protected types are illegal when they
1686 take place inside a protected function.
1687 (Diagnose_Non_Variable_Lhs): Use Within_Function to check for an
1688 enclosing function.
1689 (Is_Protected_Part_Of_Constituent): New routine.
1690 (Within_Function): New routine.
1691
1692 2018-01-11 Arnaud Charlet <charlet@adacore.com>
1693
1694 Bump copyright notices to 2018.
1695
1696 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1697
1698 * binde.adb, par-ch6.adb, par-ch9.adb, sem_ch12.adb, sem_ch13.adb:
1699 Minor reformatting.
1700
1701 2018-01-11 Justin Squirek <squirek@adacore.com>
1702
1703 * par-ch6.adb (Scan_Body_Or_Expression_Function): Add additional check
1704 to make sure a given expression function is properly parenthesized.
1705
1706 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1707
1708 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Check the
1709 categorization of a subprogram body which does not complete a previous
1710 declaration.
1711
1712 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1713
1714 * sem_ch10.adb (Check_Private_Child_Unit): Ensure that the enclosing
1715 scope of package Ada is Standard.
1716
1717 2018-01-11 Ed Schonberg <schonberg@adacore.com>
1718
1719 * sem_ch13.adb (Replace_Type_Ref): Handle properly reference to a
1720 subcomponent of the current entity when building the body for a dynamic
1721 predicate function for a record with composite subcomponents.
1722
1723 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1724
1725 * exp_aggr.adb (Convert_Aggr_In_Object_Decl): Update the call to
1726 Establish_Transient_Scope.
1727 (Convert_To_Assignments): Update the call to Establish_Transient_Scope.
1728 (Expand_Array_Aggregate): Update the call to Establish_Transient_Scope.
1729 * exp_ch6.adb (Expand_Call_Helper): Update the call to
1730 Establish_Transient_Scope.
1731 (Make_Build_In_Place_Call_In_Object_Declaration): Update the call to
1732 Establish_Transient_Scope.
1733 * exp_ch7.adb (Establish_Transient_Scope): Restructured. Delegate the
1734 management of the secondary stack to an enclosing scope if there is no
1735 suitable construct to wrap, and the transient scope was intended to
1736 manage the secondary stack.
1737 (Find_Node_To_Be_Wrapped): Restructured. A case_statement_alternative
1738 is a valid boundary for a transient expression which comes from the
1739 statements of the alternative, otherwise alternatives cannot be
1740 wrapped. Assignments of controlled objects which have controlled
1741 actions suppressed now stop the traversal as there is no point in
1742 looking for an enclosing construct. Add several N_xxx_Body choices to
1743 the termination conditions for completeness.
1744 * exp_ch7.ads (Establish_Transient_Scope): Update the parameter profile
1745 and the associated comment on usage.
1746 * exp_smem.adb (Add_Shared_Var_Lock_Procs): Update the call to
1747 Establish_Transient_Scope.
1748 (Add_Write_After): Update the call to Establish_Transient_Scope.
1749 * sem_res.adb (Check_Initialization_Call): Removed.
1750 (Resolve_Actuals): Account for additional cases where finalization
1751 actions are required by utilizing predicate Needs_Finalization rather
1752 than Is_Controlled.
1753 (Resolve_Call): Type initialization procedures can now utilize
1754 transient scopes to manage the secondary stack, thus preventing leaks
1755 during initialization. Remove the previous kludgy algorithm which
1756 attempts to manage the secondary stack at the object creation site.
1757
1758 2018-01-11 Jerome Lambourg <lambourg@adacore.com>
1759
1760 * libgnat/g-soliop__qnx.ads: New.
1761 * adaint.c, adaint.h, cstreams.c, s-oscons-tmplt.c, sysdep.c: Update
1762 for QNX.
1763
1764 2018-01-11 Bob Duff <duff@adacore.com>
1765
1766 * par-ch9.adb (P_Protected_Operation_Declaration_Opt): Give an error if
1767 a null procedure occurs in a protected definition.
1768
1769 2018-01-11 Bob Duff <duff@adacore.com>
1770
1771 * binderr.ads, namet.ads: Minor reformatting.
1772
1773 2018-01-11 Bob Duff <duff@adacore.com>
1774
1775 * doc/gnat_ugn/gnat_utility_programs.rst: Improve documentation of
1776 xml2gnat.
1777
1778 2018-01-11 Bob Duff <duff@adacore.com>
1779
1780 * binde.adb (Force_Elab_Order): Give an error if there are duplicate
1781 unit names.
1782
1783 2018-01-11 Ed Schonberg <schonberg@adacore.com>
1784
1785 * sem_ch6.adb (Freeze_Expr_Types): If an access value is the
1786 controlling argument of a dispatching call. freeze the corresponding
1787 designated type.
1788
1789 2018-01-11 Ben Brosgol <brosgol@adacore.com>
1790
1791 * doc/Makefile: Add Sphinx option -W to treat warnings as errors.
1792
1793 2018-01-11 Ben Brosgol <brosgol@adacore.com>
1794
1795 * doc/gnat_rm/implementation_defined_aspects.rst: Minor type/wording
1796 corrections.
1797 * gnat_rm.texi: Regenerate.
1798
1799 2018-01-11 Ed Schonberg <schonberg@adacore.com>
1800
1801 * sem_ch12.adb (Check_Fixed_Point_Type): Do not apply check if the
1802 formsl type corresponding to the actual fixed point type is private,
1803 because in this case there can be no suspicious arithmetic operations
1804 in the generic unless they reference a formal subprogram. Clarify
1805 warning.
1806
1807 2018-01-11 Javier Miranda <miranda@adacore.com>
1808
1809 * exp_util.adb (Remove_Side_Effects): No action done for functions
1810 returning class-wide types since it requires generating code using
1811 'reference and the CCG target has no secondary stack.
1812 * gnat1drv.adb: Disable building static dispatch tables when generating
1813 C code.
1814
1815 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
1816
1817 * libgnat/a-direio.ads, libgnat/a-sequio.ads, libgnat/a-ststio.ads,
1818 libgnat/a-textio.ads, libgnat/a-witeio.ads, libgnat/a-ztexio.ads
1819 (File_Type): Add Default_Initial_Condition aspect.
1820
1821 2018-01-11 Pascal Obry <obry@adacore.com>
1822
1823 * libgnat/s-os_lib.adb (Normalize_Pathname): New implementation.
1824
1825 2018-01-11 Bob Duff <duff@adacore.com>
1826
1827 * doc/gnat_ugn/gnat_utility_programs.rst: Rewrite gnatpp documentation
1828 to match what the Libadalang-based version does.
1829 * doc/gnat_ugn/about_this_guide.rst: Update reference.
1830
1831 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1832
1833 * sem_res.adb (Uses_SS): A controlled type requires the secondary stack
1834 if it contains at least one component declaration employing a function
1835 call returning on the secondary stack.
1836
1837 2018-01-11 Yannick Moy <moy@adacore.com>
1838
1839 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
1840 Update description of restriction SPARK_05 with SPARK 2014.
1841 * gnat_rm.texi: Regenerate.
1842
1843 2018-01-11 Vasiliy Fofanov <fofanov@adacore.com>
1844
1845 * doc/gnat_ugn/gnat_utility_programs.rst: Fix layout.
1846
1847 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1848
1849 * exp_aggr.adb, exp_ch9.adb, exp_util.adb, sem_aggr.adb, sem_ch3.adb,
1850 sem_res.adb, sem_util.adb: Minor reformatting.
1851
1852 2018-01-11 Ed Schonberg <schonberg@adacore.com>
1853
1854 * sem_prag.adb (Analyze_Pragma, case Predicate): Indicate that the type
1855 has a delayed aspect which must be processed at the point the type is
1856 frozen. This mimics what is done when the predicate is provided by a
1857 source aspect.
1858
1859 2018-01-11 Doug Rupp <rupp@adacore.com>
1860
1861 * init.c (vxworks): Add macro checks for __aarch64__.
1862
1863 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1864
1865 * exp_util.adb (Add_Failure_Expression): New routine.
1866 (Make_Predicate_Check): Reimplement the handling of Predicate_Failure.
1867 * sem_util.adb (Is_Current_Instance): Code cleanup.
1868
1869 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
1870
1871 * libgnat/s-parame*.adb, libgnat/s-parame*.ads: Remove unneeded
1872 Default_Sec_Stack_Size.
1873 * libgnat/s-secsta.adb (SS_Allocate): Handle the fixed secondary stack
1874 limit check so that the integer index does not overflow. Check the
1875 dynamic stack allocation does not cause the secondary stack pointer to
1876 overflow.
1877 (SS_Info): Align colons.
1878 (SS_Init): Cover the case when bootstraping with an old compiler that
1879 does not set Default_SS_Size.
1880
1881 2018-01-11 Ed Schonberg <schonberg@adacore.com>
1882
1883 * sem_ch3.adb (Add_Internal_Interface_Entities): When checking the
1884 legality of an inherited operation that may require overriding, ignore
1885 primitive_wrappers that correspond to explicit operations that override
1886 an interface primitive.
1887 * exp_util.adb (Build_Class_Wide_Expression, Replace_Entity): If the
1888 operation to which the class-wide expression applies is a protected op.
1889 with a primitive_wrapper, verify that the updated inherited expression
1890 does not contain an internal call to a protected function. This
1891 completes the implementation of AI12-0166.
1892
1893 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1894
1895 * ali.adb: Document the remaining letters available for ALI lines.
1896 (Scan_ALI): A with clause is internal when it is encoded on a 'Z' line.
1897 * ali.ads: Update type With_Record. Field
1898 Implicit_With_From_Instantiation is no longer in use. Add field
1899 Implicit_With.
1900 * csinfo.adb (CSinfo): Remove the setup for attribute
1901 Implicit_With_From_Instantiation.
1902 * lib-writ.adb (Collect_Withs): Correct the logic which marks a unit as
1903 either implicitly or explicitly withed.
1904 (Is_Implicit_With_Clause): New routine.
1905 (Write_ALI): Rename array Implicit_With to Has_Implicit_With to avoid
1906 confusion with the with clause attribute by the same name.
1907 (Write_With_Lines): Update the emission of 'W', 'Y', and 'Z' headers.
1908 * rtsfind.adb (Maybe_Add_With): Code cleanup.
1909 * sem_ch8.adb (Present_System_Aux): Code cleanup.
1910 * sem_ch10.adb (Expand_With_Clause): Mark the with clause as generated
1911 for a parent unit.
1912 (Implicit_With_On_Parent): Mark the with clause as generated for a
1913 parent unit.
1914 * sem_ch12.adb (Inherit_Context): With clauses inherited by an
1915 instantiation are no longer marked as Implicit_With_From_Instantiation
1916 because they are already marked as implicit.
1917 * sem_elab.adb (Ensure_Prior_Elaboration_Static): Remove the kludge
1918 which marks implicit with clauses as related to an instantiation.
1919 * sinfo.adb (Implicit_With_From_Instantiation): Removed.
1920 (Parent_With): New routine.
1921 (Set_Implicit_With_From_Instantiation): Removed.
1922 (Set_Parent_With): New routine.
1923 * sinfo.ads: Update the documentation of attribute Implicit_With.
1924 Remove attribute Implicit_With_From_Instantiation along with
1925 occurrences in nodes. Add attribute Parent_With along with occurrences
1926 in nodes.
1927 (Implicit_With_From_Instantiation): Removed along with pragma Inline.
1928 (Parent_With): New routine along with pragma Inline.
1929 (Set_Implicit_With_From_Instantiation): Removed along with pragma Inline.
1930 (Set_Parent_With): New routine along with pragma Inline.
1931
1932 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1933
1934 * sem_util.adb (Find_Enclosing_Scope): Return the unique defining
1935 entity when the enclosing construct is a body.
1936
1937 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
1938
1939 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Simplified
1940 Secondary_Stack_Size handling as a pragma is now generated for the
1941 corresponding aspect instead of an attribute. Pragma expression is
1942 relocated instead of evaluated. Discriminant of the corresponding
1943 record type is referenced rather than the type discriminant.
1944 (Create_Secondary_Stack_For_Task, Make_Task_Create_Call): Update
1945 Secondary_Stack_Size rep item checks to only look for the pragma rep.
1946 * sem_ch13.adb (Analyze_One_Aspect): Transform
1947 Aspect_Secondary_Stack_Size into a pragma instead of an attribute
1948 because the attribute does not have visibility on a task type's
1949 discriminants when the type's definition is expanded.
1950 (Analyze_Attribute_Definition_Clause): Remove handling of
1951 Attribute_Secondary_Stack_Size.
1952 * snames.adb-tmpl, snames.ads-tmpl: Remove
1953 Attribute_Secondary_Stack_Size, no longer used.
1954
1955 2018-01-11 Justin Squirek <squirek@adacore.com>
1956
1957 * sem_ch8.adb: Minor comment fix.
1958
1959 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1960
1961 * exp_ch4.adb (Process_Action): Do not abandon the inspection of an
1962 individual action because the action may denote a complex expression,
1963 such as a case statement, which in turn may contain additional
1964 transient objects.
1965
1966 2018-01-11 Ed Schonberg <schonberg@adacore.com>
1967
1968 * sem_aggr.adb (Resolve_Iterated_Component_Association): Perform
1969 analysis on a copy of the expression with a copy of the index variable,
1970 because full expansion will rewrite construct into a loop with the
1971 original loop variable.
1972 * exp_aggr.adb (Gen_Assign): Defer analysis and resolution if the
1973 expression is an iterated component association. Full analysis takes
1974 place when construct is rewritten as a loop.
1975 (In_Place_Assign_OK, Safe_Component): An iterated_component_association
1976 is not safe for in-place assignment.
1977 * sem_util.adb (Remove_Entity): Handle properly the case of an isolated
1978 entity with no homonym and no other entity in the scope.
1979
1980 2018-01-11 Justin Squirek <squirek@adacore.com>
1981
1982 * sem_prag.adb (Analyze_Pragma:Pragma_Loop_Variant): Modify error
1983 message to be printed on the pragma argument identifier.
1984
1985 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
1986
1987 * exp_util.adb (Build_Invariant_Procedure_Declaration): Set the last
1988 entity of the generated invariant procedure in order to construct a
1989 proper entity chain.
1990
1991 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
1992
1993 * sem_ch13.adb (Build_Predicate_Functions): Fix minor issues in
1994 comment.
1995
1996 2018-01-11 Arnaud Charlet <charlet@adacore.com>
1997
1998 * einfo.ads, einfo.adb (Activation_Record_Component,
1999 Set_Activation_Record_Component, Set_Is_Uplevel_Referenced_Entity):
2000 Allow E_Discriminant.
2001
2002 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
2003
2004 * gcc-interface/decl.c (gnat_to_gnu_component_type): Apply the check
2005 for atomic access once the component size is taken into account and
2006 also do it if the component type is Atomic or Volatile_Full_Access.
2007
2008 2018-01-04 Eric Botcazou <ebotcazou@adacore.com>
2009
2010 * gnatvsn.ads: Bump copyright year.
2011
2012 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2013 Alan Hayward <alan.hayward@arm.com>
2014 David Sherwood <david.sherwood@arm.com>
2015
2016 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_BITSIZE
2017 as polynomial.
2018
2019 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2020 Alan Hayward <alan.hayward@arm.com>
2021 David Sherwood <david.sherwood@arm.com>
2022
2023 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_PRECISION
2024 as polynomial.
2025
2026 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2027 Alan Hayward <alan.hayward@arm.com>
2028 David Sherwood <david.sherwood@arm.com>
2029
2030 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
2031 polynomial TYPE_VECTOR_SUBPARTS.
2032
2033 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
2034 Alan Hayward <alan.hayward@arm.com>
2035 David Sherwood <david.sherwood@arm.com>
2036
2037 * gcc-interface/misc.c (enumerate_modes): Handle polynomial
2038 GET_MODE_NUNITS.
2039
2040 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2041
2042 Update copyright years.
2043
2044 * gnat_ugn.texi: Bump @copying's copyright year.
2045 * gnat_rm.texi: Likewise.
2046 \f
2047 Copyright (C) 2018 Free Software Foundation, Inc.
2048
2049 Copying and distribution of this file, with or without modification,
2050 are permitted in any medium without royalty provided the copyright
2051 notice and this notice are preserved.