Debian Codegraph @

gcc/ada/ChangeLog-2023

raw
1 2023-12-19 Marc Poulhiès <[email protected]>
2
3 * gcc-interface/Make-lang.in (ada.html, ada.install-html): Add.
4
5 2023-12-19 Eric Botcazou <[email protected]>
6
7 * sem_ch3.adb (Analyze_Subtype_Declaration): Remove a short-circuit
8 for subtypes without aspects when it comes to predicates.
9 * sem_util.adb (Inherit_Predicate_Flags): Deal with private subtypes
10 whose full view is an Itype.
11
12 2023-12-19 Viljar Indus <[email protected]>
13
14 * sem_ch13.adb (Valid_Default_Iterator): Check all interfaces for
15 valid iterator type. Also improve error reporting.
16
17 2023-12-19 Gary Dismukes <[email protected]>
18
19 * sem_aggr.adb (Resolve_Container_Aggregate): In the Add_Named
20 case, issue an error if the container aggregate is written as a
21 positional aggregate, since such an aggregate must have named
22 associations.
23
24 2023-12-19 Sheri Bernstein <[email protected]>
25
26 * libgnat/a-comlin.adb (Argument_Count): Rewrite code so there is
27 only one return, to remove Improper_Returns violation.
28 (Command_Name): Add pragma to exempt Improper_Returns violation.
29
30 2023-12-19 Eric Botcazou <[email protected]>
31
32 * exp_ch6.adb (Expand_Ctrl_Function_Call): Rework last comment.
33
34 2023-12-19 Gary Dismukes <[email protected]>
35
36 * sem_aggr.adb (Resolve_Iterated_Association): Call
37 Preanalyze_And_Resolve instead of Analyze_And_Resolve on a key
38 expression of an iterated association.
39
40 2023-12-19 Piotr Trojanek <[email protected]>
41
42 * exp_ch9.adb, sem_ch10.adb, sem_util.adb: Fix comments.
43
44 2023-12-19 Piotr Trojanek <[email protected]>
45
46 * sinput.adb, sinput.ads (Get_Logical_Line_Number_Img): Remove.
47
48 2023-12-19 Patrick Bernardi <[email protected]>
49
50 * bindgen.adb (Command_Line_Used): New object.
51 (Gen_Main): Only generate references to symbols used by
52 Ada.Command_Line if the package is used by the partition.
53 (Gen_Output_File_Ada): Ditto.
54 (Resolve_Binder_Options): Check if Ada.Command_Line is in the
55 closure of the partition.
56
57 2023-12-19 Vasiliy Fofanov <[email protected]>
58
59 * libgnat/i-cstrin.adb (Value): Optimize.
60
61 2023-12-19 Piotr Trojanek <[email protected]>
62
63 * sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): Update comment
64 and body.
65
66 2023-12-19 Eric Botcazou <[email protected]>
67
68 * einfo.ads (Is_Constr_Subt_For_UN_Aliased): Rename into...
69 (Is_Constr_Array_Subt_With_Bounds): ...this.
70 * exp_ch3.adb (Expand_N_Object_Declaration): Adjust to above
71 renaming and remove now redundant test.
72 * sem_ch3.adb (Analyze_Object_Declaration): Likewise, but set
73 Is_Constr_Array_Subt_With_Bounds only on arrays.
74 * gen_il-fields.ads (Opt_Field_Enum): Apply same renaming.
75 * gen_il-gen-gen_entities.adb (Entity_Kind): Likewise.
76 * gen_il-internals.adb (Image): Remove specific processing for
77 Is_Constr_Subt_For_UN_Aliased.
78 * treepr.adb (Image): Likewise.
79 * gcc-interface/decl.cc (gnat_to_gnu_entity): Adjust to renaming
80 and remove now redundant tests.
81 * gcc-interface/trans.cc (Identifier_to_gnu): Likewise.
82 (Call_to_gnu): Likewise.
83
84 2023-12-19 Johannes Kliemann <[email protected]>
85
86 * libgnat/s-rident.ads: Remove No_Dynamic_Priorities from
87 Restricted_Tasking.
88
89 2023-12-19 Patrick Bernardi <[email protected]>
90
91 * argv.c: Do not include adaint.h if LIGHT_RUNTIME is defined.
92 * bindgen.adb (Gen_Main): Simplify command line argument and exit
93 handling by requiring the runtime to always provide the required
94 symbols if command line argument and exit code is enabled.
95 * targparm.ads: Update comments to reflect changes to gnatbind.
96
97 2023-12-19 Ronan Desplanques <[email protected]>
98 Javier Miranda <[email protected]>
99
100 * exp_aggr.adb (Initialize_Component): Use corresponding record
101 types of concurrent types.
102 * exp_util.ads (Make_Tag_Assignment_From_Type): Add precondition
103 and extend documentation.
104
105 2023-12-19 Eric Botcazou <[email protected]>
106
107 * einfo.ads (Is_Ignored_Transient): Rename into...
108 (Is_Ignored_For_Finalization): ...this.
109 * gen_il-fields.ads (Opt_Field_Enum): Adjust to above renaming.
110 * gen_il-gen-gen_entities.adb (Object_Kind): Likewise.
111 * exp_aggr.adb (Expand_Array_Aggregate): Likewise.
112 * exp_ch7.adb (Build_Finalizer.Process_Declarations): Likewise.
113 * exp_util.adb (Requires_Cleanup_Actions): Likewise.
114 * exp_ch4.adb (Expand_N_If_Expression): Move down declaration of
115 variable Optimize_Return_Stmt.
116 (Process_Transient_In_Expression): Turn procedure into a child of...
117 (Process_Transients_In_Expression): ...this procedure.
118 * exp_ch6.adb (Expand_Ctrl_Function_Call): Remove obsolete setting
119 of Is_Ignored_Transient flag on the temporary if within a dependent
120 expression of a conditional expression.
121
122 2023-12-19 Yannick Moy <[email protected]>
123
124 * exp_spark.adb (Expand_SPARK_N_Aggregate): New procedure for the
125 special expansion.
126 (Expand_SPARK): Call the new expansion procedure.
127 * sem_util.adb (Is_Container_Aggregate): Implement missing test.
128
129 2023-12-19 Eric Botcazou <[email protected]>
130
131 * sem_ch12.adb (Copy_Generic_Node): Add guard for Ancestor_Type.
132
133 2023-12-19 Eric Botcazou <[email protected]>
134
135 * gen_il-fields.ads (Aggregate_Bounds): Rename to
136 Aggregate_Bounds_Or_Ancestor_Type.
137 * gen_il-gen-gen_nodes.adb (Aggregate_Bounds): Likewise.
138 * sem_aggr.adb (Resolve_Record_Aggregate): Remove obsolete bypass.
139 * sem_ch12.adb (Check_Generic_Actuals): Add decoration.
140 (Copy_Generic_Node): For an extension aggregate, restore only the
141 full view, if any. For a full aggregate, restore the full view as
142 well as that of its Ancestor_Type, if any, and up to the root type.
143 (Save_References_In_Aggregate): For a full aggregate of a local
144 derived tagged type with a global ancestor, set Ancestor_Type to
145 this ancestor. For a full aggregate of a global derived tagged
146 type, set Ancestor_Type to the parent type.
147 * sinfo-utils.ads (Aggregate_Bounds): New function renaming.
148 (Ancestor_Type): Likewise.
149 (Set_Aggregate_Bounds): New procedure renaming.
150 (Set_Ancestor_Type): Likewise.
151 * sinfo.ads (Ancestor_Type): Document new field.
152
153 2023-12-19 Eric Botcazou <[email protected]>
154
155 * exp_ch4.adb (Expand_N_If_Expression): Also add missing calls to
156 Process_Transients_In_Expression on the code path implementing the
157 special optimization for an unidimensional array type and
158 dependent expressions with static bounds.
159
160 2023-12-19 Steve Baird <[email protected]>
161
162 * sem_ch8.adb (Is_Actual_Subp_Of_Inst): After calling
163 Enclosing_Declaration, add a check for the case where one more
164 Parent call is needed to get the enclosing declaration.
165
166 2023-12-19 Ronan Desplanques <[email protected]>
167
168 * sem_util.adb (Build_Default_Subtype_OK): Relax
169 known-at-compile-time requirement.
170 * sem_util.ads (Build_Default_Subtype_OK): Bring documentation
171 comment up-to-date.
172
173 2023-12-19 Yannick Moy <[email protected]>
174
175 * doc/gnat_rm/implementation_defined_pragmas.rst: Fix doc for
176 pragma Ignore_Pragma, in the case where it follows another
177 configuration pragma that it names, which causes the preceding
178 pragma to be ignored after parsing.
179 * errout.adb (Should_Ignore_Pragma_SPARK_Mode): New query.
180 (SPARK_Msg_N): Do nothing if SPARK_Mode is ignored.
181 (SPARK_Msg_NE): Same.
182 * gnat-style.texi: Regenerate.
183 * gnat_rm.texi: Regenerate.
184 * gnat_ugn.texi: Regenerate.
185
186 2023-12-19 Yannick Moy <[email protected]>
187
188 * sem_ch4.adb (Analyze_Selected_Component): Check correct mode
189 variable for GNATprove.
190 * sem_prag.adb (Refined_State): Call SPARK_Msg_NE which checks
191 value of SPARK_Mode before issuing a message.
192 * sem_res.adb (Resolve_Entity_Name): Remove legality check for
193 SPARK RM 6.1.9(1), moved to GNATprove.
194
195 2023-12-19 Steve Baird <[email protected]>
196
197 * sem_ch12.adb (Check_Generic_Child_Unit): Introduce a new nested
198 function Adjusted_Inst_Par_Ekind to cope with cases where either
199 a- the visibility of a compiler-generated renaming is incorrect;
200 or b- we are inside of a generic parent unit G1 that has a child
201 unit G1.G2, so instantiation of G1.G2 is permitted.
202
203 2023-12-19 Eric Botcazou <[email protected]>
204
205 * exp_ch4.adb (Process_If_Case_Statements): Rename into...
206 (Process_Transients_In_Expression): ...this and beef up comment.
207 (Expand_N_Case_Expression): Call Process_Transients_In_Expression
208 unconditionally on the list of actions of each alternative.
209 (Expand_N_Expression_With_Actions): Do not deal with actions in
210 nested subexpressions, but call Process_Transients_In_Expression
211 on the list of actions only.
212 (Expand_N_If_Expression): Adjust to above renaming. Add missing
213 calls to Process_Transients_In_Expression in the case when an EWA
214 is not used because of Minimize_Expression_With_Actions.
215
216 2023-12-16 Andrew Carlotti <[email protected]>
217
218 * gcc-interface/utils.cc (attr_target_exclusions): Make
219 target/target_clones exclusion target-dependent.
220 (attr_target_clones_exclusions): Ditto.
221
222 2023-12-16 Andrew Carlotti <[email protected]>
223
224 * gcc-interface/utils.cc (attr_noinline_exclusions): New.
225 (attr_always_inline_exclusions): Ditto.
226 (attr_target_exclusions): Ditto.
227 (attr_target_clones_exclusions): Ditto.
228 (gnat_internal_attribute_table): Add new exclusion lists.
229 (handle_noinline_attribute): Remove custom exclusion handling.
230 (handle_target_attribute): Ditto.
231 (handle_target_clones_attribute): Ditto.
232
233 2023-12-11 Rainer Orth <[email protected]>
234
235 * terminals.c [__FreeBSD__]: Include <libutil.h>.
236 (TABDLY): Only define if missing.
237
238 2023-12-06 Alexandre Oliva <[email protected]>
239
240 * gcc-interface/trans.cc: Include ipa-strub.h.
241 (gigi): Make internal decls for targets of compiler-generated
242 calls strub-callable too.
243 (build_raise_check): Likewise.
244 * gcc-interface/utils.cc: Include ipa-strub.h.
245 (handle_strub_attribute): New.
246 (gnat_internal_attribute_table): Add strub.
247
248 2023-12-05 Richard Sandiford <[email protected]>
249
250 * gcc-interface/utils.cc (gnat_internal_attribute_table): Add extra
251 braces to work around PR 16333 in older compilers.
252
253 2023-12-05 Rainer Orth <[email protected]>
254
255 * adaint.c: Include <signal.h>.
256 * expect.c: Include <string.h>.
257
258 2023-12-02 Richard Sandiford <[email protected]>
259
260 * gcc-interface/gigi.h (gnat_internal_attribute_table): Change
261 type to scoped_attribute_specs.
262 * gcc-interface/utils.cc (gnat_internal_attribute_table): Likewise,
263 using...
264 (gnat_internal_attributes): ...this as the underlying array.
265 * gcc-interface/misc.cc (gnat_attribute_table): New global.
266 (LANG_HOOKS_ATTRIBUTE_TABLE): Use it.
267
268 2023-12-01 Rainer Orth <[email protected]>
269
270 * adaint.c [__APPLE__]: Include <signal.h>, <sys/time.h>.
271 * terminals.c [!_WIN32]: Include <signal.h>.
272 [__APPLE__]: Include <util.h>.
273 Fix typos.
274
275 2023-11-30 Eric Botcazou <[email protected]>
276
277 * checks.ads (Apply_Predicate_Check): Add Deref boolean parameter.
278 * checks.adb (Apply_Predicate_Check): Revert latest change. Use
279 Loc local variable to hold the source location. Use a common code
280 path for the generic processing and make a dereference if Deref is
281 True.
282 * exp_ch4.adb (Expand_Allocator_Expression): Compute Aggr_In_Place
283 earlier. If it is true, do not call Apply_Predicate_Check on the
284 expression on entry but on the temporary on exit with a
285 dereference.
286 * sem_res.adb (Resolve_Actuals): Add explicit parameter
287 association in call to Apply_Predicate_Check.
288
289 2023-11-30 Steve Baird <[email protected]>
290
291 * exp_put_image.adb (Put_Image_Enabled): Return True in more
292 cases. In particular, when testing to see if a type occurs in a
293 predefined unit, test the type's code unit
294 (obtained by calling Get_Code_Unit). In the case of type within a
295 user-defined instance of a predefined generic, Is_Predefined_Unit
296 will return True for the type and False for the type's code unit.
297
298 2023-11-30 Yannick Moy <[email protected]>
299
300 * contracts.adb (Analyze_Entry_Or_Subprogram_Body_Contract):
301 Remove checking on volatility. Remove handling of SPARK_Mode, not
302 needed anymore.
303 (Analyze_Entry_Or_Subprogram_Contract): Remove checking on
304 volatility.
305 (Check_Type_Or_Object_External_Properties): Same.
306 (Analyze_Object_Contract): Same.
307 * freeze.adb (Freeze_Record_Type): Same. Also remove checking on
308 synchronized types and ghost types.
309 * sem_ch12.adb (Instantiate_Object): Remove checking on
310 volatility.
311 (Instantiate_Type): Same.
312 * sem_ch3.adb (Access_Type_Declaration): Same.
313 (Derived_Type_Declaration): Remove checking related to untagged
314 partial view.
315 (Process_Discriminants): Remove checking on volatility.
316 * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Same.
317 * sem_ch6.adb (Analyze_Procedure_Call): Fix use of SPARK_Mode
318 where GNATprove_Mode was intended.
319 * sem_disp.adb (Inherited_Subprograms): Protect against Empty
320 node.
321 * sem_prag.adb (Analyze_Global_In_Decl_Part): Remove checking on
322 volatility.
323 (Analyze_Pragma): Same.
324 * sem_res.adb (Flag_Effectively_Volatile_Objects): Remove.
325 (Resolve_Actuals): Remove checking on volatility.
326 (Resolve_Entity_Name): Same.
327 * sem_util.adb (Check_Nonvolatile_Function_Profile): Remove.
328 (Check_Volatility_Compatibility): Remove.
329 * sem_util.ads: Same.
330
331 2023-11-30 Sheri Bernstein <[email protected]>
332
333 * libgnat/i-cstrin.adb (Free): Rewrite code so there is only one
334 return, to remove Improper_Returns violation.
335 (Position_Of_Nul): Add pragma to exempt Improper_Returns
336 violation.
337 (To_Chars_Ptr): Likewise.
338 (Value): Likewise
339
340 2023-11-30 Viljar Indus <[email protected]>
341
342 * sem_prag.adb (Validate_Compile_Time_Warning_Errors): Avoid
343 checking compile time warnings and errors if backend has not been
344 activated.
345
346 2023-11-30 Yannick Moy <[email protected]>
347
348 * checks.adb, exp_aggr.adb, exp_ch4.ads, exp_ch5.adb,
349 exp_util.adb, exp_util.ads, inline.adb, sem_ch13.adb,
350 sem_ch6.adb, sem_ch8.adb, sem_prag.adb, sem_util.ads: Fix comments
351 and typos.
352
353 2023-11-30 Javier Miranda <[email protected]>
354
355 * freeze.adb (Declared_In_Expanded_Body): New subprogram.
356 (In_Expanded_Body): Minor code cleanup.
357 (Freeze_Expression): Code cleanup plus factorize in a new function
358 the code that identifies entities declared in the body of expander
359 generated subprograms, since such case must be checked also for
360 other node kinds when climbing the tree to locate the place to
361 insert the freezing node.
362
363 2023-11-30 Steve Baird <[email protected]>
364
365 * sem_ch8.adb (Find_Direct_Name): In the case of a resolving a
366 name that occurs within an instantiation, add code to detect and
367 filter out unwanted candidate resolutions. The filtering is
368 performed via a call to Remove_Interp.
369
370 2023-11-30 Steve Baird <[email protected]>
371
372 * libgnarl/a-rttiev.ads: add a comment
373
374 2023-11-30 Steve Baird <[email protected]>
375
376 * sem_ch12.adb (Validate_Discriminated_Formal_Type): Replace
377 Entity_Id equality test with a call to Subtypes_Match. Distinct
378 subtypes which are statically matching should pass this test.
379 (Check_Discriminated_Formal): Replace Entity_Id equality test with
380 a call to Subtypes_Statically_Match (preceded by a check that the
381 preconditions for the call are satisfied).
382
383 2023-11-30 Eric Botcazou <[email protected]>
384
385 * exp_ch4.adb (Expand_Allocator_Expression): Add Special_Return
386 boolean constant to hold the value of For_Special_Return_Object
387 for the allocator and use it throughout the procedure.
388
389 2023-11-30 Eric Botcazou <[email protected]>
390
391 * checks.adb (Apply_Predicate_Check): Also deal specifically with
392 an expression that is a qualified aggregate in an allocator.
393
394 2023-11-30 Steve Baird <[email protected]>
395
396 * sem_ch4.adb (Constant_Indexing_OK): As a temporary stopgap,
397 return False in the case of an unanalyzed prefixed-view call.
398
399 2023-11-28 Simon Wright <[email protected]>
400
401 PR ada/111909
402 * adaint.c
403 (__gnat_get_file_names_case_sensitive): Split out the __APPLE__
404 check and remove the checks for __arm__, __arm64__. For Apple,
405 file names are by default case-insensitive unless TARGET_OS_IOS is
406 set.
407
408 2023-11-28 Eric Botcazou <[email protected]>
409
410 * gcc-interface/decl.cc (annotate_value): Apply the same processing
411 for parameters as for variables.
412
413 2023-11-28 Marc Poulhiès <[email protected]>
414
415 * gcc-interface/utils2.cc (build_simple_component_ref): Add
416 comment on assertion.
417
418 2023-11-28 Steve Baird <[email protected]>
419
420 * exp_attr.adb (Expand_N_Attribute_Reference): In the case of a
421 Reduce attribute reference, fix bugs in initializing Accum_Typ.
422 The previous version was incorrect in the case where E1 refers to
423 the first of multiple possible overload resolution candidates and
424 that candidate does not turn out to be the right one. The previous
425 version also had code to compute Accum_Typ via a different method
426 if the initial computation turned out to yield a universal numeric
427 type. Delete that initial computation and use the second method in
428 all cases.
429
430 2023-11-28 Gary Dismukes <[email protected]>
431
432 * sem_aggr.adb (Add_Discriminant_Values): Remove this procedure.
433 (Propagate_Discriminants): Remove this procedure.
434 (Resolve_Record_Aggregate): Remove code (the Capture_Discriminants
435 block statement) related to propagating discriminants and
436 generating initializations for subcomponents of a
437 discriminant-dependent box-defaulted subcomponent of a nonprivate
438 record type with discriminants, and handle all top-level
439 components that have a non-null base init proc directly, by
440 calling Add_Association with "Is_Box_Present => True". Also,
441 combine that elsif clause with the immediately preceding elsif
442 clause, since they now both contain the same statement (calls to
443 Add_Association with the same actuals).
444
445 2023-11-28 Bob Duff <[email protected]>
446
447 * sem_util.adb (Check_Result_And_Post_State): Disable this when
448 we're in an instance. Misc cleanup.
449
450 2023-11-28 Eric Botcazou <[email protected]>
451
452 * exp_ch7.ads (Expand_Cleanup_Actions): Move declaration to the
453 Finalization Management section.
454 * exp_ch7.adb (Transient Scope Management): Move description down to
455 after that of the general finalization and make a few changes.
456 (Insert_Actions_In_Scope_Around): Call Process_Transients_In_Scope
457 only if cleanups are being handled.
458 (Process_Transients_In_Scope): Remove redundant test on Clean.
459 * exp_util.ads (Within_Case_Or_If_Expression): Adjust description.
460 * exp_util.adb (Within_Case_Or_If_Expression): Only return true if
461 within the dependent expressions of the conditional expressions.
462
463 2023-11-28 Eric Botcazou <[email protected]>
464
465 * doc/gnat_rm/the_implementation_of_standard_i_o.rst: Fix a couple
466 occurrences of incorrect quoting.
467 * gnat_rm.texi: Regenerate.
468
469 2023-11-28 Eric Botcazou <[email protected]>
470
471 * exp_ch6.adb (Build_Flag_For_Function): New function made up of the
472 code building the special flag for return object present...
473 (Expand_N_Extended_Return_Statement): ...in there. Replace the code
474 with a call to Build_Flag_For_Function. Add assertion for the flag.
475 (Expand_Non_Function_Return): For a nested return, if the return
476 object needs finalization actions, update the special flag.
477
478 2023-11-28 Sebastian Poeplau <[email protected]>
479
480 * einfo-utils.ads, einfo-utils.adb (Is_Address_Compatible_Type):
481 New function.
482
483 2023-11-28 Gary Dismukes <[email protected]>
484
485 * exp_aggr.adb (Expand_Container_Aggregate): Apply a conversion to the
486 size temp object passed as the second actual parameter on the call to
487 the New_Indexed_Subp function, to convert it to the index type of the
488 container type (taken from the first formal parameter of the function).
489
490 2023-11-28 Eric Botcazou <[email protected]>
491
492 * sem_attr.adb (Eval_Attribute): Do not proceed in a spec expression
493 for nonstatic representation attributes of a scalar subtype when the
494 subtype is not frozen.
495 * sem_ch3.adb (Analyze_Object_Declaration): Do not freeze the type
496 of the object in a spec expression.
497
498 2023-11-28 Richard Kenner <[email protected]>
499
500 * exp_unst.adb (Note_Uplevel_Bound): Treat
501 N_Unchecked_Type_Conversion like N_Type_Conversion.
502
503 2023-11-28 Yannick Moy <[email protected]>
504
505 * libgnat/s-imgboo.adb: Remove with_clause now in spec file.
506 * libgnat/s-imgboo.ads: Remove dependency on System.Val_Bool.
507 (Image_Boolean): Replace call to Value_Boolean by passing value V
508 to updated ghost function Is_Boolean_Image_Ghost.
509 * libgnat/s-valboo.ads (Is_Boolean_Image_Ghost): Move to other
510 unit.
511 (Value_Boolean.): Update precondition.
512 * libgnat/s-valspe.ads (Is_Boolean_Image_Ghost): Move here. Add
513 new parameter for expected boolean value.
514
515 2023-11-28 Tucker Taft <[email protected]>
516
517 * sem_scil.adb: Handle discriminant specification.
518
519 2023-11-21 Eric Botcazou <[email protected]>
520
521 * gcc-interface/trans.cc (Loop_Statement_to_gnu): Always use the
522 simpler form for a loop with a boolean iteration variable.
523
524 2023-11-21 Eric Botcazou <[email protected]>
525
526 * gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Subtype>: Put
527 the alignment directly on the type in the constrained case too.
528 * gcc-interface/utils.cc (maybe_pad_type): For an array type, take
529 the alignment of the element type as the original alignment.
530
531 2023-11-21 Gary Dismukes <[email protected]>
532
533 * sem_aggr.adb (Resolve_Container_Aggregate): In the case where Comp
534 is an N_Iterated_Component_Association, pick up Discrete_Choices rather
535 than Choices.
536
537 2023-11-21 Eric Botcazou <[email protected]>
538
539 * exp_ch7.adb (Build_Finalizer): For package specs and bodies, push
540 and pop the specs onto the scope stack only once.
541 * inline.adb (Cleanup_Scopes): Call Pop_Scope instead of End_Scope.
542
543 2023-11-21 Steve Baird <[email protected]>
544
545 * sem_aggr.adb (Resolve_Delta_Array_Aggregate): In the case of a
546 deep delta choice, the expected type for the expression will
547 typically not be the component type of the array type, so a call
548 to Analyze_And_Resolve that assumes otherwise would be an error.
549 It turns out that such a call, while wrong, is usually harmless
550 because the expression has already been marked as analyzed. This
551 doesn't work if the aggregate occurs in a postcondition and, in
552 any case, we don't want to rely on this. So do not perform the
553 call in the deep case.
554
555 2023-11-21 Eric Botcazou <[email protected]>
556
557 * sem_warn.adb (Check_References.Type_OK_For_No_Value_Assigned):
558 New predicate.
559 (Check_References): For Warn_On_No_Value_Assigned, use the same test
560 on the type in the address-not-taken and default cases.
561
562 2023-11-21 Gary Dismukes <[email protected]>
563
564 * exp_ch5.adb (Expand_Iterator_Loop_Over_Container): Retrieve the
565 iteration type's iteration interface progenitor via
566 Iterator_Interface_Ancestor, in the case of both "in" and "of"
567 iterators. Narrow the scope of Pack, so it's declared and
568 initialized only within the code related to "of" iterators, and
569 change its name to Cont_Type_Pack. Adjust comments.
570 * sem_ch5.adb (Get_Cursor_Type): In the case of a derived type,
571 retrieve the iteration type's iterator interface progenitor (if it
572 exists) via Iterator_Interface_Ancestor rather than assuming that
573 the parent type is the interface progenitor.
574 * sem_util.ads (Iterator_Interface_Ancestor): New function.
575 * sem_util.adb (Iterator_Interface_Ancestor): New function
576 returning a type's associated iterator interface type, if any, by
577 collecting and traversing the type's interfaces.
578
579 2023-11-21 Eric Botcazou <[email protected]>
580
581 * sem_attr.adb (Resolve_Attribute) <Attribute_Address>: Remove the
582 bypass for prefixes with task type.
583
584 2023-11-21 Viljar Indus <[email protected]>
585
586 * par.adb: Restore Style_Checks after parsing each unit.
587
588 2023-11-21 Yannick Moy <[email protected]>
589
590 * exp_spark.adb (Expand_SPARK_Delta_Or_Aggregate): Fix type.
591
592 2023-11-21 Eric Botcazou <[email protected]>
593
594 * sem_ch12.adb (Analyze_Package_Instantiation): Test Expander_Active
595 to detect generic contexts for the generation of cleanup actions.
596
597 2023-11-21 Justin Squirek <[email protected]>
598
599 * libgnat/g-catiio.adb (Value): Modify conditionals to use 'Last
600 instead of 'Length
601
602 2023-11-21 Eric Botcazou <[email protected]>
603
604 * sem_util.adb (Null_Status): Deal with unchecked type conversions.
605
606 2023-11-21 Eric Botcazou <[email protected]>
607
608 * exp_aggr.adb (Convert_To_Assignments): Do not treat initialization
609 procedures specially when it comes to creating a transient scope.
610 * exp_ch7.adb (Build_Finalizer.Process_Declarations): Likewise.
611 * exp_util.adb (Requires_Cleanup_Actions): Likewise.
612
613 2023-11-21 Doug Rupp <[email protected]>
614
615 * s-oscons-tmplt.c: #define CLOCK_RT_Ada "CLOCK_MONOTONIC" for
616 __vxworks
617
618 2023-11-21 Steve Baird <[email protected]>
619
620 * sem_aggr.adb: Replace "not Present (...)" call with "No (...)" call.
621
622 2023-11-21 Eric Botcazou <[email protected]>
623
624 * gen_il-fields.ads (Opt_Field_Enum): Remove Is_Finalization_Wrapper
625 * gen_il-gen-gen_nodes.adb (N_Block_Statement): Likewise.
626 * sinfo.ads (Is_Finalization_Wrapper): Delete.
627 * exp_ch7.adb (Build_Finalizer.Process_Declarations): Adjust comment
628 and remove obsolete code testing the Is_Finalization_Wrapper flag.
629 * exp_util.adb (Requires_Cleanup_Actions): Likewise.
630
631 2023-11-21 Doug Rupp <[email protected]>
632
633 * libgnat/libada.gpr: Revise section 1
634
635 2023-11-21 Steve Baird <[email protected]>
636
637 * par.adb: Add new Boolean variable Inside_Delta_Aggregate.
638 * par-ch4.adb (P_Simple_Expression): Add support for a deep delta
639 aggregate choice. We turn a sequence of selectors into a peculiar
640 tree. We build a component (Indexed or Selected) whose prefix is
641 another such component, etc. The leftmost prefix at the bottom of
642 the tree has a "name" which is the first selector, without any
643 further prefix. For something like "with delta (1)(2) => 3" where
644 the type of the aggregate is an array of arrays of integers, we'll
645 build an N_Indexed_Component whose prefix is an integer literal 1.
646 This is consistent with the trees built for "regular"
647 (Ada-defined) delta aggregates.
648 * sem_aggr.adb (Is_Deep_Choice, Is_Root_Prefix_Of_Deep_Choice):
649 New queries.
650 (Resolve_Deep_Delta_Assoc): new procedure.
651 (Resolve_Delta_Array_Aggregate): call Resolve_Deep_Delta_Assoc in
652 deep case.
653 (Resolve_Delta_Record_Aggregate): call Resolve_Deep_Delta_Assoc in
654 deep case.
655 (Get_Component_Type): new function replaces old Get_Component
656 function.
657 * sem_aggr.ads (Is_Deep_Choice, Is_Root_Prefix_Of_Deep_Choice):
658 New queries.
659 * exp_aggr.adb (Expand_Delta_Array_Aggregate): add nested function
660 Make_Array_Delta_Assignment_LHS; call it instead of
661 Make_Indexed_Component.
662 (Expand_Delta_Record_Aggregate): add nested function
663 Make_Record_Delta_Assignment_LHS; call it instead of
664 Make_Selected_Component.
665 * exp_spark.adb (Expand_SPARK_Delta_Or_Update): Insert range
666 checks for indexes in deep delta aggregates.
667
668 2023-11-21 Ronan Desplanques <[email protected]>
669
670 * adaint.c (__gnat_unlink): Add new parameter and fix text
671 conversion on Windows. Remove unnecessary curly braces.
672 * adaint.h (__gnat_unlink): Add new parameter.
673 * libgnat/i-cstrea.ads (unlink): Adapt to __gnat_unlink signature
674 change.
675 * libgnat/i-cstrea.adb (unlink): New Subprogram definition.
676 * libgnat/s-crtl.ads (unlink): Adapt to __gnat_unlink signature
677 change.
678 * libgnat/s-fileio.adb (Delete): Pass encoding argument to unlink.
679
680 2023-11-21 Eric Botcazou <[email protected]>
681
682 * sem_ch12.adb (Save_Global_References.Set_Global_Type): Beef up
683 comment about the setting of the full view.
684 * sem_res.adb (Resolve_Actuals.Insert_Default): Add another bypass
685 for the case of a generic context.
686
687 2023-11-21 Marc Poulhiès <[email protected]>
688
689 * doc/gnat_ugn/the_gnat_compilation_model.rst: Move index
690 directives.
691 * gnat_ugn.texi: Regenerate.
692
693 2023-11-21 Pierre-Marie de Rodat <[email protected]>
694
695 * par_sco.adb (Process_Decisions)<Process_Node>: Skip aspect
696 specifications.
697
698 2023-11-21 Ronan Desplanques <[email protected]>
699
700 * libgnat/libgnat_common.gpr: Unconditionally pass -gnatg.
701
702 2023-11-21 Marc Poulhiès <[email protected]>
703
704 * exp_util.ads: Typo fix.
705
706 2023-11-16 Eric Botcazou <[email protected]>
707
708 * gcc-interface/decl.cc (gnat_to_gnu_subprog_type): Also create a
709 TYPE_DECL for the return type built for the CI/CO mechanism.
710
711 2023-11-10 Andris Pavēnis <[email protected]>
712
713 * expect.c (__gnat_waitpid): fix syntax errors
714
715 2023-11-09 Simon Wright <[email protected]>
716
717 PR ada/111813
718 * libgnat/a-calfor.adb (Value (2)): Allow values of
719 parameter Elapsed_Time greater than or equal to 24 hours, by doing
720 the hour calculations in Natural rather than Hour_Number (0 ..
721 23). Calculate the result directly rather than by using Seconds_Of
722 (whose Hour parameter is of type Hour_Number).
723 If an exception occurs of type Constraint_Error, re-raise it
724 rather than raising a new CE.
725
726 2023-11-07 Joseph Myers <[email protected]>
727
728 * gcc-interface/utils.cc (flag_isoc2x): Rename to flag_isoc23.
729
730 2023-11-07 Eric Botcazou <[email protected]>
731
732 * gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: Apply the
733 specific rewriting done for an aliased object with an unconstrained
734 array nominal subtype in the renaming case too.
735
736 2023-11-07 Eric Botcazou <[email protected]>
737
738 * gcc-interface/trans.cc (gnat_gimplify_expr) <CALL_EXPR>: Delete.
739
740 2023-11-07 Bob Duff <[email protected]>
741
742 * sem_ch13.ads (Set_Enum_Esize): Do not set alignment.
743 * sem_ch13.adb (Set_Enum_Esize): Do not set alignment. Archaeology
744 seems to show that this line of code dates from when "Alignment =
745 0" meant "the Alignment is not known at compile time" and "the
746 Alignment is not yet known at compile time" as well as "the
747 Alignment is zero". In any case, it seems to be unnecessary, and
748 in this case harmful, because gigi would crash. Alignment_Clause
749 is set (because there is one), so gigi would query the Alignment,
750 but Alignment was destroyed.
751
752 2023-11-07 Julien Bortolussi <[email protected]>
753
754 * doc/share/conf.py: Changed the background color and the logo.
755
756 2023-11-07 Eric Botcazou <[email protected]>
757
758 * gen_il-fields.ads (Opt_Field_Enum): Add Compare_Type.
759 * gen_il-gen-gen_nodes.adb (N_Op_Eq): Likewise.
760 (N_Op_Ge): Likewise.
761 (N_Op_Gt): Likewise.
762 (N_Op_Le): Likewise.
763 (N_Op_Lt): Likewise.
764 (N_Op_Ne): Likewise.
765 * sinfo.ads (Compare_Type): Document new field.
766 * sem_ch4.adb (Analyze_Comparison_Equality_Op): If the entity is
767 already present, set the Compare_Type on overloaded operands if it
768 is present on the node.
769 * sem_ch12.adb (Check_Private_View): Look into the Compare_Type
770 instead of the Etype for comparison operators.
771 (Copy_Generic_Node): Remove obsolete code for comparison
772 operators.
773 (Save_Global_References.Save_References): Do not walk into the
774 descendants of N_Implicit_Label_Declaration nodes.
775 (Save_Global_References.Set_Global_Type): Look into the
776 Compare_Type instead of the Etype for comparison operators.
777 * sem_res.adb (Resolve_Comparison_Op): Set Compare_Type.
778 (Resolve_Equality_Op): Likewise.
779
780 2023-11-07 Ronan Desplanques <[email protected]>
781
782 * adaint.c (__gnat_file_time): Fix Windows version.
783
784 2023-11-07 Eric Botcazou <[email protected]>
785
786 * exp_ch3.adb (Expand_N_Object_Declaration): Fold initialization
787 expression of Nominal_Subtype_Is_Constrained_Array constant into
788 the computation of Rewrite_As_Renaming and remove the constant.
789 Set it to True for an aliased array with unconstrained nominal
790 subtype if the subtype of the expression is also unconstrained.
791
792 2023-11-07 Piotr Trojanek <[email protected]>
793
794 * exp_util.adb (Add_Own_DIC, Add_Own_Invariants): Store the aspect
795 expression in Expression_Copy.
796
797 2023-11-07 Yannick Moy <[email protected]>
798
799 * exp_aggr.adb: Apply the renaming.
800 * exp_ch3.adb: Same.
801 * exp_ch4.adb: Same.
802 * exp_ch6.adb: Same.
803 * exp_ch7.adb: Same.
804 * exp_util.adb: Same.
805 * freeze.adb: Same.
806 * sem_aggr.adb: Same.
807 * sem_attr.adb: Same.
808 * sem_aux.adb: Alphabetize Is_Limited_Type. Rename.
809 * sem_aux.ads: Same.
810 * sem_ch3.adb: Apply the renaming.
811 * sem_ch6.adb: Same.
812 * sem_ch8.adb: Same.
813 * sem_prag.adb: Same.
814 * sem_res.adb: Same.
815 * sem_util.adb: Same.
816
817 2023-11-07 Viljar Indus <[email protected]>
818
819 * aspects.adb (Exchange_Aspects): Removed. This method was
820 typically called after a Rewrite method. Now since the Rewrite
821 switches the aspects between the new and the old node it is no
822 longer needed.
823 (Has_Aspects): Converted to a utility method that performs the same
824 before as the previous Has_Aspects field did. Meaning it shows whether
825 a node actually has aspects or not.
826 (Copy_Aspects): New utility method that performs a deep copy of the
827 From nodes aspects.
828 (Aspect_Specfications): Removed. No longer needed. Replaced
829 by the primitive operation for the Aspect_Specification fields.
830 (Set_Aspect_Specifications): Likewise.
831 (Aspect_Specifications_Hash_Table): Remove the table and all the
832 utility methods for storing the old aspects.
833 * aspects.ads: Likewise.
834 * atree.adb (Copy_Separate_Tree): Remove custom code for aspects.
835 (New_Copy): Likewise.
836 (Replace): Likewise.
837 (Rewrite): Likewise.
838 * exp_ch3.adb (Expand_N_Object_Declaration): Keep the aspects from the old node.
839 * exp_ch6.adb (Validate_Subprogram_Calls): Previously aspects were ignored
840 because they were not on the tree. Explicitly ignore them here
841 when traversing the tree.
842 * exp_unst.adb (Build_Tables): Likewise
843 * gen_il-fields.ads: Remove Has_Aspects and add
844 Aspect_Specifications fields.
845 * gen_il-gen-gen_nodes.adb: Add Aspect_Specification fields
846 for all nodes that can have aspects. Additionally add
847 Expression_Copy for Aspect_Speficiations to avoid reusing
848 the Associated_Node for generic instantiation and aspect
849 analysis.
850 * ghost.adb (Remove_Ignored_Ghost_Node): Remove call to Remove_Aspects.
851 The rewritten node is a Null_Statement that cannot have aspects
852 and there is not anything to gain from removing them from the
853 Orignal_Node of N since it technically is not part of the active
854 tree.
855 * inline.adb (Process_Formals_In_Aspects): Simplify code for node traversal.
856 * par-ch13.adb: Avoid setting the parent explicitly for the
857 Aspect_Specifications list. This is done explicitly in the setter.
858 * par-ch6.adb: Likewise.
859 * par_sco.adb (Traverse_Aspects): Handle early return.
860 * sem_ch10.adb: Simplify code for Analyze_Aspect_Specifications.
861 * sem_ch11.adb: Likewise.
862 * sem_ch12.adb (Analyze_Formal_Derived_Interface_Type): Keep the aspects from
863 the orignal node after rewrite.
864 (Analyze_Formal_Derived_Type): Likewise.
865 (Analyze_Formal_Interface_Type): Likewise.
866 (Analyze_Formal_Object_Declaration): Simplify code for
867 Analyze_Aspect_Specifications.
868 (Analyze_Formal_Package_Declaration): Likewise.
869 (Analyze_Formal_Subprogram_Declaration): Likewise.
870 (Analyze_Formal_Type_Declaration): Likewise.
871 (Analyze_Generic_Package_Declaration): Remove Exchange_Aspects.
872 The new node already has the correct aspects after the rewrite.
873 Also simplify code for Analyze_Aspect_Specifications.
874 (Analyze_Generic_Subprogram_Declaration): Likewise.
875 (Analyze_Package_Instantiation): Simplify code for
876 Analyze_Aspect_Specifications.
877 (Build_Instance_Compilation_Unit_Nodes): Remove explicit copy of
878 aspects that is no longer needed.
879 (Save_References): Update the traversal code to handle
880 Aspect_Specifications in the tree.
881 (Copy_Generic_Node): Remove explicit copy for aspects. New_Copy
882 took care of that already.
883 * sem_ch13.adb (Analyze_Aspect_Specifications): Add early return to simplify
884 code for its calls. Avoid reusing the Entity(Associated_Node)
885 field for storing the original expression. Instead use the
886 new Expression_Copy field since Entity(Associated_Node) is
887 also used in generic instantiation.
888 (Analyze_Aspects_On_Subprogram_Body_Or_Stub): Simlify call
889 to Analyze_Aspect_Specifications.
890 (Check_Aspect_At_End_Of_Declarations): Use Expression_Copy
891 instead of Entity.
892 (Check_Aspect_At_Freeze_Point): Likewise.
893 * sem_ch3.adb: Simplify calls to Analyze_Aspect_Specifications.
894 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Simplify call to
895 Analyze_Aspect_Specifications.
896 (Analyze_Expression_Function): Keep the aspects from the
897 original node after a rewrite.
898 (Analyze_Generic_Subprogram_Body): Remove Exchange aspects
899 that is no longer needed. Simplify call to
900 Analyze_Aspect_Specifications.
901 (Analyze_Null_Procedure): Keep the aspects from the
902 original node after a rewrite.
903 (Analyze_Subprogram_Body_Helper): Simplify calls to
904 Analyze_Aspect_Specifications.
905 (Analyze_Subprogram_Declaration): Likewise.
906 * sem_ch7.adb (Analyze_Package_Body_Helper): Remove Exchange aspects
907 that is no longer needed. Simplify call to
908 Analyze_Aspect_Specifications.
909 (Analyze_Package_Declaration): Simplify call to
910 Analyze_Aspect_Specifications.
911 (Analyze_Private_Type_Declaration): Likewise.
912 * sem_ch8.adb: Simplify calls to
913 Analyze_Aspect_Specifications.
914 * sem_ch9.adb (Analyze_Entry_Body): Simplify call to
915 Analyze_Aspects_On_Subprogram_Body_Or_Stub.
916 (Analyze_Entry_Declaration): Simplify call to
917 Analyze_Aspect_Specifications.
918 (Analyze_Protected_Body): Likewise.
919 (Analyze_Protected_Type_Declaration): Likewise.
920 (Analyze_Single_Protected_Declaration): Keep the aspects from
921 the original node after a rewrite. Simplify call to
922 Analyze_Aspect_Specifications.
923 (Analyze_Single_Task_Declaration): Likewise.
924 (Analyze_Task_Body): Simplify call to
925 Analyze_Aspect_Specifications.
926 (Analyze_Task_Type_Declaration): Simplify calls to
927 Analyze_Aspect_Specifications.
928 * sem_dim.adb: Remove explicitly setting the parents
929 for the Aspect_Specification list.
930 * sem_disp.adb: Remove the with that is no longer
931 required since Aspect_Specifications is a node operation now.
932 * sem_util.adb (Copy_Node_With_Replacement): Remove explicit code for aspects.
933 * treepr.adb (Print_Field): Remove the version that was used for printing
934 aspects.
935 (Print_Node): Remove aspect specific code.
936
937 2023-11-07 Eric Botcazou <[email protected]>
938
939 * gen_il-gen-gen_nodes.adb (N_Op_Boolean): Fix description.
940 * sem_ch4.adb (Analyze_Comparison_Equality_Op): Tidy up.
941 * sem_ch12.adb (Copy_Generic_Node): Use N_Op_Compare subtype.
942
943 2023-11-07 Piotr Trojanek <[email protected]>
944
945 * exp_ch6.adb, exp_disp.adb, sem_ch13.adb, sem_ch3.adb: Fix newly
946 detected violations.
947
948 2023-11-07 Piotr Trojanek <[email protected]>
949
950 * sem_ch3.adb, sem_ch4.adb, sem_eval.adb: Fix newly detected
951 violations.
952
953 2023-11-07 Ronan Desplanques <[email protected]>
954
955 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix
956 -gnatwc documentation.
957 * gnat_ugn.texi: Regenerate.
958
959 2023-11-07 Steve Baird <[email protected]>
960
961 * local_restrict.ads: A new package. Declares Local_Restriction
962 enumeration type and provides operations to check for local
963 restriction violations.
964 * local_restrict.adb: Corresponding package body. Replace "not
965 Present (X)" calls with "No (X)" calls.
966 * aspects.ads: Add a new enumeration elements,
967 Aspect_Local_Restrictions and Aspect_User_Aspect, to the Aspect_Id
968 enumeration type. Update Aspect_Id-indexed aggregates. Add nested
969 package User_Aspect_Support to manage two pieces of state. One is
970 a map from identifiers to User_Aspect_Definition pragmas (updated
971 when such a pragma is encountered). The other is an
972 access-to-subprogram variable that is introduced in order to keep
973 the bulk of semantics out of the closure of package Aspects while
974 allowing a call from aspects.adb to the sem_ch13 procedure that
975 analyzes a User_Aspect aspect specification.
976 * aspects.adb (Find_Aspect): Cope with a case of a block statement
977 with an empty parent. It is not clear whether this is papering
978 over a compiler bug. Add indirect call through the aforementioned
979 access-to-subprogram variable when Find_Aspect enounters an
980 unanalyzed User_Aspect aspect specification. If Find_Aspect is
981 called looking for aspect Foo, then a User_Aspect specification
982 might generate (during analysis) a Foo aspect specification. So
983 the Find_Aspect call needs to trigger that analysis if it has not
984 already taken place. Provide a body for package
985 User_Aspect_Support. Replace "not Present (X)" call with "No (X)"
986 call.
987 * freeze.adb (Freeze_Subprogram): Check local restriction
988 compatibility when a dispatching operation is overridden.
989 * par-prag.adb: Add support for parsing a User_Aspect_Definition
990 pragma.
991 * restrict.ads: We'd like to have the body of package Restrict
992 include a call to a procedure declared in package Local_Restrict.
993 Doing that in the obvious way pulls most of semantics into the
994 closure of package Restrict, and that turns out to cause problems.
995 So we introduce a level of indirection and instead call through an
996 access-to-subprogram value. In this unit, we declare the
997 access-to-subprogram type and object.
998 * restrict.adb (Check Restriction): When a construct is
999 encountered that could violate a global restriction (depending on
1000 whether the given restriction is in effect), Check_Restriction is
1001 called. At this point, we also check for a violation of any
1002 corresponding local restriction that is in effect. For reasons
1003 described above, this check is performed via an indirect call.
1004 * sem_ch13.ads (Parse_Aspect_Local_Restrictions): A new function,
1005 similar to the existing Parse_Aspect_Xxx subprograms.
1006 * sem_ch13.adb: Perform semantic analysis of Local_Restrictions
1007 and User_Aspect aspect specifications. Declare and call new
1008 Validate_Aspect_Local_Restrictions and
1009 Analyze_User_Aspect_Aspect_Specification procedures (a reference
1010 to the latter is registered during package elaboration). In
1011 Analyze_Aspect_Specifications, do not set the Analyzed flag of a
1012 User_Aspect aspect specification. Replace "not Present (X)" call
1013 with "No (X)" call. Replace 'Image with 'Img in a case where the
1014 prefix of the attribute reference is an object; this is done to
1015 accomodate older compilers.
1016 * sem_ch6.adb (Check_Subtype_Conformant): Include in subtype
1017 conformance check a check for overriding-related compatibility of
1018 local restrictions.
1019 * sem_ch8.adb (Analyze_Subprogram_Renaming): In the case of an
1020 instance of a generic that takes a formal subprogram, check that
1021 formal and actual are compatible with respect to local
1022 restrictions.
1023 * sem_prag.adb: Add support for User_Aspect_Definition pragma.
1024 * sem_res.adb (Resolve_Call): Check caller/callee compatibility
1025 with respect to local restrictions.
1026 * snames.ads-tmpl: Add Name_Local_Restrictions, Name_User_Aspect,
1027 and Name_User_Aspect_Definition constants.
1028 * doc/gnat_rm/implementation_defined_aspects.rst: Document new
1029 aspects.
1030 * doc/gnat_rm/implementation_defined_pragmas.rst: Document new
1031 pragma.
1032 * doc/gnat_ugn/the_gnat_compilation_model.rst: Add
1033 User_Aspect_Definition to list of GNAT pragmas.
1034 * gcc-interface/Make-lang.in: Add local_restrict.o.
1035 * gnat-style.texi: Regenerate.
1036 * gnat_rm.texi: Regenerate.
1037 * gnat_ugn.texi: Regenerate.
1038
1039 2023-11-07 Bob Duff <[email protected]>
1040
1041 * sem_ch4.adb (Is_Private_Overriding): Return True in the case
1042 where a primitive operation is publicly inherited but privately
1043 overridden.
1044
1045 2023-11-07 Piotr Trojanek <[email protected]>
1046
1047 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Remove code from the
1048 ELSE branch, because it was is identical to code before the IF
1049 statements itself.
1050
1051 2023-11-07 Piotr Trojanek <[email protected]>
1052
1053 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Change Ctyp and Csiz
1054 from variables to constants and compute them using the nominal type
1055 of the assigned array object.
1056
1057 2023-11-07 Piotr Trojanek <[email protected]>
1058
1059 * exp_pakd.adb, libgnarl/s-osinte__android.ads,
1060 libgnarl/s-osinte__linux.ads, libgnarl/s-osinte__qnx.ads,
1061 libgnarl/s-osinte__rtems.ads, libgnat/s-gearop.adb,
1062 libgnat/s-poosiz.adb, sem_util.adb: Fix style.
1063
1064 2023-11-07 Piotr Trojanek <[email protected]>
1065
1066 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Simplify handling of
1067 assignments with string literals.
1068
1069 2023-11-07 Piotr Trojanek <[email protected]>
1070
1071 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Remove Rhs_Val_Known;
1072 represent unknown value by assigning Rhs_Val with No_Uint.
1073
1074 2023-11-07 Piotr Trojanek <[email protected]>
1075
1076 * exp_pakd.adb
1077 (Expand_Bit_Packed_Element_Set): Change local Decl object from
1078 variable to constant.
1079 (Setup_Inline_Packed_Array_Reference): Likewise for Csiz.
1080
1081 2023-11-07 Piotr Trojanek <[email protected]>
1082
1083 * exp_pakd.adb (Setup_Inline_Packed_Array_Reference): Remove extra
1084 whitespace from the list of parameters.
1085
1086 2023-11-07 Piotr Trojanek <[email protected]>
1087
1088 * sem_util.adb (Get_Actual_Subtype_If_Available): Only call Etype
1089 when necessary.
1090
1091 2023-11-07 Piotr Trojanek <[email protected]>
1092
1093 * sem_util.adb
1094 (Get_Actual_Subtype,Get_Actual_Subtype_If_Available): Fix handling
1095 of expanded names.
1096
1097 2023-11-07 Viljar Indus <[email protected]>
1098
1099 * sem_prag.adb: (Analyze_Pragma): Reduce the number of nested if
1100 statements.
1101
1102 2023-11-07 Viljar Indus <[email protected]>
1103
1104 * sem_ch10.adb: (Analyze_Compilation_Unit): Restore the orignal
1105 state of style check pragmas at the end of the analysis.
1106
1107 2023-11-07 Eric Botcazou <[email protected]>
1108
1109 * exp_pakd.adb (Get_Base_And_Bit_Offset): Use the full component
1110 reference instead of just the selector name for 'Bit_Position.
1111
1112 2023-11-04 David Malcolm <[email protected]>
1113
1114 * gcc-interface/misc.cc: Update for changes to diagnostic_context.
1115
1116 2023-10-22 Iain Sandoe <[email protected]>
1117
1118 * gcc-interface/Makefile.in: Handle Darwin rpaths.
1119
1120 2023-10-20 Alexandre Oliva <[email protected]>
1121
1122 * gcc-interface/trans.cc (gigi): Mark __gnat_reraise_zcx with
1123 ECF_XTHROW.
1124 (build_raise_check): Likewise for all rcheck subprograms.
1125
1126 2023-10-19 Yannick Moy <[email protected]>
1127
1128 * aspects.ads: Add aspect Side_Effects.
1129 * contracts.adb (Add_Pre_Post_Condition)
1130 (Inherit_Subprogram_Contract): Add support for new contract.
1131 * contracts.ads: Update comments.
1132 * einfo-utils.adb (Get_Pragma): Add support.
1133 * einfo-utils.ads (Prag): Update comment.
1134 * errout.ads: Add explain codes.
1135 * par-prag.adb (Prag): Add support.
1136 * sem_ch13.adb (Analyze_Aspect_Specifications)
1137 (Check_Aspect_At_Freeze_Point): Add support.
1138 * sem_ch6.adb (Analyze_Subprogram_Body_Helper)
1139 (Analyze_Subprogram_Declaration): Call new analysis procedure to
1140 check SPARK legality rules.
1141 (Analyze_SPARK_Subprogram_Specification): New procedure to check
1142 SPARK legality rules. Use an explain code for the error.
1143 (Analyze_Subprogram_Specification): Move checks to new subprogram.
1144 This code was effectively dead, as the kind for parameters was set
1145 to E_Void at this point to detect early references.
1146 * sem_ch6.ads (Analyze_Subprogram_Specification): Add new
1147 procedure.
1148 * sem_prag.adb (Analyze_Depends_In_Decl_Part)
1149 (Analyze_Global_In_Decl_Part): Adapt legality check to apply only
1150 to functions without side-effects.
1151 (Analyze_If_Present): Extract functionality in new procedure
1152 Analyze_If_Present_Internal.
1153 (Analyze_If_Present_Internal): New procedure to analyze given
1154 pragma kind.
1155 (Analyze_Pragmas_If_Present): New procedure to analyze given
1156 pragma kind associated with a declaration.
1157 (Analyze_Pragma): Adapt support for Always_Terminates and
1158 Exceptional_Cases. Add support for Side_Effects. Make sure to call
1159 Analyze_If_Present to ensure pragma Side_Effects is analyzed prior
1160 to analyzing pragmas Global and Depends. Use explain codes for the
1161 errors.
1162 * sem_prag.ads (Analyze_Pragmas_If_Present): Add new procedure.
1163 * sem_util.adb (Is_Function_With_Side_Effects): New query function
1164 to determine if a function is a function with side-effects.
1165 * sem_util.ads (Is_Function_With_Side_Effects): Same.
1166 * snames.ads-tmpl: Declare new names for pragma and aspect.
1167 * doc/gnat_rm/implementation_defined_aspects.rst: Document new aspect.
1168 * doc/gnat_rm/implementation_defined_pragmas.rst: Document new pragma.
1169 * gnat_rm.texi: Regenerate.
1170
1171 2023-10-19 Sheri Bernstein <[email protected]>
1172
1173 * libgnat/s-imagef.adb (Set_Image_Fixed): Refactor loop.
1174
1175 2023-10-19 Sheri Bernstein <[email protected]>
1176
1177 * libgnat/s-imguti.adb (Set_Decimal_Digits): Add pragma to exempt
1178 Unassigned_OUT_Parameters.
1179 (Set_Floating_Invalid_Value): Likewise
1180
1181 2023-10-19 Patrick Bernardi <[email protected]>
1182
1183 * bindusg.adb (Display): Make it clear -Q adds to the number of
1184 secondary stacks generated by the binder.
1185 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
1186 Document the -Q gnatbind switch and fix references to old
1187 runtimes.
1188 * gnat-style.texi: Regenerate.
1189 * gnat_rm.texi: Regenerate.
1190 * gnat_ugn.texi: Regenerate.
1191
1192 2023-10-19 Ronan Desplanques <[email protected]>
1193
1194 * sem_ch3.adb (Constrain_Array): Replace manual list length
1195 computation by call to List_Length.
1196
1197 2023-10-19 Piotr Trojanek <[email protected]>
1198
1199 * exp_aggr.adb (Expand_Container_Aggregate): Simplify with "No".
1200
1201 2023-10-10 Eric Botcazou <[email protected]>
1202
1203 * gcc-interface/decl.cc (inline_status_for_subprog): Minor tweak.
1204 (gnat_to_gnu_field): Try harder to get a packable form of the type
1205 for a bitfield.
1206
1207 2023-10-10 Ronan Desplanques <[email protected]>
1208
1209 * libgnat/a-direct.adb (Start_Search_Internal): Tweak subprogram
1210 body.
1211
1212 2023-10-10 Eric Botcazou <[email protected]>
1213
1214 * sem_util.ads (Set_Scope_Is_Transient): Delete.
1215 * sem_util.adb (Set_Scope_Is_Transient): Likewise.
1216 * exp_ch7.adb (Create_Transient_Scope): Set Is_Transient directly.
1217
1218 2023-10-10 Eric Botcazou <[email protected]>
1219
1220 * exp_aggr.adb (Is_Build_In_Place_Aggregate_Return): Return true
1221 if the aggregate is a dependent expression of a conditional
1222 expression being returned from a build-in-place function.
1223
1224 2023-10-10 Eric Botcazou <[email protected]>
1225
1226 PR ada/111434
1227 * sem_ch10.adb (Replace): New procedure to replace an entity with
1228 another on the homonym chain.
1229 (Install_Limited_With_Clause): Rename Non_Lim_View to Typ for the
1230 sake of consistency. Call Replace to do the replacements and split
1231 the code into the regular and the special cases. Add debuggging
1232 output controlled by -gnatdi.
1233 (Install_With_Clause): Print the Parent_With and Implicit_With flags
1234 in the debugging output controlled by -gnatdi.
1235 (Remove_Limited_With_Unit.Restore_Chain_For_Shadow (Shadow)): Rewrite
1236 using a direct replacement of E4 by E2. Call Replace to do the
1237 replacements. Add debuggging output controlled by -gnatdi.
1238
1239 2023-10-10 Ronan Desplanques <[email protected]>
1240
1241 * libgnat/a-direct.adb: Fix filesystem entry filtering.
1242
1243 2023-10-10 Ronan Desplanques <[email protected]>
1244
1245 * atree.ads, nlists.ads, types.ads: Remove references to extended
1246 nodes. Fix typo.
1247 * sinfo.ads: Likewise and fix position of
1248 Comes_From_Check_Or_Contract description.
1249
1250 2023-10-10 Javier Miranda <[email protected]>
1251
1252 * sem_attr.adb (Analyze_Attribute): Protect the frontend against
1253 replacing 'Size by its static value if 'Size is not known at
1254 compile time and we are processing pragmas Compile_Time_Warning or
1255 Compile_Time_Errors.
1256
1257 2023-10-03 David Malcolm <[email protected]>
1258
1259 * gcc-interface/misc.cc: Use text_info ctor.
1260
1261 2023-10-02 David Malcolm <[email protected]>
1262
1263 * gcc-interface/misc.cc (gnat_post_options): Update for renaming
1264 of diagnostic_context's show_caret to m_source_printing.enabled.
1265
1266 2023-09-26 Eric Botcazou <[email protected]>
1267
1268 * exp_ch7.adb (Build_Finalizer.Process_Declarations): Remove call
1269 to Is_Simple_Protected_Type as redundant.
1270 (Build_Finalizer.Process_Object_Declaration): Do not retrieve the
1271 corresponding record type for simple protected objects. Make the
1272 flow of control more explicit in their specific processing.
1273 * exp_util.adb (Requires_Cleanup_Actions): Return false for simple
1274 protected objects present in library-level package bodies for the
1275 sake of consistency with Build_Finalizer and remove call to
1276 Is_Simple_Protected_Type as redundant.
1277
1278 2023-09-26 Eric Botcazou <[email protected]>
1279
1280 PR ada/110488
1281 * sem_ch3.adb (Analyze_Object_Declaration): Do not build a default
1282 subtype for a deferred constant in the definite case too.
1283
1284 2023-09-26 Marc Poulhiès <[email protected]>
1285
1286 * exp_ch7.adb (Contains_Subprogram): Recursively search for subp
1287 in loop's statements.
1288 (Unnest_Loop)<Fixup_Inner_Scopes>: New.
1289 (Unnest_Loop): Rename local variable for more clarity.
1290 * exp_unst.ads: Refresh comment.
1291
1292 2023-09-26 Javier Miranda <[email protected]>
1293
1294 * exp_ch6.adb (Expand_Call_Helper): When computing the
1295 accessibility level of an actual parameter based on the
1296 expresssion of a constant declaration, add missing support for
1297 deferred constants
1298
1299 2023-09-26 Eric Botcazou <[email protected]>
1300
1301 * einfo.ads (Status_Flag_Or_Transient_Decl): Remove ??? comment.
1302 * exp_ch6.adb (Expand_N_Extended_Return_Statement): Extend the
1303 handling of finalizable return objects to the non-BIP case.
1304 * exp_ch7.adb (Build_Finalizer.Process_Declarations): Adjust the
1305 comment accordingly.
1306 * exp_util.adb (Requires_Cleanup_Actions): Likewise.
1307
1308 2023-09-26 Daniel King <[email protected]>
1309
1310 * raise-gcc.c (get_ip_from_context): Adapt for CHERI purecap
1311 (get_call_site_action_for): Adapt for CHERI purecap
1312
1313 2023-09-26 Daniel King <[email protected]>
1314
1315 * libgnat/a-tags.adb (To_Tag): Use System.Storage_Elements for
1316 integer to address conversion.
1317 * libgnat/s-putima.adb (Put_Image_Pointer): Likewise.
1318
1319 2023-09-26 Daniel King <[email protected]>
1320
1321 * libgnat/s-stratt__cheri.adb: New file
1322
1323 2023-09-26 Daniel King <[email protected]>
1324
1325 * libgnat/i-cheri.ads (Capability_Bound_Error)
1326 (Capability_Permission_Error, Capability_Sealed_Error)
1327 (Capability_Tag_Error): New, define CHERI exception types.
1328
1329 2023-09-26 Ronan Desplanques <[email protected]>
1330
1331 * exp_prag.adb: Make minor corrections in comments.
1332 * rtsfind.ads: Remove unused element from RTU_Id definition.
1333
1334 2023-09-26 Derek Schacht <[email protected]>
1335
1336 * doc/gnat_ugn/gnat_and_program_execution.rst: Add more details on
1337 using Generic Elementary Functions with dimensional analysis.
1338 * gnat_ugn.texi: Regenerate.
1339
1340 2023-09-26 Yannick Moy <[email protected]>
1341
1342 * exp_ch5.adb (Expand_N_Case_Statement): Reference both sections
1343 of the Ada RM that deal with case statements and case expressions
1344 to justify the insertion of a runtime check.
1345
1346 2023-09-19 Richard Wai <[email protected]>
1347
1348 * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Expanded comments
1349 explaining why TSS Finalize_Address is not generated for
1350 concurrent class-wide types.
1351 * exp_ch7.adb (Make_Finalize_Address_Stmts): Handle cases where the
1352 underlying non-constrained parent type is a concurrent type, and
1353 adjust the designated type to be the corresponding record’s
1354 class-wide type.
1355
1356 2023-09-19 Richard Wai <[email protected]>
1357
1358 * sem_ch3.adb (Build_Derived_Record_Type): Treat presence of
1359 keyword "synchronized" the same as "limited" when determining if a
1360 private extension is limited.
1361
1362 2023-09-19 Marc Poulhiès <[email protected]>
1363
1364 * gcc-interface/utils.cc (max_value): New.
1365 * gcc-interface/gigi.h (max_value): New.
1366 * gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Subtype>:
1367 When computing gnu_min/gnu_max, try to use max_value if there is
1368 an initial expression.
1369
1370 2023-09-19 Javier Miranda <[email protected]>
1371
1372 * contracts.adb
1373 (Has_Public_Visibility_Of_Subprogram): Add missing support for
1374 child subprograms.
1375
1376 2023-09-15 Eric Botcazou <[email protected]>
1377
1378 * gcc-interface/utils.cc (finish_record_type): Round the size in
1379 the padding case as well.
1380
1381 2023-09-15 Piotr Trojanek <[email protected]>
1382
1383 * exp_aggr.adb (Build_Array_Aggr_Code): Don't build aggregate code
1384 for null array aggregates.
1385 * sem_aggr.adb (Resolve_Array_Aggregate): Don't examine formatting
1386 of a null array aggregate.
1387
1388 2023-09-15 Eric Botcazou <[email protected]>
1389
1390 * inline.adb (Expand_Inlined_Call): In the case of a function call
1391 that returns an unconstrained type and initializes an object, set
1392 the No_Initialization flag on the new declaration of the object.
1393
1394 2023-09-15 Patrick Bernardi <[email protected]>
1395
1396 * exp_ch6.adb (Expand_N_Subprogram_Body): Do not perform
1397 local-exception-to- goto optimization on barrier functions.
1398 * exp_ch9.adb (Expand_Entry_Barrier): Simplify the if statement
1399 around the simple barrier optimization and remove an old, no
1400 longer relevant comment.
1401
1402 2023-09-15 Patrick Bernardi <[email protected]>
1403
1404 * bindgen.adb (Gen_Adainit): Generate restrictions when standard
1405 library is suppressed.
1406 (Gen_Output_File_Ada): Ditto.
1407 (Gen_Restrictions): Ditto.
1408
1409 2023-09-15 Eric Botcazou <[email protected]>
1410
1411 * exp_util.adb (Component_May_Be_Bit_Aligned): Do not return false
1412 for a small component of a record type with a variant part.
1413
1414 2023-09-15 Eric Botcazou <[email protected]>
1415
1416 * exp_aggr.adb (Convert_To_Assignments): In the case of a
1417 component association, call Is_Container_Aggregate on the parent's
1418 parent.
1419 (Expand_Array_Aggregate): Likewise.
1420
1421 2023-09-15 Kévin Le Gouguec <[email protected]>
1422
1423 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Remove
1424 extended discussion regarding mold run-time dependencies;
1425 packaging changes in GNAT Pro have made them obsolete.
1426
1427 2023-09-15 Eric Botcazou <[email protected]>
1428
1429 * sem_res.adb (Resolve_Call): When the target is an entity, do not
1430 freeze it if the current scope is the inner wrapper function built
1431 for an expression function with a Post or Refined_Post aspect.
1432
1433 2023-09-15 Bob Duff <[email protected]>
1434 Ronan Desplanques <[email protected]>
1435
1436 * atree.adb (Node_Kind_Table): Specify parameter explicitly in
1437 GNAT.Table instantiations. Use fully qualified references instead
1438 of relying on use clauses.
1439 (Get_Field_Value): Remove special case for F_Scope_Depth_Value.
1440 That is, enable the Field_Present check in that case.
1441 (It was already enabled for all other fields.) Violations of this
1442 check were already fixed.
1443 (Print_Node_Statistics): Sort the output in decreasing order of
1444 frequencies.
1445 (Print_Field_Statistics): Likewise (sort).
1446 * accessibility.adb (Accessibility_Level): Pass Allow_Alt_Model in
1447 recursive calls. Apparently, an oversight.
1448 (Innermost_Master_Scope_Depth): Need to special-case the 'Old
1449 attribute and allocators.
1450 * einfo-utils.ads (Scope_Depth): Use Scope_Kind_Id to get
1451 predicate checks.
1452 (Scope_Depth_Set): Likewise.
1453 (Scope_Depth_Default_0): Likewise.
1454 * einfo-utils.adb: As for spec.
1455 * frontend.adb (Frontend): Remove unnecessary "return;".
1456 * gen_il-types.ads (Scope_Kind): New union type.
1457 * gen_il-gen-gen_entities.adb (Scope_Kind): New union type.
1458 * sem.ads: Move "with Einfo.Entities;" from body to spec.
1459 (Scope_Stack_Entry): Declare Entity to be of Scope_Kind_Id to get
1460 predicate checks. We had previously been putting non-scopes on the
1461 scope stack; this prevents such anomalies.
1462 * sem.adb: Move "with Einfo.Entities;" from body to spec.
1463 * sem_ch8.ads: Move "with Einfo.Entities;" from body to spec. Add
1464 "with Types;".
1465 (Push_Scope): Use Scope_Kind_Id to get predicate checks.
1466 * sem_ch8.adb: Move "with Einfo.Entities;" from body to spec. Add
1467 "with Types;".
1468 (Push_Scope): Use Scope_Kind_Id to get predicate checks.
1469 (Pop_Scope): Use Scope_Kind_Id on popped entity to get predicate
1470 checks. This prevents anomalies where a scope pushed onto the
1471 stack is later mutated to a nonscope before being popped.
1472 * sem_util.ads (Find_Enclosing_Scope): Add postcondition to ensure
1473 that the enclosing scope of a node N is not the same node N.
1474 Clearly, N does not enclose itself.
1475 * sem_util.adb (Find_Enclosing_Scope): There were several bugs
1476 where Find_Enclosing_Scope(N) = N. For example, if N is an entity,
1477 then we would typically go up to its declaration, and then back
1478 down to the Defining_Entity of the declaration, which is N itself.
1479 There were other cases where Find_Enclosing_Scope of an entity
1480 disagreed with Scope. Clearly, Find_Enclosing_Scope and Scope
1481 should agree (when both are defined). Such bugs caused latent bugs
1482 in accessibility.adb related to 'Old, and fixing bugs here caused
1483 such bugs to be revealed. These are fixed by calling Scope when N
1484 is an entity.
1485
1486 2023-09-15 Javier Miranda <[email protected]>
1487
1488 * accessibility.ads (Needs_Result_Accessibility_Extra_Formal):
1489 Removed.
1490 * accessibility.adb (Needs_Result_Accessibility_Level_Param):
1491 Removed.
1492 (Needs_Result_Accessibility_Extra_Formal): Removed.
1493 (Needs_Result_Accessibility_Level): Revert previous patch.
1494 * sem_ch6.adb (Parent_Subprogram): Handle function overriding an
1495 enumeration literal.
1496 (Create_Extra_Formals): Ensure that the parent subprogram has all
1497 its extra formals.
1498
1499 2023-09-14 Yannick Moy <[email protected]>
1500
1501 * exp_util.adb (Is_Statically_Disabled): New function to detect a
1502 "statically disabled condition which evaluates to a given value",
1503 as described in SPARK UG 7.3.2.
1504 (Kill_Dead_Code): Call the new function Is_Statically_Disabled for
1505 conditions of if statements.
1506 * exp_util.ads (Is_Statically_Disabled): New function spec.
1507
1508 2023-09-14 Javier Miranda <[email protected]>
1509
1510 * exp_util.adb (Process_Record_Component): Adjust assertion on the
1511 availablity of the invariant procedure; required because the
1512 invariant procedure is built by the expander, and hence it is not
1513 available compiling generic units or when the sources have errors,
1514 since expansion is then disabled.
1515
1516 2023-09-14 Javier Miranda <[email protected]>
1517
1518 * sem_util.adb (Large_Max_Size_Mutable): Protect access to
1519 attribute Is_Array_Type.
1520
1521 2023-09-14 Javier Miranda <[email protected]>
1522
1523 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): Protect
1524 access to Entity attribute and add missing code to check function
1525 selector in a prefix form call.
1526
1527 2023-09-14 Eric Botcazou <[email protected]>
1528
1529 * exp_ch6.adb (Expand_Ctrl_Function_Call): Also do nothing for the
1530 expression of a delta aggregate.
1531
1532 2023-09-14 Eric Botcazou <[email protected]>
1533
1534 * exp_util.adb (Initialized_By_Aliased_BIP_Func_Call): Make the name
1535 matching more robust.
1536
1537 2023-09-14 Javier Miranda <[email protected]>
1538
1539 * sem_ch6.adb (Parent_Subprogram): Complete assertion.
1540
1541 2023-09-05 Eric Botcazou <[email protected]>
1542
1543 * gcc-interface/trans.cc (gnat_to_gnu): Really test Storage_Pool on
1544 the simple return statement.
1545
1546 2023-09-05 Tom Tromey <[email protected]>
1547
1548 * gcc-interface/decl.cc (gnat_to_gnu_entity): Set bit-packed for
1549 constrained and unconstrained array types.
1550 * gcc-interface/misc.cc (gnat_get_array_descr_info): Examine
1551 BIT_PACKED_ARRAY_TYPE_P.
1552
1553 2023-09-05 Piotr Trojanek <[email protected]>
1554
1555 * sem_type.adb (Interface_Present_In_Ancestor): Remove guard against no
1556 list of interfaces; fix style in comments (trailing dots).
1557
1558 2023-09-05 Piotr Trojanek <[email protected]>
1559
1560 * sem_type.adb (Iface_Present_In_Ancestor): Only look at the list of
1561 interfaces for types that allow it. The guard is a high-level equivalent
1562 of the entity kinds listed in the preconditon of the Interfaces query.
1563
1564 2023-09-05 Piotr Trojanek <[email protected]>
1565
1566 * sem_type.adb (Iface_Present_In_Ancestor): Remove guard for empty list
1567 of interfaces; the following loop will work just fine without it.
1568
1569 2023-09-05 Eric Botcazou <[email protected]>
1570
1571 * exp_ch9.adb (Build_Protected_Entry): Move the At_End procedure
1572 from the entry body to the inner block statement.
1573
1574 2023-09-05 Bob Duff <[email protected]>
1575
1576 * sem_ch4.adb (Find_Component_In_Instance): Check that
1577 Declaration_Node (Par) is not Empty, as it is for itypes.
1578
1579 2023-09-05 Ronan Desplanques <[email protected]>
1580
1581 * sem_ch7.adb (Analyze_Package_Declaration): Restrict calls to
1582 `Sem_Warn.Check_References` and adjust comment accordingly.
1583
1584 2023-09-05 Eric Botcazou <[email protected]>
1585
1586 * freeze.adb (Freeze_Enumeration_Type): Give an error on a type with
1587 both representation clause and too large size.
1588
1589 2023-09-05 Liaiss Merzougue <[email protected]>
1590
1591 * libgnat/s-imguti.adb: Remove comment.
1592
1593 2023-09-05 Javier Miranda <[email protected]>
1594
1595 * accessibility.ads (Needs_Result_Accessibility_Extra_Formal): New
1596 subprogram.
1597 * accessibility.adb (Needs_Result_Accessibility_Level_Param): New
1598 subprogram.
1599 (Needs_Result_Accessibility_Extra_Formal): New subprogram,
1600 temporarily keep the previous behavior of the frontend.
1601 * sem_ch6.adb (Create_Extra_Formals): Replace occurrences of
1602 function Needs_Result_Accessibility_Level_Param by calls to
1603 function Needs_Result_Accessibility_Extra_Formal.
1604 (Extra_Formals_OK): Ditto.
1605
1606 2023-09-05 Alexandre Oliva <[email protected]>
1607
1608 * libgnat/system-vxworks-ppc-rtp-smp.ads: Add -msmp to
1609 Linker_Options pragma.
1610
1611 2023-09-05 Javier Miranda <[email protected]>
1612
1613 * exp_aggr.adb (Expand_Container_Aggregate): Report warning on
1614 infinite recursion if an empty container aggregate appears in the
1615 return statement of its Empty function. Fix typo in comment.
1616 * sem_aggr.adb (Resolve_Aggregate): Resolve Ada 2022 empty
1617 aggregate that initializes a record type that has defined its
1618 container aggregate aspects.
1619 (Resolve_Iterated_Association): Protect access to attribute Etype.
1620 * sem_ch13.adb (Resolve_Aspect_Aggregate): Fix typo in comment.
1621
1622 2023-09-05 Steve Baird <[email protected]>
1623
1624 * sem_attr.adb (Denote_Same_Function): Handle the case where
1625 Has_Homonym (Pref_Id) returns True but Homonym (Pref_Id) returns
1626 an empty result.
1627
1628 2023-09-05 Steve Baird <[email protected]>
1629
1630 * sem_res.adb (Resolve_Unary_Op): In deciding whether to emit a
1631 warning about a modular type's unary minus operator being applied
1632 to an integer literal, ignore integer literals for which
1633 Comes_From_Source is False.
1634
1635 2023-09-05 Johannes Kliemann <[email protected]>
1636
1637 * libgnarl/s-taprop__qnx.adb: Implement Set_Task_Affinity.
1638
1639 2023-09-05 Ghjuvan Lacambre <[email protected]>
1640
1641 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix
1642 index.
1643 * gnat_ugn.texi: Regenerate.
1644
1645 2023-09-05 Daniel King <[email protected]>
1646
1647 * libgnat/s-carsi8.adb: Use operations from
1648 System.Storage_Elements for address arithmetic.
1649 * libgnat/s-carun8.adb: Likewise
1650 * libgnat/s-casi128.adb: Likewise
1651 * libgnat/s-casi16.adb: Likewise
1652 * libgnat/s-casi32.adb: Likewise
1653 * libgnat/s-casi64.adb: Likewise
1654 * libgnat/s-caun128.adb: Likewise
1655 * libgnat/s-caun16.adb: Likewise
1656 * libgnat/s-caun32.adb: Likewise
1657 * libgnat/s-caun64.adb: Likewise
1658 * libgnat/s-geveop.adb: Likewise
1659
1660 2023-09-05 Eric Botcazou <[email protected]>
1661
1662 * sem_ch12.adb (Component_Type_For_Private_View): New function.
1663 (Check_Generic_Actuals): For an actual type parameter, also check
1664 its component type if it is an array type.
1665 (Check_Private_View): Use Component_Type_For_Private_View in the
1666 case of an array type.
1667 (Instantiate_Type): Likewise.
1668 (Save_Global_References.Set_Global_Type): Likewise.
1669
1670 2023-09-05 Sheri Bernstein <[email protected]>
1671
1672 * libgnat/s-aridou.adb: Add pragma to exempt Metrics_LSLOC.
1673 (Double_Divide): Add pragma to exempt
1674 Metrics_Cyclomatic_Complexity.
1675 (Scaled_Divide): Likewise.
1676 * libgnat/s-vauspe.ads (Uns_Option): Add pragma to exempt
1677 Discriminated_Records.
1678
1679 2023-09-05 Ronan Desplanques <[email protected]>
1680
1681 * Makefile.rtl: Add missing units.
1682
1683 2023-09-05 Sheri Bernstein <[email protected]>
1684
1685 * libgnarl/a-reatim.adb (Time_Of): Add pragma to exempt
1686 Discriminated_Records.
1687 * libgnat/s-imguti.adb (Round, Set_Decimal_Digits): Likewise.
1688 * libgnat/s-multip.adb (Number_Of_CPUs): Likewise.
1689 * libgnarl/s-tpopsp__posix-foreign.adb (Self): Refactor multiple
1690 returns.
1691
1692 2023-09-05 Javier Miranda <[email protected]>
1693
1694 * sem_ch3.adb (Add_Internal_Interface_Entities): Add missing
1695 subtype-conformance check on primitives implementing interface
1696 primitives.
1697 (Error_Posted_In_Formals): New subprogram.
1698
1699 2023-09-05 Ronan Desplanques <[email protected]>
1700
1701 * libgnarl/s-tassta.adb: Tweak comment.
1702
1703 2023-09-05 Yang Yujie <[email protected]>
1704
1705 * Makefile.rtl: Add LoongArch support.
1706 * libgnarl/s-linux__loongarch.ads: New file.
1707 * libgnat/system-linux-loongarch.ads: New file.
1708
1709 2023-08-07 Sheri Bernstein <[email protected]>
1710
1711 * libgnat/s-parame__qnx.adb: Refactor multiple returns.
1712
1713 2023-08-07 Piotr Trojanek <[email protected]>
1714
1715 * libgnat/i-cstrin.ads (Value): Extend preconditions; adapt comment for
1716 the package.
1717
1718 2023-08-07 Yannick Moy <[email protected]>
1719
1720 * sem_res.adb (Resolve_Call): Always call Cannot_Inline so that
1721 subprogram called is marked as not always inlined.
1722
1723 2023-08-07 Javier Miranda <[email protected]>
1724
1725 * sem_res.adb (Resolve_Type_Conversion): Do not warn on conversion
1726 to class-wide type on internally build helpers of class-wide
1727 preconditions.
1728
1729 2023-08-03 Sheri Bernstein <[email protected]>
1730
1731 * libgnat/s-aridou.adb: Add pragma to exempt Improper_Returns.
1732 * libgnat/s-atopri.adb (Lock_Free_Try_Write): Likewise.
1733 * libgnat/s-bitops.adb (Bit_Eq): Likewise.
1734 * libgnat/s-carsi8.adb: Likewise.
1735 * libgnat/s-carun8.adb: Likewise.
1736 * libgnat/s-casi16.adb: Likewise.
1737 * libgnat/s-casi32.adb: Likewise.
1738 * libgnat/s-casi64.adb: Likewise.
1739 * libgnat/s-caun16.adb: Likewise.
1740 * libgnat/s-caun32.adb: Likewise.
1741 * libgnat/s-caun64.adb: Likewise.
1742 * libgnat/s-exponn.adb: Likewise.
1743 * libgnat/s-expont.adb: Likewise.
1744 * libgnat/s-valspe.adb: Likewise.
1745 * libgnat/s-vauspe.adb: Likewise.
1746
1747 2023-08-03 Vasiliy Fofanov <[email protected]>
1748
1749 * libgnat/s-imageb.adb (Set_Image_Based_Unsigned): Rewritten.
1750 * libgnat/s-imagew.adb (Set_Image_Width_Unsigned): Likewise.
1751
1752 2023-08-03 Eric Botcazou <[email protected]>
1753
1754 * exp_util.adb (Make_Invariant_Call): Convert the expression to
1755 the type of the formal parameter if need be.
1756
1757 2023-08-03 Eric Botcazou <[email protected]>
1758
1759 * libgnat/s-dwalin.adb ("-"): New subtraction operator.
1760 (Enable_Cache): Use it to compute the offset.
1761 (Symbolic_Address): Likewise.
1762
1763 2023-08-01 Yannick Moy <[email protected]>
1764
1765 * repinfo.adb (Compute_Max_Length): Set parameter to print number
1766 in decimal notation.
1767 (List_Component_Layout): Same.
1768
1769 2023-08-01 Yannick Moy <[email protected]>
1770
1771 * inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Check for
1772 Skip_Proof and Skip_Flow_And_Proof annotations for deciding
1773 whether a subprogram can be inlined.
1774
1775 2023-08-01 Steve Baird <[email protected]>
1776
1777 * sem_ch3.adb (Constrain_Corresponding_Record): When copying
1778 information from the unconstrained record type to a newly
1779 constructed constrained record subtype, the
1780 Direct_Primitive_Operations attribute must be copied.
1781
1782 2023-08-01 Steve Baird <[email protected]>
1783
1784 * sem_ch3.adb (Analyze_Component_Declaration): Remove
1785 Build_Default_Subtype_OK call and code that could only executed in
1786 the case where the removed call would have returned True. Other
1787 calls to Build_Default_Subtype_Ok are unaffected by this change.
1788
1789 2023-08-01 Pascal Obry <[email protected]>
1790
1791 * aspects.ads (Find_Aspect): Add Boolean parameter Or_Rep_Item
1792 (defaulted to False).
1793 * aspects.adb (Find_Aspect): If new Boolean parameter Or_Rep_Item
1794 is True, then instead of returning an empty result if no
1795 appropriate N_Aspect_Specification node is found, return an
1796 appropriate N_Attribute_Definition_Clause if one is found.
1797 * exp_put_image.ads: Change name of Enable_Put_Image function to
1798 Put_Image_Enabled.
1799 * exp_put_image.adb (Build_Record_Put_Image_Procedure): Detect the
1800 case where a call to the Put_Image procedure of a derived type can
1801 be transformed into a call to the parent type's Put_Image
1802 procedure (with a type conversion to the parent type as the actual
1803 parameter).
1804 (Put_Image_Enabled): Change name of function (previously
1805 Enable_Put_Image). Return True in more cases. In particular,
1806 return True for a type with an explicitly specified Put_Image
1807 aspect even if the type is declared in a predefined unit (or in an
1808 instance of a predefined generic unit).
1809 * exp_attr.adb: Changes due to Put_Image_Enabled function name
1810 change.
1811
1812 2023-08-01 Yannick Moy <[email protected]>
1813
1814 * repinfo.adb (List_Common_Type_Info): Fix output when alignment
1815 is not statically known, and fix assertion when expansion is not
1816 enabled.
1817
1818 2023-08-01 Bob Duff <[email protected]>
1819
1820 * atree.adb (Field_Present): New function to detect whether or not
1821 a given field is present in a given node, based on either the node
1822 kind or the entity kind as appropriate.
1823 (Get_Field_Value): Check that the field begin fetched exists.
1824 However, disable the check in the case of Scope_Depth_Value,
1825 because we have failures in that case. Those failures need to be
1826 fixed, and then the check can be enabled for all fields.
1827 (Set_Field_Value): Check that the field begin set exists.
1828
1829 2023-08-01 Léo Creuse <[email protected]>
1830
1831 * par_sco.adb (Process_Decisions): Traverse all attributes of
1832 quantified expressions nodes.
1833
1834 2023-07-28 Eric Botcazou <[email protected]>
1835
1836 * gcc-interface/trans.cc (gnat_to_gnu): Restrict previous change to
1837 the case where the simple return statement has got no storage pool.
1838
1839 2023-07-28 Clément Chigot <[email protected]>
1840
1841 * libgnarl/s-inmaop__posix.adb: Add assert after sigwait in
1842 Interrupt_Wait
1843
1844 2023-07-28 Javier Miranda <[email protected]>
1845
1846 * einfo-utils.adb (Underlying_Type): Protect recursion call
1847 against non-available attribute Etype.
1848 * einfo.ads (Protected_Subprogram): Fix typo in documentation.
1849 * exp_ch3.adb (BIP_Function_Call_Id): New subprogram.
1850 (Expand_N_Object_Declaration): Improve code that evaluates if the
1851 object is initialized with a BIP function call.
1852 * exp_ch6.adb (Is_True_Build_In_Place_Function_Call): New
1853 subprogram.
1854 (Add_Task_Actuals_To_Build_In_Place_Call): Add dummy actuals if
1855 the function does not require the BIP task actuals but it is a
1856 dispatching operation that inherited them.
1857 (Build_In_Place_Formal): Improve code to avoid never-ending loop
1858 if the BIP formal is not found.
1859 (Add_Dummy_Build_In_Place_Actuals): New subprogram.
1860 (Expand_Call_Helper): Add calls to
1861 Add_Dummy_Build_In_Place_Actuals.
1862 (Expand_N_Extended_Return_Statement): Adjust assertion.
1863 (Expand_Simple_Function_Return): Adjust assertion.
1864 (Make_Build_In_Place_Call_In_Allocator): No action needed if the
1865 called function inherited the BIP extra formals but it is not a
1866 true BIP function.
1867 (Make_Build_In_Place_Call_In_Assignment): Ditto.
1868 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Remove code
1869 reporting unsupported case (since this patch adds support for it).
1870 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Adding assertion
1871 to ensure matching of BIP formals when setting the
1872 Protected_Formal field of a protected subprogram to reference the
1873 corresponding extra formal of the subprogram that implements it.
1874 (Might_Need_BIP_Task_Actuals): New subprogram.
1875 (Create_Extra_Formals): Improve code adding inherited extra
1876 formals.
1877
1878 2023-07-28 Pascal Obry <[email protected]>
1879
1880 * s-oscons-tmplt.c: Add support for SO_BINDTODEVICE constant.
1881 * libgnat/g-socket.ads (Set_Socket_Option): Handle SO_BINDTODEVICE option.
1882 (Get_Socket_Option): Handle SO_BINDTODEVICE option.
1883 * libgnat/g-socket.adb: Likewise.
1884 (Get_Socket_Option): Handle the case where IF_NAMESIZE is not defined
1885 and so equal to -1.
1886
1887 2023-07-28 Léo Creuse <[email protected]>
1888
1889 * par_sco.adb (Has_Decision): Consider that quantified expressions
1890 contain decisions.
1891
1892 2023-07-28 Ronan Desplanques <[email protected]>
1893
1894 * libgnarl/s-tposen.adb: Fix race condition. Add comment to justify
1895 the locking timing.
1896
1897 2023-07-28 Viljar Indus <[email protected]>
1898
1899 * exp_util.adb (Find_Optional_Prim_Op): use "No" instead of "= Empty"
1900
1901 2023-07-28 Piotr Trojanek <[email protected]>
1902
1903 * sem_res.adb (Resolve_Actuals): Add guard for the call to
1904 Class_Preconditions_Subprogram.
1905
1906 2023-07-28 Eric Botcazou <[email protected]>
1907
1908 * exp_aggr.adb (Is_Two_Dim_Packed_Array): Return true only if the
1909 component type of the array is scalar.
1910
1911 2023-07-28 Piotr Trojanek <[email protected]>
1912
1913 * sem_ch6.adb (Check_Statement_Sequence): Only warn about missing return
1914 statements and let GNATprove emit a check when needed.
1915
1916 2023-07-28 Tom Tromey <[email protected]>
1917
1918 * fe.h (Convention): Now inline function.
1919 * gen_il-gen.adb (Put_C_Type_And_Subtypes.Put_Enum_Lit)
1920 (Put_C_Type_And_Subtypes.Put_Kind_Subtype, Put_C_Getter):
1921 Emit enum.
1922 * snames.h-tmpl (Name_Id, Name_, Attribute_Id, Attribute_)
1923 (Convention_Id, Convention_, Pragma_Id, Pragma_): Now enum.
1924 (Get_Attribute_Id, Get_Pragma_Id): Now inline functions.
1925 * types.h (Node_Kind, Entity_Kind, Convention_Id, Name_Id):
1926 Now enum.
1927 * xsnamest.adb (Output_Header_Line, Make_Value): Emit enum.
1928
1929 2023-07-28 Piotr Trojanek <[email protected]>
1930
1931 * libgnat/a-except.ads (Save_Occurrence): Fix typo.
1932
1933 2023-07-28 Piotr Trojanek <[email protected]>
1934
1935 * einfo-utils.adb (Number_Formals): Change types in body.
1936 * einfo-utils.ads (Number_Formals): Change type in spec.
1937 * einfo.ads (Number_Formals): Change type in comment.
1938 * sem_ch13.adb (Is_Property_Function): Fix style in a caller of
1939 Number_Formals that was likely to crash because of missing guards.
1940
1941 2023-07-28 Piotr Trojanek <[email protected]>
1942
1943 * sem_warn.adb (Check_Infinite_Loop_Warning): Don't look at the type of
1944 actual parameter when it has no type at all, e.g. because the entire
1945 subprogram call is illegal.
1946
1947 2023-07-18 Tom Tromey <[email protected]>
1948
1949 * gcc-interface/decl.cc (check_ok_for_atomic_type): Use Pragma_Id.
1950 * gcc-interface/trans.cc (lvalue_required_p, Pragma_to_gnu): Use
1951 Pragma_Id.
1952 (get_type_length, Attribute_to_gnu, get_atomic_access): Use
1953 Attribute_Id.
1954
1955 2023-07-18 Javier Miranda <[email protected]>
1956
1957 * exp_imgv.adb (Rewrite_Object_Image): fix type of formal. Found
1958 reading sources.
1959 (Expand_Wide_Image_Attribute): ditto.
1960 (Expand_Wide_Wide_Image_Attribute): ditto.
1961 (Rewrite_Object_Image): ditto.
1962 * exp_put_image.adb (Build_Image_Call): For class-wide interface
1963 type prefix generate code to displace the pointer to the object to
1964 reference the base of the underlying object.
1965
1966 2023-07-18 Viljar Indus <[email protected]>
1967
1968 * sem_aggr.adb (Resolve_Iterated_Association): Add temporary scope
1969 when analyzing the Iterator Specification. Use preanalysis instead
1970 of Analysis to avoid polluting the tree.
1971
1972 2023-07-18 Viljar Indus <[email protected]>
1973
1974 * sem_aggr.adb (Resolve_Iterated_Association): Use the element
1975 type for the iterator in a container aggregate with an iterator
1976 specification.
1977
1978 2023-07-18 Viljar Indus <[email protected]>
1979
1980 * exp_aggr.adb (Expand_Container_Aggregate): Use the positional
1981 addition method only when dealing with a container aggregate
1982 without an Iterator Specification e.g. with a loop parameter
1983 specification
1984
1985 2023-07-18 Eric Botcazou <[email protected]>
1986
1987 * sem_util.ads (Wrong_Type): Add Multiple parameter defaulting to
1988 False and document it.
1989 * sem_util.adb (Wrong_Type): Do not return early if an error has
1990 already been posted on Expr and Multiple is True.
1991 * sem_ch4.adb (Analyze_One_Call): Pass All_Errors_Mode as the
1992 actual parameter for Multiple to Wrong_Type.
1993
1994 2023-07-18 Javier Miranda <[email protected]>
1995
1996 * exp_disp.adb (Has_Dispatching_Constructor_Call): Removed.
1997 (Expand_Interface_Conversion): Reverse patch.
1998
1999 2023-07-18 Ronan Desplanques <[email protected]>
2000
2001 * libgnarl/s-taprop__linux.adb (Set_Task_Affinity, Create_Task): Tweak
2002 handling of CPU affinities.
2003
2004 2023-07-18 Eric Botcazou <[email protected]>
2005
2006 * sem_type.ads (Is_Ancestor): Remove mention of tagged type.
2007 * exp_aggr.adb: Add with and use clauses for Sem_Type.
2008 (Build_Record_Aggr_Code.Replace_Type): Call Is_Ancestor to spot
2009 self-references to the type of the aggregate.
2010 * sem_aggr.adb (Resolve_Record_Aggregate.Add_Discriminant_Values):
2011 Likewise.
2012
2013 2023-07-18 Eric Botcazou <[email protected]>
2014
2015 * sem_ch13.adb (Replace_Type_References_Generic.Visible_Component):
2016 In the case of private discriminated types, explicitly check that we
2017 have a private declaration before examining its discriminant part.
2018
2019 2023-07-18 Alexandre Oliva <[email protected]>
2020
2021 * libgnat/a-except.ads (Raise_Exception): Mark expected_throw.
2022 (Reraise_Occurrence): Likewise.
2023 (Raise_Exception_Always): Likewise.
2024 (Raise_From_Controlled_Operation): Likewise.
2025 (Reraise_Occurrence_Always): Likewise.
2026 (Reraise_Occurrence_No_Defer): Likewise.
2027 * libgnat/a-except.adb
2028 (Exception_Propagation.Propagate_Exception): Likewise.
2029 (Complete_And_Propagate_Occurrence): Likewise.
2030 (Raise_Exception_No_Defer): Likewise.
2031 (Raise_From_Signal_Handler): Likewise.
2032 (Raise_With_Msg): Likewise.
2033 (Raise_With_Location_And_Msg): Likewise.
2034 (Raise_Constraint_Error): Likewise.
2035 (Raise_Constraint_Error_Msg): Likewise.
2036 (Raise_Program_Error): Likewise.
2037 (Raise_Program_Error_Msg): Likewise.
2038 (Raise_Storage_Error): Likewise.
2039 (Raise_Storage_Error_Msg): Likewise.
2040 (Reraise, Rcheck_*): Likewise.
2041 * doc/gnat_rm/security_hardening_features.rst (Control Flow
2042 Hardening): Note the influence of expected_throw.
2043 * gnat_rm.texi: Regenerate.
2044 * gnat_ugn.texi: Regenerate.
2045 * gcc-interface/utils.cc (handle_expected_throw_attribute): New.
2046 (gnat_internal_attribute_table): Add expected_throw.
2047
2048 2023-07-18 Vasiliy Fofanov <[email protected]>
2049
2050 * libgnat/s-pack03.adb: Update copyright year; refactor return statements.
2051 * libgnat/s-pack05.adb: Likewise.
2052 * libgnat/s-pack06.adb: Likewise.
2053 * libgnat/s-pack07.adb: Likewise.
2054 * libgnat/s-pack09.adb: Likewise.
2055 * libgnat/s-pack10.adb: Likewise.
2056 * libgnat/s-pack100.adb: Likewise.
2057 * libgnat/s-pack101.adb: Likewise.
2058 * libgnat/s-pack102.adb: Likewise.
2059 * libgnat/s-pack103.adb: Likewise.
2060 * libgnat/s-pack104.adb: Likewise.
2061 * libgnat/s-pack105.adb: Likewise.
2062 * libgnat/s-pack106.adb: Likewise.
2063 * libgnat/s-pack107.adb: Likewise.
2064 * libgnat/s-pack108.adb: Likewise.
2065 * libgnat/s-pack109.adb: Likewise.
2066 * libgnat/s-pack11.adb: Likewise.
2067 * libgnat/s-pack110.adb: Likewise.
2068 * libgnat/s-pack111.adb: Likewise.
2069 * libgnat/s-pack112.adb: Likewise.
2070 * libgnat/s-pack113.adb: Likewise.
2071 * libgnat/s-pack114.adb: Likewise.
2072 * libgnat/s-pack115.adb: Likewise.
2073 * libgnat/s-pack116.adb: Likewise.
2074 * libgnat/s-pack117.adb: Likewise.
2075 * libgnat/s-pack118.adb: Likewise.
2076 * libgnat/s-pack119.adb: Likewise.
2077 * libgnat/s-pack12.adb: Likewise.
2078 * libgnat/s-pack120.adb: Likewise.
2079 * libgnat/s-pack121.adb: Likewise.
2080 * libgnat/s-pack122.adb: Likewise.
2081 * libgnat/s-pack123.adb: Likewise.
2082 * libgnat/s-pack124.adb: Likewise.
2083 * libgnat/s-pack125.adb: Likewise.
2084 * libgnat/s-pack126.adb: Likewise.
2085 * libgnat/s-pack127.adb: Likewise.
2086 * libgnat/s-pack13.adb: Likewise.
2087 * libgnat/s-pack14.adb: Likewise.
2088 * libgnat/s-pack15.adb: Likewise.
2089 * libgnat/s-pack17.adb: Likewise.
2090 * libgnat/s-pack18.adb: Likewise.
2091 * libgnat/s-pack19.adb: Likewise.
2092 * libgnat/s-pack20.adb: Likewise.
2093 * libgnat/s-pack21.adb: Likewise.
2094 * libgnat/s-pack22.adb: Likewise.
2095 * libgnat/s-pack23.adb: Likewise.
2096 * libgnat/s-pack24.adb: Likewise.
2097 * libgnat/s-pack25.adb: Likewise.
2098 * libgnat/s-pack26.adb: Likewise.
2099 * libgnat/s-pack27.adb: Likewise.
2100 * libgnat/s-pack28.adb: Likewise.
2101 * libgnat/s-pack29.adb: Likewise.
2102 * libgnat/s-pack30.adb: Likewise.
2103 * libgnat/s-pack31.adb: Likewise.
2104 * libgnat/s-pack33.adb: Likewise.
2105 * libgnat/s-pack34.adb: Likewise.
2106 * libgnat/s-pack35.adb: Likewise.
2107 * libgnat/s-pack36.adb: Likewise.
2108 * libgnat/s-pack37.adb: Likewise.
2109 * libgnat/s-pack38.adb: Likewise.
2110 * libgnat/s-pack39.adb: Likewise.
2111 * libgnat/s-pack40.adb: Likewise.
2112 * libgnat/s-pack41.adb: Likewise.
2113 * libgnat/s-pack42.adb: Likewise.
2114 * libgnat/s-pack43.adb: Likewise.
2115 * libgnat/s-pack44.adb: Likewise.
2116 * libgnat/s-pack45.adb: Likewise.
2117 * libgnat/s-pack46.adb: Likewise.
2118 * libgnat/s-pack47.adb: Likewise.
2119 * libgnat/s-pack48.adb: Likewise.
2120 * libgnat/s-pack49.adb: Likewise.
2121 * libgnat/s-pack50.adb: Likewise.
2122 * libgnat/s-pack51.adb: Likewise.
2123 * libgnat/s-pack52.adb: Likewise.
2124 * libgnat/s-pack53.adb: Likewise.
2125 * libgnat/s-pack54.adb: Likewise.
2126 * libgnat/s-pack55.adb: Likewise.
2127 * libgnat/s-pack56.adb: Likewise.
2128 * libgnat/s-pack57.adb: Likewise.
2129 * libgnat/s-pack58.adb: Likewise.
2130 * libgnat/s-pack59.adb: Likewise.
2131 * libgnat/s-pack60.adb: Likewise.
2132 * libgnat/s-pack61.adb: Likewise.
2133 * libgnat/s-pack62.adb: Likewise.
2134 * libgnat/s-pack63.adb: Likewise.
2135 * libgnat/s-pack65.adb: Likewise.
2136 * libgnat/s-pack66.adb: Likewise.
2137 * libgnat/s-pack67.adb: Likewise.
2138 * libgnat/s-pack68.adb: Likewise.
2139 * libgnat/s-pack69.adb: Likewise.
2140 * libgnat/s-pack70.adb: Likewise.
2141 * libgnat/s-pack71.adb: Likewise.
2142 * libgnat/s-pack72.adb: Likewise.
2143 * libgnat/s-pack73.adb: Likewise.
2144 * libgnat/s-pack74.adb: Likewise.
2145 * libgnat/s-pack75.adb: Likewise.
2146 * libgnat/s-pack76.adb: Likewise.
2147 * libgnat/s-pack77.adb: Likewise.
2148 * libgnat/s-pack78.adb: Likewise.
2149 * libgnat/s-pack79.adb: Likewise.
2150 * libgnat/s-pack80.adb: Likewise.
2151 * libgnat/s-pack81.adb: Likewise.
2152 * libgnat/s-pack82.adb: Likewise.
2153 * libgnat/s-pack83.adb: Likewise.
2154 * libgnat/s-pack84.adb: Likewise.
2155 * libgnat/s-pack85.adb: Likewise.
2156 * libgnat/s-pack86.adb: Likewise.
2157 * libgnat/s-pack87.adb: Likewise.
2158 * libgnat/s-pack88.adb: Likewise.
2159 * libgnat/s-pack89.adb: Likewise.
2160 * libgnat/s-pack90.adb: Likewise.
2161 * libgnat/s-pack91.adb: Likewise.
2162 * libgnat/s-pack92.adb: Likewise.
2163 * libgnat/s-pack93.adb: Likewise.
2164 * libgnat/s-pack94.adb: Likewise.
2165 * libgnat/s-pack95.adb: Likewise.
2166 * libgnat/s-pack96.adb: Likewise.
2167 * libgnat/s-pack97.adb: Likewise.
2168 * libgnat/s-pack98.adb: Likewise.
2169 * libgnat/s-pack99.adb: Likewise.
2170
2171 2023-07-18 Yannick Moy <[email protected]>
2172
2173 * errout.adb (Error_Msg_Internal): Remove call to
2174 Prescan_Message on the special continuation for the explain code
2175 command, as this does not play well with the setting of global
2176 variables for the message (like its status as a warning or not).
2177 Instead, set directly the global variables regarding content of
2178 the message in terms of special characters.
2179
2180 2023-07-18 Eric Botcazou <[email protected]>
2181
2182 * sem_util.ads (Validated_View): Document enhanced behavior.
2183 * sem_util.adb (Validated_View): Return the nonlimited view, if any,
2184 of types coming from a limited with.
2185
2186 2023-07-11 Bob Duff <[email protected]>
2187
2188 * exp_ch3.adb (Expand_N_Object_Declaration): Avoid transforming to
2189 a renaming in case of constrained array that comes from source.
2190
2191 2023-07-11 Eric Botcazou <[email protected]>
2192
2193 * sem_ch13.adb (Replace_Type_References_Generic.Visible_Component):
2194 In the case of private discriminated types, return a discriminant
2195 only if it is listed in the discriminant part of the declaration.
2196
2197 2023-07-10 Eric Botcazou <[email protected]>
2198
2199 * adaint.c [_WIN32]: Undefine 'abort' macro.
2200
2201 2023-07-10 Tom Tromey <[email protected]>
2202
2203 * snames.h-tmpl (Name_Id, Attribute_Id, Convention_Id)
2204 (Pragma_Id): New typedefs.
2205 (Get_Attribute_Id, Get_Pragma_Id): Use typedef.
2206
2207 2023-07-10 Yannick Moy <[email protected]>
2208
2209 * libgnat/s-aridou.adb (Lemma_Powers_Of_2_Commutation): Rewrite
2210 assertion.
2211
2212 2023-07-10 Bob Duff <[email protected]>
2213
2214 * doc/gnat_rm/gnat_language_extensions.rst
2215 (Local Declarations Without Block): Document the feature very
2216 briefly, and refer the reader to the RFC for details and examples.
2217 * gnat_rm.texi: Regenerate.
2218 * gnat_ugn.texi: Regenerate.
2219
2220 2023-07-10 Alexandre Oliva <[email protected]>
2221
2222 * doc/gnat_rm/security_hardening_features.rst (Control Flow
2223 Hardening): Document -fhardcfr-skip-leaf.
2224 * gnat_rm.texi: Regenerate.
2225
2226 2023-07-10 Alexandre Oliva <[email protected]>
2227
2228 * doc/gnat_rm/security_hardening_features.rst (Control Flow
2229 Redundancy): Add -fhardcfr-check-noreturn-calls=no-xthrow.
2230 * gnat_rm.texi: Regenerate.
2231
2232 2023-07-10 Yannick Moy <[email protected]>
2233
2234 * libgnat/s-aridou.adb (Lemma_Div_Mult): New simple lemma.
2235 (Lemma_Powers_Of_2_Commutation): State post in else branch.
2236 (Lemma_Div_Pow2): Introduce local lemma and use it.
2237 (Scaled_Divide): Use cut operations in assertions, lemmas, new
2238 assertions. Introduce local lemma and use it.
2239
2240 2023-07-10 Alexandre Oliva <[email protected]>
2241
2242 * doc/gnat_rm/security_hardening_features.rst (Register
2243 Scrubbing): Document leafy mode.
2244 * gnat_rm.texi: Regenerate.
2245
2246 2023-07-06 Claire Dross <[email protected]>
2247
2248 * gcc-interface/Make-lang.in: Add object files of specification
2249 files.
2250
2251 2023-07-06 Claire Dross <[email protected]>
2252
2253 * libgnat/s-vs_int.ads: Instance of Value_I_Spec for Integer.
2254 * libgnat/s-vs_lli.ads: Instance of Value_I_Spec for
2255 Long_Long_Integer.
2256 * libgnat/s-vsllli.ads: Instance of Value_I_Spec for
2257 Long_Long_Long_Integer.
2258 * libgnat/s-vs_uns.ads: Instance of Value_U_Spec for Unsigned.
2259 * libgnat/s-vs_llu.ads: Instance of Value_U_Spec for
2260 Long_Long_Unsigned.
2261 * libgnat/s-vslllu.ads: Instance of Value_U_Spec for
2262 Long_Long_Long_Unsigned.
2263 * libgnat/s-imagei.ads: Take instances of Value_*_Spec as
2264 parameters.
2265 * libgnat/s-imagei.adb: Idem.
2266 * libgnat/s-imageu.ads: Idem.
2267 * libgnat/s-imageu.adb: Idem.
2268 * libgnat/s-valuei.ads: Idem.
2269 * libgnat/s-valuei.adb: Idem.
2270 * libgnat/s-valueu.ads: Idem.
2271 * libgnat/s-valueu.adb: Idem.
2272 * libgnat/s-imgint.ads: Adapt instance to new ghost parameters.
2273 * libgnat/s-imglli.ads: Adapt instance to new ghost parameters.
2274 * libgnat/s-imgllli.ads: Adapt instance to new ghost parameters.
2275 * libgnat/s-imglllu.ads: Adapt instance to new ghost parameters.
2276 * libgnat/s-imgllu.ads: Adapt instance to new ghost parameters.
2277 * libgnat/s-imguns.ads: Adapt instance to new ghost parameters.
2278 * libgnat/s-valint.ads: Adapt instance to new ghost parameters.
2279 * libgnat/s-vallli.ads: Adapt instance to new ghost parameters.
2280 * libgnat/s-valllli.ads: Adapt instance to new ghost parameters.
2281 * libgnat/s-vallllu.ads: Adapt instance to new ghost parameters.
2282 * libgnat/s-valllu.ads: Adapt instance to new ghost parameters.
2283 * libgnat/s-valuns.ads: Adapt instance to new ghost parameters.
2284 * libgnat/s-vaispe.ads: Take instance of Value_U_Spec as parameter
2285 and remove unused declaration.
2286 * libgnat/s-vaispe.adb: Idem.
2287 * libgnat/s-vauspe.ads: Remove unused declaration.
2288 * libgnat/s-valspe.ads: Factor out the specification part of
2289 Val_Util.
2290 * libgnat/s-valspe.adb: Idem.
2291 * libgnat/s-valuti.ads: Move specification to Val_Spec.
2292 * libgnat/s-valuti.adb: Idem.
2293 * libgnat/s-valboo.ads: Use Val_Spec.
2294 * libgnat/s-valboo.adb: Idem.
2295 * libgnat/s-imgboo.adb: Idem.
2296 * libgnat/s-imagef.adb: Adapt instances to new ghost parameters.
2297 * Makefile.rtl: List new files.
2298
2299 2023-07-06 Viljar Indus <[email protected]>
2300
2301 * sem_attr.adb (analyze_attribute.check_array_type): Replace valid
2302 indexes with their staticly evaluated values.
2303
2304 2023-07-06 Viljar Indus <[email protected]>
2305
2306 * doc/gnat_ugn/the_gnat_compilation_model.rst: Reference "Binding
2307 with Non-Ada Main Programs" from "Creating a Stand-alone Library
2308 to be used in a non-Ada context".
2309 * gnat_ugn.texi: Regenerate.
2310
2311 2023-07-06 Viljar Indus <[email protected]>
2312
2313 * sem_util.adb (Is_Fully_Initialized_Type): Avoid recalculating
2314 the underlying type twice.
2315
2316 2023-07-06 Viljar Indus <[email protected]>
2317
2318 * exp_util.adb (Find_Optional_Prim_Op): Stop deriving primitive
2319 operation if there is no underlying type to derive it from.
2320
2321 2023-07-06 Yannick Moy <[email protected]>
2322
2323 * errout.ads: Add explain code.
2324 * sem_prag.adb (Check_Library_Level_Entity): Refine error message
2325 and add explain code.
2326
2327 2023-07-06 Steve Baird <[email protected]>
2328
2329 * exp_ch7.adb (Make_Final_Call): Add assertion that if no
2330 finalization call is generated, then the type of the object being
2331 finalized does not require finalization.
2332 * freeze.adb (Freeze_Entity): If freezing an already-frozen
2333 subtype, do not assume that nothing needs to be done. In the case
2334 of a frozen subtype of a non-frozen type or subtype (which is
2335 possible), freeze the non-frozen entity.
2336
2337 2023-07-04 Eric Botcazou <[email protected]>
2338
2339 * exp_ch5.adb (Expand_Assign_Array): Adjust comment above the
2340 calls to Possible_Bit_Aligned_Component on the LHS and RHS. Do not
2341 call Is_Possibly_Unaligned_Slice in the slice case.
2342 * exp_util.ads (Component_May_Be_Bit_Aligned): Add For_Slice
2343 boolean parameter.
2344 (Possible_Bit_Aligned_Component): Likewise.
2345 * exp_util.adb (Component_May_Be_Bit_Aligned): Do not return False
2346 for the slice of a small record or bit-packed array component.
2347 (Possible_Bit_Aligned_Component): Pass For_Slice in recursive
2348 calls, except in the slice case where True is passed, as well as
2349 in call to Component_May_Be_Bit_Aligned.
2350
2351 2023-07-04 Eric Botcazou <[email protected]>
2352
2353 * exp_ch4.ads (Expand_Unchecked_Union_Equality): Only take a
2354 single parameter.
2355 * exp_ch4.adb (Expand_Unchecked_Union_Equality): Add guard against
2356 repeated invocation on the same node.
2357 * exp_ch6.adb (Expand_Call): Only pass a single actual parameter
2358 in the call to Expand_Unchecked_Union_Equality.
2359
2360 2023-07-04 Viljar Indus <[email protected]>
2361
2362 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
2363 add No_Use_Of_Attribute & No_Use_Of_Pragma restrictions.
2364 * gnat_rm.texi: Regenerate.
2365 * gnat_ugn.texi: Regenerate.
2366
2367 2023-07-04 Yannick Moy <[email protected]>
2368
2369 * sem_disp.adb (Inherited_Subprograms): Add parameter to filter
2370 out results.
2371 * sem_disp.ads: Likewise.
2372
2373 2023-07-03 Eric Botcazou <[email protected]>
2374
2375 * exp_ch3.ads (Build_Variant_Record_Equality): Add Spec_Id as second
2376 parameter.
2377 * exp_ch3.adb (Build_Variant_Record_Equality): For unchecked union
2378 types, build the additional parameters as extra formal parameters.
2379 (Expand_Freeze_Record_Type.Build_Variant_Record_Equality): Pass
2380 Empty as Spec_Id in call to Build_Variant_Record_Equality.
2381 * exp_ch4.ads (Expand_Unchecked_Union_Equality): New procedure.
2382 * exp_ch4.adb (Expand_Composite_Equality): In the presence of a
2383 function implementing composite equality, do not special case the
2384 unchecked union types, and only convert the operands if the base
2385 types are not the same like in Build_Equality_Call.
2386 (Build_Equality_Call): Do not special case the unchecked union types
2387 and relocate the operands only once.
2388 (Expand_N_Op_Eq): Do not special case the unchecked union types.
2389 (Expand_Unchecked_Union_Equality): New procedure implementing the
2390 specific expansion of calls to the predefined equality function.
2391 * exp_ch6.adb (Is_Unchecked_Union_Equality): New predicate.
2392 (Expand_Call): Call Is_Unchecked_Union_Equality to determine whether
2393 to call Expand_Unchecked_Union_Equality or Expand_Call_Helper.
2394 * exp_ch8.adb (Build_Body_For_Renaming): Set Has_Delayed_Freeze flag
2395 earlier on Id and pass Id in call to Build_Variant_Record_Equality.
2396
2397 2023-07-03 Eric Botcazou <[email protected]>
2398
2399 * exp_ch3.adb (Build_Untagged_Equality): Rename into...
2400 (Build_Untagged_Record_Equality): ...this.
2401 (Expand_Freeze_Record_Type): Adjust to above renaming and invoke
2402 the procedure also for discriminated types without a variant part.
2403
2404 2023-07-03 Eric Botcazou <[email protected]>
2405
2406 * sem_util.adb (Has_Inferable_Discriminants): In the case of a
2407 component with a per-object constraint, also return true if the
2408 enclosing object is not of an unchecked union type.
2409 In the default case, remove a useless call to Base_Type.
2410
2411 2023-06-29 Richard Sandiford <[email protected]>
2412
2413 * gcc-interface/decl.cc (gt_pch_nx): Remove overloads for Entity_Id.
2414
2415 2023-06-27 Eric Botcazou <[email protected]>
2416
2417 * gcc-interface/Makefile.in (LIBIBERTY): Fix condition.
2418 (TOOLS_LIBS): Add @LD_PICFLAG@.
2419
2420 2023-06-27 Eric Botcazou <[email protected]>
2421
2422 * gcc-interface/trans.cc (Subprogram_Body_to_gnu): Add guard to the
2423 code turning the type of the RESULT_DECL into a reference type.
2424 (maybe_make_gnu_thunk): Use a more precise guard in the same case.
2425
2426 2023-06-27 Eric Botcazou <[email protected]>
2427
2428 * gcc-interface/trans.cc (Case_Statement_to_gnu): Rename boolean
2429 constant and use From_Conditional_Expression flag for its value.
2430
2431 2023-06-27 Eric Botcazou <[email protected]>
2432
2433 * debug.adb (d.L): Remove documentation.
2434 * exp_ch4.adb (Expand_N_Case_Expression): In the not-by-copy case,
2435 do not wrap the case statement in an Expression_With_Actions node.
2436 (Expand_N_If_Expression): Do not test
2437 Back_End_Handles_Limited_Types
2438 * gnat1drv.adb (Adjust_Global_Switches): Do not set it.
2439 * opt.ads (Back_End_Handles_Limited_Types): Delete.
2440
2441 2023-06-27 Eric Botcazou <[email protected]>
2442
2443 * sem_ch12.adb (Check_Generic_Actuals): Check the component type
2444 of constants and variables of an array type.
2445 (Copy_Generic_Node): Fix bogus handling of iterator
2446 specifications.
2447
2448 2023-06-27 Claire Dross <[email protected]>
2449
2450 * libgnat/a-textio.ads (Get_Line): Use Relaxed_Initialization on
2451 the Item parameter of Get_Line.
2452
2453 2023-06-27 Eric Botcazou <[email protected]>
2454
2455 * exp_ch4.adb (Expand_N_Quantified_Expression): Revert the latest
2456 change as it is subsumed by the machinery in Sem_Ch5.
2457 * sem_ch5.adb (Prepare_Iterator_Loop): Also wrap the loop
2458 statement in a block in the name contains a function call that
2459 returns on the secondary stack.
2460
2461 2023-06-27 Eric Botcazou <[email protected]>
2462
2463 * sem_ch12.adb (Scope_Within_Body_Or_Same): New predicate.
2464 (Check_Actual_Type): Take into account packages nested in bodies
2465 to compute the enclosing scope by means of
2466 Scope_Within_Body_Or_Same.
2467
2468 2023-06-27 Eric Botcazou <[email protected]>
2469
2470 * sem_ch12.adb (Check_Private_View): Also check the type of
2471 visible discriminants in record and concurrent types.
2472
2473 2023-06-27 Viljar Indus <[email protected]>
2474
2475 * sprint.adb (Print_Node_Actual): Print homogeneous N_Aggregate
2476 nodes with brackets.
2477
2478 2023-06-27 Viljar Indus <[email protected]>
2479
2480 * exp_aggr.adb (Expand_N_Aggregate): Ensure that container
2481 aggregate expressions do not get expanded as records but instead
2482 as container aggregates.
2483
2484 2023-06-20 Eric Botcazou <[email protected]>
2485
2486 * gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: Pass
2487 the NULL_TREE explicitly and test imported_p in lieu of
2488 Is_Imported. <E_Function>: Remove public_flag local variable and
2489 make extern_flag local variable a constant.
2490
2491 2023-06-20 Yannick Moy <[email protected]>
2492
2493 * sem_res.adb (Resolve_Call): Fix change that replaced test for
2494 quantified expressions by the test for potentially unevaluated
2495 contexts. Both should be performed.
2496
2497 2023-06-20 Eric Botcazou <[email protected]>
2498
2499 * exp_ch7.adb (Convert_View): Detect more cases of mismatches for
2500 private types and use Implementation_Base_Type as main criterion.
2501 * gen_il-fields.ads (Opt_Field_Enum): Add
2502 Has_Secondary_Private_View
2503 * gen_il-gen-gen_nodes.adb (N_Expanded_Name): Likewise.
2504 (N_Direct_Name): Likewise.
2505 (N_Op): Likewise.
2506 * sem_ch12.ads (Check_Private_View): Document the usage of second
2507 flag Has_Secondary_Private_View.
2508 * sem_ch12.adb (Get_Associated_Entity): New function to retrieve
2509 the ultimate associated entity, if any.
2510 (Check_Private_View): Implement Has_Secondary_Private_View
2511 support.
2512 (Copy_Generic_Node): Remove specific treatment for Component_Type
2513 of an array type and Designated_Type of an access type. Add
2514 specific treatment for comparison and equality operators, as well
2515 as iterator and loop parameter specifications.
2516 (Instantiate_Type): Implement Has_Secondary_Private_View support.
2517 (Requires_Delayed_Save): Call Get_Associated_Entity.
2518 (Set_Global_Type): Implement Has_Secondary_Private_View support.
2519 * sem_ch6.adb (Conforming_Types): Remove bypass for private views
2520 in instances.
2521 * sem_type.adb (Covers): Return true if Is_Subtype_Of does so.
2522 Remove bypass for private views in instances.
2523 (Specific_Type): Likewise.
2524 * sem_util.adb (Wrong_Type): Likewise.
2525 * sinfo.ads (Has_Secondary_Private_View): Document new flag.
2526
2527 2023-06-20 Ronan Desplanques <[email protected]>
2528
2529 * libgnarl/s-mudido.ads: Remove outdated comment.
2530
2531 2023-06-20 Eric Botcazou <[email protected]>
2532
2533 * doc/gnat_ugn/gnat_and_program_execution.rst (Overflows in GNAT)
2534 <Default Settings>: Remove obsolete paragraph about -gnato.
2535 <Implementation Notes>: Replace CHECKED with STRICT.
2536 * gnat_ugn.texi: Regenerate.
2537
2538 2023-06-20 Yannick Moy <[email protected]>
2539
2540 * sem_util.adb (Check_Result_And_Post_State): Do not warn in cases
2541 where the warning could be spurious.
2542
2543 2023-06-20 Yannick Moy <[email protected]>
2544
2545 * err_vars.ads (Error_Msg_Code): New variable for error codes.
2546 * errout.adb (Error_Msg_Internal): Display continuation message
2547 when an error code was present.
2548 (Set_Msg_Text): Handle character sequence [] for error codes.
2549 * errout.ads: Document new insertion sequence [].
2550 (Error_Msg_Code): New renaming.
2551 * erroutc.adb (Prescan_Message): Detect presence of error code.
2552 (Set_Msg_Insertion_Code): Handle new insertion sequence [].
2553 * erroutc.ads (Has_Error_Code): New variable for prescan.
2554 (Set_Msg_Insertion_Code): Handle new insertion sequence [].
2555 * contracts.adb (Check_Type_Or_Object_External_Properties):
2556 Replace reference to SPARK RM section by an error code.
2557 * sem_elab.adb (SPARK_Processor): Same.
2558 * sem_prag.adb (Check_Missing_Part_Of): Same.
2559 * sem_res.adb (Resolve_Actuals, Resolve_Entity_Name): Same.
2560
2561 2023-06-20 Piotr Trojanek <[email protected]>
2562
2563 * sem_res.adb (Resolve_Entity_Name): Handle Range like First and Last.
2564
2565 2023-06-20 Jose Ruiz <[email protected]>
2566
2567 * doc/gnat_ugn/the_gnat_compilation_model.rst
2568 (Partition-Wide Settings): add this subsection to document
2569 configuration settings made by the Ada run time.
2570 * gnat_ugn.texi: Regenerate.
2571
2572 2023-06-20 Piotr Trojanek <[email protected]>
2573
2574 * sem_res.adb (Resolve_Entity_Name): Ignore implicit loop scopes
2575 introduced by quantified expressions.
2576
2577 2023-06-20 Bob Duff <[email protected]>
2578
2579 * sem_ch3.adb (Analyze_Object_Declaration): Remove predicate-check
2580 generation if there is an address clause. These are unnecessary,
2581 and cause gigi to crash.
2582 * exp_util.ads (Following_Address_Clause): Remove obsolete "???"
2583 comments. The suggested changes were done long ago.
2584
2585 2023-06-20 Eric Botcazou <[email protected]>
2586
2587 * einfo.ads (Has_Private_Ancestor): Fix inaccuracy in description.
2588 * sem_ch12.adb (Check_Actual_Type): Do not switch the view of the
2589 type if it has a private ancestor.
2590
2591 2023-06-20 Daniel King <[email protected]>
2592
2593 * libgnat/i-cheri.ads: Add CHERI intrinsics and helper functions.
2594 * libgnat/i-cheri.adb: Likewise
2595
2596 2023-06-20 Eric Botcazou <[email protected]>
2597
2598 * exp_ch7.adb (Convert_View): Remove Ind parameter and adjust.
2599 * sem_ch12.adb (Check_Generic_Actuals): Check the type of both in
2600 and in out actual objects, as well as the type of formal parameters
2601 of actual subprograms. Extend the condition under which the views
2602 are swapped to nested generic constructs.
2603 (Save_References_In_Identifier): Call Set_Global_Type on a global
2604 identifier rewritten as an explicit dereference, either directly
2605 or after having first been rewritten as a function call.
2606 (Save_References_In_Operator): Set N2 unconditionally and reuse it.
2607 * sem_ch3.adb (Build_Derived_Record_Type): Add missing comment.
2608 * sem_res.adb (Resolve_Implicit_Dereference): Remove special bypass
2609 for private views in instances.
2610
2611 2023-06-20 Eric Botcazou <[email protected]>
2612
2613 * exp_aggr.adb (Convert_To_Assignments): Tweak comment.
2614 (Expand_Array_Aggregate): Do not delay the expansion if the parent
2615 node is a container aggregate.
2616
2617 2023-06-20 Ghjuvan Lacambre <[email protected]>
2618
2619 * errout.adb (Output_Messages): Fix loop termination condition.
2620
2621 2023-06-20 Eric Botcazou <[email protected]>
2622
2623 * doc/gnat_ugn/building_executable_programs_with_gnat.rst (Compiler
2624 Switches): Document -gnateH.
2625 * opt.ads (Reverse_Bit_Order_Threshold): New variable.
2626 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Use its value
2627 if it is nonnegative instead of System_Max_Integer_Size.
2628 * switch-c.adb (Scan_Front_End_Switches): Deal with -gnateH.
2629 * usage.adb (Usage): Print -gnateH.
2630 * gnat_ugn.texi: Regenerate.
2631
2632 2023-06-20 Yannick Moy <[email protected]>
2633
2634 * libgnat/s-aridou.adb (Scaled_Divide): Add assertions.
2635 * libgnat/s-valuti.adb: Add Loop_Variant.
2636 * libgnat/s-valuti.ads: Add Exceptional_Cases on No_Return
2637 procedure.
2638
2639 2023-06-20 Marc Poulhiès <[email protected]>
2640
2641 * sem_ch3.adb (Build_Derived_Record_Type): Use full view as
2642 Parent_Base if needed.
2643
2644 2023-06-20 Ghjuvan Lacambre <[email protected]>
2645
2646 * lib-load.adb (Load_Unit): Pass Error_Node to calls to Error_Msg.
2647
2648 2023-06-20 Claire Dross <[email protected]>
2649
2650 * libgnat/a-strfix.ads: Replace Might_Not_Return annotations by
2651 Exceptional_Cases and Always_Terminates aspects.
2652 * libgnat/a-tideio.ads: Idem.
2653 * libgnat/a-tienio.ads: Idem.
2654 * libgnat/a-tifiio.ads: Idem.
2655 * libgnat/a-tiflio.ads: Idem.
2656 * libgnat/a-tiinio.ads: Idem.
2657 * libgnat/a-timoio.ads: Idem.
2658 * libgnat/a-textio.ads: Idem. Also mark functions Name, Col, Line,
2659 and Page as out of SPARK as they might raise Layout_Error.
2660 * libgnarl/a-reatim.ads: Replace Always_Return annotations by
2661 Always_Terminates aspects.
2662 * libgnat/a-chahan.ads: Idem.
2663 * libgnat/a-nbnbig.ads: Idem.
2664 * libgnat/a-nbnbin.ads: Idem.
2665 * libgnat/a-nbnbre.ads: Idem.
2666 * libgnat/a-ngelfu.ads: Idem.
2667 * libgnat/a-nlelfu.ads: Idem.
2668 * libgnat/a-nllefu.ads: Idem.
2669 * libgnat/a-nselfu.ads: Idem.
2670 * libgnat/a-nuelfu.ads: Idem.
2671 * libgnat/a-strbou.ads: Idem.
2672 * libgnat/a-strmap.ads: Idem.
2673 * libgnat/a-strsea.ads: Idem.
2674 * libgnat/a-strsup.ads: Idem.
2675 * libgnat/a-strunb.ads: Idem.
2676 * libgnat/a-strunb__shared.ads: Idem.
2677 * libgnat/g-souinf.ads: Idem.
2678 * libgnat/i-c.ads: Idem.
2679 * libgnat/interfac.ads: Idem.
2680 * libgnat/interfac__2020.ads: Idem.
2681 * libgnat/s-aridou.adb: Idem.
2682 * libgnat/s-arit32.adb: Idem.
2683 * libgnat/s-atacco.ads: Idem.
2684 * libgnat/s-spcuop.ads: Idem.
2685 * libgnat/s-stoele.ads: Idem.
2686 * libgnat/s-vaispe.ads: Idem.
2687 * libgnat/s-vauspe.ads: Idem.
2688 * libgnat/i-cstrin.ads: Add a precondition instead of a
2689 Might_Not_Return annotation.
2690
2691 2023-06-20 Javier Miranda <[email protected]>
2692
2693 * sem_ch4.adb
2694 (Try_Selected_Component_In_Instance): New subprogram; factorizes
2695 existing code.
2696 (Find_Component_In_Instance) Moved inside the new subprogram.
2697 (Analyze_Selected_Component): Invoke the new subprogram before
2698 trying the Object.Operation notation.
2699
2700 2023-06-20 Ronan Desplanques <[email protected]>
2701
2702 * libgnat/a-calfor.adb (Time_Of): Fix handling of special case.
2703
2704 2023-06-15 Marek Polacek <[email protected]>
2705
2706 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove NO_PIE_CFLAGS. Add
2707 PICFLAG. Use PICFLAG when building ada/b_gnat1.o and ada/b_gnatb.o.
2708 * gcc-interface/Makefile.in: Use pic/libiberty.a if PICFLAG is set.
2709 Remove NO_PIE_FLAG.
2710
2711 2023-06-15 Marc Poulhiès <[email protected]>
2712
2713 * vxworks7-cert-rtp-base-link.spec: Removed.
2714 * vxworks7-cert-rtp-base-link__ppc64.spec: Removed.
2715 * vxworks7-cert-rtp-base-link__x86.spec: Removed.
2716 * vxworks7-cert-rtp-base-link__x86_64.spec: Removed.
2717 * vxworks7-cert-rtp-link.spec: Removed.
2718 * vxworks7-cert-rtp-link__ppcXX.spec: Removed.
2719
2720 2023-06-15 Eric Botcazou <[email protected]>
2721
2722 * gcc-interface/utils2.cc (build_binary_op) <MODIFY_EXPR>: Do not
2723 remove a VIEW_CONVERT_EXPR on the LHS if it is also on the RHS.
2724
2725 2023-06-15 Eric Botcazou <[email protected]>
2726
2727 * gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: Restrict
2728 the special handling of temporaries created for return values and
2729 subject to a renaming to the top level.
2730
2731 2023-06-15 Ronan Desplanques <[email protected]>
2732
2733 * doc/gnat_ugn/about_this_guide.rst: Fix typo. Uniformize punctuation.
2734 * doc/gnat_ugn/the_gnat_compilation_model.rst: Uniformize punctuation.
2735 Fix capitalization. Fix indentation of code block. Fix RST formatting
2736 syntax errors.
2737 * gnat_ugn.texi: Regenerate.
2738
2739 2023-06-15 Yannick Moy <[email protected]>
2740
2741 * sem_attr.adb (Analyze_Attribute): Reject case of Loop_Entry
2742 inside the prefix of Loop_Entry, as per SPARK RM 5.5.3.1(4,8).
2743
2744 2023-06-15 Eric Botcazou <[email protected]>
2745
2746 * exp_ch3.adb (Make_Allocator_For_Return): Rewrite the logic that
2747 determines the type used for the allocation and add assertions.
2748 * exp_util.adb (Has_Tag_Of_Type): Also return true for extension
2749 aggregates.
2750
2751 2023-06-15 Eric Botcazou <[email protected]>
2752
2753 * sinfo.ads (Iterator_Filter): Document field.
2754 * sem_ch5.adb (Analyze_Iterator_Specification): Move comment around.
2755 (Analyze_Loop_Parameter_Specification): Only preanalyze the iterator
2756 filter, if any.
2757 * exp_ch5.adb (Expand_N_Loop_Statement): Analyze the new list built
2758 when an iterator filter is present.
2759
2760 2023-06-15 Eric Botcazou <[email protected]>
2761
2762 * exp_util.adb (Find_Hook_Context): Revert latest change.
2763
2764 2023-06-15 Eric Botcazou <[email protected]>
2765
2766 * exp_ch3.adb (Make_Allocator_For_Return): Deal again specifically
2767 with an aggregate returned through an object of a class-wide type.
2768
2769 2023-06-15 Eric Botcazou <[email protected]>
2770
2771 * exp_ch5.adb (Expand_Iterator_Loop_Over_Container): Do not insert
2772 an always empty list. Remove unused parameter Isc.
2773 (Expand_Iterator_Loop): Adjust call to above procedure.
2774
2775 2023-06-15 Ronan Desplanques <[email protected]>
2776
2777 * targparm.adb: Allow pragma Style_Checks in some forms.
2778 * targparm.ads: Document new pragma permission.
2779
2780 2023-06-15 Eric Botcazou <[email protected]>
2781
2782 * exp_util.ads (Within_Case_Or_If_Expression): Adjust description.
2783 * exp_util.adb (Find_Hook_Context): Stop the search for the topmost
2784 conditional expression, if within one, at contexts where temporaries
2785 may be contained.
2786 (Within_Case_Or_If_Expression): Return false upon first encoutering
2787 contexts where temporaries may be contained.
2788
2789 2023-06-15 Johannes Kliemann <[email protected]>
2790
2791 * libgnarl/s-osinte__qnx.adb: Adjust priority conversion function.
2792 * libgnat/system-qnx-arm.ads: Adjust priority range and default
2793 priority.
2794
2795 2023-06-15 Ronan Desplanques <[email protected]>
2796
2797 * targparm.ads: Remove references to front-end-based exceptions. Fix
2798 thinko.
2799
2800 2023-06-15 Piotr Trojanek <[email protected]>
2801
2802 * contracts.adb (Add_Contract_Item): Add pragma Always_Terminates to
2803 package contract.
2804 * sem_prag.adb (Analyze_Pragma): Accept pragma Always_Terminates on
2805 packages and generic packages, but only when it has no arguments.
2806
2807 2023-06-15 Piotr Trojanek <[email protected]>
2808
2809 * sem_prag.adb (Analyze_Pragma): Accept pragma Always_Terminates when
2810 it applies to an entry.
2811
2812 2023-06-15 Piotr Trojanek <[email protected]>
2813
2814 * sem_prag.adb (Analyze_Pragma): Reject pragma Always_Terminates when
2815 it applies to a function or generic function.
2816
2817 2023-06-15 Eric Botcazou <[email protected]>
2818
2819 * sem_ch4.adb (Analyze_Call): Adjust the test to detect the presence
2820 of an incomplete view of a type on a function call.
2821
2822 2023-06-15 Ronan Desplanques <[email protected]>
2823
2824 * ttypes.ads: Remove reference to Ttypef in comment. Fix typo in
2825 comment.
2826
2827 2023-06-15 Eric Botcazou <[email protected]>
2828
2829 * get_targ.ads (Get_Max_Unaligned_Field): Delete.
2830 * ada_get_targ.adb (Get_Max_Unaligned_Field): Likewise.
2831 * get_targ.adb (Get_Max_Unaligned_Field): Likewise.
2832 * set_targ.ads (Max_Unaligned_Field): Adjust comment.
2833 * set_targ.adb: Set Max_Unaligned_Field to 1 during elaboration.
2834 * ttypes.ads (Max_Unaligned_Field): Delete.
2835
2836 2023-06-15 Eric Botcazou <[email protected]>
2837
2838 * sem_type.adb (Disambiguate): Fix pasto in the implementation of
2839 the RM 8.4(10) clause for operators.
2840
2841 2023-06-15 Piotr Trojanek <[email protected]>
2842
2843 * aspects.adb
2844 (Base_Aspect): Fix layout.
2845 * aspects.ads
2846 (Aspect_Argument): Expression for Always_Terminates is optional.
2847 * sem_prag.adb
2848 (Analyze_Always_Terminates_In_Decl_Part): Only analyze expression when
2849 pragma argument is present.
2850 (Analyze_Pragma): Argument for Always_Terminates is optional; fix
2851 whitespace for Async_Readers.
2852
2853 2023-06-15 Javier Miranda <[email protected]>
2854
2855 * sem_util.adb
2856 (Is_CPP_Constructor_Call): Add missing support for calls to
2857 functions returning a private type.
2858
2859 2023-06-15 Eric Botcazou <[email protected]>
2860
2861 * exp_util.ads (Build_Transient_Object_Statements): Remove obsolete
2862 references to array and record aggregates in documentation.
2863
2864 2023-06-15 Eric Botcazou <[email protected]>
2865
2866 * sem_ch13.adb (Analyze_Aspect_Specifications): Add missing items
2867 in the list of aspects handled by means of Insert_Pragma.
2868 <Aspect_Linker_Section>: Remove obsolete code. Do not delay the
2869 processing of the aspect if the entity is already frozen.
2870
2871 2023-06-15 Piotr Trojanek <[email protected]>
2872
2873 * sem_aggr.adb
2874 (Resolve_Array_Aggregate): Simplify comment.
2875 (Resolve_Iterated_Component_Association): Tune comment; change variable
2876 to constant.
2877
2878 2023-06-13 Piotr Trojanek <[email protected]>
2879
2880 * sem_aggr.adb (Resolve_Iterated_Component_Association): Simply resolve
2881 the expression.
2882
2883 2023-06-13 Bob Duff <[email protected]>
2884
2885 * exp_ch4.adb
2886 (Expand_N_Quantified_Expression): Detect the secondary-stack
2887 case, and find the innermost scope where we should mark/release,
2888 and Set_Uses_Sec_Stack on that. Skip intermediate blocks and loops
2889 that are part of expansion.
2890
2891 2023-06-13 Piotr Trojanek <[email protected]>
2892
2893 * sem_util.adb (Is_Repeatedly_Evaluated): Recognize iterated component
2894 association as repeatedly evaluated.
2895
2896 2023-06-13 Piotr Trojanek <[email protected]>
2897
2898 * sem_util.adb (Is_Potentially_Unevaluated): Recognize iterated
2899 component association as potentially unevaluated.
2900
2901 2023-06-13 Piotr Trojanek <[email protected]>
2902
2903 * sem_res.adb (Resolve_Call): Replace early call to
2904 In_Quantified_Expression with a call to Is_Potentially_Unevaluated that
2905 was only done when Full_Analysis is true.
2906
2907 2023-06-13 Piotr Trojanek <[email protected]>
2908
2909 * aspects.ads (Aspect_Id): Add new aspect.
2910 (Implementation_Defined_Aspect): New aspect is
2911 implementation-defined.
2912 (Aspect_Argument): New aspect has an expression argument.
2913 (Is_Representation_Aspect): New aspect is not a representation
2914 aspect.
2915 (Aspect_Names): Link new aspect identifier with a name.
2916 (Aspect_Delay): New aspect is never delayed.
2917 * contracts.adb (Expand_Subprogram_Contract): Mention new aspect
2918 in comment.
2919 (Add_Contract_Item): Attach pragma corresponding to the new aspect
2920 to contract items.
2921 (Analyze_Entry_Or_Subprogram_Contract): Analyze pragma
2922 corresponding to the new aspect that appears with subprogram spec.
2923 (Analyze_Subprogram_Body_Stub_Contract): Expand pragma
2924 corresponding to the new aspect.
2925 * contracts.ads
2926 (Add_Contract_Item, Analyze_Entry_Or_Subprogram_Contract)
2927 (Analyze_Entry_Or_Subprogram_Body_Contract)
2928 (Analyze_Subprogram_Body_Stub_Contract): Mention new aspect in
2929 comment.
2930 * einfo-utils.adb (Get_Pragma): Return pragma attached to
2931 contract.
2932 * einfo-utils.ads (Get_Pragma): Mention new contract in comment.
2933 * exp_prag.adb (Expand_Pragma_Always_Terminates): Placeholder for
2934 possibly expanding new aspect.
2935 * exp_prag.ads (Expand_Pragma_Always_Terminates): Dedicated
2936 routine for expansion of the new aspect.
2937 * inline.adb (Remove_Aspects_And_Pragmas): Remove aspect from
2938 inlined bodies.
2939 * par-prag.adb (Prag): Postpone checking of the pragma until
2940 analysis.
2941 * sem_ch12.adb: Mention new aspect in explanation of handling
2942 contracts on generic units.
2943 * sem_ch13.adb (Analyze_Aspect_Specifications): Convert new aspect
2944 into a corresponding pragma.
2945 (Check_Aspect_At_Freeze_Point): Don't expect new aspect.
2946 * sem_prag.adb (Analyze_Always_Terminates_In_Decl_Part): Analyze
2947 pragma corresponding to the new aspect.
2948 (Analyze_Pragma): Handle pragma corresponding to the new aspect.
2949 (Is_Non_Significant_Pragma_Reference): Handle references appearing
2950 within new aspect.
2951 * sem_prag.ads (Aspect_Specifying_Pragma): New aspect can be
2952 emulated with a pragma.
2953 (Assertion_Expression_Pragma): New aspect has an assertion
2954 expression.
2955 (Pragma_Significant_To_Subprograms): New aspect is significant to
2956 subprograms.
2957 (Analyze_Always_Terminates_In_Decl_Part): Add spec for routine
2958 that analyses new aspect.
2959 (Find_Related_Declaration_Or_Body): Mention new aspect in comment.
2960 * sem_util.adb (Is_Subprogram_Contract_Annotation): New aspect is
2961 a subprogram contract annotation.
2962 * sem_util.ads (Is_Subprogram_Contract_Annotation): Mention new
2963 aspect in comment.
2964 * sinfo.ads (Is_Generic_Contract_Pragma): New pragma is a generic
2965 contract.
2966 (Contract): Explain attaching new pragma to subprogram contract.
2967 * snames.ads-tmpl (Name_Always_Terminates): New name for the new
2968 contract.
2969 (Pragma_Always_Terminates): New pragma identifier.
2970
2971 2023-06-13 Piotr Trojanek <[email protected]>
2972
2973 * sem_elab.adb (Check_Overriding_Primitive): Prevent Corresponding_Body
2974 to be called with entity of an abstract subprogram.
2975
2976 2023-06-13 Eric Botcazou <[email protected]>
2977
2978 * sem_ch12.adb (Save_References_In_Identifier): In the case where
2979 the identifier has been turned into a function call by analysis,
2980 call Set_Global_Type on the entity if it is global.
2981
2982 2023-06-13 Marc Poulhiès <[email protected]>
2983
2984 * sem_aggr.adb (Resolve_Iterated_Component_Association): Call
2985 Preanalyze_And_Resolve instead of Resolve_Aggr_Expr except for
2986 aggregate.
2987 Co-authored-by: Ed Schonberg <[email protected]>
2988
2989 2023-06-13 Eric Botcazou <[email protected]>
2990
2991 * contracts.adb (Contract_Error): New exception.
2992 (Add_Contract_Item): Raise Contract_Error instead of Program_Error.
2993 (Add_Generic_Contract_Pragma): Deal with Contract_Error.
2994
2995 2023-06-13 Eric Botcazou <[email protected]>
2996
2997 * sem_attr.adb (Eval_Attribute): Add more exceptions to the early
2998 return for a prefix which is a nonfrozen generic actual type.
2999 * sem_ch12.adb (Copy_Generic_Node): Also check private views in the
3000 case of an entity name or operator analyzed as a function call.
3001 (Set_Global_Type): Make it a child of Save_Global_References.
3002 (Save_References_In_Operator): In the case where the operator has
3003 been turned into a function call, call Set_Global_Type on the entity
3004 if it is global.
3005
3006 2023-06-13 Eric Botcazou <[email protected]>
3007
3008 * contracts.adb (Analyze_Entry_Or_Subprogram_Body_Contract): For a
3009 subprogram body that has no contracts and does not come from source,
3010 make sure that contracts on its corresponding spec are analyzed, if
3011 any, before expanding them.
3012
3013 2023-06-13 Eric Botcazou <[email protected]>
3014
3015 * gen_il-fields.ads (Opt_Field_Enum): Add No_Finalize_Actions and
3016 remove No_Side_Effect_Removal.
3017 * gen_il-gen-gen_nodes.adb (N_Function_Call): Remove semantic flag
3018 No_Side_Effect_Removal
3019 (N_Assignment_Statement): Add semantic flag No_Finalize_Actions.
3020 * sinfo.ads (No_Ctrl_Actions): Adjust comment.
3021 (No_Finalize_Actions): New flag on assignment statements.
3022 (No_Side_Effect_Removal): Delete.
3023 * exp_aggr.adb (Build_Record_Aggr_Code): Remove obsolete comment and
3024 Ancestor_Is_Expression variable. In the case of an extension, do
3025 not generate a call to Adjust manually, call Set_No_Finalize_Actions
3026 instead. Do not set the tags, replace call to Make_Unsuppress_Block
3027 by Make_Suppress_Block and remove useless assertions.
3028 In the general case, call Initialize_Component.
3029 (Initialize_Controlled_Component): Delete.
3030 (Initialize_Simple_Component): Delete.
3031 (Initialize_Component): Do the low-level processing, but do not
3032 generate a call to Adjust manually, call Set_No_Finalize_Actions.
3033 (Process_Transient_Component): Delete.
3034 (Process_Transient_Component_Completion): Likewise.
3035 * exp_ch5.adb (Expand_Assign_Array): Deal with No_Finalize_Actions.
3036 (Expand_Assign_Array_Loop): Likewise.
3037 (Expand_N_Assignment_Statement): Likewise.
3038 (Make_Tag_Ctrl_Assignment): Likewise.
3039 * exp_util.adb (Remove_Side_Effects): Do not test the
3040 No_Side_Effect_Removal flag.
3041 * sem_prag.adb (Process_Suppress_Unsuppress): Give the warning in
3042 SPARK mode only for pragma Suppress.
3043 * tbuild.ads (Make_Suppress_Block): New declaration.
3044 (Make_Unsuppress_Block): Adjust comment.
3045 * tbuild.adb (Make_Suppress_Block): New procedure.
3046 (Make_Unsuppress_Block): Unsuppress instead of suppressing.
3047
3048 2023-06-13 Eric Botcazou <[email protected]>
3049
3050 * sem_ch5.adb (Analyze_Assignment): Turn Rhs into a constant and
3051 remove calls to the following subprograms.
3052 (Transform_BIP_Assignment): Delete.
3053 (Should_Transform_BIP_Assignment): Likewise.
3054
3055 2023-06-13 Piotr Trojanek <[email protected]>
3056
3057 * sem_util.ads (Is_Inherited_Operation_For_Type): Remove spec.
3058 * sem_util.adb (Is_Inherited_Operation_For_Type): Remove body.
3059
3060 2023-06-13 Eric Botcazou <[email protected]>
3061
3062 * exp_aggr.adb (Build_Record_Aggr_Code): Add new variable Ancestor_Q
3063 to store the result of Unqualify on Ancestor. Remove the dead call
3064 to Generate_Finalization_Actions in the case of another aggregate as
3065 ancestor part. Remove the redundant setting of Assignment_OK. Use
3066 Init_Typ in lieu of Etype (Ancestor) more consistently.
3067
3068 2023-06-13 Eric Botcazou <[email protected]>
3069
3070 * exp_aggr.adb (Build_Record_Aggr_Code): In the case of an extension
3071 aggregate of a limited type whose ancestor part is an aggregate, do
3072 not skip the final code assigning the tag of the extension.
3073
3074 2023-06-13 Yannick Moy <[email protected]>
3075
3076 * ghost.adb (Check_Ghost_Context): Allow absence of Ghost_Id
3077 for attribute. Update error message to mention Ghost_Predicate.
3078 (Is_Ghost_Attribute_Reference): New query.
3079 * ghost.ads (Is_Ghost_Attribute_Reference): New query.
3080 * sem_attr.adb (Resolve_Attribute): Check ghost context for ghost
3081 attributes.
3082
3083 2023-06-13 Daniel King <[email protected]>
3084
3085 * libgnat/s-stoele.ads: Add No_Elaboration_Code_All pragma.
3086
3087 2023-06-13 Eric Botcazou <[email protected]>
3088
3089 * exp_util.ads (Make_Tag_Assignment_From_Type): Declare.
3090 * exp_util.adb (Make_Tag_Assignment_From_Type): New function.
3091 * exp_aggr.adb (Build_Record_Aggr_Code): Call the above function.
3092 (Initialize_Simple_Component): Likewise.
3093 * exp_ch3.adb (Build_Record_Init_Proc.Build_Assignment): Likewise.
3094 (Build_Record_Init_Proc.Build_Init_Procedure ): Likewise.
3095 (Make_Tag_Assignment): Likewise. Rename local variable and call
3096 Unqualify to go through qualified expressions.
3097 * exp_ch4.adb (Expand_Allocator_Expression): Likewise.
3098
3099 2023-06-13 Yannick Moy <[email protected]>
3100
3101 * libgnat/a-strsup.ads: Change predicate aspect.
3102 * sem_ch13.adb (Add_Predicate): Fix for first predicate.
3103
3104 2023-06-13 Eric Botcazou <[email protected]>
3105
3106 * exp_aggr.adb (Initialize_Component): Perform immediate expansion
3107 of the initialization expression if it is a conditional expression
3108 and the component type is controlled.
3109
3110 2023-06-13 Eric Botcazou <[email protected]>
3111
3112 * exp_aggr.adb (Initialize_Component): New procedure factored out
3113 from the processing of array and record aggregates.
3114 (Initialize_Controlled_Component): Likewise.
3115 (Initialize_Simple_Component): Likewise.
3116 (Build_Array_Aggr_Code.Gen_Assign): Remove In_Loop parameter.
3117 Call Initialize_Component to initialize the component.
3118 (Initialize_Array_Component): Delete.
3119 (Initialize_Ctrl_Array_Component): Likewise.
3120 (Build_Array_Aggr_Code): Adjust calls to Gen_Assign.
3121 (Build_Record_Aggr_Code): Call Initialize_Simple_Component or
3122 Initialize_Component to initialize the component.
3123 (Initialize_Ctrl_Record_Component): Delete.
3124 (Initialize_Record_Component): Likewise.
3125
3126 2023-06-13 Piotr Trojanek <[email protected]>
3127
3128 * exp_ch11.adb (Expand_N_Raise_Statement): Expansion of raise statements
3129 never happens in GNATprove mode.
3130
3131 2023-06-13 Piotr Trojanek <[email protected]>
3132
3133 * exp_ch11.adb (Find_Local_Handler): Replace guard against other
3134 constructs appearing in the list of exception handlers with iteration
3135 using First_Non_Pragma/Next_Non_Pragma.
3136
3137 2023-06-13 Piotr Trojanek <[email protected]>
3138
3139 * exp_ch11.ads (Find_Local_Handler): Fix typo in comment.
3140 * exp_ch11.adb (Find_Local_Handler): Remove redundant check for the
3141 Exception_Handler list being present; use membership test to eliminate
3142 local object LCN; fold nested IF statements. Remove useless ELSIF
3143 condition.
3144
3145 2023-06-13 Piotr Trojanek <[email protected]>
3146
3147 * sem_util.adb (Check_Function_Writable_Actuals): Tune style; use
3148 subtype name to detect membership test nodes.
3149
3150 2023-06-13 Piotr Trojanek <[email protected]>
3151
3152 * exp_disp.adb (Make_Disp_Asynchronous_Select_Spec): Use a single call
3153 to New_List.
3154
3155 2023-06-13 Yannick Moy <[email protected]>
3156
3157 * doc/gnat_rm/implementation_defined_aspects.rst: Document new
3158 aspect.
3159 * doc/gnat_rm/implementation_defined_pragmas.rst: Whitespace.
3160 * aspects.adb (Init_Canonical_Aspect): Set it to Predicate.
3161 * aspects.ads: Set global constants for new aspect.
3162 * einfo.ads: Describe new flag related to new aspect.
3163 * exp_ch6.adb (Can_Fold_Predicate_Call): Do not fold new aspect.
3164 * exp_util.adb (Make_Predicate_Check): Add comment.
3165 * gen_il-fields.ads: Add new flag.
3166 * gen_il-gen-gen_entities.adb: Add new flag.
3167 * ghost.adb (Is_OK_Ghost_Context): Ghost predicate is an OK
3168 ghost context.
3169 (Mark_Ghost_Pragma): Add overloading with ghost mode parameter.
3170 * ghost.ads (Mark_Ghost_Pragma): Add overloading with ghpst mode
3171 parameter.
3172 (Name_To_Ghost_Mode): Make function public.
3173 * sem_aggr.adb: Issue error for violation of valid use.
3174 * sem_case.adb: Issue error for violation of valid use.
3175 * sem_ch13.adb: Adapt for new aspect.
3176 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove dead code
3177 which was trying to propagate Has_Predicates flag in the wrong
3178 direction (from derived to parent type).
3179 (Analyze_Number_Declaration): Issue error for violation of valid
3180 use.
3181 (Build_Derived_Type): Cleanup inheritance of predicate flags from
3182 parent to derived type.
3183 (Build_Predicate_Function): Only add a predicate check when it
3184 is not ignored as Ghost code.
3185 * sem_ch4.adb (Analyze_Membership_Op): Issue an error for use of
3186 a subtype with a ghost predicate as name in a membership test.
3187 * sem_ch5.adb (Check_Predicate_Use): Issue error for violation of
3188 valid use.
3189 * sem_eval.adb: Adapt code for Dynamic_Predicate to account for
3190 Ghost_Predicate too.
3191 * sem_prag.adb (Analyze_Pragma): Make pragma ghost or not.
3192 * sem_util.adb (Bad_Predicated_Subtype_Use): Adapt to new aspect.
3193 (Inherit_Predicate_Flags): Add inheritance of flag. Add parameter
3194 to apply to derived types.
3195 * sem_util.ads (Inherit_Predicate_Flags): Change signature.
3196 * snames.ads-tmpl: Add new aspect name.
3197 * gnat_rm.texi: Regenerate.
3198
3199 2023-06-13 Piotr Trojanek <[email protected]>
3200
3201 * exp_ch3.adb (Make_Controlling_Function_Wrappers): Remove early
3202 decoration.
3203
3204 2023-05-30 Eric Botcazou <[email protected]>
3205
3206 * gcc-interface/trans.cc (get_storage_model_access): Also strip any
3207 type conversion in the node when unwinding the components.
3208
3209 2023-05-30 Eric Botcazou <[email protected]>
3210
3211 * gcc-interface/trans.cc (node_is_component): Remove parentheses.
3212 (node_is_type_conversion): New predicate.
3213 (get_atomic_access): Use it.
3214 (get_storage_model_access): Likewise and look into the parent to
3215 find a component if it returns true.
3216 (present_in_lhs_or_actual_p): Likewise.
3217
3218 2023-05-30 Eric Botcazou <[email protected]>
3219
3220 * gcc-interface/trans.cc (Attribute_to_gnu) <Attr_Size>: Check that
3221 the storage model has Copy_From before instantiating loads for it.
3222 <Attr_Length>: Likewise.
3223 <Attr_Bit_Position>: Likewise.
3224 (gnat_to_gnu) <N_Indexed_Component>: Likewise.
3225 <N_Slice>: Likewise.
3226
3227 2023-05-30 Marc Poulhiès <[email protected]>
3228
3229 * gcc-interface/trans.cc (Attribute_to_gnu): Also strip conversion
3230 in case of DECL.
3231
3232 2023-05-30 Eric Botcazou <[email protected]>
3233
3234 * gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Type>: Use a
3235 local variable for the GNAT index type.
3236 <E_Array_Subtype>: Likewise. Call Is_Null_Range on the bounds and
3237 force the zero on TYPE_SIZE and TYPE_SIZE_UNIT if it returns true.
3238
3239 2023-05-30 Eric Botcazou <[email protected]>
3240
3241 * gcc-interface/trans.cc (gnat_to_gnu) <N_Op_Mod>: Test the
3242 precision of the operation rather than that of the result type.
3243
3244 2023-05-30 Eric Botcazou <[email protected]>
3245
3246 * gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: Replace
3247 integer_zero_node with null_pointer_node for pointer types.
3248 * gcc-interface/trans.cc (gnat_gimplify_expr) <NULL_EXPR>: Likewise.
3249 * gcc-interface/utils.cc (maybe_pad_type): Do not attempt to make a
3250 packable type from a fat pointer type.
3251 * gcc-interface/utils2.cc (build_atomic_load): Use a local variable.
3252 (build_atomic_store): Likewise.
3253
3254 2023-05-30 Eric Botcazou <[email protected]>
3255
3256 * gcc-interface/misc.cc (internal_error_function): Be prepared for
3257 an input_location set to UNKNOWN_LOCATION.
3258
3259 2023-05-30 Eric Botcazou <[email protected]>
3260
3261 * gcc-interface/trans.cc (Attribute_to_gnu) <Attr_Size>: Tweak.
3262 (gnat_to_gnu) <N_Assignment_Statement>: Declare a local variable.
3263 For a target with a storage model, use the Actual_Designated_Subtype
3264 to compute the size if it is present.
3265
3266 2023-05-30 Eric Botcazou <[email protected]>
3267
3268 * gcc-interface/trans.cc (Call_to_gnu): Remove code implementing the
3269 by-copy semantics for actuals with nonnative storage models.
3270 (gnat_to_gnu) <N_Assignment_Statement>: Remove code instantiating a
3271 temporary for assignments between nonnative storage models.
3272
3273 2023-05-30 Eric Botcazou <[email protected]>
3274
3275 * gcc-interface/decl.cc (range_cannot_be_superflat): Return true
3276 immediately if Cannot_Be_Superflat is set.
3277 * gcc-interface/misc.cc (gnat_post_options): Do not override the
3278 -Wstringop-overflow setting.
3279
3280 2023-05-30 Eric Botcazou <[email protected]>
3281
3282 * gcc-interface/Make-lang.in (ADA_CFLAGS): Move up.
3283 (ALL_ADAFLAGS): Add $(NO_PIE_CFLAGS).
3284 (ada/mdll.o): Remove.
3285 (ada/mdll-fil.o): Likewise.
3286 (ada/mdll-utl.o): Likewise.
3287
3288 2023-05-30 Marc Poulhiès <[email protected]>
3289
3290 * gcc-interface/trans.cc (get_storage_model_access): Don't require
3291 storage model access for dereference used as lvalue or renamings.
3292
3293 2023-05-30 Eric Botcazou <[email protected]>
3294
3295 * exp_aggr.adb (Build_Array_Aggr_Code): Move the declaration of Typ
3296 to the beginning.
3297 (Initialize_Array_Component): Test the unqualified version of the
3298 expression for the nested array case.
3299 (Initialize_Ctrl_Array_Component): Do not duplicate the expression
3300 here. Do the pattern matching of the unqualified version of it.
3301 (Gen_Assign): Call Unqualify to compute Expr_Q and use Expr_Q in
3302 subsequent pattern matching.
3303 (Initialize_Ctrl_Record_Component): Do the pattern matching of the
3304 unqualified version of the aggregate.
3305 (Build_Record_Aggr_Code): Call Unqualify.
3306 (Convert_Aggr_In_Assignment): Likewise.
3307 (Convert_Aggr_In_Object_Decl): Likewise.
3308 (Component_OK_For_Backend): Likewise.
3309 (Is_Delayed_Aggregate): Likewise.
3310
3311 2023-05-30 Eric Botcazou <[email protected]>
3312
3313 * exp_aggr.adb (Build_Array_Aggr_Code.Get_Assoc_Expr): Duplicate the
3314 expression here instead of...
3315 (Build_Array_Aggr_Code): ...here.
3316
3317 2023-05-30 Eric Botcazou <[email protected]>
3318
3319 * freeze.adb (Check_Large_Modular_Array): Fix head comment, use
3320 Standard_Long_Long_Integer_Size directly and generate a reference
3321 just before the raise statement if the Etype of the object is an
3322 itype declared in an open scope.
3323
3324 2023-05-30 Eric Botcazou <[email protected]>
3325
3326 * exp_ch7.adb (Find_Enclosing_Transient_Scope): Return the index in
3327 the scope table instead of the scope's entity.
3328 (Establish_Transient_Scope): If an enclosing scope already exists,
3329 do not set the Uses_Sec_Stack flag on it if the node to be wrapped
3330 is a return statement which requires secondary stack management.
3331
3332 2023-05-30 Joel Brobecker <[email protected]>
3333
3334 * Makefile.rtl: Use libgnat/s-tsmona__linux.adb on
3335 aarch64-linux. Link libgnat with -ldl, as the use of
3336 s-tsmona__linux.adb requires it.
3337
3338 2023-05-30 Piotr Trojanek <[email protected]>
3339
3340 * exp_ch3.adb
3341 (Build_Access_Subprogram_Wrapper_Body): Build wrapper body if requested
3342 by routine that builds wrapper spec.
3343 * sem_ch3.adb
3344 (Analyze_Full_Type_Declaration): Only build wrapper when expander is
3345 active.
3346 (Build_Access_Subprogram_Wrapper):
3347 Remove special-case for GNATprove.
3348
3349 2023-05-30 Ronan Desplanques <[email protected]>
3350
3351 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix minor issues.
3352 * doc/gnat_ugn/the_gnat_compilation_model.rst: Fix minor issues.
3353 * gnat_ugn.texi: Regenerate.
3354
3355 2023-05-30 Johannes Kliemann <[email protected]>
3356
3357 * libgnat/s-parame.adb: Check that Default_Stack_Size >=
3358 Minimum_Stack_size.
3359 * libgnat/s-parame__rtems.adb: Ditto.
3360 * libgnat/s-parame__vxworks.adb: Check that Default_Stack_Size >=
3361 Minimum_Stack_size and use the proper Minimum_Stack_Size if
3362 Stack_Check_Limits is enabled.
3363
3364 2023-05-30 Eric Botcazou <[email protected]>
3365
3366 * sem_res.adb (Resolve_Call): Restrict previous change to calls that
3367 return on the same stack as the enclosing function. Tidy up.
3368
3369 2023-05-30 Eric Botcazou <[email protected]>
3370
3371 * libgnat/a-cidlli.adb (Put_Image): Simplify.
3372 * libgnat/a-coinve.adb (Put_Image): Likewise.
3373
3374 2023-05-30 Eric Botcazou <[email protected]>
3375
3376 * exp_util.adb (Build_DIC_Procedure_Body.Add_Own_DIC): When inside
3377 a generic unit, preanalyze the expression directly.
3378 (Build_Invariant_Procedure_Body.Add_Own_Invariants): Likewise.
3379
3380 2023-05-30 Cedric Landet <[email protected]>
3381
3382 * init.c: Replace FIXME by ???
3383
3384 2023-05-29 Cedric Landet <[email protected]>
3385
3386 * s-oscons-tmplt.c: move the definition of sigset out of the
3387 HAVE_SOCKETS bloc.
3388
3389 2023-05-29 Cedric Landet <[email protected]>
3390
3391 * Makefile.rtl: Move g-spogwa$(objext) from GNATRTL_NONTASKING_OBJS
3392 to GNATRTL_SOCKETS_OBJS
3393
3394 2023-05-29 Eric Botcazou <[email protected]>
3395
3396 * freeze.adb (Wrap_Imported_Subprogram): Use Copy_Subprogram_Spec in
3397 both cases to copy the spec of the subprogram.
3398
3399 2023-05-29 Eric Botcazou <[email protected]>
3400
3401 * exp_ch7.adb (Establish_Transient_Scope.Find_Transient_Context):
3402 Bail out for a simple return statement only if the transient scope
3403 and the function both require secondary stack management, or else
3404 if the function is a thunk.
3405 * sem_res.adb (Resolve_Call): Do not create a transient scope when
3406 the call is the expression of a simple return statement.
3407
3408 2023-05-29 Patrick Bernardi <[email protected]>
3409
3410 * libgnat/a-excach.adb (Call_Chain): Replace
3411 Code_Address_For_AAA/ZZZ functions with AAA/ZZZ'Code_Address.
3412 * libgnat/a-except.adb (Code_Address_For_AAA/ZZZ): Delete.
3413 (AAA/ZZZ): New null procedures.
3414 * libgnat/g-debpoo.adb
3415 (Code_Address_For_Allocate_End): Delete.
3416 (Code_Address_For_Deallocate_End): Delete.
3417 (Code_Address_For_Dereference_End): Delete.
3418 (Allocate): Remove label and use Code_Address attribute to
3419 determine subprogram addresses.
3420 (Dellocate): Likewise.
3421 (Dereference): Likewise.
3422 (Allocate_End): Convert to null procedure.
3423 (Dellocate_End): Likewise.
3424 (Dereference_End): Likewise.
3425
3426 2023-05-29 Eric Botcazou <[email protected]>
3427
3428 * exp_ch6.adb (Expand_Simple_Function_Return): Call Insert_Actions
3429 consistently when rewriting the expression.
3430
3431 2023-05-29 Eric Botcazou <[email protected]>
3432
3433 * exp_util.adb (Is_Finalizable_Transient.Is_Indexed_Container):
3434 New predicate to detect a temporary created to hold the result of
3435 a constant indexing on a container.
3436 (Is_Finalizable_Transient.Is_Iterated_Container): Adjust a couple
3437 of obsolete comments.
3438 (Is_Finalizable_Transient): Return False if Is_Indexed_Container
3439 returns True on the object.
3440
3441 2023-05-29 Eric Botcazou <[email protected]>
3442
3443 * sem_res.adb (Has_Applicable_User_Defined_Literal): Make it clear
3444 that the predicate also checks the node itself.
3445 (Try_User_Defined_Literal): Move current implementation to...
3446 Deal only with literals, named numbers and conditional expressions
3447 whose dependent expressions are literals or named numbers.
3448 (Try_User_Defined_Literal_For_Operator): ...this. Remove multiple
3449 return False statements and put a single one at the end.
3450 (Resolve): Call Try_User_Defined_Literal instead of directly
3451 Has_Applicable_User_Defined_Literal for all nodes. Call
3452 Try_User_Defined_Literal_For_Operator for operator nodes.
3453
3454 2023-05-29 Piotr Trojanek <[email protected]>
3455
3456 * sem_res.adb (Invoked_With_Different_Arguments): Use Get_Called_Entity,
3457 which properly deals with calls via an access-to-subprogram; fix
3458 inconsistent use of a Call object declared in enclosing subprogram.
3459
3460 2023-05-29 Piotr Trojanek <[email protected]>
3461
3462 * contracts.adb
3463 (Add_Pre_Post_Condition): Attach pre/post aspects to E_Subprogram_Type
3464 entity.
3465 (Analyze_Entry_Or_Subprogram_Contract): Adapt to use full type
3466 declaration for a contract attached to E_Subprogram_Type entity.
3467 * sem_prag.adb
3468 (Analyze_Pre_Post_Condition): Add pre/post aspects to the designed type.
3469
3470 2023-05-29 Piotr Trojanek <[email protected]>
3471
3472 * sem_util.adb (Check_Function_Writable_Actuals): Remove guard against
3473 a membership test with no alternatives; simplify with a membership test.
3474
3475 2023-05-29 Piotr Trojanek <[email protected]>
3476
3477 * doc/gnat_ugn/gnat_and_program_execution.rst
3478 (Some Useful Memory Pools): Remove extra whitespace from examples.
3479 * sem_aggr.adb (Make_String_Into_Aggregate): Remove extra whitespace.
3480 * gnat_ugn.texi: Regenerate.
3481
3482 2023-05-29 Piotr Trojanek <[email protected]>
3483
3484 * exp_aggr.adb (Convert_Aggr_In_Allocator): Replace Get_TSS_Name
3485 with a high-level Is_TSS.
3486 * sem_ch6.adb (Check_Conformance): Replace DECLARE block and
3487 nested IF with a call to Get_TSS_Name and a membership test.
3488 (Has_Reliable_Extra_Formals): Refactor repeated calls to
3489 Get_TSS_Name.
3490 * sem_disp.adb (Check_Dispatching_Operation): Replace repeated
3491 calls to Get_TSS_Name with a membership test.
3492
3493 2023-05-29 Eric Botcazou <[email protected]>
3494
3495 * exp_ch5.adb (Expand_N_Case_Statement): Do not remove the statement
3496 if it is the node to be wrapped by a transient scope.
3497
3498 2023-05-29 Eric Botcazou <[email protected]>
3499
3500 * sem_prag.adb (Process_Compile_Time_Warning_Or_Error): Do not defer
3501 anything to the back-end when the main unit is generic.
3502
3503 2023-05-29 Eric Botcazou <[email protected]>
3504
3505 * sem_res.adb (Try_User_Defined_Literal): Restrict previous change
3506 to non-leaf nodes.
3507
3508 2023-05-29 Eric Botcazou <[email protected]>
3509
3510 * sem_res.adb (Try_User_Defined_Literal): For arithmetic operators,
3511 also accept operands whose type is covered by the resolution type.
3512
3513 2023-05-29 Eric Botcazou <[email protected]>
3514
3515 * exp_aggr.adb (Initialize_Array_Component): Fix condition detecting
3516 the nested case that requires an adjustment.
3517
3518 2023-05-29 Eric Botcazou <[email protected]>
3519
3520 * exp_ch4.adb (Expand_N_In): Deal specifically with a null operand.
3521
3522 2023-05-29 Eric Botcazou <[email protected]>
3523
3524 * exp_ch6.adb (Expand_Simple_Function_Return): Deal with a rewriting
3525 of the simple return during the adjustment of its expression.
3526
3527 2023-05-29 Eric Botcazou <[email protected]>
3528
3529 * exp_ch4.adb (Expand_N_Case_Expression): Distribute simple return
3530 statements enclosing the conditional expression into the dependent
3531 expressions in almost all cases.
3532 (Expand_N_If_Expression): Likewise.
3533 (Process_Transient_In_Expression): Adjust to the above distribution.
3534 * exp_ch6.adb (Expand_Ctrl_Function_Call): Deal with calls in the
3535 dependent expressions of a conditional expression.
3536 * sem_ch6.adb (Analyze_Function_Return): Deal with the rewriting of
3537 a simple return statement during the resolution of its expression.
3538
3539 2023-05-29 Piotr Trojanek <[email protected]>
3540
3541 * sem_res.adb (Resolve_Entity_Name): Refine rules for Exceptional_Cases.
3542
3543 2023-05-29 Marc Poulhiès <[email protected]>
3544
3545 * exp_aggr.adb (Convert_To_Assignments): Do not mark node for
3546 delayed expansion if parent type has the Aggregate aspect.
3547 * sem_util.adb (Is_Container_Aggregate): Move...
3548 * sem_util.ads (Is_Container_Aggregate): ... here and make it
3549 public.
3550
3551 2023-05-29 Piotr Trojanek <[email protected]>
3552
3553 * sem_res.adb (Resolve_Entity_Name): Relax rules for Exceptional_Cases.
3554
3555 2023-05-29 Eric Botcazou <[email protected]>
3556
3557 * sem_ch4.ads (Unresolved_Operator): New procedure.
3558 * sem_ch4.adb (Has_Possible_Literal_Aspects): Rename into...
3559 (Has_Possible_User_Defined_Literal): ...this. Tidy up.
3560 (Operator_Check): Accept again unresolved operators if they have a
3561 possible user-defined literal as operand. Factor out the handling
3562 of the general error message into...
3563 (Unresolved_Operator): ...this new procedure.
3564 * sem_res.adb (Resolve): Be prepared for unresolved operators on
3565 entry in Ada 2022 or later. If they are still unresolved on exit,
3566 call Unresolved_Operator to give the error message.
3567 (Try_User_Defined_Literal): Tidy up.
3568
3569 2023-05-29 Steve Baird <[email protected]>
3570
3571 * exp_ch3.adb
3572 (Expand_N_Object_Declaration.Default_Initialize_Object): Add test for
3573 specified Default_Component_Value aspect when deciding whether
3574 either Initialize_Scalars or Normalize_Scalars impacts default
3575 initialization of an array object.
3576
3577 2023-05-29 Javier Miranda <[email protected]>
3578
3579 * sem_aggr.adb
3580 (Resolve_Record_Aggregate): For aggregates of derived tagged
3581 record types with discriminants, when collecting components
3582 from ancestors, pass to subprogram Gather_Components the
3583 parent type. Required to report errors on wrong aggregate
3584 components.
3585
3586 2023-05-29 Piotr Trojanek <[email protected]>
3587
3588 * sem_util.adb (Check_Result_And_Post_State): Replace low-level
3589 navigation with a high-level Unique_Entity.
3590
3591 2023-05-29 Piotr Trojanek <[email protected]>
3592
3593 * sem_util.adb (Check_Result_And_Post_State): Properly handle entry
3594 bodies.
3595
3596 2023-05-29 Piotr Trojanek <[email protected]>
3597
3598 * contracts.adb (Fix_Parent): Fir part both for lists and nodes.
3599
3600 2023-05-29 Arnaud Charlet <[email protected]>
3601
3602 * sem_ch7.adb: Refine handling of inlining for CCG
3603
3604 2023-05-29 Eric Botcazou <[email protected]>
3605
3606 * sem_ch12.adb (Copy_Generic_Node): Test the original node kind
3607 for the sake of consistency. For identifiers and other entity
3608 names and operators, accept an expanded name as associated node.
3609 Replace "or" with "or else" in condtion and fix its formatting.
3610
3611 2023-05-29 Piotr Trojanek <[email protected]>
3612
3613 * sem_util.adb (Check_Result_And_Post_State): Tune message.
3614
3615 2023-05-29 Piotr Trojanek <[email protected]>
3616
3617 * contracts.adb (Remove_Formals): Remove.
3618 (Preanalyze_Condition): Replace Pop_Scope with End_Scope.
3619 * sem_ch13.adb (Build_Discrete_Static_Predicate): Replace
3620 Pop_Scope with End_Scope; enclose Install_Formals within
3621 Push_Scope/End_Scope.
3622
3623 2023-05-29 Piotr Trojanek <[email protected]>
3624
3625 * sem_prag.adb (Analyze_Pre_Post_Condition): Tune error message.
3626
3627 2023-05-29 Javier Miranda <[email protected]>
3628
3629 * scans.ads (Inside_Interpolated_String_Expression): New variable.
3630 * par-ch2.adb (P_Interpolated_String_Literal): Set/clear new
3631 variable when parsing interpolated string expressions.
3632 * scng.adb (Set_String): Skip processing operator symbols when we
3633 arescanning an interpolated string literal.
3634
3635 2023-05-29 Johannes Kliemann <[email protected]>
3636
3637 * Makefile.rtl (QNX): Use s-parame__qnx.adb for s-parame.adb.
3638 * libgnat/s-parame__qnx.adb: Add QNX specific version of
3639 System.Parameters.
3640
3641 2023-05-29 Yannick Moy <[email protected]>
3642
3643 * libgnat/a-ngelfu.ads: Restore SPARK_Mode from context.
3644
3645 2023-05-29 Marc Poulhiès <[email protected]>
3646
3647 * contracts.adb (Restore_Original_Selected_Component): Adjust assertion.
3648
3649 2023-05-29 Piotr Trojanek <[email protected]>
3650
3651 * contracts.adb
3652 (Add_Pre_Post_Condition): Adapt to handle pre/post of an
3653 access-to-subprogram type.
3654 (Analyze_Type_Contract): Analyze pre/post of an
3655 access-to-subprogram.
3656 * contracts.ads
3657 (Analyze_Type_Contract): Adapt comment.
3658 * sem_ch3.adb
3659 (Build_Access_Subprogram_Wrapper): Copy pre/post aspects to
3660 wrapper spec and keep it on the type.
3661 * sem_prag.adb
3662 (Analyze_Pre_Post_Condition): Expect pre/post aspects on
3663 access-to-subprogram and complain if they appear without -gnat2022
3664 switch.
3665 (Analyze_Pre_Post_Condition_In_Decl_Part): Adapt to handle
3666 pre/post on an access-to-subprogram type entity.
3667 * sem_attr.adb (Analyze_Attribute_Old_Result): Likewise.
3668 (Result): Likewise.
3669
3670 2023-05-26 Bob Duff <[email protected]>
3671
3672 * sem_ch3.adb
3673 (Build_Derived_Record_Type): Temporarily set the state of the
3674 Derived_Type to "self-hidden" while processing constraints
3675 and discriminants of a record extension.
3676
3677 2023-05-26 Bob Duff <[email protected]>
3678
3679 * einfo.ads: Add comma.
3680 * contracts.adb: Fix typos.
3681 * exp_attr.adb: Likewise.
3682 * exp_ch5.adb: Likewise.
3683 * exp_ch6.adb: Likewise.
3684 * lib-xref.adb: Likewise.
3685
3686 2023-05-26 Eric Botcazou <[email protected]>
3687
3688 * debug.adb (d.N): Document new usage.
3689 * exp_ch4.adb (Expand_N_Type_Conversion): Copy the Float_Truncate
3690 flag when rewriting a floating-point to fixed-point conversion as
3691 a floating-point to integer conversion.
3692 * exp_fixd.adb: Add with and use clauses for Debug.
3693 (Expand_Convert_Fixed_To_Fixed): Generate a truncation in all cases
3694 except if the result is explicitly rounded.
3695 (Expand_Convert_Integer_To_Fixed): Likewise.
3696 (Expand_Convert_Float_To_Fixed): Generate a truncation for all kind
3697 of fixed-point types, except if the result is explicitly rounded, or
3698 -gnatd.N is specified and the type is an ordinary fixed-point type.
3699 * sinfo.ads (Float_Truncate): Document usage for floating-point to
3700 fixed-point conversions.
3701
3702 2023-05-26 Javier Miranda <[email protected]>
3703
3704 * exp_ch4.adb
3705 (Expand_N_Allocator): If an allocator with constraints is called
3706 in the return statement of a function returning a general access
3707 type, then propagate to the itype the master of the general
3708 access type (since it is the master associated with the
3709 returned object).
3710
3711 2023-05-26 Yannick Moy <[email protected]>
3712
3713 * sem_aggr.adb (Resolve_Record_Aggregate): Add dummy initialization and
3714 assertion that clarifies when we reassigned to a useful value.
3715
3716 2023-05-26 Yannick Moy <[email protected]>
3717
3718 * doc/gnat_rm/gnat_language_extensions.rst: Be more explicit on
3719 pattern matching limitation.
3720 * gnat_rm.texi: Regenerate.
3721 * gnat_ugn.texi: Regenerate.
3722
3723 2023-05-26 Yannick Moy <[email protected]>
3724
3725 * libgnat/a-calend.ads: Mark with SPARK_Mode=>Off the functions which may
3726 raise Time_Error.
3727 * libgnat/a-ngelfu.ads: Mark with SPARK_Mode=>Off the functions which may
3728 lead to an overflow (which is not the case of Tan with one parameter for
3729 example, or Arctanh or Arcoth, despite their mathematical range covering
3730 the reals).
3731 * libgnat/a-textio.ads: Remove Always_Return annotation from functions, as
3732 this is now compulsory for functions to always return in SPARK.
3733 * libgnat/i-cstrin.ads: Add Might_Not_Return annotation to Update procedure
3734 which may not return.
3735
3736 2023-05-26 Bob Duff <[email protected]>
3737
3738 * exp_put_image.adb (Build_Image_Call): Treat 'Img the same as
3739 'Image.
3740 * exp_imgv.adb (Expand_Image_Attribute): If Discard_Names, expand
3741 to 'Image instead of 'Img.
3742 * snames.ads-tmpl, par-ch4.adb, sem_attr.adb, sem_attr.ads:
3743 Cleanups: Rename Attribute_Class_Array to be Attribute_Set. Remove
3744 unnecessary qualifications. DRY: Don't repeat "True".
3745
3746 2023-05-26 Piotr Trojanek <[email protected]>
3747
3748 * sem_prag.adb (Record_Possible_Body_Reference): Remove call to Present.
3749 * sem_util.adb (Find_Untagged_Type_Of): Likewise.
3750
3751 2023-05-26 Eric Botcazou <[email protected]>
3752
3753 * exp_aggr.adb (Initialize_Array_Component): Remove obsolete code.
3754 (Expand_Array_Aggregate): In the case where a temporary is created
3755 and the parent is an assignment statement with No_Ctrl_Actions set,
3756 set Is_Ignored_Transient on the temporary.
3757
3758 2023-05-26 Eric Botcazou <[email protected]>
3759
3760 * sem_ch12.adb (Instantiate_Package_Body): Set the ghost mode to
3761 that of the instance only after loading the generic's parent.
3762 (Instantiate_Subprogram_Body): Likewise.
3763
3764 2023-05-26 Piotr Trojanek <[email protected]>
3765
3766 * exp_ch4.adb (Expand_Set_Membership): Simplify by using Evolve_Or_Else.
3767
3768 2023-05-26 Piotr Trojanek <[email protected]>
3769
3770 * exp_ch4.adb (Is_OK_Object_Reference): Replace loop with a call to
3771 Unqual_Conv; consequently, change object from variable to constant;
3772 replace an IF statement with an AND THEN expression.
3773
3774 2023-05-26 Piotr Trojanek <[email protected]>
3775
3776 * exp_ch9.adb
3777 (Build_Entry_Count_Expression): Remove loop over component declaration;
3778 consequently remove a parameter that is no longer used; adapt callers.
3779 (Make_Task_Create_Call): Refine type of a local variable.
3780
3781 2023-05-26 Piotr Trojanek <[email protected]>
3782
3783 * sem_cat.adb (Check_Non_Static_Default_Expr): Detect components inside
3784 loop, not in the loop condition itself.
3785
3786 2023-05-26 Eric Botcazou <[email protected]>
3787
3788 * libgnat/a-cbdlli.ads (List): Move Nodes component to the end.
3789
3790 2023-05-26 Eric Botcazou <[email protected]>
3791
3792 * libgnat/a-crdlli.ads (List): Move Nodes component to the end.
3793
3794 2023-05-26 Eric Botcazou <[email protected]>
3795
3796 * sem_attr.adb (Is_Thin_Pointer_To_Unc_Array): New predicate.
3797 (Resolve_Attribute): Apply the static matching legality rule to an
3798 Unrestricted_Access attribute applied to an aliased prefix if the
3799 type is a thin pointer. Call Is_Thin_Pointer_To_Unc_Array for the
3800 aliasing legality rule as well.
3801
3802 2023-05-26 Piotr Trojanek <[email protected]>
3803
3804 * sem_util.adb (Is_Null_Record_Definition): Use First_Non_Pragma and
3805 Next_Non_Pragma to ignore pragmas within component list.
3806
3807 2023-05-26 Piotr Trojanek <[email protected]>
3808
3809 * sem_prag.adb (Get_Argument): Improve detection of generic units.
3810
3811 2023-05-26 Piotr Trojanek <[email protected]>
3812
3813 * sem_ch4.adb (Check_Action_OK): Replace low-level test with a
3814 high-level routine.
3815 * sem_ch13.adb (Is_Predicate_Static): Likewise.
3816
3817 2023-05-26 Javier Miranda <[email protected]>
3818
3819 * exp_ch9.adb
3820 (Expand_N_Conditional_Entry_Call): Factorize code to avoid
3821 duplicating subtrees; required to avoid problems when the copied
3822 code has implicit labels.
3823 * sem_util.ads (New_Copy_Separate_List): Removed.
3824 (New_Copy_Separate_Tree): Removed.
3825 * sem_util.adb (New_Copy_Separate_List): Removed.
3826 (New_Copy_Separate_Tree): Removed.
3827
3828 2023-05-26 Piotr Trojanek <[email protected]>
3829
3830 * sem_ch13.adb (Check_Component_List): Local variable Compl is now
3831 a constant; a nested block is no longer needed.
3832
3833 2023-05-26 Piotr Trojanek <[email protected]>
3834
3835 * sem_aggr.adb
3836 (Resolve_Record_Aggregate): Remove useless assignment.
3837 * sem_aux.adb
3838 (Has_Variant_Part): Remove useless guard; this routine is only called
3839 on type entities (and now will crash in other cases).
3840 * sem_ch3.adb
3841 (Create_Constrained_Components): Only assign Assoc_List when necessary;
3842 tune whitespace.
3843 (Is_Variant_Record): Refactor repeated calls to Parent.
3844 * sem_util.adb
3845 (Gather_Components): Assert that discriminant association has just one
3846 choice in component_association; refactor repeated calls to Next.
3847 * sem_util.ads
3848 (Gather_Components): Tune whitespace in comment.
3849
3850 2023-05-26 Piotr Trojanek <[email protected]>
3851
3852 * sem_ch3.adb (Check_CPP_Type_Has_No_Defaults): Iterate with
3853 First_Non_Pragma and Next_Non_Pragma.
3854 * exp_dist.adb (Append_Record_Traversal): Likewise.
3855
3856 2023-05-26 Javier Miranda <[email protected]>
3857
3858 * exp_ch9.adb (Build_Class_Wide_Master): Remember internal blocks
3859 that have a task master entity declaration.
3860 (Build_Master_Entity): Code cleanup.
3861 * sem_util.ads (Is_Internal_Block): New subprogram.
3862 * sem_util.adb (Is_Internal_Block): New subprogram.
3863
3864 2023-05-26 Piotr Trojanek <[email protected]>
3865
3866 * sem_util.adb (Gather_Components): Remove guard for empty list of
3867 components.
3868
3869 2023-05-26 Eric Botcazou <[email protected]>
3870
3871 * back_end.adb (Call_Back_End): Add gigi_standard_address to the
3872 signature of the gigi procedure and alphabetize other parameters.
3873 Pass Standard_Address as actual parameter for it.
3874 * cstand.adb (Create_Standard): Do not set Is_Descendant_Of_Address
3875 on Standard_Address.
3876 * gcc-interface/gigi.h (gigi): Add a standard_address parameter and
3877 alphabetize others.
3878 * gcc-interface/trans.cc (gigi): Likewise. Record a builtin address
3879 type and save it as the type for Standard.Address.
3880
3881 2023-05-26 Ghjuvan Lacambre <[email protected]>
3882
3883 * exp_disp.adb (Expand_Dispatching_Call): Handle new Controlling_Tag.
3884 * sem_scil.adb (Check_SCIL_Node): Treat N_Object_Renaming_Declaration as
3885 N_Object_Declaration.
3886
3887 2023-05-26 Piotr Trojanek <[email protected]>
3888
3889 * exp_aggr.adb
3890 (Build_Constrained_Type): Remove local constants that were shadowing
3891 equivalent global constants; replace a wrapper that calls
3892 Make_Integer_Literal with a numeric literal; remove explicit
3893 Aliased_Present parameter which is equivalent to the default value.
3894 (Check_Bounds): Remove unused initial value.
3895 (Expand_Array_Aggregate): Use aggregate type from the context.
3896
3897 2023-05-26 Eric Botcazou <[email protected]>
3898
3899 * einfo.ads (Delay_Cleanups): Document new usage.
3900 * exp_ch7.ads (Build_Finalizer): New declaration.
3901 * exp_ch7.adb (Build_Finalizer.Process_Declarations): Do not treat
3902 library-level package instantiations specially.
3903 (Build_Finalizer): Return early for package bodies and specs that
3904 are not compilation units instead of using a more convoluted test.
3905 (Expand_N_Package_Body): Do not build a finalizer if Delay_Cleanups
3906 is set on the defining entity.
3907 (Expand_N_Package_Declaration): Likewise.
3908 * inline.ads (Pending_Body_Info): Reorder and add Fin_Scop.
3909 (Add_Pending_Instantiation): Add Fin_Scop parameter.
3910 * inline.adb (Add_Pending_Instantiation): Likewise and copy it into
3911 the Pending_Body_Info appended to Pending_Instantiations.
3912 (Add_Scope_To_Clean): Change parameter name to Scop and remove now
3913 irrelevant processing.
3914 (Cleanup_Scopes): Deal with scopes that are package specs or bodies.
3915 (Instantiate_Body): For package instantiations, deal specially with
3916 scopes that are package bodies and with scopes that are dynamic.
3917 Pass the resulting scope to Add_Scope_To_Clean directly.
3918 * sem_ch12.adb (Analyze_Package_Instantiation): In the case where a
3919 body is needed, compute the enclosing finalization scope and pass it
3920 in the call to Add_Pending_Instantiation.
3921 (Inline_Instance_Body): Adjust aggregate passed in the calls to
3922 Instantiate_Package_Body.
3923 (Load_Parent_Of_Generic): Likewise.
3924
3925 2023-05-26 Eric Botcazou <[email protected]>
3926
3927 * sem_util.adb (Compile_Time_Constraint_Error): Test the Ekind.
3928
3929 2023-05-26 Piotr Trojanek <[email protected]>
3930
3931 * exp_aggr.adb (Build_Constrained_Type): Use List_Length to count
3932 expressions in consecutive subaggregates.
3933
3934 2023-05-26 Doug Rupp <[email protected]>
3935
3936 * libgnarl/s-osinte__qnx.ads (sigset_t): Modify
3937 declaration to use system.os_constants computed
3938 value. Align it.
3939
3940 2023-05-26 Eric Botcazou <[email protected]>
3941
3942 * exp_sel.adb: Add clauses for Sem_Util, remove them for Opt, Sinfo
3943 and Sinfo.Nodes.
3944 (Build_K): Always use 'Tag of the object.
3945 (Build_S_Assignment): Likewise.
3946
3947 2023-05-26 Piotr Trojanek <[email protected]>
3948
3949 * accessibility.adb
3950 (Is_Formal_Of_Current_Function): This routine expects an entity
3951 reference and not the entity itself, so its parameter is a Node_Id
3952 and not an Entity_Id.
3953
3954 2023-05-26 Piotr Trojanek <[email protected]>
3955
3956 * exp_aggr.adb
3957 (Build_Array_Aggr_Code): Change variable to constant.
3958 (Check_Same_Aggr_Bounds): Fix style; remove unused initial value.
3959
3960 2023-05-26 Ronan Desplanques <[email protected]>
3961
3962 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Create extra formals
3963 in more situations.
3964
3965 2023-05-26 Eric Botcazou <[email protected]>
3966
3967 * checks.adb (Selected_Range_Checks): Add guards to protect calls
3968 to Expr_Value on bounds.
3969
3970 2023-05-26 Eric Botcazou <[email protected]>
3971
3972 * sem_eval.ads (Is_Null_Range): Remove requirements of compile-time
3973 known bounds and add WARNING line.
3974 (Not_Null_Range): Remove requirements of compile-time known bounds.
3975 * sem_eval.adb (Is_Null_Range): Fall back to Compile_Time_Compare.
3976 (Not_Null_Range): Likewise.
3977 * fe.h (Is_Null_Range): New predicate.
3978
3979 2023-05-25 Javier Miranda <[email protected]>
3980
3981 * sem_aggr.adb
3982 (Warn_On_Null_Component_Association): New subprogram.
3983 (Empty_Range): Adding missing support for iterated component
3984 association node.
3985 (Resolve_Array_Aggregate): Report warning on iterated component
3986 association that may initialize some component of an array of
3987 null-excluding access type components with a null value.
3988 * exp_ch4.adb
3989 (Expand_N_Expression_With_Actions): Add missing type check since
3990 the subtype of the EWA node and the subtype of the expression
3991 may differ.
3992
3993 2023-05-25 Piotr Trojanek <[email protected]>
3994
3995 * sem_util.adb (Determining_Expressions): Fix style; fix layout and
3996 ordering of pragma names; expect pragma Exceptional_Cases.
3997
3998 2023-05-25 Piotr Trojanek <[email protected]>
3999
4000 * einfo-utils.adb (Write_Entity_Info): Use procedural Next_Index.
4001 * sem_aggr.adb (Collect_Aggr_Bounds): Reuse local constant.
4002 (Resolve_Null_Array_Aggregate): Use procedural Next_Index.
4003
4004 2023-05-25 Javier Miranda <[email protected]>
4005
4006 * exp_aggr.adb (Build_Record_Aggr_Code): Protect access to
4007 aggregate components when the aggregate is empty.
4008
4009 2023-05-25 Johannes Kliemann <[email protected]>
4010
4011 * libgnat/system-vxworks7-ppc-kernel.ads: Enable
4012 Support_Atomic_Primitives.
4013 * libgnat/system-vxworks7-ppc-rtp-smp.ads: Likewise.
4014
4015 2023-05-25 Eric Botcazou <[email protected]>
4016
4017 * sem_ch3.adb (Find_Type_Of_Object): Copy the object definition when
4018 building the subtype declaration in the case of a spec expression.
4019
4020 2023-05-25 Tom Tromey <[email protected]>
4021
4022 * Make-generated.in (ada/stamp-snames): Check result of
4023 gnatmake.
4024
4025 2023-05-25 Eric Botcazou <[email protected]>
4026
4027 * cstand.adb (Create_Standard): Set the Is_Descendant_Of_Address
4028 flag on Standard_Address.
4029 * freeze.adb (Freeze_Entity): Copy the modulus of System.Address
4030 onto Standard_Address.
4031
4032 2023-05-25 Eric Botcazou <[email protected]>
4033
4034 * libgnat/system-aix.ads (Address): Likewise.
4035 * libgnat/system-darwin-arm.ads (Address): Likewise.
4036 * libgnat/system-darwin-ppc.ads (Address): Likewise.
4037 * libgnat/system-darwin-x86.ads (Address): Likewise.
4038 * libgnat/system-djgpp.ads (Address): Likewise.
4039 * libgnat/system-dragonfly-x86_64.ads (Address): Likewise.
4040 * libgnat/system-freebsd.ads (Address): Likewise.
4041 * libgnat/system-hpux-ia64.ads (Address): Likewise.
4042 * libgnat/system-hpux.ads (Address): Likewise.
4043 * libgnat/system-linux-alpha.ads (Address): Likewise.
4044 * libgnat/system-linux-arm.ads (Address): Likewise.
4045 * libgnat/system-linux-hppa.ads (Address): Likewise.
4046 * libgnat/system-linux-ia64.ads (Address): Likewise.
4047 * libgnat/system-linux-m68k.ads (Address): Likewise.
4048 * libgnat/system-linux-mips.ads (Address): Likewise.
4049 * libgnat/system-linux-ppc.ads (Address): Likewise.
4050 * libgnat/system-linux-riscv.ads (Address): Likewise.
4051 * libgnat/system-linux-s390.ads (Address): Likewise.
4052 * libgnat/system-linux-sh4.ads (Address): Likewise.
4053 * libgnat/system-linux-sparc.ads (Address): Likewise.
4054 * libgnat/system-linux-x86.ads (Address): Likewise.
4055 * libgnat/system-lynxos178-ppc.ads (Address): Likewise.
4056 * libgnat/system-lynxos178-x86.ads (Address): Likewise.
4057 * libgnat/system-mingw.ads (Address): Likewise.
4058 * libgnat/system-qnx-arm.ads (Address): Likewise.
4059 * libgnat/system-rtems.ads (Address): Likewise.
4060 * libgnat/system-solaris-sparc.ads (Address): Likewise.
4061 * libgnat/system-solaris-x86.ads (Address): Likewise.
4062 * libgnat/system-vxworks-ppc-kernel.ads (Address): Likewise.
4063 * libgnat/system-vxworks-ppc-rtp-smp.ads (Address): Likewise.
4064 * libgnat/system-vxworks-ppc-rtp.ads (Address): Likewise.
4065 * libgnat/system-vxworks7-aarch64-rtp-smp.ads (Address): Likewise.
4066 * libgnat/system-vxworks7-aarch64.ads (Address): Likewise.
4067 * libgnat/system-vxworks7-arm-rtp-smp.ads (Address): Likewise.
4068 * libgnat/system-vxworks7-arm.ads (Address): Likewise.
4069 * libgnat/system-vxworks7-ppc-kernel.ads (Address): Likewise.
4070 * libgnat/system-vxworks7-ppc-rtp-smp.ads (Address): Likewise.
4071 * libgnat/system-vxworks7-ppc64-kernel.ads (Address): Likewise.
4072 * libgnat/system-vxworks7-ppc64-rtp-smp.ads (Address): Likewise.
4073 * libgnat/system-vxworks7-x86-kernel.ads (Address): Likewise.
4074 * libgnat/system-vxworks7-x86-rtp-smp.ads (Address): Likewise.
4075 * libgnat/system-vxworks7-x86_64-kernel.ads (Address): Likewise.
4076 * libgnat/system-vxworks7-x86_64-rtp-smp.ads (Address): Likewise.
4077
4078 2023-05-25 Marc Poulhiès <[email protected]>
4079
4080 * sem_ch13.adb (Check_Aspect_At_Freeze_Point): fix format string,
4081 use existing local Ident.
4082
4083 2023-05-25 Bob Duff <[email protected]>
4084
4085 * atree.adb (Check_Vanishing_Fields): Fix bug in the "blah type
4086 only" cases. Remove the special cases for E_Void. Misc cleanup.
4087 (Mutate_Nkind): Disallow mutating to the same kind.
4088 (Mutate_Ekind): Disallow mutating to E_Void.
4089 (From E_Void is still OK -- entities start out as E_Void by
4090 default.) Fix bug in statistics gathering -- was setting the wrong
4091 count. Enable Check_Vanishing_Fields for entities.
4092 * sem_ch8.adb (Is_Self_Hidden): New function.
4093 (Find_Direct_Name): Call Is_Self_Hidden to use the new
4094 Is_Not_Self_Hidden flag to determine whether a declaration is
4095 hidden from all visibility by itself. This replaces the old method
4096 of checking E_Void.
4097 (Find_Expanded_Name): Likewise.
4098 (Find_Selected_Component): Likewise.
4099 * sem_util.adb (Enter_Name): Remove setting of Ekind to E_Void.
4100 * sem_ch3.adb: Set the Is_Not_Self_Hidden flag in appropriate
4101 places. Comment fixes.
4102 (Inherit_Component): Remove setting of Ekind to E_Void.
4103 * sem_ch9.adb
4104 (Analyze_Protected_Type_Declaration): Update comment. Skip Itypes,
4105 which should not be turned into components.
4106 * atree.ads (Mutate_Nkind): Document error case.
4107 (Mutate_Ekind): Remove comments apologizing for E_Void mutations.
4108 Document error cases.
4109
4110 2023-05-25 Eric Botcazou <[email protected]>
4111
4112 * libgnat/a-ststio.adb (Set_Mode): Test System.Memory_Size.
4113 * libgnat/g-debuti.ads (Address_64): Likewise.
4114 * libgnat/i-c.ads: Add with clause for System.
4115 (ptrdiff_t): Define based on the size of memory space.
4116 (size_t): Likewise.
4117 * libgnat/s-crtl.ads (size_t): Likewise.
4118 (ssize_t): Likewise.
4119 * libgnat/s-memory.ads (size_t): Likewise.
4120 * libgnat/s-parame.ads (Size_Type): Likewise.
4121 * libgnat/s-parame__hpux.ads (Size_Type): Likewise.
4122 * libgnat/s-parame__posix2008.ads (Size_Type): Likewise.
4123 * libgnat/s-parame__vxworks.ads (Size_Type): Likewise.
4124 * libgnat/s-putima.adb (Signed_Address): Likewise.
4125 (Unsigned_Address): Likewise.
4126 * libgnat/s-stoele.ads (Storage_Offset): Likewise.
4127
4128 2023-05-25 Piotr Trojanek <[email protected]>
4129
4130 * sem_util.adb (Visit_Node): Decrement EWA_Level with the same condition
4131 as when it was incremented.
4132
4133 2023-05-25 Piotr Trojanek <[email protected]>
4134
4135 * sem_util.ads (New_Copy_Tree): Remove Scopes_In_EWA_OK from spec;
4136 adapt comment.
4137 * sem_util.adb (New_Copy_Tree): Remove Scopes_In_EWA_OK from body;
4138 adapt code.
4139
4140 2023-05-25 Piotr Trojanek <[email protected]>
4141
4142 * sem_util.adb (Update_New_Entities): Remove redundant check for entity
4143 map being present.
4144
4145 2023-05-25 Piotr Trojanek <[email protected]>
4146
4147 * atree.adb (Copy_List): Call Copy_Separate_Tree for both entities and
4148 other nodes.
4149
4150 2023-05-25 Steve Baird <[email protected]>
4151
4152 * exp_attr.adb
4153 (Cached_Streaming_Ops): A new package, providing maps to save
4154 previously-generated Read/Write/Input/Output procedures.
4155 (Expand_N_Attribute_Reference): When a new subprogram is generated
4156 for a Read/Write/Input/Output attribute reference, record that
4157 type/subp pair in the appropriate Cached_Streaming_Ops map.
4158 (Find_Stream_Subprogram): Check the appropriate
4159 Cached_Streaming_Ops map to see if an appropriate subprogram has
4160 already been generated. If so, then return it. The appropriateness
4161 test includes a call to a new nested subprogram,
4162 In_Available_Context.
4163 * exp_strm.ads, exp_strm.adb: Do not pass in a Loc parameter (or a
4164 source-location-bearing Nod parameter) to the 16 procedures
4165 provided for building streaming-related subprograms. Use the
4166 source location of the type instead.
4167 * exp_dist.adb, exp_ch3.adb: Adapt to Exp_Strm spec changes. For
4168 these calls the source location of the type was already being
4169 used.
4170
4171 2023-05-25 Marc Poulhiès <[email protected]>
4172
4173 * sem_ch6.adb (Analyze_Function_Return): Add missing
4174 Is_Access_Type check before accessing the Designated_Type field.
4175
4176 2023-05-25 Piotr Trojanek <[email protected]>
4177
4178 * sem_ch6.adb (Analyze_Return_Type): Remove unused initial value.
4179
4180 2023-05-25 Marc Poulhiès <[email protected]>
4181
4182 * sem_ch13.adb (Analyze_One_Aspect): Call Record_Rep_Item.
4183 (Check_Aspect_At_Freeze_Point): Check the aspect is specified on
4184 non-array type only...
4185 (Analyze_One_Aspect): ... instead of doing it too early here.
4186 * sem_aggr.adb (Resolve_Container_Aggregate): Do nothing in case
4187 the parameters failed to resolve.
4188
4189 2023-05-25 Piotr Trojanek <[email protected]>
4190
4191 * sem_util.adb (Check_Internal_Protected_Use): Add standard protection
4192 against search going too far.
4193
4194 2023-05-25 Piotr Trojanek <[email protected]>
4195
4196 * contracts.adb
4197 (Add_Pre_Post_Condition): Mention new aspects in the comment.
4198 * contracts.ads
4199 (Add_Contract_Item): Likewise.
4200 (Analyze_Subprogram_Body_Stub_Contract): Likewise.
4201 * sem_prag.adb
4202 (Contract_Freeze_Error): Likewise.
4203 (Ensure_Aggregate_Form): Likewise.
4204 * sem_prag.ads
4205 (Find_Related_Declaration_Or_Body): Likewise.
4206 * sinfo.ads
4207 (Is_Generic_Contract_Pragma): Likewise.
4208
4209 2023-05-25 Piotr Trojanek <[email protected]>
4210
4211 * aspects.ads
4212 (Implementation_Defined_Aspect): Recently added aspects are
4213 implementation-defined, just like Contract_Cases.
4214 * sem_prag.ads
4215 (Aspect_Specifying_Pragma): Recently added aspects have corresponding
4216 pragmas, just like Contract_Cases.
4217 (Pragma_Significant_To_Subprograms): Recently added aspects are
4218 significant to subprograms, just like Contract_Cases.
4219
4220 2023-05-25 Piotr Trojanek <[email protected]>
4221
4222 * sem_res.adb (Resolve_Entity_Name): Tune handling of formal parameters
4223 in contract Exceptional_Cases.
4224
4225 2023-05-25 Piotr Trojanek <[email protected]>
4226
4227 * par-ch7.adb (P_Package): Remove redundant guard from call to
4228 Move_Aspects.
4229 * par-ch9.adb (P_Task): Likewise.
4230 * sem_ch6.adb (Analyze_Expression_Function, Is_Inline_Pragma): Likewise.
4231
4232 2023-05-25 Eric Botcazou <[email protected]>
4233
4234 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Use Get_Actual_Subtype
4235 to retrieve the actual subtype for all actuals and do it in only one
4236 place for all unconstrained composite formal types.
4237
4238 2023-05-25 Piotr Trojanek <[email protected]>
4239
4240 * sem_prag.adb (Analyze_Pragma): Fix references to Exceptional_Cases in
4241 code copied from handling of Subprogram_Variant.
4242
4243 2023-05-25 Ronan Desplanques <[email protected]>
4244
4245 * sem_ch3.adb (Replace_Type): Add more documentation.
4246
4247 2023-05-25 Ronan Desplanques <[email protected]>
4248
4249 * sem_ch3.adb (Replace_Type): Use existing constant wherever
4250 possible.
4251
4252 2023-05-25 Ronan Desplanques <[email protected]>
4253
4254 * sem_ch3.adb (Replace_Type): Reduce span of variable.
4255
4256 2023-05-25 Bob Duff <[email protected]>
4257
4258 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Set the flag
4259 for protected types.
4260 (Analyze_Single_Protected_Declaration): Likewise, for singleton
4261 protected objects.
4262 (Analyze_Task_Type_Declaration): Set the flag for task types.
4263 (Analyze_Single_Task_Declaration): Likewise, for singleton task
4264 objects.
4265 * sem_ch10.adb (Decorate_Type): Set the flag for types treated as
4266 incomplete.
4267 (Build_Shadow_Entity): Set the flag for shadow entities.
4268 (Decorate_State): Set the flag for an abstract state.
4269 (Build_Limited_Views): Set the flag for limited view of package.
4270 * sem_attr.adb (Check_Not_Incomplete_Type): Disable the check when
4271 this is a current instance.
4272
4273 2023-05-25 Ronan Desplanques <[email protected]>
4274
4275 * freeze.adb (Build_DTW_Body): Add appropriate type conversions for
4276 controlling access parameters.
4277 * sem_util.adb (Build_Overriding_Spec): Fix designated types in
4278 controlling access parameters.
4279
4280 2023-05-25 Bob Duff <[email protected]>
4281
4282 * gen_il-gen-gen_entities.adb (E_Label): Add
4283 Entry_Cancel_Parameter. This is necessary because
4284 Analyze_Implicit_Label_Declaration set the Ekind to E_Label.
4285 Without this change, this field would fail the vanishing-fields
4286 check in Atree (which is currently commented out).
4287 * einfo.ads (Entry_Cancel_Parameter): Document for E_Label.
4288 * sem_eval.adb (Why_Not_Static): Protect against previous errors
4289 (no need to explain why something is not static if it's already
4290 illegal for other reasons).
4291 * sem_util.ads (Enter_Name): Fix misleading comment.
4292
4293 2023-05-25 Eric Botcazou <[email protected]>
4294
4295 * einfo.ads (Scope_Depth): Fix circular definition.
4296 (Scope_Depth_Value): Fix value for library units.
4297
4298 2023-05-25 Piotr Trojanek <[email protected]>
4299
4300 * sem_ch11.adb (Analyze_Raise_Expression): Tune warning condition.
4301 * libgnat/g-dirope.ads (Open): Remove a potentially inaccurate comment.
4302 * libgnat/g-dirope.adb (Open): Remove a potentially useless assignment;
4303 the Dir output parameter should be assigned a null value anyway by the
4304 preceding call to Free.
4305
4306 2023-05-25 Piotr Trojanek <[email protected]>
4307
4308 * sem_res.adb (Resolve_Entity_Name): Allow aliased parameters; tune
4309 error message.
4310
4311 2023-05-25 Marc Poulhiès <[email protected]>
4312
4313 * sem_ch13.adb (Analyze_One_Aspect): Mark Aggregate aspect as
4314 needing delayed resolution and reject the aspect on non-array
4315 type.
4316
4317 2023-05-25 Bob Duff <[email protected]>
4318
4319 * sinfo-utils.adb: Update comment to refer to
4320 New_Node_Debugging_Output.
4321
4322 2023-05-25 Marc Poulhiès <[email protected]>
4323
4324 * rtsfind.adb (Load_RTU.Restore_SPARK_Context): New.
4325 (Load_RTU): Use Restore_SPARK_Context on all exit paths.
4326 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Initialize local
4327 variable to Empty.
4328
4329 2023-05-25 Piotr Trojanek <[email protected]>
4330
4331 * sem_attr.adb
4332 (Analyze_Attribute_Old_Result): Allow uses of 'Old and 'Result within
4333 the new aspect.
4334 * sem_res.adb
4335 (Within_Exceptional_Cases_Consequence): New utility routine.
4336 (Resolve_Entity_Name): Restrict use of formal parameters within the
4337 new aspect.
4338
4339 2023-05-23 Piotr Trojanek <[email protected]>
4340
4341 * aspects.ads
4342 (Aspect_Id): Add aspect identifier.
4343 (Aspect_Argument): New aspect accepts an expression.
4344 (Is_Representation_Aspect): New aspect is not a representation
4345 aspect.
4346 (Aspect_Names): Associate name with the new aspect identifier.
4347 (Aspect_Delay): New aspect is never delayed.
4348 * contracts.adb
4349 (Add_Contract_Item): Store new aspect among contract items.
4350 (Analyze_Entry_Or_Subprogram_Contract): Likewise.
4351 (Analyze_Subprogram_Body_Stub_Contract): Likewise.
4352 (Process_Contract_Cases): Expand new aspect, if present.
4353 * contracts.ads
4354 (Analyze_Entry_Or_Subprogram_Body_Contract): Mention new aspect in
4355 spec.
4356 (Analyze_Entry_Or_Subprogram_Contract): Likewise.
4357 * einfo-utils.adb
4358 (Get_Pragma): Allow new aspect to be picked by the backend.
4359 * einfo-utils.ads
4360 (Get_Pragma): Mention new aspect in spec.
4361 * exp_prag.adb
4362 (Expand_Pragma_Exceptional_Cases): Dummy expansion routine.
4363 * exp_prag.ads
4364 (Expand_Pragma_Exceptional_Cases): Add spec for expansion routine.
4365 * inline.adb
4366 (Remove_Aspects_And_Pragmas): Remove aspect from bodies to inline.
4367 * par-prag.adb
4368 (Par.Prag): Accept pragma in the parser, so it will be checked
4369 later.
4370 * sem_ch12.adb
4371 (Implementation of Generic Contracts): Mention new aspect in
4372 comment.
4373 * sem_ch13.adb
4374 (Analyze_Aspect_Specifications): Transform new aspect info a
4375 corresponding pragma.
4376 * sem_prag.adb
4377 (Analyze_Exceptional_Cases_In_Decl_Part): Analyze aspect
4378 expression; heavily inspired by the existing code for analysis of
4379 Subprogram_Variant and exception handlers.
4380 (Analyze_Pragma): Analyze pragma corresponding to the new aspect.
4381 (Is_Non_Significant_Pragma_Reference): Add new pragma to the
4382 table.
4383 * sem_prag.ads
4384 (Assertion_Expression_Pragma): New pragma acts as an assertion
4385 expression, even though it is not currently expanded.
4386 (Analyze_Exceptional_Cases_In_Decl_Part): Add spec.
4387 * sem_util.adb
4388 (Is_Subprogram_Contract_Annotation): Mark new annotation is a
4389 subprogram contract, so the subprogram with it won't be inlined.
4390 * sem_util.ads
4391 (Is_Subprogram_Contract_Annotation): Mention new aspect in
4392 comment.
4393 * sinfo.ads
4394 (Contract_Test_Cases): Mention new aspect in comment.
4395 * snames.ads-tmpl: Add entries for the new name and pragma.
4396
4397 2023-05-23 Eric Botcazou <[email protected]>
4398
4399 * sem_ch13.adb (Build_Predicate_Functions): If the current scope
4400 is not that of the type, push this scope and pop it at the end.
4401 * sem_util.ads (Current_Scope_No_Loops_No_Blocks): Delete.
4402 * sem_util.adb (Current_Scope_No_Loops_No_Blocks): Likewise.
4403 (Set_Public_Status): Call again Current_Scope.
4404
4405 2023-05-23 Gary Dismukes <[email protected]>
4406
4407 * exp_ch6.adb (Might_Have_Tasks): Remove unneeded Etype call from
4408 call to Is_Limited_Record, since that flag is now properly
4409 inherited by class-wide types.
4410 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Remove call
4411 to Make_Class_Wide_Type, which is done too early, and will later
4412 be done in Build_Derived_Record_Type after flags such as
4413 Is_Limited_Record and Is_Controlled_Active have been set on the
4414 derived type.
4415
4416 2023-05-23 Patrick Bernardi <[email protected]>
4417
4418 * libgnat/s-stchop.adb (Stack_Check): Remove redundant parentheses.
4419
4420 2023-05-23 Piotr Trojanek <[email protected]>
4421
4422 * freeze.adb (Freeze_Record_Type): Add tag for redundant pragma Pack.
4423 * sem_aggr.adb (Resolve_Record_Aggregate): Add tag for redundant OTHERS
4424 choice.
4425 * sem_ch8.adb (Use_One_Type): Add tag for redundant USE clauses.
4426
4427 2023-05-23 Piotr Trojanek <[email protected]>
4428
4429 * sem_ch11.adb
4430 (Check_Duplication): Fix inconsistent iteration.
4431 (Others_Present): Iterate over handlers using First_Non_Pragma and
4432 Next_Non_Pragma just like in Check_Duplication.
4433
4434 2023-05-23 Eric Botcazou <[email protected]>
4435
4436 * einfo.ads (Delay_Subprogram_Descriptors): Delete.
4437 * gen_il-fields.ads (Opt_Field_Enum): Remove
4438 Delay_Subprogram_Descriptors.
4439 * gen_il-gen-gen_entities.adb (Gen_Entities): Likewise.
4440 * gen_il-gen-gen_nodes.adb (N_Entry_Body): Add Corresponding_Spec.
4441 * sinfo.ads (Corresponding_Spec): Document new use.
4442 (N_Entry_Body): Likewise.
4443 * exp_ch6.adb (Expand_Protected_Object_Reference): Be prepared for
4444 protected subprograms that have been expanded.
4445 * exp_ch7.adb (Expand_Cleanup_Actions): Remove unreachable code.
4446 * exp_ch9.adb (Build_Protected_Entry): Add a local variable for the
4447 new block and propagate Uses_Sec_Stack from the corresponding spec.
4448 (Expand_N_Protected_Body) <N_Subprogram_Body>: Unconditionally reset
4449 the scopes of top-level entities in the new body.
4450 * inline.adb (Cleanup_Scopes): Do not adjust the scope on the fly.
4451 * sem_ch9.adb (Analyze_Entry_Body): Set Corresponding_Spec.
4452 * sem_ch12.adb (Analyze_Package_Instantiation): Remove obsolete code
4453 setting Delay_Subprogram_Descriptors and tidy up.
4454 * sem_util.adb (Scope_Within): Deal with protected subprograms that
4455 have been expanded.
4456 (Scope_Within_Or_Same): Likewise.
4457
4458 2023-05-23 Eric Botcazou <[email protected]>
4459
4460 * libgnarl/s-taskin.ads (Atomic_Address): Delete.
4461 (Attribute_Array): Add pragma Atomic_Components.
4462 (Ada_Task_Control_Block): Adjust default value of Attributes.
4463 * libgnarl/s-tasini.adb (Finalize_Attributes): Adjust type of local
4464 variable.
4465 * libgnarl/s-tataat.ads (Deallocator): Adjust type of parameter.
4466 (To_Attribute): Adjust source type.
4467 * libgnarl/a-tasatt.adb: Add clauses for System.Storage_Elements.
4468 (New_Attribute): Adjust return type.
4469 (Deallocate): Adjust type of parameter.
4470 (To_Real_Attribute): Adjust source type.
4471 (To_Address): Add target type.
4472 (To_Attribute): Adjust source type.
4473 (Fast_Path): Adjust tested type.
4474 (Finalize): Compare with Null_Address.
4475 (Reference): Likewise.
4476 (Reinitialize): Likewise.
4477 (Set_Value): Likewise. Add conversion to Integer_Address.
4478 (Value): Likewise.
4479
4480 2023-05-23 Raphael Amiard <[email protected]>
4481
4482 * scng.adb (Scan): Replace occurrences of All_Extensions_Allowed
4483 by Core_Extensions_Allowed.
4484
4485 2023-05-23 Claire Dross <[email protected]>
4486
4487 * libgnat/s-valueu.adb (Scan_Raw_Unsigned): Use new helpers.
4488 * libgnat/s-vauspe.ads (Raw_Unsigned_Starts_As_Based_Ghost,
4489 Raw_Unsigned_Is_Based_Ghost): New ghost helper functions.
4490 (Is_Raw_Unsigned_Format_Ghost, Scan_Split_No_Overflow_Ghost,
4491 Scan_Split_Value_Ghost, Raw_Unsigned_Last_Ghost): Use new
4492 helpers.
4493
4494 2023-05-23 Arnaud Charlet <[email protected]>
4495
4496 * par-ch5.adb, style.ads, styleg.adb, styleg.ads
4497 (Check_Xtra_Parens): Remove extra parameter Enable.
4498 (Check_Xtra_Parens_Precedence): New.
4499 (P_Case_Statement): Add -gnatyx style check.
4500 * sem_ch4.adb: Replace calls to Check_Xtra_Parens by
4501 Check_Xtra_Parens_Precedence.
4502 * stylesw.ads, stylesw.adb, usage.adb: Add support for
4503 -gnatyz.
4504 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
4505 Update -gnatyxzg doc.
4506 * sem_prag.adb, libgnat/s-regpat.adb,
4507 libgnarl/s-interr__hwint.adb, libgnarl/s-interr__vxworks.adb:
4508 Remove extra parens.
4509 * par-ch3.adb (P_Discrete_Range): Do not emit a style check if
4510 the expression is not a simple expression.
4511 * gnat_ugn.texi: Regenerate.
4512
4513 2023-05-23 Eric Botcazou <[email protected]>
4514
4515 * libgnat/s-dwalin.adb (Enable_Cache): Use the subtract operator of
4516 System.Storage_Elements to compute the offset.
4517 (Symbolic_Address): Likewise.
4518
4519 2023-05-23 Eric Botcazou <[email protected]>
4520
4521 * sem_res.adb (Resolve_Intrinsic_Operator): Always perform the same
4522 resolution for the special mod operator of System.Storage_Elements.
4523
4524 2023-05-23 Raphael Amiard <[email protected]>
4525
4526 * doc/gnat_rm.rst, doc/gnat_rm/gnat_language_extensions.rst,
4527 doc/gnat_rm/implementation_defined_pragmas.rst:
4528 * gnat_rm.texi: Regenerate.
4529
4530 2023-05-23 Eric Botcazou <[email protected]>
4531
4532 * exp_ch4.adb (Expand_N_Op_Mod): Adjust the detection of the special
4533 operator of System.Storage_Elements. Do not rewrite it into a rem.
4534 * sem_res.adb (Resolve_Intrinsic_Operator): Use the base type of the
4535 left operand for the special mod operator of System.Storage_Elements
4536
4537 2023-05-23 Vadim Godunko <[email protected]>
4538
4539 * libgnat/a-coinho__shared.adb (Constant_Reference): Remove call
4540 of Detach
4541 (Query_Element): Likewise.
4542
4543 2023-05-23 Ronan Desplanques <[email protected]>
4544
4545 * sem_disp.adb: Fix reference to Ada issue in comment.
4546
4547 2023-05-23 Eric Botcazou <[email protected]>
4548
4549 * exp_disp.adb (Expand_Dispatching_Call): In the abstract interface
4550 class-wide case, use 'Tag of the object as the controlling tag.
4551 (Expand_Interface_Thunk): Perform address arithmetic using operators
4552 of System.Storage_Elements.
4553
4554 2023-05-23 Eric Botcazou <[email protected]>
4555
4556 * libgnat/i-cpoint.adb: Add clauses for System.Storage_Elements.
4557 (Addr): Delete.
4558 (Offset): New subtype of Storage_Offset.
4559 (To_Offset): New instance of Unchecked_Conversion.
4560 (To_Pointer): Adjust.
4561 (To_Addr): Likewise.
4562 (To_Ptrdiff): Likewise.
4563 ("+"): Call To_Offset on the offset.
4564 ("-"): Likewise.
4565 * libgnat/s-bituti.adb: Add clauses for System.Storage_Elements.
4566 (Val_Bytes): Change type to Storage_Count.
4567 (Get_Val_2): Add qualification to second operand of mod operator.
4568 (Set_Val_2): Likewise.
4569 (Copy_Bitfield): Likewise. Change type of Src_Adjust & Dest_Adjust.
4570 * libgnat/s-stratt.ads (Thin_Pointer): Change to subtype of Address.
4571 * libgnat/s-statxd.adb (I_AD): Adjust.
4572 (I_AS): Likewise.
4573 (W_AS): Likewise.
4574
4575 2023-05-23 Steve Baird <[email protected]>
4576
4577 * sem_util.adb
4578 (Is_Variable): Correctly return False for a selected component
4579 name of the form Some_Object.Some_Discriminant, even if
4580 Some_Object is a variable. We don't want to allow such a name as
4581 an actual parameter in a call if the corresponding formal
4582 parameter's mode is not "in".
4583
4584 2023-05-23 Yannick Moy <[email protected]>
4585
4586 * sem_util.adb (Check_Node): Add default init on local Id.
4587
4588 2023-05-23 Yannick Moy <[email protected]>
4589
4590 * libgnat/i-c.adb (To_Ada): Add loop invariant.
4591
4592 2023-05-23 Eric Botcazou <[email protected]>
4593
4594 * exp_ch4.adb (Expand_N_Op_Mod): Deal with the special mod
4595 operator of System.Storage_Elements.
4596 * exp_intr.adb (Expand_To_Integer): New procedure.
4597 (Expand_Intrinsic_Call): Call Expand_To_Integer appropriately.
4598 (Expand_To_Address): Deal with an argument with modular type.
4599 * sem_ch3.adb (Derive_Subprogram): Also set convention Intrinsic
4600 on a derived intrinsic subprogram.
4601 * sem_res.adb (Resolve_Arithmetic_Op): Deal with intrinsic
4602 operators not coming from source exactly as those coming from
4603 source and also generate a reference in both cases.
4604 (Resolve_Op_Expon): Likewise.
4605 (Resolve_Intrinsic_Operator): Call Implementation_Base_Type to get
4606 a nonprivate base type.
4607 * snames.ads-tmpl (Name_To_Integer): New intrinsic name.
4608 * libgnat/s-stoele.ads: Replace pragma Convention with pragma
4609 Import throughout and remove pragma Inline_Always and
4610 Pure_Function.
4611 * libgnat/s-stoele.adb: Replace entire contents with pragma
4612 No_Body.
4613 * libgnat/s-atacco.adb: Adjust comment about pragma No_Body.
4614
4615 2023-05-23 Javier Miranda <[email protected]>
4616
4617 * sem_prag.adb (Analyze_Pre_Post_Condition_In_Decl_Part): Remove
4618 call to preanalyze class-wide conditions since here it is too
4619 early; they must be preanalyzed when full views of private types
4620 have been analyzed.
4621 * sem_ch7.adb (Analyze_Package_Specification): Preanalyze
4622 class-wide conditions of dispatching primitives defined in nested
4623 packages.
4624
4625 2023-05-23 Piotr Trojanek <[email protected]>
4626
4627 * errout.adb (Last_Sloc): Refactor a heavily repeated "S := S + 1"
4628 statement into a subprogram; replace assertions with defensive code;
4629 fix few more off-by-one errors.
4630
4631 2023-05-23 Ronan Desplanques <[email protected]>
4632
4633 * einfo.ads: Mention full name of LSP.
4634
4635 2023-05-23 Piotr Trojanek <[email protected]>
4636
4637 * errout.adb (Last_Sloc): Rewrite skipping past numeric literals.
4638
4639 2023-05-23 Eric Botcazou <[email protected]>
4640
4641 * sem_ch13.adb (Build_Predicate_Function_Declaration): Adjust the
4642 commentary to the current implementation.
4643 * sem_util.ads (Current_Scope_No_Loops): Move around.
4644 (Current_Scope_No_Loops_No_Blocks): New declaration.
4645 (Add_Block_Identifier): Fix formatting.
4646 * sem_util.adb (Add_Block_Identifier): Likewise.
4647 (Current_Scope_No_Loops_No_Blocks): New function.
4648 (Set_Public_Status): Call Current_Scope_No_Loops_No_Blocks instead
4649 of Current_Scope to get the current scope.
4650
4651 2023-05-23 Eric Botcazou <[email protected]>
4652
4653 * exp_ch3.adb (Build_Record_Init_Proc.Build_Assignment): Do not
4654 manually generate a predicate check. Call Unqualify before doing
4655 pattern matching on the expression.
4656 * sem_ch3.adb (Analyze_Object_Declaration): Also freeze the actual
4657 subtype when it is built in the definite case.
4658
4659 2023-05-23 Piotr Trojanek <[email protected]>
4660
4661 * libgnarl/s-interr.adb
4662 (Registered_Handler): Remove default expression.
4663 (Registered_Handlers): Switch to singly-linked list.
4664 (Bind_Interrupt_To_Entry): Sync whitespace with other unit variants.
4665 (Is_Registered): Use singly-linked list.
4666 (Register_Interrupt_Handler): Use singly-linked list and initialized
4667 allocator; sync assertion with other unit variants.
4668 * libgnarl/s-interr__sigaction.adb: Likewise.
4669 * libgnarl/s-interr__vxworks.adb: Likewise.
4670 * libgnarl/s-interr__hwint.adb: Likewise.
4671 (Is_Registered): Remove repeated declaration.
4672
4673 2023-05-23 Piotr Trojanek <[email protected]>
4674
4675 * pprint.adb (Expression_Image): Restore some of the old pretty-printing
4676 for CodePeer.
4677
4678 2023-05-23 Piotr Trojanek <[email protected]>
4679
4680 * errout.adb (First_And_Last_Nodes): Ignore accessibility parameters.
4681
4682 2023-05-23 Piotr Trojanek <[email protected]>
4683
4684 * exp_ch4.adb (Expand_N_Op_Ne): Simply don't add extra parens.
4685
4686 2023-05-23 Piotr Trojanek <[email protected]>
4687
4688 * pprint.adb (Expression_Image): Move Count_Parentheses and
4689 Fix_Parentheses routines from GNATprove and apply them before
4690 returning the slice of a source code buffer.
4691
4692 2023-05-23 Piotr Trojanek <[email protected]>
4693
4694 * errout.adb
4695 (Paren_Required): New subsidiary routine for better handling of
4696 parentheses in First_Node/Last_Node.
4697 (First_Sloc, Last_Sloc): Use Get_Source_File_Index to correctly
4698 handle generic instances and inlined subprograms; tune handling of
4699 parentheses; improve handling of literals.
4700 * pprint.adb (Expression_Image): Simplify using
4701 First_Sloc/Last_Sloc.
4702 * sem_ch6.adb (Analyze_Expression_Function): Remove parenthesis
4703 when relocating expression from expression function to simple
4704 return statement.
4705
4706 2023-05-23 Piotr Trojanek <[email protected]>
4707
4708 * exp_prag.adb (Expand_Pragma_Check): Suppress warning for checks of
4709 subprogram variants.
4710
4711 2023-05-23 Eric Botcazou <[email protected]>
4712
4713 * frontend.adb (Frontend): Merge two conditional blocks and adjust.
4714
4715 2023-05-23 Piotr Trojanek <[email protected]>
4716
4717 * libgnat/s-mmap.adb (Mapped_Region_Record): Fix typo in comment.
4718
4719 2023-05-23 Ronan Desplanques <[email protected]>
4720
4721 * sem_ch7.adb: Remove duplicate comment.
4722
4723 2023-05-23 Javier Miranda <[email protected]>
4724
4725 * sem_ch10.adb
4726 (Analyze_Required_Limited_With_Units): New subprogram.
4727 (Depends_On_Limited_Views): New subprogram.
4728 (Has_Limited_With_Clauses): New subprogram.
4729 (Analyze_Compilation_Unit): Call the new subprogram that performs
4730 the full analysis of required limited-with units.
4731
4732 2023-05-22 Ronan Desplanques <[email protected]>
4733
4734 * cstand.adb: Use more idiomatic procedure.
4735
4736 2023-05-22 Piotr Trojanek <[email protected]>
4737
4738 * errout.adb (First_Loc): Avoid repeated calls.
4739 (Last_Loc): Likewise.
4740
4741 2023-05-22 Eric Botcazou <[email protected]>
4742
4743 * inline.adb (Cleanup_Scopes): Do not propagate the Uses_Sec_Stack
4744 flag from original to rewritten protected subprograms here...
4745 * exp_ch9.adb (Expand_N_Protected_Body) <N_Subprogram_Body>:
4746 ...but here instead. Add local variables and remove a useless
4747 test.
4748
4749 2023-05-22 Eric Botcazou <[email protected]>
4750
4751 * exp_ch7.adb (Expand_N_Package_Body): Call Defining_Entity to get
4752 the entity of the body.
4753
4754 2023-05-22 Piotr Trojanek <[email protected]>
4755
4756 * exp_attr.adb (Expand_Loop_Entry_Attribute): Use location of the
4757 attribute reference, not of the loop statement.
4758
4759 2023-05-22 Ronan Desplanques <[email protected]>
4760
4761 * par-ch3.adb: Add missing word in comment.
4762
4763 2023-05-22 Justin Squirek <[email protected]>
4764
4765 * checks.adb (Install_Null_Excluding_Check): Avoid non-null
4766 optimizations when assertions are enabled.
4767
4768 2023-05-22 Marc Poulhiès <[email protected]>
4769
4770 * exp_aggr.adb (Process_Transient_Component): Reset Analyzed flag
4771 for the copy of the initialization expression.
4772 * sem_attr.adb (Validate_Non_Static_Attribute_Function_Call): Skip
4773 error emission during Pre_Analyze.
4774
4775 2023-05-22 Eric Botcazou <[email protected]>
4776
4777 * exp_ch7.adb (Process_Package_Body): New procedure taken from...
4778 (Build_Finalizer.Process_Declarations): ...here. Call the above
4779 procedure to deal with both package bodies and package body stubs.
4780
4781 2023-05-22 Ronan Desplanques <[email protected]>
4782
4783 * atree.ads: Remove outdated part of comment.
4784
4785 2023-05-22 Eric Botcazou <[email protected]>
4786
4787 * exp_ch7.adb (Build_Finalizer): Reverse the test comparing the
4788 instantiation and declaration nodes of a package instance, and
4789 therefore bail out only when they are equal. Adjust comments.
4790 (Expand_N_Package_Declaration): Do not clear the Finalizer field.
4791 * lib-writ.adb: Add with and use clauses for Sem_Util.
4792 (Write_Unit_Information): Look at unit nodes to find finalizers.
4793 * sem_ch12.adb (Analyze_Package_Instantiation): Beef up the comment
4794 about the rewriting of the instantiation node into a declaration.
4795
4796 2023-05-22 Bob Duff <[email protected]>
4797
4798 * cstand.adb (Is_Past_Self_Hiding_Point): Rename to be
4799 Is_Not_Self_Hidden.
4800 * einfo.ads: Likewise.
4801 * exp_aggr.adb: Likewise.
4802 * gen_il-fields.ads: Likewise.
4803 * gen_il-gen-gen_entities.adb: Likewise.
4804 * sem.adb: Likewise.
4805 * sem_aggr.adb: Likewise.
4806 * sem_ch11.adb: Likewise.
4807 * sem_ch12.adb: Likewise.
4808 * sem_ch5.adb: Likewise.
4809 * sem_ch6.adb: Likewise.
4810 * sem_ch7.adb: Likewise.
4811 * sem_prag.adb: Likewise.
4812
4813 2023-05-22 Eric Botcazou <[email protected]>
4814
4815 * exp_ch3.adb (Make_Controlling_Function_Wrappers): Create the body
4816 as the expanded body of an expression function.
4817
4818 2023-05-22 Piotr Trojanek <[email protected]>
4819
4820 * pprint.adb (Expression_Image): Handle several previously unsupported
4821 constructs.
4822
4823 2023-05-22 Piotr Trojanek <[email protected]>
4824
4825 * sem_res.adb (Resolve_Entity_Name): Combine two IF statements that
4826 execute code only for references that come from source.
4827
4828 2023-05-22 Bob Duff <[email protected]>
4829
4830 * einfo.ads (Is_Past_Self_Hiding_Point): Document.
4831 * gen_il-fields.ads (Is_Past_Self_Hiding_Point): Add to list of
4832 fields.
4833 * gen_il-gen-gen_entities.adb (Is_Past_Self_Hiding_Point): Declare
4834 in all entities.
4835 * exp_aggr.adb: Set Is_Past_Self_Hiding_Point as appropriate.
4836 * sem.adb: Likewise.
4837 * sem_aggr.adb: Likewise.
4838 * sem_ch11.adb: Likewise.
4839 * sem_ch12.adb: Likewise.
4840 * sem_ch5.adb: Likewise.
4841 * sem_ch7.adb: Likewise.
4842 * sem_prag.adb: Likewise.
4843 * sem_ch6.adb: Likewise.
4844 (Set_Formal_Mode): Minor cleanup: Move from spec.
4845 * sem_ch6.ads:
4846 (Set_Formal_Mode): Minor cleanup: Move to body.
4847 * cstand.adb: Call Set_Is_Past_Self_Hiding_Point on all entities
4848 as soon as they are created.
4849 * comperr.adb (Compiler_Abort): Minor cleanup -- use 'in' instead
4850 of 'or else'.
4851 * debug.adb: Minor comment cleanups.
4852
4853 2023-05-22 Steve Baird <[email protected]>
4854
4855 * sem_ch4.adb (Analyze_Expression_With_Actions.Check_Action_Ok):
4856 Accept an executable pragma occuring in a declare expression as
4857 per AI22-0045. This means Assert and Inspection_Point pragmas as
4858 well as any implementation-defined pragmas that the implementation
4859 chooses to categorize as executable. Currently Assume and Debug
4860 are the only such pragmas.
4861
4862 2023-05-22 Piotr Trojanek <[email protected]>
4863
4864 * sem_prag.adb
4865 (Check_Postcondition_Use_In_Inlined_Subprogram): Mention
4866 Subprogram_Variant in the comment.
4867 (Analyze_Subprogram_Variant_In_Decl_Part): Warn when contract is
4868 ignored because of pragma Inline_Always and frontend inlining.
4869
4870 2023-05-22 Piotr Trojanek <[email protected]>
4871
4872 * sem_prag.adb (Check_Postcondition_Use_In_Inlined_Subprogram): Only
4873 emit warning when frontend inlining is enabled.
4874
4875 2023-05-22 Arnaud Charlet <[email protected]>
4876
4877 * par-ch3.adb, sem_ch4.adb (P_Discrete_Range, Analyze_Logical_Op,
4878 Analyze_Short_Circuit): Add calls to Check_Xtra_Parentheses.
4879 * par-ch5.adb (P_Condition): Move logic to Check_Xtra_Parentheses.
4880 * style.ads, styleg.adb, styleg.ads (Check_Xtra_Parens): Move logic
4881 related to expressions requiring parentheses here.
4882
4883 2023-05-22 Arnaud Charlet <[email protected]>
4884
4885 * ali-util.adb, par-endh.adb, par-prag.adb, par-ch2.adb,
4886 checks.adb, fmap.adb, libgnat/a-nbnbig.ads, libgnat/g-dynhta.adb,
4887 libgnat/s-carun8.adb, libgnat/s-strcom.adb, libgnat/a-dhfina.adb,
4888 libgnat/a-direct.adb, libgnat/a-rbtgbo.adb, libgnat/a-strsea.adb,
4889 libgnat/a-ststio.adb, libgnat/a-suenco.adb, libgnat/a-costso.adb,
4890 libgnat/a-strmap.adb, libgnat/g-alleve.adb,
4891 libgnat/g-debpoo.adb, libgnat/g-sercom__linux.adb,
4892 libgnat/s-genbig.adb, libgnat/s-mmap.adb, libgnat/s-regpat.adb,
4893 par-ch5.adb, sem_case.adb, sem_ch12.adb, sem_ch13.adb,
4894 sem_ch8.adb, sem_eval.adb, sem_prag.adb, sem_type.adb,
4895 exp_ch11.adb, exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb,
4896 exp_ch6.adb, exp_ch9.adb, exp_put_image.adb, freeze.adb, live.adb,
4897 sem_aggr.adb, sem_cat.adb, sem_ch10.adb, sem_ch3.adb, sem_ch6.adb,
4898 sem_ch9.adb, sem_disp.adb, sem_elab.adb, sem_res.adb,
4899 sem_util.adb, sinput.adb, uintp.adb, bcheck.adb, binde.adb,
4900 binderr.adb, einfo-utils.adb, clean.adb, sem_ch4.adb, gnatls.adb,
4901 gprep.adb, sem_ch11.adb: Remove extra parentheses.
4902
4903 2023-05-22 Arnaud Charlet <[email protected]>
4904
4905 * sem_aggr.adb (Get_Value): Use ?? instead of ?.
4906
4907 2023-05-22 Piotr Trojanek <[email protected]>
4908
4909 * exp_aggr.adb (Aggregate_Size): Remove redundant calls to
4910 Present.
4911 * exp_ch5.adb (Expand_N_If_Statement): Likewise.
4912 * sem_prag.adb (Analyze_Pragma): Likewise.
4913 * sem_warn.adb (Find_Var): Likewise.
4914
4915 2023-05-22 Claire Dross <[email protected]>
4916
4917 * sem_util.adb (Find_Actual): On calls through dereferences,
4918 return the corresponding formal in the designated subprogram
4919 profile.
4920
4921 2023-05-22 Piotr Trojanek <[email protected]>
4922
4923 * sem_util.ads (Is_Actual_Tagged_Parameter): Remove spec.
4924 * sem_util.adb (Is_Actual_Tagged_Parameter): Remove body.
4925
4926 2023-05-22 Joffrey Huguet <[email protected]>
4927
4928 * libgnat/a-strunb.ads, libgnat/a-strunb__shared.ads
4929 (To_Unbounded_String): Add postcondition. Add aspect SPARK_Mode
4930 Off on the version that takes a Natural as parameter.
4931 (To_String): Complete postcondition.
4932 (Set_Unbounded_String): Add postcondition.
4933 (Element): Likewise.
4934 ("="): Likewise.
4935
4936 2023-05-22 Eric Botcazou <[email protected]>
4937
4938 * exp_ch3.adb (Freeze_Type): Do not associate the Finalize_Address
4939 routine for a class-wide type if restriction No_Dispatching_Calls
4940 is in effect.
4941
4942 2023-05-22 Eric Botcazou <[email protected]>
4943
4944 * libgnat/s-genbig.ads (From_Bignum): New overloaded declarations.
4945 * libgnat/s-genbig.adb (LLLI): New subtype.
4946 (LLLI_Is_128): New boolean constant.
4947 (From_Bignum): Change the return type of the signed implementation
4948 to Long_Long_Long_Integer and add support for the case where its
4949 size is 128 bits. Add a wrapper around it for Long_Long_Integer.
4950 Add an unsigned implementation returning Unsigned_128 and a wrapper
4951 around it for Unsigned_64.
4952 (To_Bignum): Test LLLI_Is_128 instead of its size.
4953 (To_String.Image): Add qualification to calls to From_Bignum.
4954 * libgnat/a-nbnbin.adb (To_Big_Integer): Likewise.
4955 (Signed_Conversions.From_Big_Integer): Likewise.
4956 (Unsigned_Conversions): Likewise.
4957
4958 2023-05-22 Eric Botcazou <[email protected]>
4959
4960 * freeze.adb (Wrap_Imported_Subprogram): Use Copy_Subprogram_Spec
4961 to copy the spec from the subprogram to the generated subprogram
4962 body.
4963 (Freeze_Entity): Do not wrap imported subprograms inside generics.
4964
4965 2023-05-22 Steve Baird <[email protected]>
4966
4967 * sem_ch4.adb (Analyze_Expression_With_Actions.Check_Action_Ok):
4968 If Comes_From_Source (A) is False, then look at Original_Node (A)
4969 instead of A. In particular, if an (illegal) expression function
4970 is transformed into a "vanilla" function, we don't want to allow
4971 it just because Comes_From_Source is now False.
4972
4973 2023-05-22 Steve Baird <[email protected]>
4974
4975 * sem_prag.adb (Analyze_Pragma): In Check_No_Return, call
4976 Error_Msg_Ada_2022_Feature in the case of a function. Remove code
4977 outside of Check_No_Return that was querying Ada_Version.
4978
4979 2023-05-22 Eric Botcazou <[email protected]>
4980
4981 * exp_ch4.adb (Expand_N_Expression_With_Actions.Process_Action): Do
4982 not look into nested blocks.
4983
4984 2023-05-22 Eric Botcazou <[email protected]>
4985
4986 * sem_ch3.adb (Find_Type_Of_Object): In a spec expression, also set
4987 the Scope of the type, and call Constrain_Array for array subtypes.
4988
4989 2023-05-22 Piotr Trojanek <[email protected]>
4990
4991 * pprint.adb (Expression_Image): Reduce scope of local variables; inline
4992 local uncommented constant From_Source; concatenate string with a single
4993 character, as it is likely to execute faster; add missing cases to
4994 traversal for the rightmost node and assertion to demonstrate that the
4995 ??? comment is no longer relevant.
4996
4997 2023-05-22 Piotr Trojanek <[email protected]>
4998
4999 * pprint.adb (Expr_Name): Qualify CASE expression with N_Subexpr; add
5000 missing alternative for N_Raise_Storage_Error; remove dead alternatives;
5001 explicitly list unsupported alternatives.
5002
5003 2023-05-22 Piotr Trojanek <[email protected]>
5004
5005 * pprint.adb (Expr_Name): Exclude DEL from printable range.
5006
5007 2023-05-22 Piotr Trojanek <[email protected]>
5008
5009 * sem_util.ads (New_Copy_Tree): Update comment.
5010 * sem_util.adb (New_Copy_Tree): Update Controlling_Argument, very
5011 much like we update the First/Next_Named_Association.
5012
5013 2023-05-22 Bob Duff <[email protected]>
5014
5015 * fe.h: Remove Ada_With_Extensions and add commentary.
5016 * opt.ads: Rearrange code and add commentary.
5017
5018 2023-05-22 Bob Duff <[email protected]>
5019
5020 * sem_util.adb (Process_Type): Stop the recursion.
5021 * exp_aggr.adb (Build_Record_Aggr_Code): Add assertion.
5022
5023 2023-05-18 Bernhard Reutner-Fischer <[email protected]>
5024
5025 * gcc-interface/decl.cc (gnat_to_gnu_entity): Use _P defines
5026 from tree.h.
5027 (constructor_address_p): Ditto.
5028 (elaborate_expression_1): Ditto.
5029 * gcc-interface/trans.cc (Identifier_to_gnu): Ditto.
5030 (is_nrv_p): Ditto.
5031 (Subprogram_Body_to_gnu): Ditto.
5032 (gnat_to_gnu): Ditto.
5033 (gnat_to_gnu_external): Ditto.
5034 (add_decl_expr): Ditto.
5035 (gnat_gimplify_expr): Ditto.
5036 * gcc-interface/utils.cc (create_var_decl): Ditto.
5037 * gcc-interface/utils2.cc (get_base_type): Ditto.
5038 (build_binary_op): Ditto.
5039 (build_unary_op): Ditto.
5040 (gnat_protect_expr): Ditto.
5041 (gnat_invariant_expr): Ditto.
5042
5043 2023-05-16 Steve Baird <[email protected]>
5044
5045 * usage.adb: Generate output text describing the -gnatw_s switch
5046 (and the corresponding -gnatw_S switch).
5047
5048 2023-05-16 Eric Botcazou <[email protected]>
5049
5050 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Reduce>:
5051 Use the canonical accumulator type as the type of the accumulator
5052 in the prefixed case.
5053
5054 2023-05-16 Eric Botcazou <[email protected]>
5055
5056 * exp_aggr.adb (Expand_Array_Aggregate): Do not set Warnings_Off on
5057 the temporary created when in-place expansion is not possible.
5058
5059 2023-05-16 Eric Botcazou <[email protected]>
5060
5061 * freeze.adb (Freeze_Expression): When the freezing is to be done
5062 outside the current scope, skip any scope that is an internal loop.
5063
5064 2023-05-16 Eric Botcazou <[email protected]>
5065
5066 * exp_imgv.adb (Rewrite_Object_Image): If the prefix is a component
5067 that depends on a discriminant, create an actual subtype for it.
5068
5069 2023-05-16 Eric Botcazou <[email protected]>
5070
5071 * sem_ch13.adb: Add with and use clauses for Expander.
5072 (Resolve_Aspect_Expressions) <Aspect_Predicate>: Emulate a
5073 bona-fide preanalysis setup before calling
5074 Resolve_Aspect_Expression.
5075
5076 2023-05-16 Yannick Moy <[email protected]>
5077
5078 * libgnat/s-aridou.adb (Lemma_Div_Pow2): Add assertion.
5079 * libgnat/s-arit32.adb (Lemma_Abs_Div_Commutation): Simplify.
5080 * libgnat/s-expmod.adb (Lemma_Exp_Mod): Add assertions.
5081 (Lemma_Euclidean_Mod): Add body to lemma.
5082 (Lemma_Mult_Mod): Add assertion.
5083 * libgnat/s-valueu.adb (Scan_Raw_Unsigned): Modify assertion.
5084 * libgnat/s-vauspe.ads (Raw_Unsigned_Last_Ghost): Add
5085 postcondition.
5086 * libgnat/s-widthi.adb: Use more precise types.
5087
5088 2023-05-16 Eric Botcazou <[email protected]>
5089
5090 * sem_res.adb (Has_Applicable_User_Defined_Literal): Apply the
5091 same processing for derived untagged types as for tagged types.
5092 * sem_util.ads (Corresponding_Primitive_Op): Adjust description.
5093 * sem_util.adb (Corresponding_Primitive_Op): Handle untagged
5094 types.
5095
5096 2023-05-16 Javier Miranda <[email protected]>
5097
5098 * sem_attr.adb
5099 (Analyze_Attribute_Old_Result): When preanalyzing a class-wide
5100 condition, search in the scopes stack for the subprogram that has
5101 the condition. This is required because returning the current
5102 scope causes reporting spurious errors when the occurrence of the
5103 attribute is found, for example, in a quantified expression.
5104
5105 2023-05-16 Javier Miranda <[email protected]>
5106
5107 * exp_ch6.adb
5108 (Needs_BIP_Alloc_Form): Return False for functions with foreign
5109 convention since we never use build-in-place for such functions.
5110
5111 2023-05-16 Piotr Trojanek <[email protected]>
5112
5113 * sem_util.adb (Aggregate_Constraint_Checks): Don't exit early
5114 when preanalysing in GNATprove mode. Now the condition is
5115 consistent with other similar conditions in other code.
5116
5117 2023-05-16 Ghjuvan Lacambre <[email protected]>
5118
5119 * usage.adb (Usage): Document -gnatyD.
5120
5121 2023-05-16 Marc Poulhiès <[email protected]>
5122
5123 * libgnat/s-tsmona__linux.adb (link_map, r_debug_type): Add
5124 'aliased' on all components.
5125
5126 2023-05-16 Johannes Kliemann <[email protected]>
5127
5128 * libgnat/system-linux-ppc.ads: Add Support_Atomic_Primitives.
5129 * libgnat/s-atopri__32.ads: Add 32 bit version of s-atopri.ads.
5130 * Makefile.rtl: Use s-atopro__32.ads for ppc-linux.
5131
5132 2023-05-16 Eric Botcazou <[email protected]>
5133
5134 * sem_util.adb (Get_Actual_Subtype): For an explicit dereference,
5135 return the Actual_Designated_Subtype if it is present.
5136 (Get_Actual_Subtype_If_Available): Likewise.
5137
5138 2023-05-16 Arnaud Charlet <[email protected]>
5139
5140 * errout.ads: Update comment.
5141 * errout.adb (Skip_Msg_Insertion_Warning): Update to take e.g.
5142 -gnatyM into account.
5143 * erroutc.adb (Get_Warning_Option, Get_Warning_Tag)
5144 (Prescan_Message): Add support for Style tags.
5145 * par-ch5.adb, par-ch6.adb, par-ch7.adb, par-endh.adb,
5146 par-util.adb, style.adb, styleg.adb: Set tag on all style
5147 messages.
5148
5149 2023-05-16 Tom Tromey <[email protected]>
5150
5151 * doc/gnat_ugn/building_executable_programs_with_gnat.rst
5152 (Switches_for_gnatbind): Fix typo.
5153 * libgnat/g-spipat.ads: Fix typo.
5154 * gnat_ugn.texi: Regenerate.
5155
5156 2023-05-16 Eric Botcazou <[email protected]>
5157
5158 * exp_aggr.adb (Build_Assignment_With_Temporary): Adjust comment
5159 and fix type of second parameter. Create the temporary on the
5160 secondary stack by calling Build_Temporary_On_Secondary_Stack.
5161 (Convert_Array_Aggr_In_Allocator): Adjust formatting.
5162 (Expand_Array_Aggregate): Likewise.
5163 * exp_ch4.adb (Expand_N_Allocator): Set Actual_Designated_Subtype
5164 on the dereference in the initialization for all composite types.
5165 * exp_ch5.adb (Expand_N_Assignment_Statement): Create a temporary
5166 on the host for an assignment between nonnative storage models.
5167 Suppress more checks when Suppress_Assignment_Checks is set.
5168 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Deal with actuals
5169 that are dereferences with an Actual_Designated_Subtype. Add
5170 support for nonnative storage models.
5171 (Expand_Actuals): Create a copy if the actual is a dereference
5172 with a nonnative storage model.
5173 * exp_util.ads (Build_Temporary_On_Secondary_Stack): Declare.
5174 * exp_util.adb (Build_Temporary_On_Secondary_Stack): New function.
5175 * sem_ch5.adb (Analyze_Assignment.Set_Assignment_Type): Do not
5176 build an actual subtype for dereferences with an
5177 Actual_Designated_Subtype
5178 * sinfo.ads (Actual_Designated_Subtype): Adjust documentation.
5179 (Suppress_Assignment_Checks): Likewise.
5180
5181 2023-05-16 Piotr Trojanek <[email protected]>
5182
5183 * exp_spark.adb (SPARK_Freeze_Type): Copy whole handling of DIC
5184 and Type_Invariant from Freeze_Type.
5185
5186 2023-05-16 Richard Kenner <[email protected]>
5187
5188 * sem_util.adb (Subprogram_Name): If what's passed is already an
5189 entity, use that for the name.
5190
5191 2023-05-16 Eric Botcazou <[email protected]>
5192
5193 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst
5194 (No_Dependence): Give examples of new No_Dependence restrictions.
5195 * gnat_rm.texi: Regenerate.
5196
5197 2023-05-16 Arnaud Charlet <[email protected]>
5198
5199 * snames.ads-tmpl (Name_ASCII): New.
5200 * style.adb (Check_Identifier): Fix handling of ASCII.
5201
5202 2023-05-16 Eric Botcazou <[email protected]>
5203
5204 * gen_il-fields.ads (Opt_Field_Enum): Add Cannot_Be_Superflat.
5205 * gen_il-gen-gen_nodes.adb (N_Range): Add Cannot_Be_Superflat as
5206 semantical flag and change Includes_Infinities to semantical.
5207 * sinfo.ads (Cannot_Be_Superflat): Document it for N_Range.
5208 * exp_ch4.adb (Expand_Concatenate): Set Cannot_Be_Superflat on the
5209 range of the result if the result cannot be null.
5210
5211 2023-05-16 Richard Kenner <[email protected]>
5212
5213 * gen_il-gen-gen_nodes.adb (Present_Expr): Type is now Uint.
5214
5215 2023-05-16 Yannick Moy <[email protected]>
5216
5217 * libgnat/s-aridou.adb (Big3, Is_Mult_Decomposition)
5218 (Is_Scaled_Mult_Decomposition): Add annotation for inlining.
5219 (Double_Divide, Scaled_Divide): Simplify and remove ghost code.
5220 (Prove_Multiplication): Add calls to lemmas to make proof go
5221 through.
5222 * libgnat/s-aridou.ads (Big, In_Double_Int_Range): Add annotation
5223 for inlining.
5224
5225 2023-05-16 Yannick Moy <[email protected]>
5226
5227 * libgnat/a-strsup.adb: Add intermediate assertions.
5228
5229 2023-05-16 Arnaud Charlet <[email protected]>
5230
5231 * gnat1drv.adb: Ensure all dependencies are recorded even when not
5232 generating code.
5233
5234 2023-05-16 Yannick Moy <[email protected]>
5235
5236 * libgnat/a-strsup.adb: Set assertion policy for Loop_Variant.
5237
5238 2023-05-16 Marc Poulhiès <[email protected]>
5239
5240 * sem_ch12.adb (Instantiate_Package_Body): Simplify if/then/else.
5241 (Instantiate_Subprogram_Body): Likewise.
5242
5243 2023-05-16 Yannick Moy <[email protected]>
5244
5245 * libgnat/s-aridou.adb:
5246 (Big3): Remove override made useless.
5247 (Lemma_Quot_Rem): Add new lemma and justify it, as no prover
5248 manages to prove it.
5249 (Lemma_Div_Pow2): Use new lemma Lemma_Quot_Rem.
5250 (Prove_Scaled_Mult_Decomposition_Regroup3): Retype for
5251 simplification.
5252 (Scaled_Divide): Remove useless assertions.Decompose some
5253 assertions with cut operations. Use Assert_And_Cut for second
5254 half. Add assertions.
5255
5256 2023-05-15 Marc Poulhiès <[email protected]>
5257
5258 * exp_ch3.adb (Make_Allocator_For_Return): Fix typo in comment.
5259
5260 2023-05-15 Yannick Moy <[email protected]>
5261
5262 * libgnat/a-strbou.ads: Add justifications for Mapping.
5263 * libgnat/a-strfix.adb: Same.
5264 * libgnat/a-strfix.ads: Same.
5265 * libgnat/a-strsea.adb: Same.
5266 * libgnat/a-strsea.ads: Same.
5267 * libgnat/a-strsup.adb: Same and add loop variants.
5268 * libgnat/a-strsup.ads: Same and add specification of termination.
5269
5270 2023-05-15 Yannick Moy <[email protected]>
5271
5272 * libgnat/a-strsup.adb (Super_Slice): Reorder component assignment
5273 to avoid failing predicate check related to initialization.
5274 * libgnat/s-expmod.adb (Exp_Modular): Add intermediate assertion.
5275
5276 2023-05-15 Yannick Moy <[email protected]>
5277
5278 * libgnat/i-c.adb: Add loop variants. Remove useless
5279 initialization.
5280
5281 2023-05-15 Bob Duff <[email protected]>
5282
5283 * einfo-utils.ads: Remove comment.
5284
5285 2023-05-15 Bob Duff <[email protected]>
5286
5287 * einfo-utils.ads, einfo-utils.adb: Get rid of the Proc_Next_...
5288 procedures. Use Inline aspect instead of pragma Inline.
5289 Is_Discrete_Or_Fixed_Point_Type did not have pragma Inline, but
5290 now has the aspect; this was probably an oversight
5291 (which illustrates why aspects are better).
5292
5293 2023-05-15 Ronan Desplanques <[email protected]>
5294
5295 * doc/gnat_ugn/gnat_utility_programs.rst: Fix formatting
5296 inconsistency.
5297
5298 2023-05-15 Bob Duff <[email protected]>
5299
5300 * einfo-utils.adb:
5301 (Proc_Next_Component_Or_Discriminant): Call
5302 Next_Component_Or_Discriminant.
5303
5304 2023-05-15 Bob Duff <[email protected]>
5305
5306 * einfo.ads:
5307 (First_Entity): Update comment explaining why this exists on all
5308 [sub]types, as opposed to just the ones with associated entities.
5309
5310 2023-05-15 Bob Duff <[email protected]>
5311
5312 * atree.adb
5313 (Check_Vanishing_Fields): Disable the check for "root/base type
5314 only" fields. This is a bug fix -- if we're checking some subtype
5315 S, we don't want to reach over to the root or base type and
5316 Reinit_Field_To_Zero of that, thus modifying the field for lots of
5317 subtypes other than S. Disable in the to/from E_Void cases. Misc
5318 cleanup.
5319 * gen_il-gen-gen_entities.adb: Define First_Entity, Last_Entity,
5320 and Stored_Constraint for all type entities, because there are too
5321 many cases where Reinit_Field_To_Zero would otherwise be needed.
5322 In any case, it seems cleaner to have First_Entity and Last_Entity
5323 defined in the same entity kinds.
5324 * einfo.ads:
5325 (First_Entity, Last_Entity, Stored_Constraint): Update comments to
5326 reflect gen_il-gen-gen_entities.adb changes.
5327 (Lit_Hash): Add missing "[root type only]" comment.
5328 * exp_ch5.adb: Add Reinit_Field_To_Zero calls for vanishing
5329 fields.
5330 * sem_ch10.adb: Likewise.
5331 * sem_ch6.adb: Likewise.
5332 * sem_ch7.adb: Likewise.
5333 * sem_ch8.adb: Likewise.
5334 * sem_ch3.adb: Likewise. Also remove now-unnecessary
5335 Reinit_Field_To_Zero calls.
5336
5337 2023-05-15 Eric Botcazou <[email protected]>
5338
5339 * sem_ch7.adb (Hide_Public_Entities): Use the same condition for
5340 subprogram bodies without specification as for those with one.
5341
5342 2023-05-15 Piotr Trojanek <[email protected]>
5343
5344 * sem_util.adb (New_Copy_Tree): Remove redundant calls to Present.
5345
5346 2023-05-15 Ronan Desplanques <[email protected]>
5347
5348 * sem_ch8.adb (End_Scope): Simplify lookup of predecessor in
5349 homonym chain.
5350
5351 2023-05-15 Piotr Trojanek <[email protected]>
5352
5353 * sem_aggr.adb (Resolve_Aggregate): Accept aggregates with OTHERS
5354 appearing inside unchecked conversions.
5355
5356 2023-05-15 Steve Baird <[email protected]>
5357
5358 * warnsw.ads: Add a new element,
5359 Warn_On_Ineffective_Predicate_Test, to the Opt_Warnings_Enum
5360 enumeration type.
5361 * warnsw.adb: Bind "-gnatw_s" to the new
5362 Warn_On_Ineffective_Predicate_Test switch. Add the new switch to
5363 the set of switches enabled by -gnata .
5364 * sem_ch13.adb
5365 (Build_Discrete_Static_Predicate): Declare new local procedure,
5366 Warn_If_Test_Ineffective, which conditionally generates new
5367 warning. Call this new procedure when building a new element of an
5368 RList.
5369 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
5370 Document the -gnatw_s switch (and the corresponding -gnatw_S
5371 switch).
5372 * gnat_ugn.texi: Regenerate.
5373
5374 2023-05-15 Yannick Moy <[email protected]>
5375
5376 * sem_attr.adb: Update comment referring to rule number.
5377
5378 2023-05-15 Ronan Desplanques <[email protected]>
5379
5380 * sem_attr.adb: sem_attr.adb (Analyze_Access_Attribute): Tighten
5381 validity check for task types.
5382
5383 2023-05-15 Ronan Desplanques <[email protected]>
5384
5385 * doc/gnat_rm/implementation_defined_characteristics.rst: Fix
5386 minor documentation formatting issue.
5387 * gnat_rm.texi: Regenerate.
5388 * gnat_ugn.texi: Regenerate.
5389
5390 2023-05-15 Bob Duff <[email protected]>
5391
5392 * exp_ch4.adb
5393 (Expand_N_Op_Expon): Remove the too-big check. Simplify. Signed
5394 and modular cases are combined, etc. Remove code with comment "We
5395 only handle cases where the right type is a[sic] integer", because
5396 the right operand must always be an integer at this point.
5397
5398 2023-05-15 Bob Duff <[email protected]>
5399
5400 * sem_attr.adb
5401 (Analyze_Attribute): Add a call to Check_Error_Detected.
5402
5403 2023-05-15 Yannick Moy <[email protected]>
5404
5405 * par-prag.adb (First_Arg_Is_Matching_Tool_Name): Fix access to
5406 expression in pragma association.
5407
5408 2023-05-15 Eric Botcazou <[email protected]>
5409
5410 * repinfo.ads (JSON output format): Document special case of
5411 Present member of a Variant object.
5412 * repinfo.adb (List_Structural_Record_Layout): Change the type of
5413 Ext_Level parameter to Integer. Restrict the first recursion with
5414 increasing levels to the fixed part and implement a second
5415 recursion with decreasing levels for the variant part. Deal with
5416 an extension of a type with unknown discriminants.
5417
5418 2023-05-15 Claire Dross <[email protected]>
5419
5420 * libgnat/s-valueu.adb: Use cut operations inside assertion to
5421 restore proofs
5422 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Add s-spark and
5423 s-spcuop dependencies.
5424
5425 2023-05-15 Yannick Moy <[email protected]>
5426
5427 * sem_prag.adb (Check_Grouping): Allow Annotate pragmas between
5428 loop pragmas.
5429
5430 2023-05-15 Javier Miranda <[email protected]>
5431
5432 * doc/gnat_rm/implementation_defined_pragmas.rst
5433 (Extensions_Allowed): Document string interpolation.
5434 * gnat_rm.texi: Regenerate.
5435 * gnat_ugn.texi: Regenerate.
5436
5437 2023-05-15 Joel Brobecker <[email protected]>
5438
5439 * doc/gnat_ugn/platform_specific_information.rst
5440 (_PIE_Enabled_By_Default_On_Linux): New section.
5441 * gnat-style.texi: Regenerate.
5442 * gnat_ugn.texi: Regenerate.
5443
5444 2023-05-15 Javier Miranda <[email protected]>
5445
5446 * exp_disp.adb
5447 (Has_Dispatching_Constructor_Call): New subprogram.
5448 (Expand_Interface_Conversion): No need to perform dynamic
5449 interface conversion when the operand and the target type are
5450 interface types and the target interface type is an ancestor of
5451 the operand type. The unique exception to this rule is when the
5452 operand has a dispatching constructor call (as documented in the
5453 sources).
5454
5455 2023-05-15 Piotr Trojanek <[email protected]>
5456
5457 * sem_attr.adb (Analyze_Attribute): Reject attribute Initialized
5458 on unchecked unions; fix grammar in comment.
5459
5460 2023-05-15 Ronan Desplanques <[email protected]>
5461
5462 * sem_ch13.adb (Validate_Unchecked_Conversion): Fix behavior on
5463 System.Address to access to subprogram subtype conversion.
5464
5465 2023-05-15 Piotr Trojanek <[email protected]>
5466
5467 * atree.ads
5468 (Is_Syntactic_Node): Refactored from New_Copy_Tree.
5469 * atree.adb
5470 (Is_Syntactic_Node): Likewise.
5471 (Copy_Separate_Tree): Use Is_Syntactic_Node.
5472 * sem_util.adb
5473 (Has_More_Ids): Move to Atree.
5474 (Is_Syntactic_Node): Likewise.
5475
5476 2023-04-18 Jin Ma <[email protected]>
5477
5478 * gcc-interface/utils.cc (unchecked_convert): Fix typo.
5479
5480 2023-04-17 Martin Liska <[email protected]>
5481
5482 * gnatvsn.ads: Bump Library_Version to 14.
5483
5484 2023-04-15 Eric Botcazou <[email protected]>
5485
5486 PR bootstrap/109510
5487 * gcc-interface/decl.cc (gnat_to_gnu_entity) <types>: Do not reset
5488 align to zero in any case. Set TYPE_USER_ALIGN on the type only if
5489 it is an aggregate type, or else a type whose default alignment is
5490 specifically capped on selected platforms.
5491
5492 2023-04-14 Eric Botcazou <[email protected]>
5493
5494 PR bootstrap/109510
5495 * gcc-interface/decl.cc (gnat_to_gnu_entity) <types>: Reset align
5496 to zero if its value is equal to TYPE_ALIGN and the type is scalar.
5497 Set TYPE_USER_ALIGN on the type only if align is positive.
5498
5499 2023-03-06 Javier Miranda <[email protected]>
5500
5501 PR ada/108858
5502 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): For functions with
5503 separate spec, if their return type was visible through a limited-
5504 with context clause, their extra formals were not added when the
5505 spec was analyzed. Now the full view must be available, and the
5506 extra formals can be created and Returns_By_Ref computed.
5507
5508 2023-03-06 Eric Botcazou <[email protected]>
5509
5510 PR ada/108909
5511 PR ada/108983
5512 * Make-generated.in: Do not use GNATMAKE.
5513 * gcc-interface/Makefile.in: Ditto.
5514
5515 2023-02-26 Peter Foley <[email protected]>
5516
5517 PR ada/108909
5518 * Make-generated.in: Use GNATMAKE.
5519 * gcc-interface/Makefile.in: Ditto.
5520
5521 2023-02-14 Eric Botcazou <[email protected]>
5522
5523 * gcc-interface/trans.cc (gnat_gimplify_expr): Add missing guard.
5524
5525 2023-02-14 Dongsheng Song <[email protected]>
5526
5527 * adaint.c [Linux]: Include <features.h>.
5528 (__gnat_get_executable_load_address) [Linux]: Enable only for
5529 glibc and uClibc.
5530
5531 2023-01-16 Marc Poulhiès <[email protected]>
5532
5533 * gcc-interface/Make-lang.in: Update copyright years.
5534 * gcc-interface/Makefile.in: Likewise.
5535 * gcc-interface/ada-builtin-types.def: Likewise.
5536 * gcc-interface/ada-builtins.def: Likewise.
5537 * gcc-interface/ada-tree.def: Likewise.
5538 * gcc-interface/ada-tree.h: Likewise.
5539 * gcc-interface/ada.h: Likewise.
5540 * gcc-interface/config-lang.in: Likewise.
5541 * gcc-interface/cuintp.cc: Likewise.
5542 * gcc-interface/decl.cc: Likewise.
5543 * gcc-interface/gadaint.h: Likewise.
5544 * gcc-interface/gigi.h: Likewise.
5545 * gcc-interface/lang-specs.h: Likewise.
5546 * gcc-interface/lang.opt: Likewise.
5547 * gcc-interface/misc.cc: Likewise.
5548 * gcc-interface/system.ads: Likewise.
5549 * gcc-interface/targtyps.cc: Likewise.
5550 * gcc-interface/trans.cc: Likewise.
5551 * gcc-interface/utils.cc: Likewise.
5552 * gcc-interface/utils2.cc: Likewise.
5553
5554 2023-01-16 Eric Botcazou <[email protected]>
5555
5556 * exp_ch3.adb (Make_Allocator_For_Return): Fix typo in comment.
5557
5558 2023-01-16 Eric Botcazou <[email protected]>
5559
5560 * exp_ch3.adb (Make_Allocator_For_Return): Convert the expression
5561 to the return object's type in the constrained array case as well.
5562
5563 2023-01-16 Eric Botcazou <[email protected]>
5564
5565 * exp_ch3.adb (Expand_N_Object_Declaration): For a class-wide non-
5566 interface stand-alone object initialized by a function call, call
5567 Remove_Side_Effects on the expression to capture the result.
5568
5569 2023-01-16 Eric Botcazou <[email protected]>
5570
5571 * exp_util.ads (Has_Tag_Of_Type): Declare.
5572 * exp_util.adb (Has_Tag_Of_Type): Move to package level. Recurse on
5573 qualified expressions.
5574 * exp_ch3.adb (Expand_N_Object_Declaration): Use a static reference
5575 to the interface tag in more cases for class-wide interface objects.
5576
5577 2023-01-16 Eric Botcazou <[email protected]>
5578
5579 * exp_util.adb (Make_CW_Equivalent_Type.Has_Tag_Of_Type): Fix pasto.
5580
5581 2023-01-16 Eric Botcazou <[email protected]>
5582
5583 * exp_util.adb (Is_Temporary_For_Interface_Object): Delete.
5584 (Is_Finalizable_Transient.Is_Aliased): Deal with the specific case
5585 of temporaries generated for interface objects.
5586
5587 2023-01-16 Eric Botcazou <[email protected]>
5588
5589 * exp_ch3.adb (Expand_N_Object_Declaration): Do not generate a back-
5590 and-forth displacement of the object's address when using a renaming
5591 for an interface object with an expression of the same type.
5592 * exp_ch4.adb (Expand_Allocator_Expression): Do not remove the side
5593 effects of the expression up front for the simple allocators. Do not
5594 call the Adjust primitive if the expression is a function call.
5595 * exp_ch6.adb (Expand_Ctrl_Function_Call): Do not expand the call
5596 unnecessarily for a special return object.
5597 (Expand_Simple_Function_Return): Restore the displacement of the
5598 return object's address in the case where the expression is the call
5599 to a function whose result type is a type that needs finalization.
5600 * exp_util.adb (Expand_Subtype_From_Expr): Do not remove the side
5601 effects of the expression before calling Make_Subtype_From_Expr.
5602 (Make_CW_Equivalent_Type): If the expression has the tag of its type
5603 and this type has a uniform size, use 'Object_Size of this type in
5604 lieu of 'Size of the expression to compute the expression's size.
5605
5606 2023-01-16 Eric Botcazou <[email protected]>
5607
5608 * exp_ch3.adb (Make_Allocator_For_Return): Put back an interface
5609 conversion for expressions with non-interface class-wide type.
5610
5611 2023-01-16 Eric Botcazou <[email protected]>
5612
5613 * exp_ch3.adb (Expand_N_Object_Declaration): Also optimize aliased
5614 objects if their nominal subtype is not an unconstrained array.
5615
5616 2023-01-16 Eric Botcazou <[email protected]>
5617
5618 * exp_ch3.adb (Expand_N_Object_Declaration): Factor out conditions
5619 needed for an initializating expression that is a function call to
5620 be renamable into the Is_Renamable_Function_Call predicate.
5621 Use it to implement the renaming in the case of class-wide interface
5622 objects. Remove an interface conversion on all paths, separate and
5623 optimize the renaming path in the special expansion for interfaces.
5624 (Is_Renamable_Function_Call): New predicate.
5625 (Make_Allocator_For_Return): Put back an interface conversion.
5626 * exp_ch6.adb (Apply_CW_Accessibility_Check): Remove useless access
5627 checks on RE_Tag_Ptr.
5628
5629 2023-01-09 Arnaud Charlet <[email protected]>
5630
5631 * accessibility.adb, accessibility.ads, ada_get_targ.adb: Update copyright year.
5632 * adabkend.adb, adabkend.ads, adadecode.c, adadecode.h, adaint.c: Likewise.
5633 * adaint.h, affinity.c, ali-util.adb, ali-util.ads, ali.adb: Likewise.
5634 * ali.ads, alloc.ads, argv-lynxos178-raven-cert.c, argv.c: Likewise.
5635 * aspects.adb, aspects.ads, atree.adb, atree.ads, atree.h: Likewise.
5636 * aux-io.c, back_end.adb, back_end.ads, backend_utils.adb: Likewise.
5637 * backend_utils.ads, bcheck.adb, bcheck.ads, binde.adb, binde.ads: Likewise.
5638 * binderr.adb, binderr.ads, bindgen.adb, bindgen.ads: Likewise.
5639 * bindo-augmentors.adb, bindo-augmentors.ads, bindo-builders.adb: Likewise.
5640 * bindo-builders.ads, bindo-diagnostics.adb: Likewise.
5641 * bindo-diagnostics.ads, bindo-elaborators.adb: Likewise.
5642 * bindo-elaborators.ads, bindo-graphs.adb, bindo-graphs.ads: Likewise.
5643 * bindo-units.adb, bindo-units.ads, bindo-validators.adb: Likewise.
5644 * bindo-validators.ads, bindo-writers.adb, bindo-writers.ads: Likewise.
5645 * bindo.adb, bindo.ads, bindusg.adb, bindusg.ads, butil.adb: Likewise.
5646 * butil.ads, cal.c, casing.adb, casing.ads, checks.adb: Likewise.
5647 * checks.ads, cio.c, clean.adb, clean.ads: Likewise.
5648 * comperr.adb, comperr.ads, contracts.adb, contracts.ads: Likewise.
5649 * csets.adb, csets.ads, cstand.adb: Likewise.
5650 * cstand.ads, cstreams.c, ctrl_c.c, debug.adb, debug.ads: Likewise.
5651 * debug_a.adb, debug_a.ads, einfo-utils.adb, einfo-utils.ads: Likewise.
5652 * einfo.adb, einfo.ads, elists.adb, elists.ads, elists.h, env.c: Likewise.
5653 * env.h, err_vars.ads, errno.c, errout.adb, errout.ads: Likewise.
5654 * erroutc.adb, erroutc.ads, errutil.adb, errutil.ads: Likewise.
5655 * eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb, exp_aggr.ads: Likewise.
5656 * exp_atag.adb, exp_atag.ads, exp_attr.adb, exp_attr.ads: Likewise.
5657 * exp_cg.adb, exp_cg.ads, exp_ch10.ads, exp_ch11.adb: Likewise.
5658 * exp_ch11.ads, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb: Likewise.
5659 * exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.adb: Likewise.
5660 * exp_ch3.ads, exp_ch4.adb, exp_ch4.ads, exp_ch5.adb, exp_ch5.ads: Likewise.
5661 * exp_ch6.adb, exp_ch6.ads, exp_ch7.adb, exp_ch7.ads, exp_ch8.adb: Likewise.
5662 * exp_ch8.ads, exp_ch9.adb, exp_ch9.ads, exp_code.adb: Likewise.
5663 * exp_code.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.adb: Likewise.
5664 * exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb: Likewise.
5665 * exp_fixd.ads, exp_imgv.adb, exp_imgv.ads, exp_intr.adb: Likewise.
5666 * exp_intr.ads, exp_pakd.adb, exp_pakd.ads, exp_prag.adb: Likewise.
5667 * exp_prag.ads, exp_put_image.adb, exp_put_image.ads, exp_sel.adb: Likewise.
5668 * exp_sel.ads, exp_smem.adb, exp_smem.ads, exp_spark.adb: Likewise.
5669 * exp_spark.ads, exp_strm.adb, exp_strm.ads, exp_tss.adb: Likewise.
5670 * exp_tss.ads, exp_unst.adb, exp_unst.ads, exp_util.adb: Likewise.
5671 * exp_util.ads, expander.adb, expander.ads, expect.c, fe.h: Likewise.
5672 * final.c, fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads: Likewise.
5673 * fname-uf.adb, fname-uf.ads, fname.adb, fname.ads, freeze.adb: Likewise.
5674 * freeze.ads, frontend.adb, frontend.ads, gen_il-fields.ads: Likewise.
5675 * gen_il-gen-gen_entities.adb, gen_il-gen-gen_nodes.adb: Likewise.
5676 * gen_il-gen.adb, gen_il-gen.ads, gen_il-internals.adb: Likewise.
5677 * gen_il-internals.ads, gen_il-main.adb, gen_il-types.ads: Likewise.
5678 * gen_il.adb, gen_il.ads, get_scos.adb, get_scos.ads: Likewise.
5679 * get_targ.adb, get_targ.ads, ghost.adb, ghost.ads, gnat1drv.adb: Likewise.
5680 * gnat1drv.ads, gnat_cuda.adb, gnat_cuda.ads: Likewise.
5681 * gnatbind.adb, gnatbind.ads, gnatchop.adb: Likewise.
5682 * gnatclean.adb, gnatcmd.adb, gnatcmd.ads, gnatdll.adb: Likewise.
5683 * gnatkr.adb, gnatkr.ads, gnatlink.adb, gnatlink.ads, gnatls.adb: Likewise.
5684 * gnatls.ads, gnatmake.adb, gnatmake.ads, gnatname.adb: Likewise.
5685 * gnatname.ads, gnatprep.adb, gnatprep.ads: Likewise.
5686 * gprep.adb, gprep.ads, gsocket.h: Likewise.
5687 * hostparm.ads: Likewise.
5688 * impunit.adb, impunit.ads, indepsw-aix.adb, indepsw-darwin.adb: Likewise.
5689 * indepsw-gnu.adb, indepsw.adb, indepsw.ads, init.c: Likewise.
5690 * initialize.c, inline.adb, inline.ads, itypes.adb, itypes.ads: Likewise.
5691 * krunch.adb, krunch.ads, layout.adb, layout.ads: Likewise.
5692 * lib-list.adb, lib-load.adb, lib-load.ads, lib-sort.adb: Likewise.
5693 * lib-util.adb, lib-util.ads, lib-writ.adb, lib-writ.ads: Likewise.
5694 * lib-xref-spark_specific.adb, lib-xref.adb, lib-xref.ads: Likewise.
5695 * lib.adb, lib.ads, libgnarl/a-astaco.adb, libgnarl/a-dispat.adb: Likewise.
5696 * libgnarl/a-dynpri.adb, libgnarl/a-etgrbu.ads: Likewise.
5697 * libgnarl/a-exetim__darwin.adb, libgnarl/a-exetim__default.ads: Likewise.
5698 * libgnarl/a-exetim__mingw.adb, libgnarl/a-exetim__mingw.ads: Likewise.
5699 * libgnarl/a-exetim__posix.adb, libgnarl/a-interr.adb: Likewise.
5700 * libgnarl/a-interr.ads, libgnarl/a-intnam.ads: Likewise.
5701 * libgnarl/a-intnam__aix.ads, libgnarl/a-intnam__darwin.ads: Likewise.
5702 * libgnarl/a-intnam__dragonfly.ads, libgnarl/a-intnam__dummy.ads: Likewise.
5703 * libgnarl/a-intnam__freebsd.ads, libgnarl/a-intnam__hpux.ads: Likewise.
5704 * libgnarl/a-intnam__linux.ads, libgnarl/a-intnam__lynxos.ads: Likewise.
5705 * libgnarl/a-intnam__mingw.ads, libgnarl/a-intnam__qnx.ads: Likewise.
5706 * libgnarl/a-intnam__rtems.ads, libgnarl/a-intnam__solaris.ads: Likewise.
5707 * libgnarl/a-intnam__vxworks.ads, libgnarl/a-reatim.adb: Likewise.
5708 * libgnarl/a-reatim.ads, libgnarl/a-retide.adb: Likewise.
5709 * libgnarl/a-retide.ads, libgnarl/a-rttiev.adb: Likewise.
5710 * libgnarl/a-rttiev.ads, libgnarl/a-synbar.adb: Likewise.
5711 * libgnarl/a-synbar.ads, libgnarl/a-synbar__posix.adb: Likewise.
5712 * libgnarl/a-synbar__posix.ads, libgnarl/a-sytaco.adb: Likewise.
5713 * libgnarl/a-sytaco.ads, libgnarl/a-tasatt.adb: Likewise.
5714 * libgnarl/a-tasatt.ads, libgnarl/a-taside.adb: Likewise.
5715 * libgnarl/a-taside.ads, libgnarl/a-tasini.adb: Likewise.
5716 * libgnarl/a-tasini.ads, libgnarl/a-taster.adb: Likewise.
5717 * libgnarl/g-boubuf.adb, libgnarl/g-boubuf.ads: Likewise.
5718 * libgnarl/g-boumai.ads, libgnarl/g-semaph.adb: Likewise.
5719 * libgnarl/g-semaph.ads, libgnarl/g-signal.adb: Likewise.
5720 * libgnarl/g-signal.ads, libgnarl/g-tastus.ads: Likewise.
5721 * libgnarl/g-thread.adb, libgnarl/g-thread.ads: Likewise.
5722 * libgnarl/i-vxinco.adb, libgnarl/i-vxinco.ads: Likewise.
5723 * libgnarl/s-inmaop.ads, libgnarl/s-inmaop__dummy.adb: Likewise.
5724 * libgnarl/s-inmaop__hwint.adb, libgnarl/s-inmaop__posix.adb: Likewise.
5725 * libgnarl/s-interr.adb, libgnarl/s-interr.ads: Likewise.
5726 * libgnarl/s-interr__dummy.adb, libgnarl/s-interr__hwint.adb: Likewise.
5727 * libgnarl/s-interr__sigaction.adb: Likewise.
5728 * libgnarl/s-interr__vxworks.adb, libgnarl/s-intman.ads: Likewise.
5729 * libgnarl/s-intman__android.adb, libgnarl/s-intman__dummy.adb: Likewise.
5730 * libgnarl/s-intman__lynxos.adb, libgnarl/s-intman__mingw.adb: Likewise.
5731 * libgnarl/s-intman__posix.adb, libgnarl/s-intman__qnx.adb: Likewise.
5732 * libgnarl/s-intman__rtems.adb, libgnarl/s-intman__rtems.ads: Likewise.
5733 * libgnarl/s-intman__solaris.adb, libgnarl/s-intman__susv3.adb: Likewise.
5734 * libgnarl/s-intman__vxworks.adb, libgnarl/s-intman__vxworks.ads: Likewise.
5735 * libgnarl/s-linux.ads, libgnarl/s-linux__alpha.ads: Likewise.
5736 * libgnarl/s-linux__android.ads, libgnarl/s-linux__hppa.ads: Likewise.
5737 * libgnarl/s-linux__mips.ads, libgnarl/s-linux__riscv.ads: Likewise.
5738 * libgnarl/s-linux__sparc.ads, libgnarl/s-linux__x32.ads: Likewise.
5739 * libgnarl/s-mudido.adb, libgnarl/s-mudido__affinity.adb: Likewise.
5740 * libgnarl/s-osinte__aix.adb, libgnarl/s-osinte__aix.ads: Likewise.
5741 * libgnarl/s-osinte__android.adb, libgnarl/s-osinte__android.ads: Likewise.
5742 * libgnarl/s-osinte__darwin.adb, libgnarl/s-osinte__darwin.ads: Likewise.
5743 * libgnarl/s-osinte__dragonfly.adb: Likewise.
5744 * libgnarl/s-osinte__dragonfly.ads, libgnarl/s-osinte__dummy.ads: Likewise.
5745 * libgnarl/s-osinte__freebsd.adb, libgnarl/s-osinte__freebsd.ads: Likewise.
5746 * libgnarl/s-osinte__gnu.adb, libgnarl/s-osinte__gnu.ads: Likewise.
5747 * libgnarl/s-osinte__hpux-dce.adb: Likewise.
5748 * libgnarl/s-osinte__hpux-dce.ads, libgnarl/s-osinte__hpux.ads: Likewise.
5749 * libgnarl/s-osinte__kfreebsd-gnu.ads: Likewise.
5750 * libgnarl/s-osinte__linux.ads, libgnarl/s-osinte__lynxos178.adb: Likewise.
5751 * libgnarl/s-osinte__lynxos178e.ads, libgnarl/s-osinte__mingw.ads: Likewise.
5752 * libgnarl/s-osinte__posix.adb, libgnarl/s-osinte__qnx.adb: Likewise.
5753 * libgnarl/s-osinte__qnx.ads, libgnarl/s-osinte__rtems.adb: Likewise.
5754 * libgnarl/s-osinte__rtems.ads, libgnarl/s-osinte__solaris.adb: Likewise.
5755 * libgnarl/s-osinte__solaris.ads, libgnarl/s-osinte__vxworks.adb: Likewise.
5756 * libgnarl/s-osinte__vxworks.ads, libgnarl/s-osinte__x32.adb: Likewise.
5757 * libgnarl/s-proinf.adb, libgnarl/s-proinf.ads: Likewise.
5758 * libgnarl/s-putaim.adb, libgnarl/s-putaim.ads: Likewise.
5759 * libgnarl/s-qnx.ads, libgnarl/s-solita.adb: Likewise.
5760 * libgnarl/s-solita.ads, libgnarl/s-stusta.adb: Likewise.
5761 * libgnarl/s-stusta.ads, libgnarl/s-taasde.adb: Likewise.
5762 * libgnarl/s-taasde.ads, libgnarl/s-tadeca.adb: Likewise.
5763 * libgnarl/s-tadeca.ads, libgnarl/s-tadert.adb: Likewise.
5764 * libgnarl/s-tadert.ads, libgnarl/s-taenca.adb: Likewise.
5765 * libgnarl/s-taenca.ads, libgnarl/s-taprob.adb: Likewise.
5766 * libgnarl/s-taprob.ads, libgnarl/s-taprop.ads: Likewise.
5767 * libgnarl/s-taprop__dummy.adb, libgnarl/s-taprop__hpux-dce.adb: Likewise.
5768 * libgnarl/s-taprop__linux.adb, libgnarl/s-taprop__mingw.adb: Likewise.
5769 * libgnarl/s-taprop__posix.adb, libgnarl/s-taprop__qnx.adb: Likewise.
5770 * libgnarl/s-taprop__rtems.adb, libgnarl/s-taprop__solaris.adb: Likewise.
5771 * libgnarl/s-taprop__vxworks.adb, libgnarl/s-tarest.adb: Likewise.
5772 * libgnarl/s-tarest.ads, libgnarl/s-tasdeb.adb: Likewise.
5773 * libgnarl/s-tasdeb.ads, libgnarl/s-tasinf.adb: Likewise.
5774 * libgnarl/s-tasinf.ads, libgnarl/s-tasinf__linux.adb: Likewise.
5775 * libgnarl/s-tasinf__linux.ads, libgnarl/s-tasinf__mingw.adb: Likewise.
5776 * libgnarl/s-tasinf__mingw.ads, libgnarl/s-tasinf__solaris.adb: Likewise.
5777 * libgnarl/s-tasinf__solaris.ads, libgnarl/s-tasinf__vxworks.ads: Likewise.
5778 * libgnarl/s-tasini.adb, libgnarl/s-tasini.ads: Likewise.
5779 * libgnarl/s-taskin.adb, libgnarl/s-taskin.ads: Likewise.
5780 * libgnarl/s-taspri__dummy.ads, libgnarl/s-taspri__hpux-dce.ads: Likewise.
5781 * libgnarl/s-taspri__lynxos.ads, libgnarl/s-taspri__mingw.ads: Likewise.
5782 * libgnarl/s-taspri__posix-noaltstack.ads: Likewise.
5783 * libgnarl/s-taspri__posix.ads, libgnarl/s-taspri__solaris.ads: Likewise.
5784 * libgnarl/s-taspri__vxworks.ads, libgnarl/s-tasque.adb: Likewise.
5785 * libgnarl/s-tasque.ads, libgnarl/s-tasren.adb: Likewise.
5786 * libgnarl/s-tasren.ads, libgnarl/s-tasres.ads: Likewise.
5787 * libgnarl/s-tassta.adb, libgnarl/s-tassta.ads: Likewise.
5788 * libgnarl/s-tasuti.adb, libgnarl/s-tasuti.ads: Likewise.
5789 * libgnarl/s-tataat.adb, libgnarl/s-tataat.ads: Likewise.
5790 * libgnarl/s-tpinop.adb, libgnarl/s-tpinop.ads: Likewise.
5791 * libgnarl/s-tpoaal.adb, libgnarl/s-tpoben.adb: Likewise.
5792 * libgnarl/s-tpoben.ads, libgnarl/s-tpobmu.adb: Likewise.
5793 * libgnarl/s-tpobmu.ads, libgnarl/s-tpobop.adb: Likewise.
5794 * libgnarl/s-tpobop.ads, libgnarl/s-tpopmo.adb: Likewise.
5795 * libgnarl/s-tpopsp__posix-foreign.adb: Likewise.
5796 * libgnarl/s-tpopsp__posix.adb, libgnarl/s-tpopsp__solaris.adb: Likewise.
5797 * libgnarl/s-tpopsp__tls.adb, libgnarl/s-tpopsp__vxworks-rtp.adb: Likewise.
5798 * libgnarl/s-tpopsp__vxworks-tls.adb: Likewise.
5799 * libgnarl/s-tpopsp__vxworks.adb, libgnarl/s-tporft.adb: Likewise.
5800 * libgnarl/s-tposen.adb, libgnarl/s-tposen.ads: Likewise.
5801 * libgnarl/s-vxwext.adb, libgnarl/s-vxwext.ads: Likewise.
5802 * libgnarl/s-vxwext__kernel-smp.adb: Likewise.
5803 * libgnarl/s-vxwext__kernel.adb, libgnarl/s-vxwext__kernel.ads: Likewise.
5804 * libgnarl/s-vxwext__rtp-smp.adb, libgnarl/s-vxwext__rtp.adb: Likewise.
5805 * libgnarl/s-vxwext__rtp.ads, libgnarl/s-vxwork__aarch64.ads: Likewise.
5806 * libgnarl/s-vxwork__arm.ads, libgnarl/s-vxwork__ppc.ads: Likewise.
5807 * libgnarl/s-vxwork__x86.ads, libgnarl/thread.c: Likewise.
5808 * libgnat/a-assert.adb, libgnat/a-assert.ads: Likewise.
5809 * libgnat/a-btgbso.adb, libgnat/a-btgbso.ads: Likewise.
5810 * libgnat/a-calari.adb, libgnat/a-calari.ads: Likewise.
5811 * libgnat/a-calcon.adb, libgnat/a-calcon.ads: Likewise.
5812 * libgnat/a-caldel.adb, libgnat/a-caldel.ads: Likewise.
5813 * libgnat/a-calend.adb, libgnat/a-calend.ads: Likewise.
5814 * libgnat/a-calfor.adb, libgnat/a-calfor.ads: Likewise.
5815 * libgnat/a-catizo.adb, libgnat/a-cbdlli.adb: Likewise.
5816 * libgnat/a-cbdlli.ads, libgnat/a-cbhama.adb: Likewise.
5817 * libgnat/a-cbhama.ads, libgnat/a-cbhase.adb: Likewise.
5818 * libgnat/a-cbhase.ads, libgnat/a-cbmutr.adb: Likewise.
5819 * libgnat/a-cbmutr.ads, libgnat/a-cborma.adb: Likewise.
5820 * libgnat/a-cborma.ads, libgnat/a-cborse.adb: Likewise.
5821 * libgnat/a-cborse.ads, libgnat/a-cbprqu.adb: Likewise.
5822 * libgnat/a-cbprqu.ads, libgnat/a-cbsyqu.adb: Likewise.
5823 * libgnat/a-cbsyqu.ads, libgnat/a-cdlili.adb: Likewise.
5824 * libgnat/a-cdlili.ads, libgnat/a-cfdlli.ads: Likewise.
5825 * libgnat/a-cfhama.ads, libgnat/a-cfhase.ads: Likewise.
5826 * libgnat/a-cfidll.ads, libgnat/a-cfinse.ads: Likewise.
5827 * libgnat/a-cfinve.ads, libgnat/a-cforma.ads: Likewise.
5828 * libgnat/a-cforse.ads, libgnat/a-cgaaso.adb: Likewise.
5829 * libgnat/a-cgaaso.ads, libgnat/a-cgarso.adb: Likewise.
5830 * libgnat/a-cgcaso.adb, libgnat/a-chacon.adb: Likewise.
5831 * libgnat/a-chacon.ads, libgnat/a-chahan.adb: Likewise.
5832 * libgnat/a-chahan.ads, libgnat/a-chlat9.ads: Likewise.
5833 * libgnat/a-chtgbk.adb, libgnat/a-chtgbk.ads: Likewise.
5834 * libgnat/a-chtgbo.adb, libgnat/a-chtgbo.ads: Likewise.
5835 * libgnat/a-chtgfk.adb, libgnat/a-chtgfk.ads: Likewise.
5836 * libgnat/a-chtgfo.adb, libgnat/a-chtgfo.ads: Likewise.
5837 * libgnat/a-chtgke.adb, libgnat/a-chtgke.ads: Likewise.
5838 * libgnat/a-chtgop.adb, libgnat/a-chtgop.ads: Likewise.
5839 * libgnat/a-chzla1.ads, libgnat/a-chzla9.ads: Likewise.
5840 * libgnat/a-cidlli.adb, libgnat/a-cidlli.ads: Likewise.
5841 * libgnat/a-cihama.adb, libgnat/a-cihama.ads: Likewise.
5842 * libgnat/a-cihase.adb, libgnat/a-cihase.ads: Likewise.
5843 * libgnat/a-cimutr.adb, libgnat/a-cimutr.ads: Likewise.
5844 * libgnat/a-ciorma.adb, libgnat/a-ciorma.ads: Likewise.
5845 * libgnat/a-ciormu.adb, libgnat/a-ciormu.ads: Likewise.
5846 * libgnat/a-ciorse.adb, libgnat/a-ciorse.ads: Likewise.
5847 * libgnat/a-clrefi.adb, libgnat/a-clrefi.ads: Likewise.
5848 * libgnat/a-coboho.adb, libgnat/a-coboho.ads: Likewise.
5849 * libgnat/a-cobove.adb, libgnat/a-cobove.ads: Likewise.
5850 * libgnat/a-cofove.ads, libgnat/a-cofuma.ads: Likewise.
5851 * libgnat/a-cofuse.ads, libgnat/a-cofuve.ads: Likewise.
5852 * libgnat/a-cogeso.adb, libgnat/a-cogeso.ads: Likewise.
5853 * libgnat/a-cohama.adb, libgnat/a-cohama.ads: Likewise.
5854 * libgnat/a-cohase.adb, libgnat/a-cohase.ads: Likewise.
5855 * libgnat/a-cohata.ads, libgnat/a-coinho.adb: Likewise.
5856 * libgnat/a-coinho.ads, libgnat/a-coinho__shared.adb: Likewise.
5857 * libgnat/a-coinho__shared.ads, libgnat/a-coinve.adb: Likewise.
5858 * libgnat/a-coinve.ads, libgnat/a-colien.adb: Likewise.
5859 * libgnat/a-colien.ads, libgnat/a-colire.adb: Likewise.
5860 * libgnat/a-colire.ads, libgnat/a-comlin.adb: Likewise.
5861 * libgnat/a-comlin.ads, libgnat/a-comutr.adb: Likewise.
5862 * libgnat/a-comutr.ads, libgnat/a-conhel.adb: Likewise.
5863 * libgnat/a-conhel.ads, libgnat/a-convec.adb: Likewise.
5864 * libgnat/a-convec.ads, libgnat/a-coorma.adb: Likewise.
5865 * libgnat/a-coorma.ads, libgnat/a-coormu.adb: Likewise.
5866 * libgnat/a-coormu.ads, libgnat/a-coorse.adb: Likewise.
5867 * libgnat/a-coorse.ads, libgnat/a-coprnu.adb: Likewise.
5868 * libgnat/a-coprnu.ads, libgnat/a-costso.adb: Likewise.
5869 * libgnat/a-costso.ads, libgnat/a-crbltr.ads: Likewise.
5870 * libgnat/a-crbtgk.adb, libgnat/a-crbtgk.ads: Likewise.
5871 * libgnat/a-crbtgo.adb, libgnat/a-crbtgo.ads: Likewise.
5872 * libgnat/a-crdlli.adb, libgnat/a-crdlli.ads: Likewise.
5873 * libgnat/a-csquin.ads, libgnat/a-cuprqu.adb: Likewise.
5874 * libgnat/a-cuprqu.ads, libgnat/a-cusyqu.adb: Likewise.
5875 * libgnat/a-cusyqu.ads, libgnat/a-cwila1.ads: Likewise.
5876 * libgnat/a-cwila9.ads, libgnat/a-decima.adb: Likewise.
5877 * libgnat/a-decima.ads, libgnat/a-decima__128.ads: Likewise.
5878 * libgnat/a-dhfina.adb, libgnat/a-dhfina.ads: Likewise.
5879 * libgnat/a-diocst.adb, libgnat/a-diocst.ads: Likewise.
5880 * libgnat/a-direct.adb, libgnat/a-direct.ads: Likewise.
5881 * libgnat/a-direio.adb, libgnat/a-direio.ads: Likewise.
5882 * libgnat/a-dirval.adb, libgnat/a-dirval.ads: Likewise.
5883 * libgnat/a-dirval__mingw.adb, libgnat/a-einuoc.adb: Likewise.
5884 * libgnat/a-einuoc.ads, libgnat/a-elchha.adb: Likewise.
5885 * libgnat/a-elchha.ads, libgnat/a-envvar.adb: Likewise.
5886 * libgnat/a-excach.adb, libgnat/a-except.adb: Likewise.
5887 * libgnat/a-except.ads, libgnat/a-exctra.adb: Likewise.
5888 * libgnat/a-exctra.ads, libgnat/a-exexda.adb: Likewise.
5889 * libgnat/a-exexpr.adb, libgnat/a-exextr.adb: Likewise.
5890 * libgnat/a-exstat.adb, libgnat/a-finali.adb: Likewise.
5891 * libgnat/a-finali.ads, libgnat/a-locale.adb: Likewise.
5892 * libgnat/a-locale.ads, libgnat/a-nagefl.ads: Likewise.
5893 * libgnat/a-naliop.ads, libgnat/a-naliop__nolibm.ads: Likewise.
5894 * libgnat/a-nallfl.ads, libgnat/a-nallfl__wraplf.ads: Likewise.
5895 * libgnat/a-nalofl.ads, libgnat/a-nalofl__simd.ads: Likewise.
5896 * libgnat/a-nashfl.ads, libgnat/a-nashfl__wraplf.ads: Likewise.
5897 * libgnat/a-nbnbig.adb, libgnat/a-nbnbin.adb: Likewise.
5898 * libgnat/a-nbnbin__gmp.adb, libgnat/a-nbnbre.adb: Likewise.
5899 * libgnat/a-ngcefu.adb, libgnat/a-ngcoar.adb: Likewise.
5900 * libgnat/a-ngcoty.adb, libgnat/a-ngcoty.ads: Likewise.
5901 * libgnat/a-ngelfu.adb, libgnat/a-ngelfu.ads: Likewise.
5902 * libgnat/a-ngrear.adb, libgnat/a-ngrear.ads: Likewise.
5903 * libgnat/a-nuauco.ads, libgnat/a-nuauco__x86.ads: Likewise.
5904 * libgnat/a-nuaufl.ads, libgnat/a-nuaufl__simd.ads: Likewise.
5905 * libgnat/a-nuaufl__wraplf.ads, libgnat/a-nudira.adb: Likewise.
5906 * libgnat/a-nudira.ads, libgnat/a-nuflra.adb: Likewise.
5907 * libgnat/a-nuflra.ads, libgnat/a-numaux.ads: Likewise.
5908 * libgnat/a-rbtgbk.adb, libgnat/a-rbtgbk.ads: Likewise.
5909 * libgnat/a-rbtgbo.adb, libgnat/a-rbtgbo.ads: Likewise.
5910 * libgnat/a-rbtgso.adb, libgnat/a-rbtgso.ads: Likewise.
5911 * libgnat/a-sbecin.adb, libgnat/a-sbecin.ads: Likewise.
5912 * libgnat/a-sbhcin.adb, libgnat/a-sbhcin.ads: Likewise.
5913 * libgnat/a-sblcin.adb, libgnat/a-sblcin.ads: Likewise.
5914 * libgnat/a-secain.adb, libgnat/a-secain.ads: Likewise.
5915 * libgnat/a-sequio.adb, libgnat/a-sequio.ads: Likewise.
5916 * libgnat/a-sfecin.ads, libgnat/a-sfhcin.ads: Likewise.
5917 * libgnat/a-sflcin.ads, libgnat/a-shcain.adb: Likewise.
5918 * libgnat/a-shcain.ads, libgnat/a-siocst.adb: Likewise.
5919 * libgnat/a-siocst.ads, libgnat/a-slcain.adb: Likewise.
5920 * libgnat/a-slcain.ads, libgnat/a-ssicst.adb: Likewise.
5921 * libgnat/a-ssicst.ads, libgnat/a-stboha.adb: Likewise.
5922 * libgnat/a-stbubo.adb, libgnat/a-stbubo.ads: Likewise.
5923 * libgnat/a-stbufi.adb, libgnat/a-stbufi.ads: Likewise.
5924 * libgnat/a-stbufo.adb, libgnat/a-stbufo.ads: Likewise.
5925 * libgnat/a-stbuun.adb, libgnat/a-stbuut.adb: Likewise.
5926 * libgnat/a-stbuut.ads, libgnat/a-stmaco.ads: Likewise.
5927 * libgnat/a-storio.adb, libgnat/a-strbou.adb: Likewise.
5928 * libgnat/a-strbou.ads, libgnat/a-stream.adb: Likewise.
5929 * libgnat/a-stream.ads, libgnat/a-strfix.adb: Likewise.
5930 * libgnat/a-strhas.adb, libgnat/a-strmap.adb: Likewise.
5931 * libgnat/a-strmap.ads, libgnat/a-strsea.adb: Likewise.
5932 * libgnat/a-strsea.ads, libgnat/a-strsto.ads: Likewise.
5933 * libgnat/a-strsup.adb, libgnat/a-strsup.ads: Likewise.
5934 * libgnat/a-strunb.adb, libgnat/a-strunb.ads: Likewise.
5935 * libgnat/a-strunb__shared.adb, libgnat/a-strunb__shared.ads: Likewise.
5936 * libgnat/a-ststbo.adb, libgnat/a-ststbo.ads: Likewise.
5937 * libgnat/a-ststio.adb, libgnat/a-ststio.ads: Likewise.
5938 * libgnat/a-ststun.adb, libgnat/a-ststun.ads: Likewise.
5939 * libgnat/a-sttebu.adb, libgnat/a-stunau.adb: Likewise.
5940 * libgnat/a-stunau.ads, libgnat/a-stunau__shared.adb: Likewise.
5941 * libgnat/a-stunha.adb, libgnat/a-stuten.adb: Likewise.
5942 * libgnat/a-stwibo.adb, libgnat/a-stwibo.ads: Likewise.
5943 * libgnat/a-stwifi.adb, libgnat/a-stwiha.adb: Likewise.
5944 * libgnat/a-stwima.adb, libgnat/a-stwima.ads: Likewise.
5945 * libgnat/a-stwise.adb, libgnat/a-stwise.ads: Likewise.
5946 * libgnat/a-stwisu.adb, libgnat/a-stwisu.ads: Likewise.
5947 * libgnat/a-stwiun.adb, libgnat/a-stwiun.ads: Likewise.
5948 * libgnat/a-stwiun__shared.adb, libgnat/a-stwiun__shared.ads: Likewise.
5949 * libgnat/a-stzbou.adb, libgnat/a-stzbou.ads: Likewise.
5950 * libgnat/a-stzfix.adb, libgnat/a-stzhas.adb: Likewise.
5951 * libgnat/a-stzmap.adb, libgnat/a-stzmap.ads: Likewise.
5952 * libgnat/a-stzsea.adb, libgnat/a-stzsea.ads: Likewise.
5953 * libgnat/a-stzsup.adb, libgnat/a-stzsup.ads: Likewise.
5954 * libgnat/a-stzunb.adb, libgnat/a-stzunb.ads: Likewise.
5955 * libgnat/a-stzunb__shared.adb, libgnat/a-stzunb__shared.ads: Likewise.
5956 * libgnat/a-suecin.adb, libgnat/a-suecin.ads: Likewise.
5957 * libgnat/a-suenco.adb, libgnat/a-suenst.adb: Likewise.
5958 * libgnat/a-suewst.adb, libgnat/a-suezst.adb: Likewise.
5959 * libgnat/a-suhcin.adb, libgnat/a-suhcin.ads: Likewise.
5960 * libgnat/a-sulcin.adb, libgnat/a-sulcin.ads: Likewise.
5961 * libgnat/a-suteio.adb, libgnat/a-suteio.ads: Likewise.
5962 * libgnat/a-suteio__shared.adb, libgnat/a-swbwha.adb: Likewise.
5963 * libgnat/a-swmwco.ads, libgnat/a-swunau.adb: Likewise.
5964 * libgnat/a-swunau.ads, libgnat/a-swunau__shared.adb: Likewise.
5965 * libgnat/a-swuwha.adb, libgnat/a-swuwti.adb: Likewise.
5966 * libgnat/a-swuwti.ads, libgnat/a-swuwti__shared.adb: Likewise.
5967 * libgnat/a-szbzha.adb, libgnat/a-szmzco.ads: Likewise.
5968 * libgnat/a-szunau.adb, libgnat/a-szunau.ads: Likewise.
5969 * libgnat/a-szunau__shared.adb, libgnat/a-szuzha.adb: Likewise.
5970 * libgnat/a-szuzti.adb, libgnat/a-szuzti.ads: Likewise.
5971 * libgnat/a-szuzti__shared.adb, libgnat/a-tags.adb: Likewise.
5972 * libgnat/a-tags.ads, libgnat/a-teioed.adb, libgnat/a-teioed.ads: Likewise.
5973 * libgnat/a-textio.adb, libgnat/a-textio.ads: Likewise.
5974 * libgnat/a-tiboio.adb, libgnat/a-ticoau.adb: Likewise.
5975 * libgnat/a-ticoau.ads, libgnat/a-ticoio.adb: Likewise.
5976 * libgnat/a-ticoio.ads, libgnat/a-tideau.adb: Likewise.
5977 * libgnat/a-tideau.ads, libgnat/a-tideio.adb: Likewise.
5978 * libgnat/a-tideio.ads, libgnat/a-tideio__128.adb: Likewise.
5979 * libgnat/a-tienau.adb, libgnat/a-tienau.ads: Likewise.
5980 * libgnat/a-tienio.adb, libgnat/a-tifiau.adb: Likewise.
5981 * libgnat/a-tifiau.ads, libgnat/a-tifiio.adb: Likewise.
5982 * libgnat/a-tifiio__128.adb, libgnat/a-tiflau.adb: Likewise.
5983 * libgnat/a-tiflau.ads, libgnat/a-tiflio.adb: Likewise.
5984 * libgnat/a-tiflio.ads, libgnat/a-tigeau.adb: Likewise.
5985 * libgnat/a-tigeau.ads, libgnat/a-tigeli.adb: Likewise.
5986 * libgnat/a-tiinau.adb, libgnat/a-tiinau.ads: Likewise.
5987 * libgnat/a-tiinio.adb, libgnat/a-tiinio.ads: Likewise.
5988 * libgnat/a-tiinio__128.adb, libgnat/a-timoio.adb: Likewise.
5989 * libgnat/a-timoio.ads, libgnat/a-timoio__128.adb: Likewise.
5990 * libgnat/a-tiocst.adb, libgnat/a-tiocst.ads: Likewise.
5991 * libgnat/a-tirsfi.adb, libgnat/a-tirsfi.ads: Likewise.
5992 * libgnat/a-titest.adb, libgnat/a-undesu.adb: Likewise.
5993 * libgnat/a-wichha.adb, libgnat/a-wichun.adb: Likewise.
5994 * libgnat/a-wichun.ads, libgnat/a-witeio.adb: Likewise.
5995 * libgnat/a-witeio.ads, libgnat/a-wrstfi.adb: Likewise.
5996 * libgnat/a-wrstfi.ads, libgnat/a-wtcoau.adb: Likewise.
5997 * libgnat/a-wtcoau.ads, libgnat/a-wtcoio.adb: Likewise.
5998 * libgnat/a-wtcstr.adb, libgnat/a-wtcstr.ads: Likewise.
5999 * libgnat/a-wtdeau.adb, libgnat/a-wtdeau.ads: Likewise.
6000 * libgnat/a-wtdeio.adb, libgnat/a-wtdeio__128.adb: Likewise.
6001 * libgnat/a-wtedit.adb, libgnat/a-wtedit.ads: Likewise.
6002 * libgnat/a-wtenau.adb, libgnat/a-wtenau.ads: Likewise.
6003 * libgnat/a-wtenio.adb, libgnat/a-wtfiau.adb: Likewise.
6004 * libgnat/a-wtfiau.ads, libgnat/a-wtfiio.adb: Likewise.
6005 * libgnat/a-wtfiio__128.adb, libgnat/a-wtflau.adb: Likewise.
6006 * libgnat/a-wtflau.ads, libgnat/a-wtflio.adb: Likewise.
6007 * libgnat/a-wtgeau.adb, libgnat/a-wtgeau.ads: Likewise.
6008 * libgnat/a-wtinau.adb, libgnat/a-wtinau.ads: Likewise.
6009 * libgnat/a-wtinio.adb, libgnat/a-wtinio__128.adb: Likewise.
6010 * libgnat/a-wtmoio.adb, libgnat/a-wtmoio.ads: Likewise.
6011 * libgnat/a-wtmoio__128.adb, libgnat/a-wttest.adb: Likewise.
6012 * libgnat/a-wwboio.adb, libgnat/a-zchhan.adb: Likewise.
6013 * libgnat/a-zchuni.adb, libgnat/a-zchuni.ads: Likewise.
6014 * libgnat/a-zrstfi.adb, libgnat/a-zrstfi.ads: Likewise.
6015 * libgnat/a-ztcoau.adb, libgnat/a-ztcoio.adb: Likewise.
6016 * libgnat/a-ztcstr.adb, libgnat/a-ztcstr.ads: Likewise.
6017 * libgnat/a-ztdeau.adb, libgnat/a-ztdeau.ads: Likewise.
6018 * libgnat/a-ztdeio.adb, libgnat/a-ztdeio__128.adb: Likewise.
6019 * libgnat/a-ztedit.adb, libgnat/a-ztedit.ads: Likewise.
6020 * libgnat/a-ztenau.adb, libgnat/a-ztenau.ads: Likewise.
6021 * libgnat/a-ztenio.adb, libgnat/a-ztexio.adb: Likewise.
6022 * libgnat/a-ztexio.ads, libgnat/a-ztfiau.adb: Likewise.
6023 * libgnat/a-ztfiau.ads, libgnat/a-ztfiio.adb: Likewise.
6024 * libgnat/a-ztfiio__128.adb, libgnat/a-ztflau.adb: Likewise.
6025 * libgnat/a-ztflau.ads, libgnat/a-ztflio.adb: Likewise.
6026 * libgnat/a-ztgeau.adb, libgnat/a-ztgeau.ads: Likewise.
6027 * libgnat/a-ztinau.adb, libgnat/a-ztinau.ads: Likewise.
6028 * libgnat/a-ztinio.adb, libgnat/a-ztinio__128.adb: Likewise.
6029 * libgnat/a-ztmoio.adb, libgnat/a-ztmoio__128.adb: Likewise.
6030 * libgnat/a-zttest.adb, libgnat/a-zzboio.adb: Likewise.
6031 * libgnat/g-allein.ads, libgnat/g-alleve.adb: Likewise.
6032 * libgnat/g-alleve.ads, libgnat/g-alleve__hard.adb: Likewise.
6033 * libgnat/g-alleve__hard.ads, libgnat/g-altcon.adb: Likewise.
6034 * libgnat/g-altcon.ads, libgnat/g-altive.ads: Likewise.
6035 * libgnat/g-alveop.adb, libgnat/g-alveop.ads: Likewise.
6036 * libgnat/g-alvety.ads, libgnat/g-alvevi.ads: Likewise.
6037 * libgnat/g-arrspl.adb, libgnat/g-arrspl.ads, libgnat/g-awk.adb: Likewise.
6038 * libgnat/g-awk.ads, libgnat/g-binenv.adb, libgnat/g-binenv.ads: Likewise.
6039 * libgnat/g-binsea.adb, libgnat/g-binsea.ads: Likewise.
6040 * libgnat/g-brapre.ads, libgnat/g-bubsor.adb: Likewise.
6041 * libgnat/g-bubsor.ads, libgnat/g-busora.adb: Likewise.
6042 * libgnat/g-busora.ads, libgnat/g-busorg.adb: Likewise.
6043 * libgnat/g-busorg.ads, libgnat/g-byorma.adb: Likewise.
6044 * libgnat/g-byorma.ads, libgnat/g-bytswa.adb: Likewise.
6045 * libgnat/g-bytswa.ads, libgnat/g-calend.adb: Likewise.
6046 * libgnat/g-calend.ads, libgnat/g-casuti.adb: Likewise.
6047 * libgnat/g-casuti.ads, libgnat/g-catiio.adb: Likewise.
6048 * libgnat/g-catiio.ads, libgnat/g-cgi.adb, libgnat/g-cgi.ads: Likewise.
6049 * libgnat/g-cgicoo.adb, libgnat/g-cgicoo.ads: Likewise.
6050 * libgnat/g-cgideb.adb, libgnat/g-cgideb.ads: Likewise.
6051 * libgnat/g-comlin.adb, libgnat/g-comlin.ads: Likewise.
6052 * libgnat/g-comver.adb, libgnat/g-comver.ads: Likewise.
6053 * libgnat/g-cppexc.adb, libgnat/g-cppexc.ads, libgnat/g-crc32.adb: Likewise.
6054 * libgnat/g-crc32.ads, libgnat/g-ctrl_c.adb, libgnat/g-ctrl_c.ads: Likewise.
6055 * libgnat/g-curexc.ads, libgnat/g-debpoo.adb: Likewise.
6056 * libgnat/g-debpoo.ads, libgnat/g-debuti.adb: Likewise.
6057 * libgnat/g-debuti.ads, libgnat/g-decstr.adb: Likewise.
6058 * libgnat/g-decstr.ads, libgnat/g-deutst.ads: Likewise.
6059 * libgnat/g-diopit.adb, libgnat/g-diopit.ads: Likewise.
6060 * libgnat/g-dirope.adb, libgnat/g-dirope.ads: Likewise.
6061 * libgnat/g-dynhta.adb, libgnat/g-dynhta.ads: Likewise.
6062 * libgnat/g-dyntab.adb, libgnat/g-dyntab.ads: Likewise.
6063 * libgnat/g-eacodu.adb, libgnat/g-encstr.adb: Likewise.
6064 * libgnat/g-encstr.ads, libgnat/g-enutst.ads: Likewise.
6065 * libgnat/g-excact.adb, libgnat/g-excact.ads: Likewise.
6066 * libgnat/g-except.ads, libgnat/g-exctra.adb: Likewise.
6067 * libgnat/g-exctra.ads, libgnat/g-expect.adb: Likewise.
6068 * libgnat/g-expect.ads, libgnat/g-exptty.adb: Likewise.
6069 * libgnat/g-exptty.ads, libgnat/g-flocon.ads: Likewise.
6070 * libgnat/g-forstr.adb, libgnat/g-forstr.ads: Likewise.
6071 * libgnat/g-gfmafu.ads, libgnat/g-graphs.adb: Likewise.
6072 * libgnat/g-graphs.ads, libgnat/g-heasor.adb: Likewise.
6073 * libgnat/g-heasor.ads, libgnat/g-hesora.adb: Likewise.
6074 * libgnat/g-hesora.ads, libgnat/g-hesorg.adb: Likewise.
6075 * libgnat/g-hesorg.ads, libgnat/g-htable.adb: Likewise.
6076 * libgnat/g-htable.ads, libgnat/g-io.adb, libgnat/g-io.ads: Likewise.
6077 * libgnat/g-io_aux.adb, libgnat/g-io_aux.ads, libgnat/g-lists.adb: Likewise.
6078 * libgnat/g-lists.ads, libgnat/g-locfil.adb, libgnat/g-locfil.ads: Likewise.
6079 * libgnat/g-mbdira.adb, libgnat/g-mbdira.ads: Likewise.
6080 * libgnat/g-mbflra.adb, libgnat/g-mbflra.ads, libgnat/g-md5.adb: Likewise.
6081 * libgnat/g-md5.ads, libgnat/g-memdum.adb, libgnat/g-memdum.ads: Likewise.
6082 * libgnat/g-moreex.adb, libgnat/g-moreex.ads: Likewise.
6083 * libgnat/g-os_lib.adb, libgnat/g-os_lib.ads: Likewise.
6084 * libgnat/g-pehage.adb, libgnat/g-pehage.ads: Likewise.
6085 * libgnat/g-rannum.adb, libgnat/g-rannum.ads: Likewise.
6086 * libgnat/g-regexp.adb, libgnat/g-regexp.ads: Likewise.
6087 * libgnat/g-regist.adb, libgnat/g-regist.ads: Likewise.
6088 * libgnat/g-regpat.adb, libgnat/g-regpat.ads: Likewise.
6089 * libgnat/g-rewdat.adb, libgnat/g-rewdat.ads: Likewise.
6090 * libgnat/g-sechas.adb, libgnat/g-sechas.ads: Likewise.
6091 * libgnat/g-sehamd.adb, libgnat/g-sehamd.ads: Likewise.
6092 * libgnat/g-sehash.adb, libgnat/g-sehash.ads: Likewise.
6093 * libgnat/g-sercom.adb, libgnat/g-sercom.ads: Likewise.
6094 * libgnat/g-sercom__linux.adb, libgnat/g-sercom__mingw.adb: Likewise.
6095 * libgnat/g-sestin.ads, libgnat/g-sets.adb, libgnat/g-sets.ads: Likewise.
6096 * libgnat/g-sha1.adb, libgnat/g-sha1.ads, libgnat/g-sha224.ads: Likewise.
6097 * libgnat/g-sha256.ads, libgnat/g-sha384.ads: Likewise.
6098 * libgnat/g-sha512.ads, libgnat/g-shsh32.adb: Likewise.
6099 * libgnat/g-shsh32.ads, libgnat/g-shsh64.adb: Likewise.
6100 * libgnat/g-shsh64.ads, libgnat/g-shshco.adb: Likewise.
6101 * libgnat/g-shshco.ads, libgnat/g-soccon.ads: Likewise.
6102 * libgnat/g-socket.adb, libgnat/g-socket.ads: Likewise.
6103 * libgnat/g-socket__dummy.adb, libgnat/g-socket__dummy.ads: Likewise.
6104 * libgnat/g-socpol.adb, libgnat/g-socpol.ads: Likewise.
6105 * libgnat/g-socpol__dummy.adb, libgnat/g-socpol__dummy.ads: Likewise.
6106 * libgnat/g-socthi.adb, libgnat/g-socthi.ads: Likewise.
6107 * libgnat/g-socthi__dummy.adb, libgnat/g-socthi__dummy.ads: Likewise.
6108 * libgnat/g-socthi__mingw.adb, libgnat/g-socthi__mingw.ads: Likewise.
6109 * libgnat/g-socthi__vxworks.adb, libgnat/g-socthi__vxworks.ads: Likewise.
6110 * libgnat/g-soliop.ads, libgnat/g-soliop__lynxos.ads: Likewise.
6111 * libgnat/g-soliop__mingw.ads, libgnat/g-soliop__qnx.ads: Likewise.
6112 * libgnat/g-soliop__solaris.ads, libgnat/g-sopowa.adb: Likewise.
6113 * libgnat/g-sopowa__mingw.adb, libgnat/g-sopowa__posix.adb: Likewise.
6114 * libgnat/g-sothco.adb, libgnat/g-sothco.ads: Likewise.
6115 * libgnat/g-sothco__dummy.adb, libgnat/g-sothco__dummy.ads: Likewise.
6116 * libgnat/g-souinf.ads, libgnat/g-spchge.adb: Likewise.
6117 * libgnat/g-spchge.ads, libgnat/g-speche.adb: Likewise.
6118 * libgnat/g-speche.ads, libgnat/g-spipat.adb: Likewise.
6119 * libgnat/g-spipat.ads, libgnat/g-spitbo.adb: Likewise.
6120 * libgnat/g-spitbo.ads, libgnat/g-spogwa.adb: Likewise.
6121 * libgnat/g-spogwa.ads, libgnat/g-sptabo.ads: Likewise.
6122 * libgnat/g-sptain.ads, libgnat/g-sptavs.ads, libgnat/g-sse.ads: Likewise.
6123 * libgnat/g-ssvety.ads, libgnat/g-sthcso.adb: Likewise.
6124 * libgnat/g-stheme.adb, libgnat/g-strhas.ads: Likewise.
6125 * libgnat/g-string.adb, libgnat/g-string.ads: Likewise.
6126 * libgnat/g-strspl.ads, libgnat/g-stseme.adb: Likewise.
6127 * libgnat/g-stsifd__sockets.adb, libgnat/g-table.adb: Likewise.
6128 * libgnat/g-table.ads, libgnat/g-tasloc.adb, libgnat/g-tasloc.ads: Likewise.
6129 * libgnat/g-timsta.adb, libgnat/g-timsta.ads: Likewise.
6130 * libgnat/g-traceb.adb, libgnat/g-traceb.ads: Likewise.
6131 * libgnat/g-trasym.adb, libgnat/g-trasym.ads, libgnat/g-tty.adb: Likewise.
6132 * libgnat/g-tty.ads, libgnat/g-u3spch.adb, libgnat/g-u3spch.ads: Likewise.
6133 * libgnat/g-utf_32.adb, libgnat/g-utf_32.ads: Likewise.
6134 * libgnat/g-wispch.adb, libgnat/g-wispch.ads: Likewise.
6135 * libgnat/g-wistsp.ads, libgnat/g-zspche.adb: Likewise.
6136 * libgnat/g-zspche.ads, libgnat/g-zstspl.ads, libgnat/gnat.ads: Likewise.
6137 * libgnat/i-c.adb, libgnat/i-cexten.ads: Likewise.
6138 * libgnat/i-cexten__128.ads, libgnat/i-cobol.adb: Likewise.
6139 * libgnat/i-cobol.ads, libgnat/i-cpoint.adb, libgnat/i-cpoint.ads: Likewise.
6140 * libgnat/i-cstrea.adb, libgnat/i-cstrea.ads: Likewise.
6141 * libgnat/i-cstrin.adb, libgnat/i-cstrin.ads: Likewise.
6142 * libgnat/i-fortra.adb, libgnat/i-pacdec.adb: Likewise.
6143 * libgnat/i-pacdec.ads, libgnat/i-vxwoio.adb: Likewise.
6144 * libgnat/i-vxwoio.ads, libgnat/i-vxwork.ads: Likewise.
6145 * libgnat/i-vxwork__x86.ads, libgnat/interfac.ads: Likewise.
6146 * libgnat/interfac__2020.ads, libgnat/memtrack.adb: Likewise.
6147 * libgnat/s-addima.adb, libgnat/s-addima.ads: Likewise.
6148 * libgnat/s-addope.adb, libgnat/s-addope.ads: Likewise.
6149 * libgnat/s-aoinar.adb, libgnat/s-aoinar.ads: Likewise.
6150 * libgnat/s-aomoar.adb, libgnat/s-aomoar.ads: Likewise.
6151 * libgnat/s-aotase.adb, libgnat/s-aotase.ads: Likewise.
6152 * libgnat/s-aridou.adb, libgnat/s-aridou.ads: Likewise.
6153 * libgnat/s-arit128.adb, libgnat/s-arit128.ads: Likewise.
6154 * libgnat/s-arit32.adb, libgnat/s-arit32.ads: Likewise.
6155 * libgnat/s-arit64.adb, libgnat/s-arit64.ads: Likewise.
6156 * libgnat/s-assert.adb, libgnat/s-assert.ads: Likewise.
6157 * libgnat/s-atacco.adb, libgnat/s-atacco.ads: Likewise.
6158 * libgnat/s-atocou.adb, libgnat/s-atocou.ads: Likewise.
6159 * libgnat/s-atocou__builtin.adb, libgnat/s-atoope.ads: Likewise.
6160 * libgnat/s-atopex.adb, libgnat/s-atopex.ads: Likewise.
6161 * libgnat/s-atopri.adb, libgnat/s-atopri.ads: Likewise.
6162 * libgnat/s-auxdec.adb, libgnat/s-auxdec.ads: Likewise.
6163 * libgnat/s-bignum.adb, libgnat/s-bignum.ads: Likewise.
6164 * libgnat/s-bitfie.ads, libgnat/s-bitops.adb: Likewise.
6165 * libgnat/s-bitops.ads, libgnat/s-bituti.adb: Likewise.
6166 * libgnat/s-bituti.ads, libgnat/s-boarop.ads: Likewise.
6167 * libgnat/s-boustr.adb, libgnat/s-boustr.ads: Likewise.
6168 * libgnat/s-bytswa.ads, libgnat/s-carsi8.adb: Likewise.
6169 * libgnat/s-carsi8.ads, libgnat/s-carun8.adb: Likewise.
6170 * libgnat/s-carun8.ads, libgnat/s-casi128.adb: Likewise.
6171 * libgnat/s-casi128.ads, libgnat/s-casi16.adb: Likewise.
6172 * libgnat/s-casi16.ads, libgnat/s-casi32.adb: Likewise.
6173 * libgnat/s-casi32.ads, libgnat/s-casi64.adb: Likewise.
6174 * libgnat/s-casi64.ads, libgnat/s-casuti.adb: Likewise.
6175 * libgnat/s-casuti.ads, libgnat/s-caun128.adb: Likewise.
6176 * libgnat/s-caun128.ads, libgnat/s-caun16.adb: Likewise.
6177 * libgnat/s-caun16.ads, libgnat/s-caun32.adb: Likewise.
6178 * libgnat/s-caun32.ads, libgnat/s-caun64.adb: Likewise.
6179 * libgnat/s-caun64.ads, libgnat/s-chepoo.ads: Likewise.
6180 * libgnat/s-commun.adb, libgnat/s-commun.ads: Likewise.
6181 * libgnat/s-conca2.adb, libgnat/s-conca2.ads: Likewise.
6182 * libgnat/s-conca3.adb, libgnat/s-conca3.ads: Likewise.
6183 * libgnat/s-conca4.adb, libgnat/s-conca4.ads: Likewise.
6184 * libgnat/s-conca5.adb, libgnat/s-conca5.ads: Likewise.
6185 * libgnat/s-conca6.adb, libgnat/s-conca6.ads: Likewise.
6186 * libgnat/s-conca7.adb, libgnat/s-conca7.ads: Likewise.
6187 * libgnat/s-conca8.adb, libgnat/s-conca8.ads: Likewise.
6188 * libgnat/s-conca9.adb, libgnat/s-conca9.ads, libgnat/s-crc32.adb: Likewise.
6189 * libgnat/s-crc32.ads, libgnat/s-crtl.ads, libgnat/s-dfmkio.ads: Likewise.
6190 * libgnat/s-dfmopr.ads, libgnat/s-dgmgop.ads: Likewise.
6191 * libgnat/s-diflio.adb, libgnat/s-diflio.ads: Likewise.
6192 * libgnat/s-diflmk.ads, libgnat/s-digemk.ads: Likewise.
6193 * libgnat/s-diinio.adb, libgnat/s-diinio.ads: Likewise.
6194 * libgnat/s-dilomk.ads, libgnat/s-dim.ads, libgnat/s-dimkio.ads: Likewise.
6195 * libgnat/s-dimmks.ads, libgnat/s-direio.adb: Likewise.
6196 * libgnat/s-direio.ads, libgnat/s-dlmkio.ads: Likewise.
6197 * libgnat/s-dlmopr.ads, libgnat/s-dmotpr.ads: Likewise.
6198 * libgnat/s-dorepr.adb, libgnat/s-dorepr__fma.adb: Likewise.
6199 * libgnat/s-dourea.adb, libgnat/s-dourea.ads: Likewise.
6200 * libgnat/s-dsaser.ads, libgnat/s-dwalin.adb: Likewise.
6201 * libgnat/s-dwalin.ads, libgnat/s-elaall.adb: Likewise.
6202 * libgnat/s-elaall.ads, libgnat/s-excdeb.adb: Likewise.
6203 * libgnat/s-excdeb.ads, libgnat/s-except.adb: Likewise.
6204 * libgnat/s-except.ads, libgnat/s-excmac__arm.adb: Likewise.
6205 * libgnat/s-excmac__arm.ads, libgnat/s-excmac__gcc.adb: Likewise.
6206 * libgnat/s-excmac__gcc.ads, libgnat/s-exctab.adb: Likewise.
6207 * libgnat/s-exctab.ads, libgnat/s-exctra.adb: Likewise.
6208 * libgnat/s-exctra.ads, libgnat/s-exnflt.ads: Likewise.
6209 * libgnat/s-exnint.adb, libgnat/s-exnint.ads: Likewise.
6210 * libgnat/s-exnlfl.ads, libgnat/s-exnllf.adb: Likewise.
6211 * libgnat/s-exnllf.ads, libgnat/s-exnlli.adb: Likewise.
6212 * libgnat/s-exnlli.ads, libgnat/s-exnllli.ads: Likewise.
6213 * libgnat/s-expint.adb, libgnat/s-expint.ads: Likewise.
6214 * libgnat/s-explli.adb, libgnat/s-explli.ads: Likewise.
6215 * libgnat/s-expllli.ads, libgnat/s-explllu.ads: Likewise.
6216 * libgnat/s-expllu.adb, libgnat/s-expllu.ads: Likewise.
6217 * libgnat/s-expmod.adb, libgnat/s-expmod.ads: Likewise.
6218 * libgnat/s-exponn.adb, libgnat/s-exponn.ads: Likewise.
6219 * libgnat/s-exponr.adb, libgnat/s-exponr.ads: Likewise.
6220 * libgnat/s-expont.adb, libgnat/s-expont.ads: Likewise.
6221 * libgnat/s-exponu.adb, libgnat/s-exponu.ads: Likewise.
6222 * libgnat/s-expuns.adb, libgnat/s-expuns.ads: Likewise.
6223 * libgnat/s-fatflt.ads, libgnat/s-fatgen.adb: Likewise.
6224 * libgnat/s-fatgen.ads, libgnat/s-fatlfl.ads: Likewise.
6225 * libgnat/s-fatllf.ads, libgnat/s-ficobl.ads: Likewise.
6226 * libgnat/s-filatt.ads, libgnat/s-fileio.adb: Likewise.
6227 * libgnat/s-fileio.ads, libgnat/s-finmas.adb: Likewise.
6228 * libgnat/s-finmas.ads, libgnat/s-finroo.adb: Likewise.
6229 * libgnat/s-finroo.ads, libgnat/s-flocon.adb: Likewise.
6230 * libgnat/s-flocon.ads, libgnat/s-flocon__none.adb: Likewise.
6231 * libgnat/s-fode128.ads, libgnat/s-fode32.ads: Likewise.
6232 * libgnat/s-fode64.ads, libgnat/s-fofi128.ads: Likewise.
6233 * libgnat/s-fofi32.ads, libgnat/s-fofi64.ads: Likewise.
6234 * libgnat/s-fore_d.adb, libgnat/s-fore_d.ads: Likewise.
6235 * libgnat/s-fore_f.adb, libgnat/s-fore_f.ads: Likewise.
6236 * libgnat/s-forrea.adb, libgnat/s-forrea.ads: Likewise.
6237 * libgnat/s-gearop.adb, libgnat/s-gearop.ads: Likewise.
6238 * libgnat/s-genbig.adb, libgnat/s-genbig.ads: Likewise.
6239 * libgnat/s-geveop.adb, libgnat/s-geveop.ads: Likewise.
6240 * libgnat/s-gloloc.adb, libgnat/s-gloloc.ads: Likewise.
6241 * libgnat/s-gloloc__mingw.adb, libgnat/s-htable.adb: Likewise.
6242 * libgnat/s-htable.ads, libgnat/s-imageb.adb: Likewise.
6243 * libgnat/s-imageb.ads, libgnat/s-imaged.adb: Likewise.
6244 * libgnat/s-imaged.ads, libgnat/s-imagef.adb: Likewise.
6245 * libgnat/s-imagef.ads, libgnat/s-imagei.adb: Likewise.
6246 * libgnat/s-imagei.ads, libgnat/s-imagen.adb: Likewise.
6247 * libgnat/s-imagen.ads, libgnat/s-imager.adb: Likewise.
6248 * libgnat/s-imager.ads, libgnat/s-imageu.adb: Likewise.
6249 * libgnat/s-imageu.ads, libgnat/s-imagew.adb: Likewise.
6250 * libgnat/s-imagew.ads, libgnat/s-imde128.ads: Likewise.
6251 * libgnat/s-imde32.ads, libgnat/s-imde64.ads: Likewise.
6252 * libgnat/s-imen16.ads, libgnat/s-imen32.ads: Likewise.
6253 * libgnat/s-imenu8.ads, libgnat/s-imfi128.ads: Likewise.
6254 * libgnat/s-imfi32.ads, libgnat/s-imfi64.ads: Likewise.
6255 * libgnat/s-imgbiu.adb, libgnat/s-imgbiu.ads: Likewise.
6256 * libgnat/s-imgboo.adb, libgnat/s-imgboo.ads: Likewise.
6257 * libgnat/s-imgcha.adb, libgnat/s-imgcha.ads: Likewise.
6258 * libgnat/s-imgflt.ads, libgnat/s-imgint.adb: Likewise.
6259 * libgnat/s-imgint.ads, libgnat/s-imglfl.ads: Likewise.
6260 * libgnat/s-imgllb.adb, libgnat/s-imgllb.ads: Likewise.
6261 * libgnat/s-imgllf.ads, libgnat/s-imglli.adb: Likewise.
6262 * libgnat/s-imglli.ads, libgnat/s-imglllb.ads: Likewise.
6263 * libgnat/s-imgllli.ads, libgnat/s-imglllu.ads: Likewise.
6264 * libgnat/s-imglllw.ads, libgnat/s-imgllu.adb: Likewise.
6265 * libgnat/s-imgllu.ads, libgnat/s-imgllw.adb: Likewise.
6266 * libgnat/s-imgllw.ads, libgnat/s-imgrea.adb: Likewise.
6267 * libgnat/s-imgrea.ads, libgnat/s-imguns.adb: Likewise.
6268 * libgnat/s-imguns.ads, libgnat/s-imguti.adb: Likewise.
6269 * libgnat/s-imguti.ads, libgnat/s-imgwch.adb: Likewise.
6270 * libgnat/s-imgwch.ads, libgnat/s-imgwiu.adb: Likewise.
6271 * libgnat/s-imgwiu.ads, libgnat/s-io.adb, libgnat/s-io.ads: Likewise.
6272 * libgnat/s-llflex.ads, libgnat/s-maccod.ads: Likewise.
6273 * libgnat/s-mantis.adb, libgnat/s-mantis.ads: Likewise.
6274 * libgnat/s-mastop.adb, libgnat/s-mastop.ads: Likewise.
6275 * libgnat/s-memcop.ads, libgnat/s-memory.adb: Likewise.
6276 * libgnat/s-memory.ads, libgnat/s-mmap.adb, libgnat/s-mmap.ads: Likewise.
6277 * libgnat/s-mmauni__long.ads, libgnat/s-mmosin__mingw.adb: Likewise.
6278 * libgnat/s-mmosin__mingw.ads, libgnat/s-mmosin__unix.adb: Likewise.
6279 * libgnat/s-mmosin__unix.ads, libgnat/s-multip.adb: Likewise.
6280 * libgnat/s-objrea.adb, libgnat/s-objrea.ads: Likewise.
6281 * libgnat/s-optide.adb, libgnat/s-os_lib.adb: Likewise.
6282 * libgnat/s-os_lib.ads, libgnat/s-osprim.ads: Likewise.
6283 * libgnat/s-osprim__darwin.adb, libgnat/s-osprim__lynxos.ads: Likewise.
6284 * libgnat/s-osprim__mingw.adb, libgnat/s-osprim__posix.adb: Likewise.
6285 * libgnat/s-osprim__posix2008.adb, libgnat/s-osprim__rtems.adb: Likewise.
6286 * libgnat/s-osprim__solaris.adb, libgnat/s-osprim__unix.adb: Likewise.
6287 * libgnat/s-osprim__x32.adb, libgnat/s-pack03.adb: Likewise.
6288 * libgnat/s-pack03.ads, libgnat/s-pack05.adb: Likewise.
6289 * libgnat/s-pack05.ads, libgnat/s-pack06.adb: Likewise.
6290 * libgnat/s-pack06.ads, libgnat/s-pack07.adb: Likewise.
6291 * libgnat/s-pack07.ads, libgnat/s-pack09.adb: Likewise.
6292 * libgnat/s-pack09.ads, libgnat/s-pack10.adb: Likewise.
6293 * libgnat/s-pack10.ads, libgnat/s-pack100.adb: Likewise.
6294 * libgnat/s-pack100.ads, libgnat/s-pack101.adb: Likewise.
6295 * libgnat/s-pack101.ads, libgnat/s-pack102.adb: Likewise.
6296 * libgnat/s-pack102.ads, libgnat/s-pack103.adb: Likewise.
6297 * libgnat/s-pack103.ads, libgnat/s-pack104.adb: Likewise.
6298 * libgnat/s-pack104.ads, libgnat/s-pack105.adb: Likewise.
6299 * libgnat/s-pack105.ads, libgnat/s-pack106.adb: Likewise.
6300 * libgnat/s-pack106.ads, libgnat/s-pack107.adb: Likewise.
6301 * libgnat/s-pack107.ads, libgnat/s-pack108.adb: Likewise.
6302 * libgnat/s-pack108.ads, libgnat/s-pack109.adb: Likewise.
6303 * libgnat/s-pack109.ads, libgnat/s-pack11.adb: Likewise.
6304 * libgnat/s-pack11.ads, libgnat/s-pack110.adb: Likewise.
6305 * libgnat/s-pack110.ads, libgnat/s-pack111.adb: Likewise.
6306 * libgnat/s-pack111.ads, libgnat/s-pack112.adb: Likewise.
6307 * libgnat/s-pack112.ads, libgnat/s-pack113.adb: Likewise.
6308 * libgnat/s-pack113.ads, libgnat/s-pack114.adb: Likewise.
6309 * libgnat/s-pack114.ads, libgnat/s-pack115.adb: Likewise.
6310 * libgnat/s-pack115.ads, libgnat/s-pack116.adb: Likewise.
6311 * libgnat/s-pack116.ads, libgnat/s-pack117.adb: Likewise.
6312 * libgnat/s-pack117.ads, libgnat/s-pack118.adb: Likewise.
6313 * libgnat/s-pack118.ads, libgnat/s-pack119.adb: Likewise.
6314 * libgnat/s-pack119.ads, libgnat/s-pack12.adb: Likewise.
6315 * libgnat/s-pack12.ads, libgnat/s-pack120.adb: Likewise.
6316 * libgnat/s-pack120.ads, libgnat/s-pack121.adb: Likewise.
6317 * libgnat/s-pack121.ads, libgnat/s-pack122.adb: Likewise.
6318 * libgnat/s-pack122.ads, libgnat/s-pack123.adb: Likewise.
6319 * libgnat/s-pack123.ads, libgnat/s-pack124.adb: Likewise.
6320 * libgnat/s-pack124.ads, libgnat/s-pack125.adb: Likewise.
6321 * libgnat/s-pack125.ads, libgnat/s-pack126.adb: Likewise.
6322 * libgnat/s-pack126.ads, libgnat/s-pack127.adb: Likewise.
6323 * libgnat/s-pack127.ads, libgnat/s-pack13.adb: Likewise.
6324 * libgnat/s-pack13.ads, libgnat/s-pack14.adb: Likewise.
6325 * libgnat/s-pack14.ads, libgnat/s-pack15.adb: Likewise.
6326 * libgnat/s-pack15.ads, libgnat/s-pack17.adb: Likewise.
6327 * libgnat/s-pack17.ads, libgnat/s-pack18.adb: Likewise.
6328 * libgnat/s-pack18.ads, libgnat/s-pack19.adb: Likewise.
6329 * libgnat/s-pack19.ads, libgnat/s-pack20.adb: Likewise.
6330 * libgnat/s-pack20.ads, libgnat/s-pack21.adb: Likewise.
6331 * libgnat/s-pack21.ads, libgnat/s-pack22.adb: Likewise.
6332 * libgnat/s-pack22.ads, libgnat/s-pack23.adb: Likewise.
6333 * libgnat/s-pack23.ads, libgnat/s-pack24.adb: Likewise.
6334 * libgnat/s-pack24.ads, libgnat/s-pack25.adb: Likewise.
6335 * libgnat/s-pack25.ads, libgnat/s-pack26.adb: Likewise.
6336 * libgnat/s-pack26.ads, libgnat/s-pack27.adb: Likewise.
6337 * libgnat/s-pack27.ads, libgnat/s-pack28.adb: Likewise.
6338 * libgnat/s-pack28.ads, libgnat/s-pack29.adb: Likewise.
6339 * libgnat/s-pack29.ads, libgnat/s-pack30.adb: Likewise.
6340 * libgnat/s-pack30.ads, libgnat/s-pack31.adb: Likewise.
6341 * libgnat/s-pack31.ads, libgnat/s-pack33.adb: Likewise.
6342 * libgnat/s-pack33.ads, libgnat/s-pack34.adb: Likewise.
6343 * libgnat/s-pack34.ads, libgnat/s-pack35.adb: Likewise.
6344 * libgnat/s-pack35.ads, libgnat/s-pack36.adb: Likewise.
6345 * libgnat/s-pack36.ads, libgnat/s-pack37.adb: Likewise.
6346 * libgnat/s-pack37.ads, libgnat/s-pack38.adb: Likewise.
6347 * libgnat/s-pack38.ads, libgnat/s-pack39.adb: Likewise.
6348 * libgnat/s-pack39.ads, libgnat/s-pack40.adb: Likewise.
6349 * libgnat/s-pack40.ads, libgnat/s-pack41.adb: Likewise.
6350 * libgnat/s-pack41.ads, libgnat/s-pack42.adb: Likewise.
6351 * libgnat/s-pack42.ads, libgnat/s-pack43.adb: Likewise.
6352 * libgnat/s-pack43.ads, libgnat/s-pack44.adb: Likewise.
6353 * libgnat/s-pack44.ads, libgnat/s-pack45.adb: Likewise.
6354 * libgnat/s-pack45.ads, libgnat/s-pack46.adb: Likewise.
6355 * libgnat/s-pack46.ads, libgnat/s-pack47.adb: Likewise.
6356 * libgnat/s-pack47.ads, libgnat/s-pack48.adb: Likewise.
6357 * libgnat/s-pack48.ads, libgnat/s-pack49.adb: Likewise.
6358 * libgnat/s-pack49.ads, libgnat/s-pack50.adb: Likewise.
6359 * libgnat/s-pack50.ads, libgnat/s-pack51.adb: Likewise.
6360 * libgnat/s-pack51.ads, libgnat/s-pack52.adb: Likewise.
6361 * libgnat/s-pack52.ads, libgnat/s-pack53.adb: Likewise.
6362 * libgnat/s-pack53.ads, libgnat/s-pack54.adb: Likewise.
6363 * libgnat/s-pack54.ads, libgnat/s-pack55.adb: Likewise.
6364 * libgnat/s-pack55.ads, libgnat/s-pack56.adb: Likewise.
6365 * libgnat/s-pack56.ads, libgnat/s-pack57.adb: Likewise.
6366 * libgnat/s-pack57.ads, libgnat/s-pack58.adb: Likewise.
6367 * libgnat/s-pack58.ads, libgnat/s-pack59.adb: Likewise.
6368 * libgnat/s-pack59.ads, libgnat/s-pack60.adb: Likewise.
6369 * libgnat/s-pack60.ads, libgnat/s-pack61.adb: Likewise.
6370 * libgnat/s-pack61.ads, libgnat/s-pack62.adb: Likewise.
6371 * libgnat/s-pack62.ads, libgnat/s-pack63.adb: Likewise.
6372 * libgnat/s-pack63.ads, libgnat/s-pack65.adb: Likewise.
6373 * libgnat/s-pack65.ads, libgnat/s-pack66.adb: Likewise.
6374 * libgnat/s-pack66.ads, libgnat/s-pack67.adb: Likewise.
6375 * libgnat/s-pack67.ads, libgnat/s-pack68.adb: Likewise.
6376 * libgnat/s-pack68.ads, libgnat/s-pack69.adb: Likewise.
6377 * libgnat/s-pack69.ads, libgnat/s-pack70.adb: Likewise.
6378 * libgnat/s-pack70.ads, libgnat/s-pack71.adb: Likewise.
6379 * libgnat/s-pack71.ads, libgnat/s-pack72.adb: Likewise.
6380 * libgnat/s-pack72.ads, libgnat/s-pack73.adb: Likewise.
6381 * libgnat/s-pack73.ads, libgnat/s-pack74.adb: Likewise.
6382 * libgnat/s-pack74.ads, libgnat/s-pack75.adb: Likewise.
6383 * libgnat/s-pack75.ads, libgnat/s-pack76.adb: Likewise.
6384 * libgnat/s-pack76.ads, libgnat/s-pack77.adb: Likewise.
6385 * libgnat/s-pack77.ads, libgnat/s-pack78.adb: Likewise.
6386 * libgnat/s-pack78.ads, libgnat/s-pack79.adb: Likewise.
6387 * libgnat/s-pack79.ads, libgnat/s-pack80.adb: Likewise.
6388 * libgnat/s-pack80.ads, libgnat/s-pack81.adb: Likewise.
6389 * libgnat/s-pack81.ads, libgnat/s-pack82.adb: Likewise.
6390 * libgnat/s-pack82.ads, libgnat/s-pack83.adb: Likewise.
6391 * libgnat/s-pack83.ads, libgnat/s-pack84.adb: Likewise.
6392 * libgnat/s-pack84.ads, libgnat/s-pack85.adb: Likewise.
6393 * libgnat/s-pack85.ads, libgnat/s-pack86.adb: Likewise.
6394 * libgnat/s-pack86.ads, libgnat/s-pack87.adb: Likewise.
6395 * libgnat/s-pack87.ads, libgnat/s-pack88.adb: Likewise.
6396 * libgnat/s-pack88.ads, libgnat/s-pack89.adb: Likewise.
6397 * libgnat/s-pack89.ads, libgnat/s-pack90.adb: Likewise.
6398 * libgnat/s-pack90.ads, libgnat/s-pack91.adb: Likewise.
6399 * libgnat/s-pack91.ads, libgnat/s-pack92.adb: Likewise.
6400 * libgnat/s-pack92.ads, libgnat/s-pack93.adb: Likewise.
6401 * libgnat/s-pack93.ads, libgnat/s-pack94.adb: Likewise.
6402 * libgnat/s-pack94.ads, libgnat/s-pack95.adb: Likewise.
6403 * libgnat/s-pack95.ads, libgnat/s-pack96.adb: Likewise.
6404 * libgnat/s-pack96.ads, libgnat/s-pack97.adb: Likewise.
6405 * libgnat/s-pack97.ads, libgnat/s-pack98.adb: Likewise.
6406 * libgnat/s-pack98.ads, libgnat/s-pack99.adb: Likewise.
6407 * libgnat/s-pack99.ads, libgnat/s-parame.adb: Likewise.
6408 * libgnat/s-parame.ads, libgnat/s-parame__hpux.ads: Likewise.
6409 * libgnat/s-parame__posix2008.ads, libgnat/s-parame__rtems.adb: Likewise.
6410 * libgnat/s-parame__vxworks.adb, libgnat/s-parame__vxworks.ads: Likewise.
6411 * libgnat/s-parint.adb, libgnat/s-parint.ads: Likewise.
6412 * libgnat/s-pehage.adb, libgnat/s-pehage.ads: Likewise.
6413 * libgnat/s-pooglo.adb, libgnat/s-pooglo.ads: Likewise.
6414 * libgnat/s-pooloc.adb, libgnat/s-pooloc.ads: Likewise.
6415 * libgnat/s-poosiz.adb, libgnat/s-poosiz.ads: Likewise.
6416 * libgnat/s-powflt.ads, libgnat/s-powlfl.ads: Likewise.
6417 * libgnat/s-powllf.ads, libgnat/s-purexc.ads: Likewise.
6418 * libgnat/s-putima.adb, libgnat/s-putima.ads: Likewise.
6419 * libgnat/s-rannum.adb, libgnat/s-rannum.ads: Likewise.
6420 * libgnat/s-ransee.adb, libgnat/s-ransee.ads: Likewise.
6421 * libgnat/s-regexp.adb, libgnat/s-regexp.ads: Likewise.
6422 * libgnat/s-regpat.adb, libgnat/s-regpat.ads: Likewise.
6423 * libgnat/s-resfil.adb, libgnat/s-resfil.ads: Likewise.
6424 * libgnat/s-restri.adb, libgnat/s-restri.ads: Likewise.
6425 * libgnat/s-retsta.ads, libgnat/s-rident.ads, libgnat/s-rpc.adb: Likewise.
6426 * libgnat/s-rpc.ads, libgnat/s-scaval.adb, libgnat/s-scaval.ads: Likewise.
6427 * libgnat/s-scaval__128.adb, libgnat/s-scaval__128.ads: Likewise.
6428 * libgnat/s-secsta.adb, libgnat/s-secsta.ads: Likewise.
6429 * libgnat/s-sequio.adb, libgnat/s-sequio.ads: Likewise.
6430 * libgnat/s-shabig.ads, libgnat/s-shasto.adb: Likewise.
6431 * libgnat/s-shasto.ads, libgnat/s-soflin.adb: Likewise.
6432 * libgnat/s-soflin.ads, libgnat/s-soliin.adb: Likewise.
6433 * libgnat/s-soliin.ads, libgnat/s-spark.ads, libgnat/s-spcuop.adb: Likewise.
6434 * libgnat/s-spcuop.ads, libgnat/s-spsufi.adb: Likewise.
6435 * libgnat/s-spsufi.ads, libgnat/s-stache.adb: Likewise.
6436 * libgnat/s-stache.ads, libgnat/s-stalib.adb: Likewise.
6437 * libgnat/s-stalib.ads, libgnat/s-statxd.adb: Likewise.
6438 * libgnat/s-statxd.ads, libgnat/s-stausa.adb: Likewise.
6439 * libgnat/s-stausa.ads, libgnat/s-stchop.adb: Likewise.
6440 * libgnat/s-stchop.ads, libgnat/s-stchop__limit.ads: Likewise.
6441 * libgnat/s-stchop__vxworks.adb, libgnat/s-stoele.adb: Likewise.
6442 * libgnat/s-stoele.ads, libgnat/s-stopoo.adb: Likewise.
6443 * libgnat/s-stopoo.ads, libgnat/s-stposu.adb: Likewise.
6444 * libgnat/s-stposu.ads, libgnat/s-stratt.adb: Likewise.
6445 * libgnat/s-stratt.ads, libgnat/s-strcom.adb: Likewise.
6446 * libgnat/s-strcom.ads, libgnat/s-strhas.adb: Likewise.
6447 * libgnat/s-strhas.ads, libgnat/s-string.adb: Likewise.
6448 * libgnat/s-string.ads, libgnat/s-ststop.adb: Likewise.
6449 * libgnat/s-ststop.ads, libgnat/s-tasloc.adb: Likewise.
6450 * libgnat/s-tasloc.ads, libgnat/s-traceb.adb: Likewise.
6451 * libgnat/s-traceb.ads, libgnat/s-traceb__hpux.adb: Likewise.
6452 * libgnat/s-traceb__mastop.adb, libgnat/s-traent.adb: Likewise.
6453 * libgnat/s-traent.ads, libgnat/s-trasym.adb: Likewise.
6454 * libgnat/s-trasym.ads, libgnat/s-trasym__dwarf.adb: Likewise.
6455 * libgnat/s-tsmona.adb, libgnat/s-tsmona__linux.adb: Likewise.
6456 * libgnat/s-tsmona__mingw.adb, libgnat/s-unstyp.ads: Likewise.
6457 * libgnat/s-utf_32.adb, libgnat/s-utf_32.ads: Likewise.
6458 * libgnat/s-vade128.ads, libgnat/s-vade32.ads: Likewise.
6459 * libgnat/s-vade64.ads, libgnat/s-vaen16.ads: Likewise.
6460 * libgnat/s-vaen32.ads, libgnat/s-vaenu8.ads: Likewise.
6461 * libgnat/s-vafi128.ads, libgnat/s-vafi32.ads: Likewise.
6462 * libgnat/s-vafi64.ads, libgnat/s-vaispe.adb: Likewise.
6463 * libgnat/s-vaispe.ads, libgnat/s-valboo.adb: Likewise.
6464 * libgnat/s-valboo.ads, libgnat/s-valcha.adb: Likewise.
6465 * libgnat/s-valcha.ads, libgnat/s-valflt.ads: Likewise.
6466 * libgnat/s-valint.adb, libgnat/s-valint.ads: Likewise.
6467 * libgnat/s-vallfl.ads, libgnat/s-valllf.ads: Likewise.
6468 * libgnat/s-vallli.adb, libgnat/s-vallli.ads: Likewise.
6469 * libgnat/s-valllli.ads, libgnat/s-vallllu.ads: Likewise.
6470 * libgnat/s-valllu.adb, libgnat/s-valllu.ads: Likewise.
6471 * libgnat/s-valrea.adb, libgnat/s-valrea.ads: Likewise.
6472 * libgnat/s-valued.adb, libgnat/s-valued.ads: Likewise.
6473 * libgnat/s-valuef.adb, libgnat/s-valuef.ads: Likewise.
6474 * libgnat/s-valuei.adb, libgnat/s-valuei.ads: Likewise.
6475 * libgnat/s-valuen.adb, libgnat/s-valuen.ads: Likewise.
6476 * libgnat/s-valuer.adb, libgnat/s-valuer.ads: Likewise.
6477 * libgnat/s-valueu.adb, libgnat/s-valueu.ads: Likewise.
6478 * libgnat/s-valuns.adb, libgnat/s-valuns.ads: Likewise.
6479 * libgnat/s-valuti.adb, libgnat/s-valuti.ads: Likewise.
6480 * libgnat/s-valwch.adb, libgnat/s-valwch.ads: Likewise.
6481 * libgnat/s-vauspe.adb, libgnat/s-vauspe.ads: Likewise.
6482 * libgnat/s-veboop.adb, libgnat/s-veboop.ads: Likewise.
6483 * libgnat/s-vector.ads, libgnat/s-vercon.adb: Likewise.
6484 * libgnat/s-vercon.ads, libgnat/s-wchcnv.adb: Likewise.
6485 * libgnat/s-wchcnv.ads, libgnat/s-wchcon.adb: Likewise.
6486 * libgnat/s-wchcon.ads, libgnat/s-wchjis.adb: Likewise.
6487 * libgnat/s-wchjis.ads, libgnat/s-wchstw.adb: Likewise.
6488 * libgnat/s-wchstw.ads, libgnat/s-wchwts.adb: Likewise.
6489 * libgnat/s-wchwts.ads, libgnat/s-widboo.adb: Likewise.
6490 * libgnat/s-widboo.ads, libgnat/s-widcha.adb: Likewise.
6491 * libgnat/s-widcha.ads, libgnat/s-widenu.adb: Likewise.
6492 * libgnat/s-widenu.ads, libgnat/s-widint.ads: Likewise.
6493 * libgnat/s-widlli.adb, libgnat/s-widlli.ads: Likewise.
6494 * libgnat/s-widllli.ads, libgnat/s-widlllu.ads: Likewise.
6495 * libgnat/s-widllu.adb, libgnat/s-widllu.ads: Likewise.
6496 * libgnat/s-widthi.adb, libgnat/s-widthi.ads: Likewise.
6497 * libgnat/s-widthu.adb, libgnat/s-widthu.ads: Likewise.
6498 * libgnat/s-widuns.ads, libgnat/s-widwch.adb: Likewise.
6499 * libgnat/s-widwch.ads, libgnat/s-win32.ads, libgnat/s-winext.ads: Likewise.
6500 * libgnat/s-wwdcha.adb, libgnat/s-wwdcha.ads: Likewise.
6501 * libgnat/s-wwdenu.adb, libgnat/s-wwdenu.ads: Likewise.
6502 * libgnat/s-wwdwch.adb, libgnat/s-wwdwch.ads: Likewise.
6503 * libgnat/system-aix.ads, libgnat/system-darwin-arm.ads: Likewise.
6504 * libgnat/system-darwin-ppc.ads, libgnat/system-darwin-x86.ads: Likewise.
6505 * libgnat/system-djgpp.ads, libgnat/system-dragonfly-x86_64.ads: Likewise.
6506 * libgnat/system-freebsd.ads, libgnat/system-hpux-ia64.ads: Likewise.
6507 * libgnat/system-hpux.ads, libgnat/system-linux-alpha.ads: Likewise.
6508 * libgnat/system-linux-arm.ads, libgnat/system-linux-hppa.ads: Likewise.
6509 * libgnat/system-linux-ia64.ads, libgnat/system-linux-m68k.ads: Likewise.
6510 * libgnat/system-linux-mips.ads, libgnat/system-linux-ppc.ads: Likewise.
6511 * libgnat/system-linux-riscv.ads, libgnat/system-linux-s390.ads: Likewise.
6512 * libgnat/system-linux-sh4.ads, libgnat/system-linux-sparc.ads: Likewise.
6513 * libgnat/system-linux-x86.ads, libgnat/system-lynxos178-ppc.ads: Likewise.
6514 * libgnat/system-lynxos178-x86.ads, libgnat/system-mingw.ads: Likewise.
6515 * libgnat/system-qnx-arm.ads, libgnat/system-rtems.ads: Likewise.
6516 * libgnat/system-solaris-sparc.ads: Likewise.
6517 * libgnat/system-solaris-x86.ads: Likewise.
6518 * libgnat/system-vxworks-ppc-kernel.ads: Likewise.
6519 * libgnat/system-vxworks-ppc-rtp-smp.ads: Likewise.
6520 * libgnat/system-vxworks-ppc-rtp.ads: Likewise.
6521 * libgnat/system-vxworks7-aarch64-rtp-smp.ads: Likewise.
6522 * libgnat/system-vxworks7-aarch64.ads: Likewise.
6523 * libgnat/system-vxworks7-arm-rtp-smp.ads: Likewise.
6524 * libgnat/system-vxworks7-arm.ads: Likewise.
6525 * libgnat/system-vxworks7-ppc-kernel.ads: Likewise.
6526 * libgnat/system-vxworks7-ppc-rtp-smp.ads: Likewise.
6527 * libgnat/system-vxworks7-ppc64-kernel.ads: Likewise.
6528 * libgnat/system-vxworks7-ppc64-rtp-smp.ads: Likewise.
6529 * libgnat/system-vxworks7-x86-kernel.ads: Likewise.
6530 * libgnat/system-vxworks7-x86-rtp-smp.ads: Likewise.
6531 * libgnat/system-vxworks7-x86_64-kernel.ads: Likewise.
6532 * libgnat/system-vxworks7-x86_64-rtp-smp.ads, link.c, live.adb: Likewise.
6533 * live.ads, locales.c, make.adb, make.ads, make_util.adb: Likewise.
6534 * make_util.ads, makeusg.adb, makeusg.ads, mdll-fil.adb: Likewise.
6535 * mdll-fil.ads, mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads: Likewise.
6536 * mingw32.h, mkdir.c, namet-sp.adb, namet-sp.ads, namet.adb: Likewise.
6537 * namet.ads, namet.h, nlists.adb, nlists.ads, nlists.h, opt.adb: Likewise.
6538 * opt.ads, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads: Likewise.
6539 * osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads, osint.adb: Likewise.
6540 * osint.ads, output.adb, output.ads, par-ch10.adb, par-ch11.adb: Likewise.
6541 * par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb: Likewise.
6542 * par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch7.adb, par-ch8.adb: Likewise.
6543 * par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb: Likewise.
6544 * par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb, par.adb: Likewise.
6545 * par.ads, par_sco.adb, par_sco.ads: Likewise.
6546 * pprint.adb, pprint.ads, prep.adb, prep.ads: Likewise.
6547 * prepcomp.adb, prepcomp.ads, put_scos.adb, put_scos.ads: Likewise.
6548 * raise-gcc.c, raise.c, raise.h, repinfo-input.adb: Likewise.
6549 * repinfo-input.ads, repinfo.adb, repinfo.ads, repinfo.h: Likewise.
6550 * restrict.adb, restrict.ads, rident.ads, rtfinal.c, rtinit.c: Likewise.
6551 * rtsfind.adb, rtsfind.ads, runtime.h, s-oscons-tmplt.c: Likewise.
6552 * scans.adb, scans.ads, scil_ll.adb, scil_ll.ads, scn.adb: Likewise.
6553 * scn.ads, scng.adb, scng.ads, scos.adb, scos.ads: Likewise.
6554 * scos.h, sdefault.ads, seh_init.c, sem.adb, sem.ads: Likewise.
6555 * sem_aggr.adb, sem_aggr.ads, sem_attr.adb, sem_attr.ads: Likewise.
6556 * sem_aux.adb, sem_aux.ads, sem_case.adb, sem_case.ads: Likewise.
6557 * sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads: Likewise.
6558 * sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads: Likewise.
6559 * sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads: Likewise.
6560 * sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads, sem_ch5.adb: Likewise.
6561 * sem_ch5.ads, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb, sem_ch7.ads: Likewise.
6562 * sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_ch9.ads, sem_dim.adb: Likewise.
6563 * sem_dim.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb: Likewise.
6564 * sem_dist.ads, sem_elab.adb, sem_elab.ads, sem_elim.adb: Likewise.
6565 * sem_elim.ads, sem_eval.adb, sem_eval.ads, sem_intr.adb: Likewise.
6566 * sem_intr.ads, sem_mech.adb, sem_mech.ads, sem_prag.adb: Likewise.
6567 * sem_prag.ads, sem_res.adb, sem_res.ads, sem_scil.adb: Likewise.
6568 * sem_scil.ads, sem_smem.adb, sem_smem.ads, sem_type.adb: Likewise.
6569 * sem_type.ads, sem_util.adb, sem_util.ads, sem_warn.adb: Likewise.
6570 * sem_warn.ads, set_targ.adb, set_targ.ads, sfn_scan.adb: Likewise.
6571 * sfn_scan.ads, sigtramp-arm-qnx.c, sigtramp-armdroid.c: Likewise.
6572 * sigtramp-ios.c, sigtramp-qnx.c: Likewise.
6573 * sigtramp-vxworks-target.h, sigtramp-vxworks.c, sigtramp.h: Likewise.
6574 * sinfo-cn.adb, sinfo-cn.ads, sinfo-utils.adb, sinfo-utils.ads: Likewise.
6575 * sinfo.adb, sinfo.ads, sinput-c.adb, sinput-c.ads, sinput-d.adb: Likewise.
6576 * sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.adb: Likewise.
6577 * sinput.ads, socket.c, spark_xrefs.adb, spark_xrefs.ads: Likewise.
6578 * sprint.adb, sprint.ads, stand.ads: Likewise.
6579 * stringt.adb, stringt.ads, stringt.h, strub.adb, strub.ads: Likewise.
6580 * style.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb: Likewise.
6581 * stylesw.ads, switch-b.adb, switch-b.ads, switch-c.adb: Likewise.
6582 * switch-c.ads, switch-m.adb, switch-m.ads, switch.adb: Likewise.
6583 * switch.ads, sysdep.c, table.adb: Likewise.
6584 * table.ads, targext.c, targparm.adb, targparm.ads, tbuild.adb: Likewise.
6585 * tbuild.ads, tempdir.adb, tempdir.ads, terminals.c, tracebak.c: Likewise.
6586 * treepr.adb, treepr.ads, ttypes.ads, types.adb, types.ads: Likewise.
6587 * types.h, uintp.adb, uintp.ads, uintp.h, uname.adb, uname.ads: Likewise.
6588 * urealp.adb, urealp.ads, urealp.h, usage.adb, usage.ads: Likewise.
6589 * validsw.adb, validsw.ads, vast.adb, vast.ads, warnsw.adb: Likewise.
6590 * warnsw.ads, widechar.adb, widechar.ads, xoscons.adb: Likewise.
6591 * xsnamest.adb, xutil.adb, xutil.ads, gnatvsn.adb: Likewise.
6592 * gnatvsn.ads (Current_Year): Likewise and bump to 2023.
6593
6594 2023-01-09 Eric Botcazou <[email protected]>
6595
6596 * exp_ch7.adb (Make_Adjust_Call): Remove unreachable statement.
6597 (Make_Final_Call): Likewise.
6598
6599 2023-01-09 Eric Botcazou <[email protected]>
6600
6601 * exp_util.ads (Is_Tag_To_Class_Wide_Conversion): Delete.
6602 (Is_Displacement_Of_Object_Or_Function_Result): Likewise.
6603 * exp_util.adb (Is_Tag_To_Class_Wide_Conversion): Rename to...
6604 (Is_Temporary_For_Interface_Object): ...this.
6605 (Is_Finalizable_Transient): Adjust call to above renaming.
6606 (Is_Displacement_Of_Object_Or_Function_Result): Delete.
6607 (Requires_Cleanup_Actions): Remove special handling of the
6608 temporaries created for interface objects.
6609 * exp_ch7.adb (Build_Finalizer): Likewise.
6610
6611 2023-01-07 LIU Hao <[email protected]>
6612
6613 PR middle-end/108300
6614 * adaint.c: Define `WIN32_LEAN_AND_MEAN` before `#include
6615 <windows.h>`.
6616 * cio.c: Likewise.
6617 * ctrl_c.c: Likewise.
6618 * expect.c: Likewise.
6619 * gsocket.h: Likewise.
6620 * mingw32.h: Likewise.
6621 * mkdir.c: Likewise.
6622 * rtfinal.c: Likewise.
6623 * rtinit.c: Likewise.
6624 * seh_init.c: Likewise.
6625 * sysdep.c: Likewise.
6626 * terminals.c: Likewise.
6627 * tracebak.c: Likewise.
6628
6629 2023-01-05 Eric Botcazou <[email protected]>
6630
6631 * exp_util.adb (Make_CW_Equivalent_Type) <Has_Tag_Of_Type>: Tweak.
6632
6633 2023-01-05 Eric Botcazou <[email protected]>
6634
6635 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite the end of the
6636 handling of objects with (class-wide) interface type by using the
6637 same idiom as the other cases generating a renaming.
6638 * exp_util.adb (Is_Displacement_Of_Object_Or_Function_Result): Tweak
6639 pattern matching code and exclude special return objects.
6640 (Requires_Cleanup_Actions): Adjust comment.
6641 * exp_ch7.adb (Build_Finalizer): Likewise.
6642
6643 2023-01-05 Piotr Trojanek <[email protected]>
6644
6645 * freeze.adb (Build_Renamed_Body): Rewrite subprogram renaming to
6646 subprogram declaration early and then set the Body_To_Inling flag.
6647
6648 2023-01-05 Piotr Trojanek <[email protected]>
6649
6650 * freeze.adb (Build_Renamed_Body): Revert a special case for
6651 GNATprove; remove unnecessary initialization of a local variable.
6652
6653 2023-01-05 Marc Poulhiès <[email protected]>
6654
6655 * sem_ch12.adb (Instantiate_Package_Body): Better filtering when
6656 installing parent on the scope stack.
6657
6658 2023-01-05 Eric Botcazou <[email protected]>
6659
6660 * repinfo.ads (The JSON output format): Document change.
6661 * urealp.adb (UR_Write_To_JSON): Output a fraction instead of a
6662 decimal approximation.
6663
6664 2023-01-05 Eric Botcazou <[email protected]>
6665
6666 * exp_ch3.adb (Expand_N_Object_Declaration): New local variable
6667 Func_Id holding the function for a special return object.
6668 Use a direct renaming in the class-wide case when the initializing
6669 expression is a captured function call, except for a special return
6670 object when the two functions do not return on the same stack.
6671 Apply the accessibility check for class-wide special return objects.
6672 * exp_util.adb (Make_CW_Equivalent_Type) <Has_Tag_Of_Type>: New.
6673 Do not force a dispatching call to the primitive operation _Size if
6674 the expression is known to statically have the tag of its type.
6675
6676 2023-01-05 Eric Botcazou <[email protected]>
6677
6678 * exp_ch3.adb (Expand_N_Object_Declaration): Fix pasto in comment.
6679
6680 2023-01-05 Ronan Desplanques <[email protected]>
6681
6682 * sem_aggr.adb (Resolve_Array_Aggregate): Tweak conditions for
6683 warning about use of parentheses for array aggregates.
6684
6685 2023-01-05 Javier Miranda <[email protected]>
6686
6687 * scans.ads (Tok_Left_Curly_Bracket, Tok_Right_Curly_Bracket)
6688 (Tok_Left_Interpolated_String): Placed in no category since they
6689 don't fit well in the existing categories. Fix typo in comment.
6690 (Inside_Interpolated_String_Literal): New scan state variable.
6691 * scng.adb (Slit): Scan interpolated string literals,
6692 continuations of interpolated string literals and escaped
6693 characters found in interpolated string literals.
6694 (Scan): Handle consecutive interpolated expressions. Handle ending
6695 delimiter placed immediately after an interpolated expression.
6696 Handle string literal placed after interpolated expression. Handle
6697 left and right curly brackets; when extensions are not allowed
6698 they are treated as left and right paren; when extensions are
6699 allowed they are handled as delimiters of interpolated string
6700 literals.
6701 * sinfo.ads (N_Interpolated_String_Literal): New node.
6702 * gen_il-gen-gen_nodes.adb (N_Interpolated_String_Literal): Define
6703 N_String_Literal node.
6704 * gen_il-types.ads (Opt_Type_Enum): Define N_String_Literal as
6705 concrete node type.
6706 * par-ch2.adb (P_Interpolated_String_Literal): New subprogram.
6707 * par-ch4.adb (P_Simple_Expression): Handle '}' as expression
6708 terminator when scanning an interpolated expression; disable error
6709 recovery machinery for binary operator when we are processing an
6710 interpolated string literal and reach the expression terminator
6711 '}'.
6712 (P_Primary): Call P_Interpolated_String_Literal when the opening
6713 interpolated-string-literal delimiter is found (that is, the left
6714 curly bracket '{').
6715 * par-tchk.adb (T_Right_Curly_Bracket): New subprogram.
6716 * par.adb (P_Interpolated_String_Literal): New declaration.
6717 (T_Right_Curly_Bracket): New declaration.
6718 * sem.adb (Analyze): Call Analyze_Interpolated_String_Literal.
6719 * sem_ch2.ads (Analyze_Interpolated_String_Literal): New
6720 subprogram
6721 * sem_ch2.adb (Analyze_Interpolated_String_Literal): Likewise.
6722 * sem_util.adb (Is_User_Defined_Literal): Complete mapping of
6723 literal aspects adding that interpolated string literals have no
6724 correspondence with any aspect.
6725 * sem_res.adb (Resolve_Interpolated_String_Literal): New
6726 subprogram.
6727 (Has_Applicable_User_Defined_Literal): Complete mapping of literal
6728 aspects adding that interpolated string literals have no
6729 correspondency with any aspect.
6730 * expander.adb (Expand): Add call to
6731 Expand_N_Interpolated_String_Literal.
6732 * exp_util.adb (Insert_Actions): Handle
6733 N_Interpolated_String_Literal nodes; that is, continue climbing.
6734 * exp_ch2.ads (Expand_N_Interpolated_String_Literal): New
6735 subprogram.
6736 * exp_ch2.adb (Expand_N_Interpolated_String_Literal): Likewise.
6737 * exp_put_image.adb (Build_Elementary_Put_Image_Call): Add missing
6738 conversion to force dispatching call. Required to handle calls to
6739 descendants.
6740 (Build_String_Put_Image_Call): Do not output string delimiters
6741 when the put_image call is part of an interpolated string literal.
6742 * rtsfind.ads (RTU_Id): Add RE_Set_Trim_Leading_Spaces.
6743 * sprint.adb (Sprint_Node): Output interpolated string contents.
6744 * libgnat/a-stbubo.adb (Get_UTF_8): Add default value for
6745 Trim_Leading_White_Spaces component in aggregate.
6746 (Buffer_Type_Implementation): Update Trim_Leading_White_Spaces.
6747 * libgnat/a-stbuun.adb (Get_UTF_8): Likewise.
6748 (Buffer_Type_Implementation): Likewise.
6749 * libgnat/a-sttebu.ads (Set_Trim_Leading_Spaces): New subprogram.
6750 (Trim_Leading_Spaces): New subprogram.
6751 (Root_Buffer_Type): Adding Trim_Leading_While_Spaces component.
6752 * libgnat/a-sttebu.adb (procedure Set_Trim_Leading_Spaces): New
6753 subprogram.
6754 (Trim_Leading_Space): New subprogram.
6755 (Put_UTF_8): Handle Trim_Leading_White_Spaces.
6756 (New_Line): Likewise.
6757 * libgnat/s-putima.ads (Put_Image_String): Adding formal
6758 (with_delimiters).
6759 (Put_Image_Wide_String): Likewise.
6760 (Put_Image_Wide_Wide_String): Likewise.
6761 * libgnat/s-putima.adb (Put_Image_String): Adding support for new
6762 formal.
6763 (Put_Image_Wide_String): Likewise.
6764 (Put_Image_Wide_Wide_String): Likewise.
6765
6766 2023-01-05 Joao Azevedo <[email protected]>
6767
6768 * doc/gnat_ugn/gnat_utility_programs.rst: add gnatpp --layout
6769 switch and update legacy switches.
6770
6771 2023-01-05 Eric Botcazou <[email protected]>
6772
6773 * freeze.adb (Freeze_Entity): For the purpose of deciding whether to
6774 freeze an entity coming from an outer scope in an inner scope, treat
6775 the internal subprogram generated because of post-conditions as also
6776 coming from source if the original subprogram itself does.
6777
6778 2023-01-05 Eric Botcazou <[email protected]>
6779
6780 * contracts.adb (Build_Subprogram_Contract_Wrapper): Generate an
6781 extended return statement in all cases.
6782 (Expand_Subprogram_Contract): Adjust comment.
6783
6784 2023-01-05 Ronan Desplanques <[email protected]>
6785
6786 * libgnat/g-forstr.adb (F_Kind): Rename enumeration literal.
6787 (P_Flt_Format): Adjust handling of "%g".
6788 (Determine_Notation_And_Aft): New procedure.
6789 (Decimal_Exponent): New function.
6790 (Increment_Integral_Part): New procedure.
6791 (Remove_Extraneous_Decimal_Digit): New procedure.
6792 (Trim_Fractional_Part): New procedure.
6793 * libgnat/g-forstr.ads: Change description of "%g" specifier.
6794
6795 2023-01-05 Marc Poulhiès <[email protected]>
6796
6797 * sem_ch12.adb (Instantiate_Package_Body): Correctly find the
6798 parent instance to place on the scope stack.
6799
6800 2023-01-05 Justin Squirek <[email protected]>
6801
6802 * sem_ch8.adb (Set_Entity_Or_Discriminal): Verify we are actually
6803 resetting the entity field of a non-prefixed discriminant
6804 reference.
6805
6806 2023-01-05 Eric Botcazou <[email protected]>
6807
6808 * exp_ch3.adb (Expand_N_Object_Declaration): New local variable used
6809 throughout instead of testing Is_Special_Return_Object every time.
6810 Do not rename an OK_To_Rename object for a special return object.
6811 * exp_ch4.adb (Expand_Concatenate): Revert to constrained allocation
6812 if the result is allocated on the secondary stack.
6813
6814 2023-01-05 Steve Baird <[email protected]>
6815
6816 * sem_prag.adb (Analyze_Pragma): Fix Is_Configuration_Pragma
6817 function to handle case where the pragma's parent is an
6818 N_Aspect_Specification node. In analyzing a Discard_Names pragma,
6819 do not assume that a nonzero number of arguments implies that the
6820 pragma is not a configuration pragma; that assumption only holds
6821 for legal programs.
6822
6823 2023-01-05 Bob Duff <[email protected]>
6824
6825 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
6826 Add RM references.
6827 * gnat_ugn.texi: Regenerate.
6828
6829 2023-01-05 Eric Botcazou <[email protected]>
6830
6831 * exp_ch3.adb (Expand_N_Object_Declaration): For a special return
6832 object of an interface type that is not inherently limited, make
6833 a call to the Adjust primitive after doing the copy. For a special
6834 return object of a non-class-wide type initialized by a function
6835 call, use a direct renaming only if the object doing the capture
6836 is flagged by Is_Related_To_Func_Return. For a special return
6837 object using a direct renaming, reassign the tag, if need be.
6838 * exp_ch6.adb (Expand_Simple_Function_Return): Fix comment.
6839 * exp_util.adb (Is_Related_To_Func_Return): Accept both regular and
6840 renaming object declarations for return objects.
6841
6842 2023-01-05 Bob Duff <[email protected]>
6843
6844 * sem_ch5.adb (Analyze_Assignment): Fix the bug by checking
6845 Original_Node. The renaming might be elsewhere, but the (original)
6846 reference is right here.
6847 * errout.adb: Remove pragma Unreferenced which was added because
6848 of the above bug.
6849 * einfo.ads: Misc cleanup.
6850 * lib.adb: Likewise.
6851 * lib.ads: Likewise.
6852
6853 2023-01-03 Ghjuvan Lacambre <[email protected]>
6854
6855 * errout.adb (Write_JSON_Span): Escape subprogram name.
6856
6857 2023-01-03 Ghjuvan Lacambre <[email protected]>
6858
6859 * output.adb (Write_Buffer): Use Flush_Buffer instead of Write_Eol.
6860
6861 2023-01-03 Ronan Desplanques <[email protected]>
6862
6863 * libgnat/g-forstr.adb (P_Flt_Format): Add "*" syntax handling.
6864
6865 2023-01-03 Ronan Desplanques <[email protected]>
6866
6867 * libgnat/g-forstr.adb (P_Int_Format): Fix parsing bug.
6868
6869 2023-01-03 Eric Botcazou <[email protected]>
6870
6871 * exp_ch6.adb (Expand_Simple_Function_Return): Make sure that a
6872 captured function call also verifies Is_Related_To_Func_Return.
6873 Do not generate an actual subtype for special return objects.
6874 * exp_util.ads (Is_Related_To_Func_Return): Add commentary.
6875
6876 2023-01-03 Ronan Desplanques <[email protected]>
6877
6878 * libgnat/g-forstr.adb
6879 (Advance_And_Accumulate_Until_Next_Specifier): New procedure.
6880 ("-"): Replace inline code with call to
6881 Advance_And_Accumulate_Until_Next_Specifier.
6882 (Next_Format): likewise.
6883
6884 2023-01-03 Eric Botcazou <[email protected]>
6885
6886 * checks.adb (Apply_Discriminant_Check.Denotes_Explicit_Dereference):
6887 Return false for artificial dereferences generated by the expander.
6888
6889 2023-01-03 Eric Botcazou <[email protected]>
6890
6891 * exp_ch6.adb (Is_Build_In_Place_Function): Adjust comment.
6892 * sem_util.adb (Compute_Returns_By_Ref): Do not set Returns_By_Ref
6893 on functions with foreign convention.
6894
6895 2023-01-03 Marc Poulhiès <[email protected]>
6896
6897 * exp_aggr.adb (Build_Assignment_With_Temporary): New.
6898 (Expand_Array_Aggregate): Tune backend optimization
6899 and insert a temporary in the case of an access with
6900 Designated_Storage_Model aspect.
6901 (Convert_Array_Aggr_In_Allocator): Likewise.
6902
6903 2023-01-03 Eric Botcazou <[email protected]>
6904
6905 * sem_res.adb (Resolve_Membership_Op): Adjust again latest change.
6906
6907 2023-01-03 Eric Botcazou <[email protected]>
6908
6909 * sem_util.ads (Set_Debug_Info_Defining_Id): Adjust comment.
6910 * sem_util.adb (Is_Aliased_View) <N_Explicit_Dereference>: Return
6911 false for more artificial dereferences generated by the expander.
6912 (Set_Debug_Info_Defining_Id): Set Debug_Info_Needed unconditionally
6913 in -gnatD mode.
6914 * exp_ch6.adb (Replace_Renaming_Declaration_Id): Also preserve the
6915 Is_Aliased flag.
6916
6917 2023-01-03 Joel Brobecker <[email protected]>
6918
6919 * doc/gnat_ugn/platform_specific_information.rst
6920 (_Platform_Specific_Information): Minor rewording of intro text.
6921 * gnat_ugn.texi: Regenerate.
6922
6923 2023-01-03 Eric Botcazou <[email protected]>
6924
6925 * exp_util.ads (Is_Captured_Function_Call): Declare.
6926 * exp_util.adb (Is_Captured_Function_Call): New predicate.
6927 * exp_ch3.adb (Expand_N_Object_Declaration): Use it to detect a
6928 rewritten function call as the initializing expression.
6929 * exp_ch6.adb (Expand_Simple_Function_Return): Use it to detect a
6930 rewritten function call as the returned expression.
6931
6932 2023-01-03 Bob Duff <[email protected]>
6933
6934 * exp_util.adb (Integer_Type_For): Assertion and comment.
6935 (Small_Integer_Type_For): Remove some code and call
6936 Integer_Type_For instead.
6937 * sem_util.ads (Rep_To_Pos_Flag): Improve comments. "Standard_..."
6938 seems overly pedantic here.
6939 * exp_attr.adb (Succ, Pred): Clean up: make the code as similar as
6940 possible.
6941 * exp_ch4.adb: Minor: named notation.
6942
6943 2023-01-03 Javier Miranda <[email protected]>
6944
6945 * ghost.adb (Is_OK_Declaration): A reference to a Ghost entity may
6946 appear within the class-wide precondition of a helper subprogram.
6947 This context is treated as suitable because it was already
6948 verified when we were analyzing the original class-wide
6949 precondition.
6950
6951 2023-01-03 Eric Botcazou <[email protected]>
6952
6953 * exp_tss.adb (Base_Init_Proc): Do not return the Init_Proc of the
6954 ancestor type for a derived array type.
6955 * sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): Factor out the
6956 common processing done on representation items.
6957 For Default_Component_Value and Default_Value, look into the first
6958 subtype to find out the representation items.
6959
6960 2023-01-02 Iain Sandoe <[email protected]>
6961
6962 PR ada/108202
6963 * gcc-interface/Make-lang.in (GCC_LINKERFLAGS, GCC_LDFLAGS):
6964 Versions of ALL_LINKERFLAGS, LDFLAGS with -Werror and
6965 -static-libgcc filtered out for Darwin8 and 9 (-Werror is filtered
6966 out for other hosts).
6967
6968 2023-01-02 Jakub Jelinek <[email protected]>
6969
6970 * gnat_ugn.texi: Bump @copying's copyright year.
6971 * gnat_rm.texi: Likewise.
6972
6973 Copyright (C) 2023 Free Software Foundation, Inc.
6974
6975 Copying and distribution of this file, with or without modification,
6976 are permitted in any medium without royalty provided the copyright
6977 notice and this notice are preserved.