| 1 |
2024-12-22 Samuel Thibault <[email protected]> |
| 2 |
|
| 3 |
* libgnat/system-gnu.ads: Set Max_Priority to 60. |
| 4 |
|
| 5 |
2024-12-22 Samuel Thibault <[email protected]> |
| 6 |
|
| 7 |
* s-oscons-tmplt.c [__GNU__] (_XOPEN_SOURCE, _BSD_SOURCE): Define. |
| 8 |
[__GNU__]: Include <pthread.h> and <signal.h> |
| 9 |
[__GNU__]: Set MSG_Forced_Flags to "MSG_NOSIGNAL". |
| 10 |
[__GNU__]: Define SIZEOF_sigset. |
| 11 |
[__GNU__]: Define PTHREAD_*SIZE |
| 12 |
|
| 13 |
2024-12-18 Simon Wright <[email protected]> |
| 14 |
|
| 15 |
PR target/117538 |
| 16 |
* libgnat/s-trasym.adb (Symbolic_Traceback): Prepend the load |
| 17 |
address of the executable if it is not null. |
| 18 |
|
| 19 |
2024-12-14 Jakub Jelinek <[email protected]> |
| 20 |
|
| 21 |
PR c/118011 |
| 22 |
* gcc-interface/misc.cc (gnat_post_options): Test |
| 23 |
!OPTION_SET_P (flag_short_enums) rather than flag_short_enums == 2. |
| 24 |
|
| 25 |
2024-12-13 Eric Botcazou <[email protected]> |
| 26 |
|
| 27 |
* gcc-interface/utils2.cc (compare_elmt_bitpos): Deal specially with |
| 28 |
0-sized components when the bit position is the same. |
| 29 |
|
| 30 |
2024-12-13 Tom Tromey <[email protected]> |
| 31 |
|
| 32 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Pass artificial_p to |
| 33 |
create_type_decl. |
| 34 |
|
| 35 |
2024-12-13 Javier Miranda <[email protected]> |
| 36 |
|
| 37 |
* sem.ads (Inside_Preanalysis_Without_Freezing): Removed. |
| 38 |
* sem.adb (Semantics): Remove Inside_Preanalysis_Without_Freezing. |
| 39 |
* sem_ch6.adb (Preanalyze_Formal_Expression): Removed. |
| 40 |
* sem_ch3.ads (Preanalyze_Assert_Expression): Add documentation. |
| 41 |
(Preanalyze_Spec_Expression): Add documentation. |
| 42 |
* sem_ch3.adb (Preanalyze_Assert_Expression) Code cleanup. |
| 43 |
(Preanalyze_Default_Expression): Code cleanup. |
| 44 |
* sem_res.ads (Preanalyze_With_Freezing_And_Resolve): Removed. |
| 45 |
* sem_res.adb (Preanalyze_With_Freezing_And_Resolve): Removed. |
| 46 |
(Preanalyze_And_Resolve): Code cleanup. |
| 47 |
* freeze.adb (Freeze_Entity): No freeze under strict preanalysis. |
| 48 |
(Freeze_Expression): Code cleanup. |
| 49 |
(Freeze_Expr_Types): Replace call to Preanalyze_Spec_Expression by |
| 50 |
strict preanalysis during preanalysis of a duplicate of the |
| 51 |
expression performed to have available the minimum decoration |
| 52 |
to locate referenced unfrozen types. |
| 53 |
* sem_aggr.adb (Resolve_Array_Aggregate): Minor code cleanup. |
| 54 |
* sem_attr.adb (Resolve_Attribute): Add documentation. |
| 55 |
* sem_ch13.adb (Resolve_Aspect_Expressions[Aspect_Default_Value]): |
| 56 |
Replace call to Preanalyze_Spec_Expression by Preanalyze_And_Resolve. |
| 57 |
(Resolve_Aspect_Expressions[Aspect_Default_Component_Value]): Ditto. |
| 58 |
* sem_ch8.adb (Set_Entity_Or_Discriminal): Code cleaup. |
| 59 |
* sem_prag.adb (Analyze_Initial_Condition_In_Decl_Part): Replace |
| 60 |
call to Preanalyze_Assert_Expression by call to Preanalyze_And_Resolve. |
| 61 |
(Analyze_Pre_Post_Condition): Replace call to Preanayze_Spec_Expression |
| 62 |
by call to Preanalyze_Assert_Expression. |
| 63 |
* sem_util.ads (In_Pragma_Expression): Adding a formal to extend the |
| 64 |
functionality of this subprogram. |
| 65 |
(Within_Static_Expression): New subprogram. |
| 66 |
* sem_util.adb (In_Pragma_Expression): Ditto. |
| 67 |
(Within_Static_Expression): Ditto. |
| 68 |
* checks.adb (Install_Null_Excluding_Check): No check during preanalysis. |
| 69 |
(Install_Primitive_Elaboration_Check): Ditto. |
| 70 |
|
| 71 |
2024-12-13 Eric Botcazou <[email protected]> |
| 72 |
|
| 73 |
* exp_aggr.ads (Is_Delayed_Conditional_Expression): Move to... |
| 74 |
* exp_aggr.adb (Is_Delayed_Conditional_Expression): Move to... |
| 75 |
(Convert_To_Assignments): Use Delay_Conditional_Expressions_Between. |
| 76 |
* exp_ch3.adb (Expand_N_Object_Declaration): Reset the Analyzed flag |
| 77 |
by means of Unanalyze_Delayed_Conditional_Expression. |
| 78 |
* exp_ch4.adb (Expand_N_Case_Expression): Likewise. Delay expanding |
| 79 |
the expression if it is in the context of a simple return statement. |
| 80 |
(Expand_N_If_Expression): Likewise. |
| 81 |
(Expand_N_Qualified_Expression): Fold identical operand. Distribute |
| 82 |
the expression into an operand that is a conditional expression with |
| 83 |
expansion delayed. |
| 84 |
(Process_Transient_In_Expression): Also test the parent node for the |
| 85 |
presence of a simple return statement. |
| 86 |
* exp_ch6.adb (Expand_Ctrl_Function_Call): Test the unconditional |
| 87 |
parent node for the presence of a simple return statement. |
| 88 |
* exp_util.ads (Delayed Expansion): New description. |
| 89 |
(Delay_Conditional_Expressions_Between): New procedure. |
| 90 |
(Is_Delayed_Conditional_Expression): ...here. |
| 91 |
(Unanalyze_Delayed_Conditional_Expression): New procedure. |
| 92 |
(Unconditional_Parent): New function. |
| 93 |
* exp_util.adb (Find_Hook_Context): Take into account conditional |
| 94 |
statements coming from conditional expressions. |
| 95 |
(Within_Conditional_Expression): Likewise. |
| 96 |
(Delay_Conditional_Expressions_Between): New procedure. |
| 97 |
(Is_Delayed_Conditional_Expression): ...here. |
| 98 |
(Unanalyze_Delayed_Conditional_Expression): New procedure. |
| 99 |
(Unconditional_Parent): New function. |
| 100 |
* sinfo.ads (Expansion_Delayed): Adjust description. |
| 101 |
|
| 102 |
2024-12-13 Piotr Trojanek <[email protected]> |
| 103 |
|
| 104 |
* exp_aggr.adb (Case_Bounds): Fix indentation. |
| 105 |
* sem_case.adb (Choice_Bounds): Likewise. |
| 106 |
* libgnat/s-dourea.ads (Duuble_T): Likewise. |
| 107 |
* libgnat/s-excmac__arm.ads (Cleanup_Cache_Type): Likewise. |
| 108 |
|
| 109 |
2024-12-13 Piotr Trojanek <[email protected]> |
| 110 |
|
| 111 |
* atree.adb, diagnostics-pretty_emitter.adb, |
| 112 |
diagnostics-utils.adb, einfo-utils.adb, errout.adb, exp_aggr.adb, |
| 113 |
exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_imgv.adb, |
| 114 |
exp_pakd.adb, exp_prag.adb, exp_unst.adb, exp_util.adb, gnatchop.adb, |
| 115 |
gnatlink.adb, inline.adb, itypes.adb, osint.adb, rtsfind.adb, |
| 116 |
sem_aggr.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, |
| 117 |
sem_ch4.adb, sem_dim.adb, sem_elab.adb, sem_prag.adb, sem_util.adb, |
| 118 |
sprint.adb, switch-m.adb, table.adb: Fix code indentation. |
| 119 |
|
| 120 |
2024-12-13 Marc Poulhiès <[email protected]> |
| 121 |
|
| 122 |
* libgnat/a-tifiio.adb (OK_Get_32): Use 'Base. |
| 123 |
(OK_Put_32, OK_Get_64, OK_Put_64): Likewise. |
| 124 |
* libgnat/a-tifiio__128.adb (OK_Get_32, OK_Put_32, OK_Get_64) |
| 125 |
(OK_Put_64, OK_Get_128, OK_Put_128): Likewise. |
| 126 |
* libgnat/a-wtfiio.adb (OK_Get_32): Likewise. |
| 127 |
(OK_Put_32, OK_Get_64, OK_Put_64): Likewise. |
| 128 |
* libgnat/a-wtfiio__128.adb (OK_Get_32, OK_Put_32, OK_Get_64) |
| 129 |
(OK_Put_64, OK_Get_128, OK_Put_128): Likewise. |
| 130 |
* libgnat/a-ztfiio.adb (OK_Get_32): Likewise. |
| 131 |
(OK_Put_32, OK_Get_64, OK_Put_64): Likewise. |
| 132 |
* libgnat/a-ztfiio__128.adb (OK_Get_32, OK_Put_32, OK_Get_64) |
| 133 |
(OK_Put_64, OK_Get_128, OK_Put_128): Likewise. |
| 134 |
|
| 135 |
2024-12-13 Javier Miranda <[email protected]> |
| 136 |
|
| 137 |
* sem_res.adb (Report_Ambiguous_Argument): Code cleanup. |
| 138 |
(Resolve): Code cleanup. |
| 139 |
|
| 140 |
2024-12-13 Piotr Trojanek <[email protected]> |
| 141 |
|
| 142 |
* sem_util.adb (Is_Effectively_Volatile, |
| 143 |
Is_Effectively_Volatile_For_Reading): Implement new rule for |
| 144 |
record types. |
| 145 |
* sem_util.ads (Is_Effectively_Volatile, |
| 146 |
Is_Effectively_Volatile_For_Reading): Adjust comments. |
| 147 |
|
| 148 |
2024-12-13 Piotr Trojanek <[email protected]> |
| 149 |
|
| 150 |
* sem_util.adb (Is_Effectively_Volatile, |
| 151 |
Is_Effectively_Volatile_For_Reading): Remove Ignore_Protected |
| 152 |
parameter. |
| 153 |
(Is_Effectively_Volatile_Object, |
| 154 |
Is_Effectively_Volatile_Object_For_Reading): Remove |
| 155 |
single-parameter wrappers that are needed to instantiate |
| 156 |
generic subprogram. |
| 157 |
* sem_util.ads (Is_Effectively_Volatile, |
| 158 |
Is_Effectively_Volatile_For_Reading): Remove parameter; adjust |
| 159 |
comment. |
| 160 |
|
| 161 |
2024-12-13 Eric Botcazou <[email protected]> |
| 162 |
|
| 163 |
* exp_ch4.adb (Expand_Allocator_Expression): Do not preventively |
| 164 |
call Remove_Side_Effects on the expression in the nonlimited |
| 165 |
by-reference case. Always call Build_Allocate_Deallocate_Proc |
| 166 |
in the default case. |
| 167 |
* exp_ch6.adb (Expand_Ctrl_Function_Call): Bail out if the call |
| 168 |
is the qualified expression of an allocator. |
| 169 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Replace all the |
| 170 |
calls to Relocate_Node by calls to Duplicate_Subexpr_No_Checks. |
| 171 |
|
| 172 |
2024-12-13 Eric Botcazou <[email protected]> |
| 173 |
|
| 174 |
* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Do not call again |
| 175 |
Preanalyze_And_Resolve on the expression. |
| 176 |
|
| 177 |
2024-12-13 Eric Botcazou <[email protected]> |
| 178 |
|
| 179 |
* sem_aggr.adb (Resolve_Aggr_Expr): Always perform a full analysis |
| 180 |
of the expression in SPARK mode. |
| 181 |
|
| 182 |
2024-12-13 Ronan Desplanques <[email protected]> |
| 183 |
|
| 184 |
* doc/gnat_rm/gnat_language_extensions.rst: Fix typo. |
| 185 |
* gnat_rm.texi: Regenerate. |
| 186 |
* gnat_ugn.texi: Regenerate. |
| 187 |
|
| 188 |
2024-12-13 Eric Botcazou <[email protected]> |
| 189 |
|
| 190 |
* exp_ch6.adb (Expand_Call_Helper): Also create a temporary in the |
| 191 |
case of a noncontrolled user-defined indexing. |
| 192 |
|
| 193 |
2024-12-13 Ronan Desplanques <[email protected]> |
| 194 |
|
| 195 |
* doc/gnat_rm/standard_library_routines.rst: Fix documentation. |
| 196 |
* gnat_rm.texi: Regenerate. |
| 197 |
* gnat_ugn.texi: Regenerate. |
| 198 |
|
| 199 |
2024-12-13 Ronan Desplanques <[email protected]> |
| 200 |
|
| 201 |
* gnat2.gpr: Add library units to coverage exclusion list. |
| 202 |
|
| 203 |
2024-12-13 Eric Botcazou <[email protected]> |
| 204 |
|
| 205 |
* exp_aggr.adb (Build_Array_Aggr_Code): Remove obsolete comment. |
| 206 |
(Convert_To_Positional): Remove Ctyp local variable. |
| 207 |
(Is_Static_Element): Remove Dims parameter and do not preanalyze the |
| 208 |
expression there. |
| 209 |
(Expand_Array_Aggregate): Make Ctyp a constant. |
| 210 |
(Compute_Others_Present): Do not preanalyze the expression there. |
| 211 |
* sem_aggr.adb (Resolve_Array_Aggregate): New Ctyp constant. Use it |
| 212 |
throughout the procedure to denote the component type. |
| 213 |
(Resolve_Aggr_Expr): Always preanalyze a copy of the expression in |
| 214 |
an iteration context. Preanalyze it directly when the expander is |
| 215 |
active and the choice may cover multiple components. Otherwise, |
| 216 |
fully analyze it. |
| 217 |
Do not reanalyze an iterated component association with an others |
| 218 |
choice either when there are positional components. |
| 219 |
(Resolve_Iterated_Component_Association): Do not remove references |
| 220 |
from the expression after invoking Resolve_Aggr_Expr on it. |
| 221 |
|
| 222 |
2024-12-13 Eric Botcazou <[email protected]> |
| 223 |
|
| 224 |
* libgnat/s-imager.adb (Set_Image_Real): In the case where a double |
| 225 |
integer is needed, do not implicit assume that it can contain up to |
| 226 |
'Digits of the floating-point type. |
| 227 |
|
| 228 |
2024-12-13 Eric Botcazou <[email protected]> |
| 229 |
|
| 230 |
* libgnat/s-imager.adb (Maxscaling): Change to Natural constant and |
| 231 |
add Maxdigs to value. |
| 232 |
|
| 233 |
2024-12-12 Eric Botcazou <[email protected]> |
| 234 |
|
| 235 |
PR ada/117996 |
| 236 |
* libgnat/a-ngrear.adb (Jacobi): Remove default value for |
| 237 |
Compute_Vectors formal parameter. |
| 238 |
(Sort_Eigensystem): Add Compute_Vectors formal parameter. Do not |
| 239 |
modify the Vectors if Compute_Vectors is False. |
| 240 |
(Eigensystem): Pass True as Compute_Vectors to Sort_Eigensystem. |
| 241 |
(Eigenvalues): Pass False as Compute_Vectors to Sort_Eigensystem. |
| 242 |
|
| 243 |
2024-12-12 Piotr Trojanek <[email protected]> |
| 244 |
|
| 245 |
* par-ch5.adb (Test_Statement_Required): Fix comment. |
| 246 |
|
| 247 |
2024-12-12 Eric Botcazou <[email protected]> |
| 248 |
|
| 249 |
* exp_aggr.adb (Convert_Aggr_In_Object_Decl): Clear the component |
| 250 |
referenced on the right-hand side of the first assignment generated |
| 251 |
for a bit-packed array, if any. |
| 252 |
(Expand_Array_Aggregate): Do not exclude aggregates of bit-packed |
| 253 |
array types in object declarations from in-place expansion. |
| 254 |
* sem_eval.adb (Eval_Indexed_Component): Do not attempt a constant |
| 255 |
evaluation for a bit-packed array type. |
| 256 |
|
| 257 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 258 |
|
| 259 |
* sem_ch3.adb (Access_Subprogram_Declaration): Replace assertion with |
| 260 |
more defensive code. |
| 261 |
|
| 262 |
2024-12-12 Viljar Indus <[email protected]> |
| 263 |
|
| 264 |
* errout.adb (Write_JSON_Location): Avoid going through |
| 265 |
symbolic links when printing the full name. |
| 266 |
|
| 267 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 268 |
|
| 269 |
* libgnat/s-imager.adb (Image_Floating_Point): Tweak display of |
| 270 |
invalid floating point values. |
| 271 |
|
| 272 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 273 |
|
| 274 |
* sem_ch3.adb (Access_Definition): Remove test for task entry context. |
| 275 |
* sem_ch6.adb (Process_Formals): Add improved test for task entry |
| 276 |
context. |
| 277 |
|
| 278 |
2024-12-12 Piotr Trojanek <[email protected]> |
| 279 |
|
| 280 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Move call |
| 281 |
to Comes_From_Source to the outer if-statement. |
| 282 |
|
| 283 |
2024-12-12 Piotr Trojanek <[email protected]> |
| 284 |
|
| 285 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Only set |
| 286 |
flag Is_Null_Loop when loop parameter specification comes from |
| 287 |
a loop and not from a quantified expression. |
| 288 |
|
| 289 |
2024-12-12 Eric Botcazou <[email protected]> |
| 290 |
|
| 291 |
* exp_aggr.adb (Expand_Array_Aggregate): Do not exclude aggregates |
| 292 |
of bit-packed array types in allocators from in-place expansion. |
| 293 |
|
| 294 |
2024-12-12 Sebastian Poeplau <[email protected]> |
| 295 |
|
| 296 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Move |
| 297 |
the LLVM chapter one level up. |
| 298 |
* gnat_ugn.texi: Regenerate. |
| 299 |
|
| 300 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 301 |
|
| 302 |
* sem_eval.ads (Is_OK_Static_Expression_Of_Type): New function. |
| 303 |
* sem_eval.adb (Is_OK_Static_Expression_Of_Type): Likewise. |
| 304 |
* sem_ch13.adb (Check_Expr_Is_OK_Static_Expression): Use new function. |
| 305 |
* sem_prag.adb (Check_Expr_Is_OK_Static_Expression): Likewise. |
| 306 |
* sem_ch3.adb (Apply_External_Initialization): Accept static strings |
| 307 |
for the parameter. |
| 308 |
|
| 309 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 310 |
|
| 311 |
* libgnat/a-tifiio.adb: Fix comment. |
| 312 |
* libgnat/a-tifiio__128.adb: Likewise. |
| 313 |
* libgnat/s-imaged.ads (Image_Decimal): Likewise. |
| 314 |
* libgnat/s-imagef.ads (Image_Fixed): Likewise. |
| 315 |
* libgnat/s-imager.ads (Image_Fixed_Point): Likewise. |
| 316 |
* libgnat/s-imde32.ads (Image_Decimal32): Likewise. |
| 317 |
* libgnat/s-imfi64.ads (Image_Fixed64): Likewise. |
| 318 |
* libgnat/s-imgcha.adb (Image_Character): Likewise. |
| 319 |
* libgnat/s-valuer.adb (Scan_Raw_Real): Likewise. |
| 320 |
* sem_attr.adb (Eval_Attribute): Likewise. |
| 321 |
|
| 322 |
2024-12-12 Eric Botcazou <[email protected]> |
| 323 |
|
| 324 |
* sem_attr.adb (Eval_Attribute): Treat the various size attributes |
| 325 |
like Component_Size for nonstatic array types. |
| 326 |
|
| 327 |
2024-12-12 Javier Miranda <[email protected]> |
| 328 |
|
| 329 |
* sem_res.adb (Is_Ambiguous_Operand): Add missing decoration of |
| 330 |
the operand when it is labeled overloaded but has just one |
| 331 |
interpretation. |
| 332 |
|
| 333 |
2024-12-12 Eric Botcazou <[email protected]> |
| 334 |
|
| 335 |
* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Add Target formal |
| 336 |
parameter and check that it is not a bit-aligned component or slice. |
| 337 |
Return False in CodePeer mode as well. |
| 338 |
(Build_Array_Aggr_Code): Remove redundant tests done in conjunction |
| 339 |
with a call to Aggr_Assignment_OK_For_Backend. |
| 340 |
(Expand_Array_Aggregate): Likewise. Add a couple of comments and |
| 341 |
improve formatting. |
| 342 |
|
| 343 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 344 |
|
| 345 |
* exp_attr.adb (Expand_N_Attribute_Reference): Fix computation of type |
| 346 |
category. |
| 347 |
|
| 348 |
2024-12-12 Eric Botcazou <[email protected]> |
| 349 |
|
| 350 |
* aspects.ads (Is_Representation_Aspect): True for External_Name. |
| 351 |
(Aspect_Delay): Use Rep_Aspect for External_Name, Link_Name and |
| 352 |
Linker_Section. |
| 353 |
* einfo.ads (Initialization_Statements): Document extended usage. |
| 354 |
* exp_util.adb (Needs_Initialization_Statements): Return True for |
| 355 |
all delayed aspects. |
| 356 |
* freeze.adb (Check_Address_Clause): Do not move the initialization |
| 357 |
expression here... |
| 358 |
(Freeze_Object_Declaration): ...but here instead, as well as for all |
| 359 |
delayed aspects. Remove test for pragma Linker_Section. |
| 360 |
* sem_ch13.adb (Analyze_One_Aspect): Do not delay in the Rep_Aspect |
| 361 |
case if the expression is a string literal. |
| 362 |
|
| 363 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 364 |
|
| 365 |
* libgnat/s-valuti.ads (Scan_Sign): Fix documentation comment. |
| 366 |
|
| 367 |
2024-12-12 Bob Duff <[email protected]> |
| 368 |
|
| 369 |
* exp_util.adb (Build_Task_Image_Decls): |
| 370 |
Deal properly with the case of an expanded name. |
| 371 |
Minor cleanup: use a case statement instead of if/elsif chain. |
| 372 |
|
| 373 |
2024-12-12 Eric Botcazou <[email protected]> |
| 374 |
|
| 375 |
* exp_aggr.adb (Traverse_Proc_For_Aggregate): New generic procedure. |
| 376 |
(Replace_Discriminants): Instantiate it instead of Traverse_Proc. |
| 377 |
(Replace_Self_Reference): Likewise. |
| 378 |
(Convert_To_Assignments): Remove limitation for nested aggregates |
| 379 |
that contain self-references. |
| 380 |
|
| 381 |
2024-12-12 Eric Botcazou <[email protected]> |
| 382 |
|
| 383 |
* exp_ch4.adb (Expand_N_Case_Expression): Remove obsolete comment |
| 384 |
about C code generation. Do not create a useless target type if |
| 385 |
the parent statement is rewritten instead of the expression. Use |
| 386 |
a nonnull accesss type for the expansion done for composite types. |
| 387 |
(Expand_N_If_Expression): Simplify the expansion when the condition |
| 388 |
is known at compile time. Apply the expansion done for by-reference |
| 389 |
types to indefinite types and remove the obsolete special case for |
| 390 |
unconstrained array types Use a nonnull access type in this case. |
| 391 |
Rename New_If local variable to If_Stmt for the sake of consistency. |
| 392 |
|
| 393 |
2024-12-12 Eric Botcazou <[email protected]> |
| 394 |
|
| 395 |
* exp_ch7.adb (Make_Address_For_Finalize): Look at the underlying |
| 396 |
subtype to detect the unconstrained array type case. |
| 397 |
* sprint.adb (Write_Itype) <E_Private_Subtype>: New case. |
| 398 |
|
| 399 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 400 |
|
| 401 |
* doc/gnat_rm/gnat_language_extensions.rst: Update |
| 402 |
External_Initialization section. |
| 403 |
* gnat_rm.texi: Regenerate. |
| 404 |
* gnat_ugn.texi: Regenerate. |
| 405 |
|
| 406 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 407 |
|
| 408 |
* fname.adb (Is_Predefined_File_Name): Tweak test. |
| 409 |
|
| 410 |
2024-12-12 Ronan Desplanques <[email protected]> |
| 411 |
|
| 412 |
* sem_ch3.adb (Apply_External_Initialization): Restrict File lookup. |
| 413 |
|
| 414 |
2024-12-12 Eric Botcazou <[email protected]> |
| 415 |
|
| 416 |
* einfo.ads (Initialization_Statements): Document usage precisely. |
| 417 |
* exp_aggr.adb (Convert_Aggr_In_Object_Decl): Do not create a |
| 418 |
compound statement in most cases, do it only if necessary. |
| 419 |
* exp_ch3.adb (Expand_N_Object_Declaration): Remove a couple of |
| 420 |
useless statements. |
| 421 |
* exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): |
| 422 |
Use the Initialization_Statements mechanism if necessary. |
| 423 |
* exp_ch7.adb: Remove clauses for Aspects package. |
| 424 |
(Insert_Actions_In_Scope_Around): Use the support code of Exp_Util |
| 425 |
for the Initialization_Statements mechanism. |
| 426 |
* exp_prag.adb (Undo_Initialization): Remove obsolete code. |
| 427 |
* exp_util.ads (Move_To_Initialization_Statements): New procedure. |
| 428 |
(Needs_Initialization_Statements): New function. |
| 429 |
* exp_util.adb (Move_To_Initialization_Statements): New procedure. |
| 430 |
(Needs_Initialization_Statements): New predicate. |
| 431 |
|
| 432 |
2024-12-12 Viljar Indus <[email protected]> |
| 433 |
|
| 434 |
* exp_ch6.adb (Expand_Ctrl_Function_Call): Avoid expansion |
| 435 |
of controlled types when the LHS is a function call. |
| 436 |
|
| 437 |
2024-12-12 Daniel King <[email protected]> |
| 438 |
|
| 439 |
* init.c (__gnat_error_handler): Handle SIGPROT |
| 440 |
(__gnat_install_handler): Install SIGPROT handler |
| 441 |
|
| 442 |
2024-12-12 Daniel King <[email protected]> |
| 443 |
|
| 444 |
* libgnat/i-cheri-exceptions.ads: Export CHERI exception IDs. |
| 445 |
|
| 446 |
2024-12-12 Johannes Kliemann <[email protected]> |
| 447 |
|
| 448 |
* exp_ch9.adb (Expand_N_Task_Type_Declaration): Take |
| 449 |
Minimum_Stack_Size into account when preallocating task stacks. |
| 450 |
* rtsfind.ads (RE_Id, RE_Unit_Table): Add RE_Minimum_Stack_Size. |
| 451 |
|
| 452 |
2024-12-11 Samuel Thibault <[email protected]> |
| 453 |
|
| 454 |
* Makefile.rtl: Add x86_64-pc-gnu section. |
| 455 |
|
| 456 |
2024-12-11 Samuel Thibault <[email protected]> |
| 457 |
|
| 458 |
* libgnat/system-gnu.ads: New file. |
| 459 |
* Makefile.rtl (x86-gnuhurd): Use libgnat/system-gnu.ads instead of |
| 460 |
libgnat/system-freebsd.ads. |
| 461 |
|
| 462 |
2024-12-11 Samuel Thibault <[email protected]> |
| 463 |
|
| 464 |
* libgnarl/a-intnam__freebsd.ads: Rename to... |
| 465 |
* libgnarl/a-intnam__bsd.ads: ... new file. |
| 466 |
* libgnarl/a-intnam__dragonfly.ads: Remove file. |
| 467 |
* Makefile.rtl (x86-kfreebsd, x86-gnuhurd, x86_64-kfreebsd, |
| 468 |
aarch64-freebsd, x86-freebsd, x86_64-freebsd): Use |
| 469 |
libgnarl/a-intnam__bsd.ads instead of libgnarl/a-intnam__freebsd.ads. |
| 470 |
(x86_64-dragonfly): Use libgnarl/a-intnam__bsd.ads instead of |
| 471 |
libgnarl/a-intnam__dragonfly.ads. |
| 472 |
|
| 473 |
2024-11-26 Eric Botcazou <[email protected]> |
| 474 |
|
| 475 |
* gcc-interface/trans.cc (Attribute_to_gnu) <Attr_Access>: Do not |
| 476 |
pass ATTR_ADDR_EXPR to build_unary_op for 'Unrestricted_Access. |
| 477 |
|
| 478 |
2024-11-26 Eric Botcazou <[email protected]> |
| 479 |
|
| 480 |
* exp_ch3.adb (Expand_N_Object_Declaration): Do not insert the tag |
| 481 |
assignment there if the object has the Address aspect. |
| 482 |
* exp_ch7.adb: Add clauses for Aspect package. |
| 483 |
(Build_Finalizer.Process_Object_Declaration): Deal with an object |
| 484 |
with delayed freezing. |
| 485 |
(Insert_Actions_In_Scope_Around): If the target is the declaration |
| 486 |
of an object with address clause or aspect, move all the statements |
| 487 |
that have been inserted after it into the Initialization_Statements |
| 488 |
list of the object. |
| 489 |
* freeze.adb (Check_Address_Clause): Do not reassign the tag here, |
| 490 |
instead set the appropriate flag on the assignment statement. |
| 491 |
|
| 492 |
2024-11-26 Eric Botcazou <[email protected]> |
| 493 |
|
| 494 |
* sem_res.adb (Valid_Conversion): Do not initialize Opnd_Type before |
| 495 |
calling Get_Corresponding_Mutably_Tagged_Type_If_Present. |
| 496 |
|
| 497 |
2024-11-26 Eric Botcazou <[email protected]> |
| 498 |
|
| 499 |
* sem_ch13.adb (Analyze_Aspect_Export_Import): Add explicit mention |
| 500 |
of the declaration in the error message for the Import. |
| 501 |
* sem_prag.adb (Process_Extended_Import_Export_Object_Pragma): Also |
| 502 |
test Has_Init_Expression on the declaration node for Import_Object |
| 503 |
and use the same wording as that of Import. |
| 504 |
(Process_Import_Or_Interface): Also test Has_Init_Expression on the |
| 505 |
declaration node for Import. |
| 506 |
|
| 507 |
2024-11-26 Javier Miranda <[email protected]> |
| 508 |
|
| 509 |
* sem_ch2.adb (Check_Ambiguous_Call): Replace code factorized |
| 510 |
code by call to the new subprogram Is_Ambiguous_Operand. |
| 511 |
* sem_res.ads (Is_Ambiguous_Operand): New subprogram that |
| 512 |
factorizes previous code in Check_Ambiguous_Call and |
| 513 |
Valid_Conversion. |
| 514 |
* sem_res.adb (Is_Ambiguous_Operand): New subprogram. |
| 515 |
(Valid_Tagged_Conversion): Replace factorized code by call to |
| 516 |
the new subprogram Is_Ambiguous_Operand. |
| 517 |
(Report_Error_N): New subprogram. |
| 518 |
(Report_Error_NE): New subprogram. |
| 519 |
(Report_Interpretation): New subprogram. |
| 520 |
(Conversion_Error_N): Removed; replaced by Report_Error_N. |
| 521 |
(Conversion_Error_NE): Removed; replaced by Report_Error_NE. |
| 522 |
(Valid_Conversion): Update Opnd_Type after the call to |
| 523 |
Is_Ambiguous_Operand in the overloaded case. |
| 524 |
|
| 525 |
2024-11-26 Viljar Indus <[email protected]> |
| 526 |
|
| 527 |
* errout.adb: Remove implmentation of Write_Error_Summary. |
| 528 |
* erroutc.adb: Add implemenetation of Write_Error_Summary. |
| 529 |
* erroutc.ads: Add spec of Write_Error_Summary. |
| 530 |
* errutil.adb: Remove implementation for writing the error summary. |
| 531 |
|
| 532 |
2024-11-26 Viljar Indus <[email protected]> |
| 533 |
|
| 534 |
* errout.adb: Remove implemntation of Set_Msg_Insertion_Column. |
| 535 |
* erroutc.adb: Add implementation of Set_Msg_Insertion_Column. |
| 536 |
* erroutc.ads: Add spec of Set_Msg_Insertion_Column. |
| 537 |
* errutil.adb: Remove implementation of Set_Msg_Insertion_Column. |
| 538 |
|
| 539 |
2024-11-26 Viljar Indus <[email protected]> |
| 540 |
|
| 541 |
* errout.adb: Set Warn_Err as true if Is_Runtime_Error was |
| 542 |
set in the error message. |
| 543 |
* erroutc.adb: Remove instances of Warn_Runtime_Raise. |
| 544 |
* erroutc.ads: Likewise. |
| 545 |
* errutil.adb: Likewise. |
| 546 |
|
| 547 |
2024-11-26 Viljar Indus <[email protected]> |
| 548 |
|
| 549 |
* errout.adb: Use Is_Redundant_Error_Message. |
| 550 |
* erroutc.adb: Move the common code for checking if a message |
| 551 |
can be removed to Is_Redundant_Error_Message. |
| 552 |
* erroutc.ads: Add definition of Is_Redundant_Error_Message. |
| 553 |
* errutil.adb: Use Is_Redundant_Error_Message. |
| 554 |
|
| 555 |
2024-11-26 Viljar Indus <[email protected]> |
| 556 |
|
| 557 |
* errout.ads: Remove Current_Node. |
| 558 |
* errout.adb: Remove uses of Current_Node. |
| 559 |
* par-ch6.adb: Same as above. |
| 560 |
* par-ch7.adb: Same as above. |
| 561 |
* par-ch9.adb: Same as above. |
| 562 |
|
| 563 |
2024-11-26 Viljar Indus <[email protected]> |
| 564 |
|
| 565 |
* err_vars.ads: Remove Raise_Exception_On_Error and |
| 566 |
Error_Msg_Exception. |
| 567 |
* errout.ads: Same as above. |
| 568 |
* errout.adb: Remove uses of Raise_Exception_On_Error and |
| 569 |
Error_Msg_Exception. |
| 570 |
* errutil.adb: Same as above. |
| 571 |
|
| 572 |
2024-11-26 Viljar Indus <[email protected]> |
| 573 |
|
| 574 |
* diagnostics-converter.adb: Use new enum values instead |
| 575 |
of the old attributes. |
| 576 |
* diagnostics-switch_repository.adb: Same as above. |
| 577 |
* diagnostics-utils.adb: Same as above. |
| 578 |
* diagnostics.adb: Same as above. |
| 579 |
* diagnostics.ads: Same as above. |
| 580 |
* errout.adb: Same as above. |
| 581 |
* erroutc.adb: Same as above. |
| 582 |
* erroutc.ads: Remove old attriubtes and replace them |
| 583 |
with Error_Msg_Kind. |
| 584 |
* errutil.adb: Same as others. |
| 585 |
|
| 586 |
2024-11-26 Viljar Indus <[email protected]> |
| 587 |
|
| 588 |
* errout.adb: Use Output_Msg_Location |
| 589 |
* erroutc.adb: add common implementation for printing the |
| 590 |
error message line. |
| 591 |
* erroutc.ads: Add new method Output_Msg_Location |
| 592 |
* errutil.adb: use Output_Msg_Location |
| 593 |
|
| 594 |
2024-11-26 Viljar Indus <[email protected]> |
| 595 |
|
| 596 |
* diagnostics-converter.adb: Remove uses of Info_Warning type. Use |
| 597 |
common constructors to simplify implementation. |
| 598 |
* diagnostics-pretty_emitter.adb: Remove Info_Warning type. |
| 599 |
* diagnostics-utils.adb: Remove uses of Info_Warning. |
| 600 |
* diagnostics.adb: Simplify implementation of Primary_Location. |
| 601 |
* diagnostics.ads: Remove Info_Warning type. |
| 602 |
|
| 603 |
2024-11-26 Jose Ruiz <[email protected]> |
| 604 |
|
| 605 |
* doc/gnat_ugn/the_gnat_compilation_model.rst: The format of |
| 606 |
the ali file is documented in lib-writ.ads. |
| 607 |
* gnat_ugn.texi: Regenerate. |
| 608 |
|
| 609 |
2024-11-26 Ronan Desplanques <[email protected]> |
| 610 |
|
| 611 |
* uname.ads (Is_Internal_Unit_Name, Is_Predefined_Unit_Name): Change |
| 612 |
specifications to take a Unit_Name_Type as input. |
| 613 |
(Encoded_Library_Unit_Name): New subprogram. |
| 614 |
(Is_Predefined_Unit_Name): New overloaded subprogram. |
| 615 |
(Get_External_Unit_Name_String): Make use of new |
| 616 |
Encoded_Library_Unit_Name subprogram. |
| 617 |
* uname.adb (Is_Internal_Unit_Name, Is_Predefined_Unit_Name): Adapt |
| 618 |
bodies to specification changes. |
| 619 |
* fname-uf.adb (Get_File_Name): Adapt to Uname interface changes. |
| 620 |
|
| 621 |
2024-11-26 Ronan Desplanques <[email protected]> |
| 622 |
|
| 623 |
* fname-uf.adb (Get_File_Name): Use local name buffers. |
| 624 |
|
| 625 |
2024-11-26 Ronan Desplanques <[email protected]> |
| 626 |
|
| 627 |
* sem_util.adb (Get_Library_Unit_Name): Improve use of Uname. |
| 628 |
|
| 629 |
2024-11-26 Eric Botcazou <[email protected]> |
| 630 |
|
| 631 |
* freeze.adb: Remove clauses for Exp_Ch3. |
| 632 |
(Check_Address_Clause): Always reassign the tag for an object of a |
| 633 |
tagged type if there is an initialization expression. |
| 634 |
|
| 635 |
2024-11-23 Maciej W. Rozycki <[email protected]> |
| 636 |
|
| 637 |
* gcc-interface/Make-lang.in (gnattools): Remove $(GCC_PARTS). |
| 638 |
|
| 639 |
2024-11-22 Andrew Pinski <[email protected]> |
| 640 |
|
| 641 |
PR bootstrap/117737 |
| 642 |
* gcc-interface/misc.cc (INCLUDE_MEMORY): Remove. |
| 643 |
* gcc-interface/trans.cc (INCLUDE_MEMORY): Remove. |
| 644 |
* gcc-interface/utils.cc (INCLUDE_MEMORY): Remove. |
| 645 |
|
| 646 |
2024-11-21 Jakub Jelinek <[email protected]> |
| 647 |
|
| 648 |
PR c/117024 |
| 649 |
* gcc-interface/utils.cc (flag_isoc2y): New variable. |
| 650 |
|
| 651 |
2024-11-20 Eric Botcazou <[email protected]> |
| 652 |
|
| 653 |
PR ada/117538 |
| 654 |
PR ada/117708 |
| 655 |
* Makefile.rtl (GNU Hurd): Add $(TRASYM_DWARF_UNIX_PAIRS). |
| 656 |
(x86-64 kfreebsd): Likewise. |
| 657 |
(aarch64 FreeBSD): Likewise. |
| 658 |
(x86-64 DragonFly): Likewise. |
| 659 |
(S390 Linux): Likewise and add Linux version of s-tsmona.adb. |
| 660 |
(Mips Linux): Likewise. |
| 661 |
(SPARC Linux): Likewise. |
| 662 |
(HP/PA Linux): Linux. |
| 663 |
(M68K Linux): Likewise. |
| 664 |
(SH4 Linux): Likewise. |
| 665 |
(Alpha Linux): Likewise. |
| 666 |
(RISC-V Linux): Likewise. |
| 667 |
|
| 668 |
2024-11-19 Eric Botcazou <[email protected]> |
| 669 |
|
| 670 |
PR ada/117538 |
| 671 |
* Makefile.rtl (GNU Hurd): Add $(TRASYM_DWARF_UNIX_OBJS). |
| 672 |
(x86-64 kfreebsd): Likewise. |
| 673 |
(aarch64 FreeBSD): Likewise. |
| 674 |
(x86-64 DragonFly): Likewise. |
| 675 |
(S390 Linux): Likewise. |
| 676 |
(Mips Linux): Likewise. |
| 677 |
(SPARC Linux): Likewise. |
| 678 |
(HP/PA Linux): Linux. |
| 679 |
(M68K Linux): Likewise. |
| 680 |
(SH4 Linux): Likewise. |
| 681 |
(Alpha Linux): Likewise. |
| 682 |
(RISC-V Linux): Likewise. |
| 683 |
|
| 684 |
2024-11-19 Eric Botcazou <[email protected]> |
| 685 |
|
| 686 |
* exp_util.ads (Within_Case_Or_If_Expression): Rename into... |
| 687 |
(Within_Conditional_Expression): ...this. |
| 688 |
* exp_util.adb (Within_Case_Or_If_Expression): Rename into... |
| 689 |
(Within_Conditional_Expression): ...this. |
| 690 |
* checks.adb (Install_Null_Excluding_Check): Adjust for renaming. |
| 691 |
|
| 692 |
2024-11-19 Eric Botcazou <[email protected]> |
| 693 |
|
| 694 |
* exp_aggr.adb (Build_Assignment_With_Temporary): Inline into... |
| 695 |
(Build_Array_Aggr_Code): ...this. Set the Analyzed flag on the |
| 696 |
relocated aggregate if it is to be handled by the back-end. |
| 697 |
|
| 698 |
2024-11-19 Eric Botcazou <[email protected]> |
| 699 |
|
| 700 |
* exp_ch3.adb: Remove clauses for Expander. |
| 701 |
(Expand_N_Object_Declaration): Remove special processing for delayed |
| 702 |
aggregates of limited types as initialization expressions. |
| 703 |
* freeze.adb (Warn_Overlay): Bail out if No_Initialization is set on |
| 704 |
the declaration node of the entity. |
| 705 |
* sem_ch3.adb (Delayed_Aspect_Present): Delete. |
| 706 |
(Expand_N_Object_Declaration): Do not block the resolution of the |
| 707 |
initialization expression that is an aggregate when the object has |
| 708 |
an address clause or delayed aspects. |
| 709 |
|
| 710 |
2024-11-18 Eric Botcazou <[email protected]> |
| 711 |
|
| 712 |
* exp_ch4.adb (Expand_N_Case_Expression): Remove the test on |
| 713 |
enclosing predicate function for the return optimization. |
| 714 |
Rewrite it in the general case to catch all nondynamic predicates. |
| 715 |
(Expand_N_If_Expression): Remove the test on enclosing predicate |
| 716 |
function for the return optimization. |
| 717 |
|
| 718 |
2024-11-18 Bob Duff <[email protected]> |
| 719 |
|
| 720 |
* doc/gnat_rm/implementation_defined_characteristics.rst: |
| 721 |
Remove Atomic_Synchronization. |
| 722 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: |
| 723 |
Likewise. |
| 724 |
* doc/gnat_rm/implementation_defined_pragmas.rst: DRY. |
| 725 |
Consolidate documentation of Disable/Enable_Atomic_Synchronization. |
| 726 |
* checks.adb: Comment fix. |
| 727 |
* exp_util.ads: Likewise. |
| 728 |
* targparm.ads: Likewise. |
| 729 |
* types.ads: Likewise. |
| 730 |
* gnat1drv.adb: Likewise. DRY. |
| 731 |
* sem_prag.adb (Process_Disable_Enable_Atomic_Sync): |
| 732 |
Change name of Atomic_Synchronization to start with |
| 733 |
underscore. |
| 734 |
(Process_Suppress_Unsuppress): No need to check Comes_From_Source for |
| 735 |
Atomic_Synchronization anymore; _Atomic_Synchronization can never |
| 736 |
come from source. (Anyway, it shouldn't be ignored; it should be |
| 737 |
an error.) |
| 738 |
* snames.ads-tmpl (Atomic_Synchronization): |
| 739 |
Change name to start with underscore. |
| 740 |
* switch-c.adb (Scan_Front_End_Switches): |
| 741 |
Minor cleanup: Use 'in'. |
| 742 |
* gnat_rm.texi: Regenerate. |
| 743 |
* gnat_ugn.texi: Regenerate. |
| 744 |
|
| 745 |
2024-11-18 Eric Botcazou <[email protected]> |
| 746 |
|
| 747 |
* sem_eval.adb (Eval_Indexed_Component): Clear Do_Range_Check on |
| 748 |
the expressions if Kill_Range_Check is set on the node. |
| 749 |
|
| 750 |
2024-11-18 Eric Botcazou <[email protected]> |
| 751 |
|
| 752 |
* exp_util.adb (Remove_Init_Call): Rewrite a compound statement in |
| 753 |
the Initialization_Statements of the variable as a null statement |
| 754 |
instead of removing it. |
| 755 |
* freeze.adb (Explode_Initialization_Compound_Statement): Small |
| 756 |
comment tweaks. |
| 757 |
|
| 758 |
2024-11-18 Eric Botcazou <[email protected]> |
| 759 |
|
| 760 |
* exp_aggr.adb (UI_Are_In_Int_Range): New predicate. |
| 761 |
(Aggr_Size_OK): Use it. |
| 762 |
(Flatten): Likewise. |
| 763 |
(Packed_Array_Aggregate_Handled): Likewise. |
| 764 |
(Static_Array_Aggregate): Likewise. |
| 765 |
|
| 766 |
2024-11-18 Eric Botcazou <[email protected]> |
| 767 |
|
| 768 |
* freeze.ads (Explode_Initialization_Compound_Statement): Adjust the |
| 769 |
description. |
| 770 |
* freeze.adb (Explode_Initialization_Compound_Statement): If the |
| 771 |
entity has its freezing delayed, append the initialization actions |
| 772 |
to its freeze actions. |
| 773 |
(Freeze_Object_Declaration): Remove commented out code. |
| 774 |
(Freeze_Entity): Remove bypass for object of anonymous array type. |
| 775 |
|
| 776 |
2024-11-18 Eric Botcazou <[email protected]> |
| 777 |
|
| 778 |
* exp_sel.ads (Build_Abort_Block): Remove second parameter and |
| 779 |
rename the third. |
| 780 |
(Build_Abort_Block_Handler): Fix description. |
| 781 |
* exp_sel.adb (Build_Abort_Block): Remove second parameter, rename |
| 782 |
the third and adjust accordingly. |
| 783 |
* exp_ch9.adb (Expand_N_Asynchronous_Select): Fix the description |
| 784 |
of the exception handler throughout. Remove Abort_Block_Ent and |
| 785 |
Hdle local variables. Call Build_Abort_Block consistently to build |
| 786 |
the abort block and adjust existing calls. |
| 787 |
|
| 788 |
2024-11-18 Steve Baird <[email protected]> |
| 789 |
|
| 790 |
* exp_aggr.adb (Convert_To_Positional.Flatten): Avoid raising |
| 791 |
Constraint_Error in UI_To_Int by testing UI_Is_In_Int_Range first. |
| 792 |
|
| 793 |
2024-11-18 Eric Botcazou <[email protected]> |
| 794 |
|
| 795 |
* exp_aggr.adb (Build_Array_Aggr_Code): Build the simple assignment |
| 796 |
for the case of an aggregate that can be handled by the back end. |
| 797 |
(Expand_Array_Aggregate): Adjust description of the processing. |
| 798 |
Move handling of declaration case to STEP 4 and remove handling of |
| 799 |
the case of an aggregate that can be processed by the back end. |
| 800 |
(Late_Expansion): Likewise for the second part. |
| 801 |
* exp_ch3.adb (Expand_N_Object_Declaration): Deal with a delayed |
| 802 |
aggregate synthesized for the default initialization, if any. |
| 803 |
* sem_eval.adb (Eval_Indexed_Component): Bail out for the name of |
| 804 |
an assignment statement. |
| 805 |
|
| 806 |
2024-11-18 Eric Botcazou <[email protected]> |
| 807 |
|
| 808 |
* exp_aggr.adb (In_Place_Assign_OK): Remove handling of allocators |
| 809 |
and call Must_Slide instead of implementing the check manually. |
| 810 |
(Convert_To_Assignments): Adjust outdated comment. |
| 811 |
(Expand_Array_Aggregate): Move handling of allocator case to STEP 3 |
| 812 |
and call Must_Slide directly for it. |
| 813 |
(Must_Slide): Replace tests based on Is_OK_Static_Expression with |
| 814 |
tests based on Compile_Time_Known_Value. |
| 815 |
|
| 816 |
2024-11-18 Eric Botcazou <[email protected]> |
| 817 |
|
| 818 |
* exp_aggr.adb (Convert_Array_Aggr_In_Allocator): Delete. |
| 819 |
(Convert_Aggr_In_Allocator): Do not call above procedure. |
| 820 |
(Late_Expansion): Deal with a target that is the dereference of a |
| 821 |
prefix with a Storage_Model. Remove an useless actual parameter |
| 822 |
in the call to Build_Array_Aggr_Code. |
| 823 |
|
| 824 |
2024-11-18 Javier Miranda <[email protected]> |
| 825 |
|
| 826 |
* sem_res.adb (Resolve_Actuals): Add by default a null-exclusion |
| 827 |
check on the prefix of the call when it is an access-type; it can |
| 828 |
be disabled using -gnatd_P. |
| 829 |
* debug.adb (gnatd_P): Update documentation. |
| 830 |
|
| 831 |
2024-11-18 squirek <[email protected]> |
| 832 |
|
| 833 |
* accessibility.adb (Accessibility_Level): Handle the Input attribute |
| 834 |
case |
| 835 |
|
| 836 |
2024-11-18 Ronan Desplanques <[email protected]> |
| 837 |
|
| 838 |
* frontend.adb (Frontend): tweak test for predefined main unit. |
| 839 |
|
| 840 |
2024-11-14 Eric Botcazou <[email protected]> |
| 841 |
|
| 842 |
* gcc-interface/decl.cc (elaborate_expression_2): Do not divide and |
| 843 |
multiply back if the alignment factor is already explicit. |
| 844 |
|
| 845 |
2024-11-14 Steve Baird <[email protected]> |
| 846 |
|
| 847 |
* sem_aggr.adb (Resolve_Delta_Aggregate): The rule about |
| 848 |
discriminant dependent component references in choices applies to |
| 849 |
both array and record delta aggregates, so check for violations in |
| 850 |
Resolve_Delta_Aggregate. Call a new procedure, |
| 851 |
Check_For_Bad_Dd_Component_Choice, for each choice. |
| 852 |
(Resolve_Delta_Record_Aggregate): Call a new procedure, |
| 853 |
Check_For_Bad_Overlap, for each pair of choices. |
| 854 |
|
| 855 |
2024-11-14 Ronan Desplanques <[email protected]> |
| 856 |
|
| 857 |
* bindgen.adb (Gen_Elab_Calls): Tweak test. |
| 858 |
(Gen_Elab_Externals): Likewise. |
| 859 |
|
| 860 |
2024-11-14 Claire Dross <[email protected]> |
| 861 |
|
| 862 |
* libgnat/a-strmap.adb: Add assert to regain proofs. |
| 863 |
* libgnat/a-strsup.adb: Likewise. |
| 864 |
* libgnat/s-aridou.adb: Add assertions to regain proofs. |
| 865 |
* libgnat/s-arit32.adb: Use Exceptional_Cases to specify Raise. |
| 866 |
* libgnat/s-arit64.adb: Use Round_Quatient from Impl instead of |
| 867 |
redefining it. |
| 868 |
* libgnat/s-arit64.ads: Likewise. |
| 869 |
* libgnat/s-expmod.adb: Regain proof of lemma. |
| 870 |
* libgnat/s-exponn.adb: Likewise. |
| 871 |
* libgnat/s-expont.adb: Likewise. |
| 872 |
* libgnat/s-imgboo.adb: Add local lemma to regain proof. |
| 873 |
* libgnat/s-valuti.ads: Add Always_Terminates on Bad_Value. |
| 874 |
|
| 875 |
2024-11-14 Eric Botcazou <[email protected]> |
| 876 |
|
| 877 |
* libgnat/s-imagef.ads (Image_Fixed): Adjust outdated sentence. |
| 878 |
|
| 879 |
2024-11-14 Eric Botcazou <[email protected]> |
| 880 |
|
| 881 |
* sem_ch13.adb (Record_Hole_Check): Deal consistently with the base |
| 882 |
type throughout the processing. Return if its declaration is not a |
| 883 |
full type declaration. Assert that its record definition is either |
| 884 |
a derived type definition or a record definition. If the type has a |
| 885 |
private declaration that does not specify unknown discriminants, use |
| 886 |
it as the source of discriminant specifications, if any. |
| 887 |
(Check_Component_List): Process every N_Discriminant_Specification |
| 888 |
but assert that its defining identifier is really a discriminant. |
| 889 |
|
| 890 |
2024-11-14 Eric Botcazou <[email protected]> |
| 891 |
|
| 892 |
* libgnat/s-aridou.ads (Add_With_Ovflo_Check): Adjust description. |
| 893 |
(Subtract_With_Ovflo_Check): Likewise. |
| 894 |
(Multiply_With_Ovflo_Check): Likewise. |
| 895 |
(Scaled_Divide): Likewise. |
| 896 |
(Double_Divide): Likewise. |
| 897 |
* libgnat/s-arit64.ads (Multiply_With_Ovflo_Check64): Likewise. |
| 898 |
* libgnat/s-arit128.ads (Multiply_With_Ovflo_Check128): Likewise. |
| 899 |
|
| 900 |
2024-11-14 Eric Botcazou <[email protected]> |
| 901 |
|
| 902 |
PR ada/112524 |
| 903 |
PR ada/113781 |
| 904 |
* par-ch4.adb (P_Primary) <Tok_For>: Give an error about missing |
| 905 |
parentheses in the (purported) iterated component case too. |
| 906 |
(P_Unparen_Cond_Expr_Etc): Likewise. |
| 907 |
* sem.adb (Analyze): Raise PE on N_Iterated_Component_Association. |
| 908 |
* sem_util.ads (Diagnose_Iterated_Component_Association): Delete. |
| 909 |
* sem_util.adb (Diagnose_Iterated_Component_Association): Likewise. |
| 910 |
|
| 911 |
2024-11-12 Marc Poulhiès <[email protected]> |
| 912 |
|
| 913 |
* gcc-interface/Makefile.in: Remove extra 'with'. |
| 914 |
|
| 915 |
2024-11-12 squirek <[email protected]> |
| 916 |
|
| 917 |
* exp_ch3.adb (Build_Assignment): Add condition to fetch corresponding |
| 918 |
record types for concurrent tagged types. |
| 919 |
|
| 920 |
2024-11-12 Eric Botcazou <[email protected]> |
| 921 |
|
| 922 |
* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Use a type sized |
| 923 |
from the index type to compute the length. Simplify and remove |
| 924 |
useless calls to New_Copy_Tree for this computation. |
| 925 |
|
| 926 |
2024-11-12 Pat Bernardi <[email protected]> |
| 927 |
|
| 928 |
* libgnarl/a-dynpri.ads: Add design annotations. |
| 929 |
* libgnarl/a-reatim.ads: Likewise. |
| 930 |
* libgnarl/a-synbar.ads: Likewise. |
| 931 |
* libgnarl/a-taside.ads: Likewise. |
| 932 |
* libgnarl/s-tarest.ads: Likewise. |
| 933 |
* libgnarl/s-tasinf.ads: Likewise. |
| 934 |
* libgnarl/s-taspri__posix.ads: Likewise. |
| 935 |
* libgnarl/s-tpobmu.ads: Likewise. |
| 936 |
* libgnat/a-assert.ads: Likewise. |
| 937 |
* libgnat/a-comlin.ads: Likewise. |
| 938 |
* libgnat/a-nbnbig.ads: Likewise. |
| 939 |
* libgnat/a-nubinu.ads: Likewise. |
| 940 |
* libgnat/a-numeri.ads: Likewise. |
| 941 |
* libgnat/a-unccon.ads: Likewise. |
| 942 |
* libgnat/a-uncdea.ads: Likewise. |
| 943 |
* libgnat/ada.ads: Likewise. |
| 944 |
* libgnat/g-debuti.ads: Likewise. |
| 945 |
* libgnat/g-sestin.ads: Likewise. |
| 946 |
* libgnat/g-souinf.ads: Likewise. |
| 947 |
* libgnat/gnat.ads: Likewise. |
| 948 |
* libgnat/i-cexten.ads: Likewise. |
| 949 |
* libgnat/i-cexten__128.ads: Likewise. |
| 950 |
* libgnat/i-cstrin.adb: Likewise. |
| 951 |
* libgnat/i-cstrin.ads: Likewise. |
| 952 |
* libgnat/interfac__2020.ads: Likewise. |
| 953 |
* libgnat/machcode.ads: Likewise. |
| 954 |
* libgnat/s-addope.ads: Likewise. |
| 955 |
* libgnat/s-aridou.ads: Likewise. |
| 956 |
* libgnat/s-arit32.ads: Likewise. |
| 957 |
* libgnat/s-arit64.ads: Likewise. |
| 958 |
* libgnat/s-assert.ads: Likewise. |
| 959 |
* libgnat/s-atacco.ads: Likewise. |
| 960 |
* libgnat/s-atocou.ads: Likewise. |
| 961 |
* libgnat/s-atocou__builtin.adb: Likewise. |
| 962 |
* libgnat/s-atopri.ads: Likewise. |
| 963 |
* libgnat/s-bitops.ads: Likewise. |
| 964 |
* libgnat/s-boarop.ads: Likewise. |
| 965 |
* libgnat/s-bytswa.ads: Likewise. |
| 966 |
* libgnat/s-carsi8.ads: Likewise. |
| 967 |
* libgnat/s-carun8.ads: Likewise. |
| 968 |
* libgnat/s-casi16.ads: Likewise. |
| 969 |
* libgnat/s-casi32.ads: Likewise. |
| 970 |
* libgnat/s-casi64.ads: Likewise. |
| 971 |
* libgnat/s-caun16.ads: Likewise. |
| 972 |
* libgnat/s-caun32.ads: Likewise. |
| 973 |
* libgnat/s-caun64.ads: Likewise. |
| 974 |
* libgnat/s-exnint.ads: Likewise. |
| 975 |
* libgnat/s-exnllf.ads: Likewise. |
| 976 |
* libgnat/s-exnlli.ads: Likewise. |
| 977 |
* libgnat/s-expint.ads: Likewise. |
| 978 |
* libgnat/s-explli.ads: Likewise. |
| 979 |
* libgnat/s-expllu.ads: Likewise. |
| 980 |
* libgnat/s-expmod.ads: Likewise. |
| 981 |
* libgnat/s-exponn.ads: Likewise. |
| 982 |
* libgnat/s-expont.ads: Likewise. |
| 983 |
* libgnat/s-exponu.ads: Likewise. |
| 984 |
* libgnat/s-expuns.ads: Likewise. |
| 985 |
* libgnat/s-fatflt.ads: Likewise. |
| 986 |
* libgnat/s-fatgen.ads: Likewise. |
| 987 |
* libgnat/s-fatlfl.ads: Likewise. |
| 988 |
* libgnat/s-fatllf.ads: Likewise. |
| 989 |
* libgnat/s-flocon.ads: Likewise. |
| 990 |
* libgnat/s-geveop.ads: Likewise. |
| 991 |
* libgnat/s-imageb.ads: Likewise. |
| 992 |
* libgnat/s-imaged.ads: Likewise. |
| 993 |
* libgnat/s-imagef.ads: Likewise. |
| 994 |
* libgnat/s-imagei.ads: Likewise. |
| 995 |
* libgnat/s-imagen.ads: Likewise. |
| 996 |
* libgnat/s-imageu.ads: Likewise. |
| 997 |
* libgnat/s-imagew.ads: Likewise. |
| 998 |
* libgnat/s-imde128.ads: Likewise. |
| 999 |
* libgnat/s-imde32.ads: Likewise. |
| 1000 |
* libgnat/s-imde64.ads: Likewise. |
| 1001 |
* libgnat/s-imen16.ads: Likewise. |
| 1002 |
* libgnat/s-imen32.ads: Likewise. |
| 1003 |
* libgnat/s-imenu8.ads: Likewise. |
| 1004 |
* libgnat/s-imfi32.ads: Likewise. |
| 1005 |
* libgnat/s-imfi64.ads: Likewise. |
| 1006 |
* libgnat/s-imgbiu.ads: Likewise. |
| 1007 |
* libgnat/s-imgboo.ads: Likewise. |
| 1008 |
* libgnat/s-imgcha.ads: Likewise. |
| 1009 |
* libgnat/s-imgint.ads: Likewise. |
| 1010 |
* libgnat/s-imgllb.ads: Likewise. |
| 1011 |
* libgnat/s-imglli.ads: Likewise. |
| 1012 |
* libgnat/s-imgllu.ads: Likewise. |
| 1013 |
* libgnat/s-imgllw.ads: Likewise. |
| 1014 |
* libgnat/s-imgrea.ads: Likewise. |
| 1015 |
* libgnat/s-imguns.ads: Likewise. |
| 1016 |
* libgnat/s-imguti.ads: Likewise. |
| 1017 |
* libgnat/s-imgwiu.ads: Likewise. |
| 1018 |
* libgnat/s-maccod.ads: Likewise. |
| 1019 |
* libgnat/s-multip.ads: Likewise. |
| 1020 |
* libgnat/s-pack03.ads: Likewise. |
| 1021 |
* libgnat/s-pack05.ads: Likewise. |
| 1022 |
* libgnat/s-pack06.ads: Likewise. |
| 1023 |
* libgnat/s-pack07.ads: Likewise. |
| 1024 |
* libgnat/s-pack09.ads: Likewise. |
| 1025 |
* libgnat/s-pack10.ads: Likewise. |
| 1026 |
* libgnat/s-pack100.ads: Likewise. |
| 1027 |
* libgnat/s-pack101.ads: Likewise. |
| 1028 |
* libgnat/s-pack102.ads: Likewise. |
| 1029 |
* libgnat/s-pack103.ads: Likewise. |
| 1030 |
* libgnat/s-pack104.ads: Likewise. |
| 1031 |
* libgnat/s-pack105.ads: Likewise. |
| 1032 |
* libgnat/s-pack106.ads: Likewise. |
| 1033 |
* libgnat/s-pack107.ads: Likewise. |
| 1034 |
* libgnat/s-pack108.ads: Likewise. |
| 1035 |
* libgnat/s-pack109.ads: Likewise. |
| 1036 |
* libgnat/s-pack11.ads: Likewise. |
| 1037 |
* libgnat/s-pack110.ads: Likewise. |
| 1038 |
* libgnat/s-pack111.ads: Likewise. |
| 1039 |
* libgnat/s-pack112.ads: Likewise. |
| 1040 |
* libgnat/s-pack113.ads: Likewise. |
| 1041 |
* libgnat/s-pack114.ads: Likewise. |
| 1042 |
* libgnat/s-pack115.ads: Likewise. |
| 1043 |
* libgnat/s-pack116.ads: Likewise. |
| 1044 |
* libgnat/s-pack117.ads: Likewise. |
| 1045 |
* libgnat/s-pack118.ads: Likewise. |
| 1046 |
* libgnat/s-pack119.ads: Likewise. |
| 1047 |
* libgnat/s-pack12.ads: Likewise. |
| 1048 |
* libgnat/s-pack120.ads: Likewise. |
| 1049 |
* libgnat/s-pack121.ads: Likewise. |
| 1050 |
* libgnat/s-pack122.ads: Likewise. |
| 1051 |
* libgnat/s-pack123.ads: Likewise. |
| 1052 |
* libgnat/s-pack124.ads: Likewise. |
| 1053 |
* libgnat/s-pack125.ads: Likewise. |
| 1054 |
* libgnat/s-pack126.ads: Likewise. |
| 1055 |
* libgnat/s-pack127.ads: Likewise. |
| 1056 |
* libgnat/s-pack13.ads: Likewise. |
| 1057 |
* libgnat/s-pack14.ads: Likewise. |
| 1058 |
* libgnat/s-pack15.ads: Likewise. |
| 1059 |
* libgnat/s-pack17.ads: Likewise. |
| 1060 |
* libgnat/s-pack18.ads: Likewise. |
| 1061 |
* libgnat/s-pack19.ads: Likewise. |
| 1062 |
* libgnat/s-pack20.ads: Likewise. |
| 1063 |
* libgnat/s-pack21.ads: Likewise. |
| 1064 |
* libgnat/s-pack22.ads: Likewise. |
| 1065 |
* libgnat/s-pack23.ads: Likewise. |
| 1066 |
* libgnat/s-pack24.ads: Likewise. |
| 1067 |
* libgnat/s-pack25.ads: Likewise. |
| 1068 |
* libgnat/s-pack26.ads: Likewise. |
| 1069 |
* libgnat/s-pack27.ads: Likewise. |
| 1070 |
* libgnat/s-pack28.ads: Likewise. |
| 1071 |
* libgnat/s-pack29.ads: Likewise. |
| 1072 |
* libgnat/s-pack30.ads: Likewise. |
| 1073 |
* libgnat/s-pack31.ads: Likewise. |
| 1074 |
* libgnat/s-pack33.ads: Likewise. |
| 1075 |
* libgnat/s-pack34.ads: Likewise. |
| 1076 |
* libgnat/s-pack35.ads: Likewise. |
| 1077 |
* libgnat/s-pack36.ads: Likewise. |
| 1078 |
* libgnat/s-pack37.ads: Likewise. |
| 1079 |
* libgnat/s-pack38.ads: Likewise. |
| 1080 |
* libgnat/s-pack39.ads: Likewise. |
| 1081 |
* libgnat/s-pack40.ads: Likewise. |
| 1082 |
* libgnat/s-pack41.ads: Likewise. |
| 1083 |
* libgnat/s-pack42.ads: Likewise. |
| 1084 |
* libgnat/s-pack43.ads: Likewise. |
| 1085 |
* libgnat/s-pack44.ads: Likewise. |
| 1086 |
* libgnat/s-pack45.ads: Likewise. |
| 1087 |
* libgnat/s-pack46.ads: Likewise. |
| 1088 |
* libgnat/s-pack47.ads: Likewise. |
| 1089 |
* libgnat/s-pack48.ads: Likewise. |
| 1090 |
* libgnat/s-pack49.ads: Likewise. |
| 1091 |
* libgnat/s-pack50.ads: Likewise. |
| 1092 |
* libgnat/s-pack51.ads: Likewise. |
| 1093 |
* libgnat/s-pack52.ads: Likewise. |
| 1094 |
* libgnat/s-pack53.ads: Likewise. |
| 1095 |
* libgnat/s-pack54.ads: Likewise. |
| 1096 |
* libgnat/s-pack55.ads: Likewise. |
| 1097 |
* libgnat/s-pack56.ads: Likewise. |
| 1098 |
* libgnat/s-pack57.ads: Likewise. |
| 1099 |
* libgnat/s-pack58.ads: Likewise. |
| 1100 |
* libgnat/s-pack59.ads: Likewise. |
| 1101 |
* libgnat/s-pack60.ads: Likewise. |
| 1102 |
* libgnat/s-pack61.ads: Likewise. |
| 1103 |
* libgnat/s-pack62.ads: Likewise. |
| 1104 |
* libgnat/s-pack63.ads: Likewise. |
| 1105 |
* libgnat/s-pack65.ads: Likewise. |
| 1106 |
* libgnat/s-pack66.ads: Likewise. |
| 1107 |
* libgnat/s-pack67.ads: Likewise. |
| 1108 |
* libgnat/s-pack68.ads: Likewise. |
| 1109 |
* libgnat/s-pack69.ads: Likewise. |
| 1110 |
* libgnat/s-pack70.ads: Likewise. |
| 1111 |
* libgnat/s-pack71.ads: Likewise. |
| 1112 |
* libgnat/s-pack72.ads: Likewise. |
| 1113 |
* libgnat/s-pack73.ads: Likewise. |
| 1114 |
* libgnat/s-pack74.ads: Likewise. |
| 1115 |
* libgnat/s-pack75.ads: Likewise. |
| 1116 |
* libgnat/s-pack76.ads: Likewise. |
| 1117 |
* libgnat/s-pack77.ads: Likewise. |
| 1118 |
* libgnat/s-pack78.ads: Likewise. |
| 1119 |
* libgnat/s-pack79.ads: Likewise. |
| 1120 |
* libgnat/s-pack80.ads: Likewise. |
| 1121 |
* libgnat/s-pack81.ads: Likewise. |
| 1122 |
* libgnat/s-pack82.ads: Likewise. |
| 1123 |
* libgnat/s-pack83.ads: Likewise. |
| 1124 |
* libgnat/s-pack84.ads: Likewise. |
| 1125 |
* libgnat/s-pack85.ads: Likewise. |
| 1126 |
* libgnat/s-pack86.ads: Likewise. |
| 1127 |
* libgnat/s-pack87.ads: Likewise. |
| 1128 |
* libgnat/s-pack88.ads: Likewise. |
| 1129 |
* libgnat/s-pack89.ads: Likewise. |
| 1130 |
* libgnat/s-pack90.ads: Likewise. |
| 1131 |
* libgnat/s-pack91.ads: Likewise. |
| 1132 |
* libgnat/s-pack92.ads: Likewise. |
| 1133 |
* libgnat/s-pack93.ads: Likewise. |
| 1134 |
* libgnat/s-pack94.ads: Likewise. |
| 1135 |
* libgnat/s-pack95.ads: Likewise. |
| 1136 |
* libgnat/s-pack96.ads: Likewise. |
| 1137 |
* libgnat/s-pack97.ads: Likewise. |
| 1138 |
* libgnat/s-pack98.ads: Likewise. |
| 1139 |
* libgnat/s-pack99.ads: Likewise. |
| 1140 |
* libgnat/s-parame.ads: Likewise. |
| 1141 |
* libgnat/s-rident.ads: Likewise. |
| 1142 |
* libgnat/s-spark.ads: Likewise. |
| 1143 |
* libgnat/s-spcuop.ads: Likewise. |
| 1144 |
* libgnat/s-stoele.ads: Likewise. |
| 1145 |
* libgnat/s-traent.ads: Likewise. |
| 1146 |
* libgnat/s-unstyp.ads: Likewise. |
| 1147 |
* libgnat/s-vaispe.ads: Likewise. |
| 1148 |
* libgnat/s-valspe.ads: Likewise. |
| 1149 |
* libgnat/s-vauspe.ads: Likewise. |
| 1150 |
* libgnat/s-veboop.ads: Likewise. |
| 1151 |
* libgnat/s-vector.ads: Likewise. |
| 1152 |
* libgnat/s-vs_int.ads: Likewise. |
| 1153 |
* libgnat/s-vs_lli.ads: Likewise. |
| 1154 |
* libgnat/s-vs_llu.ads: Likewise. |
| 1155 |
* libgnat/s-vs_uns.ads: Likewise. |
| 1156 |
* libgnat/s-vsllli.ads: Likewise. |
| 1157 |
* libgnat/text_io.ads: Likewise. |
| 1158 |
* libgnat/unchconv.ads: Likewise. |
| 1159 |
* libgnat/unchdeal.ads: Likewise. |
| 1160 |
* s-pack.ads.tmpl: Likewise. |
| 1161 |
|
| 1162 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1163 |
|
| 1164 |
* s-pack.adb.tmpl: Add '7' suffix to all existing constructs and |
| 1165 |
add variants with suffixes ranging from '0' to '6'. |
| 1166 |
(Get_@@): Dereference the address as a record object whose accessed |
| 1167 |
component is always the last. |
| 1168 |
(GetU_@@): Likewise. |
| 1169 |
(Set_@@): Likewise. |
| 1170 |
(SetU_@@): Likewise. |
| 1171 |
* libgnat/s-pack03.adb: Regenerate. |
| 1172 |
* libgnat/s-pack05.adb: Likewise. |
| 1173 |
* libgnat/s-pack06.adb: Likewise. |
| 1174 |
* libgnat/s-pack07.adb: Likewise. |
| 1175 |
* libgnat/s-pack09.adb: Likewise. |
| 1176 |
* libgnat/s-pack10.adb: Likewise. |
| 1177 |
* libgnat/s-pack100.adb: Likewise. |
| 1178 |
* libgnat/s-pack101.adb: Likewise. |
| 1179 |
* libgnat/s-pack102.adb: Likewise. |
| 1180 |
* libgnat/s-pack103.adb: Likewise. |
| 1181 |
* libgnat/s-pack104.adb: Likewise. |
| 1182 |
* libgnat/s-pack105.adb: Likewise. |
| 1183 |
* libgnat/s-pack106.adb: Likewise. |
| 1184 |
* libgnat/s-pack107.adb: Likewise. |
| 1185 |
* libgnat/s-pack108.adb: Likewise. |
| 1186 |
* libgnat/s-pack109.adb: Likewise. |
| 1187 |
* libgnat/s-pack11.adb: Likewise. |
| 1188 |
* libgnat/s-pack110.adb: Likewise. |
| 1189 |
* libgnat/s-pack111.adb: Likewise. |
| 1190 |
* libgnat/s-pack112.adb: Likewise. |
| 1191 |
* libgnat/s-pack113.adb: Likewise. |
| 1192 |
* libgnat/s-pack114.adb: Likewise. |
| 1193 |
* libgnat/s-pack115.adb: Likewise. |
| 1194 |
* libgnat/s-pack116.adb: Likewise. |
| 1195 |
* libgnat/s-pack117.adb: Likewise. |
| 1196 |
* libgnat/s-pack118.adb: Likewise. |
| 1197 |
* libgnat/s-pack119.adb: Likewise. |
| 1198 |
* libgnat/s-pack12.adb: Likewise. |
| 1199 |
* libgnat/s-pack120.adb: Likewise. |
| 1200 |
* libgnat/s-pack121.adb: Likewise. |
| 1201 |
* libgnat/s-pack122.adb: Likewise. |
| 1202 |
* libgnat/s-pack123.adb: Likewise. |
| 1203 |
* libgnat/s-pack124.adb: Likewise. |
| 1204 |
* libgnat/s-pack125.adb: Likewise. |
| 1205 |
* libgnat/s-pack126.adb: Likewise. |
| 1206 |
* libgnat/s-pack127.adb: Likewise. |
| 1207 |
* libgnat/s-pack13.adb: Likewise. |
| 1208 |
* libgnat/s-pack14.adb: Likewise. |
| 1209 |
* libgnat/s-pack15.adb: Likewise. |
| 1210 |
* libgnat/s-pack17.adb: Likewise. |
| 1211 |
* libgnat/s-pack18.adb: Likewise. |
| 1212 |
* libgnat/s-pack19.adb: Likewise. |
| 1213 |
* libgnat/s-pack20.adb: Likewise. |
| 1214 |
* libgnat/s-pack21.adb: Likewise. |
| 1215 |
* libgnat/s-pack22.adb: Likewise. |
| 1216 |
* libgnat/s-pack23.adb: Likewise. |
| 1217 |
* libgnat/s-pack24.adb: Likewise. |
| 1218 |
* libgnat/s-pack25.adb: Likewise. |
| 1219 |
* libgnat/s-pack26.adb: Likewise. |
| 1220 |
* libgnat/s-pack27.adb: Likewise. |
| 1221 |
* libgnat/s-pack28.adb: Likewise. |
| 1222 |
* libgnat/s-pack29.adb: Likewise. |
| 1223 |
* libgnat/s-pack30.adb: Likewise. |
| 1224 |
* libgnat/s-pack31.adb: Likewise. |
| 1225 |
* libgnat/s-pack33.adb: Likewise. |
| 1226 |
* libgnat/s-pack34.adb: Likewise. |
| 1227 |
* libgnat/s-pack35.adb: Likewise. |
| 1228 |
* libgnat/s-pack36.adb: Likewise. |
| 1229 |
* libgnat/s-pack37.adb: Likewise. |
| 1230 |
* libgnat/s-pack38.adb: Likewise. |
| 1231 |
* libgnat/s-pack39.adb: Likewise. |
| 1232 |
* libgnat/s-pack40.adb: Likewise. |
| 1233 |
* libgnat/s-pack41.adb: Likewise. |
| 1234 |
* libgnat/s-pack42.adb: Likewise. |
| 1235 |
* libgnat/s-pack43.adb: Likewise. |
| 1236 |
* libgnat/s-pack44.adb: Likewise. |
| 1237 |
* libgnat/s-pack45.adb: Likewise. |
| 1238 |
* libgnat/s-pack46.adb: Likewise. |
| 1239 |
* libgnat/s-pack47.adb: Likewise. |
| 1240 |
* libgnat/s-pack48.adb: Likewise. |
| 1241 |
* libgnat/s-pack49.adb: Likewise. |
| 1242 |
* libgnat/s-pack50.adb: Likewise. |
| 1243 |
* libgnat/s-pack51.adb: Likewise. |
| 1244 |
* libgnat/s-pack52.adb: Likewise. |
| 1245 |
* libgnat/s-pack53.adb: Likewise. |
| 1246 |
* libgnat/s-pack54.adb: Likewise. |
| 1247 |
* libgnat/s-pack55.adb: Likewise. |
| 1248 |
* libgnat/s-pack56.adb: Likewise. |
| 1249 |
* libgnat/s-pack57.adb: Likewise. |
| 1250 |
* libgnat/s-pack58.adb: Likewise. |
| 1251 |
* libgnat/s-pack59.adb: Likewise. |
| 1252 |
* libgnat/s-pack60.adb: Likewise. |
| 1253 |
* libgnat/s-pack61.adb: Likewise. |
| 1254 |
* libgnat/s-pack62.adb: Likewise. |
| 1255 |
* libgnat/s-pack63.adb: Likewise. |
| 1256 |
* libgnat/s-pack65.adb: Likewise. |
| 1257 |
* libgnat/s-pack66.adb: Likewise. |
| 1258 |
* libgnat/s-pack67.adb: Likewise. |
| 1259 |
* libgnat/s-pack68.adb: Likewise. |
| 1260 |
* libgnat/s-pack69.adb: Likewise. |
| 1261 |
* libgnat/s-pack70.adb: Likewise. |
| 1262 |
* libgnat/s-pack71.adb: Likewise. |
| 1263 |
* libgnat/s-pack72.adb: Likewise. |
| 1264 |
* libgnat/s-pack73.adb: Likewise. |
| 1265 |
* libgnat/s-pack74.adb: Likewise. |
| 1266 |
* libgnat/s-pack75.adb: Likewise. |
| 1267 |
* libgnat/s-pack76.adb: Likewise. |
| 1268 |
* libgnat/s-pack77.adb: Likewise. |
| 1269 |
* libgnat/s-pack78.adb: Likewise. |
| 1270 |
* libgnat/s-pack79.adb: Likewise. |
| 1271 |
* libgnat/s-pack80.adb: Likewise. |
| 1272 |
* libgnat/s-pack81.adb: Likewise. |
| 1273 |
* libgnat/s-pack82.adb: Likewise. |
| 1274 |
* libgnat/s-pack83.adb: Likewise. |
| 1275 |
* libgnat/s-pack84.adb: Likewise. |
| 1276 |
* libgnat/s-pack85.adb: Likewise. |
| 1277 |
* libgnat/s-pack86.adb: Likewise. |
| 1278 |
* libgnat/s-pack87.adb: Likewise. |
| 1279 |
* libgnat/s-pack88.adb: Likewise. |
| 1280 |
* libgnat/s-pack89.adb: Likewise. |
| 1281 |
* libgnat/s-pack90.adb: Likewise. |
| 1282 |
* libgnat/s-pack91.adb: Likewise. |
| 1283 |
* libgnat/s-pack92.adb: Likewise. |
| 1284 |
* libgnat/s-pack93.adb: Likewise. |
| 1285 |
* libgnat/s-pack94.adb: Likewise. |
| 1286 |
* libgnat/s-pack95.adb: Likewise. |
| 1287 |
* libgnat/s-pack96.adb: Likewise. |
| 1288 |
* libgnat/s-pack97.adb: Likewise. |
| 1289 |
* libgnat/s-pack98.adb: Likewise. |
| 1290 |
* libgnat/s-pack99.adb: Likewise. |
| 1291 |
|
| 1292 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1293 |
|
| 1294 |
PR ada/114127 |
| 1295 |
* sem_aggr.adb (Is_Null_Aggregate): Replace test on Ada_Version |
| 1296 |
with test on Nkind. |
| 1297 |
|
| 1298 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1299 |
|
| 1300 |
* exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Do not call |
| 1301 |
Checks_Off on the newly built N_Indexed_Component node but instead |
| 1302 |
set Kill_Range_Check on it. |
| 1303 |
* exp_ch4.ads (Expand_N_Unchecked_Expression): Delete. |
| 1304 |
* exp_ch4.adb (Expand_N_Indexed_Component): Remove handling of |
| 1305 |
N_Unchecked_Expression. |
| 1306 |
(Expand_N_Unchecked_Expression): Delete. |
| 1307 |
(Expand_N_Unchecked_Type_Conversion): Propagate the Assignment_OK |
| 1308 |
flag and rewrite the node manually. |
| 1309 |
* exp_util.adb (Insert_Actions): Remove handling of |
| 1310 |
N_Unchecked_Expression. |
| 1311 |
(Side_Effect_Free): Likewise. |
| 1312 |
* expander.adb (Expand): Likewise. |
| 1313 |
* gen_il-gen-gen_nodes.adb (N_Indexed_Component): Add flag |
| 1314 |
Kill_Range_Check for the purpose of semantics. |
| 1315 |
(N_Unchecked_Expression): Delete. |
| 1316 |
* gen_il-internals.ads (Type_Frequency): Remove entry for |
| 1317 |
N_Unchecked_Expression. |
| 1318 |
* gen_il-types.ads (Opt_Type_Enum): Remove N_Unchecked_Expression. |
| 1319 |
* pprint.adb (Expression_Image): Remove handling of |
| 1320 |
N_Unchecked_Expression. |
| 1321 |
* sem.adb (Analyze): Likewise. |
| 1322 |
* sem_ch4.ads (Analyze_Unchecked_Expression): Delete. |
| 1323 |
* sem_ch4.adb (Analyze_Unchecked_Expression): Likewise. |
| 1324 |
* sem_res.adb (Resolve_Unchecked_Expression): Likewise. |
| 1325 |
(Resolve): Remove handling of N_Unchecked_Expression. |
| 1326 |
(Resolve_Indexed_Component): Do not call Apply_Scalar_Range_Check |
| 1327 |
on the expressions if Kill_Range_Check is set on the node. |
| 1328 |
* sem_util.adb (Is_Non_Preelaborable_Construct): Remove handling of |
| 1329 |
N_Unchecked_Expression. |
| 1330 |
* sinfo.ads (Kill_Range_Check): Document it for N_Indexed_Component. |
| 1331 |
(Unchecked Expression): Delete specification. |
| 1332 |
* sprint.adb (Sprint_Node_Actual): Remove handling of |
| 1333 |
N_Unchecked_Expression. |
| 1334 |
* tbuild.ads (Checks_Off): Delete. |
| 1335 |
* tbuild.adb (Checks_Off): Likewise. |
| 1336 |
|
| 1337 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1338 |
|
| 1339 |
PR ada/112979 |
| 1340 |
* sem_ch8.adb (Find_Selected_Component): Try to recognize the |
| 1341 |
object operation notation only if the selector is a subprogram. |
| 1342 |
|
| 1343 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1344 |
|
| 1345 |
PR ada/113037 |
| 1346 |
* sem_prag.adb (Analyze_Pragma) <Pragma_Invariant>: Reject types |
| 1347 |
that are derived from formal private types. |
| 1348 |
|
| 1349 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1350 |
|
| 1351 |
PR ada/112821 |
| 1352 |
* scans.ads (Token_Type): Remove Tok_Left_Bracket from Namext. |
| 1353 |
|
| 1354 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1355 |
|
| 1356 |
PR ada/114300 |
| 1357 |
* exp_ch7.adb (Attach_Object_To_Master_Node): Propagate the |
| 1358 |
Is_Ignored_Ghost_Entity flag from the finalization procedure. |
| 1359 |
(Build_Finalizer.Process_Declarations): Move up the test on |
| 1360 |
Is_Ignored_Ghost_Entity. |
| 1361 |
* exp_util.adb (Requires_Cleanup_Actions): Likewise. |
| 1362 |
|
| 1363 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1364 |
|
| 1365 |
PR ada/55725 |
| 1366 |
* exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Be |
| 1367 |
prepared for no collection if the access type is anonymous. |
| 1368 |
* exp_ch7.adb (Build_Anonymous_Collection): Return early for the |
| 1369 |
anonymous access result type of a library function. |
| 1370 |
|
| 1371 |
2024-11-12 Piotr Trojanek <[email protected]> |
| 1372 |
|
| 1373 |
* exp_util.adb (Make_Variant_Comparison): Accept new types in |
| 1374 |
expansion. |
| 1375 |
* rtsfind.adb (Get_Unit_Name): Support SPARK.Big_Integers. |
| 1376 |
* rtsfind.ads (RTU_Id, RE_Id, RE_Unit_Table): Support new type |
| 1377 |
and its enclosing unit. |
| 1378 |
* sem_prag.adb (Analyze_Pragma): Support new type in pragma |
| 1379 |
Loop_Variant. |
| 1380 |
(Analyze_Subprogram_Variant_In_Decl_Part): Support new type in |
| 1381 |
aspect Subprogram_Variant. |
| 1382 |
|
| 1383 |
2024-11-12 Viljar Indus <[email protected]> |
| 1384 |
|
| 1385 |
* libgnarl/s-interr__vxworks.ads (new): A VXWorks specific |
| 1386 |
version of the file where Register_Interrupt_Handler is marked |
| 1387 |
with the Obsolescent pragma. |
| 1388 |
* libgnarl/s-interr__vxworks.adb: Remove pragma Obsoloescent |
| 1389 |
that had no effect. |
| 1390 |
* Makefile.rtl: Add entries for using the |
| 1391 |
libgnarl/s-interr__vxworks.ads file. |
| 1392 |
|
| 1393 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1394 |
|
| 1395 |
PR ada/113868 |
| 1396 |
* par-ch6.adb (P_Subprogram) <Scan_Body_Or_Expression_Function>: |
| 1397 |
Add delta aggregate alongside the other forms of aggregates. |
| 1398 |
|
| 1399 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1400 |
|
| 1401 |
* sem_aggr.adb (Resolve_Array_Aggregate): In the case of an others |
| 1402 |
choice with a box, do not call Resolve_Aggr_Exp and give the error |
| 1403 |
for a multidimensional array directly. |
| 1404 |
(Resolve_Aggr_Expr): Remove bypasses for above case. |
| 1405 |
|
| 1406 |
2024-11-12 Ronan Desplanques <[email protected]> |
| 1407 |
|
| 1408 |
* frontend.adb (Frontend): Move call to Fmap.Initialize ... |
| 1409 |
* gnat1drv.adb (Gnat1drv): ... here. Look up Fmap when loading System. |
| 1410 |
* par-prag.adb (Prag): Allow pragma Source_File_Name for System when |
| 1411 |
it confirms an existing mapping. |
| 1412 |
|
| 1413 |
2024-11-12 Richard Kenner <[email protected]> |
| 1414 |
|
| 1415 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix minor |
| 1416 |
markup errors. |
| 1417 |
* doc/gnat_ugn/gnat_utility_programs.rst: Likewise. |
| 1418 |
* gnat_ugn.texi: Regenerate. |
| 1419 |
|
| 1420 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1421 |
|
| 1422 |
* s-pack.adb.tmpl: Add "with System.Address_To_Access_Conversions". |
| 1423 |
(Cluster_Ref): Delete. |
| 1424 |
(AAC): New instance of System.Address_To_Access_Conversions. |
| 1425 |
(Rev_Cluster_Ref): Delete. |
| 1426 |
(Rev_ACC): New instance of System.Address_To_Access_Conversions. |
| 1427 |
(ClusterU_Ref): Delete. |
| 1428 |
(AACU): New instance of System.Address_To_Access_Conversions. |
| 1429 |
(Rev_ClusterU_Ref): Delete. |
| 1430 |
(Rev_ACCU): New instance of System.Address_To_Access_Conversions. |
| 1431 |
(Get_@@): Use a direct address-to-access conversion. |
| 1432 |
(GetU_@@): Likewise. |
| 1433 |
(Set_@@): Likewise. |
| 1434 |
(SetU_@@): Likewise. |
| 1435 |
* libgnat/s-pack03.adb: Regenerate. |
| 1436 |
* libgnat/s-pack05.adb: Likewise. |
| 1437 |
* libgnat/s-pack06.adb: Likewise. |
| 1438 |
* libgnat/s-pack07.adb: Likewise. |
| 1439 |
* libgnat/s-pack09.adb: Likewise. |
| 1440 |
* libgnat/s-pack10.adb: Likewise. |
| 1441 |
* libgnat/s-pack100.adb: Likewise. |
| 1442 |
* libgnat/s-pack101.adb: Likewise. |
| 1443 |
* libgnat/s-pack102.adb: Likewise. |
| 1444 |
* libgnat/s-pack103.adb: Likewise. |
| 1445 |
* libgnat/s-pack104.adb: Likewise. |
| 1446 |
* libgnat/s-pack105.adb: Likewise. |
| 1447 |
* libgnat/s-pack106.adb: Likewise. |
| 1448 |
* libgnat/s-pack107.adb: Likewise. |
| 1449 |
* libgnat/s-pack108.adb: Likewise. |
| 1450 |
* libgnat/s-pack109.adb: Likewise. |
| 1451 |
* libgnat/s-pack11.adb: Likewise. |
| 1452 |
* libgnat/s-pack110.adb: Likewise. |
| 1453 |
* libgnat/s-pack111.adb: Likewise. |
| 1454 |
* libgnat/s-pack112.adb: Likewise. |
| 1455 |
* libgnat/s-pack113.adb: Likewise. |
| 1456 |
* libgnat/s-pack114.adb: Likewise. |
| 1457 |
* libgnat/s-pack115.adb: Likewise. |
| 1458 |
* libgnat/s-pack116.adb: Likewise. |
| 1459 |
* libgnat/s-pack117.adb: Likewise. |
| 1460 |
* libgnat/s-pack118.adb: Likewise. |
| 1461 |
* libgnat/s-pack119.adb: Likewise. |
| 1462 |
* libgnat/s-pack12.adb: Likewise. |
| 1463 |
* libgnat/s-pack120.adb: Likewise. |
| 1464 |
* libgnat/s-pack121.adb: Likewise. |
| 1465 |
* libgnat/s-pack122.adb: Likewise. |
| 1466 |
* libgnat/s-pack123.adb: Likewise. |
| 1467 |
* libgnat/s-pack124.adb: Likewise. |
| 1468 |
* libgnat/s-pack125.adb: Likewise. |
| 1469 |
* libgnat/s-pack126.adb: Likewise. |
| 1470 |
* libgnat/s-pack127.adb: Likewise. |
| 1471 |
* libgnat/s-pack13.adb: Likewise. |
| 1472 |
* libgnat/s-pack14.adb: Likewise. |
| 1473 |
* libgnat/s-pack15.adb: Likewise. |
| 1474 |
* libgnat/s-pack17.adb: Likewise. |
| 1475 |
* libgnat/s-pack18.adb: Likewise. |
| 1476 |
* libgnat/s-pack19.adb: Likewise. |
| 1477 |
* libgnat/s-pack20.adb: Likewise. |
| 1478 |
* libgnat/s-pack21.adb: Likewise. |
| 1479 |
* libgnat/s-pack22.adb: Likewise. |
| 1480 |
* libgnat/s-pack23.adb: Likewise. |
| 1481 |
* libgnat/s-pack24.adb: Likewise. |
| 1482 |
* libgnat/s-pack25.adb: Likewise. |
| 1483 |
* libgnat/s-pack26.adb: Likewise. |
| 1484 |
* libgnat/s-pack27.adb: Likewise. |
| 1485 |
* libgnat/s-pack28.adb: Likewise. |
| 1486 |
* libgnat/s-pack29.adb: Likewise. |
| 1487 |
* libgnat/s-pack30.adb: Likewise. |
| 1488 |
* libgnat/s-pack31.adb: Likewise. |
| 1489 |
* libgnat/s-pack33.adb: Likewise. |
| 1490 |
* libgnat/s-pack34.adb: Likewise. |
| 1491 |
* libgnat/s-pack35.adb: Likewise. |
| 1492 |
* libgnat/s-pack36.adb: Likewise. |
| 1493 |
* libgnat/s-pack37.adb: Likewise. |
| 1494 |
* libgnat/s-pack38.adb: Likewise. |
| 1495 |
* libgnat/s-pack39.adb: Likewise. |
| 1496 |
* libgnat/s-pack40.adb: Likewise. |
| 1497 |
* libgnat/s-pack41.adb: Likewise. |
| 1498 |
* libgnat/s-pack42.adb: Likewise. |
| 1499 |
* libgnat/s-pack43.adb: Likewise. |
| 1500 |
* libgnat/s-pack44.adb: Likewise. |
| 1501 |
* libgnat/s-pack45.adb: Likewise. |
| 1502 |
* libgnat/s-pack46.adb: Likewise. |
| 1503 |
* libgnat/s-pack47.adb: Likewise. |
| 1504 |
* libgnat/s-pack48.adb: Likewise. |
| 1505 |
* libgnat/s-pack49.adb: Likewise. |
| 1506 |
* libgnat/s-pack50.adb: Likewise. |
| 1507 |
* libgnat/s-pack51.adb: Likewise. |
| 1508 |
* libgnat/s-pack52.adb: Likewise. |
| 1509 |
* libgnat/s-pack53.adb: Likewise. |
| 1510 |
* libgnat/s-pack54.adb: Likewise. |
| 1511 |
* libgnat/s-pack55.adb: Likewise. |
| 1512 |
* libgnat/s-pack56.adb: Likewise. |
| 1513 |
* libgnat/s-pack57.adb: Likewise. |
| 1514 |
* libgnat/s-pack58.adb: Likewise. |
| 1515 |
* libgnat/s-pack59.adb: Likewise. |
| 1516 |
* libgnat/s-pack60.adb: Likewise. |
| 1517 |
* libgnat/s-pack61.adb: Likewise. |
| 1518 |
* libgnat/s-pack62.adb: Likewise. |
| 1519 |
* libgnat/s-pack63.adb: Likewise. |
| 1520 |
* libgnat/s-pack65.adb: Likewise. |
| 1521 |
* libgnat/s-pack66.adb: Likewise. |
| 1522 |
* libgnat/s-pack67.adb: Likewise. |
| 1523 |
* libgnat/s-pack68.adb: Likewise. |
| 1524 |
* libgnat/s-pack69.adb: Likewise. |
| 1525 |
* libgnat/s-pack70.adb: Likewise. |
| 1526 |
* libgnat/s-pack71.adb: Likewise. |
| 1527 |
* libgnat/s-pack72.adb: Likewise. |
| 1528 |
* libgnat/s-pack73.adb: Likewise. |
| 1529 |
* libgnat/s-pack74.adb: Likewise. |
| 1530 |
* libgnat/s-pack75.adb: Likewise. |
| 1531 |
* libgnat/s-pack76.adb: Likewise. |
| 1532 |
* libgnat/s-pack77.adb: Likewise. |
| 1533 |
* libgnat/s-pack78.adb: Likewise. |
| 1534 |
* libgnat/s-pack79.adb: Likewise. |
| 1535 |
* libgnat/s-pack80.adb: Likewise. |
| 1536 |
* libgnat/s-pack81.adb: Likewise. |
| 1537 |
* libgnat/s-pack82.adb: Likewise. |
| 1538 |
* libgnat/s-pack83.adb: Likewise. |
| 1539 |
* libgnat/s-pack84.adb: Likewise. |
| 1540 |
* libgnat/s-pack85.adb: Likewise. |
| 1541 |
* libgnat/s-pack86.adb: Likewise. |
| 1542 |
* libgnat/s-pack87.adb: Likewise. |
| 1543 |
* libgnat/s-pack88.adb: Likewise. |
| 1544 |
* libgnat/s-pack89.adb: Likewise. |
| 1545 |
* libgnat/s-pack90.adb: Likewise. |
| 1546 |
* libgnat/s-pack91.adb: Likewise. |
| 1547 |
* libgnat/s-pack92.adb: Likewise. |
| 1548 |
* libgnat/s-pack93.adb: Likewise. |
| 1549 |
* libgnat/s-pack94.adb: Likewise. |
| 1550 |
* libgnat/s-pack95.adb: Likewise. |
| 1551 |
* libgnat/s-pack96.adb: Likewise. |
| 1552 |
* libgnat/s-pack97.adb: Likewise. |
| 1553 |
* libgnat/s-pack98.adb: Likewise. |
| 1554 |
* libgnat/s-pack99.adb: Likewise. |
| 1555 |
|
| 1556 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1557 |
|
| 1558 |
* sinfo.ads (Assignment_OK): Remove obsolete ??? comment. |
| 1559 |
|
| 1560 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1561 |
|
| 1562 |
* checks.adb (Range_Checks_Suppressed): Remove test on the |
| 1563 |
Kill_Range_Checks flag. |
| 1564 |
* einfo.ads (Kill_Range_Checks): Delete. |
| 1565 |
* gen_il-fields.ads (Opt_Field_Enum): Remove Kill_Range_Checks. |
| 1566 |
* gen_il-gen-gen_entities.adb (Entity_Kind): Likewise. |
| 1567 |
* sem_ch3.adb (Record_Type_Declaration): Do not set the |
| 1568 |
Kill_Range_Checks flag. |
| 1569 |
* sem_util.adb (Denotes_Discriminant): In a default expression, |
| 1570 |
also return True for a discriminal. |
| 1571 |
|
| 1572 |
2024-11-12 Steve Baird <[email protected]> |
| 1573 |
|
| 1574 |
* prep.adb (Expression): Improve error message text when an |
| 1575 |
implicitly-defined Boolean-valued symbol is used in a context that |
| 1576 |
requires an integer value. |
| 1577 |
|
| 1578 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1579 |
|
| 1580 |
* exp_aggr.adb (Is_Build_In_Place_Aggregate_Return): Directly test |
| 1581 |
the node and remove dead code for extended return statements. |
| 1582 |
|
| 1583 |
2024-11-12 Johannes Kliemann <[email protected]> |
| 1584 |
|
| 1585 |
* Makefile.rtl: Use libgnat/s-parame__aarch64-linux.adb for |
| 1586 |
s-parame.adb on aarch64-linux. |
| 1587 |
* libgnat/s-parame__aarch64-linux.adb: Add file. |
| 1588 |
|
| 1589 |
2024-11-12 Piotr Trojanek <[email protected]> |
| 1590 |
|
| 1591 |
* doc/gnat_rm/the_implementation_of_standard_i_o.rst |
| 1592 |
(Shared Files): Add trailing period. |
| 1593 |
* libgnat/s-ficobl.ads (AFCB): Reflect new behavior in comment. |
| 1594 |
* libgnat/s-fileio.adb (Open): Detect inconsistent sharing, |
| 1595 |
just like we do in System.File_IO.Reset. |
| 1596 |
* gnat_rm.texi: Regenerate. |
| 1597 |
* gnat_ugn.texi: Regenerate. |
| 1598 |
|
| 1599 |
2024-11-12 squirek <[email protected]> |
| 1600 |
|
| 1601 |
* accessibility.adb (Type_Access_Level): Add handling for |
| 1602 |
subprogram aliases. |
| 1603 |
|
| 1604 |
2024-11-12 squirek <[email protected]> |
| 1605 |
|
| 1606 |
* exp_ch4.adb (Expand_N_Type_Conversion): Add special runtime check |
| 1607 |
generation for mutably tagged objects. |
| 1608 |
|
| 1609 |
2024-11-12 Douglas B Rupp <[email protected]> |
| 1610 |
|
| 1611 |
* libgnat/a-calcon.adb (To_Ada_Time) (To_Duration) |
| 1612 |
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent. |
| 1613 |
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64) |
| 1614 |
(To_Unix_Time_64): New. |
| 1615 |
* libgnat/a-calcon.ads (To_Ada_Time) (To_Duration) |
| 1616 |
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent. |
| 1617 |
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64) |
| 1618 |
(To_Unix_Time_64): New. |
| 1619 |
* libgnat/a-calend.adb (To_Ada_Time) (To_Duration) |
| 1620 |
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent. |
| 1621 |
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64) |
| 1622 |
(To_Unix_Time_64): New. |
| 1623 |
* libgnat/a-calend.ads (To_Ada_Time) (To_Duration) |
| 1624 |
(To_Struct_Timespec) (To_Unix_Time): Mark as obsolescent. |
| 1625 |
(To_Ada_Time_64) (To_Duration_64) (To_Struct_Timespec_64) |
| 1626 |
(To_Unix_Time_64): New. |
| 1627 |
|
| 1628 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1629 |
|
| 1630 |
PR ada/117018 |
| 1631 |
* exp_aggr.adb (Build_Array_Aggr_Code): Do not expect the |
| 1632 |
Loop_Actions field to be already present on association nodes. |
| 1633 |
* exp_util.adb (Insert_Actions): For association nodes, insert |
| 1634 |
into the Loop_Actions field only if it is already present. |
| 1635 |
* sem_aggr.adb (Resolve_Array_Aggregate): Add Iterated parameter. |
| 1636 |
(Resolve_Aggregate): Adjust calls to Resolve_Array_Aggregate. |
| 1637 |
(Resolve_Aggr_Expr): Add Iterated_Elmt defaulted parameter and |
| 1638 |
a default for Single_Elmt. Adjust call to Resolve_Array_Aggregate. |
| 1639 |
Preanalyze a copy of the expression in an iteration context. |
| 1640 |
(Resolve_Iterated_Component_Association): Pass Iterated_Elmt as |
| 1641 |
True to Resolve_Aggr_Expr and remove processing of Loop_Actions. |
| 1642 |
Do not check incorrect use of dynamically tagged expression in |
| 1643 |
an iteration context. |
| 1644 |
(Resolve_Iterated_Association): Use Copy_Separate_Tree instead of |
| 1645 |
New_Copy_Tree and set the Parent field of the result. |
| 1646 |
(Resolve_Delta_Array_Aggregate): Likewise. Only preanalyze the |
| 1647 |
copy instead of analyzing it. |
| 1648 |
|
| 1649 |
2024-11-12 Richard Kenner <[email protected]> |
| 1650 |
|
| 1651 |
* doc/gnat_ugn/about_this_guide.rst: Add information about GNAT LLVM. |
| 1652 |
Be consistent about spelling of "back end". |
| 1653 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Likewise. |
| 1654 |
* doc/gnat_ugn/gnat_and_program_execution.rst: Be consistent about |
| 1655 |
spelling of "back end". |
| 1656 |
* doc/gnat_ugn/the_gnat_compilation_model.rst: Likewise. |
| 1657 |
* gnat_ugn.texi: Regenerate. |
| 1658 |
|
| 1659 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1660 |
|
| 1661 |
* mdll.adb (Build_Dynamic_Library): Fix indentation. |
| 1662 |
|
| 1663 |
2024-11-12 Pascal Obry <[email protected]> |
| 1664 |
|
| 1665 |
* mdll.adb: Use the same procedure to create relocatable or non |
| 1666 |
relocatable DLL. The only difference is wether the base address is |
| 1667 |
passed to the final linker. If no base-address is given the DLL is |
| 1668 |
relocatable. |
| 1669 |
|
| 1670 |
2024-11-12 squirek <[email protected]> |
| 1671 |
|
| 1672 |
* inline.adb (In_Main_Unit_Or_Subunit): Use Other_Comp_Unit instead of |
| 1673 |
Spec_Or_Body_Lib_Unit. |
| 1674 |
(Must_Inline): Use Other_Comp_Unit instead of Spec_Or_Body_Lib_Unit. |
| 1675 |
|
| 1676 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1677 |
|
| 1678 |
* exp_aggr.adb (Is_Build_In_Place_Aggregate_Return): Also return |
| 1679 |
True for functions returning on the secondary stack or returning |
| 1680 |
a by-reference type if the back end exposes its return slot. |
| 1681 |
(Expand_Array_Aggregate): Call Is_Build_In_Place_Aggregate_Return |
| 1682 |
to spot aggregates to be built in place. |
| 1683 |
* exp_ch3.adb (Make_Allocator_For_Return): Add missing condition |
| 1684 |
in assertion pragma deduced from Expand_Subtype_From_Expr. |
| 1685 |
* exp_ch6.adb (Expand_Simple_Function_Return): Rewrite the statement |
| 1686 |
as an extended return statement if the expression is an aggregate |
| 1687 |
whose expansion is delayed. Properly relocate the expression in |
| 1688 |
this case. |
| 1689 |
* sem_ch6.adb: Add clauses for Exp_Aggr. |
| 1690 |
(Analyze_Function_Return): Do not apply the predicate check to an |
| 1691 |
aggregate whose expansion is delayed. Extended the processing of |
| 1692 |
case expressions to all conditional expressions. |
| 1693 |
|
| 1694 |
2024-11-12 Ronan Desplanques <[email protected]> |
| 1695 |
|
| 1696 |
* gnat2.gpr: New file. |
| 1697 |
|
| 1698 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1699 |
|
| 1700 |
* exp_aggr.adb (Expand_Delta_Array_Aggregate): Move declaration. |
| 1701 |
(Expand_Delta_Record_Aggregate): Likewise. |
| 1702 |
(Expand_Container_Aggregate): Likewise. Move implementation to |
| 1703 |
Build_Container_Aggr_Code. Implement built-in-place expansion |
| 1704 |
for object declarations and allocators. |
| 1705 |
(Build_Container_Aggr_Code): New function containing most of the |
| 1706 |
code of the original Expand_Container_Aggregate. Do not build a |
| 1707 |
temporary for the size calculation. Minor formatting tweaks. |
| 1708 |
(Expand_N_Aggregate): Add comment. |
| 1709 |
* exp_ch4.adb (Expand_Allocator_Expression): Detect the case of |
| 1710 |
a container aggregate as qualified expression. Do not apply the |
| 1711 |
predicate check on entry in this case and rewrite the allocator. |
| 1712 |
* exp_ch7.adb (Build_Finalizer.Process_Object_Declaration): Deal |
| 1713 |
with Last_Aggregate_Assignment first to compute the attachment |
| 1714 |
point (as already done in Attach_Object_To_Master_Node). |
| 1715 |
|
| 1716 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1717 |
|
| 1718 |
* sem_aux.ads (Has_Unconstrained_Elements): Delete. |
| 1719 |
* sem_aux.adb (Has_Unconstrained_Elements): Likewise. |
| 1720 |
* sem_ch3.adb (Analyze_Object_Declaration): Remove obsolete code. |
| 1721 |
|
| 1722 |
2024-11-12 Ghjuvan Lacambre <[email protected]> |
| 1723 |
|
| 1724 |
* sem.adb (Process_Bodies_In_Context): check that Spec's unit is |
| 1725 |
an N_Lib_Unit_Declaration_Id. |
| 1726 |
|
| 1727 |
2024-11-12 Eric Botcazou <[email protected]> |
| 1728 |
|
| 1729 |
* exp_ch5.adb (Expand_Assign_Array): Make Act_Rhs a constant and |
| 1730 |
do not recompute it, as well as R_Type, when there is a change of |
| 1731 |
representation. Move comment about the RHS from here to... |
| 1732 |
(Expand_N_Assignment_Statement): ...here. |
| 1733 |
|
| 1734 |
2024-11-12 Marc Poulhiès <[email protected]> |
| 1735 |
|
| 1736 |
* xspack.py: New |
| 1737 |
* s-pack.ads.tmpl: New. |
| 1738 |
* s-pack.adb.tmpl: New. |
| 1739 |
|
| 1740 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 1741 |
|
| 1742 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Recognize null |
| 1743 |
string literal subtypes and set their bounds to 1 .. 0. |
| 1744 |
|
| 1745 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 1746 |
|
| 1747 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Remove special |
| 1748 |
case for string literal subtypes. |
| 1749 |
|
| 1750 |
2024-11-04 Eric Botcazou <[email protected]> |
| 1751 |
|
| 1752 |
* gcc-interface/trans.cc (process_decls): Remove tests on Nkind that |
| 1753 |
contain a typo and would be redundant if written correctly. |
| 1754 |
|
| 1755 |
2024-11-04 Bob Duff <[email protected]> |
| 1756 |
|
| 1757 |
* sinfo.ads (Library_Unit): Rewrite documentation. Note that |
| 1758 |
the "??? not (always) true..." comment was not true; |
| 1759 |
the Subunit_Parent never points to the spec. |
| 1760 |
(N_Compilation_Unit): Improve documentation. The Aux_ node |
| 1761 |
was not created to solve the mentioned problems; it was |
| 1762 |
created because the size of nodes was limited. |
| 1763 |
Misc doc improvements. |
| 1764 |
* sinfo-utils.ads: Add new wrappers for Library_Unit field. |
| 1765 |
Use subtypes with predicates for the parameters. |
| 1766 |
(First_Real_Statement): Still used in codepeer. |
| 1767 |
* sinfo-utils.adb: Add new wrappers for Library_Unit field, |
| 1768 |
with suitable assertions. |
| 1769 |
* sem_prag.adb: Use new field wrapper names. |
| 1770 |
(Matching_Name): New name for Same_Name to avoid |
| 1771 |
potential confusion with the other function with the |
| 1772 |
same name (Sem_Util.Same_Name), which is also called |
| 1773 |
in this same file. |
| 1774 |
(Matching_Convention): Change Same_Convention to match |
| 1775 |
Matching_Name. |
| 1776 |
* sem_util.ads (Same_Name): Improve comments; the old comment |
| 1777 |
implied that it works for all names, which was not true. |
| 1778 |
* sem_util.adb: Use new field wrapper names. |
| 1779 |
* gen_il-gen.adb: Rename N_Unit_Body to be N_Lib_Unit_Body. |
| 1780 |
Plain "unit" is ambiguous in Ada (library unit, compilation |
| 1781 |
unit, program unit, etc). |
| 1782 |
Add new union types N_Lib_Unit_Declaration and |
| 1783 |
N_Lib_Unit_Renaming_Declaration. |
| 1784 |
* gen_il-gen-gen_nodes.adb (Compute_Ranges): Raise exception |
| 1785 |
earlier (it is already raised later, in Verify_Type_Table). |
| 1786 |
Add a comment explaining why it might be raised. |
| 1787 |
* gen_il-types.ads: Rename N_Unit_Body to be N_Lib_Unit_Body, and add |
| 1788 |
new N_Lib_Unit_Declaration and N_Lib_Unit_Renaming_Declaration. |
| 1789 |
* einfo.ads: Fix obsolete comment (was left over from before |
| 1790 |
the "variable-sized nodes"). |
| 1791 |
* exp_ch7.adb: Use new field wrapper names. |
| 1792 |
* exp_disp.adb: Use new field wrapper names. |
| 1793 |
* exp_unst.adb: Use new field wrapper names. |
| 1794 |
* exp_util.adb: Use new field wrapper names. |
| 1795 |
* fe.h: Add new field wrapper names. These are currently not |
| 1796 |
used in gigi, but this change prepares for using them in |
| 1797 |
gigi. |
| 1798 |
* inline.adb: Use new field wrapper names. |
| 1799 |
* lib.adb: Use new field wrapper names. |
| 1800 |
Comment improvements. |
| 1801 |
* lib-load.adb: Use new field wrapper names. |
| 1802 |
Minor cleanup. |
| 1803 |
* lib-writ.adb: Use new field wrapper names. |
| 1804 |
* live.adb: Use new field wrapper names. |
| 1805 |
* par-load.adb: Use new field wrapper names. |
| 1806 |
Comment improvements. Minor cleanup. |
| 1807 |
* rtsfind.adb: Use new field wrapper names. |
| 1808 |
* sem.adb: Use new field wrapper names. |
| 1809 |
* sem_ch10.adb: Use new field wrapper names. |
| 1810 |
Comment improvements. Minor cleanup. |
| 1811 |
* sem_ch12.adb: Use new field wrapper names. |
| 1812 |
* sem_ch7.adb: Use new field wrapper names. |
| 1813 |
* sem_ch8.adb: Use new field wrapper names. |
| 1814 |
* sem_elab.adb: Use new field wrapper names. |
| 1815 |
Comment improvements. |
| 1816 |
* errout.adb (Output_Source_Line): Fix blowup in some |
| 1817 |
obscure cases, where List_Pragmas is not fully set up. |
| 1818 |
|
| 1819 |
2024-11-04 Nicolas Roche <[email protected]> |
| 1820 |
|
| 1821 |
* libgnat/a-stwiun__shared.adb: Restructure code to inline only |
| 1822 |
the most common cases. Remove whenever possible runtime checks. |
| 1823 |
* libgnat/a-stwiun__shared.ads: Add Inline => True to Append |
| 1824 |
variants and Element. |
| 1825 |
|
| 1826 |
2024-11-04 Nicolas Roche <[email protected]> |
| 1827 |
|
| 1828 |
* libgnat/a-stzunb__shared.adb: Restructure code to inline only |
| 1829 |
the most common cases. Remove whenever possible runtime checks. |
| 1830 |
* libgnat/a-stzunb__shared.ads: Add Inline => True to Append |
| 1831 |
variants and Element. |
| 1832 |
|
| 1833 |
2024-11-04 Nicolas Roche <[email protected]> |
| 1834 |
|
| 1835 |
* libgnat/a-strunb__shared.adb: Restructure code to inline only |
| 1836 |
the most common cases. Remove whenever possible runtime checks. |
| 1837 |
* libgnat/a-strunb__shared.ads: Add Inline => True to Append |
| 1838 |
variants and Element. |
| 1839 |
|
| 1840 |
2024-11-04 Steve Baird <[email protected]> |
| 1841 |
|
| 1842 |
* aspects.ads: Add Aspect_Extended_Access to Aspect_Id |
| 1843 |
enumeration. |
| 1844 |
* par-prag.adb: Add Pragma_Extended_Access to list of pragmas that |
| 1845 |
get no interesting processing in the parser. |
| 1846 |
* sem_attr.adb: Relax legality checks on Access/Unchecked_Access |
| 1847 |
attribute references if access type is Extended_Access. |
| 1848 |
* sem_ch12.adb (Validate_Access_Type_Instance): For an instance of |
| 1849 |
a generic with a formal access type, check that formal and actual |
| 1850 |
agree with with respect to Extended_Access aspect. |
| 1851 |
* sem_prag.adb (Analyze_Pragma): Add analysis code for pragma |
| 1852 |
Extended_Access. Set Pragma_Extended_Access element in Sig_Flags |
| 1853 |
aggregate. |
| 1854 |
* sem_prag.ads: Set Pragma_Extended_Access element in |
| 1855 |
Aspect_Specifying_Pragma aggregate. |
| 1856 |
* sem_res.adb (Valid_Conversion): Disallow |
| 1857 |
extended-to-not-extended access conversion. |
| 1858 |
* sem_util.adb (Is_Extended_Access_Access_Type): Implement new |
| 1859 |
function. |
| 1860 |
(Is_Aliased_View): If (and only if) the new Boolean For_Extended |
| 1861 |
parameter is True, then a slice of an aliased non-bitpacked array |
| 1862 |
is aliased, a constrained nominal subtype does not force a result |
| 1863 |
of False, and a dereference of an extended access value is |
| 1864 |
aliased. The last point is somewhat subtle. This is how we prevent |
| 1865 |
covert fat-to-nonfat type conversions via things like |
| 1866 |
"Not_Extended_Type'(Extended_Ptr.all'Access)" or passing |
| 1867 |
Extended_Ptr.all as an actual parameter corresponding to an |
| 1868 |
explicitly aliased formal parameter. |
| 1869 |
* sem_util.ads (Is_Extended_Access_Type): Declare new function. |
| 1870 |
(Is_Aliased_View): Add new defaults-False parameter For_Extended. |
| 1871 |
* snames.ads-tmpl: Declare Name_Extended_Access Name_Id constant |
| 1872 |
and Pragma_Extended_Access Pragma_Id enumeration literal. |
| 1873 |
|
| 1874 |
2024-11-04 Viljar Indus <[email protected]> |
| 1875 |
|
| 1876 |
* sem_warn.adb (Check_One_Unit): When a system extension is |
| 1877 |
present always check entities from that unit before marking |
| 1878 |
the unit unreferenced. |
| 1879 |
|
| 1880 |
2024-11-04 Eric Botcazou <[email protected]> |
| 1881 |
|
| 1882 |
PR ada/113036 |
| 1883 |
* freeze.adb (Freeze_Expression): Deal with freezing actions coming |
| 1884 |
from within nested internal loops present in spec expressions. |
| 1885 |
|
| 1886 |
2024-11-04 Eric Botcazou <[email protected]> |
| 1887 |
|
| 1888 |
* sem_aggr.adb (Resolve_Iterated_Component_Association): Change to |
| 1889 |
function returning Boolean and return the result of the call made |
| 1890 |
to Resolve_Aggr_Expr. |
| 1891 |
(Resolve_Array_Aggregate): Return failure status if the call to |
| 1892 |
Resolve_Iterated_Component_Association returns false. |
| 1893 |
|
| 1894 |
2024-11-04 Eric Botcazou <[email protected]> |
| 1895 |
|
| 1896 |
* sem_aggr.adb (Resolve_Iterated_Component_Association): Move up |
| 1897 |
declaration of Expr and remove dead code from older processing. |
| 1898 |
|
| 1899 |
2024-11-04 Viljar Indus <[email protected]> |
| 1900 |
|
| 1901 |
* usage.adb: Update the wording for -gnatVa and -gnatVd. |
| 1902 |
|
| 1903 |
2024-11-04 Eric Botcazou <[email protected]> |
| 1904 |
|
| 1905 |
* exp_aggr.ads (Is_Two_Pass_Aggregate): Beef up comment. |
| 1906 |
|
| 1907 |
2024-11-04 Ronan Desplanques <[email protected]> |
| 1908 |
|
| 1909 |
* comperr.adb (Compiler_Abort): Display message in exception handler. |
| 1910 |
|
| 1911 |
2024-11-04 Javier Miranda <[email protected]> |
| 1912 |
|
| 1913 |
* exp_ch2.adb (Expand_N_Interpolated_String_Literal): Use the |
| 1914 |
base type of the type imposed by the context for building the |
| 1915 |
interpolated string image; required to allow the expander adding |
| 1916 |
the missing runtime check when the target type is constrained. |
| 1917 |
(Apply_Static_Length_Check): New subprogram. |
| 1918 |
|
| 1919 |
2024-11-04 Daniel King <[email protected]> |
| 1920 |
|
| 1921 |
* Makefile.rtl: Use s-secsta__cheri.adb on Morello CheriBSD. |
| 1922 |
* libgnat/s-secsta__cheri.adb: New file. |
| 1923 |
|
| 1924 |
2024-11-04 Daniel King <[email protected]> |
| 1925 |
|
| 1926 |
* libgnarl/s-intman__cheribsd.adb: Add SIGPROT to interrupt list. |
| 1927 |
|
| 1928 |
2024-11-04 Viljar Indus <[email protected]> |
| 1929 |
|
| 1930 |
* diagnostics-sarif_emitter.adb (Print_Runs): Add printing for |
| 1931 |
the invocation node that consists of a single invocations that |
| 1932 |
is composed of the commandLine and executionSuccessful attributes. |
| 1933 |
|
| 1934 |
2024-11-04 Viljar Indus <[email protected]> |
| 1935 |
|
| 1936 |
* diagnostics-sarif_emitter.adb (Print_SARIF_Report): Add a |
| 1937 |
Schema field to the SARIF report. |
| 1938 |
|
| 1939 |
2024-11-04 Ronan Desplanques <[email protected]> |
| 1940 |
|
| 1941 |
* libgnarl/s-mudido__affinity.adb (Unchecked_Set_Affinity): Set new |
| 1942 |
ATCB component. |
| 1943 |
* libgnarl/s-taprop__linux.adb (Create_Task): Only set CPU affinity |
| 1944 |
when required. |
| 1945 |
(Requires_Affinity_Change): New subprogram. |
| 1946 |
(Set_Task_Affinity): Likewise. |
| 1947 |
* libgnarl/s-tarest.adb (Create_Restricted_Task): Adapt to |
| 1948 |
Initialize_ATCB change. |
| 1949 |
* libgnarl/s-taskin.adb (Initialize_ATCB): Update parameter list. |
| 1950 |
Record whether aspects were explicitly specified. |
| 1951 |
* libgnarl/s-taskin.ads (Common_ATCB): Add component. |
| 1952 |
* libgnarl/s-tassta.adb (Create_Task): Update call to Initialize_ATCB. |
| 1953 |
* libgnarl/s-tporft.adb (Register_Foreign_Thread): Likewise. |
| 1954 |
|
| 1955 |
2024-11-04 Raphaël AMIARD <[email protected]> |
| 1956 |
|
| 1957 |
* sem_prag.adb (Analyze_Pragma): Fix format for second line of |
| 1958 |
warning (should be a continuation line) |
| 1959 |
|
| 1960 |
2024-11-04 Daniel King <[email protected]> |
| 1961 |
|
| 1962 |
* Makefile.rtl: Build support for Morello CheriBSD. |
| 1963 |
* libgnarl/s-intman__cheribsd.adb: New file for CheriBSD. |
| 1964 |
* libgnarl/s-osinte__cheribsd.ads: New file for CheriBSD. |
| 1965 |
|
| 1966 |
2024-11-04 Daniel King <[email protected]> |
| 1967 |
|
| 1968 |
* libgnat/i-cheri.ads: Remove exception declarations. |
| 1969 |
* libgnat/i-cheri-exceptions.ads: New file. |
| 1970 |
|
| 1971 |
2024-11-04 Daniel King <[email protected]> |
| 1972 |
|
| 1973 |
* libgnat/s-oslock__posix.ads: Fix alignment of pthread_mutex_t |
| 1974 |
for CHERI targets. |
| 1975 |
|
| 1976 |
2024-11-04 Claire Dross <[email protected]> |
| 1977 |
|
| 1978 |
* Makefile.rtl: Remove references to moved units. |
| 1979 |
* libgnat/a-chtgfk.adb: Removed. |
| 1980 |
* libgnat/a-chtgfk.ads: Removed. |
| 1981 |
* libgnat/a-chtgfo.adb: Removed. |
| 1982 |
* libgnat/a-chtgfo.ads: Removed. |
| 1983 |
* libgnat/a-cohata.ads (Generic_Formal_Hash_Table_Types): Removed. |
| 1984 |
|
| 1985 |
2024-11-04 Raphaël AMIARD <[email protected]> |
| 1986 |
|
| 1987 |
* doc/gnat_rm/gnat_language_extensions.rst: Adjust documentation. |
| 1988 |
* gnat_rm.texi: Regenerate. |
| 1989 |
* gnat_ugn.texi: Regenerate. |
| 1990 |
|
| 1991 |
2024-11-04 Eric Botcazou <[email protected]> |
| 1992 |
|
| 1993 |
PR ada/117051 |
| 1994 |
* freeze.adb (Freeze_Entity): Call the layout procedure on subtypes |
| 1995 |
declared in a generic unit when they are static. |
| 1996 |
|
| 1997 |
2024-11-04 Eric Botcazou <[email protected]> |
| 1998 |
|
| 1999 |
* adaint.c: Replace initialize.c with rtinit.c in comment. |
| 2000 |
* sysdep.c (__gnat_set_mode): Fix reference in comment. |
| 2001 |
* libgnat/i-cstrea.ads (Content_Encoding): Adjust comment. |
| 2002 |
|
| 2003 |
2024-11-04 Bob Duff <[email protected]> |
| 2004 |
|
| 2005 |
* sem_ch10.adb (Analyze_With_Clause): In the case of a |
| 2006 |
self-referential with clause, if there is a subsequent use clause |
| 2007 |
for the same package (which is necessarily useless), remove it from |
| 2008 |
the context clause. Reenable the warning. |
| 2009 |
|
| 2010 |
2024-11-04 Javier Miranda <[email protected]> |
| 2011 |
|
| 2012 |
* einfo.ads (Is_Dispatch_Table_Wrapper): Complete documentation. |
| 2013 |
* exp_ch6.adb (Install_Class_Preconditions_Check): Dispatch table |
| 2014 |
wrappers do not require installing the check since it is performed |
| 2015 |
by the caller. |
| 2016 |
(Class_Preconditions_Subprogram): Use new predicate Is_LSP_Wrapper. |
| 2017 |
* freeze.adb (Check_Inherited_Conditions): Rename Postcond_Wrappers to |
| 2018 |
Condition_Wrappers to handle implicitly inherited subprograms that |
| 2019 |
implement pre-/postconditions inherited from interface primitives. |
| 2020 |
Use new predicate Is_LSP_Wrapper. |
| 2021 |
* sem_disp.adb (Check_Dispatching_Operation): Complete assertion to |
| 2022 |
handle functions returning class-wide types. |
| 2023 |
* exp_util.ads (Is_LSP_Wrapper): New subprogram. |
| 2024 |
* exp_util.adb (Is_LSP_Wrapper): New subprogram. |
| 2025 |
* contracts.adb (Process_Spec_Postconditions): Use Is_LSP_Wrapper. |
| 2026 |
(Process_Inherited_Conditions): Use Is_LSP_Wrapper. |
| 2027 |
* sem_ch6.adb (New_Overloaded_Entity): Use Is_LSP_Wrapper. |
| 2028 |
* sem_util.adb (Nearest_Class_Condition_Subprogram): Use Is_LSP_Wrapper. |
| 2029 |
|
| 2030 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 2031 |
|
| 2032 |
* sem_ch7.adb (Uninstall_Declarations): Mark Taft amendment |
| 2033 |
types like we mark other types declared in private package |
| 2034 |
declarations. |
| 2035 |
|
| 2036 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 2037 |
|
| 2038 |
* exp_ch4.adb (Expand_N_Op_Multiply): Remove extra whitespace. |
| 2039 |
|
| 2040 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 2041 |
|
| 2042 |
* exp_ch4.adb (Expand_N_Op_Subtract): Replace numeric literal |
| 2043 |
with universal integer constant, just like it is done in |
| 2044 |
expansion of addition operator. |
| 2045 |
|
| 2046 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 2047 |
|
| 2048 |
* sem_res.adb (In_Decl): Rename and move local variable where |
| 2049 |
it is used. |
| 2050 |
|
| 2051 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 2052 |
|
| 2053 |
* sem_res.adb (Type_In_P): Add non-null qualifier. |
| 2054 |
|
| 2055 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 2056 |
|
| 2057 |
* sem_res.adb (Resolve_Intrinsic_Operator) |
| 2058 |
(Resolve_Intrinsic_Unary_Operator): Replace traversals of |
| 2059 |
homonyms with a direct lookup. |
| 2060 |
|
| 2061 |
2024-11-04 Piotr Trojanek <[email protected]> |
| 2062 |
|
| 2063 |
* sem_res.adb (Resolve_Intrinsic_Unary_Operator): Disable when |
| 2064 |
expansion is inactive. |
| 2065 |
|
| 2066 |
2024-10-29 David Malcolm <[email protected]> |
| 2067 |
|
| 2068 |
PR other/116613 |
| 2069 |
* gcc-interface/misc.cc (internal_error_function): Update for |
| 2070 |
m_printer becoming reference printer. |
| 2071 |
|
| 2072 |
2024-10-29 Marc Poulhiès <[email protected]> |
| 2073 |
|
| 2074 |
* types.h: fix static_assert. |
| 2075 |
|
| 2076 |
2024-10-26 Eric Botcazou <[email protected]> |
| 2077 |
|
| 2078 |
PR ada/62122 |
| 2079 |
* doc/gnat_rm/implementation_defined_attributes.rst |
| 2080 |
(Unrestricted_Access): Remove null exclusion. |
| 2081 |
* gnat_rm.texi: Regenerate. |
| 2082 |
|
| 2083 |
2024-10-25 Tom Tromey <[email protected]> |
| 2084 |
|
| 2085 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Use gnu_fat_type as the type |
| 2086 |
context for a XUB type. |
| 2087 |
|
| 2088 |
2024-10-25 Tom Tromey <[email protected]> |
| 2089 |
|
| 2090 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Update some calls to |
| 2091 |
create_type_decl. |
| 2092 |
* gcc-interface/gigi.h (create_type_decl): Add can_be_nameless parameter. |
| 2093 |
* gcc-interface/utils.cc (create_type_decl): Add can_be_nameless |
| 2094 |
parameter. Set DECL_NAMELESS on type decl. |
| 2095 |
|
| 2096 |
2024-10-25 Tom Tromey <[email protected]> |
| 2097 |
|
| 2098 |
* gcc-interface/utils.cc (record_builtin_type, create_type_stub_decl): |
| 2099 |
Set DECL_NAMELESS on type decls. |
| 2100 |
|
| 2101 |
2024-10-25 Tom Tromey <[email protected]> |
| 2102 |
|
| 2103 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Pass 'true' to |
| 2104 |
create_type_decl when creating XUA type. |
| 2105 |
|
| 2106 |
2024-10-25 Tom Tromey <[email protected]> |
| 2107 |
|
| 2108 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Set TYPE_NAMELESS on |
| 2109 |
XUB types. |
| 2110 |
|
| 2111 |
2024-10-25 Tom Tromey <[email protected]> |
| 2112 |
|
| 2113 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Pass artificial_p to |
| 2114 |
build_unc_object_type. |
| 2115 |
* gcc-interface/gigi.h (build_unc_object_type): Update. |
| 2116 |
* gcc-interface/utils.cc (build_unc_object_type) Add artificial_p |
| 2117 |
parameter. |
| 2118 |
(build_unc_object_type_from_ptr): Update. |
| 2119 |
|
| 2120 |
2024-10-25 Tom Tromey <[email protected]> |
| 2121 |
|
| 2122 |
* gcc-interface/decl.cc (is_artificial): New function. |
| 2123 |
(gnat_to_gnu_entity): Use it. |
| 2124 |
|
| 2125 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2126 |
|
| 2127 |
* gcc-interface/trans.cc (Call_to_gnu): If the formal is passed by |
| 2128 |
reference and the actual is a type conversion but not addressable, |
| 2129 |
create the temporary in the target type of the conversion if this |
| 2130 |
is needed to enforce strict aliasing. |
| 2131 |
|
| 2132 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2133 |
|
| 2134 |
PR ada/116551 |
| 2135 |
* gcc-interface/trans.cc (node_is_atomic) <N_Identifier>: Return |
| 2136 |
false if the type of the entity is an unconstrained array type. |
| 2137 |
(node_is_volatile_full_access) <N_Identifier>: Likewise. |
| 2138 |
|
| 2139 |
2024-10-25 Bob Duff <[email protected]> |
| 2140 |
|
| 2141 |
* sem_ch10.adb (Analyze_With_Clause): Temporarily disable warning. |
| 2142 |
|
| 2143 |
2024-10-25 Bob Duff <[email protected]> |
| 2144 |
|
| 2145 |
* sem_ch10.adb: (Analyze_With_Clause): Check for self-referential |
| 2146 |
with clause. Give a warning, and set Is_Implicit_With, which we |
| 2147 |
are reusing in this obscure case even though it's not really |
| 2148 |
implicit. |
| 2149 |
(Analyze_Context): Remove check for self-referential with clause. |
| 2150 |
It wasn't correct -- it only triggered for Acts_As_Spec |
| 2151 |
subprograms. Corrected check is now in Analyze_With_Clause. |
| 2152 |
(Implicit_With): Rename to be Is_Implicit_With. Misc cleanup, |
| 2153 |
comment fixes. |
| 2154 |
(Process_Spec_Clauses): Remove default for Exit_On_Self parameter. |
| 2155 |
Use "exit when" instead of if statement. |
| 2156 |
* sinfo.ads (Implicit_With): Rename to be Is_Implicit_With. |
| 2157 |
Document new use for self-referential withs. |
| 2158 |
* ali.adb (Scan_ALI): Use an aggregate to initialize Withs entry. |
| 2159 |
* exp_put_image.adb (Preload_Root_Buffer_Type): Make this a |
| 2160 |
once-only procedure. |
| 2161 |
* sem_util.ads (Is_Ancestor_Package): Fix comment -- a libraryunit |
| 2162 |
is an ancestor of itself, but this doesn't return True in that |
| 2163 |
case. |
| 2164 |
* sem_util.adb (Is_Ancestor_Package): Better to initialize things |
| 2165 |
on their declaration. |
| 2166 |
* lib-load.adb: Minor comment fix. |
| 2167 |
* sem_prag.adb: Implicit_With --> Is_Implicit_With. Minor comment |
| 2168 |
fix. |
| 2169 |
* gen_il-fields.ads: Implicit_With --> Is_Implicit_With. |
| 2170 |
* gen_il-gen-gen_nodes.adb: Likewise |
| 2171 |
* lib.adb: Likewise |
| 2172 |
* lib-writ.adb: Likewise |
| 2173 |
* rtsfind.adb: Likewise |
| 2174 |
* sem_cat.adb: Likewise |
| 2175 |
* sem_ch12.adb: Likewise |
| 2176 |
* sem_ch8.adb: Likewise |
| 2177 |
* sem_elab.adb: Likewise |
| 2178 |
* sem_warn.adb: Likewise |
| 2179 |
* gcc-interface/trans.cc: (Implicit_With): Rename to be |
| 2180 |
Is_Implicit_With. |
| 2181 |
|
| 2182 |
2024-10-25 Tom Tromey <[email protected]> |
| 2183 |
|
| 2184 |
* gcc-interface/trans.cc (namespace_map): New global. |
| 2185 |
(Compilation_Unit_to_gnu): Also handle N_With_Clause and |
| 2186 |
N_Use_Package_Clause. |
| 2187 |
(get_or_create_namespace, get_namespace): New functions. |
| 2188 |
(gnat_to_gnu) <N_Package_Renaming_Declaration>: Call |
| 2189 |
get_namespace. |
| 2190 |
<N_Use_Package_Clause, N_With_Clause>: Likewise. |
| 2191 |
|
| 2192 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2193 |
|
| 2194 |
* freeze.adb (Freeze_Expression.In_Expanded_Body): Tweak comments. |
| 2195 |
|
| 2196 |
2024-10-25 Javier Miranda <[email protected]> |
| 2197 |
|
| 2198 |
* freeze.adb (Freeze_Entity): If the entity is an access-to-subprogram |
| 2199 |
type declaration that pre/postcondition contracts, build the |
| 2200 |
wrapper |
| 2201 |
(if not previously done as part of processing aspects). |
| 2202 |
* sem_ch3.adb (Build_Access_Subprogram_Wrapper): Add missing support |
| 2203 |
for building the wrapper when the access type has pragmas |
| 2204 |
Pre_Class/Post_Class. |
| 2205 |
(Build_Access_Subprogram_Wrapper_Declaration): New subprogram. |
| 2206 |
* sem_ch3.ads (Build_Access_Subprogram_Wrapper): Spec moved to the |
| 2207 |
public part of the package. |
| 2208 |
* sem_prag.adb (Analyze_Pre_Post_Condition): Store in the tree copy of |
| 2209 |
class-wide pre/postcondition expression; required to merge it with |
| 2210 |
inherited conditions. |
| 2211 |
(Is_Valid_Assertion_Kind): Added Pre_Class and Post_Class. |
| 2212 |
|
| 2213 |
2024-10-25 Richard Kenner <[email protected]> |
| 2214 |
|
| 2215 |
* doc/gnat_ugn/about_this_guide.rst: Numerous changes to language |
| 2216 |
and style and add some LLVM-specific information. |
| 2217 |
* doc/gnat_ugn/elaboration_order_handling_in_gnat.rst: Likewise. |
| 2218 |
* doc/gnat_ugn/example_of_binder_output.rst: Likewise. |
| 2219 |
* doc/gnat_ugn/getting_started_with_gnat.rst: Likewise. |
| 2220 |
* doc/gnat_ugn/gnat_and_program_execution.rst: Likewise. |
| 2221 |
* doc/gnat_ugn/gnat_utility_programs.rst: Likewise. |
| 2222 |
* doc/gnat_ugn/inline_assembler.rst: Likewise. |
| 2223 |
* doc/gnat_ugn/platform_specific_information.rst: Likewise. |
| 2224 |
* doc/gnat_ugn/the_gnat_compilation_model.rst: Likewise. |
| 2225 |
* gnat_ugn.texi: Regenerate. |
| 2226 |
|
| 2227 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2228 |
|
| 2229 |
PR ada/43485 |
| 2230 |
* libgnarl/a-retide.adb: Add with clause for System.Soft_Links. |
| 2231 |
(Delay_Until): Defer and undefer abort around the call to the |
| 2232 |
Timed_Delay routine of System.Task_Primitives.Operations. |
| 2233 |
|
| 2234 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2235 |
|
| 2236 |
* freeze.adb (Freeze_Expression.In_Expanded_Body): Also return True |
| 2237 |
for the body of a helper/wrapper built for class-wide preconditions. |
| 2238 |
|
| 2239 |
2024-10-25 Javier Miranda <[email protected]> |
| 2240 |
|
| 2241 |
* sem_prag.adb (Analyze_Pre_Post_Condition): Allow the use of |
| 2242 |
pragma Pre_Class/Post_Class with abstract subprograms. |
| 2243 |
|
| 2244 |
2024-10-25 Javier Miranda <[email protected]> |
| 2245 |
|
| 2246 |
* sem_ch3.adb (Record_Type_Definition): For tagged types, add |
| 2247 |
the missing decoration to the First_Entity in the corresponding |
| 2248 |
class-wide type entity. |
| 2249 |
|
| 2250 |
2024-10-25 Ronan Desplanques <[email protected]> |
| 2251 |
|
| 2252 |
* doc/gnat_rm/gnat_language_extensions.rst: Adjust documentation. |
| 2253 |
* gnat_rm.texi: Regenerate. |
| 2254 |
* gnat_ugn.texi: Regenerate. |
| 2255 |
|
| 2256 |
2024-10-25 Richard Kenner <[email protected]> |
| 2257 |
|
| 2258 |
* comperr.ads (Compiler_Error): Update documentation. |
| 2259 |
|
| 2260 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2261 |
|
| 2262 |
* uintp.ads (Type_Size_For): New function declaration. |
| 2263 |
* uintp.adb (Type_Size_For): New function body. |
| 2264 |
* exp_imgv.adb (Rewrite_Object_Image): Call Type_Size_For to get |
| 2265 |
the size of a narrower integer type. |
| 2266 |
|
| 2267 |
2024-10-25 Tonu Naks <[email protected]> |
| 2268 |
|
| 2269 |
* doc/gnat_rm/gnat_language_extensions.rst: update |
| 2270 |
simpler accessibility model |
| 2271 |
* gnat_rm.texi: Regenerate. |
| 2272 |
* gnat_ugn.texi: Regenerate. |
| 2273 |
|
| 2274 |
2024-10-25 Bob Duff <[email protected]> |
| 2275 |
|
| 2276 |
* doc/gnat_rm/gnat_language_extensions.rst: |
| 2277 |
Minor wording improvments. |
| 2278 |
* gnat_rm.texi: Regenerate. |
| 2279 |
* gnat_ugn.texi: Regenerate. |
| 2280 |
|
| 2281 |
2024-10-25 squirek <[email protected]> |
| 2282 |
|
| 2283 |
* libgnarl/s-taprop__mingw.adb: Modify stack size and update |
| 2284 |
documentation. |
| 2285 |
|
| 2286 |
2024-10-25 Javier Miranda <[email protected]> |
| 2287 |
|
| 2288 |
* gen_il-fields.ads: New node field (Is_Expanded_Prefixed_Call). |
| 2289 |
* gen_il-gen-gen_nodes.adb: New semantic field for N_Function_Call |
| 2290 |
and N_Procedure_Call_Statement nodes. |
| 2291 |
* sem_ch4.adb (Complete_Object_Operation): Mark the rewritten node |
| 2292 |
with the Is_Expanded_Prefixed_Call flag. |
| 2293 |
* sem_res.adb (Check_Prefixed_Call): Code cleanup and addition of |
| 2294 |
documentation. |
| 2295 |
(Resolve_Actuals): Add a null-exclusion check on the |
| 2296 |
prefix of the call when it is an access-type. |
| 2297 |
* sinfo.ads: Adding new semantic flag (Is_Expanded_Prefixed_Call) |
| 2298 |
to N_Function_Call and N_Procedure_Call_Statement nodes. |
| 2299 |
* debug.adb: Adding documentation for switch d_P. |
| 2300 |
|
| 2301 |
2024-10-25 Raphaël AMIARD <[email protected]> |
| 2302 |
|
| 2303 |
* sem_ch13.adb (Analyze_One_Aspect): change the call to |
| 2304 |
`Error_Msg_GNAT_Extension` to allow this aspect in core |
| 2305 |
extensions. Put the code path in core extensions. |
| 2306 |
* exp_util.adb (Name_Of_Controlled_Prim_Op): Put the code path |
| 2307 |
in core extensions |
| 2308 |
|
| 2309 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2310 |
|
| 2311 |
* sem_type.ads (Interp ): Add Opnd_Typ component and remove default |
| 2312 |
value for Abstract_Op component. |
| 2313 |
(Add_One_Interp): Rename Opnd_Type parameter to Opnd_Typ. |
| 2314 |
* sem_type.adb (Add_One_Interp): Likewise. |
| 2315 |
(Add_One_Interp.Add_Entry): Record the operand type as well. |
| 2316 |
(Collect_Interp): Record Empty for the operand type. |
| 2317 |
(Disambiguate.Is_Ambiguous_Boolean_Operator): New predicate. |
| 2318 |
(Disambiguate): Use it to detect recorded ambiguity cases. |
| 2319 |
* sem_ch4.adb (Find_Comparison_Equality_Types): Add commentary. |
| 2320 |
|
| 2321 |
2024-10-25 Javier Miranda <[email protected]> |
| 2322 |
|
| 2323 |
* sem_ch8.adb (Freeze_Actual_Profile): Do not report error |
| 2324 |
on incomplete types, since they do not cause freezing. |
| 2325 |
|
| 2326 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2327 |
|
| 2328 |
* namet.adb (Append_Decoded_With_Brackets): Fix condition for the |
| 2329 |
cheap test at the beginning of the loop. |
| 2330 |
|
| 2331 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2332 |
|
| 2333 |
PR ada/115507 |
| 2334 |
* rtsfind.ads (RE_Id): Add RE_Enum_[Wide_]Wide_String_To_String. |
| 2335 |
(RE_Unit_Table): Add entries for the new values. |
| 2336 |
* exp_attr.adb (Is_User_Defined_Enumeration_Type): New predicate. |
| 2337 |
(Expand_N_Attribute_Reference) <Attribute_Wide_Value>: Build a call |
| 2338 |
to RE_Enum_Wide_String_To_String for user-defined enumeration types. |
| 2339 |
<Attribute_Wide_Wide_Value>: Likewise with |
| 2340 |
RE_Enum_Wide_Wide_String_To_String. |
| 2341 |
* exp_imgv.adb (Expand_Value_Attribute): Adjust to above. |
| 2342 |
* libgnat/s-wchwts.ads (Enum_Wide_String_To_String): New function. |
| 2343 |
(Enum_Wide_Wide_String_To_String): Likewise. |
| 2344 |
* libgnat/s-wchwts.adb: Add clauses for System.Case_Util. |
| 2345 |
(Normalize_String): New local procedure. |
| 2346 |
(Enum_Wide_String_To_String): New function body. |
| 2347 |
(Enum_Wide_Wide_String_To_String): Likewise. |
| 2348 |
|
| 2349 |
2024-10-25 Javier Miranda <[email protected]> |
| 2350 |
|
| 2351 |
* sem_res.adb (Resolve_Actuals): Add checks for incomplete |
| 2352 |
type actuals. |
| 2353 |
|
| 2354 |
2024-10-25 Raphaël AMIARD <[email protected]> |
| 2355 |
|
| 2356 |
* par-ch5.adb (P_Sequence_Of_Statements): Forbid repr clauses in |
| 2357 |
handled_statements. |
| 2358 |
|
| 2359 |
2024-10-25 Raphaël AMIARD <[email protected]> |
| 2360 |
|
| 2361 |
* sem_util.ads: Introduce Inspect_Deferred_Constant_Completion |
| 2362 |
on a single object declaration, to better factorize the code |
| 2363 |
* sem_util.adb: Introduce aforementioned overload |
| 2364 |
* sem_ch4.adb (Analyze_Expression_With_Actions): Check deferred |
| 2365 |
constant completions |
| 2366 |
* sem_ch5.adb (Analyze_Statements): Check deferred constant |
| 2367 |
completions |
| 2368 |
|
| 2369 |
2024-10-25 Eric Botcazou <[email protected]> |
| 2370 |
|
| 2371 |
* exp_ch6.adb (Expand_Actuals.Is_Legal_Copy): Return True for an |
| 2372 |
initialization procedure with a full access formal parameter. |
| 2373 |
(Expand_Actuals.Requires_Atomic_Or_Volatile_Copy): Return True if |
| 2374 |
the formal parameter is of a full access unconstrained array type. |
| 2375 |
|
| 2376 |
2024-10-24 David Malcolm <[email protected]> |
| 2377 |
Gaius Mulley <[email protected]> |
| 2378 |
|
| 2379 |
PR other/116613 |
| 2380 |
* gcc-interface/misc.cc: Add #define INCLUDE_MEMORY |
| 2381 |
* gcc-interface/trans.cc: Likewise. |
| 2382 |
* gcc-interface/utils.cc: Likewise. |
| 2383 |
|
| 2384 |
2024-10-11 Eric Botcazou <[email protected]> |
| 2385 |
|
| 2386 |
PR ada/116498 |
| 2387 |
PR ada/117087 |
| 2388 |
* gcc-interface/decl.cc (validate_size): Fix thinko. |
| 2389 |
|
| 2390 |
2024-10-09 Eric Botcazou <[email protected]> |
| 2391 |
|
| 2392 |
PR ada/117038 |
| 2393 |
* fe.h (struct c_array): Add 'const' to declaration of pointer. |
| 2394 |
(C_Source_Buffer): Use consistent formatting. |
| 2395 |
* par-ch3.adb (P_Component_Items): Properly set Aliased_Present on |
| 2396 |
access definition. |
| 2397 |
* sinput.ads: Remove clause for Interfaces.C. |
| 2398 |
(C_Array): Change type of Length to Integer and make both components |
| 2399 |
aliased. Remove Convention aspect. |
| 2400 |
(C_Source_Buffer): Remove all aspects. |
| 2401 |
* sinput.adb (C_Source_Buffer): Adjust to above change. |
| 2402 |
|
| 2403 |
2024-10-09 Eric Botcazou <[email protected]> |
| 2404 |
|
| 2405 |
* Makefile.rtl: Remove HP-UX 10 section. |
| 2406 |
* libgnarl/s-osinte__hpux-dce.ads: Delete. |
| 2407 |
* libgnarl/s-osinte__hpux-dce.adb: Likewise. |
| 2408 |
* libgnarl/s-taprop__hpux-dce.adb: Likewise. |
| 2409 |
* libgnarl/s-taspri__hpux-dce.ads: Likewise. |
| 2410 |
* libgnat/s-oslock__hpux-dce.ads: Likewise. |
| 2411 |
|
| 2412 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2413 |
|
| 2414 |
PR ada/116498 |
| 2415 |
* gcc-interface/decl.cc (validate_size): Use the size of the default |
| 2416 |
pointer mode as the minimum size for access types and fat pointers. |
| 2417 |
|
| 2418 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2419 |
|
| 2420 |
* gcc-interface/trans.cc (Raise_Error_to_gnu) <CE_Invalid_Data>: |
| 2421 |
Do not the generate range information if the value is a call to a |
| 2422 |
Rep_To_Pos function. |
| 2423 |
|
| 2424 |
2024-10-08 Olivier Hainque <[email protected]> |
| 2425 |
|
| 2426 |
* sigtramp-armdroid.c: Refactor into ... |
| 2427 |
* sigtramp-android.c, sigtramp-android-asm.h: New files. |
| 2428 |
* Makefile.rtl (arm/aarch64-android section): Add |
| 2429 |
sigtramp-android.o to EXTRA_LIBGNAT_OBJS unconditionally. Add |
| 2430 |
sigtramp.h and sigtramp-android-asm.h to EXTRA_LIBGNAT_SRCS. |
| 2431 |
* init.c (android section, __gnat_error_handler): Defer to |
| 2432 |
__gnat_sigramp unconditionally again. |
| 2433 |
* sigtramp.h: Adjust comments to allow neutral signal handling |
| 2434 |
relays, merely forwarding to the underlying handler without any |
| 2435 |
intermediate CFI magic. |
| 2436 |
|
| 2437 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2438 |
|
| 2439 |
PR ada/115507 |
| 2440 |
* exp_imgv.adb (Expand_Valid_Value_Attribute): Add actual parameter |
| 2441 |
for Is_Wide formal in the call to Valid_Value_Enumeration_NN. |
| 2442 |
(Expand_Value_Attribute): Likewise. |
| 2443 |
* libgnat/s-vaen16.ads (Value_Enumeration_16): Add Is_Wide formal. |
| 2444 |
(Valid_Value_Enumeration_16): Likewise. |
| 2445 |
* libgnat/s-vaen32.ads (Value_Enumeration_32): Likewise. |
| 2446 |
(Valid_Value_Enumeration_32): Likewise. |
| 2447 |
* libgnat/s-vaenu8.ads (Value_Enumeration_8): Likewise. |
| 2448 |
(Valid_Value_Enumeration_8): Likewise. |
| 2449 |
* libgnat/s-valboo.adb (Value_Boolean): Pass True for To_Upper_Case |
| 2450 |
formal parameter in call to Normalize_String. |
| 2451 |
* libgnat/s-valcha.adb (Value_Character): Likewise. |
| 2452 |
* libgnat/s-valuen.ads (Value_Enumeration): Add Is_Wide formal. |
| 2453 |
(Valid_Value_Enumeration): Likewise. |
| 2454 |
* libgnat/s-valuen.adb (Value_Enumeration_Pos): Likewise and pass |
| 2455 |
its negation for To_Upper_Case formal in call to Normalize_String. |
| 2456 |
(Valid_Value_Enumeration): Add Is_Wide formal and forward it in |
| 2457 |
call to Value_Enumeration_Pos. |
| 2458 |
(Value_Enumeration): Likewise. |
| 2459 |
* libgnat/s-valuti.ads (Normalize_String): Add To_Upper_Case formal |
| 2460 |
parameter and adjust post-condition accordingly. |
| 2461 |
* libgnat/s-valuti.adb (Normalize_String): Add To_Upper_Case formal |
| 2462 |
parameter and adjust implementation accordingly. |
| 2463 |
* libgnat/s-valwch.adb (Value_Wide_Wide_Character): Pass False for |
| 2464 |
To_Upper_Case formal parameter in call to Normalize_String. |
| 2465 |
|
| 2466 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2467 |
|
| 2468 |
PR ada/114636 |
| 2469 |
* sem_ch12.adb (Check_Formal_Package_Instance): For a defaulted |
| 2470 |
formal discrete type, skip the generated implicit base type. |
| 2471 |
|
| 2472 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2473 |
|
| 2474 |
PR ada/115535 |
| 2475 |
* exp_put_image.adb (Build_Elementary_Put_Image_Call): Use the size |
| 2476 |
of the underlying type to find the support type. |
| 2477 |
|
| 2478 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2479 |
|
| 2480 |
PR ada/114640 |
| 2481 |
* exp_util.adb (Find_Hook_Context): For a node present within a |
| 2482 |
conditional expression, do not return an N_Elsif_Part node. |
| 2483 |
|
| 2484 |
2024-10-08 Viljar Indus <[email protected]> |
| 2485 |
|
| 2486 |
* diagnostics-constructors.adb |
| 2487 |
(Make_Mixed_Container_Aggregate_Error): New function for the error |
| 2488 |
message |
| 2489 |
(Record_Mixed_Container_Aggregate_Error): New function for the |
| 2490 |
error message. |
| 2491 |
* diagnostics-constructors.ads: Likewise. |
| 2492 |
* diagnostics-repository.ads: register new diagnostics id |
| 2493 |
* diagnostics.ads: add new diagnostics id |
| 2494 |
* errout.adb (First_And_Last_Node): Detect the span for component |
| 2495 |
associations. |
| 2496 |
* sem_aggr.adb (Resolve_Container_Aggregate): reject container |
| 2497 |
aggregates that have both named and positional elements. |
| 2498 |
|
| 2499 |
2024-10-08 Ronan Desplanques <[email protected]> |
| 2500 |
|
| 2501 |
* snames.ads-tmpl: Add new pragma definition. |
| 2502 |
* par-prag.adb (Prag): Handle new pragma. |
| 2503 |
* sem_prag.adb (Analyze_Pragma): Implement new pragma. |
| 2504 |
|
| 2505 |
2024-10-08 Ronan Desplanques <[email protected]> |
| 2506 |
|
| 2507 |
* snames.ads-tmpl: Tweak position of comment. |
| 2508 |
|
| 2509 |
2024-10-08 Tonu Naks <[email protected]> |
| 2510 |
|
| 2511 |
* doc/gnat_rm/gnat_language_extensions.rst: replace |
| 2512 |
references to RFC's with appropriate text from the rfc |
| 2513 |
* gnat_rm.texi: Regenerate. |
| 2514 |
* gnat_ugn.texi: Regenerate. |
| 2515 |
|
| 2516 |
2024-10-08 Ronan Desplanques <[email protected]> |
| 2517 |
|
| 2518 |
* lib-writ.ads (Add_Preprocessing_Dependency): Update |
| 2519 |
documentation comment. |
| 2520 |
* sem_ch3.adb (Apply_External_Initialization): Add call to |
| 2521 |
Add_Preprocessing_Dependency. |
| 2522 |
|
| 2523 |
2024-10-08 Viljar Indus <[email protected]> |
| 2524 |
|
| 2525 |
* exp_aggr.adb (Build_Siz_Exp): Support deriving the size of the |
| 2526 |
container aggregate with multi-dimensional arrays. Make the |
| 2527 |
function return an node of an expression instead of an integer. |
| 2528 |
Additionally calculate the size expression for |
| 2529 |
Component_Associations. |
| 2530 |
(To_Int) make this method available for more functions. |
| 2531 |
(Aggregate_Size) Relocate the calculation of |
| 2532 |
Componenet_Associations to Build_Siz_Exp. |
| 2533 |
|
| 2534 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2535 |
|
| 2536 |
* exp_tss.ads (Is_Rep_To_Pos): New function declaration. |
| 2537 |
* exp_tss.adb (Is_Rep_To_Pos): New function body. |
| 2538 |
* fe.h (Is_Rep_To_Pos): New macro and extern declaration. |
| 2539 |
|
| 2540 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2541 |
|
| 2542 |
* exp_imgv.adb (Rewrite_Object_Image): When the prefix is a type |
| 2543 |
conversion to Universal_Integer, use its expression directly. When |
| 2544 |
the prefix is an integer literal with Universal_Integer type, try |
| 2545 |
to compute a narrower type. |
| 2546 |
|
| 2547 |
2024-10-08 Raphaël AMIARD <[email protected]> |
| 2548 |
|
| 2549 |
* par-ch11.adb (P_Sequence_Of_Statements): Remove Handled |
| 2550 |
parameter. Always wrap the statements in a block when there are |
| 2551 |
declarations in it. |
| 2552 |
* par-ch5.adb: Adapt call to P_Sequence_Of_Statements Update |
| 2553 |
outdated comment, remove useless `Style_Checks` pragma. |
| 2554 |
(P_Sequence_Of_Statements): Don't emit an error in core extensions |
| 2555 |
mode. Emit an error when a non valid declaration is parsed in |
| 2556 |
sequence of statements. |
| 2557 |
* par.adb: Adapt P_Sequence_Of_Statements' signature |
| 2558 |
* doc/gnat_rm/gnat_language_extensions.rst: Adapt documentation |
| 2559 |
now. |
| 2560 |
* gnat_rm.texi: Regenerate. |
| 2561 |
* gnat_ugn.texi: Regenerate. |
| 2562 |
|
| 2563 |
2024-10-08 Ronan Desplanques <[email protected]> |
| 2564 |
|
| 2565 |
* generate_minimal_reproducer.adb (Generate_Minimal_Reproducer): |
| 2566 |
Fix behavior on child subprograms without specs. |
| 2567 |
|
| 2568 |
2024-10-08 Steve Baird <[email protected]> |
| 2569 |
|
| 2570 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Don't freeze here |
| 2571 |
if Has_Delayed_Freeze returns True. |
| 2572 |
* sem_type.adb (Valid_Equality_Arg): Treat an incomplete type like |
| 2573 |
a limited type because neither has an implicitly-defined equality |
| 2574 |
primitive. |
| 2575 |
(Covers): If either argument is an incomplete type |
| 2576 |
whose full view is available, then look through to the full view. |
| 2577 |
* sem_res.adb (Resolve_Actuals): If the actual parameter type is |
| 2578 |
complete and the formal parameter type is not, then update the |
| 2579 |
formal parameter type to use the complete view. |
| 2580 |
|
| 2581 |
2024-10-08 squirek <[email protected]> |
| 2582 |
|
| 2583 |
* sem_ch3.adb (Derived_Type_Declaration): Modify generation of |
| 2584 |
compile time check. |
| 2585 |
|
| 2586 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2587 |
|
| 2588 |
* libgnat/s-trasym__dwarf.adb (LDAD_Header): New String constant. |
| 2589 |
(Symbolic_Traceback): Print the load address of the executable at |
| 2590 |
the beginning if it is not null. |
| 2591 |
|
| 2592 |
2024-10-08 Steve Baird <[email protected]> |
| 2593 |
|
| 2594 |
* sem_ch6.adb (Check_Discriminant_Conformance): In testing whether |
| 2595 |
a default expression is permitted for an access discriminant, we |
| 2596 |
need to know whether the discriminated type is immutably limited. |
| 2597 |
Handle another part of this test that cannot easily be handled in |
| 2598 |
Sem_Aux.Is_Immutably_Limited. This involves declaring a new local |
| 2599 |
function, Is_Derived_From_Immutably_Limited_Type. |
| 2600 |
|
| 2601 |
2024-10-08 Steve Baird <[email protected]> |
| 2602 |
|
| 2603 |
* sem_attr.adb (Resolve_Attribute): When setting the Etype of a |
| 2604 |
universal-integer-valued attribute reference to the subtype |
| 2605 |
determined by its context, use the basetype of that subtype |
| 2606 |
instead of the subtype itself if there is a possibility that the |
| 2607 |
attribute value will not satisfy the constraints of that subtype. |
| 2608 |
Otherwise the compiler is, in effect, assuming something that |
| 2609 |
might not be true. Except use the subtype in the case of a |
| 2610 |
not-from-source 'Pos attribute reference in order to avoid |
| 2611 |
breaking things. |
| 2612 |
|
| 2613 |
2024-10-08 Ronan Desplanques <[email protected]> |
| 2614 |
|
| 2615 |
* comperr.adb (Compiler_Abort): Add call to |
| 2616 |
Generate_Minimal_Reproducer and replace call to Namet.Unlock with |
| 2617 |
call to Unlock_If_Locked. |
| 2618 |
* debug.adb: Document new purpose of -gnatd_m and -gnatd_M. |
| 2619 |
* fname-uf.adb (Instantiate_SFN_Pattern): New procedure. |
| 2620 |
(Get_Default_File_Name): New function. |
| 2621 |
(Get_File_Name): Replace inline code with call to |
| 2622 |
Instantiate_SFN_Pattern. |
| 2623 |
* fname-uf.ads (Get_Default_File_Name): New function. |
| 2624 |
* generate_minimal_reproducer.adb (Generate_Minimal_Reproducer): |
| 2625 |
New procedure. |
| 2626 |
* namet.adb (Unlock_If_Locked): New function. |
| 2627 |
* namet.ads (Unlock_If_Locked): Likewise. |
| 2628 |
* par-prag.adb (Prag): Add special behavior with -gnatd_M. |
| 2629 |
* set_targ.adb: Minor fixes to comments. |
| 2630 |
* gcc-interface/Make-lang.in: Update list of object files. |
| 2631 |
|
| 2632 |
2024-10-08 Eric Botcazou <[email protected]> |
| 2633 |
|
| 2634 |
* exp_aggr.ads (Is_Two_Pass_Aggregate): New function declaration. |
| 2635 |
* exp_aggr.adb (Is_Two_Pass_Aggregate): New function body. |
| 2636 |
(Expand_Array_Aggregate): Call Is_Two_Pass_Aggregate to detect the |
| 2637 |
aggregates that need the 2-pass expansion. |
| 2638 |
* exp_ch3.adb (Expand_Freeze_Array_Type): In the anonymous array |
| 2639 |
case, build the initialization procedure if the initial value in |
| 2640 |
the object declaration is a 2-pass aggregate. |
| 2641 |
|
| 2642 |
2024-10-08 Ghjuvan Lacambre <[email protected]> |
| 2643 |
|
| 2644 |
* sem_prag.adb (Process_Compile_Time_Warning_Or_Error): Fix |
| 2645 |
indentation. |
| 2646 |
|
| 2647 |
2024-10-08 Ronan Desplanques <[email protected]> |
| 2648 |
|
| 2649 |
* aspects.ads: Add entities for External_Initialization. |
| 2650 |
* checks.adb (Selected_Length_Checks): Add support for |
| 2651 |
N_External_Initializer nodes. |
| 2652 |
* doc/gnat_rm/gnat_language_extensions.rst: Add section for the added |
| 2653 |
extension. |
| 2654 |
* exp_util.adb (Insert_Actions): Add support for N_External_Initializer |
| 2655 |
nodes. |
| 2656 |
* fe.h (C_Source_Buffer): New function. |
| 2657 |
* gen_il-fields.ads: Add new field. |
| 2658 |
* gen_il-gen-gen_nodes.adb: Add N_External_Initializer node kind. |
| 2659 |
* gen_il-gen.adb: Add new field type. |
| 2660 |
* gen_il-types.ads: Add new node kind and new field type. |
| 2661 |
* pprint.adb (Expr_Name): Handle new node kind. |
| 2662 |
* sem.adb (Analyze): Add support for N_External_Initializer nodes. |
| 2663 |
* sem_ch13.adb (Analyze_Aspect_Specifications, Check_Aspect_At_Freeze_Point): |
| 2664 |
Add support for External_Initialization aspect. |
| 2665 |
* sem_ch3.adb (Apply_External_Initialization): New subprogram. |
| 2666 |
(Analyze_Object_Declaration): Add support for External_Initialization aspect. |
| 2667 |
* sem_res.adb (Resolve_External_Initializer): New procedure. |
| 2668 |
(Resolve): Add support for N_External_Initializer nodes. |
| 2669 |
(Set_String_Literal_Subtype): Extend to handle N_External_Initializer nodes. |
| 2670 |
* sinfo-utils.adb (Is_In_Union_Id): Adapt to new field addition. |
| 2671 |
* sinfo.ads: Add documentation for new node kind and new field. |
| 2672 |
* sinput.adb, sinput.ads (C_Source_Buffer): Add new C interface function. |
| 2673 |
* snames.ads-tmpl: Add new aspect identifier. |
| 2674 |
* sprint.adb (Sprint_Node_Actual): Add nop handling of N_External_Initializer |
| 2675 |
nodes. |
| 2676 |
* types.ads: Modify type to allow for new C interface. |
| 2677 |
* gcc-interface/trans.cc (gnat_to_gnu): Handle new GNAT node type. |
| 2678 |
* gcc-interface/Make-lang.in: Update list of stage1 run-time library units. |
| 2679 |
* gnat-style.texi: Regenerate. |
| 2680 |
* gnat_rm.texi: Regenerate. |
| 2681 |
* gnat_ugn.texi: Regenerate. |
| 2682 |
|
| 2683 |
2024-10-08 Olivier Hainque <[email protected]> |
| 2684 |
|
| 2685 |
* Makefile.rtl (arm/aarch64-android): Associate a-nallfl.ads with |
| 2686 |
libgnat/a-nallfl__wraplf.ads. |
| 2687 |
|
| 2688 |
2024-10-08 Olivier Hainque <[email protected]> |
| 2689 |
|
| 2690 |
* libgnarl/s-linux__android-arm.ads: Define SIGSYS. |
| 2691 |
* libgnarl/s-linux__android-aarch64.ads: Define SIGSYS. |
| 2692 |
* libgnarl/s-osinte__android.ads: Expose SIGSYS value. |
| 2693 |
|
| 2694 |
2024-10-08 Olivier Hainque <[email protected]> |
| 2695 |
|
| 2696 |
* libgnarl/s-linux__android-arm.ads: New file, renaming of ... |
| 2697 |
* libgnarl/s-linux__android.ads: ... this file. |
| 2698 |
* libgnarl/s-linux__android-aarch64.ads: New file. Based on the |
| 2699 |
-arm variant, with sa_ field positions adjusted. |
| 2700 |
* Makefile.rtl (arm/aarch64-android pairs): Adjust accordingly. |
| 2701 |
* libgnarl/s-osinte__android.ads: Rather than making assumptions |
| 2702 |
on the actual type of the C sigset_t, use |
| 2703 |
Os_Constants.SIZEOF_sigset_t to define an Ada sigset_t type of the |
| 2704 |
proper size. Use C.int instead of unsigned_long for sa_flags. |
| 2705 |
|
| 2706 |
2024-10-08 Olivier Hainque <[email protected]> |
| 2707 |
|
| 2708 |
* init.c (__gnat_error_handler): Map signals straight to Ada |
| 2709 |
exceptions, without a local CFI trampoline. |
| 2710 |
(__gnat_adjust_context_for_raise): Guard arm specific code on __arm__ |
| 2711 |
compilation. Do nothing otherwise, relying on libgcc's signal |
| 2712 |
frame recognition for PC/RA adjustments. |
| 2713 |
|
| 2714 |
2024-10-08 Olivier Hainque <[email protected]> |
| 2715 |
|
| 2716 |
* Makefile.rtl: Extend arm-android section to aarch64, in a similar |
| 2717 |
fashion as other arm/arch64 configurations. Introduce pair |
| 2718 |
selection guards to prevent match of aarch64-linux-android on the |
| 2719 |
regular aarch64-linux% cross as well. |
| 2720 |
|
| 2721 |
2024-10-08 Ghjuvan Lacambre <[email protected]> |
| 2722 |
|
| 2723 |
* sem_prag.adb (Process_Compile_Time_Warning_Or_Error): Turn |
| 2724 |
Compile_Time pragmas into null nodes |
| 2725 |
|
| 2726 |
2024-10-05 Eric Botcazou <[email protected]> |
| 2727 |
|
| 2728 |
PR middle-end/116933 |
| 2729 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Out_Parameter>: Add |
| 2730 |
the "uninitialized" attribute on Out parameters. |
| 2731 |
* gcc-interface/utils.cc (gnat_internal_attributes): Add entry for |
| 2732 |
the "uninitialized" attribute. |
| 2733 |
(handle_uninitialized_attribute): New function. |
| 2734 |
|
| 2735 |
2024-09-25 Mikael Morin <[email protected]> |
| 2736 |
|
| 2737 |
PR other/116801 |
| 2738 |
* gcc-interface/lang.opt.urls: Regenerate. |
| 2739 |
|
| 2740 |
2024-09-10 Eric Botcazou <[email protected]> |
| 2741 |
|
| 2742 |
* gcc-interface/misc.cc: Include memmodel.h before tm_p.h. |
| 2743 |
|
| 2744 |
2024-09-10 Viljar Indus <[email protected]> |
| 2745 |
|
| 2746 |
* gcc-interface/decl.cc: Use same warning characters in |
| 2747 |
continuation messages. |
| 2748 |
* gcc-interface/trans.cc: Likewise. |
| 2749 |
|
| 2750 |
2024-09-10 Javier Miranda <[email protected]> |
| 2751 |
|
| 2752 |
* sem_ch13.adb (Analyze_One_Aspect): Call |
| 2753 |
Error_Msg_GNAT_Extension() to report an error when the aspect |
| 2754 |
First_Controlling_Parameter is set to True and the sources are |
| 2755 |
compiled without Core_Extensions_ Allowed. |
| 2756 |
* sem_prag.adb (Pragma_First_Controlling_Parameter): Call |
| 2757 |
subprogram Error_Msg_GNAT_Extension() to report an error when the |
| 2758 |
aspect First_Controlling_Parameter is set to True and the sources |
| 2759 |
are compiled without Core_Extensions_Allowed. Report an error when |
| 2760 |
the aspect pragma does not confirm an inherited True value. |
| 2761 |
|
| 2762 |
2024-09-10 Viljar Indus <[email protected]> |
| 2763 |
|
| 2764 |
* diagnostics-pretty_emitter.adb (Get_Last_Line_Char): New. Get |
| 2765 |
the last non line change character. Write_Span_Labels use the |
| 2766 |
adjusted line end pointer to calculate the length of the span. |
| 2767 |
|
| 2768 |
2024-09-10 Piotr Trojanek <[email protected]> |
| 2769 |
|
| 2770 |
* exp_intr.ads, exp_intr.adb (Expand_Source_Info): Move |
| 2771 |
declaration to package spec. |
| 2772 |
* sem_eval.adb (Eval_Intrinsic_Call): Evaluate calls to |
| 2773 |
GNAT.Source_Info where possible. |
| 2774 |
|
| 2775 |
2024-09-10 Piotr Trojanek <[email protected]> |
| 2776 |
|
| 2777 |
* checks.adb (Remove_Checks): Combine CASE alternatives. |
| 2778 |
|
| 2779 |
2024-09-10 Piotr Trojanek <[email protected]> |
| 2780 |
|
| 2781 |
* libgnat/s-os_lib.ads: Remove extra whitespace. |
| 2782 |
|
| 2783 |
2024-09-09 David Malcolm <[email protected]> |
| 2784 |
|
| 2785 |
PR other/116613 |
| 2786 |
* gcc-interface/misc.cc (internal_error_function): Rename |
| 2787 |
diagnostic_context's "printer" field to "m_printer". |
| 2788 |
|
| 2789 |
2024-09-05 Eric Botcazou <[email protected]> |
| 2790 |
|
| 2791 |
* gcc-interface/trans.cc (addressable_p) <COMPONENT_REF>: Add bypass |
| 2792 |
for internal fields on strict-alignment platforms. |
| 2793 |
|
| 2794 |
2024-09-05 Eric Botcazou <[email protected]> |
| 2795 |
|
| 2796 |
* gcc-interface/gigi.h (default_field_alignment): New function. |
| 2797 |
* gcc-interface/misc.cc: Include tm_p header file. |
| 2798 |
(default_field_alignment): New function. |
| 2799 |
* gcc-interface/trans.cc (addressable_p) <COMPONENT_REF>: Replace |
| 2800 |
previous alignment klduge with call to default_field_alignment. |
| 2801 |
* gcc-interface/utils.cc (finish_record_type): Likewise for the |
| 2802 |
alignment based on which DECL_BIT_FIELD should be cleared. |
| 2803 |
|
| 2804 |
2024-09-05 Piotr Trojanek <[email protected]> |
| 2805 |
|
| 2806 |
* exp_util.ads, exp_util.adb (Duplicate_Subexpr_No_Checks): |
| 2807 |
Remove parameters, which are no longer used. |
| 2808 |
|
| 2809 |
2024-09-05 Viljar Indus <[email protected]> |
| 2810 |
|
| 2811 |
* par-endh.adb: add call to new diagnostic for end loop errors. |
| 2812 |
* sem_ch13.adb: add call to new diagnostic for default iterator |
| 2813 |
error and record representation being too late. |
| 2814 |
* sem_ch4.adb: Add new diagnostic for wrong operands. |
| 2815 |
* sem_ch9.adb: Add new diagnostic for a Lock_Free warning. |
| 2816 |
* libgnat/g-lists.adb (Ensure_Unlocked): Make checks for tampering |
| 2817 |
conditional. |
| 2818 |
* libgnat/g-lists.ads: Add parameter Tampering_Checks to control |
| 2819 |
whether tampering checks should be executed. |
| 2820 |
* backend_utils.adb: Add new gcc switches |
| 2821 |
'-fdiagnostics-format=sarif-file' and |
| 2822 |
'-fdiagnostics-format=sarif-stderr'. |
| 2823 |
* debug.adb: document -gnatd_D switch. |
| 2824 |
* diagnostics-brief_emitter.adb: New package for displaying |
| 2825 |
diagnostic messages in a compact manner. |
| 2826 |
* diagnostics-brief_emitter.ads: Same as above. |
| 2827 |
* diagnostics-constructors.adb: New pacakge for providing simpler |
| 2828 |
constructor methods for new diagnostic objects. |
| 2829 |
* diagnostics-constructors.ads: Same as above. |
| 2830 |
* diagnostics-converter.adb: New package for converting old |
| 2831 |
Error_Msg_Object-s to Diagnostic_Types. |
| 2832 |
* diagnostics-converter.ads: Same as above. |
| 2833 |
* diagnostics-json_utils.adb: Package for utility methods related |
| 2834 |
to emitting JSON. |
| 2835 |
* diagnostics-json_utils.ads: Same as above. |
| 2836 |
* diagnostics-pretty_emitter.adb: New package for displaying |
| 2837 |
diagnostic messages in a more elaborate manner. |
| 2838 |
* diagnostics-pretty_emitter.ads: Same as above. |
| 2839 |
* diagnostics-repository.adb: New package for collecting all |
| 2840 |
created error messages. |
| 2841 |
* diagnostics-repository.ads: Same as above. |
| 2842 |
* diagnostics-sarif_emitter.adb: New pacakge for converting all of |
| 2843 |
the diagnostics into a report in the SARIF format. |
| 2844 |
* diagnostics-sarif_emitter.ads: Same as above. |
| 2845 |
* diagnostics-switch_repository.adb: New package containing the |
| 2846 |
definitions for all of the warninging switches. |
| 2847 |
* diagnostics-switch_repository.ads: Same as above. |
| 2848 |
* diagnostics-utils.adb: Contains various utility methods for the |
| 2849 |
diagnostic pacakges. |
| 2850 |
* diagnostics-utils.ads: Same as above. |
| 2851 |
* diagnostics.adb: Contains the definitions and common functions |
| 2852 |
for all the new diagnostics objects. |
| 2853 |
* diagnostics.ads: Same as above. |
| 2854 |
* errout.adb: Relocate the old implementations for brief and |
| 2855 |
pretty printing the diagnostic messages and the entrypoint to the |
| 2856 |
new implementation if a debug switch is used. |
| 2857 |
* errout.ads: Improve documentation. Make Set_Msg_Text publicly |
| 2858 |
available. |
| 2859 |
* opt.ads: Add the flag SARIF_File which controls whether the |
| 2860 |
diagnostic messages should be printed to a file in the SARIF |
| 2861 |
format. Add the flag SARIF_Output to control whether the |
| 2862 |
diagnostic messages should be printed to std-err in the SARIF |
| 2863 |
format. |
| 2864 |
* gcc-interface/Make-lang.in: Add new pacakages to the object |
| 2865 |
list. |
| 2866 |
* gcc-interface/Makefile.in: Add new pacakages to the object list. |
| 2867 |
|
| 2868 |
2024-09-05 Jose Ruiz <[email protected]> |
| 2869 |
|
| 2870 |
* ali-util.adb (Get_File_Checksum): Force the parsing for |
| 2871 |
the checksum computation of runtime files to be done in |
| 2872 |
the corresponding recent Ada version. |
| 2873 |
|
| 2874 |
2024-09-05 Ronan Desplanques <[email protected]> |
| 2875 |
|
| 2876 |
* inline.adb (Cannot_Inline): Remove assertion. |
| 2877 |
* inline.ads (Cannot_Inline): Add precondition. |
| 2878 |
|
| 2879 |
2024-09-03 Eric Botcazou <[email protected]> |
| 2880 |
|
| 2881 |
* gcc-interface/trans.cc (addressable_p) <COMPONENT_REF>: Add kludge |
| 2882 |
to cope with ancient 32-bit ABIs. |
| 2883 |
|
| 2884 |
2024-09-03 Eric Botcazou <[email protected]> |
| 2885 |
|
| 2886 |
* gcc-interface/trans.cc (create_temporary): Deal with types whose |
| 2887 |
size is self-referential by allocating the maximum size. |
| 2888 |
|
| 2889 |
2024-09-03 Eric Botcazou <[email protected]> |
| 2890 |
|
| 2891 |
* gcc-interface/trans.cc (get_atomic_access): Deal specifically with |
| 2892 |
nodes that are both Atomic and Volatile_Full_Access in Ada 2012. |
| 2893 |
|
| 2894 |
2024-09-03 Eric Botcazou <[email protected]> |
| 2895 |
|
| 2896 |
* gcc-interface/trans.cc (addressable_p) <COMPONENT_REF>: Take into |
| 2897 |
account the alignment of the field on all platforms. |
| 2898 |
|
| 2899 |
2024-09-03 Eric Botcazou <[email protected]> |
| 2900 |
|
| 2901 |
* gcc-interface/decl.cc (gnat_to_gnu_field): Clear again gnu_size |
| 2902 |
after updating it if it is not constant. |
| 2903 |
|
| 2904 |
2024-09-03 Marc Poulhiès <[email protected]> |
| 2905 |
|
| 2906 |
* exp_unst.adb (Check_Static_Type::Note_Uplevel_Bound): Refactor |
| 2907 |
to use the generic Traverse_Proc. |
| 2908 |
(Check_Static_Type): Adjust calls to Note_Uplevel_Bound as the |
| 2909 |
previous second parameter was unused, so removed. |
| 2910 |
|
| 2911 |
2024-09-03 Steve Baird <[email protected]> |
| 2912 |
|
| 2913 |
* exp_attr.adb (Expand_N_Attribute_Reference): If it makes sense |
| 2914 |
to do so, then rewrite a Length attribute reference as an |
| 2915 |
equivalent conditional expression. |
| 2916 |
|
| 2917 |
2024-09-03 Eric Botcazou <[email protected]> |
| 2918 |
|
| 2919 |
* sem_res.adb (Is_Atomic_Ref_With_Address): Rename into... |
| 2920 |
(Is_Atomic_Non_VFA_Ref_With_Address): ...this and adjust the |
| 2921 |
implementation to exclude Volatile_Full_Access objects. |
| 2922 |
(Resolve_Indexed_Component): Adjust to above renaming. |
| 2923 |
(Resolve_Selected_Component): Likewise. |
| 2924 |
|
| 2925 |
2024-09-03 Steve Baird <[email protected]> |
| 2926 |
|
| 2927 |
* sem_aggr.adb (Resolve_Array_Aggregate): Implement the two new |
| 2928 |
legality rules of AI11-0106. Add code to avoid cascading error |
| 2929 |
messages. |
| 2930 |
|
| 2931 |
2024-09-03 Bob Duff <[email protected]> |
| 2932 |
|
| 2933 |
* exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): |
| 2934 |
Remove Finalize_Storage_Only from the code that checks whether to |
| 2935 |
pass null to the Collection parameter. Having done that, we don't |
| 2936 |
need to check for Is_Library_Level_Entity, because |
| 2937 |
No_Heap_Finalization requires that. And if we ever change |
| 2938 |
No_Heap_Finalization to allow nested access types, we will still |
| 2939 |
want to pass null. Note that the comment "Such a type lacks a |
| 2940 |
collection." is incorrect in the case of Finalize_Storage_Only; |
| 2941 |
such types have a collection. |
| 2942 |
|
| 2943 |
2024-09-02 Eric Botcazou <[email protected]> |
| 2944 |
|
| 2945 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Cap the Esize of a |
| 2946 |
floating-point type to the size of the widest format supported in |
| 2947 |
hardware if it is explicity defined. |
| 2948 |
|
| 2949 |
2024-09-02 Viljar Indus <[email protected]> |
| 2950 |
|
| 2951 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: update |
| 2952 |
documentation for the -gnatw_l switch. |
| 2953 |
* usage.adb: Add -gnatw_l entry. |
| 2954 |
* gnat_ugn.texi: Regenerate. |
| 2955 |
|
| 2956 |
2024-09-02 Ronan Desplanques <[email protected]> |
| 2957 |
|
| 2958 |
* gnatcmd.adb (GNATCmd): Fix standard output stream. |
| 2959 |
|
| 2960 |
2024-09-02 Ronan Desplanques <[email protected]> |
| 2961 |
|
| 2962 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix |
| 2963 |
minor issues. |
| 2964 |
* gnat_ugn.texi: Regenerate. |
| 2965 |
|
| 2966 |
2024-09-02 Bob Duff <[email protected]> |
| 2967 |
|
| 2968 |
* doc/gnat_rm/gnat_language_extensions.rst: I assume "extended set |
| 2969 |
of extensions" was a typo for "experimental set of extensions", |
| 2970 |
because "extended extensions" is repetitive and redundant. "in |
| 2971 |
addition" clarifies that the one subsumes the other. Add a |
| 2972 |
reminder at the start of each subsection about what switch/pragma |
| 2973 |
enables what extensions. Add new section about "Inference of |
| 2974 |
Dependent Types in Generic Instantiations". |
| 2975 |
* gnat_rm.texi: Regenerate. |
| 2976 |
|
| 2977 |
2024-09-02 Patrick Bernardi <[email protected]> |
| 2978 |
|
| 2979 |
* s-oscons-tmplt.c: Define sizes of pthread data types on FreeBSD. |
| 2980 |
* tracebak.c: Use GCC unwinder and adjust PC appropriately on |
| 2981 |
aarch64-freebsd. |
| 2982 |
|
| 2983 |
2024-09-02 Marc Poulhiès <[email protected]> |
| 2984 |
|
| 2985 |
* exp_ch9.adb (Reset_Scopes_To): Adjust comment. |
| 2986 |
(Reset_Scopes_To.Reset_Scope): Adjust the scope reset for object |
| 2987 |
declaration. In particular, visit the children nodes if any. Also |
| 2988 |
extend the handling of other declarations to |
| 2989 |
N_Implicit_Label_Declaration. |
| 2990 |
|
| 2991 |
2024-09-02 Piotr Trojanek <[email protected]> |
| 2992 |
|
| 2993 |
* exp_ch3.adb (Expand_N_Object_Declaration): Replace calls to Sloc |
| 2994 |
with uses of Loc; turn variable Prag into constant. |
| 2995 |
|
| 2996 |
2024-09-02 Piotr Trojanek <[email protected]> |
| 2997 |
|
| 2998 |
* exp_imgv.adb (Expand_User_Defined_Enumeration_Image) |
| 2999 |
(Expand_Image_Attribute): Remove redundant guards. |
| 3000 |
|
| 3001 |
2024-08-29 Eric Botcazou <[email protected]> |
| 3002 |
|
| 3003 |
* sem_ch8.adb (Has_Private_With): Add test on Is_Entity_Name. |
| 3004 |
|
| 3005 |
2024-08-29 Eric Botcazou <[email protected]> |
| 3006 |
|
| 3007 |
* checks.adb (Selected_Length_Checks.Get_E_Length): For a |
| 3008 |
component of a record with discriminants and if the expression is |
| 3009 |
a selected component, try to build an actual subtype from its |
| 3010 |
prefix instead of from the discriminal. |
| 3011 |
|
| 3012 |
2024-08-29 Steve Baird <[email protected]> |
| 3013 |
|
| 3014 |
* sem_ch6.adb (Check_Discriminant_Conformance): Immediately after |
| 3015 |
calling Is_Immutably_Limited_Type, perform an additional test that |
| 3016 |
one might reasonably imagine would instead have been part of |
| 3017 |
Is_Immutably_Limited_Type. The new test is a call to a new |
| 3018 |
function Has_Tagged_Limited_Partial_View whose implementation |
| 3019 |
includes a call to Incomplete_Or_Partial_View, which cannot be |
| 3020 |
easily be called from Is_Immutably_Limited_Type (because sem_aux, |
| 3021 |
which is in the closure of the binder, cannot easily "with" |
| 3022 |
sem_util). |
| 3023 |
* sem_aux.adb (Is_Immutably_Limited): Include |
| 3024 |
N_Derived_Type_Definition case when testing Limited_Present flag. |
| 3025 |
|
| 3026 |
2024-08-29 Eric Botcazou <[email protected]> |
| 3027 |
|
| 3028 |
* exp_ch6.adb (Expand_Call_Helper): In the case of a function |
| 3029 |
call, look at the Etype of the call node to determine whether |
| 3030 |
finalization actions need to be performed. |
| 3031 |
|
| 3032 |
2024-08-29 Viljar Indus <[email protected]> |
| 3033 |
|
| 3034 |
* erroutc.adb (dmsg): Print Insertion_Sloc. |
| 3035 |
|
| 3036 |
2024-08-29 Viljar Indus <[email protected]> |
| 3037 |
|
| 3038 |
* exp_aggr.adb (Expand_Range_Component): Remove extra warning |
| 3039 |
character. Use same conditional warning char. |
| 3040 |
* freeze.adb (Warn_Overlay): Use named warning character. |
| 3041 |
* restrict.adb (Id_Case): Use named warning character. |
| 3042 |
* sem_prag.adb (Rewrite_Assertion_Kind): Use default warning |
| 3043 |
character. |
| 3044 |
|
| 3045 |
2024-08-29 Viljar Indus <[email protected]> |
| 3046 |
|
| 3047 |
* par-ch4.adb (P_Name): Use Error_Msg_Sloc for the location of the |
| 3048 |
continuation message. |
| 3049 |
|
| 3050 |
2024-08-29 Viljar Indus <[email protected]> |
| 3051 |
|
| 3052 |
* exp_prag.adb (Expand_Pragma_Inspection_Point): Improve sub |
| 3053 |
diagnostic generation. |
| 3054 |
|
| 3055 |
2024-08-29 Viljar Indus <[email protected]> |
| 3056 |
|
| 3057 |
* sem_ch12.adb (Abandon_Instantiation): Remove continuation |
| 3058 |
characters from the error message. |
| 3059 |
* sem_ch13.adb (Check_False_Aspect_For_Derived_Type): Remove |
| 3060 |
continuation characters from the error message. |
| 3061 |
* sem_ch6.adb (Assert_False): Avoid creating a continuation |
| 3062 |
message without a parent. If no primary message is created then |
| 3063 |
the message is considered as primary. |
| 3064 |
|
| 3065 |
2024-08-29 Viljar Indus <[email protected]> |
| 3066 |
|
| 3067 |
* erroutc.adb (Prescan_Message): Avoid not parsing all of the |
| 3068 |
message attributes. |
| 3069 |
* erroutc.ads: Update the documentation. |
| 3070 |
|
| 3071 |
2024-08-29 Viljar Indus <[email protected]> |
| 3072 |
|
| 3073 |
* freeze.adb: Remove warning insertion characters from a |
| 3074 |
continuation message. |
| 3075 |
* sem_util.adb: Remove warning insertion characters from a |
| 3076 |
continuation message. |
| 3077 |
* sem_warn.adb: Use same warning character as the main message. |
| 3078 |
|
| 3079 |
2024-08-29 Viljar Indus <[email protected]> |
| 3080 |
|
| 3081 |
* erroutc.ads: Add new method Output_Text_Within |
| 3082 |
* erroutc.adb: Move the line fitting code to a new method called |
| 3083 |
Output_Text_Within |
| 3084 |
|
| 3085 |
2024-08-29 Piotr Trojanek <[email protected]> |
| 3086 |
|
| 3087 |
* checks.adb (Expr_Known_Valid): Use Validated_View, which strips |
| 3088 |
type derivation and privacy. |
| 3089 |
* exp_ch3.adb (Simple_Init_Private_Type): Kill checks inside |
| 3090 |
unchecked conversions, just like in Simple_Init_Scalar_Type. |
| 3091 |
|
| 3092 |
2024-08-29 Viljar Indus <[email protected]> |
| 3093 |
|
| 3094 |
* styleg.adb (Check_Line_Max_Length): Add the actual line length |
| 3095 |
to the diagnostic message. |
| 3096 |
|
| 3097 |
2024-08-29 Gary Dismukes <[email protected]> |
| 3098 |
|
| 3099 |
* sem_aggr.adb (Resolve_Array_Aggregate): Add loop over associations to locate |
| 3100 |
N_Iterated_Component_Associations that do not have an Iterator_Specification, |
| 3101 |
and if their Discrete_Choices list consists of a single choice, analyze it and |
| 3102 |
if it's the name of an iterator object, then create an Iterator_Specification |
| 3103 |
and associate it with the iterated component association. |
| 3104 |
(Resolve_Iterated_Association): Replace test for function call with test of |
| 3105 |
Is_Object_Reference, to handle other forms of iterator objects in container |
| 3106 |
aggregates. |
| 3107 |
|
| 3108 |
2024-08-29 Javier Miranda <[email protected]> |
| 3109 |
|
| 3110 |
* usage.adb (Usage): Document switch -gnatw_j |
| 3111 |
* doc/gnat_rm/gnat_language_extensions.rst: Add documentation. |
| 3112 |
* gnat_rm.texi: Regenerate. |
| 3113 |
|
| 3114 |
2024-08-29 Justin Squirek <[email protected]> |
| 3115 |
|
| 3116 |
* doc/gnat_rm/gnat_language_extensions.rst: Move conditional when |
| 3117 |
constructs out of the curated set. |
| 3118 |
* gnat_rm.texi: Regenerate. |
| 3119 |
* gnat_ugn.texi: Regenerate. |
| 3120 |
|
| 3121 |
2024-08-23 Robin Dapp <[email protected]> |
| 3122 |
|
| 3123 |
PR middle-end/115495 |
| 3124 |
* gcc-interface/utils2.cc (fast_modulo_reduction): Require mode. |
| 3125 |
(nonbinary_modular_operation): Ditto. |
| 3126 |
|
| 3127 |
2024-08-23 Eric Botcazou <[email protected]> |
| 3128 |
|
| 3129 |
* gcc-interface/misc.cc (gnat_get_array_descr_info): Test the |
| 3130 |
BIT_PACKED_ARRAY_TYPE_P flag only once on the final debug type. In |
| 3131 |
the case of records containing a template, replay the entire |
| 3132 |
processing for the array type contained therein. |
| 3133 |
|
| 3134 |
2024-08-23 Javier Miranda <[email protected]> |
| 3135 |
|
| 3136 |
* scng.adb (Scan): Call Error_Msg_GNAT_Extension() to report an |
| 3137 |
error, when the sources are compiled without Core_Extensions_ |
| 3138 |
Allowed, and the scanner detects the beginning of an interpolated |
| 3139 |
string. |
| 3140 |
|
| 3141 |
2024-08-23 Sebastian Poeplau <[email protected]> |
| 3142 |
|
| 3143 |
* libgnat/s-dwalin.adb (Symbolic_Address): Ignore symbol size in |
| 3144 |
address-to-symbol translation for PECOFF files. |
| 3145 |
|
| 3146 |
2024-08-23 Javier Miranda <[email protected]> |
| 3147 |
|
| 3148 |
* exp_attr.adb (Expand_N_Attribute_Reference: [Put_Image]): Add |
| 3149 |
support for custom string types. |
| 3150 |
* exp_ch2.adb (Expand_N_Interpolated_String_Literal): Add a type |
| 3151 |
conversion to the result object declaration of custom string |
| 3152 |
types. |
| 3153 |
* exp_put_image.adb (Build_String_Put_Image_Call): Handle custom |
| 3154 |
string types. |
| 3155 |
|
| 3156 |
2024-08-23 Steve Baird <[email protected]> |
| 3157 |
|
| 3158 |
* sem_ch13.adb (Analyze_Aspect_Implicit_Dereference): Generate |
| 3159 |
error if an aspect specification specifies the |
| 3160 |
Implicit_Dereference aspect of a non-first subtype. |
| 3161 |
|
| 3162 |
2024-08-23 Steve Baird <[email protected]> |
| 3163 |
|
| 3164 |
* checks.adb (Is_Signed_Integer_Arithmetic_Op): Return True in the |
| 3165 |
case of relational operator whose operands are of a signed integer |
| 3166 |
type. |
| 3167 |
|
| 3168 |
2024-08-23 Viljar Indus <[email protected]> |
| 3169 |
|
| 3170 |
* libgnat/a-coinho__shared.ads: add limited keyword. |
| 3171 |
* libgnat/g-awk.adb: add limited keyword. |
| 3172 |
* libgnat/g-comlin.ads: add limited keyword. |
| 3173 |
* libgnat/s-excmac__arm.ads: add limited keyword. |
| 3174 |
* libgnat/s-excmac__gcc.ads: add limited keyword. |
| 3175 |
* libgnat/s-soflin.ads: add limited keyword. |
| 3176 |
|
| 3177 |
2024-08-23 Viljar Indus <[email protected]> |
| 3178 |
|
| 3179 |
* sem_ch3.adb: Add method Check_Inherited_Limted_Record for |
| 3180 |
emitting the warning for an inherited limited type. |
| 3181 |
* warnsw.adb: Add processing for the -gnatw_l switch that |
| 3182 |
triggeres the inheritly limited type warning. |
| 3183 |
* warnsw.ads: same as above. |
| 3184 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Add |
| 3185 |
entry for -gnatw_l switch. |
| 3186 |
* gnat_ugn.texi: Regenerate. |
| 3187 |
|
| 3188 |
2024-08-23 Javier Miranda <[email protected]> |
| 3189 |
|
| 3190 |
* sem_ch6.adb (Check_Private_Overriding): Improve code detecting |
| 3191 |
error on private function with controlling result. Fixes the |
| 3192 |
regression of ACATS bde0003. |
| 3193 |
|
| 3194 |
2024-08-23 Piotr Trojanek <[email protected]> |
| 3195 |
|
| 3196 |
* checks.ads, cstand.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb, |
| 3197 |
exp_dbug.adb, exp_util.adb, gnatlink.adb, lib-util.adb, |
| 3198 |
libgnat/a-except.adb, libgnat/a-exexpr.adb, libgnat/a-ngcoar.adb, |
| 3199 |
libgnat/s-rannum.adb, libgnat/s-trasym__dwarf.adb, osint.adb, |
| 3200 |
rtsfind.adb, sem_case.adb, sem_ch12.adb, sem_ch13.adb, |
| 3201 |
sem_ch3.adb, sem_ch6.adb, sem_eval.adb, sem_prag.adb, |
| 3202 |
sem_util.adb: Fix style. |
| 3203 |
|
| 3204 |
2024-08-23 Piotr Trojanek <[email protected]> |
| 3205 |
|
| 3206 |
* checks.adb (Ensure_Valid): Remove detection of boolean and |
| 3207 |
short-circuit operators. |
| 3208 |
(Expr_Known_Valid): Detect short-circuit operators; detection of |
| 3209 |
boolean operators was already done in this routine. |
| 3210 |
|
| 3211 |
2024-08-23 Piotr Trojanek <[email protected]> |
| 3212 |
|
| 3213 |
* checks.adb (Ensure_Valid): Use Find_Actual. |
| 3214 |
|
| 3215 |
2024-08-23 Piotr Trojanek <[email protected]> |
| 3216 |
|
| 3217 |
* checks.adb (Ensure_Valid): Use First_Actual/Next_Actual. |
| 3218 |
* exp_ch6.adb (Is_Direct_Deep_Call): Likewise. |
| 3219 |
* exp_util.adb (Type_Of_Formal): Likewise. |
| 3220 |
* sem_util.adb (Is_Container_Element): Likewise; cleanup |
| 3221 |
membership test by using a subtype. |
| 3222 |
|
| 3223 |
2024-08-23 Javier Miranda <[email protected]> |
| 3224 |
|
| 3225 |
* sem_ch13.adb (Analyze_One_Aspect): Temporarily remove reporting |
| 3226 |
an error when the new aspect is set to True and the extensions are |
| 3227 |
not enabled. |
| 3228 |
|
| 3229 |
2024-08-23 Javier Miranda <[email protected]> |
| 3230 |
|
| 3231 |
* exp_util.ads (Is_Expanded_Class_Wide_Interface_Object_Decl): New |
| 3232 |
subprogram. |
| 3233 |
* exp_util.adb (Is_Expanded_Class_Wide_Interface_Object_Decl): |
| 3234 |
ditto. |
| 3235 |
* sem_util.adb (Is_Aliased_View): Handle expanded class-wide type |
| 3236 |
object declaration. |
| 3237 |
* checks.adb (Is_Aliased_Unconstrained_Component): Protect the |
| 3238 |
frontend against calling Is_Aliased_View with Empty. Found working |
| 3239 |
on this issue. |
| 3240 |
|
| 3241 |
2024-08-23 Javier Miranda <[email protected]> |
| 3242 |
|
| 3243 |
* aspects.ads (Aspect_First_Controlling_Parameter): New aspect. |
| 3244 |
Defined as implementation defined aspect that has a static boolean |
| 3245 |
value and it is converted to pragma when the value is True. |
| 3246 |
* einfo.ads (Has_First_Controlling_Parameter): New attribute. |
| 3247 |
* exp_ch9.adb (Build_Corresponding_Record): Propagate the aspect |
| 3248 |
to the corresponding record type. |
| 3249 |
(Expand_N_Protected_Type_Declaration): Analyze the inherited |
| 3250 |
aspect to add the pragma. |
| 3251 |
(Expand_N_Task_Type_Declaration): ditto. |
| 3252 |
* freeze.adb (Warn_If_Implicitly_Inherited_Aspects): New |
| 3253 |
subprogram. |
| 3254 |
(Has_First_Ctrl_Param_Aspect): New subprogram. |
| 3255 |
(Freeze_Record_Type): Call Warn_If_Implicitly_Inherited_Aspects. |
| 3256 |
(Freeze_Subprogram): Check illegal subprograms of tagged types and |
| 3257 |
interface types that have this new aspect. |
| 3258 |
* gen_il-fields.ads (Has_First_Controlling_Parameter): New entity |
| 3259 |
field. |
| 3260 |
* gen_il-gen-gen_entities.adb (Has_First_Controlling_Parameter): |
| 3261 |
The new field is a semantic flag. |
| 3262 |
* gen_il-internals.adb (Image): Add |
| 3263 |
Has_First_Controlling_Parameter. |
| 3264 |
* par-prag.adb (Prag): No action for |
| 3265 |
Pragma_First_Controlling_Parameter since processing is handled |
| 3266 |
entirely in Sem_Prag. |
| 3267 |
* sem_ch12.adb (Validate_Private_Type_Instance): When the generic |
| 3268 |
formal has this new aspect, check that the actual type also has |
| 3269 |
this aspect. |
| 3270 |
* sem_ch13.adb (Analyze_One_Aspect): Check that the aspect is |
| 3271 |
applied to a tagged type or a concurrent type. |
| 3272 |
* sem_ch3.adb (Analyze_Full_Type_Declaration): Derived tagged |
| 3273 |
types inherit this new aspect, and also from their implemented |
| 3274 |
interface types. |
| 3275 |
(Process_Full_View): Propagate the aspect to the full view. |
| 3276 |
* sem_ch6.adb (Is_A_Primitive): New subprogram; used to factor |
| 3277 |
code and also clarify detection of primitives. |
| 3278 |
* sem_ch9.adb (Check_Interfaces): Propagate this new aspect to the |
| 3279 |
type implementing interface types. |
| 3280 |
* sem_disp.adb (Check_Controlling_Formals): Handle tagged type |
| 3281 |
that has the aspect and has subprograms overriding primitives of |
| 3282 |
tagged types that lack this aspect. |
| 3283 |
(Check_Dispatching_Operation): Warn on dispatching primitives |
| 3284 |
disallowed by this new aspect. |
| 3285 |
(Has_Predefined_Dispatching_Operation_Name): New subprogram. |
| 3286 |
(Find_Dispatching_Type): Handle dispatching functions of tagged |
| 3287 |
types that have the new aspect. |
| 3288 |
(Find_Primitive_Covering_Interface): For primitives of tagged |
| 3289 |
types that have the aspect and override a primitive of a parent |
| 3290 |
type that does not have the aspect, we must temporarily unset |
| 3291 |
attribute First_Controlling_ Parameter to properly check |
| 3292 |
conformance. |
| 3293 |
* sem_prag.ads (Aspect_Specifying_Pragma): Add new pragma. |
| 3294 |
* sem_prag.adb (Pragma_First_Controlling_Parameter): Handle new |
| 3295 |
pragma. |
| 3296 |
* snames.ads-tmpl (Name_First_Controlling_Parameter): New name. |
| 3297 |
* warnsw.ads (Warn_On_Non_Dispatching_Primitives): New warning. |
| 3298 |
* warnsw.adb (Warn_On_Non_Dispatching_Primitives): New warning; |
| 3299 |
not set by default when GNAT_Mode warnings are enabled, nor when |
| 3300 |
all warnings are enabled (-gnatwa). |
| 3301 |
|
| 3302 |
2024-08-19 Arsen Arsenović <[email protected]> |
| 3303 |
|
| 3304 |
PR ada/115917 |
| 3305 |
* gnatvsn.ads: Add note about the duplication of this value in |
| 3306 |
version.c. |
| 3307 |
* version.c (VER_LEN_MAX): Define to the same value as |
| 3308 |
Gnatvsn.Ver_Len_Max. |
| 3309 |
(gnat_version_string): Use VER_LEN_MAX as bound. |
| 3310 |
|
| 3311 |
2024-08-08 Steve Baird <[email protected]> |
| 3312 |
|
| 3313 |
* sem_ch6.adb (Check_Discriminant_Conformance): Perform check for |
| 3314 |
illegal access discriminant default values when the completion of |
| 3315 |
a limited private type is analyzed. |
| 3316 |
* sem_aux.adb (Is_Immutably_Limited): If passed the |
| 3317 |
not-yet-analyzed entity for the full view of a record type, test |
| 3318 |
the Limited_Present flag |
| 3319 |
(which is set by the parser). |
| 3320 |
|
| 3321 |
2024-08-08 Steve Baird <[email protected]> |
| 3322 |
|
| 3323 |
* exp_ch4.adb (Build_Eq_Call): In the abstract callee case, copy |
| 3324 |
the Etype of the callee onto the Make_Raise_Program_Error result. |
| 3325 |
|
| 3326 |
2024-08-08 Gary Dismukes <[email protected]> |
| 3327 |
|
| 3328 |
* exp_ch7.adb (Unnest_Block): Copy the At_End_Proc from the block |
| 3329 |
statement to the newly created subprogram body. |
| 3330 |
|
| 3331 |
2024-08-08 Justin Squirek <[email protected]> |
| 3332 |
|
| 3333 |
* exp_put_image.adb (Append_Component_Attr): Obtain the mutably |
| 3334 |
tagged type for the component type. |
| 3335 |
* mutably_tagged.adb (Make_Mutably_Tagged_Conversion): Add more |
| 3336 |
cases to avoid conversion generation. |
| 3337 |
* sem_attr.adb (Check_Put_Image_Attribute): Add mutably tagged |
| 3338 |
type conversion. |
| 3339 |
* sem_ch12.adb (Analyze_One_Association): Add rewrite for formal |
| 3340 |
type declarations which are mutably tagged type to their |
| 3341 |
equivalent type. |
| 3342 |
(Instantiate_Type): Add condition to obtain class wide equivalent |
| 3343 |
types. |
| 3344 |
(Validate_Private_Type_Instance): Add check for class wide |
| 3345 |
equivalent types which are considered "definite". |
| 3346 |
* sem_util.adb (Is_Variable): Add condition to handle selected |
| 3347 |
components of view conversions. Add missing check for selected |
| 3348 |
components. |
| 3349 |
(Is_View_Conversion): Add condition to handle class wide |
| 3350 |
equivalent types. |
| 3351 |
|
| 3352 |
2024-08-08 Justin Squirek <[email protected]> |
| 3353 |
|
| 3354 |
* stylesw.adb (Set_Style_Check_Options): Disable max nesting level |
| 3355 |
when unspecified |
| 3356 |
|
| 3357 |
2024-08-08 Javier Miranda <[email protected]> |
| 3358 |
|
| 3359 |
* exp_attr.adb (Expand_N_Attribute_Reference) <Finalization_Size>: |
| 3360 |
If the prefix is an interface type, generate code to obtain its |
| 3361 |
address and displace it to reference the base of the object. |
| 3362 |
|
| 3363 |
2024-08-08 Iain Sandoe <[email protected]> |
| 3364 |
|
| 3365 |
* libgnarl/s-taprop__posix.adb (Stack_Guard): Use Interfaces.C.size_t |
| 3366 |
for the type of Page_Size. |
| 3367 |
|
| 3368 |
2024-08-08 Rainer Orth <[email protected]> |
| 3369 |
|
| 3370 |
* libgnarl/s-taprop__solaris.adb (Set_Task_Affinity): Fully |
| 3371 |
quality int. |
| 3372 |
|
| 3373 |
2024-08-06 Yannick Moy <[email protected]> |
| 3374 |
|
| 3375 |
* sem_ch4.adb (Analyze_Concatenation_Rest): Do not add a wrong |
| 3376 |
interpretation of the concatenation, using the type of the operand |
| 3377 |
already recognized as of the element type. |
| 3378 |
|
| 3379 |
2024-08-06 Bob Duff <[email protected]> |
| 3380 |
|
| 3381 |
* sem_ch12.adb: Implement type inference for generic parameters. |
| 3382 |
(Maybe_Infer_One): Forbid inference of anonymous subtypes and |
| 3383 |
types. |
| 3384 |
(Inference_Reason): Fix comment. |
| 3385 |
* debug.adb: Document -gnatd_I switch. |
| 3386 |
* errout.ads: Document that Empty is not allowed for "&". |
| 3387 |
* errout.adb (Set_Msg_Insertion_Node): Minor: Do not allow |
| 3388 |
Error_Msg_Node_1 = Empty for "&". Use "in" instead of multiple |
| 3389 |
"=". Improve comment. |
| 3390 |
|
| 3391 |
2024-08-06 Gary Dismukes <[email protected]> |
| 3392 |
|
| 3393 |
* sem_ch5.adb (Analyze_Loop_Statement.Wrap_Loop_Statement): Remove |
| 3394 |
the loop Entity_Id from its old scope and insert it in the new |
| 3395 |
block scope that wraps it. |
| 3396 |
|
| 3397 |
2024-08-06 Javier Miranda <[email protected]> |
| 3398 |
|
| 3399 |
* freeze.adb (Freeze_Entity): For scalar derived types that |
| 3400 |
inherit the aspect Default_Value, do not analyze and resolve the |
| 3401 |
inherited aspect, as the type of the aspect remains the parent |
| 3402 |
type. |
| 3403 |
|
| 3404 |
2024-08-06 Viljar Indus <[email protected]> |
| 3405 |
|
| 3406 |
* libgnarl/s-interr__hwint.adb: Use fully qualified names to avoid |
| 3407 |
ambiguity. |
| 3408 |
* libgnarl/s-taprop__qnx.adb: Likewise. |
| 3409 |
|
| 3410 |
2024-08-06 Javier Miranda <[email protected]> |
| 3411 |
|
| 3412 |
* repinfo.adb (List_Record_Info): Handle private record types. |
| 3413 |
|
| 3414 |
2024-08-06 Viljar Indus <[email protected]> |
| 3415 |
|
| 3416 |
* libgnarl/s-taprop__mingw.adb: Use fully qualified names |
| 3417 |
to avoid ambiguity. |
| 3418 |
* libgnarl/s-taprop__posix.adb: Likewise. |
| 3419 |
* libgnarl/s-taprop__qnx.adb: Likewise. |
| 3420 |
* libgnarl/s-taprop__rtems.adb: Likewise. |
| 3421 |
|
| 3422 |
2024-08-06 Yannick Moy <[email protected]> |
| 3423 |
|
| 3424 |
* freeze.adb (Build_Renamed_Body): Propagate SPARK_Pragma to body |
| 3425 |
build from renaming, so that locally relevant value is taken into |
| 3426 |
account. |
| 3427 |
* sem_ch6.adb (Analyze_Expression_Function): Propagate |
| 3428 |
SPARK_Pragma to body built from expression function, so that |
| 3429 |
locally relevant value is taken into account. |
| 3430 |
|
| 3431 |
2024-08-06 Bob Duff <[email protected]> |
| 3432 |
|
| 3433 |
* sem_ch8.adb (Find_Direct_Name): Disable the special-purpose code |
| 3434 |
when we are actually compiling the run-time library itself. |
| 3435 |
* libgnarl/a-exetim__posix.adb: Fix newly-found use-clause |
| 3436 |
conflicts. |
| 3437 |
* libgnat/a-direct.adb: Likewise. |
| 3438 |
* libgnat/a-nbnbin.adb: Likewise. |
| 3439 |
* libgnat/a-timoio__128.adb: Likewise. |
| 3440 |
* libgnat/a-timoio.adb: Likewise. |
| 3441 |
* libgnat/a-wtmoio__128.adb: Likewise. |
| 3442 |
* libgnat/a-wtmoio.adb: Likewise. |
| 3443 |
* libgnat/a-ztmoio__128.adb: Likewise. |
| 3444 |
* libgnat/a-ztmoio.adb: Likewise. |
| 3445 |
|
| 3446 |
2024-08-02 Yannick Moy <[email protected]> |
| 3447 |
|
| 3448 |
* aspects.adb (Find_Aspect): Take into account the case of a node |
| 3449 |
of kind N_Defining_Program_Unit_Name. |
| 3450 |
* sem_ch10.adb (Analyze_Compilation_Unit): Copy the SPARK aspect |
| 3451 |
from the spec to the body. Delay semantic analysis after that |
| 3452 |
point to ensure that SPARK_Mode is properly analyzed. |
| 3453 |
|
| 3454 |
2024-08-02 Piotr Trojanek <[email protected]> |
| 3455 |
|
| 3456 |
* exp_aggr.adb (Add_Loop_Actions): Actions are now attached to |
| 3457 |
iterated component association just like they are attached to |
| 3458 |
ordinary component association. |
| 3459 |
(Build_Array_Aggr_Code): If resolution of the array aggregate |
| 3460 |
generated some actions, e.g. for run-time checks, then we must |
| 3461 |
keep them; same for the Other_Clause. |
| 3462 |
* sem_aggr.adb (Resolve_Iterated_Component_Association): Unset |
| 3463 |
references to iterator variable in loop actions (which might come |
| 3464 |
from run-time check), just these references are unset in the |
| 3465 |
expression itself. |
| 3466 |
|
| 3467 |
2024-08-02 Piotr Trojanek <[email protected]> |
| 3468 |
|
| 3469 |
* exp_util.adb (Insert_Actions): Remove null ELSE branch. |
| 3470 |
|
| 3471 |
2024-08-02 Piotr Trojanek <[email protected]> |
| 3472 |
|
| 3473 |
* exp_aggr.adb (Add_Loop_Actions): Change manipulation of list |
| 3474 |
to avoid unnecessary calls to Parent and Loop_Actions. |
| 3475 |
|
| 3476 |
2024-08-02 Piotr Trojanek <[email protected]> |
| 3477 |
|
| 3478 |
* exp_util.adb (Insert_Actions): Move negation in front of |
| 3479 |
complex conjunctions. |
| 3480 |
|
| 3481 |
2024-08-02 Piotr Trojanek <[email protected]> |
| 3482 |
|
| 3483 |
* exp_aggr.adb (Gen_Assign): Fix layout. |
| 3484 |
* sem_aggr.adb (Empty_Range): Reuse Choice_List. |
| 3485 |
|
| 3486 |
2024-08-02 Gary Dismukes <[email protected]> |
| 3487 |
|
| 3488 |
* exp_aggr.adb |
| 3489 |
(Expand_Container_Aggregate.Expand_Iterated_Component): Set the |
| 3490 |
Reverse_Present flag when creating the loop's iteration_scheme. |
| 3491 |
* gen_il-gen-gen_nodes.adb: Add flag Reverse_Present to |
| 3492 |
N_Iterated_Component_Association nodes. |
| 3493 |
* par-ch3.adb (P_Constraint_Op): Remove testing for and ignoring |
| 3494 |
of Tok_In following a constraint. It's allowed for "in" to follow |
| 3495 |
a constraint of loop_parameter_subtype_indication of an |
| 3496 |
iterator_specification, so it shouldn't be ignored. |
| 3497 |
* par-ch4.adb (P_Iterated_Component_Association): Account for |
| 3498 |
"reverse" following the "in" in an iterated_component_association, |
| 3499 |
and set the Reverse_Present flag on the |
| 3500 |
N_Iterated_Component_Association node. Add handling for a ":" |
| 3501 |
following the identifier in an iterator_specification of an |
| 3502 |
iterated_element_association, sharing the code with the "of" case |
| 3503 |
(which backs up to the identifier at the beginning of the |
| 3504 |
iterator_specification). Fix incorrect trailing comment following |
| 3505 |
the call to Scan. |
| 3506 |
(Build_Iterated_Element_Association): Set the Reverse_Present flag |
| 3507 |
on an N_Loop_Parameter_Specification node of an |
| 3508 |
N_Iterated_Element_Association. |
| 3509 |
* par-ch5.adb (P_Iterator_Specification): Remove error-recovery |
| 3510 |
and error code that reports "subtype indication is only legal on |
| 3511 |
an element iterator", as that error can no longer be emitted (and |
| 3512 |
was formerly only reported on one fixedbugs test). |
| 3513 |
* sem_aggr.adb |
| 3514 |
(Resolve_Container_Aggregate.Resolve_Iterated_Association): When |
| 3515 |
creating an N_Iterator_Specification for an |
| 3516 |
N_Iterated_Component_Association, set the Reverse_Present flag of |
| 3517 |
the N_Iterated_Specification from the flag on the latter. |
| 3518 |
* sinfo.ads: Add comments for the Reverse_Present flag, which is |
| 3519 |
now allowed on nodes of kind N_Iterated_Component_Association. |
| 3520 |
|
| 3521 |
2024-08-02 Eric Botcazou <[email protected]> |
| 3522 |
|
| 3523 |
* sem_ch12.adb (Analyze_Subprogram_Instantiation): Propagate the |
| 3524 |
No_Raise flag like the No_Return flag. |
| 3525 |
|
| 3526 |
2024-08-02 Ronan Desplanques <[email protected]> |
| 3527 |
|
| 3528 |
* exp_aggr.adb (Expand_Container_Aggregate): Remove variables. |
| 3529 |
(To_Int): New function. |
| 3530 |
(Add_Range_Size): Use newly introduced function. |
| 3531 |
|
| 3532 |
2024-08-02 Yannick Moy <[email protected]> |
| 3533 |
|
| 3534 |
* libgnat/a-strunb.adb (Sum, Saturated_Sum, Saturated_Mul): Adapt |
| 3535 |
function signatures to more precise types that allow proof. |
| 3536 |
(function "&"): Conditionally assign a slice to avoid possible |
| 3537 |
overflow which only occurs when the assignment is a noop (because |
| 3538 |
the slice is empty in that case). |
| 3539 |
(Append): Same. |
| 3540 |
(function "*"): Retype K to avoid a possible overflow. Add early |
| 3541 |
return on null length for proof. |
| 3542 |
(Delete): Fix implementation to return the correct result in all |
| 3543 |
cases allowed by the Ada standard. |
| 3544 |
(Insert): Same. Also avoid possible overflows. |
| 3545 |
(Length): Rewrite as expression function for proof. |
| 3546 |
(Overwrite): Avoid possible overflows. |
| 3547 |
(Slice): Same. |
| 3548 |
(To_String): Rewrite as expression function for proof. |
| 3549 |
* libgnat/a-strunb.ads: Extend Assertion_Policy to new contracts |
| 3550 |
used. Add complete functional contracts to all subprograms of the |
| 3551 |
public API except Count. |
| 3552 |
* libgnat/a-strunb__shared.adb (Sum): Adapt function signature to |
| 3553 |
more precise types that allow proof. |
| 3554 |
(function "&"): Conditionally assign a slice to avoid possible |
| 3555 |
overflow. |
| 3556 |
(function "*"): Retype K to avoid a possible overflow. |
| 3557 |
(Delete): Fix implementation to return the correct result in all |
| 3558 |
cases allowed by the Ada standard. |
| 3559 |
(Insert): Avoid possible overflows. |
| 3560 |
(Overwrite): Avoid possible overflows. |
| 3561 |
(Replace_Slice): Same. |
| 3562 |
(Slice): Same. |
| 3563 |
(To_String): Rewrite as expression function for proof. |
| 3564 |
* libgnat/a-strunb__shared.ads: Extend Assertion_Policy to new |
| 3565 |
contracts used. Add complete functional contracts to all |
| 3566 |
subprograms of the public API except Count. Mark public part of |
| 3567 |
spec as in SPARK. |
| 3568 |
|
| 3569 |
2024-08-02 Ronan Desplanques <[email protected]> |
| 3570 |
|
| 3571 |
* scng.adb (Slit): Initialize object in uncommon path. |
| 3572 |
|
| 3573 |
2024-08-02 Richard Kenner <[email protected]> |
| 3574 |
|
| 3575 |
* exp_ch4.adb (Generate_Temporary): Remove unused procedure. |
| 3576 |
|
| 3577 |
2024-08-02 Richard Kenner <[email protected]> |
| 3578 |
|
| 3579 |
* einfo-utils.ads (Is_Finalizer): Delete. |
| 3580 |
* einfo-utils.adb (Is_Finalizer): Delete. |
| 3581 |
* einfo.ads: Adjust comment. |
| 3582 |
* gen_il-fields.ads, gen_il-gen-gen_entities.adb: Add Is_Finalizer |
| 3583 |
flag. |
| 3584 |
* exp_ch3.adb (Build_Init_Procedure): Set it. |
| 3585 |
* exp_ch7.adb (Create_Finalizer): Likewise. |
| 3586 |
* exp_util.adb (Try_Inline_Always): New function. |
| 3587 |
* exp_util.ads (Try_Inline_Always): New function. |
| 3588 |
* sem_elab.adb (Is_Finalizer_Proc): Replace with Is_Finalizer. |
| 3589 |
|
| 3590 |
2024-08-02 Tonu Naks <[email protected]> |
| 3591 |
|
| 3592 |
* libgnat/a-calend.adb: Modify unix time handling. |
| 3593 |
|
| 3594 |
2024-08-02 Tonu Naks <[email protected]> |
| 3595 |
|
| 3596 |
* doc/gnat_rm/implementation_defined_pragmas.rst: Add examples. |
| 3597 |
* gnat_rm.texi: Regenerate. |
| 3598 |
* gnat_ugn.texi: Regenerate. |
| 3599 |
|
| 3600 |
2024-08-02 Javier Miranda <[email protected]> |
| 3601 |
|
| 3602 |
* gen_il-fields.ads (Is_Interpolated_String_Literal): New field. |
| 3603 |
* gen_il-gen-gen_nodes.adb (Is_Interpolated_String_Literal): The |
| 3604 |
new field is a flag handled by the parser (syntax flag). |
| 3605 |
* par-ch2.adb (P_Interpolated_String_Literal): Decorate the new |
| 3606 |
flag. |
| 3607 |
* sem_ch2.adb (Analyze_Interpolated_String_Literal): Improve code |
| 3608 |
detecting and reporting ambiguous function calls. |
| 3609 |
* sem_res.adb (Resolve_Interpolated_String_Literal): Restrict |
| 3610 |
resolution imposed by the context type to string literals that |
| 3611 |
have the new flag. |
| 3612 |
* sinfo.ads (Is_Interpolated_String_Literal): New field defined in |
| 3613 |
string literals. Fix documentation of the syntax rule of |
| 3614 |
interpolated string literal. |
| 3615 |
|
| 3616 |
2024-08-02 Steve Baird <[email protected]> |
| 3617 |
|
| 3618 |
* sem_ch5.adb (Analyze_Assignment): Delete code that was |
| 3619 |
incorrectly implementing a preference rule. |
| 3620 |
|
| 3621 |
2024-08-02 Eric Botcazou <[email protected]> |
| 3622 |
|
| 3623 |
* exp_ch7.adb (Relaxed Finalization): New paragraph in head |
| 3624 |
comment. |
| 3625 |
* sem_ch13.adb (Validate_Finalizable_Aspect): Give an error |
| 3626 |
message if strict finalization is required but not supported by |
| 3627 |
the runtime. |
| 3628 |
|
| 3629 |
2024-08-02 Viljar Indus <[email protected]> |
| 3630 |
|
| 3631 |
* sem_util.adb (Set_Referenced_Modified): Set referenced as LHS |
| 3632 |
for the prefixes of array slices. |
| 3633 |
|
| 3634 |
2024-08-02 Steve Baird <[email protected]> |
| 3635 |
|
| 3636 |
* sem_ch8.adb (Find_Type): If Is_Current_Instance returns True for |
| 3637 |
N (and Comes_From_Source (N) is also True) then flag an error. |
| 3638 |
Call Is_Current_Instance (twice) instead of duplicating (twice) |
| 3639 |
N_Access_Definition-related code in Is_Current_Instance. |
| 3640 |
* sem_util.adb (Is_Current_Instance): Implement |
| 3641 |
access-type-related clauses of the RM 8.6 current instance rule. |
| 3642 |
For pragmas Predicate and Predicate_Failure, distinguish between |
| 3643 |
the first and subsequent pragma arguments. |
| 3644 |
|
| 3645 |
2024-08-02 Steve Baird <[email protected]> |
| 3646 |
|
| 3647 |
* sem_res.adb (Valid_Conversion): Test In_Instance instead of |
| 3648 |
In_Instance_Body. |
| 3649 |
|
| 3650 |
2024-08-02 Eric Botcazou <[email protected]> |
| 3651 |
|
| 3652 |
* aspects.ads (Aspect_Id): Add Aspect_No_Raise identifier. |
| 3653 |
(Implementation_Defined_Aspect): Add True for Aspect_No_Raise. |
| 3654 |
(Is_Representation_Aspect): Add False for Aspect_No_Raise. |
| 3655 |
(Aspect_Names): Add Name_No_Raise for Aspect_No_Raise. |
| 3656 |
(Aspect_Delay): Add Always_Delay for Aspect_No_Raise. |
| 3657 |
* checks.ads (Raise_Checks_Suppressed): New function. |
| 3658 |
(Apply_Raise_Check): New procedure. |
| 3659 |
* checks.adb (Apply_Raise_Check): New procedure. |
| 3660 |
(Raise_Checks_Suppressed): New function. |
| 3661 |
* doc/gnat_rm/gnat_language_extensions.rst (Generalized |
| 3662 |
Finalization): Update. |
| 3663 |
* doc/gnat_rm/implementation_defined_aspects.rst (No_Raise): New. |
| 3664 |
* doc/gnat_rm/implementation_defined_characteristics.rst (Check |
| 3665 |
names): Document Raise_Check and alphabetize others. |
| 3666 |
* doc/gnat_rm/implementation_defined_pragmas.rst (No_Raise): New. |
| 3667 |
* einfo.ads (No_Raise): New flag defined in subprograms and |
| 3668 |
generic subprograms. |
| 3669 |
* exp_ch6.adb (Expand_N_Subprogram_Body): Call Apply_Raise_Check |
| 3670 |
at the end of the processing. |
| 3671 |
* exp_ch11.adb (Get_RT_Exception_Name): Add alternative for |
| 3672 |
PE_Raise_Check_Failed to case statement. |
| 3673 |
* gen_il-fields.ads (Opt_Field_Enum): Add No_Raise identifier. |
| 3674 |
* gen_il-gen-gen_entities.adb (Subprogram_Kind): Add No_Raise as |
| 3675 |
semantical flag. |
| 3676 |
(Generic_Subprogram_Kind): Likewise. |
| 3677 |
* par-prag.adb (Prag): Add alternative for Pragma_No_Raise to case |
| 3678 |
statement. |
| 3679 |
* sem_ch13.adb (Validate_Finalizable_Aspect): Set No_Raise on the |
| 3680 |
Adjust and Finalize primitives if Relaxed_Finalization is set. |
| 3681 |
* sem_prag.adb (Analyze_Pragma): Add alternative for |
| 3682 |
Pragma_No_Raise to case statement. |
| 3683 |
(Sig_Flag): Add 0 for Pragma_No_Raise. |
| 3684 |
* snames.ads-tmpl (Remaining pragma names): Add Name_No_Raise. |
| 3685 |
(Names of recognized checks): Add Name_Raise_Check. |
| 3686 |
(Pragma_Id): Add Pragma_No_Raise identifier. |
| 3687 |
* types.ads (Raise_Check): New named number. |
| 3688 |
(All_Checks): Adjust. |
| 3689 |
(RT_Exception_Code): Add PE_Raise_Check_Failed identifier. |
| 3690 |
(Rkind): Add PE_Reason for PE_Raise_Check_Failed and alphabetize. |
| 3691 |
* types.h (RT_Exception_Code): Add PE_Raise_Check_Failed as 38. |
| 3692 |
(LAST_REASON_CODE): Adjust. |
| 3693 |
* libgnat/a-except.adb (Rcheck_PE_Raise_Check): New procedure with |
| 3694 |
pragmas Export, No_Return and Machine_Attributes. |
| 3695 |
(Rmsg_38): New string constant. |
| 3696 |
* gnat_rm.texi: Regenerate. |
| 3697 |
|
| 3698 |
2024-08-02 Johannes Kliemann <[email protected]> |
| 3699 |
|
| 3700 |
* doc/gnat_rm/standard_library_routines.rst: Add note to section |
| 3701 |
of Ada.Numerics.Discrete_Random and Ada.Numerics.Float_Random. |
| 3702 |
* doc/gnat_rm/the_gnat_library.rst: Add note to section about |
| 3703 |
GNAT.Random_Numbers. |
| 3704 |
* libgnat/a-nudira.ads: Add note about cryptographic properties. |
| 3705 |
* gnat_rm.texi: Regenerate. |
| 3706 |
* gnat_ugn.texi: Regenerate. |
| 3707 |
|
| 3708 |
2024-08-02 Ronan Desplanques <[email protected]> |
| 3709 |
|
| 3710 |
* doc/gnat_rm/gnat_language_extensions.rst: Fix layout of section. |
| 3711 |
* gnat_rm.texi: Regenerate. |
| 3712 |
* gnat_ugn.texi: Regenerate. |
| 3713 |
|
| 3714 |
2024-08-02 Eric Botcazou <[email protected]> |
| 3715 |
|
| 3716 |
* exp_util.ads (Is_Conversion_Or_Reference_To_Formal): New |
| 3717 |
function declaration. |
| 3718 |
* exp_util.adb (Is_Conversion_Or_Reference_To_Formal): New |
| 3719 |
function body. |
| 3720 |
* exp_ch6.adb (Expand_Simple_Function_Return): Call the predicate |
| 3721 |
Is_Conversion_Or_Reference_To_Formal in order to decide whether a |
| 3722 |
tag check or reassignment is needed. |
| 3723 |
* freeze.adb (Should_Freeze_Type): Move declaration and body to |
| 3724 |
the appropriate places. Also return True for tagged results |
| 3725 |
subject to the expansion done in Expand_Simple_Function_Return |
| 3726 |
that is guarded by the predicate |
| 3727 |
Is_Conversion_Or_Reference_To_Formal. |
| 3728 |
|
| 3729 |
2024-08-02 Ronan Desplanques <[email protected]> |
| 3730 |
|
| 3731 |
* sem_ch5.adb (Analyze_Loop_Statement): Fix loop pattern detection |
| 3732 |
code. Fix typo. |
| 3733 |
|
| 3734 |
2024-08-01 Yannick Moy <[email protected]> |
| 3735 |
|
| 3736 |
* libgnat/a-strunb.adb (Realloc_For_Chunk): Fix computation of new |
| 3737 |
size. |
| 3738 |
|
| 3739 |
2024-08-01 Yannick Moy <[email protected]> |
| 3740 |
|
| 3741 |
* libgnat/a-strbou.ads (To_String): Add a postcondition to state |
| 3742 |
the value of bounds of the returned string, which helps with proof |
| 3743 |
of callers. |
| 3744 |
* libgnat/a-strfix.adb (Delete): Fix implementation to produce |
| 3745 |
correct result in all cases. For example, returned string should |
| 3746 |
always have a lower bound of 1, which was not respected in one |
| 3747 |
case. This was not detected by proof, since this code was dead |
| 3748 |
according to the too strict precondition. |
| 3749 |
* libgnat/a-strfix.ads (Delete): State the correct precondition |
| 3750 |
from standard which allows a value of Through beyond the last |
| 3751 |
valid index, and also restricts values of From from below. Update |
| 3752 |
the Contract_Cases accordingly to allow new values of parameters. |
| 3753 |
|
| 3754 |
2024-08-01 Piotr Trojanek <[email protected]> |
| 3755 |
|
| 3756 |
* sem_prag.adb (Analyze_Pragma): Don't check for duplicate |
| 3757 |
SPARK_Mode pragmas in configuration files. |
| 3758 |
|
| 3759 |
2024-08-01 Gary Dismukes <[email protected]> |
| 3760 |
|
| 3761 |
* sem_attr.adb (Resolve_Attribute, Attribute_*Access): Resolve |
| 3762 |
overloaded prefixes that denote objects of reference types, |
| 3763 |
determining whether to use the prefix object directly, or expand |
| 3764 |
it as an explicit dereference. |
| 3765 |
|
| 3766 |
2024-08-01 Eric Botcazou <[email protected]> |
| 3767 |
|
| 3768 |
* sinfo.ads (N_Block_Statement): Move At_End_Proc to the end of |
| 3769 |
slot list and alphabetize flag list. |
| 3770 |
(N_Subprogram_Body): Add At_End_Proc. |
| 3771 |
(N_Package_Body): Move At_End_Proc to the end of slot list. |
| 3772 |
(N_Subprogram_Body_Stub): Remove At_End_Proc. |
| 3773 |
|
| 3774 |
2024-08-01 Piotr Trojanek <[email protected]> |
| 3775 |
|
| 3776 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): |
| 3777 |
Unconditionally set the type of loop parameter. |
| 3778 |
|
| 3779 |
2024-08-01 Ghjuvan Lacambre <[email protected]> |
| 3780 |
|
| 3781 |
* backend_utils.adb (Scan_Common_Back_End_Switch): Remove blank |
| 3782 |
line. |
| 3783 |
* errout.adb (Output_JSON_Message): Likewise. |
| 3784 |
* erroutc.adb (Set_Msg_Char): Likewise. |
| 3785 |
* exp_aggr.adb (Two_Dim_Packed_Array_Handled): Likewise. |
| 3786 |
* exp_pakd.adb (Expand_Packed_Address_Reference): Likewise. |
| 3787 |
(Expand_Packed_Bit_Reference): Likewise. |
| 3788 |
(Expand_Packed_Boolean_Operator): Likewise. |
| 3789 |
(Expand_Packed_Element_Reference): Likewise. |
| 3790 |
(Expand_Packed_Eq): Likewise. |
| 3791 |
(Expand_Packed_Not): Likewise. |
| 3792 |
* exp_prag.adb (Build_Dim3_Declaration): Likewise. |
| 3793 |
* exp_strm.adb (Build_Elementary_Input_Call): Likewise. |
| 3794 |
* freeze.adb (Find_Aspect_No_Parts): Likewise. |
| 3795 |
(Get_Aspect_No_Parts_Value): Likewise. |
| 3796 |
* gen_il-gen.adb (Compile): Likewise. |
| 3797 |
* gnat1drv.adb (Adjust_Global_Switches): Likewise. |
| 3798 |
* gnat_cuda.adb (Expand_CUDA_Package): Likewise. |
| 3799 |
* gnatchop.adb (Read_File): Likewise. |
| 3800 |
* gnatls.adb (Get_Runtime_Path): Likewise. |
| 3801 |
* make.adb (Binding_Phase): Likewise. |
| 3802 |
* par-ch11.adb (P_Exception_Choice): Likewise. |
| 3803 |
* par-ch5.adb (P_Loop_Parameter_Specification): Likewise. |
| 3804 |
* par-ch6.adb (Is_Extended): Likewise. |
| 3805 |
* sem_attr.adb (Check_Dereference): Likewise. |
| 3806 |
* sem_ch12.adb (Build_Subprogram_Decl_Wrapper): Likewise. |
| 3807 |
* sem_ch3.adb (Build_Itype_Reference): Likewise. |
| 3808 |
* sem_prag.adb (Validate_Compile_Time_Warning_Errors): Likewise. |
| 3809 |
* sem_res.adb (Resolve_Declare_Expression): Likewise. |
| 3810 |
* sem_util.adb (Build_Default_Subtype): Likewise. |
| 3811 |
* sprint.adb (Sprint_Paren_Comma_List): Likewise. |
| 3812 |
|
| 3813 |
2024-08-01 Javier Miranda <[email protected]> |
| 3814 |
|
| 3815 |
* par-ch2.adb (P_Interpolated_String_Literal): remove support of |
| 3816 |
multi-line string literals. |
| 3817 |
* doc/gnat_rm/gnat_language_extensions.rst: Update documentation. |
| 3818 |
* gnat_rm.texi: Regenerate. |
| 3819 |
|
| 3820 |
2024-08-01 Viljar Indus <[email protected]> |
| 3821 |
|
| 3822 |
* sem_warn.adb (Output_Obsolescent_Entity_Warnings): use the ?j? |
| 3823 |
in warning messages. |
| 3824 |
|
| 3825 |
2024-08-01 Ronan Desplanques <[email protected]> |
| 3826 |
|
| 3827 |
* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Fix test for |
| 3828 |
expanded quantified expression context. |
| 3829 |
(Is_Expanded_Quantified_Expr): New function. |
| 3830 |
|
| 3831 |
2024-08-01 Bob Duff <[email protected]> |
| 3832 |
|
| 3833 |
* sem_ch13.adb (Add_Predicate): Remove the premature "return;". |
| 3834 |
Ghost code needs to be processed by later code in this procedure |
| 3835 |
even when ignored; otherwise the second pass of name resolution |
| 3836 |
fails much later. However, protect Set_SCO_Pragma_Enabled and |
| 3837 |
Add_Condition with "if not Is_Ignored_Ghost_Pragma"; these parts |
| 3838 |
should not happen if the ghost code is Ignored. |
| 3839 |
* libgnat/interfac__2020.ads (Unsigned_8): Minor reformatting. |
| 3840 |
* libgnat/interfac.ads (IEEE_Extended_Float): Minor comment |
| 3841 |
improvement. |
| 3842 |
|
| 3843 |
2024-08-01 Eric Botcazou <[email protected]> |
| 3844 |
|
| 3845 |
* einfo.ads (No_Return): Change description and adjust |
| 3846 |
accordingly. |
| 3847 |
* gen_il-gen-gen_entities.adb (Entity_Kind): Remove No_Return. |
| 3848 |
(Subprogram_Kind): Add No_Return. |
| 3849 |
(Generic_Subprogram_Kind): Likewise. |
| 3850 |
* sem_ch6.adb (Analyze_Return_Statement): Adjust No_Return test. |
| 3851 |
|
| 3852 |
2024-08-01 Eric Botcazou <[email protected]> |
| 3853 |
|
| 3854 |
* doc/gnat_rm/gnat_language_extensions.rst (Generalized |
| 3855 |
Finalization): Update status. |
| 3856 |
* einfo.ads (Has_Relaxed_Finalization): Add more details. |
| 3857 |
* exp_ch4.adb (Process_Transients_In_Expression): Invoke |
| 3858 |
Make_Finalize_Call_For_Node instead of building the call. |
| 3859 |
* exp_ch5.adb (Expand_N_Assignment_Statement): Do not set up an |
| 3860 |
exception handler around the assignment for a controlled type with |
| 3861 |
relaxed finalization semantics. Streamline the code implementing |
| 3862 |
the protection against aborts and do not use an At_End handler for |
| 3863 |
a controlled type with relaxed finalization semantics. |
| 3864 |
* exp_ch7.ads (Make_Finalize_Call_For_Node): New function. |
| 3865 |
* exp_ch7.adb (Finalize_Address_For_Node): New function renaming. |
| 3866 |
(Set_Finalize_Address_For_Node): New procedure renaming. |
| 3867 |
(Attach_Object_To_Master_Node): Also attach the Finalize_Address |
| 3868 |
primitive to the Master_Node statically. |
| 3869 |
(Build_Finalizer): Add Has_Strict_Ctrl_Objs local variable. Insert |
| 3870 |
back the body of the finalizer at the end of the statement list in |
| 3871 |
the non-package case and restore the associated support code to |
| 3872 |
that effect. When all the controlled objects have the relaxed |
| 3873 |
finalization semantics, do not create a Finalization_Master and |
| 3874 |
finalize the objects directly instead. |
| 3875 |
(Processing_Actions): Add Strict parameter and use it to set the |
| 3876 |
Has_Strict_Ctrl_Objs variable. |
| 3877 |
(Process_Declarations): Make main loop more robust and adjust |
| 3878 |
calls to Processing_Actions. |
| 3879 |
(Make_Finalize_Address_Body): Mark the primitive as inlined if the |
| 3880 |
type has relaxed finalization semantics. |
| 3881 |
(Make_Finalize_Call_For_Node): New function. |
| 3882 |
* sem_ch6.adb (Check_Statement_Sequence): Skip subprogram bodies. |
| 3883 |
* libgnat/s-finpri.ads (Finalize_Object): Add Finalize_Address |
| 3884 |
parameter. |
| 3885 |
(Master_Node): Remove superfluous qualification. |
| 3886 |
* libgnat/s-finpri.adb (Attach_Object_To_Node): Likewise. |
| 3887 |
(Finalize_Master): Adjust calls to Finalize_Object. |
| 3888 |
(Finalize_Object): Add Finalize_Address parameter and assert that |
| 3889 |
it is equal to the component of the node. Use the Object_Address |
| 3890 |
component as guard. |
| 3891 |
(Suppress_Object_Finalize_At_End): Clear Object_Address component. |
| 3892 |
* gnat_rm.texi: Regenerate. |
| 3893 |
* gnat_ugn.texi: Regenerate. |
| 3894 |
|
| 3895 |
2024-08-01 Arnaud Charlet <[email protected]> |
| 3896 |
|
| 3897 |
* bindgen.adb (Gen_Main): Put back support for -G |
| 3898 |
* bindusg.adb (Display): Put back line for -G |
| 3899 |
* opt.ads (CCG_Mode): Update doc |
| 3900 |
* switch-b.adb (Scan_Binder_Switches): Put back support for -G |
| 3901 |
|
| 3902 |
2024-08-01 Ghjuvan Lacambre <[email protected]> |
| 3903 |
|
| 3904 |
* exp_pakd.adb (Expand_Bit_Packed_Element_Set): Disable expansion |
| 3905 |
in CodePeerMode. |
| 3906 |
(Expand_Packed_Address_Reference): Likewise. |
| 3907 |
(Expand_Packed_Bit_Reference): Likewise. |
| 3908 |
(Expand_Packed_Boolean_Operator): Likewise. |
| 3909 |
(Expand_Packed_Element_Reference): Likewise. |
| 3910 |
(Expand_Packed_Eq): Likewise. |
| 3911 |
(Expand_Packed_Not): Likewise. |
| 3912 |
|
| 3913 |
2024-08-01 Piotr Trojanek <[email protected]> |
| 3914 |
|
| 3915 |
* sem_ch13.adb (Check_Aspect_Too_Late): Move routine to top-level. |
| 3916 |
(Resolve_Aspect_Expressions): Check aspects Default_Value and |
| 3917 |
Default_Component_Value before resolving their expressions. |
| 3918 |
|
| 3919 |
2024-08-01 Piotr Trojanek <[email protected]> |
| 3920 |
|
| 3921 |
* sem_ch13.adb (Check_Aspect_Too_Late): Prevent freezing during |
| 3922 |
preanalysis. |
| 3923 |
|
| 3924 |
2024-08-01 Piotr Trojanek <[email protected]> |
| 3925 |
|
| 3926 |
* sem_ch13.adb (Resolve_Aspect_Expression): Don't set |
| 3927 |
Must_Not_Freeze before preanalyzing spec expressions. |
| 3928 |
|
| 3929 |
2024-08-01 Steve Baird <[email protected]> |
| 3930 |
|
| 3931 |
* sem_disp.adb (Check_Dispatching_Operation): When calling |
| 3932 |
Error_Msg_NE to generate a "missing overriding indicator" message, |
| 3933 |
generate a warning message instead of an error message (and update |
| 3934 |
comment to describe this new behavior). |
| 3935 |
|
| 3936 |
2024-08-01 Javier Miranda <[email protected]> |
| 3937 |
|
| 3938 |
* sem_aggr.adb (Collect_Aggr_Bounds): Adjust previous patch to |
| 3939 |
store the bounds of inner null aggregates in the itype; required |
| 3940 |
generate the runtime check of ARM 4.3.3(30). |
| 3941 |
|
| 3942 |
2024-08-01 Arnaud Charlet <[email protected]> |
| 3943 |
|
| 3944 |
* osint-c.ads, osint-c.adb (Create_C_File, Close_C_File, |
| 3945 |
Delete_C_File): Put back, needed by LLVM based CCG. |
| 3946 |
* exp_unst.adb (Unnest_Subprogram): Complete previous change by |
| 3947 |
removing now dead code and corresponding ??? comment. |
| 3948 |
|
| 3949 |
2024-08-01 Gary Dismukes <[email protected]> |
| 3950 |
|
| 3951 |
* exp_ch3.adb (Build_Record_Init_Proc.Build_Assignment): Do the |
| 3952 |
component adjustment in the case of initialization by a container |
| 3953 |
aggregate. |
| 3954 |
|
| 3955 |
2024-08-01 Eric Botcazou <[email protected]> |
| 3956 |
|
| 3957 |
* exp_aggr.adb (Convert_To_Assignments): Set Expansion_Delayed on |
| 3958 |
intermediate conditional expressions for BIP aggregate returns |
| 3959 |
too. |
| 3960 |
* exp_ch4.adb (Expand_N_Case_Expression): Also deal with delayed |
| 3961 |
expansion in the return case. |
| 3962 |
(Expand_N_If_Expression): Likewise. |
| 3963 |
|
| 3964 |
2024-08-01 Steve Baird <[email protected]> |
| 3965 |
|
| 3966 |
* sem_ch4.adb (Is_Effectively_Visible_Opertor): Return True if |
| 3967 |
Checking_Potentially_Static_Expression is True. The accompanying |
| 3968 |
comment says True is returned "if there is a reason it is ok for |
| 3969 |
Is_Visible_Operator to return False"; if |
| 3970 |
Checking_Potentially_Static_Expression is true, that is such a |
| 3971 |
reason. |
| 3972 |
|
| 3973 |
2024-08-01 Ghjuvan Lacambre <[email protected]> |
| 3974 |
|
| 3975 |
* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Stop |
| 3976 |
ignoring Component_Size attribute in CodePeer_Mode. |
| 3977 |
|
| 3978 |
2024-08-01 Ronan Desplanques <[email protected]> |
| 3979 |
|
| 3980 |
* sem_ch5.adb (Prepare_Param_Spec_Loop): Fix criterion for |
| 3981 |
wrapping loop statements into blocks. |
| 3982 |
|
| 3983 |
2024-08-01 Arnaud Charlet <[email protected]> |
| 3984 |
|
| 3985 |
* bindgen.adb, bindusg.adb, debug.adb, einfo.ads, |
| 3986 |
exp_aggr.adb, exp_attr.adb, exp_ch11.adb, exp_ch3.adb, |
| 3987 |
exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch8.adb, exp_dbug.adb, |
| 3988 |
exp_dbug.ads, exp_intr.adb, exp_unst.adb, exp_util.adb, |
| 3989 |
exp_util.ads, freeze.adb, gen_il-fields.ads, |
| 3990 |
gen_il-gen-gen_entities.adb, gnat1drv.adb, inline.adb, opt.ads, |
| 3991 |
osint-c.adb, osint-c.ads, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, |
| 3992 |
sem_ch4.adb, sem_ch6.adb, sem_elab.adb, sem_res.adb, sinfo.ads, |
| 3993 |
snames.ads-tmpl, switch-b.adb, switch-c.adb: Major |
| 3994 |
clean up to remove C code generation for bodies. |
| 3995 |
|
| 3996 |
2024-08-01 Ronan Desplanques <[email protected]> |
| 3997 |
|
| 3998 |
* exp_aggr.adb (Flatten): Do not reject empty aggregates. Adjust |
| 3999 |
criterion for emitting warning about ineffective others clause. |
| 4000 |
* sem_aggr.adb (Array_Aggr_Subtype): Fix typo. Add handling of |
| 4001 |
aggregates that were converted to positional form. |
| 4002 |
(Resolve_Aggregate): Tweak criterion for transforming into a |
| 4003 |
string literal. |
| 4004 |
(Resolve_Array_Aggregate): Tweak criterion for reusing existing |
| 4005 |
bounds of aggregate. |
| 4006 |
(Retrieve_Aggregate_Bounds): New procedure. |
| 4007 |
* sem_util.adb (Has_Static_Empty_Array_Bounds): New function. |
| 4008 |
* sem_util.ads (Has_Static_Empty_Array_Bounds): Likewise. |
| 4009 |
|
| 4010 |
2024-08-01 Eric Botcazou <[email protected]> |
| 4011 |
|
| 4012 |
* exp_ch7.ads (Build_Finalizer): Remove Top_Decls parameter. |
| 4013 |
* exp_ch7.adb (Build_Finalizer): Likewise. Rename Counter_Val into |
| 4014 |
Count, replace Has_Ctrl_Objs local variable by expression |
| 4015 |
function, remove Spec_Decls local variable and do not reset |
| 4016 |
Finalizer_Decls. |
| 4017 |
(Expand_Cleanup_Actions): Adjust call to Build_Finalizer. |
| 4018 |
(Expand_N_Package_Body): Likewise. |
| 4019 |
(Expand_N_Package_Declaration): Likewise. |
| 4020 |
* inline.adb (Cleanup_Scopes): Likewise. |
| 4021 |
|
| 4022 |
2024-08-01 Eric Botcazou <[email protected]> |
| 4023 |
|
| 4024 |
* exp_ch7.adb (Make_Address_For_Finalize): Generate a direct call |
| 4025 |
to the "+" operator of System.Storage_Elements. |
| 4026 |
(Make_Finalize_Address_Stmts): Likewise. |
| 4027 |
* rtsfind.ads (RE_Id): Remove RE_Add_Offset_To_Address. |
| 4028 |
(RE_Unit_Table): Remove entry for RE_Add_Offset_To_Address. |
| 4029 |
* libgnat/s-finpri.ads (Add_Offset_To_Address): Delete. |
| 4030 |
* libgnat/s-finpri.adb (Add_Offset_To_Address): Likewise. |
| 4031 |
|
| 4032 |
2024-07-07 Maciej W. Rozycki <[email protected]> |
| 4033 |
|
| 4034 |
* gcc-interface/Make-lang.in (ada.all.cross): Move recipe to... |
| 4035 |
(GNATTOOLS_CROSS_MV): ... this new variable. |
| 4036 |
(cross-gnattools): Paste it here. |
| 4037 |
(gnattools-cross-mv): New target. |
| 4038 |
|
| 4039 |
2024-07-03 Alexandre Oliva <[email protected]> |
| 4040 |
|
| 4041 |
* gcc-interface/misc.cc (gnat_get_array_descr_info): Only follow |
| 4042 |
TYPE_DEBUG_TYPE if TYPE_CAN_HAVE_DEBUG_TYPE_P. |
| 4043 |
* gcc-interface/utils.cc (sized_type_hash): New struct. |
| 4044 |
(sized_type_hasher): New struct. |
| 4045 |
(sized_type_hash_table): New variable. |
| 4046 |
(init_gnat_utils): Allocate it. |
| 4047 |
(destroy_gnat_utils): Release it. |
| 4048 |
(sized_type_hasher::equal): New. |
| 4049 |
(hash_sized_type): New. |
| 4050 |
(canonicalize_sized_type): New. |
| 4051 |
(make_type_from_size): Use it to cache packed variants. Fix |
| 4052 |
type reuse by combining biased_p and for_biased earlier. Hold |
| 4053 |
the combination in for_biased, adjusting later uses. |
| 4054 |
|
| 4055 |
2024-07-03 Alexandre Oliva <[email protected]> |
| 4056 |
|
| 4057 |
* gcc-interface/cuintp.cc (UI_To_gnu): Add mode that selects a |
| 4058 |
wide enough unsigned type. Fail if the constant exceeds the |
| 4059 |
representable numbers. |
| 4060 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Use it for |
| 4061 |
numerator and denominator of fixed-point types. In case of |
| 4062 |
failure, fall back to an indeterminate fraction. |
| 4063 |
|
| 4064 |
2024-07-02 Eric Botcazou <[email protected]> |
| 4065 |
|
| 4066 |
* exp_ch4.adb (Expand_Concatenate): In the case where an operand |
| 4067 |
does not have both bounds known at compile time, use nevertheless |
| 4068 |
the low bound directly if it is known at compile time. |
| 4069 |
Fold the conditional expression giving the low bound of the result |
| 4070 |
in the general case if the low bound of all the operands are equal. |
| 4071 |
|
| 4072 |
2024-07-02 Ronan Desplanques <[email protected]> |
| 4073 |
|
| 4074 |
* sem_ch12.adb (Save_And_Reset): Fix value of low bound used to |
| 4075 |
reset table. |
| 4076 |
|
| 4077 |
2024-07-02 Steve Baird <[email protected]> |
| 4078 |
|
| 4079 |
* sem_attr.adb |
| 4080 |
(Analyze_Image_Attribute.Check_Image_Type): Check for |
| 4081 |
E_Access_Attribute_Type prefix type. |
| 4082 |
|
| 4083 |
2024-07-02 Steve Baird <[email protected]> |
| 4084 |
|
| 4085 |
* exp_ch9.adb |
| 4086 |
(Expand_N_Protected_Body): Declare new procedure |
| 4087 |
Unanalyze_Use_Clauses and call it before analyzing the newly |
| 4088 |
constructed subprogram body. |
| 4089 |
|
| 4090 |
2024-07-02 Steve Baird <[email protected]> |
| 4091 |
|
| 4092 |
* exp_put_image.adb |
| 4093 |
(Build_Record_Put_Image_Procedure): Declare new Boolean-valued |
| 4094 |
function Null_Record_Default_Implementation_OK; call it as part of |
| 4095 |
deciding whether to generate "(NULL RECORD)" text. |
| 4096 |
|
| 4097 |
2024-07-02 Justin Squirek <[email protected]> |
| 4098 |
|
| 4099 |
* sem_ch5.adb: |
| 4100 |
(Analyze_Assignment): Add special expansion for qualified expressions |
| 4101 |
in certain cases dealing with mutably tagged types. |
| 4102 |
|
| 4103 |
2024-07-02 Bob Duff <[email protected]> |
| 4104 |
|
| 4105 |
* freeze.adb (Freeze_Type_Refs): If Node is in N_Has_Etype, |
| 4106 |
check that it has had its Etype set, because this can be |
| 4107 |
called early for expression functions that are completions. |
| 4108 |
|
| 4109 |
2024-07-02 Eric Botcazou <[email protected]> |
| 4110 |
|
| 4111 |
* exp_ch4.adb (Expand_Array_Comparison): Remove the obsolete byte |
| 4112 |
addressibility test. If Support_Composite_Compare_On_Target is true, |
| 4113 |
immediately return for a component size of 8, an unsigned component |
| 4114 |
type and aligned operands. Disable when Unnest_Subprogram_Mode is |
| 4115 |
true (for LLVM). |
| 4116 |
(Expand_N_Op_Eq): Adjust comment. |
| 4117 |
* targparm.ads (Support_Composite_Compare_On_Target): Replace bit by |
| 4118 |
byte in description and document support for ordering comparisons. |
| 4119 |
* gcc-interface/utils2.cc (compare_arrays): Rename into... |
| 4120 |
(compare_arrays_for_equality): ...this. Remove redundant lines. |
| 4121 |
(compare_arrays_for_ordering): New function. |
| 4122 |
(build_binary_op) <comparisons>: Call compare_arrays_for_ordering |
| 4123 |
to implement ordering comparisons for arrays. |
| 4124 |
|
| 4125 |
2024-07-02 Yannick Moy <[email protected]> |
| 4126 |
|
| 4127 |
* contracts.adb (Analyze_Pragmas_In_Declarations): Analyze |
| 4128 |
pragmas in two iterations over the list of declarations in |
| 4129 |
order to analyze some pragmas before others. |
| 4130 |
* einfo-utils.ads (Get_Pragma): Fix comment. |
| 4131 |
* sem_prag.ads (Pragma_Significant_To_Subprograms): Fix. |
| 4132 |
(Pragma_Significant_To_Subprograms_Analyzed_First): Add new |
| 4133 |
global array to identify these pragmas which should be analyzed |
| 4134 |
first, which concerns only Extensions_Visible for now. |
| 4135 |
|
| 4136 |
2024-07-02 Eric Botcazou <[email protected]> |
| 4137 |
|
| 4138 |
* exp_ch7.adb (Convert_View): Add third parameter Typ and use it if |
| 4139 |
the second parameter does not have an Etype. |
| 4140 |
(Make_Adjust_Call): Remove obsolete setting of Etype and pass Typ in |
| 4141 |
call to Convert_View. |
| 4142 |
(Make_Final_Call): Likewise. |
| 4143 |
(Make_Init_Call): Pass Typ in call to Convert_View. |
| 4144 |
|
| 4145 |
2024-07-02 Javier Miranda <[email protected]> |
| 4146 |
|
| 4147 |
* sem_aggr.adb (Cannot_Compute_High_Bound): New subprogram. |
| 4148 |
(Report_Null_Array_Constraint_Error): New subprogram. |
| 4149 |
(Collect_Aggr_Bounds): For null aggregates, build the bounds |
| 4150 |
of the inner dimensions. |
| 4151 |
(Has_Null_Aggregate_Raising_Constraint_Error): New subprogram. |
| 4152 |
(Subtract): New subprogram. |
| 4153 |
(Resolve_Array_Aggregate): Report a warning when the index of |
| 4154 |
null array aggregates is an enumeration type or a modular type |
| 4155 |
at we can statically determine that the program will raise CE |
| 4156 |
at runtime computing its high bound. |
| 4157 |
(Resolve_Null_Array_Aggregate): ditto. |
| 4158 |
|
| 4159 |
2024-07-02 Eric Botcazou <[email protected]> |
| 4160 |
|
| 4161 |
* doc/gnat_rm/standard_and_implementation_defined_restrictions.rst |
| 4162 |
(No_Default_Initialization): Mention components alongside variables. |
| 4163 |
* exp_aggr.adb (Build_Array_Aggr_Code.Gen_Assign): Check that the |
| 4164 |
restriction No_Default_Initialization is not in effect for default |
| 4165 |
initialized component. |
| 4166 |
(Build_Record_Aggr_Code): Likewise. |
| 4167 |
* gnat_rm.texi: Regenerate. |
| 4168 |
|
| 4169 |
2024-07-02 Eric Botcazou <[email protected]> |
| 4170 |
|
| 4171 |
* debug.adb (dJ): Add back as unused. |
| 4172 |
|
| 4173 |
2024-06-27 Eric Botcazou <[email protected]> |
| 4174 |
|
| 4175 |
* libgnat/s-carsi8.adb: Remove clauses for System.Address_Operations |
| 4176 |
and use only operations of System.Storage_Elements for addresses. |
| 4177 |
* libgnat/s-casi16.adb: Likewise. |
| 4178 |
* libgnat/s-casi32.adb: Likewise. |
| 4179 |
* libgnat/s-casi64.adb: Likewise. |
| 4180 |
* libgnat/s-casi128.adb: Likewise. |
| 4181 |
* libgnat/s-carun8.adb: Likewise. |
| 4182 |
* libgnat/s-caun16.adb: Likewise. |
| 4183 |
* libgnat/s-caun32.adb: Likewise. |
| 4184 |
* libgnat/s-caun64.adb: Likewise. |
| 4185 |
* libgnat/s-caun128.adb: Likewise. |
| 4186 |
* libgnat/s-geveop.adb: Likewise. |
| 4187 |
|
| 4188 |
2024-06-27 Javier Miranda <[email protected]> |
| 4189 |
|
| 4190 |
* sem_ch2.adb (Analyze_Interpolated_String_Literal): Report |
| 4191 |
interpretations of ambiguous parameterless function calls. |
| 4192 |
|
| 4193 |
2024-06-27 Eric Botcazou <[email protected]> |
| 4194 |
|
| 4195 |
* sem_ch5.adb (Analyze_Target_Name): Call Analyze_Dimension on the |
| 4196 |
node once the Etype is set. |
| 4197 |
* sem_dim.adb (OK_For_Dimension): Set to True for N_Target_Name. |
| 4198 |
(Analyze_Dimension): Call Analyze_Dimension_Has_Etype for it. |
| 4199 |
|
| 4200 |
2024-06-27 Ronan Desplanques <[email protected]> |
| 4201 |
|
| 4202 |
* mdll.adb (Build_Non_Reloc_DLL): Fix incorrect assignment |
| 4203 |
to array object. |
| 4204 |
(Ada_Build_Non_Reloc_DLL): Likewise. |
| 4205 |
|
| 4206 |
2024-06-27 Javier Miranda <[email protected]> |
| 4207 |
|
| 4208 |
* sem_res.adb (Has_Applicable_User_Defined_Literal): Add missing |
| 4209 |
support for interpolated strings. |
| 4210 |
|
| 4211 |
2024-06-27 Martin Clochard <[email protected]> |
| 4212 |
|
| 4213 |
* sem_ch6.adb (Check_Overriding_Indicator) Remove Comes_From_Source filter. |
| 4214 |
(New_Overloaded_Entity) Move up special case of LSP_Subprogram, |
| 4215 |
and remove Comes_From_Source filter. |
| 4216 |
|
| 4217 |
2024-06-27 Eric Botcazou <[email protected]> |
| 4218 |
|
| 4219 |
* aspects.ads (Aspect_Id): Add Aspect_Finalizable. |
| 4220 |
(Implementation_Defined_Aspect): Add True for Aspect_Finalizable. |
| 4221 |
(Operational_Aspect): Add True for Aspect_Finalizable. |
| 4222 |
(Aspect_Argument): Add Expression for Aspect_Finalizable. |
| 4223 |
(Is_Representation_Aspect): Add False for Aspect_Finalizable. |
| 4224 |
(Aspect_Names): Add Name_Finalizable for Aspect_Finalizable. |
| 4225 |
(Aspect_Delay): Add Always_Delay for Aspect_Finalizable. |
| 4226 |
* checks.adb: Add with and use clauses for Sem_Elab. |
| 4227 |
(Install_Primitive_Elaboration_Check): Call Is_Controlled_Procedure. |
| 4228 |
* einfo.ads (Has_Relaxed_Finalization): Document new flag. |
| 4229 |
(Is_Controlled_Active): Update documentation. |
| 4230 |
* exp_aggr.adb (Generate_Finalization_Actions): Replace Find_Prim_Op |
| 4231 |
with Find_Controlled_Prim_Op for Name_Finalize. |
| 4232 |
* exp_attr.adb (Expand_N_Attribute_Reference) <Finalization_Size>: |
| 4233 |
Return 0 if the prefix type has relaxed finalization. |
| 4234 |
* exp_ch3.adb (Build_Equivalent_Record_Aggregate): Return Empty if |
| 4235 |
the type needs finalization. |
| 4236 |
(Expand_Freeze_Record_Type): Call Find_Controlled_Prim_Op instead of |
| 4237 |
Find_Prim_Op for Name_{Adjust,Initialize,Finalize}. |
| 4238 |
Call Make_Finalize_Address_Body for all controlled types. |
| 4239 |
* exp_ch4.adb (Insert_Dereference_Action): Do not generate a call to |
| 4240 |
Adjust_Controlled_Dereference if the designated type has relaxed |
| 4241 |
finalization. |
| 4242 |
* exp_ch6.adb (Needs_BIP_Collection): Return false for an untagged |
| 4243 |
type that has relaxed finalization. |
| 4244 |
* exp_ch7.adb (Allows_Finalization_Collection): Return false if the |
| 4245 |
designated type has relaxed finalization. |
| 4246 |
(Check_Visibly_Controlled): Call Find_Controlled_Prim_Op instead of |
| 4247 |
Find_Prim_Op. |
| 4248 |
(Make_Adjust_Call): Likewise. |
| 4249 |
(Make_Deep_Record_Body): Likewise. |
| 4250 |
(Make_Final_Call): Likewise. |
| 4251 |
(Make_Init_Call): Likewise. |
| 4252 |
* exp_disp.adb (Set_All_DT_Position): Remove obsolete warning. |
| 4253 |
* exp_util.ads: Add with and use clauses for Snames. |
| 4254 |
(Find_Prim_Op): Add precondition. |
| 4255 |
(Find_Controlled_Prim_Op): New function declaration. |
| 4256 |
(Name_Of_Controlled_Prim_Op): Likewise. |
| 4257 |
* exp_util.adb: Remove with and use clauses for Snames. |
| 4258 |
(Build_Allocate_Deallocate_Proc): Do not build finalization actions |
| 4259 |
if the designated type has relaxed finalization. |
| 4260 |
(Find_Controlled_Prim_Op): New function. |
| 4261 |
(Find_Last_Init): Call Find_Controlled_Prim_Op instead of |
| 4262 |
Find_Prim_Op. |
| 4263 |
(Name_Of_Controlled_Prim_Op): New function. |
| 4264 |
* freeze.adb (Freeze_Entity.Freeze_Record_Type): Propagate the |
| 4265 |
Has_Relaxed_Finalization flag from components. |
| 4266 |
* gen_il-fields.ads (Opt_Field_Enum): Add Has_Relaxed_Finalization. |
| 4267 |
* gen_il-gen-gen_entities.adb (Entity_Kind): Likewise. |
| 4268 |
* sem_aux.adb (Is_By_Reference_Type): Return true for all controlled |
| 4269 |
types. |
| 4270 |
* sem_ch3.adb (Build_Derived_Record_Type): Do not special case types |
| 4271 |
declared in Ada.Finalization. |
| 4272 |
(Record_Type_Definition): Propagate the Has_Relaxed_Finalization |
| 4273 |
flag from components. |
| 4274 |
* sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): Also process the |
| 4275 |
Finalizable aspect. |
| 4276 |
(Analyze_Aspect_Specifications): Likewise. Call Flag_Non_Static_Expr |
| 4277 |
in more cases. |
| 4278 |
(Check_Aspect_At_Freeze_Point): Likewise. |
| 4279 |
(Inherit_Aspects_At_Freeze_Point): Likewise. |
| 4280 |
(Resolve_Aspect_Expressions): Likewise. |
| 4281 |
(Resolve_Finalizable_Argument): New procedure. |
| 4282 |
(Validate_Finalizable_Aspect): Likewise. |
| 4283 |
* sem_elab.ads: Add with and use clauses for Snames. |
| 4284 |
(Is_Controlled_Procedure): New function declaration. |
| 4285 |
* sem_elab.adb: Remove with and use clauses for Snames. |
| 4286 |
(Is_Controlled_Proc): Move to... |
| 4287 |
(Is_Controlled_Procedure): ...here and rename. |
| 4288 |
(Check_A_Call): Call Find_Controlled_Prim_Op instead of |
| 4289 |
Find_Prim_Op. |
| 4290 |
(Is_Finalization_Procedure): Likewise. |
| 4291 |
* sem_util.ads (Propagate_Controlled_Flags): Update documentation. |
| 4292 |
* sem_util.adb (Is_Fully_Initialized_Type): Replace call to |
| 4293 |
Find_Optional_Prim_Op with Find_Controlled_Prim_Op. |
| 4294 |
Call Has_Null_Extension only for derived tagged types. |
| 4295 |
(Propagate_Controlled_Flags): Propagate Has_Relaxed_Finalization. |
| 4296 |
* snames.ads-tmpl (Name_Finalizable): New name. |
| 4297 |
(Name_Relaxed_Finalization): Likewise. |
| 4298 |
* libgnat/s-finroo.ads (Root_Controlled): Add Finalizable aspect. |
| 4299 |
* doc/gnat_rm/gnat_language_extensions.rst: Document implementation |
| 4300 |
of Generalized Finalization. |
| 4301 |
* gnat_rm.texi: Regenerate. |
| 4302 |
* gnat_ugn.texi: Regenerate. |
| 4303 |
|
| 4304 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4305 |
|
| 4306 |
* gcc-interface/trans.cc (Subprogram_Body_to_gnu): Also return early |
| 4307 |
for a protected subprogram in -gnatc mode. |
| 4308 |
|
| 4309 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4310 |
|
| 4311 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <discrete_type>: Set |
| 4312 |
the TYPE_JUSTIFIED_MODULAR_P flag earlier. |
| 4313 |
* gcc-interface/misc.cc (gnat_unit_size_without_reusable_padding): |
| 4314 |
New function. |
| 4315 |
(LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Redefine to above |
| 4316 |
function. |
| 4317 |
|
| 4318 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4319 |
|
| 4320 |
* gcc-interface/utils.cc (clear_decl_bit_field): New function. |
| 4321 |
(finish_record_type): Call clear_decl_bit_field instead of clearing |
| 4322 |
DECL_BIT_FIELD manually. |
| 4323 |
|
| 4324 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4325 |
|
| 4326 |
* gcc-interface/trans.cc (gnat_to_gnu) <N_Op_Mod>: Fix formatting. |
| 4327 |
* gcc-interface/utils2.cc: Include optabs-query.h. |
| 4328 |
(fast_modulo_reduction): Call can_mult_highpart_p on the TYPE_MODE |
| 4329 |
before generating a high-part multiply. Fix formatting. |
| 4330 |
|
| 4331 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4332 |
|
| 4333 |
* gcc-interface/gigi.h (fast_modulo_reduction): Declare. |
| 4334 |
* gcc-interface/trans.cc (gnat_to_gnu) <N_Op_Mod>: In the unsigned |
| 4335 |
case, call fast_modulo_reduction for {FLOOR,TRUNC}_MOD_EXPR if the |
| 4336 |
RHS is a constant and not a power of two, and the precision is not |
| 4337 |
larger than the word size. |
| 4338 |
* gcc-interface/utils2.cc: Include expmed.h. |
| 4339 |
(fast_modulo_reduction): New function. |
| 4340 |
(nonbinary_modular_operation): Call fast_modulo_reduction for the |
| 4341 |
multiplication if the precision is not larger than the word size. |
| 4342 |
|
| 4343 |
2024-06-21 Javier Miranda <[email protected]> |
| 4344 |
|
| 4345 |
* sem_ch2.adb (Analyze_Interpolated_String_Literal): Reject |
| 4346 |
ambiguous function calls. |
| 4347 |
|
| 4348 |
2024-06-21 Ronan Desplanques <[email protected]> |
| 4349 |
|
| 4350 |
* sem_util.adb (Examine_Array_Bounds): Add missing return |
| 4351 |
statements. Fix criterion for a string literal being empty. |
| 4352 |
|
| 4353 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4354 |
|
| 4355 |
* bcheck.adb (Check_Consistency_Of_Sdep): Guard against path to ALI |
| 4356 |
file not found. |
| 4357 |
|
| 4358 |
2024-06-21 Javier Miranda <[email protected]> |
| 4359 |
|
| 4360 |
* sem_ch13.adb (Analyze_One_Aspect): Fix code locating the entity |
| 4361 |
of the parent type. |
| 4362 |
|
| 4363 |
2024-06-21 Marc Poulhiès <[email protected]> |
| 4364 |
|
| 4365 |
* make.adb (Scan_Make_Arg): Adjust error message. |
| 4366 |
* gnatls.adb (Search_RTS): Likewise. |
| 4367 |
* switch-b.adb (Scan_Debug_Switches): Likewise. |
| 4368 |
|
| 4369 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4370 |
|
| 4371 |
* einfo.ads (Direct_Primitive_Operations): Mention concurrent types |
| 4372 |
as well as GNAT extensions instead of implementation details. |
| 4373 |
(Primitive_Operations): Document that Direct_Primitive_Operations is |
| 4374 |
also used for concurrent types as a fallback. |
| 4375 |
* einfo-utils.adb (Primitive_Operations): Tweak formatting. |
| 4376 |
* exp_util.ads (Find_Prim_Op): Adjust description. |
| 4377 |
* exp_util.adb (Make_Subtype_From_Expr): In the private case with |
| 4378 |
unknown discriminants, always copy Direct_Primitive_Operations and |
| 4379 |
do not overwrite the Class_Wide_Type of the expression's base type. |
| 4380 |
* sem_ch3.adb (Analyze_Incomplete_Type_Decl): Tweak comment. |
| 4381 |
(Analyze_Subtype_Declaration): Remove older and now dead calls to |
| 4382 |
Set_Direct_Primitive_Operations. Tweak comment. |
| 4383 |
(Build_Derived_Private_Type): Likewise. |
| 4384 |
(Build_Derived_Record_Type): Likewise. |
| 4385 |
(Build_Discriminated_Subtype): Set Direct_Primitive_Operations in |
| 4386 |
all cases instead of just for tagged types. |
| 4387 |
(Complete_Private_Subtype): Likewise. |
| 4388 |
(Derived_Type_Declaration): Tweak comment. |
| 4389 |
* sem_ch4.ads (Try_Object_Operation): Adjust description. |
| 4390 |
|
| 4391 |
2024-06-21 Doug Rupp <[email protected]> |
| 4392 |
|
| 4393 |
* init.c [vxworks] (__gnat_install_handler): Revert to |
| 4394 |
installing signal handlers without regard to interrupt_state. |
| 4395 |
|
| 4396 |
2024-06-21 Javier Miranda <[email protected]> |
| 4397 |
|
| 4398 |
* sem_disp.adb (Find_Hidden_Overridden_Primitive): Check |
| 4399 |
public dispatching primitives of ancestors; previously, |
| 4400 |
only immediately-visible primitives were checked. |
| 4401 |
|
| 4402 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4403 |
|
| 4404 |
* checks.adb (Generate_Index_Checks): Add specific treatment for |
| 4405 |
index expressions that are N_Expression_With_Actions nodes. |
| 4406 |
|
| 4407 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4408 |
|
| 4409 |
* sem_ch4.adb (Analyze_Selected_Component): Rename Name into Pref |
| 4410 |
and use Sel local variable consistently. |
| 4411 |
(Is_Simple_Indexed_Component): New predicate. |
| 4412 |
Call Is_Simple_Indexed_Component to determine whether to build an |
| 4413 |
actual subtype for the component. |
| 4414 |
|
| 4415 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4416 |
|
| 4417 |
* freeze.adb (Freeze_Array_Type): Decouple the handling of the |
| 4418 |
interaction between packing and aliased/atomic components from |
| 4419 |
that of the interaction between a component clause and aliased/ |
| 4420 |
atomic components, and retrofit the processing of the interaction |
| 4421 |
between the two characteristics and independent components into |
| 4422 |
the common processing. |
| 4423 |
|
| 4424 |
2024-06-21 Bob Duff <[email protected]> |
| 4425 |
|
| 4426 |
* gen_il-gen-gen_nodes.adb |
| 4427 |
(N_Generic_Package_Declaration): Remove Activation_Chain_Entity. |
| 4428 |
* sinfo.ads: Comment improvements. Add missing doc. |
| 4429 |
Remove obsolete comment about Activation_Chain_Entity. |
| 4430 |
* einfo.ads: Comment improvements. Add missing doc. |
| 4431 |
* einfo-utils.adb (Base_Type): Add Assert (disabled for now). |
| 4432 |
(Next_Index): Minor cleanup. |
| 4433 |
* aspects.ads: Minor comment fix. |
| 4434 |
* exp_ch6.adb: Likewise. |
| 4435 |
* sem_ch3.adb: Likewise. |
| 4436 |
|
| 4437 |
2024-06-21 Piotr Trojanek <[email protected]> |
| 4438 |
|
| 4439 |
* sem_ch3.adb (Add_Interface_Tag_Components): Simplify with No. |
| 4440 |
|
| 4441 |
2024-06-21 Steve Baird <[email protected]> |
| 4442 |
|
| 4443 |
* sem_ch4.adb (Is_Effectively_Visible_Operator): A new function. |
| 4444 |
(Check_Arithmetic_Pair): In paths where Add_One_Interp was |
| 4445 |
previously called unconditionally, instead call only if |
| 4446 |
Is_Effectively_Visible_Operator returns True. |
| 4447 |
(Check_Boolean_Pair): Likewise. |
| 4448 |
(Find_Unary_Types): Likewise. |
| 4449 |
|
| 4450 |
2024-06-21 Eric Botcazou <[email protected]> |
| 4451 |
|
| 4452 |
* accessibility.adb (Accessibility_Level): Apply the processing to |
| 4453 |
Expr when its Original_Node is an unanalyzed identifier. |
| 4454 |
|
| 4455 |
2024-06-21 Piotr Trojanek <[email protected]> |
| 4456 |
|
| 4457 |
* sem_attr.adb (In_Aspect_Specification): Use the standard |
| 4458 |
condition that works correctly with declare expressions. |
| 4459 |
* sem_ch13.adb (Analyze_Aspects_At_Freeze_Point): Replace |
| 4460 |
ordinary analysis with preanalysis of spec expressions. |
| 4461 |
|
| 4462 |
2024-06-21 Justin Squirek <[email protected]> |
| 4463 |
|
| 4464 |
* csets.ads (Identifier_Char): New function - replacing table. |
| 4465 |
* csets.adb (Identifier_Char): Rename and move table for static values. |
| 4466 |
(Initialize): Remove dynamic calculations. |
| 4467 |
(Identifier_Char): New function to calculate dynamic values. |
| 4468 |
* opt.adb (Set_Config_Switches): Remove setting of Identifier_Char. |
| 4469 |
|
| 4470 |
2024-06-20 Steve Baird <[email protected]> |
| 4471 |
|
| 4472 |
* sem_attr.adb (Resolve_Attribute.Proper_Op): When resolving the |
| 4473 |
name of the reducer subprogram in a reduction expression, |
| 4474 |
Proper_Op treats references to operators defined in Standard |
| 4475 |
specially. Disable this special treatment if the type of the |
| 4476 |
reduction expression is not the right class of type for the |
| 4477 |
operator, or if a new Boolean parameter (named "Strict") is True. |
| 4478 |
(Resolve_Attribute): In the overloaded case, iterate over the |
| 4479 |
reducer subprogram candidates twice. First with Strict => True and |
| 4480 |
then, if no good intepretation is found, with Strict => False. |
| 4481 |
|
| 4482 |
2024-06-20 Yannick Moy <[email protected]> |
| 4483 |
|
| 4484 |
* ghost.adb (Check_Ghost_Type): Fix checking. |
| 4485 |
|
| 4486 |
2024-06-20 Bob Duff <[email protected]> |
| 4487 |
|
| 4488 |
* expander.ads: Minor comment fixes. |
| 4489 |
* nlists.ads: Misc comment improvements. |
| 4490 |
* sem_aux.ads (First_Discriminant): Improve comment. |
| 4491 |
* sem_ch12.adb: Misc cleanups. |
| 4492 |
(Associations): New package containing type Gen_Assocs_Rec |
| 4493 |
to represent matchings, and function Match_Assocs to create the |
| 4494 |
Gen_Assocs_Rec constant. |
| 4495 |
(Analyze_Associations): Call Match_Assocs, and other major |
| 4496 |
changes related to that. |
| 4497 |
* sem_ch12.ads: Minor comment fixes. |
| 4498 |
* sem_ch3.adb: Minor comment fixes. |
| 4499 |
|
| 4500 |
2024-06-20 Steve Baird <[email protected]> |
| 4501 |
|
| 4502 |
* doc/gnat_rm/gnat_language_extensions.rst: Update documentation. |
| 4503 |
* doc/gnat_rm/implementation_defined_pragmas.rst: Update |
| 4504 |
documentation. |
| 4505 |
* errout.adb |
| 4506 |
(Error_Msg_GNAT_Extension): Update error message text. |
| 4507 |
* par-prag.adb: Update pragma parsing. This includes changing the |
| 4508 |
the name of the Check_Arg_Is_On_Or_Off formal parameter All_OK_Too |
| 4509 |
to All_Extensions_OK_Too. |
| 4510 |
* sem_prag.adb (Analyze_Pragma): In analyzing an |
| 4511 |
Extensions_Allowed pragma, replace uses of Name_All with |
| 4512 |
Name_All_Extensions; update a comment to reflect this. |
| 4513 |
* snames.ads-tmpl: Add Name_All_Extensions declaration. |
| 4514 |
* gnat_rm.texi: Regenerate. |
| 4515 |
|
| 4516 |
2024-06-20 Gary Dismukes <[email protected]> |
| 4517 |
|
| 4518 |
* sem_ch4.adb (Try_Selected_Component_In_Instance): Reverse if_statement |
| 4519 |
clauses so that the testing for the special case of extensions of private |
| 4520 |
types in instance bodies is done first, followed by the testing for the case |
| 4521 |
of a parent type that's a generic actual type. In the extension case, apply |
| 4522 |
Base_Type to the type actual in the test of Used_As_Generic_Actual, and add |
| 4523 |
a test of Present (Parent_Subtype (Typ)). |
| 4524 |
|
| 4525 |
2024-06-20 Yannick Moy <[email protected]> |
| 4526 |
|
| 4527 |
* inline.adb (Establish_Actual_Mapping_For_Inlined_Call): In the |
| 4528 |
case of formal with a fixed lower bounds, insert appropriate |
| 4529 |
conversion like in the case of a constrained type. |
| 4530 |
* tbuild.adb (Unchecked_Convert_To): Do not skip the conversion |
| 4531 |
when it may involve sliding due to a type with fixed lower bound. |
| 4532 |
|
| 4533 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4534 |
|
| 4535 |
* sem_ch12.adb (Instantiate_Formal_Package): Accept renamings of a |
| 4536 |
generic parent that is a child unit for the abbreviated instance. |
| 4537 |
|
| 4538 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4539 |
|
| 4540 |
* exp_ch4.adb (Expand_Composite_Equality): In the untagged record |
| 4541 |
case, always look for a user-defined equality operator in Ada 2012. |
| 4542 |
|
| 4543 |
2024-06-20 Doug Rupp <[email protected]> |
| 4544 |
|
| 4545 |
* ali.ads (Interrupts_Default_To_System): New boolean. |
| 4546 |
(Interrupts_Default_To_System_Specified): New boolean. |
| 4547 |
* ali.adb (Interrupts_Default_To_System_Specified): Initialize. |
| 4548 |
(Interrupts_Default_To_System): Initialize. |
| 4549 |
(Scan_ALI): Processing for "ID". |
| 4550 |
* bindgen.adb: Coallesce comments on interrupt settings to ... |
| 4551 |
(Gen_Adainit): Import Interrupts_Default_To_System flag and set if |
| 4552 |
pragma specified. |
| 4553 |
(Gen_Output_File_Ada): Generate Local_Interrupt_States according |
| 4554 |
to pragma. |
| 4555 |
* init.c: ... here. |
| 4556 |
[vxworks] (__gnat_install_handler): Test for interrupt_state. |
| 4557 |
(__gl_interrupts_default_to_system): New global flag. |
| 4558 |
(__gnat_get_interrupt_State): return interrupt state according to |
| 4559 |
new global flag. |
| 4560 |
* lib-writ.ads: Document "ID". |
| 4561 |
* lib-writ.adb: Write out "ID". |
| 4562 |
* opt.ads (Interrupts_System_By_Default): New boolean, defaulted |
| 4563 |
to False. |
| 4564 |
* par-prag.adb (Pragma_Interrupts_System_By_Default): New. |
| 4565 |
* sem_prag.adb (Pragma_Interrupts_System_By_Default): Handle it. |
| 4566 |
(Pragma_Interrupts_System_By_Default): Default it. |
| 4567 |
* snames.ads-tmpl (Name_Interrupts_System_By_Default): New name. |
| 4568 |
(Pragma_Interrupts_System_By_Default): New |
| 4569 |
* libgnarl/s-intman__posix.adb (Initialize): Ensure the |
| 4570 |
Keep_Unmasked signal is sigset-able. |
| 4571 |
* doc/gnat_rm/implementation_defined_pragmas.rst: Document pragma |
| 4572 |
Interrupts_System_By_Default. |
| 4573 |
* doc/gnat_ugn/the_gnat_compilation_model.rst (Configuration |
| 4574 |
pragmas): Add Interrupts_System_By_Default. (Partition-Wide |
| 4575 |
Settings): Mention pragma Interrupts_System_By_Default. |
| 4576 |
* gnat_rm.texi: Regenerate. |
| 4577 |
* gnat_ugn.texi: Regenerate. |
| 4578 |
|
| 4579 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4580 |
|
| 4581 |
* exp_ch4.adb (Expand_Array_Equality.Component_Equality): Copy the |
| 4582 |
Comes_From_Source flag from the original test to the new one, and |
| 4583 |
remove obsolete code dealing with unchecked unions. |
| 4584 |
* sem_util.adb (Has_Inferable_Discriminants): Return False for an |
| 4585 |
incomplete or private nominal subtype. |
| 4586 |
|
| 4587 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4588 |
|
| 4589 |
* freeze.adb (Freeze_Expression): Also attach pending freeze nodes |
| 4590 |
to the parent in the case of an internal block in a spec expression. |
| 4591 |
|
| 4592 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4593 |
|
| 4594 |
* debug.adb (d_l): Document new usage for the compiler. |
| 4595 |
* freeze.adb (Check_Strict_Alignment): Set the Strict_Alignment |
| 4596 |
flag on array types with aliased component, except if the |
| 4597 |
component size is equal to the storage unit or the -gnatd_l switch |
| 4598 |
is specified. |
| 4599 |
|
| 4600 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4601 |
|
| 4602 |
* doc/gnat_rm/implementation_advice.rst (Representation Clauses): |
| 4603 |
Remove >> marker and add end of sentence after code-block directive. |
| 4604 |
(RM 13.5.3(7-8)): Update to Ada 2005 wording. |
| 4605 |
* doc/gnat_rm/implementation_defined_characteristics.rst |
| 4606 |
(RM 13.5.3(5)): Likewise. |
| 4607 |
* gnat_rm.texi: Regenerate. |
| 4608 |
* gnat_ugn.texi: Regenerate. |
| 4609 |
|
| 4610 |
2024-06-20 Piotr Trojanek <[email protected]> |
| 4611 |
|
| 4612 |
* doc/gnat_rm/implementation_defined_aspects.rst |
| 4613 |
(Aspect Subprogram_Variant): Refer to SPARK User's Guide. |
| 4614 |
* doc/gnat_rm/implementation_defined_pragmas.rst |
| 4615 |
(Pragma Subprogram_Variant): Document syntax to satisfy the |
| 4616 |
convention; refer to SPARK User's Guide for semantics. |
| 4617 |
* gnat_rm.texi: Regenerate. |
| 4618 |
* gnat_ugn.texi: Regenerate. |
| 4619 |
|
| 4620 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4621 |
|
| 4622 |
* freeze.adb (Freeze_Array_Type): Call Propagate_Controlled_Flags |
| 4623 |
to propagate the controlled flags from the component to the array. |
| 4624 |
(Freeze_Record_Type): Propagate the Finalize_Storage_Only flag |
| 4625 |
from the components to the record. |
| 4626 |
* sem_ch3.adb (Analyze_Private_Extension_Declaration): Do not call |
| 4627 |
Propagate_Concurrent_Flags here but... |
| 4628 |
(Array_Type_Declaration): Tidy and call Propagate_Controlled_Flags |
| 4629 |
to propagate the controlled flags from the component to the array. |
| 4630 |
(Build_Derived_Private_Type): Do not propagate the controlled flags |
| 4631 |
manually here but... |
| 4632 |
(Build_Derived_Record_Type): ...call Propagate_Controlled_Flags to |
| 4633 |
propagate the controlled flags from parent to derived type. |
| 4634 |
(Build_Derived_Type): Likewise. |
| 4635 |
(Copy_Array_Base_Type_Attributes): Call Propagate_Controlled_Flags |
| 4636 |
to copy the controlled flags. |
| 4637 |
(Record_Type_Definition): Streamline the propagation of the |
| 4638 |
Finalize_Storage_Only flag from the components to the record. |
| 4639 |
* sem_ch7.adb (Preserve_Full_Attributes): Use Full_Base and call |
| 4640 |
Propagate_Controlled_Flags to copy the controlled flags. |
| 4641 |
* sem_ch9.adb (Analyze_Protected_Definition): Use canonical idiom |
| 4642 |
to compute Has_Controlled_Component. |
| 4643 |
(Analyze_Protected_Type_Declaration): Minor tweak. |
| 4644 |
* sem_ch13.adb (Inherit_Aspects_At_Freeze_Point): Do not deal with |
| 4645 |
Finalize_Storage_Only here. |
| 4646 |
* sem_util.ads (Propagate_Controlled_Flags): New declaration. |
| 4647 |
* sem_util.adb (Propagate_Controlled_Flags): New procedure. |
| 4648 |
|
| 4649 |
2024-06-20 Piotr Trojanek <[email protected]> |
| 4650 |
|
| 4651 |
* freeze.adb (Check_Current_Instance): This routine is only called |
| 4652 |
with parameter E being a type entity, so there is no need to check |
| 4653 |
for types just before the equality with E. |
| 4654 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Regroup condition |
| 4655 |
to avoid unnecessary evaluation. |
| 4656 |
(Check_Aspect_At_End_Of_Declarations): If In_Instance is true, |
| 4657 |
then the routine exits early. |
| 4658 |
|
| 4659 |
2024-06-20 Piotr Trojanek <[email protected]> |
| 4660 |
|
| 4661 |
* freeze.adb (Find_Aspect_No_Parts): Tune whitespace. |
| 4662 |
* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Fix style. |
| 4663 |
|
| 4664 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4665 |
|
| 4666 |
* aspects.ads (Aspect_Id): Remove Aspect_Max_Entry_Queue_Depth. |
| 4667 |
(global arrays): Remove entry for it. |
| 4668 |
* exp_ch9.adb (Expand_N_Protected_Type_Declaration): Remove |
| 4669 |
reference to pragma Max_Entry_Queue_Depth in comment. |
| 4670 |
* par-prag.adb (Prag): Remove handling of |
| 4671 |
Pragma_Max_Entry_Queue_Depth. |
| 4672 |
* sem_ch13.adb (Analyze_Aspect_Specifications): Remove reference |
| 4673 |
to aspect Max_Entry_Queue_Depth in comment. |
| 4674 |
(Analyze_Aspect_Specifications): Remove processing of aspect |
| 4675 |
Max_Entry_Queue_Depth. |
| 4676 |
(Check_Aspect_At_Freeze_Point): Likewise. |
| 4677 |
* sem_prag.ads (Find_Related_Declaration_Or_Body): Remove |
| 4678 |
reference to pragma Max_Entry_Queue_Depth in comment. |
| 4679 |
* sem_prag.adb (Analyze_Pragma): Remove processing of pragma |
| 4680 |
Max_Entry_Queue_Depth. |
| 4681 |
(Sig_Flags): Remove entry for Pragma_Max_Entry_Queue_Depth. |
| 4682 |
* sem_util.adb (Get_Max_Queue_Length): Remove handling of pragma |
| 4683 |
Max_Entry_Queue_Depth. |
| 4684 |
(Has_Max_Queue_Length): Likewise. |
| 4685 |
* snames.ads-tmpl (Name_Max_Entry_Queue_Depth): Move back from |
| 4686 |
pragmas section to others section. |
| 4687 |
(Pragma_Id): Remove Pragma_Max_Entry_Queue_Depth. |
| 4688 |
|
| 4689 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4690 |
|
| 4691 |
* doc/gnat_rm/gnat_language_extensions.rst (Pragma Storage_Model): |
| 4692 |
Rename to Storage Model. |
| 4693 |
* doc/gnat_rm/implementation_defined_aspects.rst: Alphabetize. |
| 4694 |
* gnat_rm.texi: Regenerate. |
| 4695 |
* gnat_ugn.texi: Regenerate. |
| 4696 |
|
| 4697 |
2024-06-20 Ronan Desplanques <[email protected]> |
| 4698 |
|
| 4699 |
* gnat1drv.adb (Gnat1drv): Add coverage instrumentation |
| 4700 |
annotations. |
| 4701 |
|
| 4702 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4703 |
|
| 4704 |
* exp_ch3.adb (Expand_Freeze_Array_Type): Do not propagate the |
| 4705 |
concurrent flags and the Has_Controlled_Component flag here. |
| 4706 |
(Expand_Freeze_Record_Type): Likewise. |
| 4707 |
* freeze.adb (Freeze_Array_Type): Propagate the concurrent flags. |
| 4708 |
(Freeze_Record_Type): Likewise. |
| 4709 |
* sem_util.adb (Has_Some_Controlled_Component): Adjust comment. |
| 4710 |
|
| 4711 |
2024-06-20 Eric Botcazou <[email protected]> |
| 4712 |
|
| 4713 |
* mutably_tagged.ads: Fix minor issues in comments throughout. |
| 4714 |
|
| 4715 |
2024-06-20 Richard Kenner <[email protected]> |
| 4716 |
|
| 4717 |
* debug.adb: Add documentation for -gnatd_w. |
| 4718 |
|
| 4719 |
2024-06-20 Viljar Indus <[email protected]> |
| 4720 |
|
| 4721 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Update |
| 4722 |
documentation for -gnatw.v. |
| 4723 |
* sem_ch13.adb: Convert all -gnatw.v related messages to warnings. |
| 4724 |
* gnat_ugn.texi: Regenerate. |
| 4725 |
|
| 4726 |
2024-06-20 Viljar Indus <[email protected]> |
| 4727 |
|
| 4728 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Update |
| 4729 |
documentation for -gnatw.n switch. |
| 4730 |
* exp_util.adb: Convert info messages into warnings. |
| 4731 |
* gnat_ugn.texi: Regenerate. |
| 4732 |
|
| 4733 |
2024-06-20 Viljar Indus <[email protected]> |
| 4734 |
|
| 4735 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: Add |
| 4736 |
entry for -gnatis. |
| 4737 |
* errout.adb (Error_Msg_Internal): Stop printing info messages if |
| 4738 |
-gnatis was used. |
| 4739 |
* opt.ads: Add Info_Suppressed flag to track whether info messages |
| 4740 |
should be suppressed. |
| 4741 |
* switch-c.adb: Add parsing for -gnatis. |
| 4742 |
* gnat_ugn.texi: Regenerate. |
| 4743 |
|
| 4744 |
2024-06-20 Viljar Indus <[email protected]> |
| 4745 |
|
| 4746 |
* atree.ads: Remove Warning_Info_Messages. |
| 4747 |
* errout.adb: Remove various places where Warning_Info_Messages |
| 4748 |
was used. |
| 4749 |
* erroutc.adb: Remove various places where Warning_Info_Messages |
| 4750 |
was used. Create Error_Msg_Object objects with only an info |
| 4751 |
attribute if the message contained both info and warning insertion |
| 4752 |
characters. New method Has_Switch_Tag for detecting if a message |
| 4753 |
should have an error tag. |
| 4754 |
* errutil.adb: Create Error_Msg_Object objects with only an info |
| 4755 |
attribute if the message contained both info and warning insertion |
| 4756 |
characters. |
| 4757 |
|
| 4758 |
2024-06-20 Justin Squirek <[email protected]> |
| 4759 |
|
| 4760 |
* doc/gnat_rm/gnat_language_extensions.rst: Add entry for 'Super. |
| 4761 |
* doc/gnat_rm/implementation_defined_attributes.rst: Remove entry |
| 4762 |
for 'Super. |
| 4763 |
* gnat_rm.texi: Regenerate. |
| 4764 |
* gnat_ugn.texi: Regenerate. |
| 4765 |
|
| 4766 |
2024-06-20 Steve Baird <[email protected]> |
| 4767 |
|
| 4768 |
* gprep.adb (Process_Files.Process_One_File): When calling OS_Exit in an error |
| 4769 |
path, pass in a Status parameter of 1 instead of 0 (because 0 |
| 4770 |
indicates success). |
| 4771 |
* lib-load.adb (Load_Main_Source): Do not emit a message about a missing source file |
| 4772 |
if other error messages were generated by calling Load_Source_File; |
| 4773 |
the file isn't missing - it failed preprocessing. |
| 4774 |
|
| 4775 |
2024-06-20 Piotr Trojanek <[email protected]> |
| 4776 |
|
| 4777 |
* sem_attr.adb (Attribute_22): Add Put_Image and Object_Size. |
| 4778 |
* sem_attr.ads (Attribute_Impl_Def): Remove Object_Size. |
| 4779 |
|
| 4780 |
2024-06-14 Eric Botcazou <[email protected]> |
| 4781 |
|
| 4782 |
* gcc-interface/Makefile.in (tmake_file): Remove all references. |
| 4783 |
|
| 4784 |
2024-06-14 Eric Botcazou <[email protected]> |
| 4785 |
|
| 4786 |
* gcc-interface/decl.cc: Include function.h. |
| 4787 |
(gnat_to_gnu_param): Minor comment tweaks. |
| 4788 |
(gnat_to_gnu_subprog_type): Take into account the default for the |
| 4789 |
computation of the return mechanism. Give a warning if a by-copy |
| 4790 |
specified mechanism cannot be honored. |
| 4791 |
|
| 4792 |
2024-06-14 Yannick Moy <[email protected]> |
| 4793 |
|
| 4794 |
* gcc-interface/trans.cc (elaborate_all_entities_for_package) |
| 4795 |
(process_freeze_entity): Skip entities of kind E_Subprogram_Body. |
| 4796 |
|
| 4797 |
2024-06-14 Eric Botcazou <[email protected]> |
| 4798 |
|
| 4799 |
PR ada/109817 |
| 4800 |
* gcc-interface/trans.cc (maybe_make_gnu_thunk): Create an alias |
| 4801 |
instead of a null thunk. |
| 4802 |
|
| 4803 |
2024-06-14 Marc Poulhiès <[email protected]> |
| 4804 |
|
| 4805 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Typo fix. |
| 4806 |
(gnat_to_gnu_component_type): Indent fix. |
| 4807 |
* gcc-interface/gigi.h (build_call_alloc_dealloc): Typo fix. |
| 4808 |
* gcc-interface/utils.cc (make_dummy_type): Typo fix. |
| 4809 |
* gcc-interface/utils2.cc (gnat_protect_expr): Indent fix. |
| 4810 |
|
| 4811 |
2024-06-14 Eric Botcazou <[email protected]> |
| 4812 |
|
| 4813 |
* aspects.ads (Aspect_Id): Alphabetize, remove the GNAT tag from |
| 4814 |
Default_Initial_Condition and Object_Size, move No_Controlled_Parts |
| 4815 |
and No_Task_Parts to boolean subclass. |
| 4816 |
(Nonoverridable_Aspect_Id): Add missing Ada 2022 aspects. |
| 4817 |
(Implementation_Defined_Aspect): Add all missing aspects, remove |
| 4818 |
Max_Entry_Queue_Length and Object_Size |
| 4819 |
(Aspect_Argument): Remove specific entries for No_Controlled_Parts |
| 4820 |
and No_Task_Parts, list boolean aspects last. |
| 4821 |
(Is_Representation_Aspect ): Move boolean aspects last. |
| 4822 |
(Aspect_Names): Alphabetize. |
| 4823 |
* sem_ch13.adb (Analyze_Aspect_Disable_Controlled): Adjust. |
| 4824 |
(Analyze_Aspect_Specifications): Move around processing for |
| 4825 |
No_Controlled_Parts and No_Task_Parts. |
| 4826 |
(Check_Aspect_At_Freeze_Point): Remove specific entries for |
| 4827 |
No_Controlled_Parts and No_Task_Parts |
| 4828 |
|
| 4829 |
2024-06-14 Steve Baird <[email protected]> |
| 4830 |
|
| 4831 |
* exp_attr.adb |
| 4832 |
(Expand_Loop_Entry_Attribute): |
| 4833 |
Ensure that Etype of the saved expression is set correctly. |
| 4834 |
|
| 4835 |
2024-06-14 Jerome Guitton <[email protected]> |
| 4836 |
|
| 4837 |
* sysdep.c (S_dosFsLib_FILE_NOT_FOUND, S_nfsLib_NFSERR_NOENT): |
| 4838 |
New macros, falback to ENOENT when not already defined. |
| 4839 |
(__gnat_is_file_not_found_error): Use these new macros to remove |
| 4840 |
tests against VxWorks flavors. |
| 4841 |
|
| 4842 |
2024-06-14 Eric Botcazou <[email protected]> |
| 4843 |
|
| 4844 |
* snames.ads-tmpl (Name_Present): Move to Repinfo section. |
| 4845 |
|
| 4846 |
2024-06-14 Justin Squirek <[email protected]> |
| 4847 |
|
| 4848 |
* doc/gnat_rm/gnat_language_extensions.rst: Add documentation for |
| 4849 |
mutably tagged type feature. |
| 4850 |
* aspects.ads: Add registration for 'Size'Class. |
| 4851 |
* einfo.ads: Add documentation for new components |
| 4852 |
Class_Wide_Equivalent_Type and Is_Mutably_Tagged_Type. |
| 4853 |
* exp_aggr.adb (Gen_Assign): Assume associated mutably tagged type |
| 4854 |
when class-wide equivalent type is encountered. |
| 4855 |
(Contains_Mutably_Tagged_Type): New subprogram. |
| 4856 |
(Convert_To_Positional): Assume associated mutably tagged type |
| 4857 |
when class-wide equivalent type is encountered. |
| 4858 |
(Is_Static_Element): Assume associated mutably tagged type when |
| 4859 |
class-wide equivalent type is encountered. |
| 4860 |
(Expand_Array_Aggregate): Assume associated mutably tagged type |
| 4861 |
when class-wide equivalent type is encountered. |
| 4862 |
(Expand_Record_Aggregate): Force mutably tagged records to be |
| 4863 |
expanded into assignments. |
| 4864 |
* exp_ch3.adb (Build_Array_Init_Proc): Assume associated mutably |
| 4865 |
tagged type when class-wide equivalent type is encountered. |
| 4866 |
(Simple_Initialization_OK): Disallow simple initialization for |
| 4867 |
class-wide equivalent types. |
| 4868 |
(Build_Init_Statements): Assume associated mutably tagged type |
| 4869 |
when class-wide equivalent type is encountered. |
| 4870 |
(Expand_Freeze_Array_Type): Ignore building of record init procs |
| 4871 |
for mutably tagged types. |
| 4872 |
(Expand_N_Full_Type_Declaration): Replace mutably tagged type |
| 4873 |
declarations with their associated class-wide equivalent types. |
| 4874 |
(Default_Initialize_Object): Add special handling for mutably |
| 4875 |
tagged types. |
| 4876 |
* exp_ch4.adb (Expand_N_Allocator): Add initialization for mutably |
| 4877 |
tagged types. |
| 4878 |
(Expand_Record_Equality): Generate mutably tagged unchecked |
| 4879 |
conversions. |
| 4880 |
* exp_ch5.adb (Expand_N_Assignment_Statement): Generate a special |
| 4881 |
assignment case for class-wide equivalent types which does tag |
| 4882 |
assignments and ignores certain checks. |
| 4883 |
* exp_ch6.adb (Expand_Call_Helper): Propagate constrained extra |
| 4884 |
formal actuals for mutably tagged types. |
| 4885 |
* exp_ch7.adb (Make_Init_Call): Handle mutably tagged type |
| 4886 |
initialization. |
| 4887 |
* exp_util.adb (Make_CW_Equivalent_Type): Modify to handle mutably |
| 4888 |
tagged objects which contain no initialization expression. |
| 4889 |
(Make_Subtype_From_Expr): Modify call to Make_CW_Equivalent_Type. |
| 4890 |
* exp_util.ads (Make_CW_Equivalent_Type): Move declaration from |
| 4891 |
body to spec. |
| 4892 |
* freeze.adb (Size_Known): No longer return false automatically |
| 4893 |
when a class-wide type is encountered. |
| 4894 |
(Freeze_Entity): Ignore error messages about size not being known |
| 4895 |
for mutably tagged types. |
| 4896 |
* gen_il-fields.ads: Register new fields |
| 4897 |
Class_Wide_Equivalent_Type and Is_Mutably_Tagged_Type. |
| 4898 |
* gen_il-gen-gen_entities.adb: Register new fields |
| 4899 |
Class_Wide_Equivalent_Type and Is_Mutably_Tagged_Type for type |
| 4900 |
entities. |
| 4901 |
* mutably_tagged.adb, mutably_tagged.ads |
| 4902 |
(Corresponding_Mutably_Tagged_Type): New subprogram. |
| 4903 |
(Depends_On_Mutably_Tagged_Ext_Comp): New subprogram. |
| 4904 |
(Get_Corresponding_Mutably_Tagged_Type_If_Present): New |
| 4905 |
subprogram. |
| 4906 |
(Get_Corresponding_Tagged_Type_If_Present): New subprogram. |
| 4907 |
(Is_Mutably_Tagged_Conversion): New subprogram. |
| 4908 |
(Is_Mutably_Tagged_CW_Equivalent_Type): New subprogram. |
| 4909 |
(Make_Mutably_Tagged_Conversion): New subprogram. |
| 4910 |
(Make_CW_Size_Compile_Check): New subprogram. |
| 4911 |
(Make_Mutably_Tagged_CW_Check): New subprogram. |
| 4912 |
* sem_aggr.adb (Resolve_Array_Aggregate): Skip tag checks for |
| 4913 |
class-wide equivalent types. |
| 4914 |
(Resolve_Aggr_Expr): Assume associated mutably tagged type when |
| 4915 |
class-wide equivalent type is encountered. |
| 4916 |
* sem_attr.adb (Analyze_Attribute): Allow 'Tag on mutably tagged |
| 4917 |
types. |
| 4918 |
(Resolve_Attribute): Detect errors for dependence of mutably |
| 4919 |
tagged extension type component. |
| 4920 |
* sem_ch12.adb (Instantiate_Object): Detect errors for dependence |
| 4921 |
of mutably tagged extension type component. |
| 4922 |
* sem_ch13.adb (Analyze_One_Aspect): Propagate 'Size'Class to |
| 4923 |
class-wide type. |
| 4924 |
(Analyze_Attribute_Definition_Clause): Add handling of 'Size'Class |
| 4925 |
by generating class-wide equivalent types and checking for illegal |
| 4926 |
uses. |
| 4927 |
* sem_ch2.adb (Analyze_Identifier): Generate unchecked conversion |
| 4928 |
for class-wide equivalent types. |
| 4929 |
* sem_ch3.adb (Analyze_Component_Declaration): Avoid unconstrained |
| 4930 |
errors on mutably tagged types. |
| 4931 |
(Analyze_Object_Declaration): Rewrite declarations of mutably |
| 4932 |
tagged types to use class-wide equivalent types. |
| 4933 |
(Array_Type_Declaration): Modify arrays of mutably tagged types to |
| 4934 |
use their corresponding class-wide equivalent types. |
| 4935 |
(Derived_Type_Declaration): Add various checks for mutably tagged |
| 4936 |
derived types. |
| 4937 |
* sem_ch4.adb (Analyze_Allocator): Replace reference to mutably |
| 4938 |
tagged type with cooresponding tagged type. |
| 4939 |
(Process_Indexed_Component): Generate unchecked conversion for |
| 4940 |
class-wide equivalent type. |
| 4941 |
(Analyze_One_Call): Generate unchecked conversion for class-wide |
| 4942 |
equivalent types. |
| 4943 |
(Analyze_Selected_Component): Assume reference to class-wide |
| 4944 |
equivalent type is associated mutably tagged type. |
| 4945 |
(Analyze_Type_Conversion): Generate unchecked conversion for |
| 4946 |
class-wide equivalent type. |
| 4947 |
* sem_ch5.adb (Analyze_Assignment): Assume associated mutably |
| 4948 |
tagged type when class-wide equivalent type is encountered. |
| 4949 |
(Analyze_Iterator_Specification): Detect errors for dependence of |
| 4950 |
mutably tagged extension type component. |
| 4951 |
* sem_ch6.adb (Create_Extra_Formals): Add code to generate extra |
| 4952 |
formal for mutably tagged types to signal if they are constrained. |
| 4953 |
* sem_ch8.adb (Analyze_Object_Renaming): Detect error on renaming |
| 4954 |
of mutably tagged extension type component. |
| 4955 |
(Analyze_Renaming_Primitive_Operation): Detect error on renaming |
| 4956 |
of mutably tagged extension type component. |
| 4957 |
* sem_res.adb (Resolve_Actuals): Allow class-wide arguments on |
| 4958 |
class-wide equivalent types. |
| 4959 |
(Valid_Conversion): Assume associated mutably tagged type when |
| 4960 |
class-wide equivalent type is encountered. |
| 4961 |
* sem_util.adb (Is_Fully_Initialized_Type): Flag mutably tagged |
| 4962 |
types as fully initialized. |
| 4963 |
(Needs_Simple_Initalization): Flag class-wide equivalent types as |
| 4964 |
needing initialization. |
| 4965 |
* gnat_rm.texi: Regenerate. |
| 4966 |
* gcc-interface/Make-lang.in: Add entry for mutably_tagged.o. |
| 4967 |
|
| 4968 |
2024-06-14 Justin Squirek <[email protected]> |
| 4969 |
|
| 4970 |
* accessibility.adb: |
| 4971 |
(Accessibility_Level): Replace call Get_Full_View with call to |
| 4972 |
Full_View since Get_Full_View only works with incomplete types. |
| 4973 |
|
| 4974 |
2024-06-14 Eric Botcazou <[email protected]> |
| 4975 |
|
| 4976 |
* aspects.ads (Operational_Aspect): Alphabetize. |
| 4977 |
* sem_ch13.ads (Analyze_Aspects_At_Freeze_Point): Fix description. |
| 4978 |
* sem_ch13.adb (Analyze_Aspects_At_Freeze_Point) <Aggregate>: Give |
| 4979 |
the error for array types here instead of... |
| 4980 |
(Analyze_Aspect_Specifications) <Aggregate>: Adjust comment. |
| 4981 |
(Check_Aspect_At_Freeze_Point) <Aggregate>: ...here. |
| 4982 |
|
| 4983 |
2024-06-14 Javier Miranda <[email protected]> |
| 4984 |
|
| 4985 |
* exp_aggr.adb (Must_Slide): Add missing support for |
| 4986 |
multidimensional arrays. |
| 4987 |
|
| 4988 |
2024-06-14 Eric Botcazou <[email protected]> |
| 4989 |
|
| 4990 |
* freeze.adb (Freeze_All): Call Check_Aspects_At_End_Of_Declarations |
| 4991 |
to perform the visibility check for aspects. |
| 4992 |
* sem_ch13.ads (Check_Aspects_At_End_Of_Declarations): Declare. |
| 4993 |
(Check_Aspect_At_Freeze_Point): Move to... |
| 4994 |
(Check_Aspect_At_End_Of_Declarations): Move to... |
| 4995 |
* sem_ch13.adb (Check_Aspect_At_Freeze_Point): ...here. |
| 4996 |
(Check_Aspect_At_End_Of_Declarations): ...here. |
| 4997 |
(Analyze_Aspect_Specifications): Remove peculiar processing for |
| 4998 |
Stable_Properties, Designated_Storage_Model, Storage_Model_Type |
| 4999 |
and Aggregate. Move that of Local_Restrictions around. Reset |
| 5000 |
Aitem at the beginning of the loop for each aspect. |
| 5001 |
(Check_Aspects_At_End_Of_Declarations): New procedure. |
| 5002 |
|
| 5003 |
2024-06-14 Justin Squirek <[email protected]> |
| 5004 |
|
| 5005 |
* sem_attr.adb: |
| 5006 |
(Analyze_Attribute): Add check for dereference. |
| 5007 |
|
| 5008 |
2024-06-14 Eric Botcazou <[email protected]> |
| 5009 |
|
| 5010 |
* snames.ads-tmpl (Name_Storage_Model): Delete. |
| 5011 |
|
| 5012 |
2024-06-14 Alexandre Oliva <[email protected]> |
| 5013 |
|
| 5014 |
Revert: |
| 5015 |
2024-06-12 Alexandre Oliva <[email protected]> |
| 5016 |
|
| 5017 |
* gcc-interface/decl.cc (gnat_to_gnu_field): Use unpacked type |
| 5018 |
as the debug type for packed fields. |
| 5019 |
|
| 5020 |
2024-06-13 Steve Baird <[email protected]> |
| 5021 |
|
| 5022 |
* exp_util.adb |
| 5023 |
(Insert_Actions): Code was relying on an incorrect assumption that an |
| 5024 |
N_Itype_Reference cannot occur in declaration list or a statement |
| 5025 |
list. Fix the code to handle this case. |
| 5026 |
|
| 5027 |
2024-06-13 Viljar Indus <[email protected]> |
| 5028 |
|
| 5029 |
* debug.adb: Remove mentions of -gnatdJ. |
| 5030 |
* errout.adb: Remove printing subprogram names to JSON. |
| 5031 |
* erroutc.adb: Remove printing subprogram names in messages. |
| 5032 |
* erroutc.ads: Remove Node and Subprogram_Name_Ptr used for -gnatdJ. |
| 5033 |
* errutil.adb: Remove Node used for -gnatdJ |
| 5034 |
* gnat1drv.adb: Remove references of -gnatdJ and |
| 5035 |
Include_Subprgram_In_Messages. |
| 5036 |
* opt.ads: Remove Include_Subprgram_In_Messages |
| 5037 |
* par-util.adb: Remove behavior related to |
| 5038 |
Include_Subprgram_In_Messages. |
| 5039 |
* sem_util.adb: Remove Subprogram_Name used for -gnatdJ |
| 5040 |
|
| 5041 |
2024-06-13 Eric Botcazou <[email protected]> |
| 5042 |
|
| 5043 |
* exp_ch7.adb (Attach_Object_To_Master_Node): Fix formatting. |
| 5044 |
(Build_Finalizer.Process_Object_Declaration): Synthesize a local |
| 5045 |
Finalize_Address primitive if the object's subtype is an array |
| 5046 |
that has a constrained first subtype and is not this first subtype. |
| 5047 |
* exp_util.adb (Find_Last_Init): Get again to the base type in the |
| 5048 |
indirect case. |
| 5049 |
|
| 5050 |
2024-06-13 Eric Botcazou <[email protected]> |
| 5051 |
|
| 5052 |
* doc/gnat_rm/implementation_defined_attributes.rst (Iterable): |
| 5053 |
Delete entry. |
| 5054 |
* gnat_rm.texi: Regenerate. |
| 5055 |
* gnat_ugn.texi: Regenerate. |
| 5056 |
|
| 5057 |
2024-06-13 Yannick Moy <[email protected]> |
| 5058 |
|
| 5059 |
* sem_util.adb (Check_Ambiguous_Aggregate): Fix test. |
| 5060 |
|
| 5061 |
2024-06-13 Javier Miranda <[email protected]> |
| 5062 |
|
| 5063 |
* freeze.ads (Check_Condition_Entities): Complete documentation. |
| 5064 |
* freeze.adb (Check_Inherited_Conditions): Extend its functionality to |
| 5065 |
build two kind of wrappers: the existing LSP wrappers, and wrappers |
| 5066 |
required to handle postconditions of interface primitives implemented |
| 5067 |
by inherited primitives. |
| 5068 |
(Build_Inherited_Condition_Pragmas): Rename formal. |
| 5069 |
(Freeze_Record_Type): For derived tagged types, move call to |
| 5070 |
Check_Inherited_Conditions to subprogram Freeze_Entity_Checks; |
| 5071 |
done to improve the performance of Check_Inherited_Conditions since it |
| 5072 |
can rely on the internal entities that link interface primitives with |
| 5073 |
tagged type primitives that implement them. |
| 5074 |
(Check_Interface_Primitives_Strub_Mode): New subprogram. |
| 5075 |
* sem_ch13.adb (Freeze_Entity_Checks): Call Check_Inherited_Conditions. |
| 5076 |
Call Check_Inherited_Conditions with derived interface types to check |
| 5077 |
strub mode compatibility of their primitives. |
| 5078 |
* sem_disp.adb (Check_Dispatching_Operation): Adjust assertion to accept |
| 5079 |
wrappers of interface primitives that have classwide postconditions. |
| 5080 |
* exp_disp.adb (Write_DT): Adding text to identify wrappers. |
| 5081 |
|
| 5082 |
2024-06-13 Viljar Indus <[email protected]> |
| 5083 |
|
| 5084 |
* sem_res.adb (Resolve_Call): add warning insertion |
| 5085 |
character into the info message. |
| 5086 |
|
| 5087 |
2024-06-13 Steve Baird <[email protected]> |
| 5088 |
|
| 5089 |
* sem_util.adb |
| 5090 |
(New_Copy_Tree.Visit_Entity): Delete code that prevented copying some entities. |
| 5091 |
|
| 5092 |
2024-06-13 Bob Duff <[email protected]> |
| 5093 |
|
| 5094 |
* sem_ch12.adb (Check_Fixed_Point_Actual): Minor rewording; it seems |
| 5095 |
more proper to say "operator" rather than "operation". |
| 5096 |
(Matching_Actual): Give an error for <> in positional notation. |
| 5097 |
This is a syntax error. Disable this for now. |
| 5098 |
(Analyze_Associations): Copy the use clause in all cases. |
| 5099 |
The "mustn't recopy" comment seems wrong, because New_Copy_Tree |
| 5100 |
preserves Slocs. |
| 5101 |
* libgnat/a-ticoau.ads: Fix violation of new postion-box error. |
| 5102 |
* libgnat/a-wtcoau.ads: Likewise. |
| 5103 |
* libgnat/a-ztcoau.ads: Likewise. |
| 5104 |
|
| 5105 |
2024-06-13 Viljar Indus <[email protected]> |
| 5106 |
|
| 5107 |
* par-labl.adb (Rewrite_As_Loop): Remove info message |
| 5108 |
|
| 5109 |
2024-06-13 Viljar Indus <[email protected]> |
| 5110 |
|
| 5111 |
* par-ch7.adb: Remove warning characters from info message |
| 5112 |
* par-endh.adb: Remove warning characters from info message |
| 5113 |
* sem_res.adb: Remove warning characters from info message |
| 5114 |
|
| 5115 |
2024-06-13 Viljar Indus <[email protected]> |
| 5116 |
|
| 5117 |
* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): change the |
| 5118 |
info message to a continuation message. |
| 5119 |
|
| 5120 |
2024-06-13 Viljar Indus <[email protected]> |
| 5121 |
|
| 5122 |
* inline.adb (Cannot_Inline): Simplify string handling logic. |
| 5123 |
|
| 5124 |
2024-06-13 Yannick Moy <[email protected]> |
| 5125 |
|
| 5126 |
* exp_ch5.adb (Expand_Iterator_Loop_Over_Container): Skip entities |
| 5127 |
of kind E_Subprogram_Body. |
| 5128 |
* repinfo.adb (List_Entities): Remove special case for subprogram |
| 5129 |
bodies. |
| 5130 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): List subprogram |
| 5131 |
body entities in the enclosing scope. |
| 5132 |
|
| 5133 |
2024-06-13 Javier Miranda <[email protected]> |
| 5134 |
|
| 5135 |
* sem_ch4.adb (Traverse_Interfaces): Add missing support |
| 5136 |
for climbing to parents of interface types. |
| 5137 |
|
| 5138 |
2024-06-13 Steve Baird <[email protected]> |
| 5139 |
|
| 5140 |
* doc/gnat_rm/implementation_defined_attributes.rst: |
| 5141 |
Update Super attribute documentation. |
| 5142 |
* gnat_rm.texi: Regenerate. |
| 5143 |
* gnat_ugn.texi: Regenerate. |
| 5144 |
|
| 5145 |
2024-06-13 Ronan Desplanques <[email protected]> |
| 5146 |
|
| 5147 |
* exp_ch7.adb (Build_Cleanup_Statements): Adapt to changes |
| 5148 |
made to Build_Protected_Subprogram_Call_Cleanup. |
| 5149 |
* exp_ch9.adb (Make_Unlock_Statement, Wrap_Unprotected_Call): |
| 5150 |
New functions. |
| 5151 |
(Build_Protected_Subprogram_Body): Fix resource management in |
| 5152 |
generated code. |
| 5153 |
(Build_Protected_Subprogram_Call_Cleanup): Make use of newly |
| 5154 |
introduced Make_Unlock_Statement. |
| 5155 |
|
| 5156 |
2024-06-13 Eric Botcazou <[email protected]> |
| 5157 |
|
| 5158 |
PR ada/114710 |
| 5159 |
* exp_util.adb (Find_Renamed_Object): Recurse for any renaming. |
| 5160 |
|
| 5161 |
2024-06-13 Piotr Trojanek <[email protected]> |
| 5162 |
|
| 5163 |
* sem_prag.adb (Check_Mode_Restriction_In_Enclosing_Context): |
| 5164 |
Iterate over encapsulating abstract states. |
| 5165 |
|
| 5166 |
2024-06-13 Eric Botcazou <[email protected]> |
| 5167 |
|
| 5168 |
* Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add s-imad32$(objext), |
| 5169 |
s-imad64$(objext) and s-imagea$(objext). |
| 5170 |
* exp_atag.ads (Build_Set_Size_Function): Replace Tag_Node parameter |
| 5171 |
with Typ parameter. |
| 5172 |
* exp_atag.adb: Add clauses for Sinfo.Utils. |
| 5173 |
(Build_Set_Size_Function): Retrieve the TSD object statically. |
| 5174 |
* exp_disp.adb: Add clauses for Ttypes. |
| 5175 |
(Make_DT): Call Address_Image{32,64] instead of Address_Image. |
| 5176 |
(Register_Primitive): Pass Tag_Typ to Build_Set_Size_Function. |
| 5177 |
* rtsfind.ads (RTU_Id): Remove System_Address_Image and add |
| 5178 |
System_Img_Address_{32;64}. |
| 5179 |
(RE_Id): Remove entry for RE_Address_Image and add entries for |
| 5180 |
RE_Address_Image{32,64}. |
| 5181 |
* rtsfind.adb (System_Descendant): Adjust to above changes. |
| 5182 |
* libgnat/a-tags.ads (Address_Array): Suppress initialization. |
| 5183 |
* libgnat/s-addima.adb (System.Address_Image): Call the appropriate |
| 5184 |
routine based on the address size. |
| 5185 |
* libgnat/s-imad32.ads: New file. |
| 5186 |
* libgnat/s-imad64.ads: Likewise. |
| 5187 |
* libgnat/s-imagea.ads: Likewise. |
| 5188 |
* libgnat/s-imagea.adb: Likewise. |
| 5189 |
* gcc-interface/Make-lang.in (GNAT_ADA_OBJS) [$(STAGE1)=False]: Add |
| 5190 |
ada/libgnat/s-imad32.o and ada/libgnat/s-imad64.o. |
| 5191 |
|
| 5192 |
2024-06-13 Yannick Moy <[email protected]> |
| 5193 |
|
| 5194 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Do not inline |
| 5195 |
when constant with address clause is found. |
| 5196 |
|
| 5197 |
2024-06-13 Ronan Desplanques <[email protected]> |
| 5198 |
|
| 5199 |
* gnatlink.adb (Gnatlink): Fix incorrect lower bound assumption. |
| 5200 |
(Is_Prefix): New function. |
| 5201 |
|
| 5202 |
2024-06-13 Steve Baird <[email protected]> |
| 5203 |
|
| 5204 |
* sem_ch7.adb |
| 5205 |
(Requires_Completion_In_Body): Modify the Comes_From_Source test so that |
| 5206 |
the implicit declaration of an inherited subprogram does not cause |
| 5207 |
an incorrect result of True. |
| 5208 |
|
| 5209 |
2024-06-13 Richard Kenner <[email protected]> |
| 5210 |
|
| 5211 |
* exp_ch6.adb (Expand_Ctrl_Function_Call): Inline if -gnatn in |
| 5212 |
CCG mode even if -O0. |
| 5213 |
|
| 5214 |
2024-06-13 Eric Botcazou <[email protected]> |
| 5215 |
|
| 5216 |
PR ada/114710 |
| 5217 |
* exp_util.adb (Find_Renamed_Object): Recurse if the renamed object |
| 5218 |
is itself a renaming. |
| 5219 |
|
| 5220 |
2024-06-13 Javier Miranda <[email protected]> |
| 5221 |
|
| 5222 |
* sem_attr.adb (Analyze_Attribute): Enhance support for |
| 5223 |
using 'Old with a prefix that references an overloaded |
| 5224 |
function that has no parameters; add missing support |
| 5225 |
for the use of 'Old within qualified expressions. |
| 5226 |
* sem_util.ads (Preanalyze_And_Resolve_Without_Errors): |
| 5227 |
New subprogram. |
| 5228 |
* sem_util.adb (Preanalyze_And_Resolve_Without_Errors): |
| 5229 |
New subprogram. |
| 5230 |
|
| 5231 |
2024-06-13 Piotr Trojanek <[email protected]> |
| 5232 |
|
| 5233 |
* layout.adb (Layout_Type): Use high-level wrapper routine. |
| 5234 |
* sem_ch13.adb (Inherit_Delayed_Rep_Aspects): Likewise. |
| 5235 |
* sem_ch3.adb (Analyze_Object_Declaration): Likewise. |
| 5236 |
|
| 5237 |
2024-06-13 Eric Botcazou <[email protected]> |
| 5238 |
|
| 5239 |
* libgnat/s-tsmona__linux.adb (Get): Move down descriptive comment. |
| 5240 |
* libgnat/s-tsmona__mingw.adb: Add with clause and use clause for |
| 5241 |
System.Storage_Elements. |
| 5242 |
(Get): Pass GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT in the call |
| 5243 |
to GetModuleHandleEx and remove the subsequent call to FreeLibrary. |
| 5244 |
Upon success, set Load_Addr to the base address of the module. |
| 5245 |
* libgnat/s-win32.ads (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS): Use |
| 5246 |
shorter literal. |
| 5247 |
(GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT): New constant. |
| 5248 |
|
| 5249 |
2024-06-13 Eric Botcazou <[email protected]> |
| 5250 |
|
| 5251 |
PR ada/114710 |
| 5252 |
* exp_ch7.adb (Build_Finalizer.Process_Declarations): Remove dead |
| 5253 |
code dealing with renamings. |
| 5254 |
* exp_util.ads (Is_Finalizable_Transient): Rename Rel_Node to N. |
| 5255 |
* exp_util.adb (Is_Finalizable_Transient): Likewise. |
| 5256 |
(Is_Aliased): Remove obsolete code dealing wih EWA nodes and only |
| 5257 |
consider renamings present in N itself. |
| 5258 |
(Requires_Cleanup_Actions): Remove dead code dealing with renamings. |
| 5259 |
|
| 5260 |
2024-06-13 Javier Miranda <[email protected]> |
| 5261 |
|
| 5262 |
* sem_ch13.adb (Analyze_One_Aspect): Set the applicable policy |
| 5263 |
of a type declaration when its aspect Dynamic_Predicate is |
| 5264 |
analyzed. |
| 5265 |
* sem_prag.adb (Handle_Dynamic_Predicate_Check): New subprogram |
| 5266 |
that enables or ignores dynamic predicate checks depending on |
| 5267 |
whether dynamic checks are enabled in the context where the |
| 5268 |
associated type declaration is defined; used in the analysis |
| 5269 |
of pragma check. In addition, for pragma Predicate, do not |
| 5270 |
disable it when the aspect was internally build as part of |
| 5271 |
processing a dynamic predicate aspect. |
| 5272 |
|
| 5273 |
2024-06-12 Alexandre Oliva <[email protected]> |
| 5274 |
|
| 5275 |
* gcc-interface/decl.cc (gnat_to_gnu_field): Use unpacked type |
| 5276 |
as the debug type for packed fields. |
| 5277 |
|
| 5278 |
2024-06-10 Eric Botcazou <[email protected]> |
| 5279 |
|
| 5280 |
* exp_ch4.adb (Expand_Nonbinary_Modular_Op): Create an explicit Mod |
| 5281 |
for additive operations if No_Implicit_Conditionals is in effect. |
| 5282 |
(Expand_Modular_Addition): Likewise. |
| 5283 |
(Expand_Modular_Subtraction): Likewise. |
| 5284 |
(Expand_Modular_Op): Always use an unsigned type obtained by calling |
| 5285 |
Small_Integer_Type_For on the required size. |
| 5286 |
|
| 5287 |
2024-06-10 Javier Miranda <[email protected]> |
| 5288 |
|
| 5289 |
* sem_ch6.adb (Might_Need_BIP_Task_Actuals): Add support |
| 5290 |
for access-to-subprogram parameter types. |
| 5291 |
* exp_ch6.adb (Add_Task_Actuals_To_Build_In_Place_Call): |
| 5292 |
Add dummy BIP parameters to access-to-subprogram types |
| 5293 |
that may reference a function that has BIP parameters. |
| 5294 |
|
| 5295 |
2024-06-10 Gary Dismukes <[email protected]> |
| 5296 |
|
| 5297 |
* sem_prag.adb (Set_Convention_From_Pragma): If the specified convention on |
| 5298 |
a record type is not C_Pass_By_Copy, then force the C_Pass_By_Copy flag to |
| 5299 |
False, to ensure that it's overridden. |
| 5300 |
|
| 5301 |
2024-06-10 Gary Dismukes <[email protected]> |
| 5302 |
|
| 5303 |
* sem_aggr.adb (Resolve_Iterated_Association): Change "not Present" |
| 5304 |
to "No" in test of Add_Named_Subp. |
| 5305 |
|
| 5306 |
2024-06-10 Steve Baird <[email protected]> |
| 5307 |
|
| 5308 |
* freeze.adb |
| 5309 |
(Should_Freeze_Type.Is_Dispatching_Call_Or_Aggregate): Treat an extension |
| 5310 |
aggregate or a delta aggregate like a regular aggregate. |
| 5311 |
|
| 5312 |
2024-06-10 Gary Dismukes <[email protected]> |
| 5313 |
|
| 5314 |
* sem_aggr.adb (Resolve_Iterated_Association): In the case of |
| 5315 |
N_Iterated_Element_Associations that have a key expression, issue |
| 5316 |
an error if the aggregate type does not have an Add_Named |
| 5317 |
operation, and include a reference to RM22 4.3.5(24) in the error |
| 5318 |
message. In the case of an N_Component_Association with a |
| 5319 |
Defining_Identifer where the "choice" is given by a function call, |
| 5320 |
in the creation of the iterator_specification associate a copy of |
| 5321 |
Choice as its Name, and remove the call to |
| 5322 |
Analyze_Iterator_Specification, which was causing problems with |
| 5323 |
the reanalysis of function calls originally given in prefixed form |
| 5324 |
that were transformed into function calls in normal (infix) form. |
| 5325 |
The iterator_specification will be analyzed later in any case, so |
| 5326 |
that call should not be done here. Remove the with and use of |
| 5327 |
Sem_Ch5. |
| 5328 |
|
| 5329 |
2024-06-10 Justin Squirek <[email protected]> |
| 5330 |
|
| 5331 |
* ali.adb (Get_Nat): Remove unnecessary parentheses. |
| 5332 |
* exp_ch11.adb (Expand_Local_Exception_Handlers): Remove |
| 5333 |
unnecessary parentheses. |
| 5334 |
* freeze.adb (Freeze_Entity): Remove unnecessary parentheses. |
| 5335 |
* lib-list.adb (List): Remove unnecessary parentheses. |
| 5336 |
* par-ch5.adb (P_Condition): Add extra parentheses checks on |
| 5337 |
condition operands. |
| 5338 |
* sem_ch3.adb (Add_Interface_Tag_Components): Remove unnecessary |
| 5339 |
parentheses. |
| 5340 |
(Check_Delta_Expression): Remove unnecessary parenthesis. |
| 5341 |
(Check_Digits_Expression): Remove unnecessary parentheses. |
| 5342 |
* sem_ch12.adb (Validate_Array_Type_Instance): Remove unnecessary |
| 5343 |
parentheses. |
| 5344 |
|
| 5345 |
2024-06-10 Justin Squirek <[email protected]> |
| 5346 |
|
| 5347 |
* exp_ch5.adb (Expand_Formal_Container_Element_Loop): Add |
| 5348 |
expansion of filter condition. |
| 5349 |
(Expand_Formal_Container_Loop): Add expansion of filter condition. |
| 5350 |
|
| 5351 |
2024-06-10 Justin Squirek <[email protected]> |
| 5352 |
|
| 5353 |
* accessibility.adb (Accessibility_Level): Use Get_Full_View to |
| 5354 |
avoid crashes when calculating scope. |
| 5355 |
|
| 5356 |
2024-06-10 Justin Squirek <[email protected]> |
| 5357 |
|
| 5358 |
* sem_warn.adb (Warn_On_Unreferenced_Entity): Add a condition to |
| 5359 |
ignore warnings on unreferenced abstract subprogram. |
| 5360 |
|
| 5361 |
2024-06-10 Justin Squirek <[email protected]> |
| 5362 |
|
| 5363 |
* sem_attr.adb (Analyze_Attribute): Add check for interface parent |
| 5364 |
types. |
| 5365 |
|
| 5366 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5367 |
|
| 5368 |
* einfo.ads, exp_attr.adb, exp_ch4.adb, exp_ch7.adb, |
| 5369 |
lib-writ.adb, libgnat/a-stbuut.ads, sem_ch13.adb, sem_ch3.adb, |
| 5370 |
sem_ch7.adb: Use "RM" in comments. |
| 5371 |
|
| 5372 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5373 |
|
| 5374 |
* sem_util.adb |
| 5375 |
(Immediate_Context_Implies_Is_Potentially_Unevaluated): Use |
| 5376 |
collective subtypes in membership tests. |
| 5377 |
(Is_Known_On_Entry): Require all alternatives in a case statement |
| 5378 |
to return; this change could prevent a recently fixed glitch, |
| 5379 |
where one of the alternatives relied on the return statement |
| 5380 |
afterwards (also, the new code is shorter). |
| 5381 |
* sem_util.ads (Is_Potentially_Unevaluated): Clarify that this |
| 5382 |
routine applies to Ada 2012. |
| 5383 |
|
| 5384 |
2024-06-10 Yannick Moy <[email protected]> |
| 5385 |
|
| 5386 |
* libgnat/a-chtgfo.adb (Generic_Read, Generic_Write): Remove. |
| 5387 |
* libgnat/a-chtgfo.ads: Same. Remove dependency on Ada.Streams. |
| 5388 |
|
| 5389 |
2024-06-10 Ronan Desplanques <[email protected]> |
| 5390 |
|
| 5391 |
* libgnarl/s-taprop__mingw.adb (Set_Task_Affinity): Fix usage of |
| 5392 |
SetThreadAffinityMask. |
| 5393 |
* libgnat/s-winext.ads (SetThreadAffinityMask): Fix binding |
| 5394 |
signature. |
| 5395 |
|
| 5396 |
2024-06-10 Ronan Desplanques <[email protected]> |
| 5397 |
|
| 5398 |
* libgnarl/s-taprop__mingw.adb (Set_Task_Affinity): Fix usage |
| 5399 |
of SetThreadIdealProcessor. |
| 5400 |
|
| 5401 |
2024-06-10 Ronan Desplanques <[email protected]> |
| 5402 |
|
| 5403 |
* libgnat/s-os_lib.adb (Normalize_Pathname): Remove incorrect |
| 5404 |
assert statement. |
| 5405 |
(Missed_Drive_Letter): Rename into... |
| 5406 |
(Drive_Letter_Omitted): This. |
| 5407 |
|
| 5408 |
2024-06-10 Ronan Desplanques <[email protected]> |
| 5409 |
|
| 5410 |
* gnatlink.adb (Check_File_Name): Fix incorrect assumption. |
| 5411 |
|
| 5412 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5413 |
|
| 5414 |
* exp_attr.adb (Expand_N_Attribute_Reference): Use constants |
| 5415 |
declared at the beginning of subprogram; tune layout. |
| 5416 |
* exp_ch3.adb (Predefined_Primitive_Bodies): Tune layout. |
| 5417 |
|
| 5418 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5419 |
|
| 5420 |
* doc/gnat_rm/implementation_defined_pragmas.rst |
| 5421 |
(No_Tagged_Streams): Move documentation. |
| 5422 |
* doc/gnat_rm/standard_and_implementation_defined_restrictions.rst |
| 5423 |
(No_Streams): Likewise. |
| 5424 |
* exp_disp.adb (Make_DT): Extend comment. |
| 5425 |
* gnat_rm.texi: Regenerate. |
| 5426 |
* gnat_ugn.texi: Regenerate. |
| 5427 |
|
| 5428 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5429 |
|
| 5430 |
* sem_attr.adb (Analyze_Attribute): Use fully qualified name |
| 5431 |
without a NUL, so that it doesn't need to be skipped afterwards. |
| 5432 |
|
| 5433 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5434 |
|
| 5435 |
* exp_ch3.adb (Stream_Operation_OK): Check restriction |
| 5436 |
No_Default_Stream_Attributes before call to |
| 5437 |
Type_Without_Stream_Operation. |
| 5438 |
* sem_util.adb (Type_Without_Stream_Operation): Remove static |
| 5439 |
condition from recursive routine |
| 5440 |
|
| 5441 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5442 |
|
| 5443 |
* inline.adb (Has_Single_Return_In_GNATprove_Mode): Remove. |
| 5444 |
(Process_Formals): When rewriting an occurrence of a formal |
| 5445 |
parameter, use location of the occurrence, not of the inlined |
| 5446 |
call. |
| 5447 |
|
| 5448 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5449 |
|
| 5450 |
* debug.adb (d_k): Use first available debug switch. |
| 5451 |
* gnat1drv.adb (Adjust_Global_Switches): If new debug switch is |
| 5452 |
active then don't expand assertion expressions by default. |
| 5453 |
|
| 5454 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5455 |
|
| 5456 |
* exp_ch6.adb (Install_Class_Preconditions_Check): Refactor |
| 5457 |
common code for checking if precondition fails, since the |
| 5458 |
difference is only in raising an exception or calling the |
| 5459 |
Raise_Assert_Failure procedure. |
| 5460 |
|
| 5461 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5462 |
|
| 5463 |
* exp_ch6.adb (Build_Dynamic_Check_Helper_Call): Remove unused |
| 5464 |
iteration over formal parameters. |
| 5465 |
|
| 5466 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5467 |
|
| 5468 |
* sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Make |
| 5469 |
discriminants visible when analyzing aspect Interrupt_Priority. |
| 5470 |
(Freeze_Entity_Checks): Likewise. |
| 5471 |
(Resolve_Aspect_Expressions): Likewise for both aspects CPU and |
| 5472 |
Interrupt_Priority. |
| 5473 |
|
| 5474 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5475 |
|
| 5476 |
* sem_prag.adb (Report_Extra_Clauses): Remove redundant check |
| 5477 |
for empty list, because First works also for No_List. |
| 5478 |
|
| 5479 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5480 |
|
| 5481 |
* sem_prag.adb (Check_Dependency_Clause, Check_Output_States, |
| 5482 |
Report_Extra_Clauses): Remove multiple checks for being inside |
| 5483 |
an instance. |
| 5484 |
(Analyze_Refined_Depends_In_Decl_Part): Add single check for |
| 5485 |
being inside an instance. |
| 5486 |
|
| 5487 |
2024-06-10 Piotr Trojanek <[email protected]> |
| 5488 |
|
| 5489 |
* sem_prag.adb (Check_In_Out_States, Check_Input_States, |
| 5490 |
Check_Output_States, Check_Proof_In_States, |
| 5491 |
Check_Refined_Global_List, Report_Extra_Constituents, |
| 5492 |
Report_Missing_Items): Remove multiple checks for being inside |
| 5493 |
an instance. |
| 5494 |
(Analyze_Refined_Global_In_Decl_Part): Add single check for |
| 5495 |
being inside an instance. |
| 5496 |
|
| 5497 |
2024-06-05 Kewen Lin <[email protected]> |
| 5498 |
|
| 5499 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Use TYPE_PRECISION of |
| 5500 |
long_double_type_node to replace LONG_DOUBLE_TYPE_SIZE. |
| 5501 |
|
| 5502 |
2024-05-29 Eric Botcazou <[email protected]> |
| 5503 |
|
| 5504 |
PR ada/115270 |
| 5505 |
* Makefile.rtl (PowerPC/Linux): Use libgnat/s-atopri__32.ads for |
| 5506 |
the 32-bit library. |
| 5507 |
(SPARC/Linux): Likewise. |
| 5508 |
|
| 5509 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5510 |
|
| 5511 |
PR ada/115168 |
| 5512 |
* libgnarl/s-taprop__solaris.adb (Initialize): Fix pasto. |
| 5513 |
* libgnat/s-oslock__solaris.ads (Owner_Int): Delete. |
| 5514 |
(Owner_ID): Change the designated type to Integer. |
| 5515 |
|
| 5516 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5517 |
|
| 5518 |
* gcc-interface/utils2.cc (nonbinary_modular_operation): Rewrite. |
| 5519 |
Do not create signed types for subtraction, do not create types with |
| 5520 |
partial precision, call fold_convert instead of convert throughout. |
| 5521 |
|
| 5522 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5523 |
|
| 5524 |
* gcc-interface/decl.cc (gnat_to_gnu_entity): Use the Is_Base_Type |
| 5525 |
predicate and remove superfluous calls to Base_Type. |
| 5526 |
|
| 5527 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5528 |
|
| 5529 |
* gcc-interface/utils2.cc (gnat_protect_expr): Deal specifically |
| 5530 |
with atomic loads. Document the relationship with gnat_save_expr. |
| 5531 |
|
| 5532 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5533 |
|
| 5534 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Type>: For a |
| 5535 |
packed type implemented specially, temporarily save the XUA type as |
| 5536 |
equivalent to the entity before processing the implementation type. |
| 5537 |
For this implementation type, if its component type is the same as |
| 5538 |
that of the original type, copy the alias set from the latter. |
| 5539 |
<types>: Resort to universal aliasing for all interface types. |
| 5540 |
* gcc-interface/trans.cc (Call_to_gnu): Add GNU_ACTUAL_TYPE local |
| 5541 |
variable and rename existing one to GNU_UNPADDED_ACTUAL_TYPE. |
| 5542 |
If the formal is passed by reference and the actual is a conversion, |
| 5543 |
call aliasable_p to detect aliasing violations, issue a warning upon |
| 5544 |
finding one and create the temporary in the target type. |
| 5545 |
Add an assertion that no such violation has been missed above. |
| 5546 |
(addressable_p): Revert latest changes. |
| 5547 |
(aliasable_p): New predicate. |
| 5548 |
* gcc-interface/utils2.cc (build_binary_op) <ARRAY_RANGE_REF>: When |
| 5549 |
creating a new array type on the fly, preserve the alias set of the |
| 5550 |
operation type. |
| 5551 |
|
| 5552 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5553 |
|
| 5554 |
* gcc-interface/trans.cc (gnat_to_gnu) <N_Simple_Return_Statement>: |
| 5555 |
In the return-by-invisible-reference case, remove conversions before |
| 5556 |
looking for a dereference in the return values and building the test |
| 5557 |
protecting against a useless copy operation. |
| 5558 |
|
| 5559 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5560 |
|
| 5561 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Type>: Set |
| 5562 |
TYPE_TYPELESS_STORAGE on the array types if Universal_Aliasing is |
| 5563 |
set on the type or its component type. |
| 5564 |
<E_Array_Subtype>: Likewise. |
| 5565 |
For other aggregate types, set TYPE_TYPELESS_STORAGE in this case. |
| 5566 |
(set_typeless_storage_on_aggregate_type): New function. |
| 5567 |
(set_universal_aliasing_on_type): Likewise. |
| 5568 |
* gcc-interface/trans.cc (Call_to_gnu): Add const to local variable. |
| 5569 |
Adjust comment. Pass GNAT_NAME in the call to addressable_p and add |
| 5570 |
a bypass for atomic types in case it returns false. |
| 5571 |
(addressable_p): Add GNAT_EXPR third parameter with default value |
| 5572 |
and add a default value to the existing second parameter. |
| 5573 |
<VIEW_CONVERT_EXPR:>: Return false if the expression comes from a |
| 5574 |
function call and if the alias sets of source and target types are |
| 5575 |
both distinct from zero and each other. |
| 5576 |
|
| 5577 |
2024-05-21 Ronan Desplanques <[email protected]> |
| 5578 |
|
| 5579 |
* gcc-interface/utils2.cc (build_cond_expr): Also apply an |
| 5580 |
indirection when the result type is variable-sized. |
| 5581 |
|
| 5582 |
2024-05-21 Marc Poulhiès <[email protected]> |
| 5583 |
|
| 5584 |
* gcc-interface/decl.cc: Fix typo in comment. |
| 5585 |
|
| 5586 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5587 |
|
| 5588 |
* gcc-interface/utils2.cc (build_call_alloc_dealloc_proc): Add an |
| 5589 |
assertion that this is not a deallocation of the return or secondary |
| 5590 |
stack and remove subsequent unreachable code. |
| 5591 |
|
| 5592 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5593 |
|
| 5594 |
* gcc-interface/utils2.cc (build_cond_expr): Use the indirect path |
| 5595 |
for all types containing a placeholder. |
| 5596 |
|
| 5597 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5598 |
|
| 5599 |
* gcc-interface/Make-lang.in (GNATBIND_OBJS): Remove unused |
| 5600 |
dependencies. |
| 5601 |
|
| 5602 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5603 |
|
| 5604 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: Give a |
| 5605 |
warning for a statically allocated object whose size is constant, |
| 5606 |
valid but too large. |
| 5607 |
(allocatable_size_p): In the static case, return false for a size |
| 5608 |
that is constant, valid but too large. |
| 5609 |
|
| 5610 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5611 |
|
| 5612 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Variable>: For an |
| 5613 |
array allocated with its bounds, make sure to have an array type |
| 5614 |
to build the template. |
| 5615 |
|
| 5616 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5617 |
|
| 5618 |
* gcc-interface/trans.cc (access_attribute_p): New predicate. |
| 5619 |
(lvalue_required_for_attribute_p): Return again 1 for Size and add |
| 5620 |
the missing terminating call to gcc_unreachable. |
| 5621 |
(gnat_to_gnu): Return the result unmodified for a reference to an |
| 5622 |
unconstrained array only if it is the prefix of an access attribute. |
| 5623 |
|
| 5624 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5625 |
|
| 5626 |
* gcc-interface/utils.cc (relate_alias_sets): Restore previous code |
| 5627 |
when the type uses structural equality. |
| 5628 |
|
| 5629 |
2024-05-21 Steve Baird <[email protected]> |
| 5630 |
|
| 5631 |
* exp_util.adb (Remove_Side_Effects): Make_Reference assumes that |
| 5632 |
the referenced object satisfies the constraints of the designated |
| 5633 |
subtype of the access type. Ensure that this assumption holds by |
| 5634 |
introducing a qualified expression if needed (and then ensuring |
| 5635 |
that checking associated with evaluation of the qualified |
| 5636 |
expression is not suppressed). |
| 5637 |
|
| 5638 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5639 |
|
| 5640 |
* aspects.ads (Nonoverridable_Aspect_Id): Fix layout. |
| 5641 |
|
| 5642 |
2024-05-21 Ronan Desplanques <[email protected]> |
| 5643 |
|
| 5644 |
* frontend.adb (Frontend): Remove duplicate statement. |
| 5645 |
|
| 5646 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5647 |
|
| 5648 |
* sem_ch13.adb (Validate_Unchecked_Conversion): Restrict forcing the |
| 5649 |
Can_Use_Internal_Rep flag to platforms that require unnesting. |
| 5650 |
|
| 5651 |
2024-05-21 Viljar Indus <[email protected]> |
| 5652 |
|
| 5653 |
* sem_elab.adb: Add missing elaboration insertion |
| 5654 |
characters to info messages. |
| 5655 |
|
| 5656 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5657 |
|
| 5658 |
* inline.adb (Add_Scope_To_Clean): Use Append_Unique_Elmt. |
| 5659 |
(Analyze_Inlined_Bodies): Refine type of a local counter; |
| 5660 |
remove extra whitespace. |
| 5661 |
|
| 5662 |
2024-05-21 Ronan Desplanques <[email protected]> |
| 5663 |
|
| 5664 |
* libgnarl/s-taenca.adb (Wait_For_Completion): Remove call to |
| 5665 |
Yield. |
| 5666 |
* libgnarl/s-tasren.adb (Timed_Selective_Wait, Wait_For_Call): |
| 5667 |
Remove calls to Yield. |
| 5668 |
|
| 5669 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5670 |
|
| 5671 |
* doc/gnat_rm/implementation_of_ada_2012_features.rst: |
| 5672 |
Fix formatting. |
| 5673 |
* gnat_rm.texi: Regenerate. |
| 5674 |
|
| 5675 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5676 |
|
| 5677 |
* doc/gnat_rm/implementation_of_ada_2012_features.rst: |
| 5678 |
Order list by AI number. |
| 5679 |
* gnat_rm.texi: Regenerate. |
| 5680 |
|
| 5681 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5682 |
|
| 5683 |
* doc/gnat_rm/implementation_of_ada_2012_features.rst |
| 5684 |
(AI-0216): Fix index reference. |
| 5685 |
* gnat_rm.texi: Regenerate. |
| 5686 |
|
| 5687 |
2024-05-21 Viljar Indus <[email protected]> |
| 5688 |
|
| 5689 |
* doc/gnat_ugn/building_executable_programs_with_gnat.rst: |
| 5690 |
Update the documentation of -gnatw.n and -gnatw.l |
| 5691 |
* gnat_ugn.texi: Regenerate. |
| 5692 |
|
| 5693 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5694 |
|
| 5695 |
* doc/gnat_rm/implementation_defined_pragmas.rst |
| 5696 |
(No_Tagged_Streams): Document how to avoid exposing entity names |
| 5697 |
for the entire partition. |
| 5698 |
* exp_disp.adb (Make_DT): Make use of restriction No_Streams. |
| 5699 |
* exp_put_image.adb (Build_Record_Put_Image_Procedure): Respect |
| 5700 |
Discard_Names in the generated Put_Image procedure. |
| 5701 |
* gnat_rm.texi: Regenerate. |
| 5702 |
|
| 5703 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5704 |
|
| 5705 |
* exp_put_image.adb (Build_Record_Put_Image_Procedure): Remove |
| 5706 |
useless conversions. |
| 5707 |
|
| 5708 |
2024-05-21 Piotr Trojanek <[email protected]> |
| 5709 |
|
| 5710 |
* exp_put_image.adb (Build_Record_Put_Image_Procedure): Remove |
| 5711 |
trailing NUL from the fully qualified type name. |
| 5712 |
|
| 5713 |
2024-05-21 Eric Botcazou <[email protected]> |
| 5714 |
|
| 5715 |
* err_vars.ads (Error_Msg_Sloc): Initialize to No_Location. |
| 5716 |
|
| 5717 |
2024-05-21 Justin Squirek <[email protected]> |
| 5718 |
|
| 5719 |
* doc/gnat_ugn/platform_specific_information.rst: Add note about |
| 5720 |
different priority level granularities under different policies in |
| 5721 |
Windows and move POSIX related info into new section. |
| 5722 |
* libgnarl/s-taprop.ads: Add note about Task_Dispatching_Policy. |
| 5723 |
* libgnarl/s-taprop__mingw.adb: |
| 5724 |
(Set_Priority): Add use of Non_FIFO_Underlying_Priorities. |
| 5725 |
* libgnat/system-mingw.ads: Add documentation for modifying |
| 5726 |
priority mappings and add alternative mapping |
| 5727 |
Non_FIFO_Underlying_Priorities. |
| 5728 |
* gnat_ugn.texi: Regenerate. |
| 5729 |
|
| 5730 |
2024-05-20 Bob Duff <[email protected]> |
| 5731 |
|
| 5732 |
* sem_ch12.adb: Misc cleanups and comment fixes. |
| 5733 |
(Check_Overloaded_Formal_Subprogram): Remove the Others_Choice |
| 5734 |
error message. |
| 5735 |
(Others_Choice): Remove this variable; no longer needed. |
| 5736 |
* types.ads (Text_Ptr): Add a range constraint limiting the |
| 5737 |
subtype to values that are actually used. This has the advantage |
| 5738 |
that when the compiler is compiled with validity checks, |
| 5739 |
uninitialized values of subtypes Text_Ptr and Source_Ptr will be |
| 5740 |
caught. |
| 5741 |
* sinput.ads (Sloc_Adjust): Use the base subtype; this is used as |
| 5742 |
an offset, so we need to allow arbitrary negative values. |
| 5743 |
|
| 5744 |
2024-05-20 Eric Botcazou <[email protected]> |
| 5745 |
|
| 5746 |
* exp_ch7.ads (Preload_Finalization_Collection): Delete. |
| 5747 |
* exp_ch7.adb (Allows_Finalization_Collection): Revert change. |
| 5748 |
(Preload_Finalization_Collection): Delete. |
| 5749 |
* opt.ads (Interface_Seen): Likewise. |
| 5750 |
* scng.adb (Scan): Revert latest change. |
| 5751 |
* sem_ch10.adb: Remove clause for Exp_Ch7. |
| 5752 |
(Analyze_Compilation_Unit): Revert latest change. |
| 5753 |
* libgnat/i-c.ads: Use a fully qualified name for the standard "+" |
| 5754 |
operator in the preconditons/postconditions of subprograms. |
| 5755 |
|
| 5756 |
2024-05-20 Eric Botcazou <[email protected]> |
| 5757 |
|
| 5758 |
* exp_aggr.adb (Expand_Record_Aggregate.Component_OK_For_Backend): |
| 5759 |
Also return False for a delayed conditional expression. |
| 5760 |
|
| 5761 |
2024-05-20 Eric Botcazou <[email protected]> |
| 5762 |
|
| 5763 |
* freeze.ads (Check_Compile_Time_Size): Remove obsolete description |
| 5764 |
of usage for the Size_Known_At_Compile_Time flag. |
| 5765 |
* freeze.adb (Check_Compile_Time_Size.Size_Known): In the case where |
| 5766 |
a variant part is present, do not return False if Esize is known. |
| 5767 |
* sem_util.adb (Needs_Secondary_Stack.Caller_Known_Size_Record): Add |
| 5768 |
missing "Start of processing" comment. Return true if either a size |
| 5769 |
clause or an object size clause has been given for the first subtype |
| 5770 |
of the type. |
| 5771 |
|
| 5772 |
2024-05-20 Bob Duff <[email protected]> |
| 5773 |
|
| 5774 |
* sinfo.ads: Misc comment corrections and clarifications. |
| 5775 |
The syntax for GENERIC_ASSOCIATION and FORMAL_PACKAGE_ACTUAL_PART |
| 5776 |
was wrong. |
| 5777 |
Emphasize that "others => <>" is not represented as an |
| 5778 |
N_Generic_Association (with or without Box_Present set), |
| 5779 |
and give examples illustrating the various possibilities. |
| 5780 |
|
| 5781 |
2024-05-20 Eric Botcazou <[email protected]> |
| 5782 |
|
| 5783 |
* einfo-utils.ads (Is_Base_Type): Move to Miscellaneous Subprograms |
| 5784 |
section and add description. |
| 5785 |
* fe.h (Is_Base_Type): Declare. |
| 5786 |
|
| 5787 |
2024-05-20 Gary Dismukes <[email protected]> |
| 5788 |
|
| 5789 |
* sem_aggr.adb (Resolve_Aggregate): Move condition and call for |
| 5790 |
Resolve_Record_Aggregate in front of code related to calling |
| 5791 |
Resolve_Container_Aggregate (and add test that the aggregate is |
| 5792 |
not homogeneous), and remove special-case testing and call to |
| 5793 |
Resolve_Container_Aggregate for empty aggregates. Also, add error |
| 5794 |
check for an attempt to use "[]" for an aggregate of a record type |
| 5795 |
that does not specify an Aggregate aspect. |
| 5796 |
(Resolve_Record_Aggregate): Remove error check for record |
| 5797 |
aggregates with "[]" (now done by Resolve_Aggregate). |
| 5798 |
|
| 5799 |
2024-05-20 Gary Dismukes <[email protected]> |
| 5800 |
|
| 5801 |
* sem_aggr.adb (Resolve_Aggregate): Move condition and call for |
| 5802 |
Resolve_Record_Aggregate in front of code related to calling |
| 5803 |
Resolve_Container_Aggregate (and add test that the aggregate |
| 5804 |
is not homogeneous), and remove special-case testing and call |
| 5805 |
to Resolve_Container_Aggregate for empty aggregates. |
| 5806 |
|
| 5807 |
2024-05-20 Justin Squirek <[email protected]> |
| 5808 |
|
| 5809 |
* accessibility.adb (Accessibility_Level): Add cases for 'First |
| 5810 |
and 'Last. |
| 5811 |
|
| 5812 |
2024-05-20 Justin Squirek <[email protected]> |
| 5813 |
|
| 5814 |
* sem_attr.adb (Analyze_Attribute): Remove restriction on 'Super |
| 5815 |
for abstract types. |
| 5816 |
|
| 5817 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 5818 |
|
| 5819 |
* sem_attr.ads (Attribute_Impl_Def): Fix list of |
| 5820 |
implementation-defined attributes. |
| 5821 |
|
| 5822 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 5823 |
|
| 5824 |
* sem_attr.adb (Attribute_12): Add attributes Old, |
| 5825 |
Overlaps_Storage and Result. |
| 5826 |
|
| 5827 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 5828 |
|
| 5829 |
* sem_attr.adb (Analyze_Attribute): Move IF statement that |
| 5830 |
checks restriction No_Implementation_Attributes for Ada 2005, |
| 5831 |
2012 and Ada 2022 attributes inside Comes_From_Source condition |
| 5832 |
that checks the same restriction for Ada 83 attributes. |
| 5833 |
|
| 5834 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 5835 |
|
| 5836 |
* sem_attr.adb (Analyze_Attribute): Remove condition that is |
| 5837 |
already checked by an enclosing IF statement. |
| 5838 |
|
| 5839 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 5840 |
|
| 5841 |
* sem_attr.ads (Universal_Type_Attribute): Simplify using |
| 5842 |
array aggregate syntax with discrete choice list. |
| 5843 |
|
| 5844 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 5845 |
|
| 5846 |
* sem_attr.ads (Attribute_Impl_Def): Fix style in comment. |
| 5847 |
|
| 5848 |
2024-05-20 Ronan Desplanques <[email protected]> |
| 5849 |
|
| 5850 |
* libgnarl/s-taprop__linux.adb (Enter_Task): Move setting |
| 5851 |
of thread ID out of Enter_Task. |
| 5852 |
(Initialize): Set thread ID for the environment task. |
| 5853 |
(Create_Task): Remove now unnecessary Unrestricted_Access |
| 5854 |
attribute and add justification for a memory write. |
| 5855 |
* libgnarl/s-taprop__posix.adb: Likewise. |
| 5856 |
* libgnarl/s-taprop__qnx.adb: Likewise. |
| 5857 |
* libgnarl/s-taprop__rtems.adb: Likewise. |
| 5858 |
* libgnarl/s-taprop__solaris.adb: Likewise. |
| 5859 |
* libgnarl/s-taspri__posix.ads: Remove pragma Atomic for |
| 5860 |
Private_Data.Thread, and update documentation comment. |
| 5861 |
* libgnarl/s-taspri__lynxos.ads: Likewise. |
| 5862 |
* libgnarl/s-taspri__posix-noaltstack.ads: Likewise. |
| 5863 |
* libgnarl/s-taspri__solaris.ads: Likewise. |
| 5864 |
* libgnarl/s-tporft.adb (Register_Foreign_Thread): Adapt to |
| 5865 |
Enter_Task not setting the thread ID anymore. |
| 5866 |
* libgnarl/s-tassta.adb (Task_Wrapper): Update comment. |
| 5867 |
|
| 5868 |
2024-05-20 Eric Botcazou <[email protected]> |
| 5869 |
|
| 5870 |
* exp_aggr.ads (Is_Delayed_Conditional_Expression): New predicate. |
| 5871 |
* exp_aggr.adb (Convert_To_Assignments.Known_Size): Likewise. |
| 5872 |
(Convert_To_Assignments): Climb the parent chain, looking through |
| 5873 |
qualified expressions and dependent expressions of conditional |
| 5874 |
expressions, to find out whether the expansion may be delayed. |
| 5875 |
Call Known_Size for this in the case of an object declaration. |
| 5876 |
If so, set Expansion_Delayed on the aggregate as well as all the |
| 5877 |
intermediate conditional expressions. |
| 5878 |
(Initialize_Component): Reset the Analyzed flag on an initialization |
| 5879 |
expression that is a conditional expression whose expansion has been |
| 5880 |
delayed. |
| 5881 |
(Is_Delayed_Conditional_Expression): New predicate. |
| 5882 |
* exp_ch3.adb (Expand_N_Object_Declaration): Handle initialization |
| 5883 |
expressions that are conditional expressions whose expansion has |
| 5884 |
been delayed. |
| 5885 |
* exp_ch4.adb (Build_Explicit_Assignment): New procedure. |
| 5886 |
(Expand_Allocator_Expression): Handle initialization expressions |
| 5887 |
that are conditional expressions whose expansion has been delayed. |
| 5888 |
(Expand_N_Case_Expression): Deal with expressions whose expansion |
| 5889 |
has been delayed by waiting for the rewriting of their parent as |
| 5890 |
an assignment statement and then optimizing the assignment. |
| 5891 |
(Expand_N_If_Expression): Likewise. |
| 5892 |
(Expand_N_Qualified_Expression): Do not apply a predicate check to |
| 5893 |
an operand that is a delayed aggregate or conditional expression. |
| 5894 |
* gen_il-gen-gen_nodes.adb (N_If_Expression): Add Expansion_Delayed |
| 5895 |
semantic flag. |
| 5896 |
(N_Case_Expression): Likewise. |
| 5897 |
* sinfo.ads (Expansion_Delayed): Document extended usage. |
| 5898 |
|
| 5899 |
2024-05-20 Gary Dismukes <[email protected]> |
| 5900 |
|
| 5901 |
* exp_aggr.adb (Expand_Container_Aggregate): Add top-level |
| 5902 |
variables Choice_{Lo|Hi} and Int_Choice_{Lo|Hi} used for |
| 5903 |
determining the low and high bounds of component association |
| 5904 |
choices. Replace code for determining whether we have an indexed |
| 5905 |
aggregate with call to new function Sem_Aggr.Is_Indexed_Aggregate. |
| 5906 |
Remove test of whether Empty_Subp is a function, since it must be |
| 5907 |
a function. Move Default and Count_Type to be locals of a new |
| 5908 |
block enclosing the code that creates the object to hold the |
| 5909 |
aggregate length, and set them according to the default and type |
| 5910 |
of the Empty function's parameter when present (and to Empty and |
| 5911 |
Standard_Natural otherwise). Use Siz_Exp for the aggregate length |
| 5912 |
when set, and use Empty's default length when available, and use |
| 5913 |
zero for the length otherwise. In generating the call to the |
| 5914 |
New_Indexed function, use the determined lower and upper bounds if |
| 5915 |
determined earlier by Aggregate_Size, and otherwise compute those |
| 5916 |
from the index type's lower bound and the determined aggregate |
| 5917 |
length. In the case where a call to Empty is generated and the |
| 5918 |
function has a formal parameter, pass the value saved in Siz_Decl |
| 5919 |
(otherwise the parameter list is empty). Remove code specific to |
| 5920 |
making a parameterless call to the Empty function. Extend the code |
| 5921 |
for handling positional container aggregates to account for types |
| 5922 |
that define Assign_Indexed, rather than just Add_Unnamed, and in |
| 5923 |
the case of indexed aggregates, create a temporary object to hold |
| 5924 |
values of the aggregate's key index, and initialize and increment |
| 5925 |
that temporary for each call generated to the Assign_Indexed |
| 5926 |
procedure. For named container aggregates that have key choices |
| 5927 |
given by ranges, call Expand_Range_Component to generate a loop |
| 5928 |
that will call the appropriate insertion procedure for each value |
| 5929 |
of the range. For indexed aggregates with a Component_Associations |
| 5930 |
list, set and use the Assign_Indexed procedure for each component |
| 5931 |
association, whether or not there's an iterator specification. |
| 5932 |
(Add_Range_Size): Add code to determine the low and high bounds of |
| 5933 |
the range and capture those in up-level variables when their value |
| 5934 |
is less than or greater than (respectively) the current minimum |
| 5935 |
and maximum bounds values. |
| 5936 |
(Aggregate_Size): Separately handle the case where a single choice |
| 5937 |
is of a discrete type, and call Add_Range_Size to take its value |
| 5938 |
into consideration for determination of min and max bounds of the |
| 5939 |
aggregate. Add comments in a couple of places. |
| 5940 |
(Build_Siz_Exp): Remove the last sentence and "???" from the |
| 5941 |
comment that talks about accumulating nonstatic sizes, since that |
| 5942 |
sentence seems to be obsolete. Record the low and high bound |
| 5943 |
values in Choice_Lo and Choice_Hi in the case of a nonstatic |
| 5944 |
range. |
| 5945 |
(Expand_Iterated_Component): Set the Defining_Identifier of the |
| 5946 |
iterator specification to the Loop_Id in the |
| 5947 |
N_Iterated_Component_Association case. |
| 5948 |
(Expand_Range_Component): Procedure unnested from the block |
| 5949 |
handling indexed aggregates in Expand_Container_Aggregate, and |
| 5950 |
moved to top level of that procedure so it can also be called for |
| 5951 |
Add_Named cases. A formal parameter Insert_Op is added, and |
| 5952 |
existing calls to this procedure are changed to pass the |
| 5953 |
appropriate insertion procedure's Entity. |
| 5954 |
* sem_aggr.ads: Add with_clause for Sinfo.Nodes. |
| 5955 |
(Is_Indexed_Aggregate): New function for use by |
| 5956 |
Resolve_Container_Aggregate and Expand_Container_Aggregate. |
| 5957 |
* sem_aggr.adb: Add with_clause for Sem_Ch5. Move with_clause for |
| 5958 |
Sinfo.Nodes to sem_aggr.ads. |
| 5959 |
(Is_Indexed_Aggregate): New function to determine whether a |
| 5960 |
container aggregate is a container aggregate (replacing local |
| 5961 |
variable of the same name in Resolve_Container_Aggregate). |
| 5962 |
(Resolve_Iterated_Association): Remove part of comment saying that |
| 5963 |
a Key_Expression is always present. Set Parent field of the copy |
| 5964 |
of a component association with a loop parameter specification. On |
| 5965 |
the setting of Loop_Param_Id, account for a |
| 5966 |
Loop_Parameter_Specification being changed into an |
| 5967 |
Iterator_Specification as a result of being analyzed. Only call |
| 5968 |
Preanalyze_And_Resolve on Key_Expr when a key expression is |
| 5969 |
actually present. Remove loop for handling choices for the case of |
| 5970 |
an N_Component_Association with a Defining_Identifier (there |
| 5971 |
shouldn't be more than one choice in this case, and add an |
| 5972 |
assertion to ensure that). Also add code here to handle the case |
| 5973 |
where the choice is a function call, creating an |
| 5974 |
iterator_specification analyzing it, and call |
| 5975 |
Resolve_Iterated_Association recursively to process it. Add error |
| 5976 |
check to enforce RM22 4.3.5(27), which requires that the type of |
| 5977 |
the loop parameter must be the same as the key type when there is |
| 5978 |
no key expression and the aggregate is an indexed aggregate or has |
| 5979 |
an Add_Named op. |
| 5980 |
(Resolve_Container_Aggregate): In the Add_Unnamed case, call |
| 5981 |
Resolve_Iterated_Association for both |
| 5982 |
N_Iterated_Element_Association and N_Component_Association (rather |
| 5983 |
than just the latter). Remove error check for nonstatic choices in |
| 5984 |
component associations in Add_Named cases (multiple named |
| 5985 |
nonstatic associations are fine except in indexed aggregates). |
| 5986 |
Remove local variable Is_Indexed_Aggregate, replaced with new |
| 5987 |
library-level function of the same name, and add test of |
| 5988 |
Is_Indexed_Aggregate in the case where the aggregate type has an |
| 5989 |
Assign_Indexed operation, as a guard for doing error checks for |
| 5990 |
indexed aggregates. For indexed aggregate resolution, do not call |
| 5991 |
Analyze_And_Resolve on the expression of an |
| 5992 |
N_Component_Association in the "box association" case. Move error |
| 5993 |
checks for indexed aggregates with iterated associations that flag |
| 5994 |
cases where an association is a loop_parameter_specification with |
| 5995 |
an iterator filter or a key expression (violation of RM22 |
| 5996 |
4.3.5(28/5)), from the loop that checks for contiguous and |
| 5997 |
nonoverlapping choices and into the preceding association loop |
| 5998 |
after the call to Resolve_Iterated_Association. The RM reference |
| 5999 |
is added to the error-message strings. |
| 6000 |
|
| 6001 |
2024-05-20 Ronan Desplanques <[email protected]> |
| 6002 |
|
| 6003 |
* libgnarl/s-taprop__linux.adb (Set_Task_Affinity): Fix |
| 6004 |
decision about whether to call CPU_FREE. |
| 6005 |
|
| 6006 |
2024-05-20 Eric Botcazou <[email protected]> |
| 6007 |
|
| 6008 |
* exp_aggr.ads (Convert_Aggr_In_Allocator): Remove Aggr parameter |
| 6009 |
and adjust description. |
| 6010 |
(Convert_Aggr_In_Object_Decl): Adjust description. |
| 6011 |
* exp_aggr.adb (Convert_Aggr_In_Allocator): Remove Aggr parameter |
| 6012 |
and add local variable of the same name instead. Adjust call to |
| 6013 |
Convert_Array_Aggr_In_Allocator. |
| 6014 |
(Convert_Aggr_In_Object_Decl): Add comment for early return and |
| 6015 |
remove useless inner block statement. |
| 6016 |
(Convert_Array_Aggr_In_Allocator): Remove Aggr parameter and add |
| 6017 |
local variable of the same name instead. |
| 6018 |
(In_Place_Assign_OK): Move down declarations of local variables. |
| 6019 |
(Convert_To_Assignments): Put all declarations of local variables |
| 6020 |
in the same place. Fix typo in comment. Replace T with Full_Typ. |
| 6021 |
* exp_ch4.adb (Expand_Allocator_Expression): Call Unqualify instead |
| 6022 |
of Expression on the qualified expression of the allocator for the |
| 6023 |
sake of consistency. Adjust call to Convert_Aggr_In_Allocator. |
| 6024 |
|
| 6025 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 6026 |
|
| 6027 |
* sem_attr.adb (Eval_Attribute): Handle enumeration type with |
| 6028 |
Discard_Names. |
| 6029 |
|
| 6030 |
2024-05-20 Piotr Trojanek <[email protected]> |
| 6031 |
|
| 6032 |
* exp_imgv.adb (Expand_Width_Attribute): Fix for 'Width that |
| 6033 |
is computed at run time. |
| 6034 |
* sem_attr.adb (Eval_Attribute): Fix for 'Width that is computed |
| 6035 |
at compilation time. |
| 6036 |
|
| 6037 |
2024-05-20 Sebastian Poeplau <[email protected]> |
| 6038 |
|
| 6039 |
* libgnat/s-pooglo.adb (Allocate): Use arithmetic on |
| 6040 |
System.Address to compute the aligned address. |
| 6041 |
|
| 6042 |
2024-05-20 Steve Baird <[email protected]> |
| 6043 |
|
| 6044 |
* freeze.adb (Adjust_Esize_For_Alignment): Assert that a valid |
| 6045 |
Alignment specification cannot result in adjusting the given |
| 6046 |
type's Esize to be larger than System_Max_Integer_Size. |
| 6047 |
* sem_ch13.adb (Analyze_Attribute_Definition_Clause): In analyzing |
| 6048 |
an Alignment specification, enforce the rule that a specified |
| 6049 |
Alignment value for a discrete or fixed-point type shall not be |
| 6050 |
larger than System_Max_Integer_Size / 8 . |
| 6051 |
|
| 6052 |
2024-05-20 Eric Botcazou <[email protected]> |
| 6053 |
|
| 6054 |
* libgnat/g-sothco.ads (In_Addr): Add aspect Universal_Aliasing. |
| 6055 |
|
| 6056 |
2024-05-20 Jose Ruiz <[email protected]> |
| 6057 |
|
| 6058 |
* sem_prag.adb (Analyze_Pragma): Exclude detection of duplicates |
| 6059 |
because they are detected elsewhere. |
| 6060 |
|
| 6061 |
2024-05-20 Jose Ruiz <[email protected]> |
| 6062 |
|
| 6063 |
* exp_ch9.adb (Expand_N_Protected_Type_Declaration): Clarify |
| 6064 |
comments. |
| 6065 |
* sem_prag.adb (Analyze_Pragma): Check for duplicates |
| 6066 |
Max_Entry_Queue_Length, Max_Entry_Queue_Depth and Max_Queue_Length |
| 6067 |
for the same protected entry. |
| 6068 |
* sem_util.adb (Get_Max_Queue_Length): Take into account all three |
| 6069 |
representation aspects that can be used to set this restriction. |
| 6070 |
(Has_Max_Queue_Length): Likewise. |
| 6071 |
* doc/gnat_rm/implementation_defined_pragmas.rst: |
| 6072 |
(pragma Max_Queue_Length): Fix pragma in example. |
| 6073 |
* gnat_rm.texi: Regenerate. |
| 6074 |
|
| 6075 |
2024-05-20 Eric Botcazou <[email protected]> |
| 6076 |
|
| 6077 |
* libgnat/s-finpri.ads (Collection_Node): Move to private part. |
| 6078 |
(Collection_Node_Ptr): Likewise. |
| 6079 |
(Header_Alignment): Change to declaration and move completion to |
| 6080 |
private part. |
| 6081 |
(Header_Size): Likewise. |
| 6082 |
(Lock_Type): Delete. |
| 6083 |
(Finalization_Collection): Move Lock component and remove default |
| 6084 |
value for Finalization_Started component. |
| 6085 |
* libgnat/s-finpri.adb (Initialize): Reorder statements. |
| 6086 |
|
| 6087 |
2024-05-20 Eric Botcazou <[email protected]> |
| 6088 |
|
| 6089 |
* doc/gnat_rm/implementation_defined_pragmas.rst |
| 6090 |
(Universal_Aliasing): Remove reference to No_Strict_Aliasing. |
| 6091 |
* doc/gnat_ugn/gnat_and_program_execution.rst |
| 6092 |
(Optimization and Strict Aliasinng): Simplify first example and |
| 6093 |
make it more consistent with the second. Add description of the |
| 6094 |
effects of pragma Universal_Aliasing and document new warning |
| 6095 |
issued for unchecked conversions. Remove obsolete stuff. |
| 6096 |
* gnat_rm.texi: Regenerate. |
| 6097 |
* gnat_ugn.texi: Regenerate. |
| 6098 |
|
| 6099 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6100 |
|
| 6101 |
PR ada/115133 |
| 6102 |
* libgnarl/s-osinte__solaris.ads (mutex_t): Fix typo. |
| 6103 |
* libgnarl/s-taprop__solaris.adb (Record_Lock): Add conversion. |
| 6104 |
(Check_Sleep): Likewise. |
| 6105 |
(Record_Wakeup): Likewise. |
| 6106 |
(Check_Unlock): Likewise. |
| 6107 |
* libgnarl/s-tasini.adb (Initialize_RTS_Lock): Add pragma Import |
| 6108 |
on the overlaid variable. |
| 6109 |
(Finalize_RTS_Lock): Likewise. |
| 6110 |
(Acquire_RTS_Lock): Likewise. |
| 6111 |
(Release_RTS_Lock): Likewise. |
| 6112 |
* libgnarl/s-taspri__solaris.ads (To_RTS_Lock_Ptr): New instance |
| 6113 |
of Ada.Unchecked_Conversion. |
| 6114 |
* libgnat/s-oslock__solaris.ads: Add with clause for |
| 6115 |
Ada.Unchecked_Conversion. |
| 6116 |
(array_type_9): Add missing name qualification. |
| 6117 |
(record_type_3): Likewise. |
| 6118 |
(mutex_t): Fix formatting. |
| 6119 |
|
| 6120 |
2024-05-17 Viljar Indus <[email protected]> |
| 6121 |
|
| 6122 |
* exp_aggr.adb (Expand_Container_Aggregate): |
| 6123 |
Derive the size for iterable aggregates in the case of |
| 6124 |
one-dimensional array objects. |
| 6125 |
|
| 6126 |
2024-05-17 Ronan Desplanques <[email protected]> |
| 6127 |
|
| 6128 |
* exp_aggr.adb (Aggr_Size_OK): Remove workaround and extend |
| 6129 |
comment. |
| 6130 |
|
| 6131 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6132 |
|
| 6133 |
* bindgen.adb (Gen_Adainit): Generate declaration and call to the |
| 6134 |
imported procedure __gnat_tasking_runtime_initialize if need be. |
| 6135 |
* libgnat/s-soflin.ads (Locking Soft-Links): Add commentary. |
| 6136 |
* libgnarl/s-tasini.adb (Tasking_Runtime_Initialize): New procedure |
| 6137 |
exported as __gnat_tasking_runtime_initialize. Initialize RTS_Lock |
| 6138 |
manipulation routines here instead of... |
| 6139 |
(Init_RTS): ...here. |
| 6140 |
|
| 6141 |
2024-05-17 Steve Baird <[email protected]> |
| 6142 |
|
| 6143 |
* scng.adb (scan): When checking for an unprocessed preprocessor |
| 6144 |
directive, take into account the preprocessor's rules about case |
| 6145 |
insensitivity and about white space between the '#' and the |
| 6146 |
keyword. |
| 6147 |
|
| 6148 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6149 |
|
| 6150 |
* libgnarl/s-taspri__mingw.ads: Add clause for System.OS_Interface. |
| 6151 |
(Private_Data): Change type of Thread component. |
| 6152 |
|
| 6153 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6154 |
|
| 6155 |
* libgnat/g-alvevi.ads: Add pragma Universal_Aliasing for all the |
| 6156 |
view types. |
| 6157 |
* libgnat/s-stratt.ads: Likewise for Fat_Pointer type. |
| 6158 |
|
| 6159 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6160 |
|
| 6161 |
* Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add s-oslock$(objext). |
| 6162 |
(LIBGNAT_TARGET_PAIRS): Use s-oslock__dummy.ads by default. |
| 6163 |
Set specific s-oslock.ads source file for all the platforms. |
| 6164 |
* exp_ch7.ads (Preload_Finalization_Collection): New procedure. |
| 6165 |
* exp_ch7.adb (Allows_Finalization_Collection): Return False if |
| 6166 |
System.Finalization_Primitives has not been preloaded. |
| 6167 |
(Preload_Finalization_Collection): New procedure. |
| 6168 |
* opt.ads (Interface_Seen): New boolean variable. |
| 6169 |
* s-oscons-tmplt.c: Use "N" string for pragma Style_Checks. |
| 6170 |
* scng.adb (Scan): Set Interface_Seen upon seeing "interface". |
| 6171 |
* sem_ch10.adb: Add clause for Exp_Ch7. |
| 6172 |
(Analyze_Compilation_Unit): Call Preload_Finalization_Collection |
| 6173 |
after the context of the unit is analyzed. |
| 6174 |
* libgnarl/a-rttiev.adb: Add with clause for System.OS_Locks and |
| 6175 |
alphabetize others. |
| 6176 |
(Event_Queue_Lock): Adjust qualified name of subtype. |
| 6177 |
* libgnarl/s-osinte__aix.ads: Add with clause for System.OS_Locks |
| 6178 |
and change pthread_mutex_t into a local subtype. |
| 6179 |
* libgnarl/s-osinte__android.ads: Likewise. |
| 6180 |
* libgnarl/s-osinte__darwin.ads: Likewise. |
| 6181 |
* libgnarl/s-osinte__dragonfly.ads: Likewise. |
| 6182 |
* libgnarl/s-osinte__freebsd.ads: Likewise. |
| 6183 |
* libgnarl/s-osinte__gnu.ads: Likewise. |
| 6184 |
* libgnarl/s-osinte__hpux-dce.ads: Likewise. |
| 6185 |
* libgnarl/s-osinte__hpux.ads: Add Likewise. |
| 6186 |
* libgnarl/s-osinte__kfreebsd-gnu.ads: Likewise. |
| 6187 |
* libgnarl/s-osinte__linux.ads: Likewise. |
| 6188 |
* libgnarl/s-osinte__lynxos178e.ads: Likewise. |
| 6189 |
* libgnarl/s-osinte__qnx.ads: Likewise. |
| 6190 |
* libgnarl/s-osinte__rtems.ads: Likewise. |
| 6191 |
* libgnarl/s-osinte__mingw.ads: Add with clause for System.OS_Locks |
| 6192 |
and change CRITICAL_SECTION into a local subtype. Add declarations |
| 6193 |
for imported procedures dealing with CRITICAL_SECTION. |
| 6194 |
* libgnarl/s-osinte__solaris.ads: Add with clause for System.OS_Locks |
| 6195 |
and change mutex_t into a local subtype. |
| 6196 |
* libgnarl/s-osinte__vxworks.ads: Add missing blank line. |
| 6197 |
* libgnarl/s-taprop.ads: Alphabetize clauses and package renamings. |
| 6198 |
Use qualified name for RTS_Lock throughout. |
| 6199 |
* libgnarl/s-taprop__dummy.adb: Add use clause for System.OS_Locks |
| 6200 |
and alphabetize others. |
| 6201 |
* libgnarl/s-taprop__hpux-dce.adb: Likewise. |
| 6202 |
* libgnarl/s-taprop__linux.adb: Likewise. |
| 6203 |
* libgnarl/s-taprop__posix.adb: Likewise. |
| 6204 |
* libgnarl/s-taprop__qnx.adb: Likewise. |
| 6205 |
* libgnarl/s-taprop__rtems.adb: Likewise. |
| 6206 |
* libgnarl/s-taprop__solaris.adb: Likewise. |
| 6207 |
* libgnarl/s-taprop__vxworks.adb: Likewise. |
| 6208 |
* libgnarl/s-taprop__mingw.adb: Likewise. Remove declarations for |
| 6209 |
imported procedures dealing with CRITICAL_SECTION. |
| 6210 |
* libgnarl/s-tarest.adb: Add with clause for System.OS_Locks and |
| 6211 |
alphabetize others. |
| 6212 |
(Global_Task_Lock): Adjust qualified name of subtype. |
| 6213 |
* libgnarl/s-tasini.adb: Add clause for System.OS_Locks. |
| 6214 |
(Initialize_RTS_Lock): New procedure. |
| 6215 |
(Finalize_RTS_Lock): Likewise. |
| 6216 |
(Acquire_RTS_Lock): Likewise. |
| 6217 |
(Release_RTS_Lock): Likewise. |
| 6218 |
(Init_RTS): Add compile-time assertions for RTS_Lock types. |
| 6219 |
Set the soft links for the RTS lock manipulation routines. |
| 6220 |
* libgnarl/s-taspri__dummy.ads: Add with clause for System.OS_Locks. |
| 6221 |
(RTS_Lock): Delete and adjust throughout accordingly. |
| 6222 |
* libgnarl/s-taspri__hpux-dce.ads: Likewise. |
| 6223 |
* libgnarl/s-taspri__lynxos.ads: Likewise. |
| 6224 |
* libgnarl/s-taspri__mingw.ads: Likewise. |
| 6225 |
* libgnarl/s-taspri__posix-noaltstack.ads: Likewise. |
| 6226 |
* libgnarl/s-taspri__posix.ads: Likewise. |
| 6227 |
* libgnarl/s-taspri__solaris.ads: Likewise. |
| 6228 |
* libgnarl/s-taspri__vxworks.ads: Likewise. |
| 6229 |
* libgnat/s-finpri.ads: Add clause for System.OS_Locks. |
| 6230 |
(Finalization_Collection): Change type of Lock. |
| 6231 |
* libgnat/s-finpri.adb (Initialize): Call Initialize_RTS_Lock. |
| 6232 |
(Lock_Collection): Call Acquire_RTS_Lock. |
| 6233 |
(Unlock_Collection): Call Release_RTS_Lock. |
| 6234 |
* libgnat/s-oslock__dummy.ads: New file. |
| 6235 |
* libgnat/s-oslock__hpux-dce.ads: Likewise. |
| 6236 |
* libgnat/s-oslock__mingw.ads: Likewise. |
| 6237 |
* libgnat/s-oslock__posix.ads: Likewise. |
| 6238 |
* libgnat/s-oslock__solaris.ads: Likewise. |
| 6239 |
* libgnat/s-oslock__vxworks.ads: Likewise. |
| 6240 |
* libgnat/s-soflin.ads (Null_Set_Address): New null procedure. |
| 6241 |
(Initialize_RTS_Lock): New soft link. |
| 6242 |
(Finalize_RTS_Lock): Likewise. |
| 6243 |
(Acquire_RTS_Lock): Likewise. |
| 6244 |
(Release_RTS_Lock): Likewise. |
| 6245 |
* exp_ch4.adb (Expand_N_Allocator): In the subtype indication case, |
| 6246 |
call Apply_Predicate_Check on the resulting access value if need be. |
| 6247 |
|
| 6248 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6249 |
|
| 6250 |
* einfo.ads (Materialize_Entity): Document secondary usage. |
| 6251 |
|
| 6252 |
2024-05-17 Steve Baird <[email protected]> |
| 6253 |
|
| 6254 |
* local_restrict.adb (Active_Restriction): When traversing scopes, |
| 6255 |
do not skip over a subprogram body. |
| 6256 |
|
| 6257 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6258 |
|
| 6259 |
* libgnarl/s-taprop__dummy.adb (Initialize_Lock): Fix formatting. |
| 6260 |
* libgnarl/s-taprop__linux.adb (RTS_Lock_Ptr): Delete. |
| 6261 |
(Init_Mutex): Rename into... |
| 6262 |
(Initialize_Lock): ...this. |
| 6263 |
(Initialize_Lock [Lock]): Call above procedure. |
| 6264 |
(Initialize_Lock [RTS_Lock]): Likewise. |
| 6265 |
(Initialize_TCB): Likewise. |
| 6266 |
* libgnarl/s-taprop__posix.adb (Initialize_Lock): New procedure |
| 6267 |
factored out from the other two homonyms. |
| 6268 |
(Initialize_Lock [Lock]): Call above procedure. |
| 6269 |
(Initialize_Lock [RTS_Lock]): Likewise. |
| 6270 |
* libgnarl/s-taprop__qnx.adb (RTS_Lock_Ptr): Delete. |
| 6271 |
(Init_Mutex): Rename into... |
| 6272 |
(Initialize_Lock): ...this. |
| 6273 |
(Initialize_Lock [Lock]): Call above procedure. |
| 6274 |
(Initialize_Lock [RTS_Lock]): Likewise. |
| 6275 |
(Initialize_TCB): Likewise. |
| 6276 |
* libgnarl/s-taprop__rtems.adb (Initialize_Lock): New procedure |
| 6277 |
factored out from the other two homonyms. |
| 6278 |
(Initialize_Lock [Lock]): Call above procedure. |
| 6279 |
(Initialize_Lock [RTS_Lock]): Likewise. |
| 6280 |
|
| 6281 |
2024-05-17 Piotr Trojanek <[email protected]> |
| 6282 |
|
| 6283 |
* sem_util.adb (Is_Known_On_Entry): Handle constants introduced |
| 6284 |
by validity checks. |
| 6285 |
|
| 6286 |
2024-05-17 Steve Baird <[email protected]> |
| 6287 |
|
| 6288 |
* libgnat/a-direct.adb (Start_Search_Internal): Do not call |
| 6289 |
Modification_Time for a special file; declare a Calendar.Time |
| 6290 |
constant No_Time and use that instead. |
| 6291 |
|
| 6292 |
2024-05-17 Steve Baird <[email protected]> |
| 6293 |
|
| 6294 |
* exp_ch3.adb (Build_Equivalent_Record_Aggregate): Add |
| 6295 |
Has_Predicates test for a scalar component to match what is |
| 6296 |
already done for other kinds of components. |
| 6297 |
|
| 6298 |
2024-05-17 Ronan Desplanques <[email protected]> |
| 6299 |
|
| 6300 |
* sem_aggr.adb (Resolve_Array_Aggregate): Improve comments |
| 6301 |
and condition. |
| 6302 |
|
| 6303 |
2024-05-17 Ronan Desplanques <[email protected]> |
| 6304 |
|
| 6305 |
* sem_aggr.adb (Resolve_Array_Aggregate): Fix location of error |
| 6306 |
message. |
| 6307 |
|
| 6308 |
2024-05-17 Piotr Trojanek <[email protected]> |
| 6309 |
|
| 6310 |
* sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): Move to |
| 6311 |
Sem_Util, so it can be used from GNATprove. |
| 6312 |
* sem_util.ads (Is_Unconstrained_Or_Tagged_Item): Move from |
| 6313 |
Sem_Prag; spec. |
| 6314 |
* sem_util.adb (Is_Unconstrained_Or_Tagged_Item): Move from |
| 6315 |
Sem_Prag; body. |
| 6316 |
|
| 6317 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6318 |
|
| 6319 |
* exp_pakd.adb (Create_Packed_Array_Impl_Type): For non-bit-packed |
| 6320 |
array types, propagate the aliased property of the component. |
| 6321 |
(Install_PAT): Set fields on the implicit base type of an array. |
| 6322 |
* libgnat/a-stream.ads (private part): Add pragma Universal_Aliasing |
| 6323 |
for Stream_Element. |
| 6324 |
* libgnat/g-alleve.ads: Add pragma Universal_Aliasing for all the |
| 6325 |
vector types. |
| 6326 |
* libgnat/g-alleve__hard.ads: Likewise. |
| 6327 |
|
| 6328 |
2024-05-17 Bob Duff <[email protected]> |
| 6329 |
|
| 6330 |
* bcheck.adb (Check_Consistency_Of_Sdep): Split out new procedure. |
| 6331 |
Add check for special case of subprogram spec that no longer |
| 6332 |
exists. |
| 6333 |
(Check_Consistency): Call Check_Consistency_Of_Sdep, except when |
| 6334 |
Reified_Child_Spec is True. No need for "goto Continue" or "exit |
| 6335 |
Sdep_Loop". |
| 6336 |
* ali.ads (Subunit_Name, Unit_Name): Change the type to |
| 6337 |
Unit_Name_Type. Add a comment pointing to the ALI file |
| 6338 |
documentation, because it's in a somewhat-surprising place. |
| 6339 |
* ali.adb (Scan_ALI): Subunit_Name and Unit_Name are now |
| 6340 |
Unit_Name_Type. Remove comment explaining why Name_Find is used; |
| 6341 |
Name_Find is the usual case. Do not remove the "%s" or "%b" from |
| 6342 |
the Unit_Name. We need to be able to distinguish specs and bodies. |
| 6343 |
This is also necessary to obey the invariant of Unit_Name_Type. |
| 6344 |
* binde.adb (Write_Closure): Subunit_Name is now Unit_Name_Type. |
| 6345 |
* clean.adb (Clean_Executables): Likewise. |
| 6346 |
|
| 6347 |
2024-05-17 Ronan Desplanques <[email protected]> |
| 6348 |
|
| 6349 |
* sem_aggr.adb (Resolve_Null_Array_Aggregate): Update |
| 6350 |
documentation comments. |
| 6351 |
|
| 6352 |
2024-05-17 Steve Baird <[email protected]> |
| 6353 |
|
| 6354 |
* sem_util.adb (Has_Some_Controlled_Component): Fix a bug which |
| 6355 |
causes (in some cases involving a Disable_Controlled aspect |
| 6356 |
specification) Needs_Finalization to return different answers for |
| 6357 |
one type depending on whether the function is called before or |
| 6358 |
after the type is frozen. |
| 6359 |
* libgnat/a-coorse.ads: Type Control_Reference_Type gets an Adjust |
| 6360 |
procedure. |
| 6361 |
* libgnat/a-cborse.ads: Likewise. |
| 6362 |
* libgnat/a-ciorse.ads: Likewise |
| 6363 |
* libgnat/a-coorse.adb: |
| 6364 |
(Finalize): Reclaim allocated Key_Type object. |
| 6365 |
(Adjust): New procedure; prevent sharing of non-null Key_Access |
| 6366 |
values by allocating a copy. |
| 6367 |
* libgnat/a-cborse.adb: Likewise. |
| 6368 |
* libgnat/a-ciorse.adb: Likewise. |
| 6369 |
|
| 6370 |
2024-05-17 Bob Duff <[email protected]> |
| 6371 |
|
| 6372 |
* uname.adb (Get_Unit_Name_String): Move Asserts after |
| 6373 |
Buf is initialized. |
| 6374 |
|
| 6375 |
2024-05-17 Bob Duff <[email protected]> |
| 6376 |
|
| 6377 |
* ali-util.adb (Read_Withed_ALIs): Minor reformatting. |
| 6378 |
* bindo-units.adb (Corresponding_Body): Add assert. |
| 6379 |
(Corresponding_Spec): Likewise. |
| 6380 |
* uname.adb: Clean up assertions, use available functions. |
| 6381 |
Get_Spec_Name/Get_Body_Name can assert that N obeys the |
| 6382 |
conventions for Unit_Name_Type (end in "%s" or "%b"). |
| 6383 |
|
| 6384 |
2024-05-17 Sebastian Poeplau <[email protected]> |
| 6385 |
|
| 6386 |
* raise-gcc.c: Work around __builtin_code_address_from_pointer |
| 6387 |
if it is unavailable. |
| 6388 |
|
| 6389 |
2024-05-17 Marc Poulhiès <[email protected]> |
| 6390 |
|
| 6391 |
* exp_aggr.adb (Build_Array_Aggr_Code) <Gen_Loop>: Copy the |
| 6392 |
initialization expression when unrolling the loop. |
| 6393 |
|
| 6394 |
2024-05-17 Bob Duff <[email protected]> |
| 6395 |
|
| 6396 |
* sem_disp.adb (Check_Dispatching_Operation): Call |
| 6397 |
Create_Extra_Formals, so that the caller will have an extra |
| 6398 |
"constrained" parameter, which will be checked on assignment in |
| 6399 |
the callee, and will be passed in by the caller. |
| 6400 |
|
| 6401 |
2024-05-17 Piotr Trojanek <[email protected]> |
| 6402 |
|
| 6403 |
* sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): Remove call |
| 6404 |
to Has_Discriminants; combine ELSIF branches. |
| 6405 |
|
| 6406 |
2024-05-17 Piotr Trojanek <[email protected]> |
| 6407 |
|
| 6408 |
* sem_ch7.adb (New_Private_Type): Simplify setting of |
| 6409 |
Is_Constrained flag. |
| 6410 |
* sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): Simplify |
| 6411 |
detection of private types with no discriminant. |
| 6412 |
|
| 6413 |
2024-05-17 Piotr Trojanek <[email protected]> |
| 6414 |
|
| 6415 |
* sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): Allow objects |
| 6416 |
of private types with unknown discriminants. |
| 6417 |
|
| 6418 |
2024-05-17 Piotr Trojanek <[email protected]> |
| 6419 |
|
| 6420 |
* sem_prag.adb (Is_Unconstrained_Or_Tagged_Item): Tune repeated |
| 6421 |
testing of type kinds. |
| 6422 |
|
| 6423 |
2024-05-17 Marc Poulhiès <[email protected]> |
| 6424 |
|
| 6425 |
* doc/gnat_rm/implementation_defined_attributes.rst: Fix |
| 6426 |
copy/paste. |
| 6427 |
* gnat_rm.texi: Regenerate. |
| 6428 |
* gnat_ugn.texi: Regenerate. |
| 6429 |
|
| 6430 |
2024-05-17 Viljar Indus <[email protected]> |
| 6431 |
|
| 6432 |
* sem_ch3.adb (Analyze_Component_Declaration): |
| 6433 |
Apply range checks only for Scalar_Types to |
| 6434 |
ensure that they have the Scalar_Range attribute. |
| 6435 |
|
| 6436 |
2024-05-17 Viljar Indus <[email protected]> |
| 6437 |
|
| 6438 |
* sem_ch3.adb (Analyze_Component_Declaration): |
| 6439 |
Add Range_Checks for Subtype_Indications |
| 6440 |
|
| 6441 |
2024-05-17 Ronan Desplanques <[email protected]> |
| 6442 |
|
| 6443 |
* exp_ch4.adb (Expand_N_Case_Expression): Remove call to |
| 6444 |
Relocate_Node. |
| 6445 |
* sem_attr.adb (Analyze_Attribute): Likewise. |
| 6446 |
|
| 6447 |
2024-05-17 Ronan Desplanques <[email protected]> |
| 6448 |
|
| 6449 |
* exp_aggr.adb (Flatten): Small cleanup. |
| 6450 |
|
| 6451 |
2024-05-17 Eric Botcazou <[email protected]> |
| 6452 |
|
| 6453 |
* sem_attr.adb (Analyze_Attribute) <Attribute_Size>: Remove special |
| 6454 |
processing for pragma Compile_Time_{Warning,Error}. |
| 6455 |
(Eval_Attribute.Compile_Time_Known_Attribute): Set Is_Static on the |
| 6456 |
resulting value if In_Compile_Time_Warning_Or_Error is set. |
| 6457 |
(Eval_Attribute.Full_Type): New helper function. |
| 6458 |
(Eval_Attribute): Call Full_Type for type attributes. Add handling |
| 6459 |
of Object_Size and adjust that of Max_Size_In_Storage_Elements in |
| 6460 |
the non-static case. |
| 6461 |
|
| 6462 |
2024-05-16 Eric Botcazou <[email protected]> |
| 6463 |
|
| 6464 |
* exp_ch7.adb (Attach_Object_To_Master_Node): Remove reference to a |
| 6465 |
transient object in comment. |
| 6466 |
|
| 6467 |
2024-05-16 Marc Poulhiès <[email protected]> |
| 6468 |
|
| 6469 |
* exp_ch7.adb (Reset_Scopes_To_Block_Elab_Proc): also reset scope |
| 6470 |
for object declarations. |
| 6471 |
|
| 6472 |
2024-05-16 Steve Baird <[email protected]> |
| 6473 |
|
| 6474 |
* checks.adb (Expr_Known_Valid): Return True for a static expression. |
| 6475 |
* exp_util.adb (Adjust_Condition): No validity check needed for a |
| 6476 |
condition if it is an expression for which a validity check has |
| 6477 |
already been generated. |
| 6478 |
|
| 6479 |
2024-05-16 Gary Dismukes <[email protected]> |
| 6480 |
|
| 6481 |
* libgnat/a-coinve.ads (type Vector): In the Aggregate aspect for |
| 6482 |
this type, the Empty operation is changed to denote the Empty |
| 6483 |
function, rather than the Empty_Vector constant. |
| 6484 |
* exp_aggr.adb (Expand_Container_Aggregate): Remove code for |
| 6485 |
handling the case where the Empty_Subp denotes a constant object, |
| 6486 |
which should never happen (and add an assertion that Empty_Subp |
| 6487 |
must denote a function). |
| 6488 |
* sem_ch13.adb (Valid_Empty): No longer allow the entity to be an |
| 6489 |
E_Constant, and require the (optional) parameter of an Empty |
| 6490 |
function to be of a signed integer type (rather than any integer |
| 6491 |
type). |
| 6492 |
|
| 6493 |
2024-05-16 Justin Squirek <[email protected]> |
| 6494 |
|
| 6495 |
* doc/gnat_rm/implementation_defined_attributes.rst: Add entry for |
| 6496 |
Super attribute. |
| 6497 |
* accessibility.adb (Accessibility_Level): Add handling for Super. |
| 6498 |
* exp_attr.adb (Expand_N_Attribute_Reference): Add entry for |
| 6499 |
Super. |
| 6500 |
* sem_attr.adb (Analyze_Attribute): Create a case to handle the |
| 6501 |
semantic checking and expansion for Super. |
| 6502 |
(Eval_Attribute): Add entry for Super. |
| 6503 |
* sem_attr.ads: Add entry for Super. |
| 6504 |
* sem_util.adb (Is_Aliased_View, Is_Variable): Add case to handle |
| 6505 |
references to 'Super. |
| 6506 |
* snames.ads-tmpl: Register Name_Super and Attribute_Super. |
| 6507 |
* gnat_rm.texi: Regenerate. |
| 6508 |
|
| 6509 |
2024-05-16 Ronan Desplanques <[email protected]> |
| 6510 |
|
| 6511 |
* sem_util.ads (Check_Function_Writable_Actuals): Fix comment. |
| 6512 |
|
| 6513 |
2024-05-16 Ronan Desplanques <[email protected]> |
| 6514 |
|
| 6515 |
* sem_res.adb (Resolve_Case_Expression): Add length check |
| 6516 |
insertion. |
| 6517 |
* exp_ch4.adb (Expand_N_Case_Expression): Add handling of nodes |
| 6518 |
known to raise Constraint_Error. |
| 6519 |
|
| 6520 |
2024-05-16 Sebastian Poeplau <[email protected]> |
| 6521 |
|
| 6522 |
* adaint.c: New defines for STANDALONE mode. |
| 6523 |
|
| 6524 |
2024-05-16 Viljar Indus <[email protected]> |
| 6525 |
|
| 6526 |
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): |
| 6527 |
If the spec is not present for a subprogram body then |
| 6528 |
check if the body definiton was created for a protected |
| 6529 |
procedure. |
| 6530 |
|
| 6531 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6532 |
|
| 6533 |
* exp_cg.adb (Generate_CG_Output): Remove code for ignored ghost |
| 6534 |
entities that applied to subprogram calls. |
| 6535 |
(Register_CG_Node): Skip ignored ghost entities, both calls |
| 6536 |
and tagged types, when they are registered. |
| 6537 |
|
| 6538 |
2024-05-16 Ronan Desplanques <[email protected]> |
| 6539 |
|
| 6540 |
* checks.adb (Apply_Selected_Length_Checks): Fix reason code. |
| 6541 |
|
| 6542 |
2024-05-16 Eric Botcazou <[email protected]> |
| 6543 |
|
| 6544 |
* libgnat/s-finpri.adb (Raise_From_Controlled_Operation): New |
| 6545 |
declaration of imported procedure moved from... |
| 6546 |
(Finalize_Master): ...there. |
| 6547 |
(Finalize): Call Raise_From_Controlled_Operation instead of |
| 6548 |
Reraise_Occurrence to propagate the exception, if any. |
| 6549 |
|
| 6550 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6551 |
|
| 6552 |
* sem_ch4.adb (Analyze_If_Expression): Add guard for |
| 6553 |
if_expression without an ELSE part. |
| 6554 |
|
| 6555 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6556 |
|
| 6557 |
* exp_ch13.adb (Expand_N_Free_Statement): After analysis, the |
| 6558 |
new temporary has the type of its Object_Definition and the new |
| 6559 |
occurrence of this temporary has this type as well; simplify. |
| 6560 |
* sem_util.adb |
| 6561 |
(Indirect_Temp_Value): Remove redundant call to Set_Etype; |
| 6562 |
simplify. |
| 6563 |
(Is_Access_Type_For_Indirect_Temp): Add missing body header. |
| 6564 |
|
| 6565 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6566 |
|
| 6567 |
* sem_util.adb (Is_Known_On_Entry): Check whether condition and |
| 6568 |
dependent expressions of an if_expression are known on entry. |
| 6569 |
|
| 6570 |
2024-05-16 Ronan Desplanques <[email protected]> |
| 6571 |
|
| 6572 |
* checks.ads: Fix comments. |
| 6573 |
* checks.adb: Likewise. |
| 6574 |
|
| 6575 |
2024-05-16 Eric Botcazou <[email protected]> |
| 6576 |
|
| 6577 |
* libgnat/s-finpri.ads: Add use type clause for Storage_Offset. |
| 6578 |
(Header_Alignment): Turn into an expression function. |
| 6579 |
(Header_Size): Likewise. |
| 6580 |
* libgnat/s-finpri.adb: Remove use type clause for Storage_Offset. |
| 6581 |
(Header_Alignment): Delete. |
| 6582 |
(Header_Size): Likewise. |
| 6583 |
|
| 6584 |
2024-05-16 Marc Poulhiès <[email protected]> |
| 6585 |
|
| 6586 |
* exp_ch7.adb (Unnest_Loop::Fixup_Inner_Scopes): detect a new |
| 6587 |
problematic pattern and fixup the scope accordingly. |
| 6588 |
|
| 6589 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6590 |
|
| 6591 |
* gnat_cuda.adb (Remove_CUDA_Device_Entities): Fix typo. |
| 6592 |
|
| 6593 |
2024-05-16 Eric Botcazou <[email protected]> |
| 6594 |
|
| 6595 |
* libgnat/s-finpri.ads (Header_Alignment): New function. |
| 6596 |
(Header_Size): Adjust description. |
| 6597 |
(Master_Node): Put Finalize_Address as first component. |
| 6598 |
(Collection_Node): Likewise. |
| 6599 |
* libgnat/s-finpri.adb (Header_Alignment): New function. |
| 6600 |
(Header_Size): Return the object size in storage units. |
| 6601 |
* libgnat/s-stposu.ads (Adjust_Controlled_Dereference): Replace |
| 6602 |
collection node with header in description. |
| 6603 |
* libgnat/s-stposu.adb (Adjust_Controlled_Dereference): Likewise. |
| 6604 |
(Allocate_Any_Controlled): Likewise. Pass the maximum of the |
| 6605 |
specified alignment and that of the header to the allocator. |
| 6606 |
(Deallocate_Any_Controlled): Likewise to the deallocator. |
| 6607 |
|
| 6608 |
2024-05-16 Viljar Indus <[email protected]> |
| 6609 |
|
| 6610 |
* exp_aggr.adb (Two_Pass_Aggregate_Expansion): |
| 6611 |
Explicitly create new Defining_Iterators for both |
| 6612 |
of the loops. |
| 6613 |
|
| 6614 |
2024-05-16 Eric Botcazou <[email protected]> |
| 6615 |
|
| 6616 |
* sem_ch6.adb (Check_Private_Overriding): Implement the second part |
| 6617 |
of RM 3.9.3(10) consistently in both cases. |
| 6618 |
|
| 6619 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6620 |
|
| 6621 |
* erroutc.adb (Set_Msg_Insertion_Reserved_Word): Fix casing for |
| 6622 |
CUDA appearing in error message strings. |
| 6623 |
(Set_Msg_Str): Likewise for CUDA being a part of a Name_Id. |
| 6624 |
|
| 6625 |
2024-05-16 Ronan Desplanques <[email protected]> |
| 6626 |
|
| 6627 |
* exp_ch4.adb (Expand_Composite_Equality): Call Error_Msg_N |
| 6628 |
instead of Error_Msg. |
| 6629 |
|
| 6630 |
2024-05-16 Steve Baird <[email protected]> |
| 6631 |
|
| 6632 |
* exp_attr.adb (Build_And_Insert_Type_Attr_Subp): Further tweaking |
| 6633 |
of the point where a compiler-generated Put_Image or streaming |
| 6634 |
subprogram is to be inserted in the tree. If one such subprogram |
| 6635 |
calls another (as is often the case with, for example, Put_Image |
| 6636 |
procedures for composite type and for a component type thereof), |
| 6637 |
then we want to avoid use-before-definition problems that can |
| 6638 |
result from inserting the caller ahead of the callee. |
| 6639 |
|
| 6640 |
2024-05-16 Eric Botcazou <[email protected]> |
| 6641 |
|
| 6642 |
* libgnat/s-finpri.ads (Lock_Type): New modular type. |
| 6643 |
(Collection_Node): Add Enclosing_Collection component. |
| 6644 |
(Finalization_Collection): Add Lock component. |
| 6645 |
* libgnat/s-finpri.adb: Add clauses for System.Atomic_Primitives. |
| 6646 |
(Attach_Object_To_Collection): Lock and unlock the collection. |
| 6647 |
Save a pointer to the enclosing collection in the node. |
| 6648 |
(Detach_Object_From_Collection): Lock and unlock the collection. |
| 6649 |
(Finalize): Likewise. |
| 6650 |
(Initialize): Initialize the lock. |
| 6651 |
(Lock_Collection): New procedure. |
| 6652 |
(Unlock_Collection): Likewise. |
| 6653 |
|
| 6654 |
2024-05-16 Steve Baird <[email protected]> |
| 6655 |
|
| 6656 |
* sem_attr.adb (Eval_Attribute): Expand existing checks for |
| 6657 |
generic formal types for which Is_Generic_Type returns False. In |
| 6658 |
that case, mark the attribute reference as nonstatic. |
| 6659 |
|
| 6660 |
2024-05-16 Steve Baird <[email protected]> |
| 6661 |
|
| 6662 |
* sem_util.adb (Copy_Node_With_Replacement): Add call to |
| 6663 |
Copy_Dimensions so that any dimension information associated with |
| 6664 |
the copied node is also associated with the resulting copy. |
| 6665 |
|
| 6666 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6667 |
|
| 6668 |
* gen_il-gen-gen_nodes.adb (N_Procedure_Specification): Remove |
| 6669 |
Aspect_Specifications field. |
| 6670 |
|
| 6671 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6672 |
|
| 6673 |
* sem_ch13.adb (Analyze_Aspect_Specification): Consistently |
| 6674 |
reuse existing constant where possible. |
| 6675 |
|
| 6676 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6677 |
|
| 6678 |
* sem_ch13.adb (Analyze_Aspect_Specification): Consistently |
| 6679 |
reuse existing constant where possible. |
| 6680 |
|
| 6681 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6682 |
|
| 6683 |
* aspects.ads (Aspect_Id): Fix ordering. |
| 6684 |
|
| 6685 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6686 |
|
| 6687 |
* sem_prag.adb (Analyze_Pragma): Move case alternative to match |
| 6688 |
to alphabetic order. |
| 6689 |
|
| 6690 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6691 |
|
| 6692 |
* gnat_cuda.adb (Remove_CUDA_Device_Entities): Fix casing |
| 6693 |
(this primarily fixes a style, because the capitalization will |
| 6694 |
not be preserved by the error-reporting machinery anyway). |
| 6695 |
* sem_ch13.adb (Analyze_User_Aspect_Aspect_Specification): Fix |
| 6696 |
casing in error message. |
| 6697 |
|
| 6698 |
2024-05-16 Piotr Trojanek <[email protected]> |
| 6699 |
|
| 6700 |
* doc/gnat_rm/implementation_defined_pragmas.rst: Fix |
| 6701 |
documentation. |
| 6702 |
* sem_prag.adb: Fix comments. |
| 6703 |
* gnat_rm.texi: Regenerate. |
| 6704 |
|
| 6705 |
2024-05-14 Piotr Trojanek <[email protected]> |
| 6706 |
|
| 6707 |
* aspects.ads (Aspect_Id, Boolean_Aspect): Change categorization |
| 6708 |
of Boolean-valued SPARK aspects. |
| 6709 |
* sem_ch13.adb (Analyze_Aspect_Specification): Adapt CASE |
| 6710 |
statements to new classification of Boolean-valued SPARK |
| 6711 |
aspects. |
| 6712 |
|
| 6713 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6714 |
|
| 6715 |
* sem_ch13.adb (Validate_Unchecked_Conversions): Add node |
| 6716 |
parameters to Error_Msg calls. |
| 6717 |
|
| 6718 |
2024-05-14 Marc Poulhiès <[email protected]> |
| 6719 |
|
| 6720 |
* sem_util.adb: Typo fix in comment. |
| 6721 |
* exp_aggr.adb: Likewise. |
| 6722 |
|
| 6723 |
2024-05-14 Eric Botcazou <[email protected]> |
| 6724 |
|
| 6725 |
* exp_ch7.adb (Finalization Management): Add a short description of |
| 6726 |
the implementation of finalization chains. |
| 6727 |
|
| 6728 |
2024-05-14 Eric Botcazou <[email protected]> |
| 6729 |
|
| 6730 |
* exp_ch4.adb (Expand_Allocator_Expression): Move the first call to |
| 6731 |
Build_Allocate_Deallocate_Proc up to before the accessibility check. |
| 6732 |
|
| 6733 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6734 |
|
| 6735 |
* errout.adb (Validate_Specific_Warnings): Adapt to record |
| 6736 |
definition change. |
| 6737 |
* erroutc.adb (Set_Specific_Warning_On, Set_Specific_Warning_Off, |
| 6738 |
Warning_Specifically_Suppressed): Likewise. |
| 6739 |
* erroutc.ads: Change record definition. |
| 6740 |
|
| 6741 |
2024-05-14 Eric Botcazou <[email protected]> |
| 6742 |
|
| 6743 |
* exp_ch3.adb (Build_Default_Initialization): Do not generate the |
| 6744 |
protection for finalization collections. |
| 6745 |
(Build_Heap_Or_Pool_Allocator): Set the No_Initialization flag on |
| 6746 |
the declaration of the temporary. |
| 6747 |
* exp_ch4.adb (Build_Aggregate_In_Place): Do not build an allocation |
| 6748 |
procedure here. |
| 6749 |
(Expand_Allocator_Expression): Build an allocation procedure, if it |
| 6750 |
is required, only just before rewriting the allocator. |
| 6751 |
(Expand_N_Allocator): Do not build an allocation procedure if the |
| 6752 |
No_Initialization flag is set on the allocator, except for those |
| 6753 |
generated for special return objects. In other cases, build an |
| 6754 |
allocation procedure, if it is required, only before rewriting |
| 6755 |
the allocator. |
| 6756 |
* exp_ch7.ads (Make_Address_For_Finalize): New function declaration. |
| 6757 |
* exp_ch7.adb (Finalization Management): Update description for |
| 6758 |
dynamically allocated objects. |
| 6759 |
(Make_Address_For_Finalize): Remove declaration. |
| 6760 |
(Find_Last_Init): Change to function and move to... |
| 6761 |
(Process_Object_Declaration): Adjust to above change. |
| 6762 |
* exp_util.ads (Build_Allocate_Deallocate_Proc): Add Mark parameter |
| 6763 |
with Empty default and document it. |
| 6764 |
(Find_Last_Init): New function declaration. |
| 6765 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Add Mark parameter |
| 6766 |
with Empty default and pass it in recursive call. Deal with type |
| 6767 |
conversions created for interface types. Adjust call sequence to |
| 6768 |
Allocate_Any_Controlled by changing Collection to In/Out parameter |
| 6769 |
and removing Finalize_Address parameter. For a controlled object, |
| 6770 |
generate a conditional call to Attach_Object_To_Collection for an |
| 6771 |
allocation and to Detach_Object_From_Collection for a deallocation. |
| 6772 |
(Find_Last_Init): ...here. Compute the initialization type for an |
| 6773 |
allocator whose designating type is class wide specifically and also |
| 6774 |
handle concurrent types. |
| 6775 |
* rtsfind.ads (RE_Id): Add RE_Attach_Object_To_Collection and |
| 6776 |
RE_Detach_Object_From_Collection. |
| 6777 |
(RE_Unit_Table): Add entries for RE_Attach_Object_To_Collection and |
| 6778 |
RE_Detach_Object_From_Collection. |
| 6779 |
* libgnat/s-finpri.ads (Finalization_Started): Delete. |
| 6780 |
(Attach_Node_To_Collection): Likewise. |
| 6781 |
(Detach_Node_From_Collection): Move to... |
| 6782 |
(Attach_Object_To_Collection): New procedure declaration. |
| 6783 |
(Detach_Object_From_Collection): Likewise. |
| 6784 |
(Finalization_Collection): Remove Atomic for Finalization_Started. |
| 6785 |
Add pragma Inline for Initialize. |
| 6786 |
* libgnat/s-finpri.adb: Add clause for Ada.Unchecked_Conversion. |
| 6787 |
(To_Collection_Node_Ptr): New instance of Ada.Unchecked_Conversion. |
| 6788 |
(Detach_Node_From_Collection): ...here. |
| 6789 |
(Attach_Object_To_Collection): New procedure. |
| 6790 |
(Detach_Object_From_Collection): Likewise. |
| 6791 |
(Finalization_Started): Delete. |
| 6792 |
(Finalize): Replace allocation with attachment in comments. |
| 6793 |
* libgnat/s-stposu.ads (Allocate_Any_Controlled): Rename parameter |
| 6794 |
Context_Subpool into Named_Subpool, parameter Context_Collection |
| 6795 |
into Collection and change it to In/Out, and remove Fin_Address. |
| 6796 |
* libgnat/s-stposu.adb: Remove clause for Ada.Unchecked_Conversion |
| 6797 |
and Finalization_Primitives. |
| 6798 |
(To_Collection_Node_Ptr): Delete. |
| 6799 |
(Allocate_Any_Controlled): Rename parameter Context_Subpool into |
| 6800 |
Named_Subpool, parameter Context_Collection into Collection and |
| 6801 |
change it to In/Out, and remove Fin_Address. Do not lock/unlock |
| 6802 |
and do not attach the object, instead only displace its address. |
| 6803 |
(Deallocate_Any_Controlled): Do not lock/unlock and do not detach |
| 6804 |
the object. |
| 6805 |
(Header_Size_With_Padding): Use qualified name for Header_Size. |
| 6806 |
|
| 6807 |
2024-05-14 Steve Baird <[email protected]> |
| 6808 |
|
| 6809 |
* exp_attr.adb (Build_And_Insert_Type_Attr_Subp): If a subprogram |
| 6810 |
associated with a (library-level) type declared in another unit is |
| 6811 |
to be inserted somewhere in a list, then insert it at the head of |
| 6812 |
the list. |
| 6813 |
* sem_ch5.adb (Analyze_Assignment): Normally a limited-type |
| 6814 |
assignment is illegal. Relax this rule if Comes_From_Source is |
| 6815 |
False and the type is not immutably limited. |
| 6816 |
|
| 6817 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6818 |
|
| 6819 |
* errout.ads (Error_Msg): Add node parameter. |
| 6820 |
* errout.adb (Error_Msg): Add parameter and pass it to |
| 6821 |
the underlying call. |
| 6822 |
* sem_prag.adb (Validate_Compile_Time_Warning_Or_Error): Pass |
| 6823 |
pragma node when emitting errors. |
| 6824 |
|
| 6825 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6826 |
|
| 6827 |
* styleg.ads (Check_Xtra_Parens_Precedence): Moved ... |
| 6828 |
* style.ads (Check_Xtra_Parens_Precedence): ... here. Also |
| 6829 |
replace corresponding renaming. |
| 6830 |
* styleg.adb (Check_Xtra_Parens_Precedence): Moved ... |
| 6831 |
* style.adb (Check_Xtra_Parens_Precedence): here. Also use |
| 6832 |
Errout.Error_Msg and pass it a node parameter. |
| 6833 |
|
| 6834 |
2024-05-14 Eric Botcazou <[email protected]> |
| 6835 |
|
| 6836 |
* exp_aggr.ads (Convert_Aggr_In_Allocator): Rename Alloc into N, |
| 6837 |
replace Decl with Temp and adjust description. |
| 6838 |
(Convert_Aggr_In_Object_Decl): Alphabetize. |
| 6839 |
(Is_Delayed_Aggregate): Likewise. |
| 6840 |
* exp_aggr.adb (Convert_Aggr_In_Allocator): Rename Alloc into N |
| 6841 |
and replace Decl with Temp. Allocate a list only when neeeded. |
| 6842 |
(Convert_Array_Aggr_In_Allocator): Replace N with Decl and insert |
| 6843 |
new code before it. |
| 6844 |
* exp_ch4.adb (Build_Aggregate_In_Place): New procedure nested in |
| 6845 |
Expand_Allocator_Expression. |
| 6846 |
(Expand_Allocator_Expression): Call it to build aggregates in place. |
| 6847 |
Remove second parameter in calls to Build_Allocate_Deallocate_Proc. |
| 6848 |
(Expand_N_Allocator): Likewise. |
| 6849 |
* exp_ch13.adb (Expand_N_Free_Statement): Likewise. |
| 6850 |
* exp_util.ads (Build_Allocate_Deallocate_Proc): Remove Is_Allocate |
| 6851 |
parameter. |
| 6852 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Remove Is_Allocate |
| 6853 |
parameter and replace it with local variable of same name. Delete |
| 6854 |
useless pattern matching. |
| 6855 |
|
| 6856 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6857 |
|
| 6858 |
* usage.adb (Usage): Fix enabled-by-default indicators. |
| 6859 |
|
| 6860 |
2024-05-14 Philippe Gil <[email protected]> |
| 6861 |
|
| 6862 |
* libgnat/s-win32.ads (LocalFileTimeToFileTime): Swap parameters. |
| 6863 |
|
| 6864 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6865 |
|
| 6866 |
* restrict.adb (Violation_Of_No_Dependence): Tweak error |
| 6867 |
reporting calls. |
| 6868 |
|
| 6869 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6870 |
|
| 6871 |
* sem_prag.adb (Analyze_Pragma): Adapt call to new signature. |
| 6872 |
* erroutc.ads (Set_Specific_Warning_Off): change signature |
| 6873 |
and update documentation. |
| 6874 |
(Validate_Specific_Warnings): Move ... |
| 6875 |
* errout.adb: ... here and change signature. Also move body |
| 6876 |
of Validate_Specific_Warnings from erroutc.adb. |
| 6877 |
(Finalize): Adapt call. |
| 6878 |
* errout.ads (Set_Specific_Warning_Off): Adapt signature of |
| 6879 |
renaming. |
| 6880 |
* erroutc.adb (Set_Specific_Warning_Off): Adapt signature and |
| 6881 |
body. |
| 6882 |
(Validate_Specific_Warnings): Move to the body of Errout. |
| 6883 |
(Warning_Specifically_Suppressed): Adapt body. |
| 6884 |
|
| 6885 |
2024-05-14 Eric Botcazou <[email protected]> |
| 6886 |
|
| 6887 |
* exp_aggr.adb (Build_Array_Aggr_Code): Pass N in the call to |
| 6888 |
Build_Initialization_Call. |
| 6889 |
(Build_Record_Aggr_Code): Likewise. |
| 6890 |
(Convert_Aggr_In_Object_Decl): Likewise. |
| 6891 |
(Initialize_Discriminants): Likewise. |
| 6892 |
* exp_ch3.ads (Build_Initialization_Call): Replace Loc witn N. |
| 6893 |
* exp_ch3.adb (Build_Array_Init_Proc): Pass N in the call to |
| 6894 |
Build_Initialization_Call. |
| 6895 |
(Build_Default_Initialization): Likewise. |
| 6896 |
(Expand_N_Object_Declaration): Likewise. |
| 6897 |
(Build_Initialization_Call): Replace Loc witn N parameter and add |
| 6898 |
Loc local variable. Build a default subtype for an allocator of |
| 6899 |
a discriminated type with defaulted discriminants. |
| 6900 |
(Build_Record_Init_Proc): Pass the declaration of components in the |
| 6901 |
call to Build_Initialization_Call. |
| 6902 |
* exp_ch6.adb (Make_CPP_Constructor_Call_In_Allocator): Pass the |
| 6903 |
allocator in the call to Build_Initialization_Call. |
| 6904 |
|
| 6905 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6906 |
|
| 6907 |
* sem_warn.adb (Warn_On_Overlapping_Actuals): Fix typo. |
| 6908 |
|
| 6909 |
2024-05-14 Gary Dismukes <[email protected]> |
| 6910 |
|
| 6911 |
* exp_util.adb (Find_Hook_Context): Exclude N_*Aggregate Nkinds |
| 6912 |
of Parent (Par) from the early return in the second loop of the |
| 6913 |
In_Cond_Expr case, to prevent returning an aggregate from this |
| 6914 |
function rather than the enclosing declaration or statement. |
| 6915 |
|
| 6916 |
2024-05-14 Steve Baird <[email protected]> |
| 6917 |
|
| 6918 |
* exp_attr.adb: Replace 6 "not Present" tests with equivalent calls to "No". |
| 6919 |
|
| 6920 |
2024-05-14 Eric Botcazou <[email protected]> |
| 6921 |
|
| 6922 |
* exp_ch3.adb (Expand_N_Object_Declaration): Examine the Expression |
| 6923 |
field after the call to Default_Initialize_Object in order to set |
| 6924 |
Is_Known_Null, as well as Is_Known_Non_Null, on an access object. |
| 6925 |
|
| 6926 |
2024-05-14 Steve Baird <[email protected]> |
| 6927 |
|
| 6928 |
* exp_attr.adb: Change name of package Cached_Streaming_Ops to |
| 6929 |
reflect the fact that it is now also used for Put_Image |
| 6930 |
procedures. Similarly change other "Streaming_Op" names therein. |
| 6931 |
Add Validate_Cached_Candidate procedure to detect case where a |
| 6932 |
subprogram found in the cache cannot be reused. Add new generic |
| 6933 |
procedure Build_And_Insert_Type_Attr_Subp; the "Build" part is |
| 6934 |
handled by just calling a formal procedure; the bulk of this |
| 6935 |
(generic) procedure's code has to with deciding where in the tree |
| 6936 |
to insert the newly-constructed subprogram. Replace each later |
| 6937 |
"Build" call (and the following Insert_Action or |
| 6938 |
Compile_Stream_Body_In_Scope call) with a declare block that |
| 6939 |
instantiates and then calls this generic procedure. Delete the |
| 6940 |
now-unused procedure Compile_Stream_Body_In_Scope. A constructed |
| 6941 |
subprogram is entered in the appropriate cache if the |
| 6942 |
corresponding type is untagged; this replaces more complex tests. |
| 6943 |
A new function Interunit_Ref_OK is added to determine whether an |
| 6944 |
attribute reference occuring in one unit can safely refer to a |
| 6945 |
cached subprogram declared in another unit. |
| 6946 |
* exp_ch3.adb (Build_Predefined_Primitive_Bodies): A formal |
| 6947 |
parameter was deleted, so delete the corresponding actual in a |
| 6948 |
call. |
| 6949 |
* exp_put_image.adb (Build_Array_Put_Image_Procedure): Because the |
| 6950 |
procedure being built may be referenced more than once, the |
| 6951 |
generated procedure takes its source position info from the type |
| 6952 |
declaration instead of the (first) attribute reference. |
| 6953 |
(Build_Record_Put_Image_Procedure): Likewise. |
| 6954 |
* exp_put_image.ads (Build_Array_Put_Image_Procedure): Eliminate |
| 6955 |
now-unused Nod parameter. |
| 6956 |
(Build_Record_Put_Image_Procedure): Eliminate now-unused Loc parameter. |
| 6957 |
* sem_ch3.adb (Constrain_Discriminated_Type): For declaring a |
| 6958 |
subtype with a discriminant constraint, ignore privacy if |
| 6959 |
Comes_From_Source is false (as is already done if Is_Instance is |
| 6960 |
true). |
| 6961 |
* sem_res.adb (Resolve): When passed two type entities that have |
| 6962 |
the same underlying base type, Sem_Type.Covers may return False in |
| 6963 |
some cases because of privacy. [This can happen even if |
| 6964 |
Is_Private_Type returns False both for Etype (N) and for Typ; |
| 6965 |
Covers calls Base_Type, which can take a non-private argument and |
| 6966 |
yield a private result.] If Comes_From_Source (N) is False |
| 6967 |
(e.g., for a compiler-generated Put_Image or streaming subprogram), then |
| 6968 |
avoid that scenario by not calling Covers. Covers already has tests for |
| 6969 |
doing this sort of thing (see the calls therein to Full_View_Covers), |
| 6970 |
but the Comes_From_Source test is too coarse to apply there. So instead |
| 6971 |
we handle the problem here at the call site. |
| 6972 |
(Original_Implementation_Base_Type): A new function. Same as |
| 6973 |
Implementation_Base_Type except if the Original_Node attribute of |
| 6974 |
a non-derived type declaration indicates that it once was a derived |
| 6975 |
type declaration. Needed for looking through privacy. |
| 6976 |
(Valid Conversion): Ignore privacy when converting between different views |
| 6977 |
of the same type if Comes_From_Source is False for the conversion. |
| 6978 |
(Valid_Tagged_Conversion): An ancestor-to-descendant conversion is not an |
| 6979 |
illegal downward conversion if there is no type extension involved |
| 6980 |
(because the derivation was from an untagged view of the parent type). |
| 6981 |
|
| 6982 |
2024-05-14 Steve Baird <[email protected]> |
| 6983 |
|
| 6984 |
* sem_ch5.adb (Analyze_Case_Statement): Emit a message and return |
| 6985 |
early in the case where general case statements are allowed but |
| 6986 |
the selector expression is of a private type. This is done to |
| 6987 |
avoid a bugbox. |
| 6988 |
|
| 6989 |
2024-05-14 Justin Squirek <[email protected]> |
| 6990 |
|
| 6991 |
* sem_util.adb (Set_Referenced_Modified): Use Original_Node to |
| 6992 |
avoid recursive calls on expanded / internal objects such that |
| 6993 |
source nodes get appropriately marked as referenced. |
| 6994 |
|
| 6995 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 6996 |
|
| 6997 |
* sem_warn.adb (Warn_On_Overlapping_Actuals): Stop ignoring |
| 6998 |
warning suppression settings. |
| 6999 |
|
| 7000 |
2024-05-14 Eric Botcazou <[email protected]> |
| 7001 |
|
| 7002 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Pass the alignment |
| 7003 |
parameter in the inner call for a secondary stack allocation too. |
| 7004 |
|
| 7005 |
2024-05-14 Javier Miranda <[email protected]> |
| 7006 |
|
| 7007 |
* sem_ch10.adb (Install_Inherited_Policy_Pragmas): New subprogram. |
| 7008 |
(Remove_Inherited_Policy_Pragmas): New subprogram. |
| 7009 |
(Analyze_Compilation_Unit): Call the new subprograms to |
| 7010 |
install and remove inherited assertion policy pragmas. |
| 7011 |
|
| 7012 |
2024-05-14 Eric Botcazou <[email protected]> |
| 7013 |
|
| 7014 |
* exp_ch4.adb (Expand_N_If_Expression): Set No_Initialization on the |
| 7015 |
declaration of the temporary in the by-reference case. |
| 7016 |
* exp_util.adb (Initialized_By_Access): Delete. |
| 7017 |
(Is_Allocated): Likewise. |
| 7018 |
(Initialized_By_Reference): New predicate. |
| 7019 |
(Is_Finalizable_Transient): If the transient object is of an access |
| 7020 |
type, do not return true unless it is initialized by a reference. |
| 7021 |
|
| 7022 |
2024-05-14 Steve Baird <[email protected]> |
| 7023 |
|
| 7024 |
* exp_attr.adb: Move computation of Accum_Typ entirely into the |
| 7025 |
function Build_Stat. |
| 7026 |
|
| 7027 |
2024-05-14 Steve Baird <[email protected]> |
| 7028 |
|
| 7029 |
* sem_ch12.ads: Declare new Instance_Context package, which |
| 7030 |
declares a private type Context with operations Save_And_Reset and |
| 7031 |
Restore. |
| 7032 |
* sem_ch12.adb: Provide body for new Instance_Context package. |
| 7033 |
* rtsfind.adb (Load_RTU): Wrap an Instance_Context Save/Restore |
| 7034 |
call pair around the call to Semantics. |
| 7035 |
* table.ads: Add initial value for Last_Val (because |
| 7036 |
Save_And_Reset expects Last_Val to be initialized). |
| 7037 |
|
| 7038 |
2024-05-14 Eric Botcazou <[email protected]> |
| 7039 |
|
| 7040 |
* exp_aggr.adb (Build_Record_Aggr_Code): Replace reference to |
| 7041 |
Build_Task_Allocate_Block_With_Init_Stmts in comment with reference |
| 7042 |
to Build_Task_Allocate_Block. |
| 7043 |
(Convert_Aggr_In_Allocator): Likewise for the call in the code. |
| 7044 |
* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Likewise. |
| 7045 |
* exp_ch3.ads: Alphabetize clauses. |
| 7046 |
(Build_Default_Initialization): New function declaration. |
| 7047 |
(Build_Default_Simple_Initialization): Likewise. |
| 7048 |
(Build_Initialization_Call): Add Target_Ref parameter with default. |
| 7049 |
* exp_ch3.adb (Build_Default_Initialization): New function extracted |
| 7050 |
from... |
| 7051 |
(Build_Default_Simple_Initialization): Likewise. |
| 7052 |
(Build_Initialization_Call): Add Target_Ref parameter with default. |
| 7053 |
(Expand_N_Object_Declaration): ...here. |
| 7054 |
(Default_Initialize_Object): Call Build_Default_Initialization and |
| 7055 |
Build_Default_Simple_Initialization. |
| 7056 |
* exp_ch4.adb (Expand_Allocator_Expression): Minor comment tweaks. |
| 7057 |
(Expand_N_Allocator): Call Build_Default_Initialization and |
| 7058 |
Build_Default_Simple_Initialization to implement the default |
| 7059 |
initialization of the allocated object. |
| 7060 |
* exp_ch9.ads (Build_Task_Allocate_Block): Delete. |
| 7061 |
(Build_Task_Allocate_Block_With_Init_Stmts): Rename into... |
| 7062 |
(Build_Task_Allocate_Block): ...this. |
| 7063 |
* exp_ch9.adb: Remove clauses for Exp_Tss. |
| 7064 |
(Build_Task_Allocate_Block): Delete. |
| 7065 |
(Build_Task_Allocate_Block_With_Init_Stmts): Rename into... |
| 7066 |
(Build_Task_Allocate_Block): ...this. |
| 7067 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Remove unnecessary |
| 7068 |
initialization expression, adjust commentary and replace early exit |
| 7069 |
with assertion. |
| 7070 |
* sem_ch4.adb (Analyze_Allocator): In the null-exclusion case, call |
| 7071 |
Apply_Compile_Time_Constraint_Error to insert the raise. |
| 7072 |
|
| 7073 |
2024-05-14 Ronan Desplanques <[email protected]> |
| 7074 |
|
| 7075 |
* styleg.ads (Check_Boolean_Operator): Moved ... |
| 7076 |
* style.ads (Check_Boolean_Operator): ... here. |
| 7077 |
* styleg.adb (Check_Boolean_Operator): Moved ... |
| 7078 |
* style.adb (Check_Boolean_Operator): ... here. Also add node |
| 7079 |
parameter to call to Errout.Error_Msg. |
| 7080 |
|
| 7081 |
2024-05-14 Eric Botcazou <[email protected]> |
| 7082 |
|
| 7083 |
* sprint.adb (Sprint_Node_Actual) <N_Raise_Statement>: Be prepared |
| 7084 |
for an empty Name. |
| 7085 |
<N_Raise_When_Statement>: Likewise. |
| 7086 |
|
| 7087 |
2024-05-14 Yannick Moy <[email protected]> |
| 7088 |
|
| 7089 |
* contracts.adb: Fix references to SPARK RM rules. |
| 7090 |
* freeze.adb: Same. |
| 7091 |
* ghost.adb: Fix references to SPARK RM rules. |
| 7092 |
(Check_Ghost_Context): Update checking of references to |
| 7093 |
ghost entities in assertion expressions. |
| 7094 |
* sem_ch6.adb: Fix references to SPARK RM rules. |
| 7095 |
* sem_prag.adb: Same. |
| 7096 |
|
| 7097 |
2024-05-14 Yannick Moy <[email protected]> |
| 7098 |
|
| 7099 |
* ghost.adb (Mark_And_Set_Ghost_Instantiation): Fix the current |
| 7100 |
Ghost policy for the instantiation. |
| 7101 |
|
| 7102 |
2024-05-14 Eric Botcazou <[email protected]> |
| 7103 |
|
| 7104 |
* exp_ch3.adb (Default_Initialize_Object): Return immediately when |
| 7105 |
either Has_Init_Expression or No_Initialization is set on the node. |
| 7106 |
Tidy up the rest of the code accordingly. |
| 7107 |
(Simple_Initialization_OK): Do not test Has_Init_Expression here. |
| 7108 |
|
| 7109 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7110 |
|
| 7111 |
* accessibility.adb: Remove clauses for Exp_Ch3. |
| 7112 |
* exp_ch3.ads (Init_Proc_Level_Formal): Move declaration to... |
| 7113 |
* exp_ch3.adb (Init_Proc_Level_Formal): Move body to... |
| 7114 |
* exp_util.ads (Init_Proc_Level_Formal): ...here. |
| 7115 |
(Inside_Init_Proc): Alphabetize. |
| 7116 |
* exp_util.adb (Init_Proc_Level_Formal): ...here. |
| 7117 |
|
| 7118 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7119 |
|
| 7120 |
* sem_util.adb (Is_Potentially_Unevaluated): Remove code for |
| 7121 |
recovering the original structure of expressions with AND THEN. |
| 7122 |
|
| 7123 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7124 |
|
| 7125 |
* sem_attr.adb (Attribute_22): Remove Put_Image and Object_Size. |
| 7126 |
* sem_attr.ads (Attribute_Imp_Def): Restore Object_Size. |
| 7127 |
|
| 7128 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7129 |
|
| 7130 |
* exp_ch7.adb: Adjust the description of finalization management. |
| 7131 |
(Build_Finalizer): Rename scope master into master throughout. |
| 7132 |
* rtsfind.ads (RE_Id): Replace RE_Finalization_Scope_Master with |
| 7133 |
RE_Finalization_Master. |
| 7134 |
(RE_Unit_Table): Replace entry for RE_Finalization_Scope_Master with |
| 7135 |
entry for RE_Finalization_Master. |
| 7136 |
* libgnat/s-finpri.ads (Finalization_Scope_Master): Rename into... |
| 7137 |
(Finalization_Master): ...this. |
| 7138 |
(Attach_Object_To_Master): Adjust to above renaming. |
| 7139 |
(Chain_Node_To_Master): Likewise. |
| 7140 |
(Finalize_Master): Likewise. |
| 7141 |
* libgnat/s-finpri.adb (Attach_Object_To_Master): Likewise. |
| 7142 |
(Chain_Node_To_Master): Likewise. |
| 7143 |
(Finalize_Master): Likewise. |
| 7144 |
|
| 7145 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7146 |
|
| 7147 |
* libgnat/s-imaged.ads (System.Image_D): Add Uns formal parameter. |
| 7148 |
* libgnat/s-imaged.adb: Add with clauses for System.Image_I, |
| 7149 |
System.Value_I_Spec and System.Value_U_Spec. |
| 7150 |
(Uns_Spec): New instance of System.Value_U_Spec. |
| 7151 |
(Int_Spec): New instance of System.Value_I_Spec. |
| 7152 |
(Image_I): New instance of System.Image_I. |
| 7153 |
(Set_Image_Integer): New renaming. |
| 7154 |
(Set_Image_Decimal): Replace 'Image with call to Set_Image_Integer. |
| 7155 |
* libgnat/s-imde32.ads (Uns32): New subtype. |
| 7156 |
(Impl): Pass Uns32 as second actual paramter to Image_D. |
| 7157 |
* libgnat/s-imde64.ads (Uns64): New subtype. |
| 7158 |
(Impl): Pass Uns64 as second actual paramter to Image_D. |
| 7159 |
* libgnat/s-imde128.ads (Uns128): New subtype. |
| 7160 |
(Impl): Pass Uns128 as second actual paramter to Image_D. |
| 7161 |
* libgnat/s-imagef.adb (Set_Image_Fixed): Document bounds for the |
| 7162 |
A, D and AF local constants. |
| 7163 |
|
| 7164 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7165 |
|
| 7166 |
* sem_attr.adb (Attribute_22): Add Put_Image and Object_Size. |
| 7167 |
* sem_attr.ads (Attribute_Imp_Def): Remove Object_Size. |
| 7168 |
|
| 7169 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7170 |
|
| 7171 |
* aspects.adb (Copy_Aspects): Style fix. |
| 7172 |
* contracts.adb (Analyze_Contracts): Style fix. |
| 7173 |
(Save_Global_References_In_Contract): Remove extra guards. |
| 7174 |
* par_sco.adb (Traverse_Aspects): Move guard to the caller and |
| 7175 |
make it consistent with Save_Global_References_In_Contract. |
| 7176 |
* sem_ch12.adb (Has_Contracts): Remove extra guards. |
| 7177 |
* sem_ch3.adb (Delayed_Aspect_Present, Get_Partial_View_Aspect, |
| 7178 |
Check_Duplicate_Aspects): Likewise. |
| 7179 |
* sem_disp.adb (Check_Dispatching_Operation): Likewise. |
| 7180 |
|
| 7181 |
2024-05-13 Bob Duff <[email protected]> |
| 7182 |
|
| 7183 |
* errout.adb (Output_Messages): Protect against the total going |
| 7184 |
negative. |
| 7185 |
|
| 7186 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7187 |
|
| 7188 |
* contracts.adb (Append_Enabled_Item): Remove use of Split_PPC; |
| 7189 |
simplify. |
| 7190 |
* gen_il-fields.ads (Opt_Field_Enum): Remove flag definition. |
| 7191 |
* gen_il-gen-gen_nodes.adb (N_Aspect_Specification, N_Pragma): |
| 7192 |
Remove Split_PPC flags. |
| 7193 |
* gen_il-internals.adb (Image): Remove use of Split_PPC. |
| 7194 |
* par_sco.adb (Traverse_Aspects): Likewise. |
| 7195 |
* sem_ch13.adb (Make_Aitem_Pragma): Likewise. |
| 7196 |
* sem_ch6.adb (List_Inherited_Pre_Post_Aspects): Likewise. |
| 7197 |
* sem_prag.adb (Analyze_Pre_Post_Condition, Analyze_Pragma, |
| 7198 |
Find_Related_Declaration_Or_Body): Likewise. |
| 7199 |
* sem_util.adb (Applied_On_Conjunct): Likewise. |
| 7200 |
* sinfo.ads: Remove flag documentation. |
| 7201 |
* treepr.adb (Image): Remove use of Split_PPC. |
| 7202 |
|
| 7203 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7204 |
|
| 7205 |
* exp_ch6.adb (Append_Message): Build the location string from |
| 7206 |
scratch and not rely on the one produced while splitting the |
| 7207 |
aspect into pragmas. |
| 7208 |
* exp_prag.adb (Expand_Pragma_Check): Split pre/post checks in |
| 7209 |
expansion. |
| 7210 |
* sem_ch13.adb (Analyze_Aspect_Specification): Don't split |
| 7211 |
pre/post expressions into conjuncts; don't add message with |
| 7212 |
location to the corresponding pragma. |
| 7213 |
* sem_prag.adb (Build_Pragma_Check_Equivalent): Inherited |
| 7214 |
pragmas no longer have messages that would need to be updated. |
| 7215 |
* sinput.adb (Build_Location_String): Adjust to keep previous |
| 7216 |
messages while using with inherited pragmas. |
| 7217 |
|
| 7218 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7219 |
|
| 7220 |
* contracts.adb (Inherit_Subprogram_Contract): Fix style. |
| 7221 |
* sem_ch5.adb (Analyze_Iterator_Specification): Likewise. |
| 7222 |
|
| 7223 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7224 |
|
| 7225 |
* sem_util.adb (Has_No_Output): Iteration with |
| 7226 |
First_Formal/Next_Formal involves Entity_Ids. |
| 7227 |
|
| 7228 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7229 |
|
| 7230 |
* sem_prag.adb (Analyze_Pragma): When processing pragma |
| 7231 |
Lock_Free, check if restriction No_Implementation_Pragmas is |
| 7232 |
enabled. |
| 7233 |
|
| 7234 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7235 |
|
| 7236 |
* gen_il-fields.ads (Opt_Field_Enum): |
| 7237 |
Remove Is_Expanded_Contract from the list of flags. |
| 7238 |
* gen_il-gen-gen_nodes.adb (N_Contract): Remove |
| 7239 |
Is_Expanded_Contract from the list of N_Contract fields. |
| 7240 |
* sinfo.ads (Is_Expanded_Contract): Remove comments for the flag |
| 7241 |
and its single occurrence in N_Contract. |
| 7242 |
|
| 7243 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7244 |
|
| 7245 |
* exp_ch9.adb (Build_Protected_Subprogram_Body, |
| 7246 |
Build_Protected_Subprogram_Call_Cleanup): Reuse refactored |
| 7247 |
routine. |
| 7248 |
* sem_util.adb |
| 7249 |
(Has_Enabled_Aspect): Refactored repeated code. |
| 7250 |
(Is_Static_Function): Reuse refactored routine. |
| 7251 |
* sem_util.ads (Has_Enabled_Aspect): |
| 7252 |
New query routine refactored from repeated code. |
| 7253 |
|
| 7254 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7255 |
|
| 7256 |
* exp_ch9.adb (Build_Protected_Subprogram_Call_Cleanup): If |
| 7257 |
aspect Exclusive_Functions is present then the cleanup of a |
| 7258 |
protected function now services queued entries, just like the |
| 7259 |
cleanup of a protected procedure. |
| 7260 |
|
| 7261 |
2024-05-13 Bob Duff <[email protected]> |
| 7262 |
|
| 7263 |
* sem_util.ads (Append_Entity_Name): Fix comment to reflect new |
| 7264 |
semantics. The comment said, "The qualification stops at an |
| 7265 |
enclosing scope has no source name (block or loop)." There seems |
| 7266 |
to be no reason for stopping; instead, we should SKIP things with |
| 7267 |
no source name. And the "loop" part was wrong. |
| 7268 |
* sem_util.adb (Append_Entity_Name): Do not stop the recursion; |
| 7269 |
skip to next-outer scope instead. Misc cleanup/simplification. |
| 7270 |
|
| 7271 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7272 |
|
| 7273 |
* libgnat/s-finpri.adb (Finalize): Replace "master" by "collection" |
| 7274 |
in comments and add a comment about the form of the loop. |
| 7275 |
* libgnat/s-stposu.adb (Allocate_Any_Controlled): Tweak comment. |
| 7276 |
|
| 7277 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7278 |
|
| 7279 |
* Makefile.rtl (GNATRTL_NONTASKING_OBJS): Remove s-finmas$(objext). |
| 7280 |
* einfo.ads (Anonymous_Masters): Rename into Anonymous_Collections. |
| 7281 |
(Finalization_Master): Rename into Finalization_Collection. |
| 7282 |
* gen_il-fields.ads (Opt_Field_Enum): Replace Anonymous_Masters |
| 7283 |
with Anonymous_Collections; and Finalization_Master with |
| 7284 |
Finalization_Collection. |
| 7285 |
* gen_il-gen-gen_entities.adb (Access_Kind): Likewise. |
| 7286 |
(E_Function): Likewise. |
| 7287 |
(E_Procedure): Likewise. |
| 7288 |
(E_Package): Likewise. |
| 7289 |
(E_Subprogram_Body): Likewise. |
| 7290 |
* exp_ch3.adb (Build_Heap_Or_Pool_Allocator): Adjust to renamings. |
| 7291 |
(Freeze_Type): Likewise. |
| 7292 |
(Stream_Operation_OK): Remove obsolete test. |
| 7293 |
* exp_ch4.adb (Expand_Allocator_Expression): Adjust to renamings. |
| 7294 |
(Expand_N_Allocator): Likewise. |
| 7295 |
* exp_ch6.ads (BIP_Formal_Kind): Replace BIP_Finalization_Master |
| 7296 |
with BIP_Collection. |
| 7297 |
(Needs_BIP_Finalization_Master): Rename into... |
| 7298 |
(Needs_BIP_Collection): ...this. |
| 7299 |
* exp_ch6.adb (BIP_Finalization_Master_Suffix): Delete. |
| 7300 |
(BIP_Collection_Suffix): New constant string. |
| 7301 |
(Add_Finalization_Master_Actual_To_Build_In_Place_Call): Rename to |
| 7302 |
(Add_Collection_Actual_To_Build_In_Place_Call): ...this and adjust. |
| 7303 |
(BIP_Formal_Suffix): Replace BIP_Finalization_Master alternative |
| 7304 |
with BIP_Collection alternative. |
| 7305 |
(BIP_Suffix_Kind): Replace test on BIP_Finalization_Master_Suffix |
| 7306 |
with test on BIP_Collection_Suffix. |
| 7307 |
(Is_Build_In_Place_Entity): Likewise. |
| 7308 |
(Make_Build_In_Place_Call_In_Allocator): Call Needs_BIP_Collection |
| 7309 |
and Add_Collection_Actual_To_Build_In_Place_Call. |
| 7310 |
(Make_Build_In_Place_Call_In_Anonymous_Context): Likewise. |
| 7311 |
(Make_Build_In_Place_Call_In_Assignment): Likewise. |
| 7312 |
(Make_Build_In_Place_Call_In_Object_Declaration): Likewise. |
| 7313 |
(Needs_BIP_Finalization_Master): Rename into... |
| 7314 |
(Needs_BIP_Collection): ...this. |
| 7315 |
(Needs_BIP_Alloc_Form): Call Needs_BIP_Collection. |
| 7316 |
* exp_ch7.ads (Build_Anonymous_Master): Rename into... |
| 7317 |
(Build_Anonymous_Collection): ...this. |
| 7318 |
(Build_Finalization_Master): Rename into... |
| 7319 |
(Build_Finalization_Collection): ...this. |
| 7320 |
* exp_ch7.adb (Allows_Finalization_Master): Rename into... |
| 7321 |
(Allows_Finalization_Collection): ...this. |
| 7322 |
(Build_BIP_Cleanup_Stmts): Adjust to renamings. |
| 7323 |
(Build_Anonymous_Master): Rename into... |
| 7324 |
(Build_Anonymous_Collection): ...this. Adjust to renamings. |
| 7325 |
(Build_Finalization_Master): Rename into... |
| 7326 |
(Build_Finalization_Collection): ...this. Adjust to renamings. |
| 7327 |
(Build_Finalizer): Adjust comment to renamings. |
| 7328 |
* exp_ch13.adb (Expand_N_Free_Statement): Adjust to renamings. |
| 7329 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Likewise. |
| 7330 |
(Requires_Cleanup_Actions): Adjust comment to renamings. |
| 7331 |
* freeze.adb (Freeze_All): Likewise. |
| 7332 |
* rtsfind.ads (RTU_Id): Remove System_Finalization_Masters. |
| 7333 |
(RE_Id): Remove RE_Finalization_Master & RE_Finalization_Master_Ptr |
| 7334 |
add RE_Finalization_Collection & RE_Finalization_Collection_Ptr. |
| 7335 |
Adjust RE_Add_Offset_To_Address and RE_Finalization_Scope_Master. |
| 7336 |
(RE_Unit_Table): Remove entries for RE_Finalization_Master & |
| 7337 |
RE_Finalization_Master_Ptr, add ones for RE_Finalization_Collection |
| 7338 |
& RE_Finalization_Collection_Ptr. Also adjust those of |
| 7339 |
RE_Add_Offset_To_Address and RE_Finalization_Scope_Master. |
| 7340 |
* sem_ch3.adb (Access_Type_Declaration): Adjust to renamings. |
| 7341 |
* sem_ch6.adb (Create_Extra_Formals): Likewise. |
| 7342 |
* sem_util.adb (Designated_Subtype_Mark): Likewise. |
| 7343 |
* libgnat/s-finpri.ads: Add clauses for Ada.Finalization and |
| 7344 |
System.Storage_Elements. |
| 7345 |
(Finalization_Collection): New limited controlled type. |
| 7346 |
(Finalization_Collection_Ptr): Likewise. |
| 7347 |
(Initialize): New overriding procedure. |
| 7348 |
(Finalize): Likewise. |
| 7349 |
(Finalization_Started): Likewise. |
| 7350 |
(Collection_Node): New type. |
| 7351 |
(Collection_Node_Ptr): Likewise. |
| 7352 |
(Attach_Node_To_Collection): New procedure. |
| 7353 |
(Detach_Node_From_Collection): Likewise. |
| 7354 |
(Header_Size): New function. |
| 7355 |
(Add_Offset_To_Address): Likewise. |
| 7356 |
* libgnat/s-finpri.adb (Add_Offset_To_Address): New function. |
| 7357 |
(Attach_Node_To_Collection): New procedure. |
| 7358 |
(Detach_Node_From_Collection): Likewise. |
| 7359 |
(Finalization_Started): Likewise. |
| 7360 |
(Finalize): New overriding procedure. |
| 7361 |
(Header_Size): New function. |
| 7362 |
(Initialize): New overriding procedure. |
| 7363 |
* libgnat/s-spsufi.ads (Finalize_And_Deallocate): Adjust comment. |
| 7364 |
* libgnat/s-spsufi.adb: Remove clause for Finalization_Masters and |
| 7365 |
add clause for Finalization_Primitives. |
| 7366 |
(Finalize_And_Deallocate): Finalize the Collection component. |
| 7367 |
* libgnat/s-stposu.ads: Remove clause for Finalization_Masters and |
| 7368 |
add clause for Finalization_Primitives. |
| 7369 |
(Root_Subpool): Replace Master component with Collection. |
| 7370 |
(Allocate_Any_Controlled): Replace Context_Master parameter with |
| 7371 |
Context_Collection parameter. |
| 7372 |
* libgnat/s-stposu.adb: Remove clauses for Finalization_Masters and |
| 7373 |
add clauses for Finalization_Primitives. |
| 7374 |
(Address_To_FM_Node_Ptr): Delete. |
| 7375 |
(To_Collection_Node_Ptr): New instance of Ada.Unchecked_Conversion. |
| 7376 |
(Adjust_Controlled_Dereference): Adjust comment to renamings. |
| 7377 |
(Allocate_Any_Controlled): Replace Context_Master parameter with |
| 7378 |
Context_Collection parameter. Adjust to renamings. |
| 7379 |
(Deallocate_Any_Controlled): Adjust to renamings. |
| 7380 |
(Print_Subpool): Likewise. |
| 7381 |
* libgnat/s-finmas.ads: Delete. |
| 7382 |
* libgnat/s-finmas.adb: Likewise. |
| 7383 |
|
| 7384 |
2024-05-13 Ashley Gay <[email protected]> |
| 7385 |
|
| 7386 |
* Makefile.rtl: remove i-vxinco.* from the build |
| 7387 |
* doc/gnat_rm/the_gnat_library.rst: Remove i-vxinco.ads from |
| 7388 |
the units documentation. |
| 7389 |
* impunit.adb: Remove i-vxinco from the list of available units |
| 7390 |
in GNATstudio. |
| 7391 |
* libgnarl/i-vxinco.adb: Remove. |
| 7392 |
* libgnarl/i-vxinco.ads: Ditto. |
| 7393 |
* libgnarl/s-interr__vxworks.adb: enrich comment |
| 7394 |
* libgnarl/s-vxwext__kernel.ads: fix comment |
| 7395 |
* libgnat/i-vxwork.ads: Remove deprecated interrupt connections |
| 7396 |
API, as well as an example. |
| 7397 |
* libgnat/i-vxwork__x86.ads: Ditto and add the paragma |
| 7398 |
Obscolescent to Attach_Handler |
| 7399 |
* gnat_rm.texi: Regenerate. |
| 7400 |
|
| 7401 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7402 |
|
| 7403 |
* exp_ch3.adb (Build_Heap_Or_Pool_Allocator): Use the BIPstoragepool |
| 7404 |
formal parameter to retrieve the pool in the presence of a master. |
| 7405 |
* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Always pass |
| 7406 |
a pool reference along with the master reference. |
| 7407 |
(Make_Build_In_Place_Call_In_Object_Declaration): Likewise. |
| 7408 |
* exp_ch7.adb (Build_BIP_Cleanup_Stmts): Use the BIPstoragepool |
| 7409 |
formal parameter to retrieve the pool in the presence of a master. |
| 7410 |
(Create_Anonymous_Master): Do not call Set_Base_Pool. |
| 7411 |
(Build_Finalization_Master): Likewise. |
| 7412 |
* rtsfind.ads (RE_Id): Remove RE_Base_Pool and RE_Set_Base_Pool. |
| 7413 |
(RE_Unit_Table): Remove associated entries. |
| 7414 |
* libgnat/s-finmas.ads: Remove clause for System.Storage_Pools. |
| 7415 |
(Any_Storage_Pool_Ptr): Delete. |
| 7416 |
(Finalization_Master): Remove Base_Pool component. |
| 7417 |
(Base_Pool): Delete. |
| 7418 |
(Set_Base_Pool): Likewise. |
| 7419 |
* libgnat/s-finmas.adb (Base_Pool): Likewise. |
| 7420 |
(Set_Base_Pool): Likewise. |
| 7421 |
(Print_Master): Do not print Base_Pool. |
| 7422 |
|
| 7423 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7424 |
|
| 7425 |
* exp_ch6.adb (Add_Unconstrained_Actuals_To_Build_In_Place_Call): |
| 7426 |
Rename Pool_Actual into Pool_Exp and use Empty as default value. |
| 7427 |
(Add_Finalization_Master_Actual_To_Build_In_Place_Call): Change the |
| 7428 |
names of the first two parameters and use a simpler code structure. |
| 7429 |
(Make_Build_In_Place_Call_In_Allocator): Rename the local variable |
| 7430 |
for the pool actual and set it to Empty if it is not used. |
| 7431 |
(Make_Build_In_Place_Call_In_Object_Declaration): Rename the local |
| 7432 |
variable for the master actual. |
| 7433 |
|
| 7434 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7435 |
|
| 7436 |
* exp_ch3.adb (Expand_N_Object_Declaration): In the case of a |
| 7437 |
return object of a BIP function that needs finalization, save |
| 7438 |
the assignment statement made to initialize it, if any. |
| 7439 |
* exp_ch6.ads (BIP_Formal_Kind): Adjust description. |
| 7440 |
* exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Make a |
| 7441 |
couple of adjustments to the commentary. |
| 7442 |
(Needs_BIP_Alloc_Form): Also return true if the function needs |
| 7443 |
a BIP_Finalization_Master parameter. |
| 7444 |
* exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove now always true |
| 7445 |
test on Needs_BIP_Alloc_Form. |
| 7446 |
(Attach_Object_To_Master_Node): Remove duplication in comment. |
| 7447 |
|
| 7448 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7449 |
|
| 7450 |
* sem_util.adb (Get_Index_Bounds): Guard against missing Entity, |
| 7451 |
which happens on illegal constrained type declaration. |
| 7452 |
|
| 7453 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7454 |
|
| 7455 |
* sem_attr.adb (Eval_Attribute): Treat Alignment like Component_Size |
| 7456 |
for array types. |
| 7457 |
|
| 7458 |
2024-05-13 Steve Baird <[email protected]> |
| 7459 |
|
| 7460 |
* sem_case.adb: Replace all tests of Core_Extensions_Allowed with |
| 7461 |
corresponding tests of All_Extensions_Allowed. |
| 7462 |
* sem_ch5.adb: Likewise. |
| 7463 |
* doc/gnat_rm/gnat_language_extensions.rst: update documentation. |
| 7464 |
* gnat_rm.texi: Regenerate. |
| 7465 |
|
| 7466 |
2024-05-13 Eric Botcazou <[email protected]> |
| 7467 |
|
| 7468 |
* sem_ch13.adb (New_Put_Image_Subprogram): In the nondeferred case |
| 7469 |
coming from an aspect and for a type with delaying freezing, also |
| 7470 |
freeze the subprogram immediately. |
| 7471 |
|
| 7472 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7473 |
|
| 7474 |
* libgnat/a-direct.adb (Start_Search_Internal): Combine subtype |
| 7475 |
and object declaration. |
| 7476 |
* libgnat/g-dirope.adb (Read): Replace convoluted unchecked |
| 7477 |
conversion with an overlay. |
| 7478 |
|
| 7479 |
2024-05-13 Piotr Trojanek <[email protected]> |
| 7480 |
|
| 7481 |
* libgnat/g-dirope.adb (Read): Use null-excluding, |
| 7482 |
access-to-constant type; replace element-by-element copy with |
| 7483 |
array assignments. |
| 7484 |
|
| 7485 |
2024-05-13 Gary Dismukes <[email protected]> |
| 7486 |
|
| 7487 |
* exp_aggr.adb (Expand_Container_Aggregate): Move determination of |
| 7488 |
whether the aggregate is an indexed aggregate earlier in the |
| 7489 |
procedure. Test Is_Indexed_Aggregate as a criterion for generating |
| 7490 |
a call to the container type's New_Indexed function, add proper |
| 7491 |
computation of bounds to pass in to the function, and remove later |
| 7492 |
code for generating such a call. Add and improve comments. |
| 7493 |
(Aggregate_Size): Remove special treatment of case where there is |
| 7494 |
exactly one component association, and instead loop over all |
| 7495 |
component associations to determine whether any of them have a |
| 7496 |
nonstatic length. If there is at least one such nonstatic |
| 7497 |
association, return -1. |
| 7498 |
(Build_Siz_Exp): Accumulate a sum of the sizes of each of the |
| 7499 |
component associations in Siz_Exp (which will only be used if |
| 7500 |
there any associations that are of Nkind |
| 7501 |
N_Iterated_Component_Association with a nonstatic range). |
| 7502 |
(Expand_Range_Component): Fix typos in the procedure's spec |
| 7503 |
comment and block comment. |
| 7504 |
|
| 7505 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7506 |
|
| 7507 |
* sem_util.adb (Number_Of_Elements_In_Array): Fix counting of |
| 7508 |
elements in null arrays; remove redundant parenthesis; avoid |
| 7509 |
run-time conversion of 1 to universal integer. |
| 7510 |
|
| 7511 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7512 |
|
| 7513 |
* lib.ads, lib.adb (Primary_Stack_Count, Sec_Stack_Count, |
| 7514 |
Increment_Primary_Stack_Count, Increment_Sec_Stack_Count, |
| 7515 |
Unit_Record): Stack counts are never negative. |
| 7516 |
* ali.ads (Unit_Record): Likewise. |
| 7517 |
* bindgen.adb (Num_Primary_Stacks, Num_Sec_Stacks): Likewise. |
| 7518 |
* exp_ch3.adb (Count_Default_Sized_Task_Stacks): Likewise. |
| 7519 |
* sem_util.ads, sem_util.adb (Number_Of_Elements_In_Array): |
| 7520 |
Likewise. |
| 7521 |
|
| 7522 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7523 |
|
| 7524 |
* exp_ch3.adb (Count_Default_Sized_Task_Stacks): Do not look for |
| 7525 |
tasks inside record discriminants; remove avoid repeated call to |
| 7526 |
Has_Task that happened for record components. |
| 7527 |
(Expand_N_Object_Declaration): Use high-level routine to detect |
| 7528 |
array types and subtypes; remove unused initial values. |
| 7529 |
|
| 7530 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7531 |
|
| 7532 |
* exp_aggr.ads (Static_Array_Aggregate): Fix typo in comment. |
| 7533 |
|
| 7534 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7535 |
|
| 7536 |
* inline.adb (Has_Single_Return): Remove redundant check for |
| 7537 |
empty list, because First works also for empty list. |
| 7538 |
|
| 7539 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7540 |
|
| 7541 |
* exp_ch4.adb (Useful): Remove redundant check for empty list, |
| 7542 |
because iteration with First works also for empty list; rename |
| 7543 |
local variable from L to Action. |
| 7544 |
|
| 7545 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7546 |
|
| 7547 |
* inline.adb (Has_Formal_With_Per_Object_Constrained_Component): |
| 7548 |
Use flag Has_Per_Object_Constraint which is set by analysis; |
| 7549 |
rename for consistency. |
| 7550 |
|
| 7551 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7552 |
|
| 7553 |
* sem_attr.adb (Analyze_Access_Attribute): Replace loop with |
| 7554 |
Current_Scope_No_Loops. |
| 7555 |
|
| 7556 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7557 |
|
| 7558 |
* sem_attr.adb (Analyze_Access_Attribute): Move code to IF |
| 7559 |
branch where its result is used. |
| 7560 |
|
| 7561 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7562 |
|
| 7563 |
* sem_attr.adb (Analyze_Access_Attribute): Prevent search from |
| 7564 |
going too far. |
| 7565 |
* sem_ch3.adb (Analyze_Component_Declaration): Remove |
| 7566 |
Contains_POC; reuse Has_Discriminant_Dependent_Constraint. |
| 7567 |
|
| 7568 |
2024-05-07 Eric Botcazou <[email protected]> |
| 7569 |
|
| 7570 |
* einfo.ads (Pending_Access_Types): Delete. |
| 7571 |
* exp_ch3.adb (Freeze_Type.Process_Pending_Access_Types): Likewise. |
| 7572 |
(Freeze_Type): Do not call Process_Pending_Access_Types. |
| 7573 |
* exp_ch7.ads (Make_Set_Finalize_Address_Call): Delete. |
| 7574 |
* exp_ch7.adb (Build_Finalization_Master.Add_Pending_Access_Type): |
| 7575 |
Delete. |
| 7576 |
(Build_Finalization_Master): Do not set Finalize_Address on the |
| 7577 |
master or call Add_Pending_Access_Type. |
| 7578 |
(Make_Set_Finalize_Address_Call): Delete. |
| 7579 |
* gen_il-fields.ads (Opt_Field_Enum): Remove Pending_Access_Types. |
| 7580 |
* gen_il-gen-gen_entities.adb (Type_Kind): Likewise. |
| 7581 |
* rtsfind.ads (RE_Id): Remove RE_Set_Finalize_Address. |
| 7582 |
(RE_Unit_Table): Likewise. |
| 7583 |
* sem_ch3.adb (Analyze_Full_Type_Declaration): Do not deal with |
| 7584 |
pending access types. |
| 7585 |
* libgnat/s-finmas.ads (Attach_Unprotected): Add Finalize_Address |
| 7586 |
second parameter. |
| 7587 |
(Delete_Finalize_Address_Unprotected): Delete. |
| 7588 |
(Finalize_Address): Likewise. |
| 7589 |
(Finalize_Address_Unprotected): Likewise. |
| 7590 |
(Is_Homogeneous): Likewise. |
| 7591 |
(Set_Finalize_Address): Likewise. |
| 7592 |
(Set_Finalize_Address_Unprotected): Likewise. |
| 7593 |
(Set_Heterogeneous_Finalize_Address_Unprotected): Likewise. |
| 7594 |
(Set_Is_Heterogeneous): Likewise. |
| 7595 |
(FM_Node): Add Finalize_Address component. |
| 7596 |
(Finalization_Master): Remove Is_Homogeneous and Finalize_Address |
| 7597 |
components. |
| 7598 |
* libgnat/s-finmas.adb: Remove with & use clauses for System.HTable. |
| 7599 |
(Finalize_Address_Table): Delete. |
| 7600 |
(Attach_Unprotected): Add Finalize_Address second parameter and save |
| 7601 |
its value in the Finalize_Address field of the node. |
| 7602 |
(Delete_Finalize_Address_Unprotected): Delete. |
| 7603 |
(Finalize): Call Finalize_Address saved in the nodes. |
| 7604 |
(Finalize_Address): Delete. |
| 7605 |
(Finalize_Address_Unprotected): Likewise. |
| 7606 |
(Hash): Likewise. |
| 7607 |
(Is_Homogeneous): Likewise. |
| 7608 |
(Print_Master): Adjust. |
| 7609 |
(Set_Finalize_Address): Delete. |
| 7610 |
(Set_Finalize_Address_Unprotected): Likewise. |
| 7611 |
(Set_Heterogeneous_Finalize_Address_Unprotected): Likewise. |
| 7612 |
(Set_Is_Heterogeneous): Likewise. |
| 7613 |
* libgnat/s-stposu.adb (Finalize_Address_Table_In_Use): Likewise. |
| 7614 |
(Allocate_Any_Controlled): Pass Fin_Address to Attach_Unprotected |
| 7615 |
and remove obsolete processing. |
| 7616 |
(Deallocate_Any_Controlled): Remove obsolete processing. |
| 7617 |
(Set_Pool_Of_Subpool): Do not call Set_Is_Heterogeneous. |
| 7618 |
|
| 7619 |
2024-05-07 Joffrey Huguet <[email protected]> |
| 7620 |
|
| 7621 |
* libgnat/a-ngelfu.ads (Sqrt): Add Global contracts. |
| 7622 |
(Log): Likewise. |
| 7623 |
(Exp): Likewise. |
| 7624 |
("**"): Likewise. |
| 7625 |
(Sin): Likewise. |
| 7626 |
(Cos): Likewise. |
| 7627 |
(Tan): Likewise. |
| 7628 |
(Cot): Likewise. |
| 7629 |
(Arcsin): Likewise. |
| 7630 |
(Arccos): Likewise. |
| 7631 |
(Arctan): Likewise. |
| 7632 |
(Arccot): Likewise. |
| 7633 |
(Sinh): Likewise. |
| 7634 |
(Cosh): Likewise. |
| 7635 |
(Tanh): Likewise. |
| 7636 |
(Coth): Likewise. |
| 7637 |
(Arcsinh): Likewise. |
| 7638 |
(Arccosh): Likewise. |
| 7639 |
(Arctanh): Likewise. |
| 7640 |
(Arccoth): Likewise. |
| 7641 |
|
| 7642 |
2024-05-07 Eric Botcazou <[email protected]> |
| 7643 |
|
| 7644 |
* einfo.ads (Postconditions_Proc): Delete. |
| 7645 |
* gen_il-fields.ads (Opt_Field_Enum): Remove Postconditions_Proc. |
| 7646 |
* gen_il-gen-gen_entities.adb (E_Function): Likewise. |
| 7647 |
(E_Procedure): Likewise. |
| 7648 |
(E_Entry): Likewise. |
| 7649 |
(E_Entry_Family): Likewise. |
| 7650 |
|
| 7651 |
2024-05-07 Ronan Desplanques <[email protected]> |
| 7652 |
|
| 7653 |
* sinfo.ads: Fix typo. |
| 7654 |
|
| 7655 |
2024-05-07 Bob Duff <[email protected]> |
| 7656 |
|
| 7657 |
* exp_attr.adb (Attribute_Old): The 'Old attribute we are |
| 7658 |
processing here is in a postcondition, which cannot be inside the |
| 7659 |
"Wrapped_Statements" of the subprogram with that postcondition. So |
| 7660 |
remove the loop labeled "Climb the parent chain looking for |
| 7661 |
subprogram _Wrapped_Statements". The only way this loop could find |
| 7662 |
a Subp is if we are nested inside a subprogram that also has a |
| 7663 |
postcondition, and in that case we would find the wrong (outer) |
| 7664 |
one. In any case, Subp is set to Empty after the loop, so all |
| 7665 |
subsequent tests for Present (Subp) are necessarily False; remove |
| 7666 |
them and the corresponding code. Set Ins_Node unconditionally (to |
| 7667 |
the right thing). Remove obsolete comments. |
| 7668 |
* sem_util.adb (Determining_Expressions): Fix assertion; |
| 7669 |
Pragma_Test_Case was missing. |
| 7670 |
(Eligible_For_Conditional_Evaluation): Fix assert that could fail |
| 7671 |
in case of errors. |
| 7672 |
* libgnat/s-valspe.ads: Remove pragma Unevaluated_Use_Of_Old; |
| 7673 |
there are no uses of 'Old in this package. |
| 7674 |
|
| 7675 |
2024-05-07 Yannick Moy <[email protected]> |
| 7676 |
|
| 7677 |
* libgnat/a-strsea.adb (Index): Add assertions. |
| 7678 |
* libgnat/a-strsup.ads ("="): Remove useless precondition. |
| 7679 |
* libgnat/s-aridou.adb (Prove_Rounding_Case): Add assertions. |
| 7680 |
(Lemma_Shift_Right): Add call to lemma. |
| 7681 |
* libgnat/s-arit32.adb (Prove_Rounding_Case): Add assertion. |
| 7682 |
(Prove_ Signs): Add assertions. |
| 7683 |
(Scaled_Divide32): Add assertions. |
| 7684 |
|
| 7685 |
2024-05-07 Steve Baird <[email protected]> |
| 7686 |
|
| 7687 |
* sem_prag.adb (Analyze_Pragma): Restructure the loop over |
| 7688 |
possible resolutions of a No_Return pragma's argument so that |
| 7689 |
functions (and generic functions) are not processed until after it |
| 7690 |
is known whether there is a non-function candidate resolution. For |
| 7691 |
a pre-2022 Ada version, terminate the iteration before processing |
| 7692 |
functions if a non-function resolution is found. |
| 7693 |
|
| 7694 |
2024-05-07 Eric Botcazou <[email protected]> |
| 7695 |
|
| 7696 |
* libgnat/g-socthi.ads (C_Bind): Turn into inline function. |
| 7697 |
(C_Getpeername): Likewise. |
| 7698 |
(C_Getsockname): Likewise. |
| 7699 |
(C_Getsockopt): Likewise. |
| 7700 |
(C_Setsockopt): Likewise. |
| 7701 |
(Nonreentrant_Gethostbyaddr): Likewise. |
| 7702 |
* libgnat/g-socthi.adb (Syscall_Accept): Adjust profile. |
| 7703 |
(Syscall_Connect): Likewise. |
| 7704 |
(Syscall_Recvfrom): Likewise. |
| 7705 |
(Syscall_Sendto): Likewise. |
| 7706 |
(C_Bind): New function. |
| 7707 |
(C_Accept): Adjust to above change for profiles. |
| 7708 |
(C_Connect): Likewise. |
| 7709 |
(C_Getpeername): New function. |
| 7710 |
(C_Getsockname): Likewise. |
| 7711 |
(C_Getsockopt): Likewise. |
| 7712 |
(C_Recvfrom): Adjust to above change for profiles. |
| 7713 |
(C_Setsockopt): New function. |
| 7714 |
(Nonreentrant_Gethostbyaddr): Likewise. |
| 7715 |
|
| 7716 |
2024-05-07 Bob Duff <[email protected]> |
| 7717 |
|
| 7718 |
* par-ch3.adb (P_Component_Items): Move P_Aspect_Specifications |
| 7719 |
into the loop, so aspects can be attached to multiple component |
| 7720 |
declarations. |
| 7721 |
(P_Type_Declaration, P_Subtype_Declaration) |
| 7722 |
(P_Known_Discriminant_Part_Opt): Remove default for Semicolon in |
| 7723 |
calls to P_Aspect_Specifications. |
| 7724 |
* gen_il-gen-gen_nodes.adb (N_Discriminant_Specification): Add |
| 7725 |
Aspect_Specifications field to N_Discriminant_Specification, which |
| 7726 |
was missing. |
| 7727 |
* aspects.adb (Has_Aspect_Specifications_Flag): Make it True for |
| 7728 |
N_Discriminant_Specification. |
| 7729 |
* par-ch13.adb: Remove default for Semicolon in calls to |
| 7730 |
P_Aspect_Specifications. |
| 7731 |
(Get_Aspect_Specifications): Misc cleanup. |
| 7732 |
(P_Aspect_Specifications): Remove comment. It's not clear what |
| 7733 |
"the flag" is referring to, but anyway the first part of the |
| 7734 |
comment is obvious, and the second part is apparently obsolete. |
| 7735 |
Misc cleanup. |
| 7736 |
* par.adb (P_Aspect_Specifications, Get_Aspect_Specifications): |
| 7737 |
Remove default for Semicolon; calls are more readable that way. |
| 7738 |
Improve comments. |
| 7739 |
* par-ch12.adb: Remove default for Semicolon in calls to |
| 7740 |
P_Aspect_Specifications. |
| 7741 |
* par-ch6.adb: Likewise. |
| 7742 |
* par-ch7.adb: Likewise. |
| 7743 |
* par-ch9.adb: Likewise. |
| 7744 |
* par-endh.adb: Likewise. |
| 7745 |
|
| 7746 |
2024-05-07 Justin Squirek <[email protected]> |
| 7747 |
|
| 7748 |
* sem_prag.adb (Defer_Compile_Time_Warning_Error_To_BE): Better |
| 7749 |
handle itypes such that the tree copy required for the expansion |
| 7750 |
of the pragma doesn't cause ordering problems with internal names. |
| 7751 |
|
| 7752 |
2024-05-07 Yannick Moy <[email protected]> |
| 7753 |
|
| 7754 |
* sem_res.adb (Resolve_Actuals): Add range check flag. |
| 7755 |
|
| 7756 |
2024-05-07 Yannick Moy <[email protected]> |
| 7757 |
|
| 7758 |
* sem_util.adb (Find_Placement_In_State_Space): Stop search for |
| 7759 |
placement when reaching the public state of a generic package. |
| 7760 |
|
| 7761 |
2024-05-07 Javier Miranda <[email protected]> |
| 7762 |
|
| 7763 |
* sem_ch3.adb (Check_Return_Subtype_Indication): Add missing check |
| 7764 |
on statically compatible subtypes. |
| 7765 |
* sem_eval.adb (Subtypes_Statically_Compatible): Ensure that both |
| 7766 |
types are either scalar types or access types to evaluate this |
| 7767 |
predicate. |
| 7768 |
|
| 7769 |
2024-05-07 Bob Duff <[email protected]> |
| 7770 |
|
| 7771 |
* sem_ch13.adb (Resolve_Name): Clarify comment. |
| 7772 |
|
| 7773 |
2024-05-07 Bob Duff <[email protected]> |
| 7774 |
|
| 7775 |
* sem_ch13.adb (Resolve_Name): This is called only for names in |
| 7776 |
aspect_specifications. If the name is an overloaded |
| 7777 |
selected_component, reset the Entity. Note that this was already |
| 7778 |
done for N_Identifier in the code just below. |
| 7779 |
|
| 7780 |
2024-05-07 Eric Botcazou <[email protected]> |
| 7781 |
|
| 7782 |
* repinfo.adb (List_Record_Info.List_Structural_Record_Layout): Add |
| 7783 |
another guard for private types after retrieving the parent in the |
| 7784 |
extension case. |
| 7785 |
|
| 7786 |
2024-05-07 Yannick Moy <[email protected]> |
| 7787 |
|
| 7788 |
* sem_util.adb (Is_Volatile_Function): Return True on functions |
| 7789 |
with side effects. |
| 7790 |
|
| 7791 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7792 |
|
| 7793 |
* sem_prag.adb (Analyze_Global_Item): Handle side-effect |
| 7794 |
functions like procedures. |
| 7795 |
|
| 7796 |
2024-05-07 Piotr Trojanek <[email protected]> |
| 7797 |
|
| 7798 |
* sem_prag.adb (Collect_Global_Item): Update comment. |
| 7799 |
|
| 7800 |
2024-05-06 Piotr Trojanek <[email protected]> |
| 7801 |
|
| 7802 |
* sem_prag.adb (Collect_Global_Item): Handle functions with |
| 7803 |
side-effects. |
| 7804 |
|
| 7805 |
2024-05-06 Piotr Trojanek <[email protected]> |
| 7806 |
|
| 7807 |
* sem_prag.adb (Collect_Global_Item): Move code. |
| 7808 |
|
| 7809 |
2024-05-06 Piotr Trojanek <[email protected]> |
| 7810 |
|
| 7811 |
* sem_prag.adb (Find_Role): Handle functions with side-effects |
| 7812 |
like procedures. |
| 7813 |
|
| 7814 |
2024-05-06 Gary Dismukes <[email protected]> |
| 7815 |
|
| 7816 |
* exp_ch6.adb |
| 7817 |
(Make_Build_In_Place_Iface_Call_In_Object_Declaration): Set the |
| 7818 |
Is_Return_Object flag on the entity of the temp object created to |
| 7819 |
hold the BIP call result, from the flag on the passed-in object |
| 7820 |
declaration's entity. Update copyright notice to 2024. |
| 7821 |
|
| 7822 |
2024-05-06 Bob Duff <[email protected]> |
| 7823 |
|
| 7824 |
* sem_ch10.adb (Expand_With_Clause): Misc cleanup. |
| 7825 |
(Install_Private_With_Clauses): Avoid installing a private |
| 7826 |
with_clause that comes from an instantiated generic |
| 7827 |
(it is marked as Implicit_With, but doesn't come from a parent |
| 7828 |
with). Fix typo in comment, and other minor cleanups. |
| 7829 |
|
| 7830 |
2024-05-06 Ronan Desplanques <[email protected]> |
| 7831 |
|
| 7832 |
* sem_util.adb (Build_Default_Subtype): Tweak source location |
| 7833 |
information. |
| 7834 |
|
| 7835 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7836 |
|
| 7837 |
* exp_ch7.adb (Build_Finalizer.Process_Declarations): Do not call |
| 7838 |
Processing_Actions for simple protected objects if the profile is |
| 7839 |
restricted. |
| 7840 |
* exp_util.adb (Requires_Cleanup_Actions): Do not return True for |
| 7841 |
simple protected objects if the profile is restricted. |
| 7842 |
|
| 7843 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7844 |
|
| 7845 |
* fe.h: Remove unused declarations and add 'extern' to others. |
| 7846 |
|
| 7847 |
2024-05-06 Piotr Trojanek <[email protected]> |
| 7848 |
|
| 7849 |
* einfo-utils.adb (Is_Relaxed_Initialization_State): Remove. |
| 7850 |
* einfo-utils.ads (Is_Relaxed_Initialization_State): Remove. |
| 7851 |
* einfo.ads: Remove description of removed aspect. |
| 7852 |
* fe.h (Is_Relaxed_Initialization_State): Remove. |
| 7853 |
* sem_prag.adb (Analyze_Abstract_State): Remove support for |
| 7854 |
Relaxed_Initialization. |
| 7855 |
* sem_util.adb (Has_Relaxed_Initialization): Likewise. |
| 7856 |
* sem_util.ads (Has_Relaxed_Initialization): Likewise. |
| 7857 |
|
| 7858 |
2024-05-06 Justin Squirek <[email protected]> |
| 7859 |
|
| 7860 |
* sem_warn.adb (Within_Postcondition): Add coverage for |
| 7861 |
Preconditions |
| 7862 |
|
| 7863 |
2024-05-06 Justin Squirek <[email protected]> |
| 7864 |
|
| 7865 |
* sem_warn.adb (Within_Postcondition): Add/modify comments to |
| 7866 |
document various cases. |
| 7867 |
|
| 7868 |
2024-05-06 Justin Squirek <[email protected]> |
| 7869 |
|
| 7870 |
* sem_warn.adb (Within_Postcondition): Renamed to |
| 7871 |
Within_Contract_Or_Predicate. |
| 7872 |
|
| 7873 |
2024-05-06 Justin Squirek <[email protected]> |
| 7874 |
|
| 7875 |
* sem_warn.adb (Within_Postcondition): Add case to ignore |
| 7876 |
references within generated predicate function calls. |
| 7877 |
|
| 7878 |
2024-05-06 Ronan Desplanques <[email protected]> |
| 7879 |
|
| 7880 |
* hostparm.ads: Fix reference to RM clause. |
| 7881 |
|
| 7882 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7883 |
|
| 7884 |
* libgnat/s-finpri.ads (Finalize_Master): Remove obsolete reference |
| 7885 |
in the description. |
| 7886 |
(Finalize_Object): Document the effects of repeated calls. |
| 7887 |
|
| 7888 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7889 |
|
| 7890 |
* einfo.ads (Finalization_Master_Node_Or_Object): Rename into... |
| 7891 |
(Finalization_Master_Node): ...this and adjust description. |
| 7892 |
* exp_ch4.adb (Process_Transient_In_Expression): Attach the object |
| 7893 |
to its master node here. |
| 7894 |
* exp_ch7.ads (Attach_Object_To_Master_Node): New declaration. |
| 7895 |
* exp_ch7.adb (Attach_Object_To_Master_Node): New procedure. |
| 7896 |
(Build_Finalizer.Process_Declarations): Examine the type of a |
| 7897 |
variable to spot master nodes. |
| 7898 |
(Build_Finalizer.Process_Object_Declaration): Look only at the |
| 7899 |
object and deal specifically with the case of a master node. |
| 7900 |
(Build_Finalizer.Build_BIP_Cleanup_Stmts): Move to child function |
| 7901 |
of Attach_Object_To_Master_Node. |
| 7902 |
(Build_Finalizer.Make_Address_For_Finalize): Move to... |
| 7903 |
(Insert_Actions_In_Scope_Around.Process_Transient_In_Scope): Attach |
| 7904 |
the object to its master node here. |
| 7905 |
(Make_Address_For_Finalize): ...here. |
| 7906 |
(Make_Master_Node_Declaration): Adjust to above renaming and set |
| 7907 |
Finalization_Master_Node only on the object. |
| 7908 |
(Make_Suppress_Object_Finalize_Call): Adjust to above renaming and |
| 7909 |
attach the object to its master node here. |
| 7910 |
* exp_util.adb (Requires_Cleanup_Actions): Examine the type of a |
| 7911 |
variable to spot master nodes. |
| 7912 |
* gen_il-fields.ads (Opt_Field_Enum): Adjust to above renaming. |
| 7913 |
* gen_il-gen-gen_entities.adb (Allocatable_Kind): Likewise. |
| 7914 |
* rtsfind.ads (RE_Id): Add RE_Chain_Node_To_Master. |
| 7915 |
(RE_Unit_Table): Add entry for RE_Chain_Node_To_Master. |
| 7916 |
* libgnat/s-finpri.ads (Chain_Node_To_Master): New declaration. |
| 7917 |
* libgnat/s-finpri.adb (Chain_Node_To_Master): New procedure. |
| 7918 |
(Attach_Object_To_Master): Call it. |
| 7919 |
(Finalize_Master): Do not raise Program_Error on null addresses. |
| 7920 |
(Finalize_Object): Add assertion that the address is not null. |
| 7921 |
|
| 7922 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7923 |
|
| 7924 |
* libgnarl/s-taprob.ads (Protection): Add cross-reference to the |
| 7925 |
counterpart in System.Tasking.Protected_Objects.Entries. |
| 7926 |
* libgnarl/s-taskin.ads (Locking Rules): Replace PO_Simple by |
| 7927 |
Protected_Objects. |
| 7928 |
* libgnarl/s-tpoben.ads (Protection_Entries): Likewise. |
| 7929 |
|
| 7930 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7931 |
|
| 7932 |
* exp_attr.adb (Expand_N_Attribute_Reference) <Finalization_Size>: |
| 7933 |
Return 0 if the prefix is a dereference of an access value subject |
| 7934 |
to the No_Heap_Finalization pragma. |
| 7935 |
|
| 7936 |
2024-05-06 Ronan Desplanques <[email protected]> |
| 7937 |
|
| 7938 |
* exp_imgv.adb (Append_Table_To): Remove reference to removed |
| 7939 |
field. |
| 7940 |
* gen_il-fields.ads: Remove Is_Enum_Array_Aggregate field. |
| 7941 |
* gen_il-gen-gen_nodes.adb: Likewise. |
| 7942 |
* sem_aggr.adb: Tweak warning emission condition. |
| 7943 |
* sinfo.ads: Remove documentation for Is_Enum_Array_Aggregate. |
| 7944 |
|
| 7945 |
2024-05-06 Piotr Trojanek <[email protected]> |
| 7946 |
|
| 7947 |
* make.adb (Scan_Make_Arg): Remove redundant condition. |
| 7948 |
* switch-b.adb (Scan_Debug_Switches): Likewise. |
| 7949 |
* switch-c.adb (Scan_Front_End_Switches): Likewise. |
| 7950 |
|
| 7951 |
2024-05-06 Yannick Moy <[email protected]> |
| 7952 |
|
| 7953 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Add guard. |
| 7954 |
|
| 7955 |
2024-05-06 Piotr Trojanek <[email protected]> |
| 7956 |
|
| 7957 |
* exp_pakd.adb (Create_Packed_Array_Impl_Type): Set associated |
| 7958 |
node for the packed array itype. |
| 7959 |
* exp_util.adb (Possible_Side_Effect_In_SPARK): Remove |
| 7960 |
workaround for a missing associated node. |
| 7961 |
|
| 7962 |
2024-05-06 Richard Kenner <[email protected]> |
| 7963 |
|
| 7964 |
* freeze.adb (Freeze_Entity): When changing the convention of |
| 7965 |
primitive to match that of the type, only do this for user-specified |
| 7966 |
primitives. |
| 7967 |
|
| 7968 |
2024-05-06 Bob Duff <[email protected]> |
| 7969 |
|
| 7970 |
* exp_put_image.adb (Build_Image_Call): Call Set_Uses_Sec_Stack on |
| 7971 |
the current scope. We don't do this at all call sites, because |
| 7972 |
there are three; better to do it here. |
| 7973 |
|
| 7974 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7975 |
|
| 7976 |
* sem_attr.adb (Analyze_Attribute) <Attribute_Round>: Also accept it |
| 7977 |
for ordinary fixed point types. |
| 7978 |
* doc/gnat_rm/implementation_defined_attributes.rst (Round): New. |
| 7979 |
* gnat_rm.texi: Regenerate. |
| 7980 |
|
| 7981 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7982 |
|
| 7983 |
* exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Use No instead of |
| 7984 |
not Present. |
| 7985 |
|
| 7986 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7987 |
|
| 7988 |
* exp_ch7.adb (Build_Finalizer.Process_Object_Declaration): Adjust |
| 7989 |
the Sloc of the master node declaration in the degenerate case. |
| 7990 |
|
| 7991 |
2024-05-06 Yannick Moy <[email protected]> |
| 7992 |
|
| 7993 |
* inline.adb (Call_Can_Be_Inlined_In_GNATprove_Mode): |
| 7994 |
Add case to prevent inlining of call. |
| 7995 |
* inline.ads: Likewise. |
| 7996 |
* sem_res.adb (Resolve_Call): Update comment and message. |
| 7997 |
|
| 7998 |
2024-05-06 Eric Botcazou <[email protected]> |
| 7999 |
|
| 8000 |
* Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add s-finpri$(objext). |
| 8001 |
* contracts.adb (Add_Call_Helper): Append freeze actions to the |
| 8002 |
class-wide type rather than the specific tagged type. |
| 8003 |
* einfo.ads (Finalization_Master_Node_Or_Node): Document. |
| 8004 |
(Status_Flag_Or_Transient_Decl): Remove. |
| 8005 |
* exp_attr.adb (Expand_N_Attribute_Reference) <Address>: Do not |
| 8006 |
adjust a return object of a class-wide interface type. |
| 8007 |
* exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add test that |
| 8008 |
Finalize_Address is not already present as a condition for calling |
| 8009 |
Make_Finalize_Address_Body. |
| 8010 |
(Expand_Freeze_Record_Type): Call Make_Finalize_Address_Body for |
| 8011 |
class-wide types of both regular tagged types and interface types. |
| 8012 |
* exp_ch4.adb (Process_Transients_In_Expression): Replace the use |
| 8013 |
of hooks with the use of master nodes. |
| 8014 |
* exp_ch6.adb (Build_Flag_For_Function): Delete. |
| 8015 |
(Expand_N_Extended_Return_Statement): Create a master node for the |
| 8016 |
return object if it does not exist. At the end of the statement, |
| 8017 |
generate a call to Suppress_Object_Finalize. |
| 8018 |
(Expand_Non_Function_Return): Likewise just before the return. |
| 8019 |
* exp_ch7.ads (Make_Master_Node_Declaration): Declare. |
| 8020 |
(Make_Suppress_Object_Finalize_Call): Likewise. |
| 8021 |
* exp_ch7.adb (Build_Finalization_Master): Defer generating the |
| 8022 |
call to Set_Finalize_Address until freezing if the Finalize_Address |
| 8023 |
procedure has not been analyzed yet. |
| 8024 |
(Build_Finalizer): Reimplement the expansion using a finalization |
| 8025 |
scope master per finalizer. |
| 8026 |
(Insert_Actions_In_Scope_Around): Replace finalization hooks by |
| 8027 |
master nodes and calls to the Finalize_Object. |
| 8028 |
(Make_Master_Node_Declaration): New procedure. |
| 8029 |
(Make_Suppress_Object_Finalize_Call): Likewise. |
| 8030 |
* exp_util.ads (Build_Transient_Object_Statements): Delete. |
| 8031 |
* exp_util.adb (Build_Transient_Object_Statements): Likewise. |
| 8032 |
(Requires_Cleanup_Actions): Remove obsolete code and return true |
| 8033 |
for master nodes. |
| 8034 |
* gen_il-fields.ads (Opt_Field_Enum): Add |
| 8035 |
Finalization_Master_Node_Or_Object and |
| 8036 |
remove Status_Flag_Or_Transient_Decl. |
| 8037 |
* gen_il-gen-gen_entities.adb (Allocatable_Kind): Likewise. |
| 8038 |
* rtsfind.ads (RTU_Id): Add System_Finalization_Primitives. |
| 8039 |
(RE_Id): Add entities of System_Finalization_Primitives. |
| 8040 |
(RE_Unit_Table): Add entries for them. |
| 8041 |
* sem_ch3.adb (Analyze_Object_Declaration): For an array whose type |
| 8042 |
has an unconstrained first subtype and a controlled component, set |
| 8043 |
the Is_Constr_Array_Subt_With_Bounds flag. |
| 8044 |
* libgnat/s-finpri.ads: New file. |
| 8045 |
* libgnat/s-finpri.adb: Likewise. |
| 8046 |
|
| 8047 |
2024-05-06 Yannick Moy <[email protected]> |
| 8048 |
|
| 8049 |
* inline.adb (Can_Be_Inlined_In_GNATprove_Mode): Adapt checking. |
| 8050 |
|
| 8051 |
2024-04-26 Jakub Jelinek <[email protected]> |
| 8052 |
|
| 8053 |
* gnatvsn.ads: Bump Library_Version to 15. |
| 8054 |
|
| 8055 |
2024-04-15 Piotr Trojanek <[email protected]> |
| 8056 |
|
| 8057 |
* doc/gnat_rm/implementation_defined_aspects.rst |
| 8058 |
(Exceptional_Cases): Add description for aspect. |
| 8059 |
* doc/gnat_rm/implementation_defined_pragmas.rst |
| 8060 |
(Exceptional_Cases): Add description for pragma. |
| 8061 |
* gnat_rm.texi: Regenerate. |
| 8062 |
* gnat_ugn.texi: Regenerate. |
| 8063 |
|
| 8064 |
2024-03-07 Eric Botcazou <[email protected]> |
| 8065 |
|
| 8066 |
PR ada/113979 |
| 8067 |
* exp_ch4.adb (Expand_N_Allocator): In the subtype indication case, |
| 8068 |
call Apply_Predicate_Check on the resulting access value if needed. |
| 8069 |
|
| 8070 |
2024-02-26 Eric Botcazou <[email protected]> |
| 8071 |
|
| 8072 |
PR ada/113893 |
| 8073 |
* exp_ch7.adb (Build_Anonymous_Master): Do not build the master |
| 8074 |
for a local designated type. |
| 8075 |
* exp_util.adb (Build_Allocate_Deallocate_Proc): Force Needs_Fin |
| 8076 |
to false if no finalization master is attached to an access type |
| 8077 |
and assert that it is anonymous in this case. |
| 8078 |
* sem_res.adb (Resolve_Allocator): Mention that the object might |
| 8079 |
not be finalized at all in the warning given when the type is an |
| 8080 |
anonymous access-to-controlled type. |
| 8081 |
|
| 8082 |
2024-01-23 Ronan Desplanques <[email protected]> |
| 8083 |
|
| 8084 |
* gnatvsn.ads: Update year. |
| 8085 |
|
| 8086 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8087 |
|
| 8088 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Type>: Use the |
| 8089 |
TYPE_CANONICAL of types when it comes to aliasing. |
| 8090 |
* gcc-interface/utils.cc (relate_alias_sets): Likewise. |
| 8091 |
|
| 8092 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8093 |
|
| 8094 |
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Type>: Use a |
| 8095 |
separate FLD local variable to hold the first field of the fat |
| 8096 |
pointer type being built. |
| 8097 |
* gcc-interface/gigi.h (relate_alias_sets): Remove GNU_ prefix on |
| 8098 |
the first two parameters. |
| 8099 |
* gcc-interface/utils.cc (relate_alias_sets): Likewise and adjust. |
| 8100 |
|
| 8101 |
2024-01-09 Viljar Indus <[email protected]> |
| 8102 |
|
| 8103 |
* sem_attr.adb: avoid marking a use of the Address attribute |
| 8104 |
as a modification of its prefix. |
| 8105 |
|
| 8106 |
2024-01-09 Gary Dismukes <[email protected]> |
| 8107 |
|
| 8108 |
* exp_aggr.adb (Expand_Container_Aggregate): Change "not Present" |
| 8109 |
tests to tests using "No" (in two places). |
| 8110 |
|
| 8111 |
2024-01-09 Bob Duff <[email protected]> |
| 8112 |
|
| 8113 |
* sem_ch12.adb (Instantiate_Type): Make the relevant error message |
| 8114 |
conditional upon "Ekind (A_Gen_T) /= E_Incomplete_Type". Misc |
| 8115 |
cleanup. |
| 8116 |
|
| 8117 |
2024-01-09 Gary Dismukes <[email protected]> |
| 8118 |
|
| 8119 |
* exp_aggr.adb (Expand_Container_Aggregate): Add code to determine |
| 8120 |
whether the aggregate is an indexed aggregate, setting a flag |
| 8121 |
(Is_Indexed_Aggregate), which is tested to have proper separation |
| 8122 |
of treatment for the Add_Unnamed |
| 8123 |
(for positional aggregates) and New_Indexed (for indexed |
| 8124 |
aggregates) cases. In the code generating associations for indexed |
| 8125 |
aggregates, remove the code for Expressions cases entirely, since |
| 8126 |
the code for indexed aggregates is governed by the presence of |
| 8127 |
Component_Associations, and add an assertion that Expressions must |
| 8128 |
be Empty. Also, exclude empty aggregates from entering that code. |
| 8129 |
|
| 8130 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8131 |
|
| 8132 |
* rtsfind.ads (RE_Id): Remove RE_Attach. |
| 8133 |
(RE_Unit_Table): Likewise. |
| 8134 |
* libgnat/s-finmas.ads (Attach): Delete. |
| 8135 |
* libgnat/s-finmas.adb (Attach): Likewise. |
| 8136 |
|
| 8137 |
2024-01-09 Tucker Taft <[email protected]> |
| 8138 |
|
| 8139 |
* pprint.adb (List_Name): Check for "Box_Present" when displaying |
| 8140 |
a list, and emit "<>" if returns True. |
| 8141 |
* sem_scil.adb (Check_SCIL_Node): Handle case when the type of a |
| 8142 |
parameter is from a package that was mentioned in a limited with |
| 8143 |
clause, and make no further checks, since this check routine does |
| 8144 |
not have all the logic to check such a usage. |
| 8145 |
|
| 8146 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8147 |
|
| 8148 |
* freeze.adb (Freeze_Expression.Has_Decl_In_List): Deal specifically |
| 8149 |
with itypes that are class-wide subtypes. |
| 8150 |
|
| 8151 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8152 |
|
| 8153 |
* libgnat/s-atopri.ads (Atomic_Store): New generic procedure. |
| 8154 |
(Atomic_Store_8): New instantiated procedure. |
| 8155 |
(Atomic_Store_16): Likewise. |
| 8156 |
(Atomic_Store_32): Likewise. |
| 8157 |
(Atomic_Store_64): Likewise. |
| 8158 |
* libgnat/s-atopri__32.ads (Atomic_Store): New generic procedure. |
| 8159 |
(Atomic_Store_8): New instantiated procedure. |
| 8160 |
(Atomic_Store_16): Likewise. |
| 8161 |
(Atomic_Store_32): Likewise. |
| 8162 |
* gcc-interface/decl.cc (gnat_to_gnu_subprog_type): Implement the |
| 8163 |
support for __atomic_store_n and __sync_bool_compare_and_swap_n. |
| 8164 |
* gcc-interface/gigi.h (list_second): New inline function. |
| 8165 |
|
| 8166 |
2024-01-09 Javier Miranda <[email protected]> |
| 8167 |
|
| 8168 |
* sem_ch6.adb (Analyze_Subprogram_Specification): Do not replace |
| 8169 |
the type of the formals with its corresponding record in |
| 8170 |
init-procs. |
| 8171 |
* sem_ch9.adb (Analyze_Requeue): Add missing support to requeue to |
| 8172 |
a procedure that denotes a renaming of an entry. |
| 8173 |
|
| 8174 |
2024-01-09 Piotr Trojanek <[email protected]> |
| 8175 |
|
| 8176 |
* exp_util.adb (Possible_Side_Effect_In_SPARK): Refine handling of |
| 8177 |
itype declarations. |
| 8178 |
|
| 8179 |
2024-01-09 Piotr Trojanek <[email protected]> |
| 8180 |
|
| 8181 |
* sem_ch6.adb (Analyze_Subprogram_Specification): Set Is_Inlined |
| 8182 |
flag by default in GNATprove mode. |
| 8183 |
* sem_res.adb (Resolve_Call): Only look at flag which is cleared |
| 8184 |
when inlined subprogram is detected to be recursive. |
| 8185 |
|
| 8186 |
2024-01-09 Piotr Trojanek <[email protected]> |
| 8187 |
|
| 8188 |
* inline.adb (Establish_Actual_Mapping_For_Inlined_Call): |
| 8189 |
Remove detection of recursive calls. |
| 8190 |
|
| 8191 |
2024-01-09 Piotr Trojanek <[email protected]> |
| 8192 |
|
| 8193 |
* inline.adb (Cannot_Inline): Cleanup use of 'Length; remove |
| 8194 |
dead code. |
| 8195 |
|
| 8196 |
2024-01-09 Piotr Trojanek <[email protected]> |
| 8197 |
|
| 8198 |
* sem_aggr.adb (Resolve_Container_Aggregate): Use "No". |
| 8199 |
* sem_ch8.adb (Find_Direct_Name): Likewise. |
| 8200 |
|
| 8201 |
2024-01-09 Steve Baird <[email protected]> |
| 8202 |
|
| 8203 |
* sem_util.adb (Enclosing_Declaration): Instead of returning a |
| 8204 |
subprogram specification node, return its parent (which is |
| 8205 |
presumably a subprogram declaration). |
| 8206 |
* contracts.adb (Insert_Stable_Property_Check): Remove code |
| 8207 |
formerly needed to compensate for incorrect behavior of |
| 8208 |
Sem_Util.Enclosing_Declaration. |
| 8209 |
* exp_attr.adb (In_Available_Context): Remove code formerly needed |
| 8210 |
to compensate for incorrect behavior of |
| 8211 |
Sem_Util.Enclosing_Declaration. |
| 8212 |
* sem_ch8.adb (Is_Actual_Subp_Of_Inst): Remove code formerly |
| 8213 |
needed to compensate for incorrect behavior of |
| 8214 |
Sem_Util.Enclosing_Declaration. |
| 8215 |
|
| 8216 |
2024-01-09 Steve Baird <[email protected]> |
| 8217 |
|
| 8218 |
* sem_ch8.adb (Check_Constrained_Object): Before updating the |
| 8219 |
subtype mark of an object renaming declaration by calling Rewrite, |
| 8220 |
first check whether the destination of the Rewrite call exists. |
| 8221 |
* atree.adb (Copy_Slots): Return without performing any updates if |
| 8222 |
Destination equals Empty or Error, or if Source equals Empty. Any |
| 8223 |
of those conditions indicates an error case. |
| 8224 |
* sem_ch12.adb (Analyze_Formal_Derived_Type): Avoid cascading |
| 8225 |
errors. |
| 8226 |
* sem_ch3.adb (Analyze_Number_Declaration): In an error case, do |
| 8227 |
not pass Error as destination in a call to Rewrite. |
| 8228 |
(Find_Type_Of_Subtype_Indic): In an error case, do not pass Error |
| 8229 |
or Empty as destination in a call to Rewrite. |
| 8230 |
|
| 8231 |
2024-01-09 Joffrey Huguet <[email protected]> |
| 8232 |
|
| 8233 |
* libgnat/i-cstrin.ads (Update): Fix precondition. |
| 8234 |
|
| 8235 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8236 |
|
| 8237 |
* sem_aggr.adb (Resolve_Extension_Aggregate): Remove the unreachable |
| 8238 |
call to Transform_BIP_Assignment as well as the procedure. |
| 8239 |
|
| 8240 |
2024-01-09 Bob Duff <[email protected]> |
| 8241 |
|
| 8242 |
* lib-xref.adb (Generate_Reference): Do not count it as a read |
| 8243 |
reference if we're calling a TSS. |
| 8244 |
|
| 8245 |
2024-01-09 Piotr Trojanek <[email protected]> |
| 8246 |
|
| 8247 |
* doc/gnat_rm/implementation_defined_aspects.rst, |
| 8248 |
doc/gnat_rm/implementation_defined_pragmas.rst: Add sections for |
| 8249 |
Always_Terminates. |
| 8250 |
* gnat-style.texi: Regenerate. |
| 8251 |
* gnat_rm.texi: Regenerate. |
| 8252 |
* gnat_ugn.texi: Regenerate. |
| 8253 |
|
| 8254 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8255 |
|
| 8256 |
PR ada/78207 |
| 8257 |
* libgnat/g-regexp.ads: Fix outdated comment. |
| 8258 |
|
| 8259 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8260 |
|
| 8261 |
PR ada/112781 |
| 8262 |
* exp_ch6.ads (Is_Build_In_Place_Function): Adjust description. |
| 8263 |
* exp_ch6.adb (Is_True_Build_In_Place_Function_Call): Delete. |
| 8264 |
(Is_Function_Call_With_BIP_Formals): New predicate. |
| 8265 |
(Is_Build_In_Place_Function_Call): Restore original semantics. |
| 8266 |
(Expand_Call_Helper): Adjust conditions guarding the calls to |
| 8267 |
Add_Dummy_Build_In_Place_Actuals to above renaming. |
| 8268 |
(Expand_N_Extended_Return_Statement): Adjust to above renaming. |
| 8269 |
(Expand_Simple_Function_Return): Likewise. Move the assertion |
| 8270 |
to after the transformation into an extended return statement. |
| 8271 |
(Make_Build_In_Place_Call_In_Allocator): Remove unreachable code. |
| 8272 |
(Make_Build_In_Place_Call_In_Assignment): Likewise. |
| 8273 |
|
| 8274 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8275 |
|
| 8276 |
PR ada/112781 |
| 8277 |
* sem_ch12.adb (Instantiate_Type): Use Etype instead of Base_Type |
| 8278 |
consistently to retrieve the ancestor for a derived type. |
| 8279 |
* sem_ch4.adb (Analyze_Explicit_Dereference): Test Is_Access_Type |
| 8280 |
consistently before accessing Designated_Type. |
| 8281 |
|
| 8282 |
2024-01-09 Eric Botcazou <[email protected]> |
| 8283 |
|
| 8284 |
* gcc-interface/utils2.cc (build_binary_op) <EQ_EXPR>: Relax |
| 8285 |
assertion for regular pointer types. |
| 8286 |
|
| 8287 |
2024-01-04 David Malcolm <[email protected]> |
| 8288 |
|
| 8289 |
* gcc-interface/lang.opt.urls: New file, autogenerated by |
| 8290 |
regenerate-opt-urls.py. |
| 8291 |
|
| 8292 |
2024-01-03 Jakub Jelinek <[email protected]> |
| 8293 |
|
| 8294 |
* gnat_ugn.texi: Bump @copying's copyright year. |
| 8295 |
* gnat_rm.texi: Likewise. |
| 8296 |
|
| 8297 |
Copyright (C) 2024 Free Software Foundation, Inc. |
| 8298 |
|
| 8299 |
Copying and distribution of this file, with or without modification, |
| 8300 |
are permitted in any medium without royalty provided the copyright |
| 8301 |
notice and this notice are preserved. |