]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
[Ada] Wrong evaluation of membership test
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
b282b25b 12019-07-08 Javier Miranda <miranda@adacore.com>
2
3 * exp_ch4.adb (Tagged_Membership): Fix regression silently
4 introduced in r260738 that erroneouslusy causes the evaluation
5 to True of the membership test when the left operand of the
6 membership test is a class-wide interface object and the right
7 operand is a type that implements such interface type.
8
703ee0e0 92019-07-08 Hristian Kirtchev <kirtchev@adacore.com>
10
11 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not
12 register an address clause when its prefix denotes a generic
13 formal object.
14
e6b4414e 152019-07-08 Hristian Kirtchev <kirtchev@adacore.com>
16
17 * bindo-diagnostics.adb (Diagnose_Cycle): Capture the presence
18 of an Elaborate_All edge before iterating over the edges of the
19 cycle.
20 (Output_Elaborate_Body_Transition): Update the parameter profile
21 and the comment on usage. Add a missing case where the edge is
22 within the context of an Elaborate_All.
23 (Output_Transition): Update the call to
24 Output_Elaborate_Body_Transition.
25 * bindo-graphs.ads, bindo-graphs.adb
26 (Contains_Elaborate_All_Edge): New routine.
27
5a4de65a 282019-07-08 Piotr Trojanek <trojanek@adacore.com>
29
30 * lib-xref-spark_specific.adb (Create_Heap): Set dummy Etype for
31 the fake __HEAP entity.
32
42253061 332019-07-08 Daniel Mercier <mercier@adacore.com>
34
35 * gnat1drv.adb: Suppress warnings on memory representation in
36 CodePeer compiler mode.
37
a7c8fd7e 382019-07-08 Nicolas Roche <roche@adacore.com>
39
40 * rtinit.c (__gnat_runtime_initialize): Remove dependency on
41 CommandLineToArgvW.
42
89c9dd55 432019-07-08 Doug Rupp <rupp@adacore.com>
44
45 * Makefile.rtl: Handle vxworks7r2 in x86_64 and x86 vxworks7.
46
944903c8 472019-07-08 Dmitriy Anisimkov <anisimko@adacore.com>
48
49 * Makefile.rtl: Use g-sercom__linux.adb for all linuxes.
50
e51a140c 512019-07-08 Yannick Moy <moy@adacore.com>
52
53 * expander.adb (Expand): Do not reset Analyzed flag always.
54 * sem_eval.adb (Fold_Ureal): Mark node as analyzed.
55
f117e449 562019-07-08 Ed Schonberg <schonberg@adacore.com>
57
58 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not insert twice
59 the assignment statement that computes the delay value, to
60 prevent improper tree sharing when the value is a type
61 conversion and Float_Overflow checks are enabled.
62
f5cb3a59 632019-07-08 Hristian Kirtchev <kirtchev@adacore.com>
64
65 * bindo.adb: Update the section on terminology to include new
66 concepts. Update the section on switches to include new
67 entries.
68 * bindo.ads: Add type Precedence_Kind.
69 * bindo-builders.adb: Add with and use clauses for Debug and
70 Bindo.Validators. Add use clauses for
71 Bindo.Validators.Invocation_Graph_Validators and
72 Bindo.Validators.Library_Graph_Validators.
73 (Build_Invocation_Graph): Validate the graph immediately after
74 it was built.
75 (Build_Library_Graph): Update the parameter profile. The
76 creation of the graph is now elaboration model-agnostic.
77 Validate the graph immediately after it was built.
78 (Create_With_Edge): Create regular with edges for Elaborate and
79 Elaborate_All edges when the appropriate debug switches are in
80 effect.
81 * bindo-builders.ads (Build_Library_Graph): Update the parameter
82 profile.
83 * bindo-diagnostics.adb (Diagnose_Cycle): Track the presence of
84 an Elaborate_All edge throughout the inspection of the cycle's
85 edges.
86 (Output_Dynamic_Model_Suggestions): Output the suggestion only
87 when the cycle contains at least one weak edge where the
88 successor was statically elaborated.
89 (Output_Elaborate_Body_Transition, Output_Forced_Transition,
90 Output_With_Transition): Update the assertions.
91 * bindo-elaborators.adb: Remove use clauses for
92 Bindo.Validators.Invocation_Graph_Validators and
93 Bindo.Validators.Library_Graph_Validators. Remove strings
94 Add_To_All_Candidates_Msg and Add_To_Comp_Candidates_Msg.
95 Remove type String_Ptr.
96 (Add_Vertex, Add_Vertex_If_Elaborable, Create_All_Candidates_Set
97 Create_Component_Candidates_Set): Remove.
98 (Create_Component_Vertex_Sets, Create_Vertex_Sets): New routine.
99 (Elaborate_Component): Update the parameter profile and the
100 comment on usage. Reimplement the elaboration of a component.
101 The algorithm will now attempt to elaborate as many vertices
102 possible. If this is not possible, and a weakly elaborable
103 vertex is available use unit was compiled using the dynamic
104 model, the algorithm will elaborate it.
105 (Elaborate_Library_Graph): Reimplement the elaboration of the
106 graph. The algorithm will now attempt to elaborate as many
107 vertices along with their components as possible. If this is not
108 possible, and a weakly elaborable vertex is available use unit
109 was compiled using the dynamic model, the algorithm will
110 elaborate it along with its component.
111 (Elaborate_Units): Merge with the functionality of
112 Elaborate_Units_Common.
113 (Elaborate_Units_Common, Elaborate_Units_Dynamic,
114 Elaborate_Units_Static): Remove.
115 (Elaborate_Vertex): Update the parameter profile and the comment
116 on usage. Reimplemented.
117 (Find_Best_Candidate): Remove.
118 (Find_Best_Elaborable_Vertex, Find_Best_Vertex,
119 Find_Best_Weakly_Elaborable_Vertex, Has_Elaborable_Body,
120 Insert_Elaborable_Successor, Insert_Vertex): New routines.
121 (Is_Better_Candidate): Remove.
122 (Is_Better_Elaborable_Vertex,
123 Is_Better_Weakly_Elaborable_Vertex,
124 Is_Suitable_Elaborable_Vertex,
125 Is_Suitable_Weakly_Elaborable_Vertex): New routines.
126 (Trace_Candidate_Vertices): Remove.
127 (Trace_Component): Output the number of strong and weak
128 predecessors.
129 (Trace_Unelaborated_Vertices): Remove.
130 (Trace_Vertex): Output the number of strong and weak
131 predecessors.
132 (Trace_Vertices): New routine.
133 (Update_Successor, Update_Successors): Update the parameter
134 profile and the comment on usage.
135 * bindo-graphs.adb: Remove type Precedence_Kind.
136 (Add_Edge_With_Return): Update the increment of pending
137 predecessors.
138 (Add_Vertex): Provide default values for strong and weak
139 predecessors.
140 (Complementary_Vertex): Move the initial declaration to the
141 spec. Update the parameter profile and the comment on usage.
142 (Contains_Weak_Static_Successor): New routine.
143 (Create): Update the parameter profile. The creation of the
144 graph is now elaboration model-agnostic.
145 (Decrement_Pending_Predecessors): Update the parameter profile
146 and the comment on usage. Reimplemented.
147 (Delete_Edge): Update the decrement of pending predecesors.
148 (Has_Elaborate_Body): Do not treat a vertex as being subject to
149 Elaborate_Body when a debug switch is in effect.
150 (Increment_Pending_Predecessors): Update the parameter profile
151 and the comment on usage. Reimplemented.
152 (Is_Elaborable_Component): Reimplemented.
153 (Is_Elaborable_Vertex): Move the initial declaration to the
154 spec. Reimplemented.
155 (Is_Elaborate_Body_Pair): New routine.
156 (Is_Dynamically_Elaborated): Update the parameter profile.
157 Reimplemented.
158 (Is_Weakly_Elaborable_Vertex): New routine.
159 (Pending_Predecessors): Removed.
160 (Pending_Predecessors_For_Elaboration,
161 Pending_Strong_Predecessors, Pending_Weak_Predecessors,
162 Update_Pending_Predecessors): New routines.
163 (Update_Pending_Predecessors_Of_Components): Update the
164 increment of pending predecessors.
165 * bindo-graphs.ads: Update the components of type
166 Component_Attributes. Update the components of type
167 Library_Graph_Attributes. Update the components of type
168 Library_Graph_Vertex_Attributes. Update the initialization of
169 No_Component_Attributes. Update the initialization of
170 No_Library_Graph_Vertex_Attributes.
171 (Complementary_Vertex, Contains_Weak_Static_Successor): New
172 routines.
173 (Create): Update the parameter profile and the comment on usage.
174 (Decrement_Pending_Predecessors, Is_Dynamically_Elaborated):
175 Update the parameter profile and the comment on usage.
176 (Is_Elaborate_Body_Pair, Is_Weakly_Elaborable_Vertex): New
177 routines.
178 (Pending_Predecessors): Removed.
179 (Pending_Predecessors_For_Elaboration,
180 Pending_Strong_Predecessors, Pending_Weak_Predecessors): New
181 routines.
182 * bindo-writers.adb (Write_Components): Moved from the spec.
183 (Write_Component): Output the strong and weak predecessors.
184 (Write_Library_Graph): Output the components as part of the
185 graph.
186 (Write_Library_Graph_Vertex): Output the strong and weak
187 predecessors.
188 * bindo-writers.ads (Write_Components): Moved to the body.
189 * debug.adb: Add and document new GNATbind switches -d_a, -d_b,
190 -d_e.
191 * bindo-validators.adb: Minor reformattings.
192
7b8ca6b2 1932019-07-08 Bob Duff <duff@adacore.com>
194
195 * libgnat/g-sercom.ads, libgnat/g-sercom__linux.adb (Data_Rate):
196 Support additional data rates.
197
364c746f 1982019-07-08 Olivier Hainque <hainque@adacore.com>
199
200 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Don't request
201 DECL_ARTIFICIAL_P on elab proc declarations.
202
2dbfbbb2 2032019-07-08 Eric Botcazou <ebotcazou@adacore.com>
204
205 * repinfo.adb (List_Record_Info): Declare Incomplete_Layout and
206 Not_In_Extended_Main local exceptions.
207 (List_Structural_Record_Layout): For an extension, raise the
208 former if the parent subtype has not been built and the latter
209 if it is not declared in the main source unit. Fall back to the
210 flat layout if either exception has been raised.
211
3e05bbec 2122019-07-08 Ed Schonberg <schonberg@adacore.com>
213
214 * libgnat/a-strfix.adb (Delete): The RM describes the semantics
215 of Delete as equivalent to that of Replace_String with a null
216 argument. As a result, deleting a null string that starts past
217 the end of its argument is a noop and must not raise
218 Index_Error.
219
c98aac61 2202019-07-08 Javier Miranda <miranda@adacore.com>
221
222 * exp_disp.adb (Register_Primitive): When registering a
223 primitive in the secondary dispatch table, handle primitive
224 inherited through several levels of type derivation (required to
225 properly handle inherited 'null' primitive).
226
221b67b6 2272019-07-08 Bob Duff <duff@adacore.com>
228
229 * doc/gnat_ugn/gnat_utility_programs.rst: Document handling of
230 preprocessor directives in GNATpp.
231
aed4e06a 2322019-07-08 Javier Miranda <miranda@adacore.com>
233
234 * gnat1drv.adb (Post_Compilation_Validation_Checks:
235 Validate_Compile_Time_Warning_Errors is now located in sem_prag
236 (instead of sem_ch13).
237 * sem_ch13.ads (Validate_Compile_Time_Warning_Error,
238 Validate_Compile_Time_Warning_Errors): Move to sem_prag.
239 * sem_ch13.adb
240 (Compile_Time_Warnings_Errors): Move to sem_prag.
241 (Initialize): Remove initialization of table
242 Compile_Time_Warning_Errors.
243 (Validate_Compile_Time_Warning_Error,
244 Validate_Compile_Time_Warning_Errors): Move to sem_prag.
245 * sem_prag.ads (Validate_Compile_Time_Warning_Errors): New
246 procedure.
247 * sem_prag.adb (Initialize): Initialize table
248 Compile_Time_Warning_Errors.
249
b9bd5934 2502019-07-08 Ed Schonberg <schonberg@adacore.com>
251
252 * sem_ch13.adb (Analyze_Aspect_Specifications): For a
253 pre/postcondition of a generic subprogram declaration, do not
254 use Relocate_Node on the aspect expression to construct the
255 corresponding attribute specification, to prevent tree anomalies
256 when the expression is a call with named actual parameters.
257
63bb17d8 2582019-07-08 Javier Miranda <miranda@adacore.com>
259
260 * sem_attr.adb (Analyze_Attribute [Attribute_Size]): For pragmas
261 used to report user defined compile time warning or errors
262 handle 'Size for types with known static RM size.
263
1979cbfe 2642019-07-08 Justin Squirek <squirek@adacore.com>
265
266 * exp_imgv.adb (Build_Enumeration_Image_Tables): Default SSO for
267 the building of image tables.
268 (Expand_Image_Attribute): Minor cleanup.
269
bcb0a375 2702019-07-08 Dmitriy Anisimkov <anisimko@adacore.com>
271
272 * libgnat/g-socket.ads, libgnat/g-socket.adb: Improve
273 documentation.
274 (Get_Socket_Option, Set_Socket_Option): Remove default value for
275 the Level formal.
276
429822c1 2772019-07-08 Ed Schonberg <schonberg@adacore.com>
278
279 * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): For an
280 unanalized aspect in a generic context that has not been
281 analyzed yet, if the aspect applies to a type, place the type on
282 the scope stack to make its components visible, before checking
283 conformance with the version of the expression analyzed at the
284 freeze point.
285
e1415398 2862019-07-05 Justin Squirek <squirek@adacore.com>
287
288 * checks.adb (Apply_Accessibility_Check): Add logic to fetch the
289 function result accessibility level if one is required within
290 the generated check.
291 * exp_ch6.adb (Needs_Result_Accessibility_Level): Modify
292 controlling elsif block to handle more cases such as anonymous
293 access results and disable checking for coextensions.
294
dad9e9f8 2952019-07-05 Ed Schonberg <schonberg@adacore.com>
296
297 * sem_ch9.adb (Analyze_Accept_Statement): If this is an illegal
298 accept statement for an enclosing entry abandon analysis to
299 prevent scope mismatches and potential infinite loops in
300 compiler.
301
627d0751 3022019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
303
304 * ali.adb (For_Each_Invocation_Construct,
305 For_Each_Invocation_Relation): New version.
306 (Scan_ALI): Initialize field Invocation_Graph_Encoding.
307 (Set_Invocation_Graph_Encoding): Update the setting of the
308 invocation graph encoding.
309 * ali.ads: Move field Invocation_Graph_Encoding from Unit_Record
310 to ALI_Record because the encoding applies to the whole ALI,
311 rather than one of the units (spec or body) for which the ALI
312 file was created.
313 (For_Each_Invocation_Construct, For_Each_Invocation_Relation):
314 New version.
315 * bindo.adb: Update the section on switches. Complete the
316 section of debugging elaboration order issues.
317 (Find_Elaboration_Order): Prepare the routine for the switch
318 from the old to the new elaboration order mechanism.
319 * bindo-diagnostics.adb (Find_And_Output_Invocation_Paths):
320 Manage a visited set used by Visit_Vertex.
321 (Output_All_Cycles_Suggestions,
322 Output_Dynamic_Model_Suggestions): Clarify the nature of the
323 suggested switch.
324 (Output_Elaborate_Body_Transition): Update the diagnostic to
325 emit a better message.
326 (Output_Forced_Suggestions, Output_Full_Encoding_Suggestions):
327 Clarify the nature of the suggested switch.
328 (Visit_Vertex): Update the parameter profile to add a set of
329 invokers visited during the transition. This set prevents
330 infinite exploration of the graph in case the invocations are
331 recursive.
332 * bindo-elaborators.adb: Add a use clause for
333 Bindo.Writers.Dependency_Writers.
334 (Elaborate_Units_Common): Output the library graph after it has
335 been augmented with invocation edges. Output just the components
336 instead of outputting the whole library graph again.
337 (Elaborate_Units_Dynamic, Elaborate_Units_Static): Output the
338 dependencies as expressed in the library graph.
339 * bindo-units.adb (Invocation_Graph_Encoding): Update the
340 extraction of the invocation graph encoding.
341 * bindo-writers.adb: Add with and use clauses for Binderr and
342 Butil.
343 (palgc, plgc): New debug routine.
344 (Write_Components): Moved to the spec. Add a header for the
345 output.
346 (Write_Dependencies, Write_Dependencies_Of_Vertex,
347 Write_Dependency_Edge): New routine.
348 (Write_Elaboration_Order): Update the logic to follow the format
349 of Binde's order output.
350 (Write_Library_Graph): Do not output the components every time
351 the graph is written.
352 (Write_Unit): Output the invocation graph encoding of the unit.
353 Output the invocation constructs and relations for the unit
354 only.
355 * bindo-writers.ads (Write_Components): Moved from the body.
356 (Write_Dependencies): New routine.
357 * bindusg.adb: Prepare the routine for the switch from the old
358 to the new elaboration order mechanism.
359 * debug.adb: Binder switch -d_O is now not associated with any
360 functionality.
361 * einfo.adb (Is_Elaboration_Target): The attribute applies to
362 packages, as specified by the comment on the attribute usage.
363 * opt.ads: Add a global flag which controls the choice between
364 the new and the legacy elaboration order mechanism.
365 * sem_elab.adb: Add Package_Target to type Target_Kind.
366 (Build_Elaborate_Body_Procedure, Build_Elaborate_Procedure,
367 Build_Elaborate_Spec_Procedure, Check_Elaboration_Scenarios,
368 Check_SPARK_Model_In_Effect): Use Main_Unit_Entity to obtain the
369 entity of the main unit.
370 (Create_Package_Rep): New routine.
371 (Create_Target_Rep): Add processing for packages.
372 (Declaration_Placement_Of_Node, Has_Prior_Elaboration): Use
373 Main_Unit_Entity to obtain the entity of the main
374 unit.
375 (Invocation_Graph_Recording_OK): Prepare the routine for the
376 switch from the old to the new elaboration order mechanism.
377 (Main_Unit_Entity): New routine.
378 (Meet_Elaboration_Requirement,
379 Process_Conditional_ABE_Variable_Reference): Use
380 Main_Unit_Entity to obtain the entity of the main unit.
381 (Process_Invocation_Instantiation): New routine.
382 (Process_Invocation_Scenario): Add processing for
383 instantiations.
384 * switch-b.adb (Scan_Binder_Switches): Prepare the routine for
385 the switch from the old to the new elaboration order mechanism.
386
30fb27b1 3872019-07-05 Joffrey Huguet <huguet@adacore.com>
388
389 * libgnat/a-textio.adb: Add abstract state refinment.
390 * libgnat/a-textio.ads: Add File_System abstract state. Add
391 global contracts, contract cases, preconditions and
392 postconditions to procedures and functions.
393 (Set_Input, Set_Output, Set_Error, Standard_Input,
394 Standard_Output, Standard_Error, Current_Input, Current_Output,
395 Current_Error): Turn SPARK_Mode off.
396 (Get_Line): Turn SPARK_Mode off on Get_Line functions.
397 * libgnat/a-tideio.ads, libgnat/a-tienio.ads,
398 libgnat/a-tifiio.ads, libgnat/a-tiflio.ads,
399 libgnat/a-tiinio.ads, libgnat/a-timoio.ads: Add global
400 contracts, contract cases, preconditions and postconditions to
401 procedures and functions.
402
ce99fc8a 4032019-07-05 Arnaud Charlet <charlet@adacore.com>
404
405 * doc/gnat_ugn/platform_specific_information.rst: Refresh doc on
406 installing from the command line on Windows. Remove obsolete
407 part.
408 * gnat_ugn.texi: Regenerate.
409
26ea5003 4102019-07-05 Vasiliy Fofanov <fofanov@adacore.com>
411
412 * libgnat/a-wichha.ads (Is_Alphanumeric): Replace comment with
413 the correct one. Also capitalize references to False
414 throughout.
415
c9c81835 4162019-07-05 Eric Botcazou <ebotcazou@adacore.com>
417
418 * exp_ch4.adb (Expand_N_Indexed_Component): Do not expand actual
419 parameters of function calls here either.
420
50948c8a 4212019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
422
423 * bindo-units.adb, checks.adb, exp_attr.adb, exp_ch3.adb,
424 exp_ch4.adb, exp_pakd.adb, lib-writ.adb, libgnat/g-traceb.adb,
425 libgnat/g-traceb.ads, libgnat/s-stratt.ads, sem_aux.ads,
426 sem_util.adb: Minor reformatting.
427
a9fa50ab 4282019-07-05 Ed Schonberg <schonberg@adacore.com>
429
430 * sem_ch13.adb (Build_Predicate_Functions): If a subtype that
431 carries a static predicate aspect is frozen immediately after
432 its declaration, ensure that the generated function body created
433 for predicate checking is inserted after the corresponding
434 subprogram declaration, which is created at the point the
435 declaration is elaborated.
436
ee4e1dd7 4372019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
438
439 * exp_ch7.adb (Cleanup_Record): Use the underlying type when
440 checking for components with tasks.
441
2028580f 4422019-07-05 Arnaud Charlet <charlet@adacore.com>
443
444 * libgnarl/s-osinte__linux.ads: Link with -lrt before -lpthread.
445
ec1e481f 4462019-07-05 Ed Schonberg <schonberg@adacore.com>
447
448 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Add explicit
449 range checks when the index type of the bit-packed array is an
450 enumeration type with a non-standard representation,
451
ae60396a 4522019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
453
454 * sem_res.adb (Is_Control_Flow_Statement): Delay statements
455 contain an expression, which in turn may have side effects and
456 affect the infinite recursion. As a result, delay statements
457 should not be treated specially.
458
d33025f2 4592019-07-05 Arnaud Charlet <charlet@adacore.com>
460
461 * libgnarl/s-linux.ads, libgnarl/s-linux__alpha.ads,
462 libgnarl/s-linux__android.ads, libgnarl/s-linux__hppa.ads,
463 libgnarl/s-linux__mips.ads, libgnarl/s-linux__riscv.ads,
464 libgnarl/s-linux__sparc.ads: Fix typos in comments.
465
51f2c7f9 4662019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
467
468 * sem_res.adb (Check_Infinite_Recursion): Reimplemented.
469 (Enclosing_Declaration_Or_Statement,
470 Invoked_With_Different_Arguments, Is_Conditional_Statement,
471 Is_Control_Flow_Statement, Is_Immediately_Within_Body,
472 Is_Raise_Idiom, Is_Raise_Statement, Is_Sole_Statement,
473 Preceded_By_Control_Flow_Statement,
474 Within_Conditional_Statement): New routines.
475
0e6f6ee1 4762019-07-05 Javier Miranda <miranda@adacore.com>
477
478 * exp_ch4.adb (Expand_N_Type_Conversion): Do not apply an
479 accessibility check when the conversion is an access to
480 class-wide interface type and it is an actual parameter.
481 * exp_ch6.adb (Expand_Call_Helper): Add documentation on the
482 accessibility level of an anonymous allocator defining the value
483 of an access parameter.
484 * sem_util.ads, sem_util.adb (Dynamic_Accessibility_Level): Add
485 support for an anonymous allocator whose type is that of a
486 stand-alone object of an anonymous access to object type.
487
f28a3d6c 4882019-07-05 Piotr Trojanek <trojanek@adacore.com>
489
490 * einfo.ads, sem_res.adb: Typo fixes in comments.
491
2d8a0eb3 4922019-07-05 Bob Duff <duff@adacore.com>
493
494 * exp_ch6.adb (Is_Build_In_Place_Function): Narrow the check for
495 Has_Foreign_Convention to the imported case only. If a
496 build-in-place function is exported, and called from Ada code,
497 build-in-place protocols should be used.
498
6eddee84 4992019-07-05 Ed Schonberg <schonberg@adacore.com>
500
501 * sem_util.adb (Encloing_Subprogram): If Enclosing_Dynamic_Scope
502 is a loop, continue climbing the scope stack to find the
503 enclosing subprogram.
504 (Gather_Components): Handle properly a choice in a record
505 aggregate that is given by a subtype with a static predicate.
506
249e38a7 5072019-07-05 Javier Miranda <miranda@adacore.com>
508
509 * debug.adb (-gnatd.K): Leave available this switch.
510 * contracts.adb (Build_And_Analyze_Contract_Only_Subprograms):
511 Remove.
512 * scil_ll.ads, scil_ll.adb (Contract_Only_Body_Flag,
513 Contract_Only_Body_Nodes, Get_Contract_Only_Body,
514 Is_Contract_Only_Body, Set_Contract_Only_Body): Remove.
515
33ae0c9f 5162019-07-05 Pierre-Marie de Rodat <derodat@adacore.com>
517
518 * libgnat/a-strunb.ads: Import documentation from the RM
519
70f9c8aa 5202019-07-05 Pierre-Marie de Rodat <derodat@adacore.com>
521
522 * libgnat/a-strfix.ads: Import documentation from the RM
523
1bc68ac2 5242019-07-05 Yannick Moy <moy@adacore.com>
525
526 * adabkend.adb (Scan_Back_End_Switches): Accept -Og and -Ofast
527 switches.
528
2500be2f 5292019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
530
531 * ali.adb: Relocate types Invocation_Construct_Record,
532 Invocation_Relation_Record, and Invocation_Signature_Record to
533 the body of ALI. Relocate tables Invocation_Constructs,
534 Invocation_Relations, and Invocation_Signatures to the body of
535 ALI. Remove type Body_Placement_Codes. Add new types
536 Declaration_Placement_Codes, and
537 Invocation_Graph_Encoding_Codes. Update the literals of type
538 Invocation_Graph_Line_Codes.
539 (Add_Invocation_Construct): Update the parameter profile. Add an
540 invocation construct built from all attributes provided.
541 (Add_Invocation_Relation): Update the parameter profile. Add an
542 invocation relation built from all attributes provided.
543 (Body_Placement): New routine.
544 (Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind):
545 Removed.
546 (Code_To_Declaration_Placement_Kind,
547 Code_To_Invocation_Graph_Encoding_Kind, Column,
548 Declaration_Placement_Kind_To_Code, Extra,
549 For_Each_Invocation_Construct, For_Each_Invocation_Relation,
550 Invocation_Graph_Encoding,
551 Invocation_Graph_Encoding_Kind_To_Code, Invoker, Kind, Line,
552 Locations, Name): New routine.
553 (Scan_Invocation_Construct_Line): Reimplement the scanning
554 mechanism.
555 (Scan_Invocation_Graph_Attributes_Line): New routine.
556 (Scan_Invocation_Graph_Line): Use a case statement to dispatch.
557 (Scan_Invocation_Relation_Line): Reimplement the scanning
558 mechanism.
559 (Scope): New routine.
560 (Set_Invocation_Graph_Encoding, Signature, Spec_Placement,
561 Target): New routine.
562 * ali.ads: Add new type Invocation_Graph_Encoding_Kind. Add
563 component Invocation_Graph_Encoding to type Unit_Record.
564 Relocate various types and data structures to the body of ALI.
565 (Add_Invocation_Construct, Add_Invocation_Relation): Update the
566 parameter profile.
567 (Body_Placement): New routine.
568 (Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind):
569 Removed.
570 (Code_To_Declaration_Placement_Kind,
571 Code_To_Invocation_Graph_Encoding_Kind, Column,
572 Declaration_Placement_Kind_To_Code, Extra,
573 For_Each_Invocation_Construct, For_Each_Invocation_Relation,
574 Invocation_Graph_Encoding,
575 Invocation_Graph_Encoding_Kind_To_Code, Invoker, Kind, Line,
576 Locations, Name, Scope, Set_Invocation_Graph_Encoding,
577 Signature, Spec_Placement, Target): New routine.
578 * bindo.adb: Add with clause for Binde. Add with and use
579 clauses for Debug. Update the documentation. Add new switches.
580 (Find_Elaboration_Order): Dispatch to the proper elaboration
581 mechanism.
582 * bindo-augmentors.adb:
583 Remove with and use clauses for GNAT and GNAT.Sets. Remove
584 membership set VS. Update the parameter profiles of most
585 routines to use better parameter names. Update the
586 implementation of most routine to use the new parameter names.
587 Remove various redundant assertions.
588 * bindo-builders.adb: Use better names for instantiated data
589 structures. Update all references to these names. Update the
590 parameter profiles of most routines to use better parameter
591 names. Update the implementation of most routine to use the new
592 parameter names.
593 (Build_Library_Graph): Update the parameter profile. Update the
594 call to Create.
595 (Create_Vertex): Reimplemented.
596 (Declaration_Placement_Vertex): New routine.
597 * bindo-builders.ads (Build_Library_Graph): Update the parameter
598 profile and comment on usage.
599 * bindo-diagnostics.adb: Almost a new unit.
600 * bindo-diagnostics.ads: Add a use clause for
601 Bindo.Graphs.Invocation_Graphs. Remove package
602 Cycle_Diagnostics.
603 (Diagnose_Circularities): New routine.
604 * bindo-elaborators.adb: Remove the with and use clauses for
605 Binderr and GNAT.Sets. Remove the use clause for
606 Bindo.Diagnostics.Cycle_Diagnostics. Remove membership set VS.
607 Update the parameter profiles of most routines to use better
608 parameter names. Update the implementation of most routine to
609 use the new parameter names. (Elaborate_Units_Common): Update
610 the parameter profile. Pass an infication to the library graph
611 builder whether the dynamic model is in effect.
612 (Elaborate_Units_Dynamic, Elaborate_Units_Static): Use
613 Diagnose_Circularities to provide diagnostics.
614 (Update_Successor): Use routine In_Same_Component to determine
615 whether the predecessor and successor reside in different
616 components.
617 * bindo-graphs.adb: Add with and use clauses for Butil, Debug,
618 Output, and Bindo.Writers. Remove with and use clauses for
619 GNAT.Lists. Update the parameter profiles of most routines to
620 use better parameter names. Update the implementation of most
621 routine to use the new parameter names. Remove various
622 redundant assertions. Remove doubly linked list EL. Add new
623 type Precedence_Kind.
624 (Add_Cycle): New routine.
625 (Add_Vertex): Update the parameter profile. Update the creation
626 of vertex attributes.
627 (Add_Vertex_And_Complement, Body_Vertex, Column,
628 Complementary_Vertex, Copy_Cycle_Path, Cycle_Kind_Of): New
629 routines.
630 (Destroy_Invocation_Graph_Edge, Destroy_Library_Graph_Cycle,
631 Destroy_Library_Graph_Edge, Extra, File_Name,
632 Find_All_Cycles_Through_Vertex, Find_All_Cycles_With_Edge,
633 Find_Cycles, Find_First_Lower_Precedence_Cycle,
634 Get_LGC_Attributes, Has_Next, Hash_Library_Graph_Cycle,
635 Hash_Library_Graph_Cycle_Attributes, Highest_Precedence_Cycle,
636 Highest_Precedence_Edge, In_Same_Component, Insert_And_Sort,
637 Invocation_Edge_Count, Invocation_Graph_Encoding,
638 Is_Cycle_Initiating_Edge, Is_Cyclic_Edge,
639 Is_Cyclic_Elaborate_All_Edge, Is_Cyclic_Elaborate_Body_Edge,
640 Is_Cyclic_Elaborate_Edge, Is_Cyclic_Forced_Edge,
641 Is_Cyclic_Invocation_Edge, Is_Cyclic_With_Edge,
642 Is_Dynamically_Elaborated, Is_Elaborate_All_Edge,
643 Is_Elaborate_Body_Edge, Is_Elaborate_Edge: New routines.
644 (Is_Existing_Predecessor_Successor_Relation): Removed.
645 (Is_Forced_Edge, Is_Invocation_Edge, Is_Recorded_Cycle,
646 Is_Recorded_Edge, Is_With_Edge, Iterate_Edges_Of_Cycle, Kind,
647 Length): New routine.
648 (Lib_Vertex): Removed.
649 (Line, Links_Vertices_In_Same_Component,
650 Maximum_Invocation_Edge_Count, Next, Normalize_And_Add_Cycle,
651 Normalize_Cycle_Path, Number_Of_Cycles, Path, Precedence,
652 Remove_Vertex_And_Complement, Sequence_Next_Cycle): New routines.
653 (Sequence_Next_IGE_Id): Renamed to Sequence_Next_Edge.
654 (Sequence_Next_IGV_Id): Renamed to Sequence_Next_Vertex.
655 (Sequence_Next_LGE_Id): Renamed to Sequence_Next_Edge.
656 (Sequence_Next_LGV_Id): Renamed to Sequence_Next_Vertex.
657 (Set_Is_Existing_Predecessor_Successor_Relation): Removed.
658 (Set_Is_Recorded_Cycle, Set_Is_Recorded_Edge,
659 Set_LGC_Attributes, Spec_Vertex, Trace_Cycle, Trace_Edge,
660 Trace_Eol, Trace_Vertex): New routines.
661 * bindo-graphs.ads: Add with and use clauses for Types and
662 GNAT.Lists. Update the parameter profiles of most routines to
663 use better parameter names. Update the implementation of most
664 routine to use the new parameter names. Add the new
665 instantiated data structures IGE_Lists, IGV_Sets, LGC_Lists,
666 LGE_Lists, LGE_Sets, LGV_Sets, and RC_Sets. Add new type
667 Library_Graph_Cycle_Id along with an empty and initial value.
668 Remove component Lib_Vertex and add new components Body_Vertex
669 and Spec_Vertex to type Invocation_Graph_Vertex_Attributes. Add
670 new type Library_Graph_Cycle_Kind. Add new iterators
671 All_Cycle_Iterator and Edges_Of_Cycle_Iterator. Add new type
672 Library_Graph_Cycle_Attributes. Add new components
673 Cycle_Attributes, Cycles, and Dynamically_Elaborated to type
674 Library_Graph_Attributes.
675 (Body_Vertex, Column, Destroy_Invocation_Graph_Edge,
676 Destroy_Library_Graph_Cycle_Attributes,
677 Destroy_Library_Graph_Edge, Extra, File_Name, Find_Cycles,
678 Has_Elaborate_All_Cycle, Has_Next, Hash_Library_Graph_Cycle,
679 Hash_Library_Graph_Cycle_Attributes, Highest_Precedence_Cycle,
680 In_Same_Component, Invocation_Edge_Count,
681 Invocation_Graph_Encoding, Is_Dynamically_Elaborated,
682 Is_Elaborate_All_Edge, Is_Elaborate_Body_Edge,
683 Is_Elaborate_Edge, Is_Forced_Edge, Is_Invocation_Edge,
684 Is_With_Edge, Iterate_All_Cycles, Iterate_Edges_Of_Cycle, Kind):
685 New routines.
686 (Length, Lib_Vertex, (Line, Next, Number_Of_Cycles, Present,
687 Same_Library_Graph_Cycle_Attributes, Spec_Vertex): New routines.
688 * bindo-units.adb (File_Name, Invocation_Graph_Encoding): New
689 routines.
690 * bindo-units.ads: Add new instantiated data structure
691 Unit_Sets.
692 (File_Name, Invocation_Graph_Encoding): New routine.
693 * bindo-validators.adb: Remove with and use clauses for GNAT and
694 GNAT.Sets. Remove membership set US. Update the parameter
695 profiles of most routines to use better parameter names. Update
696 the implementation of most routine to use the new parameter
697 names.
698 (Validate_Cycle, Validate_Cycle_Path, Validate_Cycles,
699 Validate_Invocation_Graph_Vertex): Remove the validation of
700 component Lib_Vertex. Add the validation of components
701 Body_Vertex and Spec_Vertex.
702 (Write_Error): New routine.
703 * bindo-validators.ads (Validate_Cycles): New routine.
704 * bindo-writers.adb: Update the parameter profiles of most
705 routines to use better parameter names. Update the
706 implementation of most routine to use the new parameter names.
707 (Write_Cycle, Write_Cyclic_Edge, Write_Cycles): New routines.
708 (Write_Invocation_Graph_Vertex): Remove the output of component
709 Lib_Vertex. Add the output of components Body_Vertex and
710 Spec_Vertex.
711 * bindo-writers.ads (Write_Cycles): New routine.
712 * debug.adb: Use binder switches -d_C and -d_P, add
713 documentation on their usage.
714 * gnatbind.adb: Remove with and use clauses for Binde. Delegate
715 the choice of elaboration mechanism to Bindo.
716 * lib-writ.adb (Column, Extra, Invoker, Kind, Line, Locations,
717 Name, Placement, Scope, Signature, Target): Removed.
718 (Write_Invocation_Graph): Moved at the top level.
719 (Write_Invocation_Graph_Attributes): New routine.
720 (Write_Invocation_Relation, Write_Invocation_Signature): Moved
721 at the top level.
722 * lib-writ.ads: Add a documentation section on invocation graph
723 attributes.
724 * sem_elab.adb (Body_Placement_Of): New routine.
725 (Declare_Invocation_Construct): Update the call to
726 Add_Invocation_Construct.
727 (Declaration_Placement_Of_Node): New routine.
728 (Get_Invocation_Attributes): Correct the retrieval of the
729 enclosing subprogram where the postcondition procedure lives.
730 (Placement_Of, Placement_Of_Node): Removed.
731 (Record_Invocation_Graph): Record the encoding format used.
732 (Record_Invocation_Graph_Encoding): New routine.
733 (Record_Invocation_Relation): Update the call to
734 Add_Invocation_Relation.
735 (Spec_Placement_Of): Removed.
736 * libgnat/g-lists.ads, libgnat/g-lists.adb (Equal): New routine.
737
164597c5 7382019-07-05 Ed Schonberg <schonberg@adacore.com>
739
740 * checks.adb (Apply_Predicate_Check): Except within the
741 subprogram body that defines the formal, do not apply predicate
742 check on a formal IN parameter: such a check is redundant and
743 its expansion can lead to out-of-scope references when it is
744 originates in a function call in a precondition,
745
572a4bc5 7462019-07-05 Yannick Moy <moy@adacore.com>
747
748 * sem_res.adb (Resolve_Call): Cannot inline in quantified
749 expressions.
750 * sem_util.adb, sem_util.ads (In_Quantified_Expression): New
751 function.
752
2c3ad474 7532019-07-05 Bob Duff <duff@adacore.com>
754
755 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
756 Fix typo.
757 * gnat_rm.texi: Regenerate.
758
2f67af4c 7592019-07-05 Bob Duff <duff@adacore.com>
760
761 * exp_attr.adb (Input): Take the No_Stream_Optimizations
762 restriction into account.
763
1cb1fd0f 7642019-07-05 Claire Dross <dross@adacore.com>
765
766 * libgnat/a-cofove.ads, libgnat/a-cofove.adb: Definite formal
767 vectors are now always bounded so that they do not need to be
768 limited anymore.
769
d2d09f3e 7702019-07-05 Dmitriy Anisimkov <anisimko@adacore.com>
771
772 * libgnat/g-traceb.ads, libgnat/g-traceb.adb (Call_Chain): New
773 function.
774
14e0bfed 7752019-07-04 James Clarke <jrtc27@debian.org>
776
777 * libgnarl/s-osinte__kfreebsd-gnu.ads (clockid_t): Make type
778 definition public.
779 (CLOCK_REALTIME): Make value public.
780
ecd07d3b 7812019-07-04 Javier Miranda <miranda@adacore.com>
782
783 * exp_tss.adb (Init_Proc): Adding missing support for access to
784 subprograms and access to protected subprograms of non-default
785 C++ constructors.
786
e0ff1639 7872019-07-04 Eric Botcazou <ebotcazou@adacore.com>
788
789 * gnat1drv.adb (Adjust_Global_Switches): Use proper interface to
790 set the validity settings in CodePeer mode.
791 * par-load.adb (Load): Remove all code dealing with validity
792 settings.
793 * validsw.ads (Validity_Check_Copies): Alphabetize.
794 * validsw.adb (Reset_Validity_Check_Options): Set all options to
795 off.
796 (Save_Validity_Check_Options): Save all options.
797
40bff3a0 7982019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
799
800 * exp_ch3.adb, exp_ch4.adb, exp_ch4.ads, exp_ch5.adb,
801 exp_ch7.adb, exp_ch9.adb, exp_ch11.adb, exp_unst.adb,
802 rtsfind.ads, sem_attr.adb, sem_ch10.adb, sem_ch12.adb,
803 sem_ch13.adb, sem_dim.adb, sem_disp.adb, xref_lib.adb: Minor
804 reformatting.
805
0ebaade4 8062019-07-04 Joffrey Huguet <huguet@adacore.com>
807
808 * libgnarl/a-taside.ads: Add assertion policy to ignore
809 preconditions.
810 (Abort_Task, Is_Terminated, Is_Callable): Add preconditions.
811
f14a590b 8122019-07-04 Eric Botcazou <ebotcazou@adacore.com>
813
814 * doc/gnat_rm/implementation_defined_pragmas.rst: Fix
815 capitalization and parenthesis glitches.
816 * gnat_rm.texi: Regenerate.
817
f5388f99 8182019-07-04 Ed Schonberg <schonberg@adacore.com>
819
820 * sem_ch10.adb (Remove_Context_Clauses): Handle properly the
821 removal of a limited_with_clause which appears in the library
822 unit oF the main unit, when some other unit in the context has a
823 regular with_clause on the same unit, to prevent spurious
824 visibility errors in the subsequent analysis of pending instance
825 bodies.
826
c930bc82 8272019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
828
829 * sem_elab.adb: Add new type Elaboration_Phase_Status along with
830 a global to keep track of the elaboration phase status.
831 Initialize all internal data structures to Nil for services
832 Elaborated_Units, Internal_Representation, and Scenario_Storage.
833 (Build_Call_Marker): Do not create a call marker when the
834 elaboration phase is not active.
835 (Build_Variable_Reference_Marker): Do not create a call marker
836 when the elaboration phase is not active.
837 (Check_Elaboration_Scenarios): Destroy all internal structures
838 when the elaboration phase does not have to run. Do not execute
839 when the elaboration phase is not active.
840 (Elaboration_Phase_Active): New routine.
841 (Finalize_All_Data_Structures): New routine.
842 (Initialize): Initialize all internal data structures and signal
843 that the elaboration phase has started.
844 (Initialize_All_Data_Structures): New routine.
845 (Initialize_Elaborated_Units): Initialize all internal data
846 structures.
847 (Initialize_Internal_Representation): Initialize all internal
848 data structures.
849 (Initialize_Scenario_Storage): Initialize all internal data
850 structures.
851 (Kill_Elaboration_Scenario): Do not execute when the elaboration
852 phase is not active.
853 (Set_Elaboration_Phase): New routine.
854 (Update_Elaboration_Scenario): Do not execute when the
855 elaboration phase is not active.
856
39dec7f4 8572019-07-04 Gary Dismukes <dismukes@adacore.com>
858
859 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The special
860 treatment of calling Mask_Unfrozen_Types must also be done in
861 the case of an Ignored_Ghost_Entity, because Expander_Active is
862 False in that case.
863
92b004be 8642019-07-04 Yannick Moy <moy@adacore.com>
865
866 * sem_prag.adb (Check_Library_Level_Entity): Update for new rule
867 on SPARK_Mode.
868
12795e1c 8692019-07-04 Justin Squirek <squirek@adacore.com>
870
871 * sem_disp.adb (Check_Controlling_Formals): Obtain the full view
872 before type comparison.
873
63fe3141 8742019-07-04 Ed Schonberg <schonberg@adacore.com>
875
876 * exp_ch4.ads, exp_ch4.adb (Build_Eq_Call): New visible
877 subprogram, extracted from Expand_Composite_Equality, to handle
878 properly the composition of equality for variant record types.
879 * exp_ch3.adb (MAke_Eq_If): Use Build_Eq_Call for each
880 component, to handle properly the case of a component with a
881 user-defined equality. Revert to predefined equality if the
882 user-defined operation is abstract, to maintain compatibility
883 with older versions,
884
17fa952a 8852019-07-04 Justin Squirek <squirek@adacore.com>
886
887 * exp_ch3.adb (Build_Initialization_Call): Fixup
888 *_skip_null_excluding_check argument to handle new default.
889 (Init_Formals): Make *_skip_null_excluding_check formal default
890 to False
891 * exp_ch4.adb (Expand_N_Allocator): Add comment to note heavy
892 code duplication
893
cf32543d 8942019-07-04 Bob Duff <duff@adacore.com>
895
896 * sem_ch3.adb (Access_Definition): Do not create a master unless
897 Tasking_Allowed. Otherwise, this fails on restricted runtimes.
898
eb4dbf20 8992019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
900
901 * sem_util.adb (Propagate_DIC_Attributes): Do not propagate the
902 Default_Initial_Condition attributes to an incomplete type.
903
25ddc6ba 9042019-07-04 Ed Schonberg <schonberg@adacore.com>
905
906 * sem_attr.adb (Check_Array_Type): An array type attribute such
907 as 'First can be applied to an unconstrained array tyope when
908 the attribute reference appears within an aspect specification
909 and the prefix is a current instance, given that the prefix of
910 the attribute will become a formal of the subprogram that
911 implements the aspect (typically a predicate check).
912
74a5962a 9132019-07-04 Piotr Trojanek <trojanek@adacore.com>
914
915 * sem_util.adb (Yields_Synchronized_Object): Fix typos in
916 comments.
917
c65d33a8 9182019-07-04 Yannick Moy <moy@adacore.com>
919
920 * sem_util.adb (Yields_Synchronized_Object): Adapt to new SPARK
921 rule.
922
afd77d39 9232019-07-04 Yannick Moy <moy@adacore.com>
924
925 * sem_spark.adb (Check_Statement): Only check permission of
926 object in extended return when it is of a deep type.
927
2281b807 9282019-07-04 Justin Squirek <squirek@adacore.com>
929
930 * sem_ch12.adb (Perform_Appropriate_Analysis): Added for
931 selecting which type of analysis based on wheither the
932 instantiation is a generic at the library-level. In which case
933 expansion during analysis.
934 (Preanalyze_Actuals): Modify calls to Analyze to use the new
935 routine.
936
542b3e26 9372019-07-04 Ed Schonberg <schonberg@adacore.com>
938
939 * exp_unst.adb: Handle conditional expressions.
940
7754aad4 9412019-07-04 Yannick Moy <moy@adacore.com>
942
943 * sem_spark.adb (Check_Package_Spec, Check_Package_Body): Only
944 analyze parts of the code marked in SPARK.
945
3843c1bd 9462019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
947
948 * erroutc.adb, exp_aggr.adb, inline.adb, opt.adb, sem_ch3.adb:
949 Minor reformatting.
950
5bc0f990 9512019-07-04 Yannick Moy <moy@adacore.com>
952
953 * sem_spark.adb (Explanation, Get_Expl): New functions to get
954 the explanation for a permission mismatch.
955 (Perm_Error, Perm_Mismatch, Perm_Error_Loop_Exit): Take
956 explanation into account for issuing a more precise error
957 message.
958 (Set_Perm_Prefixes, Set_Perm_Extensions,
959 Set_Perm_Extensions_Move): Pass suitable argument for the
960 explanation node.
961
11903e68 9622019-07-04 Arnaud Charlet <charlet@adacore.com>
963
964 * exp_aggr.adb (In_Place_Assign_OK): Moved to top level and add
965 support for record aggregates.
966 (Component_Check): Use Is_CCG_Supported_Aggregate instead of a
967 similar local predicate.
968 (Convert_To_Assignments): Take advantage of In_Place_Assign_OK
969 predicate when possible.
970 (Is_CCG_Supported_Aggregate): Return False for records with
971 representation clauses and fix the logic for dealing with nested
972 aggregates.
973
b0c19ea3 9742019-07-04 Piotr Trojanek <trojanek@adacore.com>
975
976 * opt.adb (Set_Config_Switches): Keep assertions policy as
977 enabled when analysing internal units in GNATprove mode.
978
90f2b146 9792019-07-04 Arnaud Charlet <charlet@adacore.com>
980
981 * exp_ch4.adb (Expand_Short_Circuit_Operator): Strip
982 N_Variable_Reference_Marker when checking for the presence of
983 actions.
984
39ecad34 9852019-07-04 Arnaud Charlet <charlet@adacore.com>
986
987 * exp_aggr.adb (Check_Component): Take into account type
988 conversions.
989
c0e899f1 9902019-07-04 Dmitriy Anisimkov <anisimko@adacore.com>
991
992 * doc/gnat_ugn/platform_specific_information.rst: Document
993 Windows socket timeout particularity.
994 * gnat_ugn.texi: Regenerate.
995 * gsocket.h: Include versionhelpers.h.
996 * socket.c (__gnat_minus_500ms): New function.
997 * libgnat/g-sothco.ads (Minus_500ms_Windows_Timeout): New
998 imported function.
999 * libgnat/g-socket.adb (Set_Socket_Option): Refactor to remove
1000 500ms from the requested timeout only on old Windows version.
1001
363b1a8e 10022019-07-04 Thomas Quinot <quinot@adacore.com>
1003
1004 * get_scos.adb: Remove bogus, dead code.
1005
4ae0a9ce 10062019-07-04 Ed Schonberg <schonberg@adacore.com>
1007
1008 * sem_dim.adb (Analyze_Dimension_Array_Aggregate): If the
1009 component is an entity name, its dimensions are those of its
1010 type.
1011
d60fa3c9 10122019-07-03 Bob Duff <duff@adacore.com>
1013
1014 * doc/gnat_ugn/gnat_utility_programs.rst: Document new flags in
1015 GNATpp.
1016
877ad320 10172019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
1018
1019 * binde.adb: Remove with clause for System.OS_Lib.
1020 (Force_Elab_Order): Refactor the majority of the code in Butil.
1021 Use the new forced units iterator to obtain unit names.
1022 * bindo-builders.adb: Add with and use clauses for Binderr,
1023 Butil, Opt, Output, Types, GNAT, and GNAT.Dynamic_HTables. Add
1024 a hash table which maps units to line number in the forced
1025 elaboration order file.
1026 (Add_Unit): New routine.
1027 (Build_Library_Graph): Create forced edges between pairs of
1028 units listed in the forced elaboration order file.
1029 (Create_Forced_Edge, Create_Forced_Edges, Destroy_Line_Number,
1030 Duplicate_Unit_Error, Hash_Unit, Internal_Unit_Info,
1031 Is_Duplicate_Unit, Missing_Unit_Info): New routines.
1032 * bindo-graphs.adb (Is_Internal_Unit, Is_Predefined_Unit):
1033 Refactor some of the behavior to Bindo-Units.
1034 * bindo-graphs.ads: Enable the enumeration literal for forced
1035 edges.
1036 * bindo-units.adb, bindo-units.ads (Is_Internal_Unit,
1037 Is_Predefined_Unit): New routines.
1038 * butil.adb: Add with and use clauses for Opt, GNAT, and
1039 System.OS_Lib. Add with clause for Unchecked_Deallocation.
1040 (Has_Next, Iterate_Forced_Units, Next, Parse_Next_Unit_Name,
1041 Read_Forced_Elab_Order_File): New routines.
1042 * butil.ads: Add with and use clauses for Types. Add new
1043 iterator over the units listed in the forced elaboration order
1044 file.
1045 (Has_Next, Iterate_Forced_Units, Next): New routine.
1046 * namet.adb, namet.ads (Present): New routine.
1047
01e6eb2f 10482019-07-03 Bob Duff <duff@adacore.com>
1049
1050 * sem_ch3.adb (Access_Definition): The code was creating a
1051 master in the case where the designated type is a class-wide
1052 interface type. Create a master in the noninterface case as
1053 well. That is, create a master for all limited class-wide types.
1054
9ad42832 10552019-07-03 Yannick Moy <moy@adacore.com>
1056
1057 * erroutc.adb (Sloc_In_Range): New function to determine whether
1058 the range of a pragma Warnings covers a location, taking
1059 instantiations into account.
1060
f2a8d64e 10612019-07-03 Johannes Kanig <kanig@adacore.com>
1062
1063 * osint.ads, osint.adb (Get_First_Main_File_Name): New routine
1064 to access the first file provided on the command line.
1065
d4f28933 10662019-07-03 Ed Schonberg <schonberg@adacore.com>
1067
1068 * inline.adb (Process_Formals_In_Aspects): New procedure within
1069 Expand_Inlined_Call, to perform a replacement of references to
1070 formals that appear in aspect specifications within the body
1071 being inlined.
1072
23e7fc9b 10732019-07-03 Justin Squirek <squirek@adacore.com>
1074
1075 * sem_ch8.adb (Analyze_Object_Renaming): Add call to search for
1076 the appropriate actual subtype of the object renaming being
1077 analyzed.
1078 (Check_Constrained_Object): Minor cleanup.
1079
f8e6d133 10802019-07-03 Yannick Moy <moy@adacore.com>
1081
1082 * sem_spark.adb (Get_Observed_Or_Borrowed_Expr): New function to
1083 return go through traversal function call.
1084 (Check_Type): Consistently use underlying type.
1085 (Get_Perm): Adapt for case of elaboration code where variables
1086 are not declared in the environment. Remove incorrect handling
1087 of borrow and observe.
1088
d044ba5c 10892019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
1090
1091 * inline.adb (Build_Return_Object_Formal): New routine.
1092 (Can_Split_Unconstrained_Function): Code clean up.
1093 (Copy_Formals,Copy_Return_Object): New routines.
1094 (Split_Unconstrained_Function): Code clean up and refactoring.
1095
8699de72 10962019-07-03 Gary Dismukes <dismukes@adacore.com>
1097
1098 * bindo-augmentors.adb, bindo-augmentors.ads,
1099 bindo-builders.ads, bindo-elaborators.adb, sem_ch12.adb,
1100 sem_ch13.adb, sem_spark.adb, sinfo.ads: Minor editorial
1101 corrections and reformatting.
1102
2ccf6539 11032019-07-03 Bob Duff <duff@adacore.com>
1104
1105 * sem_warn.adb (Check_Infinite_Loop_Warning): Avoid the warning
1106 if an Iterator_Specification is present.
1107
17b5260d 11082019-07-03 Bob Duff <duff@adacore.com>
1109
1110 * doc/gnat_ugn/gnat_utility_programs.rst: Document default
1111 new-line behavior.
1112
5f71d12c 11132019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
1114
1115 * ali.adb: Add with and use clauses for GNAT,
1116 GNAT.Dynamic_HTables, and Snames. Add a map from invocation
1117 signature records to invocation signature ids. Add various
1118 encodings of invocation-related attributes. Sort and update
1119 table Known_ALI_Lines.
1120 (Add_Invocation_Construct, Add_Invocation_Relation,
1121 Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind,
1122 Code_To_Invocation_Construct_Kind, Code_To_Invocation_Kind,
1123 Code_To_Invocation_Graph_Line_Kind, Destroy, Hash): New
1124 routines.
1125 (Initialize_ALI): Sort the initialization sequence. Add
1126 initialization for all invocation-related tables.
1127 (Invocation_Construct_Kind_To_Code,
1128 Invocation_Graph_Line_Kind_To_Code, Invocation_Kind_To_Code,
1129 Invocation_Signature_Of, Present): New routines.
1130 (Scan_ALI): Add the default values for invocation-related ids.
1131 Scan invocation graph lines.
1132 (Scan_Invocation_Graph_Line): New routine.
1133 * ali.ads: Add with clause for GNAT.Dynamic_Tables. Add types
1134 for invocation constructs, relations, and signatures. Add
1135 tables for invocation constructs, relations, and signatures.
1136 Update Unit_Record to capture invocation-related ids. Relocate
1137 table Unit_Id_Tables and subtypes Unit_Id_Table, Unit_Id_Array
1138 from Binde.
1139 (Add_Invocation_Construct, Add_Invocation_Relation,
1140 Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind,
1141 Code_To_Invocation_Construct_Kind, Code_To_Invocation_Kind,
1142 Code_To_Invocation_Graph_Line_Kind,
1143 Invocation_Construct_Kind_To_Code,
1144 Invocation_Graph_Line_Kind_To_Code, Invocation_Kind_To_Code,
1145 Invocation_Signature_Of, Present): New routines.
1146 * binde.adb: Add with and use clause for Types. Add use clause
1147 for ALI.Unit_Id_Tables;
1148 * binde.ads: Relocate table Unit_Id_Tables and subtypes
1149 Unit_Id_Table, Unit_Id_Array to ALI.
1150 * bindgen.adb: Remove with and use clause for ALI.
1151 * bindgen.ads: Remove with and use clause for Binde. Add with
1152 and use clause for ALI.
1153 * bindo.adb, bindo.ads, bindo-augmentors.adb,
1154 bindo-augmentors.ads, bindo-builders.adb, bindo-builders.ads,
1155 bindo-diagnostics.adb, bindo-diagnostics.ads,
1156 bindo-elaborators.adb, bindo-elaborators.ads, bindo-graphs.adb,
1157 bindo-graphs.ads, bindo-units.adb, bindo-units.ads,
1158 bindo-validators.adb, bindo-validators.ads, bindo-writers.adb,
1159 bindo-writers.ads: New units.
1160 * debug.adb: Use and describe GNAT debug switches -gnatd_F and
1161 -gnatd_G. Add GNATbind debug switches in the ranges dA .. dZ,
1162 d.a .. d.z, d.A .. d.Z, d.1 .. d.9, d_a .. d_z, d_A .. d_Z, and
1163 d_1 .. d_9. Use and describe GNATbind debug switches -d_A,
1164 -d_I, -d_L, -d_N, -d_O, -d_T, and -d_V.
1165 * exp_util.adb, exp_util.ads (Exceptions_OK): Relocate to
1166 Sem_Util.
1167 * gnatbind.adb: Add with and use clause for Bindo. Use the new
1168 Bindo elaboration order only when -d_N is in effect.
1169 * lib-writ.adb
1170 (Column, Extra, Invoker, Kind, Line, Locations, Name, Placement,
1171 Scope, Signature, Target): New routines.
1172 (Write_ALI): Output all invocation-related data.
1173 (Write_Invocation_Graph): New routine.
1174 * lib-writ.ads: Document the invocation graph ALI line.
1175 * namet.adb, namet.ads (Present): New routines.
1176 * sem_ch8.adb (Find_Direct_Name): Capture the status of
1177 elaboration checks and warnings of an identifier.
1178 (Find_Expanded_Name): Capture the status of elaboration checks
1179 and warnings of an expanded name.
1180 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Ensure
1181 that invocation graph-related data within the body of the main
1182 unit is encoded in the ALI file.
1183 (Analyze_Generic_Subprogram_Declaration): Ensure that invocation
1184 graph-related data within the body of the main unit is encoded
1185 in the ALI file.
1186 (Analyze_Package_Instantiation): Perform minimal decoration of
1187 the instance entity.
1188 (Analyze_Subprogram_Instantiation): Perform minimal decoration
1189 of the instance entity.
1190 * sem_elab.adb: Perform heavy refactoring of all code. The unit
1191 is now split into "services" which specialize in one area of ABE
1192 checks. Add processing in order to capture invocation-graph
1193 related attributes of the main unit, and encode them in the ALI
1194 file. The Processing phase can now operate in multiple modes,
1195 all described by type Processing_Kind. Scenarios and targets
1196 are now distinct at the higher level, and carry their own
1197 representations. This eliminates the need to constantly
1198 recompute their attributes, and offers the various processors a
1199 uniform interface. The various initial states of the Processing
1200 phase are now encoded using type Processing_In_State, and
1201 xxx_State constants.
1202 * sem_elab.ads: Update the literals of type
1203 Enclosing_Level_Kind. Add Inline pragmas on several routines.
1204 * sem_prag.adb (Process_Inline): Ensure that invocation
1205 graph-related data within the body of the main unit is encoded
1206 in the ALI file.
1207 * sem_util.adb (Enclosing_Generic_Body, Enclosing_Generic_Unit):
1208 Code clean up.
1209 (Exceptions_OK): Relocated from Sem_Util.
1210 (Mark_Save_Invocation_Graph_Of_Body): New routine.
1211 * sem_util.ads (Exceptions_OK): Relocated from Sem_Util.
1212 (Mark_Save_Invocation_Graph_Of_Body): New routine.
1213 * sinfo.adb (Is_Elaboration_Checks_OK_Node): Now applicable to
1214 N_Variable_Reference_Marker.
1215 (Is_Elaboration_Warnings_OK_Node): Now applicable to
1216 N_Expanded_Name, N_Identifier, N_Variable_Reference_Marker.
1217 (Is_Read): Use Flag4.
1218 (Is_SPARK_Mode_On_Node): New applicable to
1219 N_Variable_Reference_Marker.
1220 (Is_Write): Use Flag5.
1221 (Save_Invocation_Graph_Of_Body): New routine.
1222 (Set_Is_Elaboration_Checks_OK_Node): Now applicable to
1223 N_Variable_Reference_Marker.
1224 (Set_Is_Elaboration_Warnings_OK_Node): Now applicable to
1225 N_Expanded_Name, N_Identifier, N_Variable_Reference_Marker.
1226 (Set_Is_SPARK_Mode_On_Node): New applicable to
1227 N_Variable_Reference_Marker.
1228 (Set_Save_Invocation_Graph_Of_Body): New routine.
1229 * sinfo.ads: Update the documentation of attributes
1230 Is_Elaboration_Checks_OK_Node, Is_Elaboration_Warnings_OK_Node,
1231 Is_SPARK_Mode_On_Node. Update the flag usage of attributes
1232 Is_Read, Is_Write. Add attribute Save_Invocation_Graph_Of_Body
1233 and update its occurrence in nodes.
1234 (Save_Invocation_Graph_Of_Body): New routine along with pragma
1235 Inline.
1236 (Set_Save_Invocation_Graph_Of_Body): New routine along with
1237 pragma Inline.
1238 * switch-b.adb (Scan_Binder_Switches): Refactor the scanning of
1239 debug switches.
1240 (Scan_Debug_Switches): New routine.
1241 * libgnat/g-dynhta.adb, libgnat/g-dynhta.ads (Contains): New routine.
1242 * libgnat/g-graphs.adb (Associate_Vertices): Update the use of
1243 Component_Vertex_Iterator.
1244 (Contains_Component, Contains_Edge, Contains_Vertex, Has_Next):
1245 Reimplemented.
1246 (Iterate_Component_Vertices): New routine.
1247 (Iterate_Vertices): Removed.
1248 (Next): Update the parameter profile.
1249 (Number_Of_Component_Vertices, Number_Of_Outgoing_Edges): New
1250 routines.
1251 * libgnat/g-graphs.ads: Update the initialization of
1252 No_Component. Add type Component_Vertex_Iterator. Remove type
1253 Vertex_Iterator.
1254 (Has_Next): Add new versions and remove old ones.
1255 (Iterate_Component_Vertices): New routine.
1256 (Iterate_Vertices): Removed.
1257 (Next): Add new versions and remove old ones.
1258 (Number_Of_Component_Vertices, Number_Of_Outgoing_Edges): New
1259 routines.
1260 * libgnat/g-sets.adb (Contains): Reimplemented.
1261 * gcc-interface/Make-lang.in (GNATBIND_OBJS): Add
1262 GNAT.Dynamic_HTables, GNAT.Graphs and Bindo units.
1263 * rtsfind.ads: Remove extra space.
1264
df177848 12652019-07-03 Yannick Moy <moy@adacore.com>
1266
1267 * sem_spark.adb: Add support for locally borrowing and observing
1268 a path.
1269 (Get_Root_Object): Add parameter Through_Traversal to denote
1270 when we are interesting in getting to the traversed parameter.
1271 (Is_Prefix_Or_Almost): New function to support detection of
1272 illegal access to borrowed or observed paths.
1273 (Check_Pragma): Add analysis of assertion pragmas.
1274
f3f142ac 12752019-07-03 Ed Schonberg <schonberg@adacore.com>
1276
1277 * sem_ch13.adb (Build_Predicate_Functions): In a generic context
1278 we do not build the bodies of predicate fuctions, but the
1279 expression in a static predicate must be elaborated to allow
1280 case coverage checking within the generic unit.
1281 (Build_Discrete_Static_Predicate): In a generic context, return
1282 without building function body once the
1283 Static_Discrete_Predicate expression for the type has been
1284 constructed.
1285
99d90c85 12862019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
1287
1288 * bindgen.adb, inline.adb, layout.adb, sem_ch12.adb,
1289 sem_ch13.adb, sem_ch7.adb, styleg.adb: Minor reformatting.
1290
800597f6 12912019-07-03 Bob Duff <duff@adacore.com>
1292
1293 * par-ch3.adb (P_Defining_Identifier): Call
1294 Check_Defining_Identifier_Casing.
1295 * style.ads, styleg.ads, styleg.adb
1296 (Check_Defining_Identifier_Casing): New procedure to check for
1297 mixed-case defining identifiers.
1298 * stylesw.ads, stylesw.adb (Style_Check_Mixed_Case_Decls): New
1299 flag for checking for mixed-case defining identifiers.
1300 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
1301 Document new feature.
1302 * gnat_ugn.texi: Regenerate.
1303
2c75027a 13042019-07-03 Eric Botcazou <ebotcazou@adacore.com>
1305
1306 * doc/gnat_ugn/building_executable_programs_with_gnat.rst
1307 (Warning message control): Document that -gnatw.z/Z apply to
1308 array types.
1309 * freeze.adb (Freeze_Entity): Give -gnatw.z warning for array
1310 types as well, but not if the specified alignment is the minimum
1311 one.
1312 * gnat_ugn.texi: Regenerate.
1313
08237d0d 13142019-07-03 Bob Duff <duff@adacore.com>
1315
1316 * einfo.ads, exp_util.adb, layout.ads, sinfo.ads: Spell "laid"
1317 correctly.
1318
0396441f 13192019-07-03 Ed Schonberg <schonberg@adacore.com>
1320
1321 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): No error
1322 message on attribute applied to a renaming when the renamed
1323 object is an aggregate (from code reading).
1324 (Check_Aspect_At_End_Of_Declarations): In a generic context
1325 where freeze nodes are not generated, the original expression
1326 for an aspect may need to be analyzed to precent spurious
1327 conformance errors when compared with the expression that is
1328 anakyzed at the end of the current declarative list.
1329
c8406f30 13302019-07-03 Eric Botcazou <ebotcazou@adacore.com>
1331
1332 * layout.adb (Layout_Type): Do not set the component size of an
1333 array with a scalar component if the component type is
1334 overaligned.
1335
c38b32ea 13362019-07-03 Ed Schonberg <schonberg@adacore.com>
1337
1338 * inline.adb (Make_Loop_Labels_Unique): New procedure to modify
1339 the source code of subprograms that are inlined by the
1340 front-end, to prevent accidental duplication between loop labels
1341 in the inlined code and the code surrounding the inlined call.
1342
6d6f134e 13432019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
1344
1345 * doc/gnat_ugn/elaboration_order_handling_in_gnat.rst: Update
1346 the section on resolving elaboration circularities to eliminate
1347 certain combinations of switches which together do not produce
1348 the desired effect and confuse users.
1349 * gnat_ugn.texi: Regenerate.
1350
f3e16ef4 13512019-07-03 Arnaud Charlet <charlet@adacore.com>
1352
1353 * bindgen.adb (Gen_Main): Disable generation of reference to
1354 Ada_Main_Program_Name for CCG.
1355 * bindusg.adb (Display): Add -G to the command-line usage for
1356 gnatbind.
1357 * opt.ads (Generate_C_Code): Update comment.
1358 * switch-b.adb (Scan_Binder_Switches): Add handling for -G.
1359
f4a31b16 13602019-07-03 Arnaud Charlet <charlet@adacore.com>
1361
1362 * sem_ch7.adb (Has_Referencer): Do not consider inlined
1363 subprograms when generating C code, which allows us to generate
1364 static inline subprograms.
1365
2f65e9f7 13662019-07-03 Justin Squirek <squirek@adacore.com>
1367
1368 * sem_ch6.adb (Check_Conformance): Add expression checking for
1369 constant modifiers in anonymous access types (in addition to
1370 "non-null" types) so that they are considered "matching" for
1371 subsequent conformance tests.
1372
c336ed70 13732019-07-03 Arnaud Charlet <charlet@adacore.com>
1374
1375 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
1376 Clarify wording on No_Multiple_Elaboration.
1377 * gnat_rm.texi: Regenerate.
1378
78611c86 13792019-07-03 Ed Schonberg <schonberg@adacore.com>
1380
1381 * sem_ch8.adb (Find_Selected_Component): If the prefix is the
1382 current instance of a type or subtype, complete the resolution
1383 of the name by finding the component of the type denoted by the
1384 selector name.
1385
5a87a4d9 13862019-07-03 Eric Botcazou <ebotcazou@adacore.com>
1387
1388 * doc/gnat_rm/interfacing_to_other_languages.rst (Interfacing to C):
1389 Document that boolean types with convention C now map to C99 bool.
1390 * gnat_rm.texi: Regenerate.
1391
371c539c 13922019-07-03 Javier Miranda <miranda@adacore.com>
1393
1394 * exp_attr.adb (Expand_Min_Max_Attribute): Code cleanup:
1395 removing code that it is now never executed in the CCG compiler
1396 (dead code).
1397
89d2d652 13982019-07-02 Iain Sandoe <iain@sandoe.co.uk>
1399
1400 * libgnat/system-darwin-ppc.ads: Set Stack_Check_Probes True for
1401 PPC Darwin.
1402
d21e66fb 14032019-07-01 Ed Schonberg <schonberg@adacore.com>
1404
1405 * sem_ch12.adb (Is_Defaulted): New predicate in
1406 Check_Formal_Package_Intance, to skip the conformance of checks
1407 on parameters of a formal package that are defaulted,
1408
7a42b778 14092019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1410
1411 * checks.adb, exp_ch9.adb, exp_unst.adb, sem_ch4.adb,
1412 sem_prag.adb, sem_spark.adb: Minor reformatting.
1413
fc8ae496 14142019-07-01 Ed Schonberg <schonberg@adacore.com>
1415
1416 * sem_attr.adb (Analyze_Attribute, case Enum_Rep): Allow prefix
1417 of attribute to be an attribute reference of a discrete type.
1418
9d27ea41 14192019-07-01 Eric Botcazou <ebotcazou@adacore.com>
1420
1421 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Move up
1422 handling of Has_Pragma_Inline_Always and deal with
1423 Has_Pragma_No_Inline.
1424
bcb8dcf3 14252019-07-01 Ed Schonberg <schonberg@adacore.com>
1426
1427 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type is
1428 declared as a subtype of a private type with an inherited
1429 discriminant constraint, its generated full base appears as a
1430 record subtype, so we need to retrieve its oen base type so that
1431 the inherited constraint can be applied to it.
1432
d087b9ca 14332019-07-01 Yannick Moy <moy@adacore.com>
1434
1435 * sem_spark.adb: Completely rework the algorithm for ownership
1436 checking, as the rules in SPARK RM have changed a lot.
1437 * sem_spark.ads: Update comments.
1438
fe48ee0a 14392019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
1440
1441 * gsocket.h (Has_Sockaddr_Len): Use the offset of sin_family offset in
1442 the sockaddr_in structure to determine the existence of length field
1443 before the sin_family.
1444
b20f7e2c 14452019-07-01 Ed Schonberg <schonberg@adacore.com>
1446
1447 * sem_prag.adb (Analyze_Pragma, case Weak_External): Pragma only
1448 applies to entities with run-time addresses, not to types.
1449
374fdf94 14502019-07-01 Piotr Trojanek <trojanek@adacore.com>
1451
1452 * einfo.adb, sem_ch7.adb, sem_prag.adb, sem_util.adb: Update
1453 references to the SPARK RM after the removal of Rule 7.1.4(5).
1454
bf13a79d 14552019-07-01 Piotr Trojanek <trojanek@adacore.com>
1456
1457 * sysdep.c: Cleanup references to LynuxWorks in docs and
1458 comments.
1459
866fa2d0 14602019-07-01 Ed Schonberg <schonberg@adacore.com>
1461
1462 * checks.adb (Insert_Valid_Check): Do not apply validity check
1463 to variable declared within a protected object that uses the
1464 Lock_Free implementation, to prevent unwarranted constant
1465 folding, because entities within such an object msut be treated
1466 as volatile.
1467
bcb5ab83 14682019-07-01 Eric Botcazou <ebotcazou@adacore.com>
1469
1470 * exp_ch9.adb (Check_Inlining): Deal with Has_Pragma_No_Inline.
1471
2db33bd6 14722019-07-01 Ed Schonberg <schonberg@adacore.com>
1473
1474 * exp_unst.adb (Visit_Node, Check_Static_Type): Improve the
1475 handling of private and incomplete types whose full view is an
1476 access type, to detect additional uplevel references in dynamic
1477 bounds. This is relevant to N_Free_Statement among others that
1478 manipulate types whose full viww may be an access type.
1479
6b4f0b7d 14802019-07-01 Pat Rogers <rogers@adacore.com>
1481
1482 * doc/gnat_rm/representation_clauses_and_pragmas.rst: Correct
1483 size indicated for R as a component of an array.
1484 * gnat_rm.texi: Regenerate.
1485
cdee70d7 14862019-07-01 Justin Squirek <squirek@adacore.com>
1487
1488 * libgnat/s-win32.ads: Add definition for ULONG, modify
1489 OVERLAPPED type, and add appropriate pragmas.
1490
2cf822b7 14912019-07-01 Bob Duff <duff@adacore.com>
1492
1493 * gnat1drv.adb (gnat1drv): Call Write_ALI if the main unit is
1494 ignored-ghost.
1495
0a1ece97 14962019-07-01 Yannick Moy <moy@adacore.com>
1497
1498 * sem_ch4.adb (Operator_Check): Refine error message.
1499
ee4279ef 15002019-07-01 Piotr Trojanek <trojanek@adacore.com>
1501
1502 * libgnat/a-calend.ads: Revert "Global => null" contracts on
1503 non-pure routines.
1504
2c6b4ada 15052019-07-01 Piotr Trojanek <trojanek@adacore.com>
1506
1507 * exp_attr.adb, libgnat/g-graphs.ads: Fix typos in comments:
1508 componant -> component.
1509
175c4526 15102019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1511
1512 * libgnat/g-graphs.adb: Use type Directed_Graph rather than
1513 Instance in various routines.
1514 * libgnat/g-graphs.ads: Change type Instance to Directed_Graph.
1515 Update various routines that mention the type.
1516
a0d15509 15172019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1518
1519 * libgnat/g-sets.adb: Use type Membership_Set rathern than
1520 Instance in various routines.
1521 * libgnat/g-sets.ads: Change type Instance to Membership_Set.
1522 Update various routines that mention the type.
1523
205a23a3 15242019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1525
1526 * libgnat/g-lists.adb: Use type Doubly_Linked_List rather than
1527 Instance in various routines.
1528 * libgnat/g-lists.ads: Change type Instance to
1529 Doubly_Linked_List. Update various routines that mention the
1530 type.
1531
17fdf8c2 15322019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1533
1534 * libgnat/g-dynhta.adb: Use type Dynamic_Hash_Table rather than
1535 Instance in various routines.
1536 * libgnat/g-dynhta.ads: Change type Instance to
1537 Dynamic_Hash_Table. Update various routines that mention the
1538 type.
1539
216ffc64 15402019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1541
1542 * exp_attr.adb, exp_ch7.adb, exp_unst.adb, sem_ch3.adb,
1543 sem_util.adb, uintp.adb, uintp.ads: Minor reformatting.
1544
5051fe35 15452019-07-01 Javier Miranda <miranda@adacore.com>
1546
1547 * exp_attr.adb (Expand_Min_Max_Attribute): Disable expansion of
1548 'Min/'Max on integer, enumeration, fixed point and floating
1549 point types since the CCG backend now provides in file
1550 standard.h routines to support it.
1551
830a2a71 15522019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1553
1554 * impunit.adb: Add GNAT.Graphs to list Non_Imp_File_Names_95.
1555 * Makefile.rtl, gcc-interface/Make-lang.in: Register unit
1556 GNAT.Graphs.
1557 * libgnat/g-dynhta.adb: Various minor cleanups (use Present
1558 rather than direct comparisons).
1559 (Delete): Reimplement to use Delete_Node.
1560 (Delete_Node): New routine.
1561 (Destroy_Bucket): Invoke the provided destructor.
1562 (Present): New routines.
1563 * libgnat/g-dynhta.ads: Add new generic formal Destroy_Value.
1564 Use better names for the components of iterators.
1565 * libgnat/g-graphs.adb, libgnat/g-graphs.ads: New unit.
1566 * libgnat/g-lists.adb: Various minor cleanups (use Present
1567 rather than direct comparisons).
1568 (Delete_Node): Invoke the provided destructor.
1569 (Present): New routine.
1570 * libgnat/g-lists.ads: Add new generic formal Destroy_Element.
1571 Use better names for the components of iterators.
1572 (Present): New routine.
1573 * libgnat/g-sets.adb, libgnat/g-sets.ads (Destroy, Preset,
1574 Reset): New routines.
1575
b0111d94 15762019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
1577
1578 * libgnat/g-sothco.adb (Get_Address): Fix the case when AF_INET6
1579 is not defined.
1580
7362896b 15812019-07-01 Ed Schonberg <schonberg@adacore.com>
1582
1583 * exp_attr.adb (Expand_Attribute_Reference, case Invalid_Value):
1584 Resolve result of call to Get_Simple_Init_Val, which may be a
1585 conversion of a literal.
1586
0dae8dc2 15872019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
1588
1589 * freeze.adb (Freeze_Expression): Remove the horrible useless
1590 name hiding of N. Insert the freeze nodes generated by the
1591 expression prior to the expression when the nearest enclosing
1592 scope is transient.
1593
487da8ff 15942019-07-01 Pierre-Marie de Rodat <derodat@adacore.com>
1595
1596 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix
1597 formatting issues in the -gnatR section.
1598 * gnat_ugn.texi: Regenerate.
1599
1d79fa18 16002019-06-30 Iain Sandoe <iain@sandoe.co.uk>
1601
1602 * gnatlink.adb (Link_Step): Remove duplicate -static-libgcc switches.
1603 Push -shared-libgcc explicitly, when it is the target default (unless
1604 overidden by the static flag).
1605 When the user has put an instance of shared/static-libgcc do not push
1606 a duplicate of this.
1607
a850edcd 16082019-06-29 Eric Botcazou <ebotcazou@adacore.com>
1609
1610 * gcc-interface/decl.c (gnat_to_gnu_entity): Beep up comment on SAVED,
1611 and tweak comment on the assertion about the scopes of Itypes. Do not
1612 skip the regular processing for Itypes that are E_Record_Subtype with
1613 a Cloned_Subtype. Get the Cloned_Subtype for every E_Record_Subtype
1614 if the type is dummy and hasn't got its own freeze node.
1615 <E_Record_Subtype>: Save again the DECL of the Cloned_Subtype, if any.
1616 <E_Access_Subtype>: Save again the DECL of the equivalent type.
1617 (Gigi_Equivalent_Type) <E_Access_Subtype>: New case.
1618
b1e46fb1 16192019-06-29 Eric Botcazou <ebotcazou@adacore.com>
1620
1621 * gcc-interface/utils.c (unchecked_convert): Tweak comment. Only skip
1622 dereferences when padding to have the same size on both sides. Do it
1623 for destination types with self-referential size too.
1624
07e38949 16252019-06-29 Eric Botcazou <ebotcazou@adacore.com>
1626
1627 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the
1628 type requires strict alignment, then set the RM size to the type size.
1629 Rework handling of alignment and sizes of tagged types in ASIS mode.
1630 (validate_size): Rename local variable and remove special handling for
1631 strict-alignment types.
1632 * gcc-interface/utils.c (finish_record_type): Constify local variables
1633 and use properly typed constants.
1634
f4409741 16352019-06-29 Eric Botcazou <ebotcazou@adacore.com>
1636
1637 * gcc-interface/decl.c (gnat_to_gnu_field): Rework error messages for
1638 fields requiring strict alignment, add explicit test on Storage_Unit
1639 for position and size, and mention type alignment for position.
1640
5882c515 16412019-06-29 Eric Botcazou <ebotcazou@adacore.com>
1642
1643 * gcc-interface/trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on
1644 the main variant of a type, if any.
1645
d0de0a27 16462019-06-29 Eric Botcazou <ebotcazou@adacore.com>
1647
1648 * gcc-interface/decl.c (set_nonaliased_component_on_array_type): Add
1649 missing guard for the presence of TYPE_CANONICAL.
1650 (set_reverse_storage_order_on_array_type): Likewise.
1651
2074c859 16522019-06-29 Eric Botcazou <ebotcazou@adacore.com>
1653
1654 * gcc-interface/gigi.h (make_packable_type): Remove default value.
1655 (value_factor_p): Tweak prototype.
1656 * gcc-interface/decl.c (gnat_to_gnu_entity): Add comment.
1657 (gnat_to_gnu_component_type): Likewise.
1658 (gnat_to_gnu_field): Likewise. Fetch the position of the field earlier
1659 and simplify the condition under which the type is packed. Declare
1660 local variable is_bitfield. Pass 1 as max_align to make_packable_type
1661 if it is set to true.
1662 (copy_and_substitute_in_layout): Pass 0 to make_packable_type.
1663 * gcc-interface/utils.c (make_packable_array_type): New function.
1664 (make_packable_type): Use it to rewrite the type of array field.
1665 (maybe_pad_type): Pass align parameter to make_packable_type.
1666 (create_field_decl): Minor tweaks.
1667 (value_factor_p): Assert that FACTOR is a power of 2 and replace the
1668 modulo computation by a masking operation.
1669
83c6da22 16702019-06-25 Eric Botcazou <ebotcazou@adacore.com>
1671
1672 * gcc-interface/decl.c (gnat_to_gnu_entity): Remove superfluous test
1673 in previous change.
1674 * gcc-interface/gigi.h (maybe_character_type): Fix formatting.
1675 (maybe_character_value): Likewise.
1676
aaabc7bc 16772019-06-24 Jan Hubicka <jh@suse.cz>
1678
1679 * gcc-interface/decl.c (gnat_to_gnu_entity): Check that
1680 type is array or integer prior checking string flag.
83c6da22 1681 * gcc-interface/gigi.h (maybe_character_type): Likewise.
1682 (maybe_character_value): Likewise.
aaabc7bc 1683
5fe09a56 16842019-06-24 Martin Sebor <msebor@redhat.com>
1685
1686 * gcc-interface/utils.c (handle_nonnull_attribute): Quote attribute
1687 name.
1688
bd9331d6 16892019-06-18 Arnaud Charlet <charlet@adacore.com>
1690
83c6da22 1691 PR ada/80590
bd9331d6 1692 * sem_ch5.adb (Analyze_Loop_Statement): Avoid exception propagation
1693 during normal processing.
1694
8a5a7d1c 16952019-06-17 Arnaud Charlet <charlet@adacore.com>
1696
83c6da22 1697 PR ada/80590
8a5a7d1c 1698 * exp_ch9.adb (Expand_N_Delay_Relative_Statement): Swap the two
1699 conditions to avoid a unnecessary exception propagation in the default
1700 case.
1701
580934f6 17022019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1703
1704 * gcc-interface/utils.c (handle_stack_protect_attribute): Move around.
1705
c8956236 17062019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1707
1708 * doc/gnat_rm/implementation_defined_pragmas.rst (Machine_Attribute):
1709 Document additional optional parameters.
1710 * sem_prag.adb (Analyze_Pragma) <Pragma_Machine_Attribute>: Accept
1711 more than one optional parameter.
1712 * gcc-interface/decl.c (prepend_one_attribute_pragma): Alphabetize
1713 the list of supported pragmas. Simplify the handling of parameters
1714 and add support for more than one optional parameter.
1715 * gcc-interface/utils.c (attr_cold_hot_exclusions): New constant.
1716 (gnat_internal_attribute_table): Add entry for no_icf, noipa, flatten,
1717 used, cold, hot, target and target_clones.
1718 (begin_subprog_body): Do not create the RTL for the subprogram here.
1719 (handle_noicf_attribute): New static function.
1720 (handle_noipa_attribute): Likewise.
1721 (handle_flatten_attribute): Likewise.
1722 (handle_used_attribute): Likewise.
1723 (handle_cold_attribute): Likewise.
1724 (handle_hot_attribute): Likewise.
1725 (handle_target_attribute): Likewise.
1726 (handle_target_clones_attribute): Likewise.
1727
62b762c2 17282019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1729
1730 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Return 0
1731 for 'Size too.
1732 (Identifier_to_gnu): Use the actual subtype for a reference to a
1733 packed array in a return statement.
1734 (Attribute_to_gnu) <Attr_Size>: Do not strip VIEW_CONVERT_EXPRs from
1735 the prefix in every case.
1736
336a61a3 17372019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1738
1739 * gcc-interface/trans.c (gnat_to_gnu): Remove superfluous tests on
1740 Backend_Overflow_Checks_On_Target and rework comments.
1741
983c5b5e 17422019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1743
1744 * gcc-interface/trans.c (walk_nesting_tree): New static function.
1745 (finalize_nrv): Use it to walk the entire nesting tree.
1746
96b4b84e 17472019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1748
1749 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Remove
1750 obsolete test on Is_For_Access_Subtype.
1751
0b74284e 17522019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1753
1754 * gcc-interface/decl.c (components_to_record): Set a name on the type
1755 created for the REP part, if any.
1756 * gcc-interface/utils.c (finish_record_type): Only take the maximum
1757 when merging sizes for a variant part at offset 0.
1758 (merge_sizes): Rename has_rep parameter into max.
1759
689dab9d 17602019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1761
1762 * gcc-interface/utils.c (gnat_internal_attribute_table): Add support
1763 for stack_protect attribute.
1764 (handle_stack_protect_attribute): New static function.
1765
804f7d39 17662019-05-28 Eric Botcazou <ebotcazou@adacore.com>
1767
1768 * gcc-interface/decl.c (intrin_arglists_compatible_p): Do not return
1769 false if the internal builtin uses a variable list.
1770
f07f94cc 17712019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1772
1773 * gcc-interface/trans.c (Call_to_gnu): Do not initialize the temporary
1774 created out of addressability concerns if it's for the _Init parameter
1775 of an initialization procedure.
1776
abfd658b 17772019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1778
1779 * gcc-interface/ada-builtin-types.def: New file.
1780 * gcc-interface/ada-builtins.def: Likewise.
1781 * gcc-interface/ada-tree.h (BUILT_IN_LIKELY): New macro.
1782 (BUILT_IN_UNLIKELY): Likewise.
1783 * gcc-interface/trans.c (independent_iterations_p): Initialize the
1784 auto-vector to 16 elements.
1785 (Call_to_gnu): Remove local variable and change the vector of actual
1786 parameters to an auto-vector. Do not convert actual parameters to
1787 the argument type for front-end built-in functions. Add support for
1788 front-end built-in functions.
1789 (build_noreturn_cond): Use internal instead of built-in function.
1790 * gcc-interface/utils.c (c_builtin_type): Include ada-builtin-types.def
1791 (install_builtin_function_types): Likewise.
1792 (install_builtin_functions): Include ada-builtins.def first.
1793
caab73a2 17942019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1795
1796 * gcc-interface/utils.c (maybe_pad_type): Issue the warning for the
1797 specific case of component types preferably.
1798
f1ca2388 17992019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1800
1801 * gcc-interface/trans.c (Identifier_to_gnu): Minor tweaks.
1802 (gnat_to_gnu): Do not convert the result if it is a reference to an
1803 unconstrained array used as the prefix of an attribute reference that
1804 requires an lvalue.
1805
e3f3573c 18062019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1807
1808 * gcc-interface/trans.c (Gigi_Types_Compatible): New predicate.
1809 (Identifier_to_gnu): Use it to assert that the type of the identifier
1810 and that of its entity are compatible for gigi. Rename a couple of
1811 local variables and separate the processing of the result type.
1812
2306cd17 18132019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1814
1815 * gcc-interface/trans.c (Call_to_gnu): Use the unpadded type when
1816 putting back an intermediate conversion the type of the actuals.
1817
6e4e9378 18182019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1819
1820 * gcc-interface/trans.c (gnat_to_gnu) <Shift operations>: Convert the
1821 count to the unsigned version of its base type before proceeding.
1822
85b9be9b 18232019-05-16 Martin Sebor <msebor@redhat.com>
1824
3d6be0d5 1825 * gcc-interface/trans.c (check_inlining_for_nested_subprog): Quote
1826 reserved names.
85b9be9b 1827
65d973ca 18282019-05-08 Arnaud Charlet <charlet@adacore.com>
1829
1830 * standard.ads.h: New file.
1831
ff628b99 18322019-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1833
1834 * gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
1835 Honor DESTDIR.
1836
ebd761d4 18372019-04-29 Michael K. Darling <darlingm@gmail.com>
1838
1839 * gnatvsn.ads: Bump Library_Version to 10.
1840
5f260823 18412019-04-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1842 Bernd Edlinger <bernd.edlinger@hotmail.de>
1843 Jakub Jelinek <jakub@redhat.com>
1844
1845 PR target/89093
1846 * raise-gcc.c (TARGET_ATTRIBUTE): Define.
1847 (continue_unwind, personality_body, PERSONALITY_FUNCTION): Add
1848 TARGET_ATTRIBUTE.
1849
d7ca95c0 18502019-04-07 Eric Botcazou <ebotcazou@adacore.com>
1851
1852 * libgnat/i-cexten.ads (CFloat_128): New type.
1853
26b21081 18542019-03-22 Dmitriy Anisimkov <anisimko@adacore.com>
1855
1856 PR ada/89583
1857 * libgnat/g-socket.adb (Bind_Socket, Connect_Socket,
1858 Send_Socket): Fix the computation of structure lengths passed to
1859 low level routines.
1860 (Is_IPv6_Address): Fix the number of expected colons.
1861
2f6d557f 18622019-03-11 Martin Liska <mliska@suse.cz>
1863
d325ee67 1864 * gcc-interface/misc.c (gnat_post_options): Wrap option name in string
1865 format message and fix GNU coding style.
2f6d557f 1866
c1ad6672 18672019-02-08 Eric Botcazou <ebotcazou@adacore.com>
1868
1869 * gcc-interface/trans.c (gnat_to_gnu) <N_Aggregate>: Minor tweak.
1870 * gcc-interface/utils.c (convert): Do not pad when doing an unchecked
1871 conversion here. Use TREE_CONSTANT throughout the function.
1872 (unchecked_convert): Also pad if the source is a CONSTRUCTOR and the
1873 destination is a more aligned array type or a larger aggregate type,
1874 but not between original and packable versions of a type.
1875
62a6ebbd 18762019-02-08 Eric Botcazou <ebotcazou@adacore.com>
1877
1878 * gcc-interface/utils.c (max_size) <tcc_unary>: Be prepared for an
1879 operand with VOID_TYPE.
1880
da383d19 18812019-02-08 Eric Botcazou <ebotcazou@adacore.com>
1882
1883 * gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the
1884 entities of a package renaming another one.
1885
09c123a0 18862019-02-08 Eric Botcazou <ebotcazou@adacore.com>
1887
1888 * gcc-interface/trans.c (Regular_Loop_to_gnu): Replace tests on
1889 individual flag_unswitch_loops and flag_tree_loop_vectorize switches
1890 with test on global optimize switch.
1891 (Raise_Error_to_gnu): Likewise.
1892
a9dd7273 18932019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1894
1895 * libgnarl/s-linux__sparc.ads (ETIMEDOUT): Set to correct value.
1896
4836c4f1 18972019-02-06 Arnaud Charlet <charlet@adacore.com>
1898
1899 * libgnarl/s-linux__x32.ads: Resync list of signals with s-linux.ads
1900
6b56937c 19012019-01-27 Eric Botcazou <ebotcazou@adacore.com>
1902
1903 * repinfo.adb (List_Component_Layout): Remove superfluous space for
1904 zero-sized field.
1905 * gcc-interface/ada-tree.h (TYPE_IS_EXTRA_SUBTYPE_P): New macro.
1906 * gcc-interface/gigi.h (create_extra_subtype): Declare.
1907 * gcc-interface/decl.c (TYPE_ARRAY_SIZE_LIMIT): Likewise.
1908 (update_n_elem): New function.
1909 (gnat_to_gnu_entity): Use create_extra_subtype to create extra subtypes
1910 instead of doing it manually.
1911 <E_Array_Type>: Use update_n_elem to compute the maximum size. Use the
1912 index type instead of base type for the bounds. Set TYPE_ARRAY_MAX_SIZE
1913 of the array to the maximum size.
1914 <E_Array_Subtype>: Create an extra subtype using the index type of the
1915 base array type for self-referential bounds. Use update_n_elem to
1916 compute the maximum size. Set TYPE_ARRAY_MAX_SIZE of the array to the
1917 maximum size.
1918 (gnat_to_gnu_field): Clear DECL_NONADDRESSABLE_P on discriminants.
1919 * gcc-interface/misc.c (gnat_get_alias_set): Return the alias set of
1920 the base type for an extra subtype.
1921 (gnat_type_max_size): Remove obsolete code.
1922 * gcc-interface/trans.c (Attribute_to_gnu): Minor tweak.
1923 (can_be_lower_p): Deal with pathological types.
1924 * gcc-interface/utils.c (create_extra_subtype): New function.
1925 (create_field_decl): Minor tweak.
1926 (max_size) <tcc_reference>: Compute a better value by using the extra
1927 subtypes on the self-referential bounds.
1928 <tcc_binary>: Rewrite. Deal with "negative value" in unsigned types.
1929 <tcc_expression>: Likewise.
1930 * gcc-interface/utils2.c (compare_arrays): Retrieve the original bounds
1931 of the arrays upfront. Swap only if the second length is not constant.
1932 Use comparisons on the original bounds consistently for the null tests.
1933 (build_binary_op): Use TYPE_IS_EXTRA_SUBTYPE_P macro.
1934 (build_allocator): Minor tweak.
1935
ecb2c722 19362019-01-27 Eric Botcazou <ebotcazou@adacore.com>
1937
1938 * gcc-interface/decl.c (array_type_has_nonaliased_component): Return
1939 the same value for every dimension of a multidimensional array type.
1940
10f25579 19412019-01-26 Eric Botcazou <ebotcazou@adacore.com>
1942
1943 * gcc-interface/trans.c (Regular_Loop_to_gnu): Use the SLOC of the
1944 iteration scheme, if present, throughout the translation.
1945
aced6683 19462019-01-26 Eric Botcazou <ebotcazou@adacore.com>
1947
1948 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
1949 DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned
1950 by a call to memset if the LHS is a DECL.
1951
18b4b30e 19522019-01-26 Eric Botcazou <ebotcazou@adacore.com>
1953
1954 * gcc-interface/trans.c (struct loop_info_d): Remove artificial field.
1955 (Loop_Statement_to_gnu): Do not set it.
1956
6dce35b7 19572019-01-26 Eric Botcazou <ebotcazou@adacore.com>
1958
1959 * gcc-interface/trans.c (Iterate_Acc_Clause_Arg): Fix formatting.
1960 (Acc_gnat_to_gnu): Likewise.
1961 (Acc_Data_to_gnu): Likewise.
1962 (Acc_Var_to_gnu): Likewise.
1963 (Acc_Reduc_to_gnu): Likewise.
1964 (Acc_Size_List_to_gnu): Likewise.
1965 (Pragma_to_gnu) <Pragma_Acc_Loop>: Likewise.
1966 <Pragma_Acc_Data>): Likewise.
1967 (find_loop_for): Remove default value for parameters.
1968 * gcc-interface/trans.c (gnat_to_gnu) <N_Op_And>: Merge into...
1969 <N_Op_Eq>): ...this.
1970
f8cd11ee 19712019-01-26 Eric Botcazou <ebotcazou@adacore.com>
1972
1973 * gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on
1974 the sign bit instead of on the sign of the value.
1975 <PLUS_EXPR>: Turn addition of negative constant into subtraction.
1976 <MULT_EXPR>: Add test for degenerate case.
1977 <BIT_AND_EXPR>: Simplify.
1978
9a3c51d9 19792019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
1980
1981 * s-oscons-tmplt.c (AF_INET6): Do not undefine for RTEMS.
1982
07c11f2b 19832019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1984
1985 PR other/16615
07c11f2b 1986 * exp_ch11.adb: Change "can not" to "cannot".
1987 * sem_ch4.adb: Likewise.
1988
f4d3c071 19892019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1990
1991 PR other/16615
f4d3c071 1992 * exp_ch9.adb: Mechanically replace "can not" with "cannot".
1993 * libgnat/s-regpat.ads: Likewise.
1994 * par-ch4.adb: Likewise.
1995 * set_targ.adb: Likewise.
1996 * types.ads: Likewise.
1997
902071d1 19982019-01-08 Justin Squirek <squirek@adacore.com>
1999
2000 Revert:
902071d1 2001 2018-07-31 Justin Squirek <squirek@adacore.com>
2002
76fb0465 2003 * lib-writ.adb (Write_With_Lines): Modfiy the generation
2004 of dependencies within ali files so that source unit
2005 bodies are properly listed even if said bodies are
2006 missing. Perform legacy behavior in GNATprove mode.
2007 * lib-writ.ads: Modify documentation to reflect current
2008 behavior.
902071d1 2009
2010 and:
902071d1 2011 2018-09-26 Justin Squirek <squirek@adacore.com>
2012
76fb0465 2013 * lib-writ.adb, lib-writ.ads (Write_With_Lines): Add
2014 documentation and an extra conditional check for RCI
2015 units so that generated ali files will list the spec
2016 only instead of a body when a body is not found.
902071d1 2017
65a33d4a 20182019-01-04 Eric Botcazou <ebotcazou@adacore.com>
2019
2020 * gnatvsn.ads: Bump copyright year.
2021
3d8932fd 20222019-01-01 Jakub Jelinek <jakub@redhat.com>
8e8f6434 2023
fbd26352 2024 Update copyright years.
2025
277184bc 2026 * gnat_ugn.texi: Bump @copying's copyright year.
2027 * gnat_rm.texi: Likewise.
7dfbd804 2028\f
3d8932fd 2029Copyright (C) 2019 Free Software Foundation, Inc.
7dfbd804 2030
2031Copying and distribution of this file, with or without modification,
2032are permitted in any medium without royalty provided the copyright
2033notice and this notice are preserved.