1 2018-04-04 Piotr Trojanek <trojanek@adacore.com>
3 * ada_get_targ.adb: Fix subprogram body headers.
4 * adabkend.adb: Likewise.
5 * checks.adb: Likewise.
6 * exp_ch3.adb: Likewise.
7 * exp_ch5.adb: Likewise.
8 * exp_ch9.adb: Likewise.
9 * exp_dist.adb: Likewise.
10 * exp_tss.adb: Likewise.
11 * inline.adb: Likewise.
12 * lib-writ.adb: Likewise.
13 * lib-xref-spark_specific.adb: Likewise.
14 * libgnarl/s-osinte__darwin.adb: Likewise.
15 * libgnarl/s-stusta.adb: Likewise.
16 * libgnarl/s-taprop__solaris.adb: Likewise.
17 * libgnarl/s-tposen.adb: Likewise.
18 * libgnarl/s-vxwext__kernel-smp.adb: Likewise.
19 * libgnarl/s-vxwext__kernel.adb: Likewise.
20 * libgnat/a-btgbso.adb: Likewise.
21 * libgnat/a-cfdlli.adb: Likewise.
22 * libgnat/a-cfhama.adb: Likewise.
23 * libgnat/a-cfinve.adb: Likewise.
24 * libgnat/a-cimutr.adb: Likewise.
25 * libgnat/a-coboho.adb: Likewise.
26 * libgnat/a-cofove.adb: Likewise.
27 * libgnat/a-cofuve.adb: Likewise.
28 * libgnat/a-comutr.adb: Likewise.
29 * libgnat/a-exexda.adb: Likewise.
30 * libgnat/a-tags.adb: Likewise.
31 * libgnat/a-tideau.adb: Likewise.
32 * libgnat/a-wtdeau.adb: Likewise.
33 * libgnat/a-ztdeau.adb: Likewise.
34 * libgnat/g-alleve.adb: Likewise.
35 * libgnat/s-excdeb.adb: Likewise.
36 * libgnat/s-parint.adb: Likewise.
37 * libgnat/s-shasto.adb: Likewise.
38 * libgnat/s-traceb__hpux.adb: Likewise.
39 * prepcomp.adb: Likewise.
40 * sem_ch4.adb: Likewise.
41 * sem_ch6.adb: Likewise.
42 * sem_dist.adb: Likewise.
43 * sem_prag.adb: Likewise.
44 * sem_util.adb: Likewise.
45 * sinfo.adb: Likewise.
46 * switch.adb: Likewise.
48 2018-05-04 John Marino <gnugcc@marino.st>
51 * link.c (BSD platforms): Add missing backslash.
53 2018-04-27 Eric Botcazou <ebotcazou@adacore.com>
56 * init.c (__gnat_handle_vms_condition): Add missing parentheses.
58 2018-04-25 Eric Botcazou <ebotcazou@adacore.com>
61 * gnat_ugn.texi: Regenerate.
63 2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
66 * gnatlink.adb (Gnatlink): Remove handling of -b switch.
67 * doc/gnat_ugn/building_executable_programs_with_gnat.rst (gnatlink):
68 Remove documentation of -b switch.
70 2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
73 * gnatlink.adb (Process_Args): Drop existing link switches if multiple
74 switches are passed for --LINK.
76 2018-03-12 Eric Botcazou <ebotcazou@adacore.com>
79 * gcc-interface/misc.c (gnat_post_options): Disable string overflow
82 2018-03-10 Eric Botcazou <ebotcazou@adacore.com>
84 * gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
85 Consider only entities for objects.
87 2018-03-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
89 * gcc-interface/Makefile.in (OSCONS_CPP): Remove redundant
91 (OSCONS_EXTRACT): Add $(GNATLIBCFLAGS_FOR_C).
93 2018-03-06 Eric Botcazou <ebotcazou@adacore.com>
95 * gcc-interface/trans.c (convert_with_check): Fix typo in the condition
96 guarding the overflow check emitted for the upper bound of a floating-
99 2018-03-06 Eric Botcazou <ebotcazou@adacore.com>
101 * gcc-interface/utils.c (def_builtin_1): Bail out on error_mark_node.
103 2018-02-28 Eric Botcazou <ebotcazou@adacore.com>
105 * libgnat/i-cexten.ads (Float_128): New type.
107 2018-02-02 Eric Botcazou <ebotcazou@adacore.com>
109 * gcc-interface/decl.c (array_type_has_nonaliased_component): Return
110 false if the component type is a pointer.
112 2018-01-11 Gary Dismukes <dismukes@adacore.com>
114 * exp_ch3.adb (Default_Initialize_Object): Call New_Copy_Tree on the
115 result of Get_Simple_Init_Value and pass the source location of the
116 object declaration's object_definition.
118 2018-01-11 Ed Schonberg <schonberg@adacore.com>
120 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Handle
121 properly object declarations with initializations that are
122 build-in-place function calls, when there is an address specification,
123 either as an aspect specification or an explicit attribute
124 specification clause, for the initialized object.
125 * freeze.adb (Check_Address_Clause): Do not remove side-effects from
126 initial expressions in the case of a build-in-place call.
128 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
130 * sem_eval.adb (Is_Null_Range): Retrieve the full view when called on a
131 private (sub)type; refactor to avoid early return statement.
132 (Not_Null_Range): Same as above.
134 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
136 * freeze.adb (Freeze_Entity): Ensure that a Ghost type is not
137 concurrent, nor effectively volatile.
138 * ghost.adb (Check_Ghost_Type): New routine.
139 * ghost.ads (Check_Ghost_Type): New routine.
140 * sem_util.adb (Is_Declaration): Reimplemented. The routine can now
141 consider specific subsets of declarations.
142 (Is_Declaration_Other_Than_Renaming): Removed. Its functionality is
143 replicated by Is_Declaration.
144 * sem_util.ads (Is_Declaration): New parameter profile. Update the
146 (Is_Declaration_Other_Than_Renaming): Removed.
148 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
150 * sem_ch5.adb (Analyze_Assignment): Assignments to variables that act
151 as Part_Of consituents of single protected types are illegal when they
152 take place inside a protected function.
153 (Diagnose_Non_Variable_Lhs): Use Within_Function to check for an
155 (Is_Protected_Part_Of_Constituent): New routine.
156 (Within_Function): New routine.
158 2018-01-11 Arnaud Charlet <charlet@adacore.com>
160 Bump copyright notices to 2018.
162 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
164 * binde.adb, par-ch6.adb, par-ch9.adb, sem_ch12.adb, sem_ch13.adb:
167 2018-01-11 Justin Squirek <squirek@adacore.com>
169 * par-ch6.adb (Scan_Body_Or_Expression_Function): Add additional check
170 to make sure a given expression function is properly parenthesized.
172 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
174 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Check the
175 categorization of a subprogram body which does not complete a previous
178 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
180 * sem_ch10.adb (Check_Private_Child_Unit): Ensure that the enclosing
181 scope of package Ada is Standard.
183 2018-01-11 Ed Schonberg <schonberg@adacore.com>
185 * sem_ch13.adb (Replace_Type_Ref): Handle properly reference to a
186 subcomponent of the current entity when building the body for a dynamic
187 predicate function for a record with composite subcomponents.
189 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
191 * exp_aggr.adb (Convert_Aggr_In_Object_Decl): Update the call to
192 Establish_Transient_Scope.
193 (Convert_To_Assignments): Update the call to Establish_Transient_Scope.
194 (Expand_Array_Aggregate): Update the call to Establish_Transient_Scope.
195 * exp_ch6.adb (Expand_Call_Helper): Update the call to
196 Establish_Transient_Scope.
197 (Make_Build_In_Place_Call_In_Object_Declaration): Update the call to
198 Establish_Transient_Scope.
199 * exp_ch7.adb (Establish_Transient_Scope): Restructured. Delegate the
200 management of the secondary stack to an enclosing scope if there is no
201 suitable construct to wrap, and the transient scope was intended to
202 manage the secondary stack.
203 (Find_Node_To_Be_Wrapped): Restructured. A case_statement_alternative
204 is a valid boundary for a transient expression which comes from the
205 statements of the alternative, otherwise alternatives cannot be
206 wrapped. Assignments of controlled objects which have controlled
207 actions suppressed now stop the traversal as there is no point in
208 looking for an enclosing construct. Add several N_xxx_Body choices to
209 the termination conditions for completeness.
210 * exp_ch7.ads (Establish_Transient_Scope): Update the parameter profile
211 and the associated comment on usage.
212 * exp_smem.adb (Add_Shared_Var_Lock_Procs): Update the call to
213 Establish_Transient_Scope.
214 (Add_Write_After): Update the call to Establish_Transient_Scope.
215 * sem_res.adb (Check_Initialization_Call): Removed.
216 (Resolve_Actuals): Account for additional cases where finalization
217 actions are required by utilizing predicate Needs_Finalization rather
219 (Resolve_Call): Type initialization procedures can now utilize
220 transient scopes to manage the secondary stack, thus preventing leaks
221 during initialization. Remove the previous kludgy algorithm which
222 attempts to manage the secondary stack at the object creation site.
224 2018-01-11 Jerome Lambourg <lambourg@adacore.com>
226 * libgnat/g-soliop__qnx.ads: New.
227 * adaint.c, adaint.h, cstreams.c, s-oscons-tmplt.c, sysdep.c: Update
230 2018-01-11 Bob Duff <duff@adacore.com>
232 * par-ch9.adb (P_Protected_Operation_Declaration_Opt): Give an error if
233 a null procedure occurs in a protected definition.
235 2018-01-11 Bob Duff <duff@adacore.com>
237 * binderr.ads, namet.ads: Minor reformatting.
239 2018-01-11 Bob Duff <duff@adacore.com>
241 * doc/gnat_ugn/gnat_utility_programs.rst: Improve documentation of
244 2018-01-11 Bob Duff <duff@adacore.com>
246 * binde.adb (Force_Elab_Order): Give an error if there are duplicate
249 2018-01-11 Ed Schonberg <schonberg@adacore.com>
251 * sem_ch6.adb (Freeze_Expr_Types): If an access value is the
252 controlling argument of a dispatching call. freeze the corresponding
255 2018-01-11 Ben Brosgol <brosgol@adacore.com>
257 * doc/Makefile: Add Sphinx option -W to treat warnings as errors.
259 2018-01-11 Ben Brosgol <brosgol@adacore.com>
261 * doc/gnat_rm/implementation_defined_aspects.rst: Minor type/wording
263 * gnat_rm.texi: Regenerate.
265 2018-01-11 Ed Schonberg <schonberg@adacore.com>
267 * sem_ch12.adb (Check_Fixed_Point_Type): Do not apply check if the
268 formsl type corresponding to the actual fixed point type is private,
269 because in this case there can be no suspicious arithmetic operations
270 in the generic unless they reference a formal subprogram. Clarify
273 2018-01-11 Javier Miranda <miranda@adacore.com>
275 * exp_util.adb (Remove_Side_Effects): No action done for functions
276 returning class-wide types since it requires generating code using
277 'reference and the CCG target has no secondary stack.
278 * gnat1drv.adb: Disable building static dispatch tables when generating
281 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
283 * libgnat/a-direio.ads, libgnat/a-sequio.ads, libgnat/a-ststio.ads,
284 libgnat/a-textio.ads, libgnat/a-witeio.ads, libgnat/a-ztexio.ads
285 (File_Type): Add Default_Initial_Condition aspect.
287 2018-01-11 Pascal Obry <obry@adacore.com>
289 * libgnat/s-os_lib.adb (Normalize_Pathname): New implementation.
291 2018-01-11 Bob Duff <duff@adacore.com>
293 * doc/gnat_ugn/gnat_utility_programs.rst: Rewrite gnatpp documentation
294 to match what the Libadalang-based version does.
295 * doc/gnat_ugn/about_this_guide.rst: Update reference.
297 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
299 * sem_res.adb (Uses_SS): A controlled type requires the secondary stack
300 if it contains at least one component declaration employing a function
301 call returning on the secondary stack.
303 2018-01-11 Yannick Moy <moy@adacore.com>
305 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
306 Update description of restriction SPARK_05 with SPARK 2014.
307 * gnat_rm.texi: Regenerate.
309 2018-01-11 Vasiliy Fofanov <fofanov@adacore.com>
311 * doc/gnat_ugn/gnat_utility_programs.rst: Fix layout.
313 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
315 * exp_aggr.adb, exp_ch9.adb, exp_util.adb, sem_aggr.adb, sem_ch3.adb,
316 sem_res.adb, sem_util.adb: Minor reformatting.
318 2018-01-11 Ed Schonberg <schonberg@adacore.com>
320 * sem_prag.adb (Analyze_Pragma, case Predicate): Indicate that the type
321 has a delayed aspect which must be processed at the point the type is
322 frozen. This mimics what is done when the predicate is provided by a
325 2018-01-11 Doug Rupp <rupp@adacore.com>
327 * init.c (vxworks): Add macro checks for __aarch64__.
329 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
331 * exp_util.adb (Add_Failure_Expression): New routine.
332 (Make_Predicate_Check): Reimplement the handling of Predicate_Failure.
333 * sem_util.adb (Is_Current_Instance): Code cleanup.
335 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
337 * libgnat/s-parame*.adb, libgnat/s-parame*.ads: Remove unneeded
338 Default_Sec_Stack_Size.
339 * libgnat/s-secsta.adb (SS_Allocate): Handle the fixed secondary stack
340 limit check so that the integer index does not overflow. Check the
341 dynamic stack allocation does not cause the secondary stack pointer to
343 (SS_Info): Align colons.
344 (SS_Init): Cover the case when bootstraping with an old compiler that
345 does not set Default_SS_Size.
347 2018-01-11 Ed Schonberg <schonberg@adacore.com>
349 * sem_ch3.adb (Add_Internal_Interface_Entities): When checking the
350 legality of an inherited operation that may require overriding, ignore
351 primitive_wrappers that correspond to explicit operations that override
352 an interface primitive.
353 * exp_util.adb (Build_Class_Wide_Expression, Replace_Entity): If the
354 operation to which the class-wide expression applies is a protected op.
355 with a primitive_wrapper, verify that the updated inherited expression
356 does not contain an internal call to a protected function. This
357 completes the implementation of AI12-0166.
359 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
361 * ali.adb: Document the remaining letters available for ALI lines.
362 (Scan_ALI): A with clause is internal when it is encoded on a 'Z' line.
363 * ali.ads: Update type With_Record. Field
364 Implicit_With_From_Instantiation is no longer in use. Add field
366 * csinfo.adb (CSinfo): Remove the setup for attribute
367 Implicit_With_From_Instantiation.
368 * lib-writ.adb (Collect_Withs): Correct the logic which marks a unit as
369 either implicitly or explicitly withed.
370 (Is_Implicit_With_Clause): New routine.
371 (Write_ALI): Rename array Implicit_With to Has_Implicit_With to avoid
372 confusion with the with clause attribute by the same name.
373 (Write_With_Lines): Update the emission of 'W', 'Y', and 'Z' headers.
374 * rtsfind.adb (Maybe_Add_With): Code cleanup.
375 * sem_ch8.adb (Present_System_Aux): Code cleanup.
376 * sem_ch10.adb (Expand_With_Clause): Mark the with clause as generated
378 (Implicit_With_On_Parent): Mark the with clause as generated for a
380 * sem_ch12.adb (Inherit_Context): With clauses inherited by an
381 instantiation are no longer marked as Implicit_With_From_Instantiation
382 because they are already marked as implicit.
383 * sem_elab.adb (Ensure_Prior_Elaboration_Static): Remove the kludge
384 which marks implicit with clauses as related to an instantiation.
385 * sinfo.adb (Implicit_With_From_Instantiation): Removed.
386 (Parent_With): New routine.
387 (Set_Implicit_With_From_Instantiation): Removed.
388 (Set_Parent_With): New routine.
389 * sinfo.ads: Update the documentation of attribute Implicit_With.
390 Remove attribute Implicit_With_From_Instantiation along with
391 occurrences in nodes. Add attribute Parent_With along with occurrences
393 (Implicit_With_From_Instantiation): Removed along with pragma Inline.
394 (Parent_With): New routine along with pragma Inline.
395 (Set_Implicit_With_From_Instantiation): Removed along with pragma Inline.
396 (Set_Parent_With): New routine along with pragma Inline.
398 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
400 * sem_util.adb (Find_Enclosing_Scope): Return the unique defining
401 entity when the enclosing construct is a body.
403 2018-01-11 Patrick Bernardi <bernardi@adacore.com>
405 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Simplified
406 Secondary_Stack_Size handling as a pragma is now generated for the
407 corresponding aspect instead of an attribute. Pragma expression is
408 relocated instead of evaluated. Discriminant of the corresponding
409 record type is referenced rather than the type discriminant.
410 (Create_Secondary_Stack_For_Task, Make_Task_Create_Call): Update
411 Secondary_Stack_Size rep item checks to only look for the pragma rep.
412 * sem_ch13.adb (Analyze_One_Aspect): Transform
413 Aspect_Secondary_Stack_Size into a pragma instead of an attribute
414 because the attribute does not have visibility on a task type's
415 discriminants when the type's definition is expanded.
416 (Analyze_Attribute_Definition_Clause): Remove handling of
417 Attribute_Secondary_Stack_Size.
418 * snames.adb-tmpl, snames.ads-tmpl: Remove
419 Attribute_Secondary_Stack_Size, no longer used.
421 2018-01-11 Justin Squirek <squirek@adacore.com>
423 * sem_ch8.adb: Minor comment fix.
425 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
427 * exp_ch4.adb (Process_Action): Do not abandon the inspection of an
428 individual action because the action may denote a complex expression,
429 such as a case statement, which in turn may contain additional
432 2018-01-11 Ed Schonberg <schonberg@adacore.com>
434 * sem_aggr.adb (Resolve_Iterated_Component_Association): Perform
435 analysis on a copy of the expression with a copy of the index variable,
436 because full expansion will rewrite construct into a loop with the
437 original loop variable.
438 * exp_aggr.adb (Gen_Assign): Defer analysis and resolution if the
439 expression is an iterated component association. Full analysis takes
440 place when construct is rewritten as a loop.
441 (In_Place_Assign_OK, Safe_Component): An iterated_component_association
442 is not safe for in-place assignment.
443 * sem_util.adb (Remove_Entity): Handle properly the case of an isolated
444 entity with no homonym and no other entity in the scope.
446 2018-01-11 Justin Squirek <squirek@adacore.com>
448 * sem_prag.adb (Analyze_Pragma:Pragma_Loop_Variant): Modify error
449 message to be printed on the pragma argument identifier.
451 2018-01-11 Hristian Kirtchev <kirtchev@adacore.com>
453 * exp_util.adb (Build_Invariant_Procedure_Declaration): Set the last
454 entity of the generated invariant procedure in order to construct a
457 2018-01-11 Piotr Trojanek <trojanek@adacore.com>
459 * sem_ch13.adb (Build_Predicate_Functions): Fix minor issues in
462 2018-01-11 Arnaud Charlet <charlet@adacore.com>
464 * einfo.ads, einfo.adb (Activation_Record_Component,
465 Set_Activation_Record_Component, Set_Is_Uplevel_Referenced_Entity):
466 Allow E_Discriminant.
468 2018-01-10 Eric Botcazou <ebotcazou@adacore.com>
470 * gcc-interface/decl.c (gnat_to_gnu_component_type): Apply the check
471 for atomic access once the component size is taken into account and
472 also do it if the component type is Atomic or Volatile_Full_Access.
474 2018-01-04 Eric Botcazou <ebotcazou@adacore.com>
476 * gnatvsn.ads: Bump copyright year.
478 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
479 Alan Hayward <alan.hayward@arm.com>
480 David Sherwood <david.sherwood@arm.com>
482 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_BITSIZE
485 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
486 Alan Hayward <alan.hayward@arm.com>
487 David Sherwood <david.sherwood@arm.com>
489 * gcc-interface/misc.c (enumerate_modes): Treat GET_MODE_PRECISION
492 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
493 Alan Hayward <alan.hayward@arm.com>
494 David Sherwood <david.sherwood@arm.com>
496 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
497 polynomial TYPE_VECTOR_SUBPARTS.
499 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
500 Alan Hayward <alan.hayward@arm.com>
501 David Sherwood <david.sherwood@arm.com>
503 * gcc-interface/misc.c (enumerate_modes): Handle polynomial
506 2018-01-03 Jakub Jelinek <jakub@redhat.com>
508 Update copyright years.
510 * gnat_ugn.texi: Bump @copying's copyright year.
511 * gnat_rm.texi: Likewise.
513 Copyright (C) 2018 Free Software Foundation, Inc.
515 Copying and distribution of this file, with or without modification,
516 are permitted in any medium without royalty provided the copyright
517 notice and this notice are preserved.