1 2019-08-14 Gary Dismukes <dismukes@adacore.com>
3 * exp_ch3.adb (Predef_Spec_Or_Body): For an equality operation
4 of an interface type, create an expression function (that
5 returns False) rather than declaring an abstract function.
6 * freeze.adb (Check_Inherited_Conditions): Set Needs_Wrapper to
7 False unconditionally at the start of the loop creating wrappers
8 for inherited operations.
10 2019-08-14 Bob Duff <duff@adacore.com>
12 * table.adb: Assert that the table is not locked when increasing
13 Last, even if it doesn't cause reallocation. In other words,
14 assert that on operations that MIGHT cause reallocation.
15 * table.ads: Fix comment accordingly.
17 2019-08-14 Arnaud Charlet <charlet@adacore.com>
19 * doc/gnat_ugn/gnat_and_program_execution.rst: Remove
20 documentation of gnatelim.
22 2019-08-14 Bob Duff <duff@adacore.com>
24 * sem_prag.adb (Validate_Compile_Time_Warning_Error): Attach the
25 warning to the Sloc of the first pragma argument, rather than to
26 the pragma itself. This is to make pragmas processed after the
27 back end use the same Sloc as pragmas processed earlier, in the
28 front end. There's no reason for this discrepancy, and it
29 hinders further work on this ticket.
31 2019-08-14 Bob Duff <duff@adacore.com>
33 * sem.ads (Inside_A_Generic): Remove the ??? comment.
35 2019-08-14 Eric Botcazou <ebotcazou@adacore.com>
37 * inline.ads (Pending_Descriptor): Delete.
38 * inline.adb (Initialize): Do not initialize it.
39 * sem_ch12.adb (Delay_Descriptors): Delete.
40 (Analyze_Package_Instantiation): Call
41 Set_Delay_Subprogram_Descriptors instead of Delay_Descriptors
44 2019-08-14 Bob Duff <duff@adacore.com>
46 * exp_aggr.adb (Init_Hidden_Discriminants): Avoid processing the
47 wrong discriminant, which could be of the wrong type.
49 2019-08-14 Eric Botcazou <ebotcazou@adacore.com>
51 * sem_ch12.adb (Analyze_Instance_And_Renamings): Do not reset
52 the Is_Generic_Instance flag previously set on the package
53 generated for the instantiation of a generic subprogram.
55 2019-08-14 Ed Schonberg <schonberg@adacore.com>
57 * exp_ch4.adb (Expand_N_Quantified_Expression): Freeze
58 explicitly the type of the loop parameter.
60 2019-08-14 Javier Miranda <miranda@adacore.com>
62 * sem_util.adb (New_Copy_Tree.Copy_Node_With_Replacement):
63 Update the Chars attribute of identifiers.
65 2019-08-14 Yannick Moy <moy@adacore.com>
67 * sem_spark.adb, sem_spark.ads (Is_Legal): New function exposed
68 for use in GNATprove, to test legality rules not related to
70 (Check_Declaration_Legality): Extract the part of
71 Check_Declaration that checks rules not related to permissions.
72 (Check_Declaration): Call the new Check_Declaration_Legality.
73 (Check_Type_Legality): Rename of Check_Type. Introduce
74 parameters to force or not checking, and update a flag detecting
76 (Check_Node): Ignore attribute references in statement position.
78 2019-08-14 Yannick Moy <moy@adacore.com>
80 * sem_spark.adb (Check_Old_Loop_Entry): New procedure to check
81 correct use of Old and Loop_Entry.
82 (Check_Node): Check subprogram contracts.
83 (Check_Pragma): Check Loop_Variant.
84 (Check_Safe_Pointers): Apply checking to library-level
85 subprogram declarations as well, in order to check their
88 2019-08-14 Yannick Moy <moy@adacore.com>
90 * sem_spark.adb (Is_Subpath_Expression): Take into account
91 conversion and qualification.
93 2019-08-14 Eric Botcazou <ebotcazou@adacore.com>
95 * sem_ch7.adb (Install_Private_Declarations)
96 <Swap_Private_Dependents>: Do not rely solely on the
97 Is_Child_Unit flag on the unit to recurse.
98 (Uninstall_Declarations) <Swap_Private_Dependents>: New
99 function. Use it to recurse on the private dependent entities
102 2019-08-14 Javier Miranda <miranda@adacore.com>
104 * exp_aggr.adb (Is_CCG_Supported_Aggregate): Return False for
105 arrays with bounds not known at compile time.
107 2019-08-14 Ed Schonberg <schonberg@adacore.com>
109 * sem_util.adb (New_Copy_Tree, Visit_Entity): A quantified
110 expression includes the implicit declaration of the loop
111 parameter. When a quantified expression is copied during
112 expansion, for example when building the precondition code from
113 the generated pragma, a new loop parameter must be created for
114 the new tree, to prevent duplicate declarations for the same
117 2019-08-14 Yannick Moy <moy@adacore.com>
119 * sem_disp.adb (Check_Dispatching_Operation): Update assertion
120 for the separate declarations created in GNATprove mode.
121 * sem_disp.ads (Is_Overriding_Subprogram): Update comment.
122 * sem_elab.adb (SPARK_Processor): Fix test for checking of
123 overriding primitives.
125 2019-08-14 Eric Botcazou <ebotcazou@adacore.com>
127 * inline.adb (Add_Inlined_Body): Tweak comments.
128 (List_Inlining_Info): Also list information about non-main
131 2019-08-14 Gary Dismukes <dismukes@adacore.com>
133 * sem_ch4.adb (Analyze_Selected_Component): In the case where
134 the prefix is of a concurrent type, and the selected entity
135 matching the selector is the first private declaration of the
136 type (such as the first local variable in a task's body), set
139 2019-08-14 Piotr Trojanek <trojanek@adacore.com>
141 * einfo.adb (Is_Generic_Actual_Subprogram): Replace repeated
142 calls to Ekind with Ekind_In.
144 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
147 * gcc-interface/trans.c (gigi): Call set_decl_buillt_in_function.
148 (Call_to_gnu): Use DECL_FE_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
150 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
152 * ali.ads (Linker_Option_Record): Remove Original_Pos component.
153 * ali.adb (Scan_ALI): Do not set it.
155 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
157 * sem_ch3.adb (Build_Derived_Concurrent_Type): Add a couple of
158 local variables and use them. When the derived type fully
159 constrains the parent type, rewrite it as a subtype of an
160 implicit (unconstrained) derived type instead of the other way
162 (Copy_And_Build): Deal with concurrent types and use predicates.
163 (Build_Derived_Private_Type): Build the full derivation if
164 needed for concurrent types too.
165 (Build_Derived_Record_Type): Add marker comment.
166 (Complete_Private_Subtype): Use predicates.
168 2019-08-13 Ed Schonberg <schonberg@adacore.com>
170 * sem_ch3.adb (Check_Generic_Ancestor): New subprogram,
171 aubsidiary to Build_Derived_Record_Type. to enforce the rule
172 that a type extension declared in a generic body cznnot have an
173 ancestor that is a generic formal (RM 3.9.1 (4/2)). The rule
174 applies to all ancestors of the type, including interface
177 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
179 * sem_ch3.adb (Build_Underlying_Full_View): Delete.
180 (Complete_Private_Subtype): Do not set the full view on the
181 private subtype here. If the full base is itself derived from
182 private, do not re-derive the parent type but instead constrain
183 an existing underlying full view.
184 (Prepare_Private_Subtype_Completion): Do not get to the
185 underlying full view, if any. Set the full view on the private
187 (Process_Full_View): Likewise.
188 * sem_ch12.adb (Check_Generic_Actuals): Also set
189 Is_Generic_Actual_Type on the full view if the type of the
191 (Restore_Private_Views): Also reset Is_Generic_Actual_Type on
192 the full view if the type of the actual is private.
193 * sem_eval.adb (Subtypes_Statically_Match): Remove bypass for
194 generic actual types.
196 2019-08-13 Javier Miranda <miranda@adacore.com>
198 * sem_res.adb (Resolve_Selected_Component): When the type of the
199 component is an access to a class-wide type and the type of the
200 context is an access to a tagged type the relevant type is that
201 of the component (since in such case we may need to generate
202 implicit type conversions or dispatching calls).
204 2019-08-13 Ed Schonberg <schonberg@adacore.com>
206 * exp_aggr.adb (Aggr_Assignment_OK_For_Backend): Preanalyze
207 expression, rather do a full analysis, to prevent unwanted
208 removal of side effects which mask the intent of the expression.
210 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
212 * impunit.adb (Non_Imp_File_Names_95): Add
213 GNAT.Branch_Prediction.
215 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
217 * exp_ch6.adb: Remove with and use clauses for Sem_Ch12.
218 (Expand_Call_Helper): Swap the back-end inlining case and the
219 special front-end expansion case. In back-end inlining mode, do
220 not invoke Add_Inlined_Body unless the call may be inlined.
221 * inline.ads (Add_Pending_Instantiation): New function moved
223 * inline.adb (Add_Inlined_Body): Simplify comment. Turn test on
224 the enclosing unit into assertion.
225 (Add_Pending_Instantiation): New function moved from...
226 * sem_ch12.ads (Add_Pending_Instantiation): ...here.
227 * sem_ch12.adb (Add_Pending_Instantiation): ...here.
229 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
231 * sem.adb (Do_Analyze): Recompute Style_Check_Max_Line_Length
232 after restoring Style_Max_Line_Length.
234 2019-08-13 Arnaud Charlet <charlet@adacore.com>
236 * sem_ch13.adb (Check_Iterator_Functions): Protect against
239 2019-08-13 Ed Schonberg <schonberg@adacore.com>
241 * sem_ch8.adb (Analyze_Subprogram_Renaming): Do no suppress mode
242 conformance checks on child unit instance that is a compilation
245 2019-08-13 Gary Dismukes <dismukes@adacore.com>
247 * exp_dbug.adb (Fully_Qualify_Name): Add full name qualification
248 for the E_Exception case.
250 2019-08-13 Gary Dismukes <dismukes@adacore.com>
252 * exp_aggr.adb (Aggr_Size_OK): Compute the aggregate size using
253 universal arithmetic, to avoid situations where the size
254 computation overflows.
256 2019-08-13 Justin Squirek <squirek@adacore.com>
258 * repinfo.adb (List_Scalar_Storage_Order): Modify conditionals
259 for displaying ordering to always be triggered when -gnatR4 is
262 2019-08-13 Justin Squirek <squirek@adacore.com>
264 * aspects.adb, aspects.ads: Register new aspect.
265 * par-prag.adb (Prag): Register new pragma
266 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing
267 for new aspect similar to Aspect_Max_Entry_Queue_Length.
268 * sem_prag.adb, sem_prag.ads (Analyze_Pragma): Register new
269 pragma and set it to use the same processing as
270 Pragma_Max_Queue_Length.
271 * snames.ads-tmpl: Move definition of
272 Name_Max_Entry_Queue_Length so that it can be processed as a
273 pragma in addition to a restriction and add an entry for the
276 2019-08-13 Yannick Moy <moy@adacore.com>
278 * sem_ch4.adb (Analyze_Allocator): Do not insert subtype
279 declaration for allocator inside a spec expression.
281 2019-08-13 Yannick Moy <moy@adacore.com>
283 * sem_res.adb (Resolve_Call): Do not inline calls inside record
286 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
288 * sem_ch4.adb (Analyze_One_Call): Remove bypass for type
289 mismatch in nested instantiations.
290 * sem_ch8.adb (Find_Nearer_Entity): New function.
291 (Find_Renamed_Entity): Use it to disambiguate the candidates for
292 the renaming generated for an instantiation when it is
295 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
297 * gnat1drv.adb (Adjust_Global_Switches): Do not set
298 Back_End_Inlining in ASIS mode either.
300 2019-08-13 Olivier Hainque <hainque@adacore.com>
302 * libgnat/s-win32.ads: Define size_t and fix the MapViewOfFile
303 binding to use it instead of DWORD for the dwNumberOfBytesToMap
305 * libgnat/g-sercom__mingw.adb (Read): State which definition of
306 size_t to fetch in call to Last_Index.
308 2019-08-13 Arnaud Charlet <charlet@adacore.com>
310 * gcc-interface/Make-lang.in: Remove unused TRACE variable. Pass
311 LN_S to relevant gnatlib targets.
312 * gcc-interface/Makefile.in: Systematically pass LN_S to
313 relevant gnatlib targets.
315 2019-08-13 Yannick Moy <moy@adacore.com>
317 * sem_dim.adb (Analyze_Dimension,
318 Analyze_Dimension_Array_Aggregate, Analyze_Dimension_Call,
319 Analyze_Dimension_Extension_Or_Record_Aggregate): Return
320 immediately when inside an inlined body.
321 * sem_res.adb (Resolve_Call): Remove special checking now done
322 inside Analyze_Dimension_Call.
324 2019-08-13 Justin Squirek <squirek@adacore.com>
326 * exp_ch4.adb (Expand_N_Allocator): Add condition to detect
327 library-level object declarations
329 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
331 * doc/gnat_ugn/building_executable_programs_with_gnat.rst
332 (-gnateT): Document Double_Float_Alignment parameter and fix
333 description of Double_Scalar_Alignment parameter.
334 * gnat_ugn.texi: Regenerate.
336 2019-08-13 Eric Botcazou <ebotcazou@adacore.com>
338 * exp_ch6.adb (Expand_Call_Helper): If back-end inlining is
339 enabled, also instantiate the body of a generic unit containing
340 a subprogram subject to aspect/pragma Inline_Always at
341 optimization level zero.
342 * sem_ch12.adb (Might_Inline_Subp): Minor tweak.
343 (Analyze_Package_Instantiation): Do not instantiate the package
344 body because of inlining considerations if the instantiation is
345 done in a generic unit. Move around similar condition involving
346 the main unit. Add test on Back_End_Inlining to processing for
349 2019-08-13 Javier Miranda <miranda@adacore.com>
351 * exp_disp.adb (Make_Secondary_DT): Handle record type
352 derivations that have interface components located at fixed
353 positions and interface components located at variable offset.
354 The offset of components located at fixed positions is computed
355 using the dummy object (similar to the case where all the
356 interface components are located at fixed positions).
357 (Make_DT): Build the dummy object for all tagged types that
358 implement interface types (that is, build it also for types with
359 variable size components), and use the dummy object to compute
360 the offset of all tag components located at fixed positions when
361 initializing the Interface_Table object.
363 2019-08-13 Justin Squirek <squirek@adacore.com>
365 * gnatcmd.adb (GNATCmd): Add constant for new compiler switch
366 --help-ada, and include usage subprogram. Add line to usage help
367 explaining the new flag.
368 (GNATCmd_Usage): Rename from locally declared Usage so as not to
369 confuse with the newly imported version. Add new argument case
370 for --help-ada and add bug report email to implicit display of
371 help without the --help flag so as to unify output between the
374 2019-08-13 Dmitriy Anisimkov <anisimko@adacore.com>
376 * libgnat/g-comlin.adb (Getopt): Quote unrecognized switch in
377 Invalid_Switch exception message.
379 2019-08-13 Yannick Moy <moy@adacore.com>
381 * sem_util.adb (Traverse_More_Func): Take into account
382 Loop_Actions inside N_Iterated_Component_Association nodes.
383 * sinfo.ads: Document correctly Loop_Actions as a field of nodes
384 of kind N_Iterated_Component_Association.
386 2019-08-13 Claire Dross <dross@adacore.com>
388 * libgnat/a-cfinve.adb, libgnat/a-cofove.adb (Find_Index,
389 Reverse_Find_Index): Use bigger type to avoid range check
390 failure at the last loop iteration.
392 2019-08-12 Dmitriy Anisimkov <anisimko@adacore.com>
394 * libgnat/g-socket.adb (Is_IPv6_Address): Check that no less
395 then 2 colons in IPv6 numeric address.
397 2019-08-12 Dmitriy Anisimkov <anisimko@adacore.com>
399 * libgnat/g-comlin.ads, libgnat/g-comlin.adb (Getopt): Add
400 parameter Quiet. Need to do not output error messages to
401 console. Invalid_Switch exception generation surrounded by an
404 2019-08-12 Ed Schonberg <schonberg@adacore.com>
406 * exp_ch6.adb (Expand_Actuals. Add_Call_By_Copy_Code): Add code
407 to generate proper checks when an actual for an in-out or out
408 parameter has a non-null access type. No constraints are
409 applied to an inbound access parameter, but on exit a not-null
410 check must be performed if the type of the actual requires it.
412 2019-08-12 Ed Schonberg <schonberg@adacore.com>
414 * sem_util.adb (Is_Expaned_Priority_Attribute): Check whether
415 call comes from a rewritten attribute before comparing name with
416 Get_Ceiling run-time subprogram.
418 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
420 * exp_util.ads (Component_May_Be_Bit_Aligned): Small comment
422 (Possible_Bit_Aligned_Component): Likewise.
423 (Type_May_Have_Bit_Aligned_Components): Likewise.
424 * exp_util.adb (Component_May_Be_Bit_Aligned): Likewise.
425 (Possible_Bit_Aligned_Component): Likewise.
426 (Type_May_Have_Bit_Aligned_Components): Likewise.
428 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
430 * exp_ch4.adb (Expand_N_Op_Eq): Expand the array equality if
431 either operand is a possibly unaligned slice.
432 * exp_ch6.adb (Expand_Simple_Function_Return): Do not generate a
433 copy for a possibly unaligned object if it is represented as a
435 * exp_util.adb (Is_Possibly_Unaligned_Slice): Do not always
436 return false if the target doesn't have strict alignment.
438 2019-08-12 Bob Duff <duff@adacore.com>
440 * sem_ch12.adb (Instantiate_Package_Body): Remove suppression of
441 checks in instances of internal units.
442 * sem_ch6.adb (Analyze_Function_Return): Do not generate a
443 constraint check on an extended_return_statement if the subtype
444 of the return object in the statement is identical to the return
445 subtype of the function.
447 2019-08-12 Bob Duff <duff@adacore.com>
449 * libgnat/a-cbmutr.adb (Is_Reachable): Declare Idx to be of the
450 base subtype. Clearly it makes no sense to loop "while Idx >=
451 0", if Idx is of a nonnegative subtype.
453 2019-08-12 Bob Duff <duff@adacore.com>
455 * libgnat/a-tifiio.adb (Put_Scaled): Prevent AA from being
456 negative, since Field is range 0 .. something.
458 2019-08-12 Bob Duff <duff@adacore.com>
460 * doc/gnat_ugn/gnat_utility_programs.rst (gnatmetric, gnatpp,
461 gnatstub): Remove documentation for Ada language version
462 switches, and note that they are no longer needed.
464 2019-08-12 Gary Dismukes <dismukes@adacore.com>
466 * sem_ch5.adb (Prepare_Param_Spec_Loop): Set the parents of the
467 copied low and high bounds in the case where the loop range is
468 given by a discrete_subtype_indication, to prevent hanging (or
469 Assert_Failure) in Insert_Actions.
471 2019-08-12 Ed Schonberg <schonberg@adacore.com>
473 * sem_ch6.adb (heck_Untagged_Equality): Verify that user-defined
474 equality has the same profile as the predefined equality before
475 applying legality rule in RM 4.5.2 (9.8).
477 2019-08-12 Bob Duff <duff@adacore.com>
479 * libgnat/a-except.ads: Update obsolete comment, still making
480 clear that this is a variant. Add explicit default for Id
481 component of Exception_Occurrence, because that value is used.
482 Define Null_Occurrence less redundantly.
483 * libgnat/a-einuoc.adb: Minor simplification of code.
485 2019-08-12 Justin Squirek <squirek@adacore.com>
487 * libgnat/a-dhfina.adb, libgnat/a-dhfina.ads (Is_Simple_Name,
488 Is_Root_Directory, Is_Parent_Directory,
489 Is_Current_Directory_Name, Is_Relative_Name, Initial_Directory,
490 Relative_Name, Compose): Add implementation and documentation.
491 * libgnat/a-direct.adb (Containing_Directory): Modify routine to
492 use routines from Ada.Directories.Hierarchical_File_Names and
493 remove incorrect special case for parent directories.
494 (Fetch_Next_Entry): Add check for current directory and parent
495 directory and ignore them under certain circumstances.
496 (Simple_Nmae): Add check for null result from
497 Simple_Name_Internal and raise Name_Error.
498 (Simple_Name_Internal): Add explicit check for root directories,
499 sanitize trailing directory separators, and modify behavior so
500 that current and parent directories are considered valid
502 * Makefile.rtl: Add entry to GNATRTL_NONTASKING_OBJS.
504 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
506 * freeze.adb (Freeze_Entity): Give the same error for an
507 Object_Size clause on a variable-sized type as for a Size
510 2019-08-12 Gary Dismukes <dismukes@adacore.com>
512 * sem_prag.adb (Analyze_Pragma, Pragma_Suppress_Initialization):
513 For private types, set the Suppress_Initialization flag on the
514 Full_View of the entity rather than the entity's base type.
516 2019-08-12 Yannick Moy <moy@adacore.com>
518 * aspects.adb, aspects.ads (Aspect_No_Caching): New aspect.
519 * contracts.adb, contracts.ads (Add_Contract_Item): Add handling
521 (Analyze_Object_Contract): Add handling of No_Caching.
522 * einfo.adb, einfo.ads
523 (Get_Pragma): Add handling of No_Caching.
524 * doc/gnat_rm/implementation_defined_aspects.rst,
525 doc/gnat_rm/implementation_defined_pragmas.rst: Document new
527 * gnat_rm.texi: Regenerate.
528 * par-prag.adb (Prag): New pragma Pragma_No_Caching.
529 * sem_ch13.adb (Analyze_Aspect_Specifications,
530 Check_Aspect_At_Freeze_Point): Add handling of No_Caching.
531 * sem_prag.adb (Analyze_Pragma): Deal with pragma No_Caching.
532 * sem_prag.ads (Analyze_External_Property_In_Decl_Part): Now
533 applies to No_Caching.
534 * sem_util.adb, sem_util.ads (Is_Effectively_Volatile): Add
535 handling of No_Caching.
536 (No_Caching_Enabled): New query function.
537 * snames.ads-tmpl: New names for pragma.
539 2019-08-12 Yannick Moy <moy@adacore.com>
541 * sem_util.adb, sem_util.ads (Traverse_More_Func,
542 Traverse_More_Proc): Add formal parameter for Itypes traversal.
544 2019-08-12 Yannick Moy <moy@adacore.com>
546 * exp_attr.adb, exp_attr.ads (Expand_Size_Attribute): New
547 procedure to share part of the attribute expansion with
549 (Expand_N_Attribute_Reference): Extract part of the
550 Size/Object_Size expansion in the new procedure
551 Expand_Size_Attribute.
552 * exp_spark.adb (Expand_SPARK_N_Attribute_Reference): Expand
553 Size/Object_Size attributes using the new procedure
554 Expand_Size_Attribute.
556 2019-08-12 Yannick Moy <moy@adacore.com>
558 * exp_spark.adb (Expand_SPARK_N_Attribute_Reference): Only
559 expand Enum_Rep attribute when its parameter is a literal.
561 2019-08-12 Justin Squirek <squirek@adacore.com>
563 * sem_eval.adb (Check_Non_Static_Context): Add a condition to
564 determine if a range violation constitues a warning or an error.
565 (Out_Of_Range): Add a condition to determine if a range
566 violation constitues a warning or an error.
568 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
570 * exp_ch4.adb (Real_Range_Check): Do not rewrite the conversion
571 node but its expression instead, after having fetched its
572 current value. Clear the Do_Range_Check flag on entry. Return
573 early for a rewritten float-to-float conversion. Remove
574 redundant local variable. Suppress all checks when inserting
575 the temporary and do not reanalyze the node.
577 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
579 * sprint.ads: Minor comment tweak.
581 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
583 * checks.adb (Insert_Valid_Check): Do not retrieve the
584 Do_Range_Check flag from the Original_Node but from the
585 Validated_Object. Remove useless bypass for floating-point
588 2019-08-12 Yannick Moy <moy@adacore.com>
590 * sem_util.adb, sem_util.ads (Traverse_More_Func,
591 Traverse_More_Proc): New traversal subprograms.
593 2019-08-12 Jerome Lambourg <lambourg@adacore.com>
595 * libgnarl/s-taprop__vxworks.adb (Abort_Handler): Only call
596 s-tpopsp.Self when actually needed.
598 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
600 * exp_ch4.adb (Discrete_Range_Check): Return if checks are
603 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
605 * sem_res.adb: Add with & use clause for Sem_Mech and
607 (Resolve_Actuals): Do not apply a scalar range check for the
608 source of a conversion whose result is passed by reference to a
611 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
613 * checks.adb (Insert_Valid_Check): Reset the Do_Range_Check flag
614 on the validated object.
615 * exp_ch6.adb (Add_Call_By_Copy_Code): Reset the Do_Range_Check
616 flag on the actual here, as well as on the Expression if the
617 actual is a N_Type_Conversion node.
618 (Add_Validation_Call_By_Copy_Code): Generate the incoming range
619 check if needed and reset the Do_Range_Check flag on the
620 Expression if the actual is a N_Type_Conversion node.
621 (Expand_Actuals): Do not reset the Do_Range_Check flag here.
622 Generate the incoming range check for In parameters here instead
624 (Expand_Call_Helper): ...here. Remove redudant condition.
625 * sem_res.adb (Resolve_Actuals): Use local variable A_Typ and
626 remove obsolete comments.
627 (Resolve_Type_Conversion): Do not force the Do_Range_Check flag
628 on the operand if range checks are suppressed.
630 2019-08-12 Eric Botcazou <ebotcazou@adacore.com>
632 * checks.adb (Activate_Range_Check): Remove redundant argument.
633 (Generate_Range_Check): Likewise.
634 (Apply_Float_Conversion_Check): Reset the Do_Range_Check flag on
635 entry and remove redundant condition.
637 2019-08-02 Alexandre Oliva <oliva@adacore.com>
639 * libgnat/a-exexpr.adb (Begin_Handler_v1, End_Handler_v1): New.
640 (Claimed_Cleanup): New.
641 (Begin_Handler, End_Handler): Document.
642 * gcc-interface/trans.c (gigi): Switch to exception handler
644 (Exception_Handler_to_gnu_gcc): Save the original cleanup
645 returned by begin handler, pass it to end handler, and use
646 EH_ELSE_EXPR to pass a propagating exception to end handler.
647 (gnat_to_gnu): Leave the exception pointer alone for reraise.
648 (add_cleanup): Handle EH_ELSE_EXPR, require it by itself.
650 2019-07-23 Ed Schonberg <schonberg@adacore.com>
652 * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations,
653 Freeze_Entity_Checks): Include Aspect_CPU with other aspects
654 whose expresssion may depend on a discriminant, and thus require
655 that components of the type be made visible.
657 2019-07-23 Eric Botcazou <ebotcazou@adacore.com>
659 * checks.adb (Convert_And_Check_Range): Add Suppress parameter
660 and pass it in the call to Insert_Actions. Rename local
662 (Generate_Range_Check): Minor comment fixes. Pass Range_Check
663 in the first call to Convert_And_Check_Range and All_Checks in
665 * exp_ch4.adb (Expand_N_Type_Conversion): Reset the
666 Do_Overflow_Check flag in the float-to-float case too if there
667 is also a range check.
669 2019-07-23 Eric Botcazou <ebotcazou@adacore.com>
671 * checks.adb (Activate_Overflow_Check): Remove redundant
673 * exp_ch4.adb (Discrete_Range_Check): Reset the overflow flag.
674 (Expand_N_Type_Conversion): Do not reset it here.
676 2019-07-23 Eric Botcazou <ebotcazou@adacore.com>
678 * repinfo.adb (List_Component_Layout): Pass Decimal to UI_Write.
679 (Write_Val): Likewise.
681 2019-07-23 Ed Schonberg <schonberg@adacore.com>
683 * aspects.ads: New table Operational_Aspect, used to distinguish
684 between aspects that are view-specific, such as those related to
685 iterators, and representation aspects that apply to all views of
687 * aspects.adb (Find_Aspect): If the aspect being sought is
688 operational, do not ecamine the full view of a private type to
690 * sem_ch5.adb (Analyze_Iterator_Specification): Improve error
691 message when the intended domain of iteration does not implement
692 the required iterator aspects.
694 2019-07-23 Yannick Moy <moy@adacore.com>
696 * sem_spark.ads (Is_Local_Context): New function.
697 * sem_spark.adb (Check_Declaration): Issue errors on violations
699 (Process_Path): Do not issue error on borrow/observe during
700 elaboration, as these are caught by the new rule.
702 2019-07-23 Yannick Moy <moy@adacore.com>
704 * exp_ch7.adb (Create_Finalizer): Force finalizer not to be
706 * exp_dbug.adb (Get_External_Name): Explain special case of
709 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
711 * repinfo.adb (List_Entities): Also list compiled-generated
712 types present as Etype of objects.
714 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
716 * sinfo.ads: Update the documentation about the
717 Do_Division_Check, Do_Overflow_Check and Do_Range_Check flags.
719 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
721 * exp_ch4.adb (Expand_N_Type_Conversion): Beef up comment.
722 (Fixup_Universal_Fixed_Operation): Set the base type instead of
723 the type of the enclosing type conversion on the operation.
725 2019-07-22 Ed Schonberg <schonberg@adacore.com>
727 * exp_ch4.adb (Expand_N_In): Do not suggest the use of attribute
728 'Valid as a replacement for a range check on a discrete type
729 when the bounds of the range are given by type conversions,
730 because in such a case there are distinct types involved and the
731 subbested attribute replacement would be misplaced.
733 2019-07-22 Yannick Moy <moy@adacore.com>
735 * sem_spark.adb (Get_Root_Object, Is_Path_Expression,
736 Is_Subpath_Expression): Add parameter Is_Traversal to adapt
737 these functions to the case of paths returned from a traversal
739 (Read_Indexes): Handle the case of an if-expression or
741 (Check_Statement): Check Emit_Messages only when issuing an
742 error message. This is important as Emit_Messages may store the
743 information that an error was detected.
745 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
747 * checks.adb (Apply_Type_Conversion_Checks): Do not set
748 Do_Range_Check flag on conversions from fixed-point types
750 * exp_attr.adb: Add use and with clause for Expander.
751 (Expand_N_Attribute_Reference) <Fixed_Value, Integer_Value>: Set
752 the Conversion_OK flag and do not generate overflow/range checks
754 * exp_ch4.adb (Expand_N_Qualified_Expression): Remove
755 superfluous clearing of Do_Range_Check flag.
756 (Discrete_Range_Check): New procedure to generate a range check
758 (Real_Range_Check): Remove redundant local variable and adjust.
759 Remove useless shortcut. Clear Do_Range_Check flag on all
761 (Expand_N_Type_Conversion): Remove redundant test on
762 Conversion_OK. Call Discrete_Range_Check to generate range
763 checks on discrete types. Remove obsolete code for
764 float-to-integer conversions. Add code to generate range checks
765 for conversions involving fixed-point types.
767 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
769 * sprint.ads: Fix pasto in comment.
771 2019-07-22 Javier Miranda <miranda@adacore.com>
773 * sem_res.adb (Resolve_Actuals): Replace code that displaces the
774 pointer to an allocated object to reference its secondary
775 dispatch table by a type conversion (which takes care of
778 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
780 * sprint.adb (Sprint_Node_Actual)
781 <N_Decimal_Fixed_Point_Definition>: Swap a couple of spaces.
782 (Write_Itype): Minor consistency fixes throughout. Add support
783 for printing ordinary and decimal fixed-point types and
786 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
788 * exp_attr.adb (Expand_Loop_Entry_Attribute): Beef up comment.
790 2019-07-22 Ed Schonberg <schonberg@adacore.com>
792 * libgnat/s-valboo.ads, libgnat/s-valcha.ads,
793 libgnat/s-valdec.ads, libgnat/s-valenu.ads,
794 libgnat/s-valint.ads, libgnat/s-vallld.ads,
795 libgnat/s-vallli.ads, libgnat/s-valllu.ads,
796 libgnat/s-valrea.ads, libgnat/s-valuns.ads,
797 libgnat/s-valwch.ads: Change categorization of packages that
798 implement attribute 'Value from Pure to Preelaborate, to prevent
799 undesirable optimizations when the evaluation of the attribute
800 raises Constraint_Error, but subsequent use of the result of
801 this evsaluation is removed by a subsequent optimization.
803 2019-07-22 Ed Schonberg <schonberg@adacore.com>
805 * sem_warn.adb (Check_References): Do not emit s warning on a
806 referenced entity with no explicit assignment if the type of the
807 entity has Preelaborable_Initialixation, such as
808 Exception_Occurrence.
810 2019-07-22 Javier Miranda <miranda@adacore.com>
812 * exp_ch4.adb (Size_In_Storage_Elements): Improve the expansion
813 to handle array indexes that are modular type.
814 (Expand_N_Allocator): For 32-bit targets improve the generation
815 of the runtime check associated with large arrays supporting
816 arrays initialized with a qualified expression.
817 * libgnat/s-imenne.adb (Image_Enumeration_8,
818 Image_Enumeration_16, Image_Enumeration_32): Define the index of
819 Index_Table with range Natural'First .. Names'Length since in
820 the worst case all the literals of the enumeration type would be
821 single letter literals and the Table built by the frontend would
822 have as many components as the length of the names string. As a
823 result of this enhancement, the internal tables declared using
824 Index_Table have a length closer to the real needs, thus
825 avoiding the declaration of large arrays on 32-bit CCG targets.
827 2019-07-22 Yannick Moy <moy@adacore.com>
829 * sem_ch3.adb (Constrain_Access): Issue a message about ignored
832 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
834 * sem_ch8.adb (End_Use_Type): Reset the In_Use flag on the
835 class-wide type if the type is tagged.
836 (Use_One_Type): Add commentary on the handling of the class-wide
839 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
841 * einfo.ads (Is_For_Access_Subtype): Delete.
842 (Set_Is_For_Access_Subtype): Likewise.
843 * einfo.adb (Is_For_Access_Subtype): Likewise.
844 (Set_Is_For_Access_Subtype): Likewise.
845 (Write_Entity_Flags): Do not write Is_For_Access_Subtype.
846 * exp_ch4.adb (Expand_N_Selected_Component): Do not deal with
848 * exp_spark.adb (Expand_SPARK_N_Selected_Component): Likewise.
849 * sem_ch4.adb (Analyze_Explicit_Dereference): Likewise.
850 * sem_ch3.adb (Build_Discriminated_Subtype): Do not build a
851 special private subtype for access-to-record subtypes.
853 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
855 * sem_ch3.adb (Complete_Private_Subtype): Rework the setting of
856 the Etype of the full view for full base types that cannot
857 contain any discriminant. Remove code and comment about it in
860 2019-07-22 Ed Schonberg <schonberg@adacore.com>
862 * sem_ch3.adb (Convert_Bound): Subsidiary of
863 Floating_Point_Type_Declaration, to handle properly range
864 specifications with bounds that may include static constants of
865 a given type rather than real literals.
867 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
869 * sem_aggr.adb (Rewrite_Bound): Be prepared for discriminals
871 (Rewrite_Range;): Minor tweak.
872 (Resolve_Record_Aggregate): For a component with default
873 initialization whose expression is an array aggregate, also
874 rewrite the bounds of the component associations, if any.
876 2019-07-22 Gary Dismukes <dismukes@adacore.com>
878 * exp_ch5.adb (Expand_N_Case_Statement): In the case where a
879 case statement is rewritten as an equivalent if statement,
880 inherit the From_Condition_Expression flag from the case
883 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
885 * sem_ch8.adb (Check_Constrained_Object): Further extend the
886 special optimization to all limited types.
888 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
890 * exp_attr.adb (Expand_N_Attribute_Reference)
891 <Attribute_Enum_Val>: Set No_Truncation on the
892 N_Unchecked_Type_Conversion built around the argument passed to
895 2019-07-22 Nicolas Roche <roche@adacore.com>
897 * libgnat/s-valrea.adb (Scan_Real): Ignore non significative
898 digits to avoid converging to infinity in some cases.
900 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
902 * libgnat/g-encstr.adb (Encode_Wide_String): Fix oversight.
903 (Encode_Wide_Wide_String): Likewise.
905 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
907 * sem_warn.adb (Find_Var): Bail out for a function call with an
908 Out or In/Out parameter.
910 2019-07-22 Nicolas Roche <roche@adacore.com>
912 * terminals.c (__gnat_tty_waitpid): Support both blocking and
914 * libgnat/g-exptty.ads (Is_Process_Running): New function.
915 * libgnat/g-exptty.adb (Close): Don't try to interrupt/terminate
916 a process if it is already dead.
918 2019-07-22 Ed Schonberg <schonberg@adacore.com>
920 * freeze.adb (Freeze_Fixed_Point_Type): When freezing a
921 fixed-point subtype, check whether the parent type declarastion
922 includes an aspect specification for the 'Small type attribute,
923 and inherit the specified value.
925 2019-07-22 Javier Miranda <miranda@adacore.com>
927 * freeze.adb (Freeze_Subprogram): Check that C++ constructors
928 must have external or link name.
930 2019-07-22 Ed Schonberg <schonberg@adacore.com>
932 * sem_res.adb (Resolve_Selected_Component): If the prefix has a
933 deferred reference, generate the correct reference now, to
934 indicate that the previous assignment is used. This prevents
935 spurious warnings on useless assignments when compiling with all
936 warnings enabled. when there is a subsequent call in the same
937 stqtement list, in which the prefix of the selected component is
938 the actual for an out parameter.
940 2019-07-22 Eric Botcazou <ebotcazou@adacore.com>
942 * exp_attr.adb (Expand_Loop_Entry_Attribute): Copy the condition
943 of a while loop instead of simply relocating it.
945 2019-07-18 Arnaud Charlet <charlet@adacore.com>
947 * Makefile.rtl, expect.c, env.c, aux-io.c, mkdir.c, initialize.c,
948 cstreams.c, raise.c, tracebak.c, adadecode.c, init.c, raise-gcc.c,
949 argv.c, adaint.c, adaint.h, ctrl_c.c, sysdep.c, rtinit.c, cio.c,
950 seh_init.c, exit.c, targext.c: Introduce a "STANDALONE" mode where C
951 runtime files do not have any dependency on GCC include files.
952 Remove unnecessary includes.
953 Remove remaining references to VMS in runtime C file.
954 * runtime.h: new File.
956 2019-07-13 Andreas Schwab <schwab@linux-m68k.org>
958 * Makefile.rtl: Use g-sercom__linux.adb for all linuxes.
960 2019-07-11 Piotr Trojanek <trojanek@adacore.com>
962 * lib-writ.adb (Ensure_System_Dependency,
963 Up_To_Date_ALI_File_Exists, Write_ALI): Replace low-level access
964 to table with a high-level query.
966 2019-07-11 Piotr Trojanek <trojanek@adacore.com>
968 * checks.adb: Fix typo in comment.
969 * sem.adb (Semantics): Avoid repeated calls to
970 In_Extended_Main_Source_Unit by reusing an already-cached
972 * sem_util.adb (First_Global): Fix style.
974 2019-07-11 Yannick Moy <moy@adacore.com>
976 * sem_res.adb (Resolve_Call): Do not perform dimensionality
977 checking on inlined bodies.
979 2019-07-11 Yannick Moy <moy@adacore.com>
981 * debug.adb: Flip meaning of debug switch -gnatdF.
983 2019-07-11 Yannick Moy <moy@adacore.com>
985 * sem_eval.adb (Is_Same_Value): Add special case for rewritten
986 Loop_Entry attribute.
988 2019-07-11 Claire Dross <dross@adacore.com>
990 * gnat1drv.adb: SPARK checking rules for pointer aliasing are
991 moved to GNATprove backend.
992 * sem_spark.ads, sem_spark.adb (Sem_SPARK): Is now a generic
993 unit. Takes as parameters:
994 - Retysp which is used to query the most underlying type
995 visible in SPARK. We do not introduce aliasing checks for
996 types which are not visibly deep.
997 - Component_Is_Visible_In_SPARK is used to avoid doing pointer
998 aliasing checks on components which are not visible in SPARK.
999 - Emit_Messages returns True in the second phase of SPARK
1000 analysis. Error messages for failed aliasing checks are only
1001 output in this case.
1002 Additionally, errors on constructs not supported in SPARK are
1003 removed as duplicates of marking errors. Components are stored
1004 in the permission map using their original component to avoid
1005 inconsistencies between components of different views of the
1007 (Check_Expression): Handle delta constraints.
1008 (Is_Deep): Exported so that we can check for SPARK restrictions
1009 on deep types inside SPARK semantic checkings.
1010 (Is_Traversal_Function): Exported so that we can check for SPARK
1011 restrictions on traversal functions inside SPARK semantic
1013 (Check_Call_Statement, Read_Indexes): Check wether we are
1014 dealing with a subprogram pointer type before querying called
1016 (Is_Subpath_Expression): Image attribute can appear inside a
1018 (Check_Loop_Statement): Correct order of statements in the loop.
1019 (Check_Node): Ignore raise nodes.
1020 (Check_Statement): Use Last_Non_Pragma to get the object
1021 declaration in an extended return statement.
1023 2019-07-11 Patrick Bernardi <bernardi@adacore.com>
1025 * bindgen.adb (Gen_Main): Do not generate a reference to
1026 Ada_Main_Program_Name when the Minimal_Binder flag is set.
1027 (Gen_Output_File_Ada): Do not output GNAT_Version and
1028 Ada_Main_Program_Name info if Minimal_Binder flag is set.
1029 * bindusg.adb: Add documentation for new -minimal switch.
1030 * gnatbind.adb (Scan_Bind_Arg): Scan -minimal switch.
1031 * opt.ads: Add new global flag Minimal_Binder to indicate if the
1032 binder should not produce global variables.
1033 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
1034 Update documentation with new binder -minimal switch.
1035 * gnat_ugn.texi: Regenerate.
1037 2019-07-11 Eric Botcazou <ebotcazou@adacore.com>
1039 * Makefile.rtl: Add warning note about compilation flags and
1042 2019-07-11 Ed Schonberg <schonberg@adacore.com>
1044 * exp_ch9.adb (Expand_N_Protected_Type_Declaaration): New
1045 subsidiary routine Replace_Access_Definition, to handle properly
1046 a protected type PT one of whose private components is of type
1049 2019-07-11 Dmitriy Anisimkov <anisimko@adacore.com>
1051 * libgnat/g-socket.ads (Level_Type): Add enumerators for
1052 IP_Protocol_For_ICMP, IP_Protocol_For_IGMP,
1053 IP_Protocol_For_RAW_Level.
1054 * libgnat/g-socket.adb (Levels): Handle them.
1055 * s-oscons-tmplt.c: Import socket protocols defined in
1058 2019-07-11 Claire Dross <dross@adacore.com>
1060 * libgnat/a-cfhama.adb, libgnat/a-cfhase.adb (Free): Do not
1061 reset the Has_Element flag if no element is freed.
1063 2019-07-11 Arnaud Charlet <charlet@adacore.com>
1065 * errno.c: Remove obsolete support for MaRTE OS.
1067 2019-07-11 Ed Schonberg <schonberg@adacore.com>
1069 * exp_ch4.adb (Expand_N_Type_Conversion): If a predicate check
1070 is generated, analyze it with range check suppressed, because
1071 that check has been previously applied.
1072 * exp_ch5.adb (Expand_N_Assignment_Statement): If the RHS is a
1073 type conversion to the type of the LHS, do not apply a predicate
1074 check to the RHS because it will have been generated already
1075 during its expansion.
1076 * exp_ch6.adb (Can_Fold_Predicate_Call): Extend processing to
1077 handle a predicate check on a constant entity whose value is
1080 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com>
1082 * bindo.adb: Remove the documentation of switch -d_N because it
1083 is no longer in use.
1084 * bindo-graphs.ads, bindo-graphs.adb (Is_Spec_Before_Body_Edge):
1086 * bindo-writers.adb (Write_Dependency_Edge): Add the missing
1087 case of a spec-before-body edge.
1089 2019-07-11 Dmitriy Anisimkov <anisimko@adacore.com>
1091 * libgnat/g-socket.ads (Mode_Type): Add a Socket_Raw enumerator.
1092 * libgnat/g-socket.adb (Modes): Handle Socket_Raw.
1094 2019-07-11 Justin Squirek <squirek@adacore.com>
1096 * exp_ch9.adb (Build_Private_Protected_Declaration): Add
1097 exception for the moving of pragmas to internally generated
1098 specs for pragma Unreferenced.
1100 2019-07-11 Bob Duff <duff@adacore.com>
1102 * doc/gnat_ugn/gnat_utility_programs.rst: Fix inconsistent
1103 documentation for gnatmetric.
1104 * gnat_ugn.texi: Regenerate.
1106 2019-07-11 Bob Duff <duff@adacore.com>
1108 * doc/gnat_ugn/gnat_utility_programs.rst: Document gnatpp's
1109 --spaces-only switch.
1111 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com>
1113 * sem_util.adb (Null_Status): Assume that an erroneous construct
1114 has an undefined null status.
1116 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com>
1118 * checks.adb, exp_ch6.adb, gnat1drv.adb, sem_aux.adb,
1119 sem_ch2.adb, sem_ch8.adb, sem_res.adb: Minor reformatting.
1121 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com>
1123 * sem_ch8.adb (Analyze_Object_Renaming): Obtain the object being
1124 renamed using routine Get_Object_Name which takes care of
1126 (Get_Object_Name): New routine.
1128 2019-07-11 Ed Schonberg <schonberg@adacore.com>
1130 * exp_ch6.adb (Can_Fold_Predicate_Call): New function,
1131 subsidiary of Expand_Call_Helper, to compute statically a
1132 predicate check when the argument is a static integer.
1134 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com>
1136 * sem_res.adb (Resolve_Op_Not): Do not rewrite an equality
1137 operator into a function call when the operator is intrinsic.
1139 2019-07-11 Thomas Quinot <quinot@adacore.com>
1141 * sem_prag.adb (Analyze_Pragma, case pragma Check): Do not call
1142 Set_SCO_Pragma_Enabled for the dynamic predicate case.
1144 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com>
1146 * exp_util.ads, exp_util.adb (Needs_Finalization): Move to
1148 * sem_ch9.adb (Analyze_Protected_Definition): Code cleanup. Mark
1149 the protected type as having controlled components when it
1150 contains at least one such component.
1151 * sem_util.ads, sem_util.adb (Needs_Finalization): New
1154 2019-07-11 Eric Botcazou <ebotcazou@adacore.com>
1156 * alloc.ads (Rep_JSON_Table_Initial): New constant.
1157 (Rep_JSON_Table_Increment): Likewise.
1158 * debug.adb: Document -gnatd_j switch.
1159 * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Add
1161 * gnat1drv.adb: Add with clause for Repinfo.Input.
1162 Add with and use clauses for Sinput.
1163 (Read_JSON_Files_For_Repinfo): New procedure.
1164 (Gnat1drv1): Deal with -gnatd_j switch.
1165 * repinfo-input.ad[sb]: New unit.
1166 * snames.ads-tmpl (Name_Discriminant): New constant.
1167 (Name_Operands): Likewise.
1169 2019-07-11 Justin Squirek <squirek@adacore.com>
1171 * checks.adb (Apply_Accessibility_Check): Add check for constant
1172 folded conditions on accessibility checks.
1174 2019-07-11 Arnaud Charlet <charlet@adacore.com>
1176 * libgnarl/g-thread.ads, libgnarl/g-thread.adb (Get_Thread):
1177 Update comments. Add new version taking a Task_Id.
1179 2019-07-11 Hristian Kirtchev <kirtchev@adacore.com>
1181 * bindo.adb: Update the section of switches and debugging
1183 * bindo.ads: Add type Elaboration_Phase.
1184 * bindo-augmentors.adb: Add use clause for
1185 Bindo.Writers.Phase_Writers.
1186 (Augment_Library_Graph): Signal the start and end of the
1188 * bindo-builders.adb: Add with and use clause for Bindo.Writers.
1189 Add use clause for Bindo.Writers.Phase_Writers.
1190 (Build_Invocation_Graph): Signal the start and end of the
1191 invocation graph construction phase.
1192 (Build_Library_Graph): Signal the start and end of the library
1193 graph construction phase.
1194 * bindo-diagnostics.adb: Add use clause for
1195 Bindo.Writers.Phase_Writers.
1196 (Diagnose_Cycle): Signal the start and end of the cycle
1198 * bindo-elaborators.adb: Add use clause for
1199 Bindo.Writers.Phase_Writers.
1200 (Elaborate_Units): Signal the start and end of the unit
1202 * bindo-graphs.adb: Add use clause for
1203 Bindo.Writers.Phase_Writers.
1204 (Find_Components): Signal the start and end of the component
1206 (Find_Cycles): Signal the start and end of the cycle discovery
1208 * bindo-units.adb: Add with and use clause for Bindo.Writers.
1209 Add use clause for Bindo.Writers.Phase_Writers.
1210 (Collect_Elaborable_Units): Signal the start and end of the unit
1212 * bindo-validators.adb: Add with and use clause for
1213 Bindo.Writers. Add use clause for Bindo.Writers.Phase_Writers.
1214 (Validate_Cycles, Validate_Elaboration_Order,
1215 Validate_Invocation_Graph, Validate_Library_Graph): Signal the
1216 start and end of the libray graph validation phase.
1217 * bindo-writers.ads, bindo-writers.adb: Add new nested package
1219 * debug.adb: Update the documentation of switch d_S.
1221 2019-07-11 Yannick Moy <moy@adacore.com>
1223 * sem_res.adb (Check_Argument_Order): Special case calls to
1226 2019-07-10 Dmitriy Anisimkov <anisimko@adacore.com>
1228 * libgnat/s-ststop.adb: Remove System.Strings.Stream_Ops
1229 dependence on System.Streams.Stream_IO.
1231 2019-07-10 Ed Schonberg <schonberg@adacore.com>
1233 * sem_ch2.adb (Analyze_Integer_Literal): Preserve the type of
1234 the literal if prior analysis determined that its type is a
1235 modular integer type.
1237 2019-07-10 Doug Rupp <rupp@adacore.com>
1239 * init.c: Do not attempt to re-arm guard page on x86_64-vx7(r2).
1241 2019-07-10 Ed Schonberg <schonberg@adacore.com>
1243 * sem_ch8.adb (Check_Constrained_Object): A record that is
1244 limited because of the presence of a limited component is
1245 constrained, and no subtype indiciation needs to be created for
1246 it, just as is the case for declared limited records.
1248 2019-07-10 Yannick Moy <moy@adacore.com>
1250 * sem_aux.adb, sem_aux.ads (Is_Protected_Operation): New
1251 function to determine if a subprogram is protected.
1252 * sem_spark.adb (Setup_Protected_Components): New procedure to
1253 add protected components to the environment.
1254 (Check_Callable_Body): Call the new Setup_Protected_Components.
1255 (Check_Package_Spec): Merge local environment with enclosing one
1258 2019-07-10 Claire Dross <dross@adacore.com>
1260 * sem_spark.adb (Check_Expression): Allow digits constraints as
1262 (Illegal_Global_Usage): Pass in the entity.
1263 (Is_Subpath_Expression): New function to allow different nodes
1264 as inner parts of a path expression.
1265 (Read_Indexes): Allow concatenation and aggregates with box
1266 expressions. Allow attributes Update and Loop_Entry.
1267 (Check_Expression): Allow richer membership test.
1268 (Check_Node): Ignore bodies of generics.
1269 (Get_Root_Object): Allow concatenation and attributes.
1271 2019-07-10 Hristian Kirtchev <kirtchev@adacore.com>
1273 * sem_ch6.adb (Check_Discriminant_Conformance): Use Find_Type to
1274 discover the type of a full view discriminant.
1276 2019-07-10 Arnaud Charlet <charlet@adacore.com>
1278 * doc/gnat_ugn/gnat_and_program_execution.rst: Improve gnatmem's
1279 doc for the depth switch.
1281 2019-07-10 Bob Duff <duff@adacore.com>
1283 * doc/gnat_ugn/gnat_utility_programs.rst: Document gnatpp's
1284 --source-line-breaks switch.
1286 2019-07-10 Justin Squirek <squirek@adacore.com>
1288 * doc/gnat_rm/implementation_defined_attributes.rst: Add mention
1289 of 'Image attribute with 'Img's entry to mention additional
1290 added 2012 usage of Obj'Image.
1291 * doc/gnat_rm/implementation_defined_pragmas.rst: Correct
1292 mispelling of Async_Writers.
1293 * gnat_rm.texi: Regenerate.
1294 * sem_prag.adb (Analyze_Pragma): Correct mispelling of
1296 * sem_util.adb (State_Has_Enabled_Property): Correct mispelling
1299 2019-07-10 Simon Buist <buist@adacore.com>
1301 * sem_util.ads (Child_Prefix): New constant.
1302 * sem_util.adb (Unique_Name): Add a special prefix to child
1303 units that have a nested subprogram or package.
1305 2019-07-10 Arnaud Charlet <charlet@adacore.com>
1307 * sfn_scan.adb (Scan_SFN_Pragmas): Add pragma Assert.
1309 2019-07-10 Hristian Kirtchev <kirtchev@adacore.com>
1311 * sem_ch3.adb (Check_Nonoverridable_Aspects): Correct the
1312 spelling in certain error messages.
1313 (Check_Pragma_Implemented): Correct the spelling in certain
1316 2019-07-10 Eric Botcazou <ebotcazou@adacore.com>
1318 * Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add g-brapre.
1319 * libgnat/g-brapre.ads: New package specification.
1320 * doc/gnat_rm/the_gnat_library.rst: Document it.
1321 * gnat_rm.texi: Regenerate.
1323 2019-07-10 Yannick Moy <moy@adacore.com>
1325 * osint-c.adb (Set_File_Name): Always add extension for multiple
1326 units per file mode.
1328 2019-07-10 Corentin Gay <gay@adacore.com>
1330 * sysdep.c: Put include directive for 'vxWorks.h' before any
1331 other VxWorks headers.
1333 2019-07-10 Eric Botcazou <ebotcazou@adacore.com>
1335 * doc/gnat_rm/implementation_defined_attributes.rst
1336 (Scalar_Storage_Order): Minor tweaks. Add note about debuggers.
1337 * gnat_rm.texi: Regenerate.
1339 2019-07-10 Hristian Kirtchev <kirtchev@adacore.com>
1341 * exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
1342 assignments to the temporary result as being OK because the
1343 expansion of case expressions is correct by construction.
1344 (Is_Copy_Type): Update the predicate to match the comment
1347 2019-07-10 Hristian Kirtchev <kirtchev@adacore.com>
1349 * bindo-graphs.adb, bindo.adb, debug.adb, exp_ch6.adb,
1350 sem_ch10.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb,
1351 sem_ch6.adb, sem_ch7.adb, sem_res.adb, sem_spark.adb,
1352 sem_util.adb, warnsw.ads: Minor reformatting.
1354 2019-07-10 Joffrey Huguet <huguet@adacore.com>
1356 * libgnat/a-strbou.ads, libgnat/a-strfix.ads,
1357 libgnat/a-strunb.ads, libgnat/a-strunb__shared.ads: Add global
1358 contracts, contract cases, preconditions and postconditions to
1359 procedures and functions.
1361 2019-07-10 Doug Rupp <rupp@adacore.com>
1363 * sysdep.c (__gnat_is_file_not_found_error): Reformulate to also
1364 work for vxworks7r2 SR0610.
1366 2019-07-10 Doug Rupp <rupp@adacore.com>
1368 * env.c (__gnat_environ): Reformulate to also work for
1371 2019-07-10 Patrick Bernardi <bernardi@adacore.com>
1373 * Makefile.rtl: Handle vxworks7r2 ppc target
1375 2019-07-10 Hristian Kirtchev <kirtchev@adacore.com>
1377 * bindo.adb: Update the section on switches.
1379 (Add_Cycle, Add_Vertex_And_Complement): Remove.
1380 (Create): The graph no longer needs a set of recorded cycles
1381 because the cycles are not rediscovered in permuted forms.
1382 (Cycle_End_Vertices): New routine.
1383 (Destroy): The graph no longer needs a set of recorded cycles
1384 because the cycles are not rediscovered in permuted forms.
1385 (Destroy_Library_Graph_Vertex): Move to the library level.
1386 (Find_All_Cycles_Through_Vertex, Find_All_Cycles_With_Edge):
1388 (Find_Cycles_From_Successor, Find_Cycles_From_Vertex,
1389 Find_Cycles_In_Component, Has_Elaborate_All_Edge): New routines.
1390 (Insert_And_Sort): Remove.
1391 (Is_Elaborate_Body_Edge): Use predicate
1392 Is_Vertex_With_Elaborate_Body.
1393 (Is_Recorded_Cycle): Remove.
1394 (Is_Vertex_With_Elaborate_Body): New routine.
1395 (Normalize_And_Add_Cycle): Remove.
1396 (Precedence): Rename to xxx_Precedence, where xxx relates to the
1397 input. These versions better reflect the desired input
1399 (Record_Cycle): New routine.
1400 (Remove_Vertex_And_Complement, Set_Is_Recorded_Cycle): Remove.
1401 (Trace_xxx): Update all versions to use debug switch -d_t.
1402 (Trace_Component): New routine.
1403 (Trace_Eol): Removed.
1404 (Trace_Vertex): Do not output the component as this information
1405 is already available when the component is traced.
1406 (Unvisit, Visit): New routine.
1407 * bindo-graphs.ads: Add new instance LGV_Lists. Remove instance
1408 RC_Sets. Update the structure of type Library_Graph_Attributes
1409 to remove the set of recorded cycles.
1410 (Destroy_Library_Graph_Vertex): Move to the library level.
1411 * bindo-writers.adb (Write_Component_Vertices): Output
1412 information about the number of vertices.
1413 * debug.adb: Document the use of binder switch -d_t. Update the
1414 use of binder switch -d_T.
1416 2019-07-10 Yannick Moy <moy@adacore.com>
1418 * sem_spark.adb (Get_Root_Object): Replace precondition by error
1420 (Read_Indexes): Replace precondition by error message.
1421 (Check_Callable_Body): Check only traversal function returns an
1422 anonymous access type.
1423 (Check_Expression): Issue error on unexpected expression as
1425 * sem_util.adb (First_Global): Fix access to global on
1428 2019-07-10 Javier Miranda <miranda@adacore.com>
1430 * exp_ch6.adb (Is_Class_Wide_Interface_Type): New subprogram.
1431 (Expand_Call_Helper): Handle non-limited views when we check if
1432 any formal is a class-wide interface type.
1433 * exp_disp.adb (Expand_Interface_Actuals): Handle non-limited
1434 views when we look for interface type formals to force "this"
1437 2019-07-10 Ed Schonberg <schonberg@adacore.com>
1439 * sem_res.adb (Resolve_Equality_Op): Do not replace the resolved
1440 operator by its alias if expander is not active, because the
1441 operand type may not be frozen yet and its inherited operations
1442 have not yet been created.
1444 2019-07-10 Hristian Kirtchev <kirtchev@adacore.com>
1446 * bindo-elaborators.adb (Elaborate_Units): Set attribute
1447 Elab_Position of all elaborated units.
1448 (Set_Unit_Elaboration_Positions): New routine.
1450 2019-07-10 Gary Dismukes <dismukes@adacore.com>
1452 * exp_util.adb: Reformatting and a typo fix.
1454 2019-07-10 Yannick Moy <moy@adacore.com>
1456 * exp_util.adb (Remove_Side_Effects): Prefer renamings for
1457 objects of possible owning type in GNATprove mode.
1459 2019-07-09 Ed Schonberg <schonberg@adacore.com>
1461 * sem_ch3.adb (Analyze_Object_Declaration): If the object type
1462 is a composite type that has a dynamic predicate and, the
1463 expression in the declaration is an aggregate, the generated
1464 predicate check must appear after the expanded code for the
1465 aggregate, which will appear after the rewritten object
1468 2019-07-09 Justin Squirek <squirek@adacore.com>
1470 * sem_eval.adb (Expr_Value_E): Add conditional to correctly
1471 handle constant enumerated character types.
1473 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
1475 * libgnarl/s-osinte__mingw.ads (CRITICAL_SECTION): Use proper
1476 type for SpinCount component.
1478 2019-07-09 Justin Squirek <squirek@adacore.com>
1480 * exp_ch4.adb (Expand_N_Allocator): Add conditional to detect
1481 the presence of anoymous access type allocators and issue a
1482 warning if the appropriate warning flag is enabled.
1483 * warnsw.ads: Add new warning flag for anonymous allocators
1484 * warnsw.adb (All_Warnings, Restore_Warnings, Save_Warnings,
1485 Set_Underscore_Warning_Switch): Register new flags.
1486 (WA_Warnings): Register new flag as an "all warnings" switch
1488 doc/gnat_ugn/building_executable_programs_with_gnat.rst:
1489 Document new warning switches -gnatw_a and -gnatw_A.
1490 * gnat_ugn.texi: Regenerate.
1492 2019-07-09 Ed Schonberg <schonberg@adacore.com>
1494 * sem_ch4.adb (Diagnose_Call): Improve error recovery when a
1495 local subprogram name hides a possible candidate name declared
1496 in a child package in the context of the current unit.
1497 * sem_ch6.adb (Process_Formals): Protect against malformed
1498 formal types when the parameter type does not denote an entity.
1500 2019-07-09 Hristian Kirtchev <kirtchev@adacore.com>
1502 * bindo-augmentors.adb (Visit_Elaboration_Root): Do not start a
1503 DFS from an elaboration root whose corresponding unit lacks
1504 elaboration code. This behavior mimics that of the old
1505 elaboration order mechanism.
1506 * bindo-graphs.adb (Find_All_Cycles_Through_Vertex): Move the
1507 vertex tracing within the functional branches of the routine.
1508 This prevents spurious trace output.
1509 (Has_No_Elaboration_Code): New routine.
1510 (Trace_Cycle, Trace_Edge): Update the various Ids to use the
1511 "standard" trace format.
1512 * bindo-graphs.ads (Has_No_Elaboration_Code): New routine.
1513 * bindo-units.ads, bindo-units.adb (Has_No_Elaboration_Code):
1516 2019-07-09 Piotr Trojanek <trojanek@adacore.com>
1518 * ali.ads, bindo-graphs.adb, bindo-validators.adb, clean.adb,
1519 doc/gnat_ugn/elaboration_order_handling_in_gnat.rst, einfo.ads,
1520 exp_aggr.adb, exp_ch13.adb, exp_ch4.adb, exp_ch5.adb,
1521 exp_ch6.adb, exp_ch7.adb, exp_ch9.adb, exp_pakd.adb,
1522 fname-uf.ads, gnatlink.adb, inline.adb, lib.ads, make.adb,
1523 namet.ads, opt.ads, par-ch4.adb, par-ch6.adb, par-labl.adb,
1524 prep.adb, sem_aggr.adb, sem_ch13.adb, sem_ch4.adb, sem_ch5.adb,
1525 sem_ch6.adb, sem_ch6.ads, sem_ch7.adb, sem_ch8.adb, sem_dim.adb,
1526 sem_disp.adb, sem_prag.adb, sem_res.adb, sem_warn.adb,
1527 sinfo.ads: Replace ". " with ". ". Minor reformatting and typo
1529 * gnat_ugn.texi: Generate.
1531 2019-07-09 Hristian Kirtchev <kirtchev@adacore.com>
1533 * bindo.ads: Move type Precedence_Kind from the private to the
1534 visible part of the unit.
1535 * bindo-augmentors.adb: Remove the use of global data as it is
1537 (Augment_Library_Graph): Update the parameter profile.
1538 (Is_Visited, Set_Is_Visited): Remove.
1539 (Visit_Elaboration_Root, Visit_Elaboration_Roots): Update the
1540 parameter profile and comment on usage.
1541 (Visit_Vertex): Likewise. Also keep track of which invocation
1542 edge activates a task.
1543 * bindo-augmentors.ads (Augment_Library_Graph): Update the
1544 parameter profile and comment on usage.
1545 * bindo-builders.adb (Create_Forced_Edge,
1546 Create_Spec_And_Body_Edge, Create_With_Edge): Update the call to
1548 * bindo-diagnostics.adb: Add with end use clauses for Restrict
1550 (Output_Dynamic_Model_Suggestions): Remove.
1551 (Output_Invocation_Related_Suggestions): New routine.
1552 (Output_Suggestions): Output all invocation-related suggestions
1554 * bindo-elaborators.adb: Remove types Comparator_Ptr and
1556 (Find_Best_Vertex): Update the parameter profile.
1557 * bindo-graphs.adb (Activates_Task): New routine.
1558 (Add_Body_Before_Spec_Edge): Update the call to
1559 Add_Edge_With_Return.
1560 (Add_Edge): Update the parameter profile and the call to
1561 Add_Edge_With_Return.
1562 (Add_Edge_With_Return): Update the parameter profile and comment
1564 (At_Least_One_Edge_Satisfies): New routine.
1565 (Contains_Elaborate_All_Edge): Reimplement.
1566 (Contains_Static_Successor_Edge, Contains_Task_Activation): New
1568 (Contains_Weak_Static_Successor): Remove.
1569 (Is_Static_Successor_Edge): New routine.
1570 * bindo-graphs.ads: Add types LGE_Predicate_Ptr,
1571 LGV_Comparator_Ptr, and LGV_Predicate_Ptr. Update type
1572 Library_Graph_Edge_Attributes to capture whether an invocation
1573 edge activates a task. Update the value of
1574 No_Library_Graph_Edge_Attributes.
1575 (Activates_Task): Update the parameter profile and comment on
1577 (Contains_Static_Successor_Edge, Contains_Task_Activation): New
1579 (Contains_Weak_Static_Successor): Remove.
1580 * doc/gnat_ugn/elaboration_order_handling_in_gnat.rst:
1581 Update the documentation to reflect the new task-related advice.
1582 * gnat_ugn.texi: Regenerate.
1584 2019-07-09 Piotr Trojanek <trojanek@adacore.com>
1586 * exp_util.adb (Containing_Package_With_Ext_Axioms): Replace
1587 low-level Ekind test with a high-level wrapper.
1589 2019-07-09 Arnaud Charlet <charlet@adacore.com>
1591 * libgnat/s-memory.adb: Disable calls to Abort defer/undefer
1592 when ZCX_By_Default.
1594 2019-07-09 Javier Miranda <miranda@adacore.com>
1596 * sem_ch13.adb (Rep_Item_Too_Early): Representation clauses are
1597 not allowed for a derivation of a generic type. Extend the
1598 current test to check that none of the parents is a generic
1601 2019-07-09 Hristian Kirtchev <kirtchev@adacore.com>
1603 * exp_ch9.adb, exp_util.adb, repinfo.adb, sem_ch12.adb,
1604 sem_prag.adb, sem_res.adb, sem_spark.adb, sem_util.adb: Minor
1607 2019-07-09 Ed Schonberg <schonberg@adacore.com>
1609 * sem_res.adb (Resolve_Equality_Op): If the node was overloaded,
1610 set properly the entity to which the node has been resolved. The
1611 original entity is the first one found during analysis, and is
1612 not necessarily the resolved one.
1613 (Resolve_Op_Not): If the argument of negation is an overloaded
1614 equality operation, call its resolution directly given that the
1615 context type does not participate in overload resolution.
1617 2019-07-09 Hristian Kirtchev <kirtchev@adacore.com>
1619 * bindo.adb: Remove with and use clauses for Debug. Add with
1620 and use clauses for Opt.
1621 (Find_Elaboration_Order): Enable the v4.0 elaboration order. The
1622 v3.0 mechanism is now available under binder switch -H.
1623 * bindusg.adb (Display): Enable switch -H.
1624 * debug.adb: Free compiler switch -gnatd_G. Free binder switch
1626 * sem_elab.adb: Update the section on switches to remove
1628 (Invocation_Graph_Recording_OK): The invocation graph is now
1629 unconditionally recorded in ALI files.
1630 * switch-b.adb (Scan_Binder_Switches): Scan switch -H.
1631 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
1632 Update the documentation on compiler switches related to
1633 elaboration. Update the documentation on binder switches to
1635 * doc/gnat_ugn/elaboration_order_handling_in_gnat.rst: Update
1636 the documentation on elaboration order handling in GNAT.
1637 * gnat_ugn.texi: Regenerate.
1639 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
1641 * repinfo.adb (List_Entities): Disregard formals altogether.
1642 (List_Name): Properly escape the double quote in the JSON
1645 2019-07-09 Javier Miranda <miranda@adacore.com>
1647 * exp_util.adb (Remove_Side_Effects): Preserve the
1648 Do_Range_Check flag.
1650 2019-07-09 Yannick Moy <moy@adacore.com>
1652 * sinfo.ads: Refine comment for Do_Range_Check.
1654 2019-07-09 Yannick Moy <moy@adacore.com>
1656 * exp_spark.adb (Expand_SPARK_N_Attribute_Reference): Expand
1657 attribute reference on Enum_Rep.
1659 2019-07-09 Ed Schonberg <schonberg@adacore.com>
1661 * sem_ch12.adb (Instantiate_Formal_Package): Handle properly the
1662 case where the actual for a formal package in an instance is the
1663 current instance of an enclosing generic package.
1664 (Check_Formal_Packages): If the formal package declaration is
1665 box-initialized or lacks associations altogether, no internal
1666 instance was created to verify conformance, and there is no
1667 validating package to remove from tree.
1669 2019-07-09 Yannick Moy <moy@adacore.com>
1671 * freeze.adb (Build_Renamed_Body): Do not set body to inline in
1674 2019-07-09 Yannick Moy <moy@adacore.com>
1676 * exp_util.adb (Expand_Subtype_From_Expr): Still expand the type
1677 of static expressions in GNATprove_Mode.
1678 * sem_ch3.adb (Analyze_Object_Declaration): Remove obsolete
1679 special case for GNATprove_Mode.
1681 2019-07-09 Piotr Trojanek <trojanek@adacore.com>
1683 * doc/gnat_rm/the_gnat_library.rst,
1684 doc/gnat_ugn/building_executable_programs_with_gnat.rst,
1685 erroutc.adb, libgnat/g-comlin.adb, libgnat/g-comlin.ads,
1686 libgnat/g-regexp.ads, libgnat/g-regpat.ads,
1687 libgnat/g-spipat.ads, libgnat/s-os_lib.ads,
1688 libgnat/s-regexp.ads: Reword "wild card" to "wildcard".
1689 * gnat_rm.texi, gnat_ugn.texi: Regenerate.
1691 2019-07-09 Yannick Moy <moy@adacore.com>
1693 * sem_spark.adb (Check_Expression): Handle correctly implicit
1694 assignments as part of allocators and (extension) aggregates.
1695 (Get_Root_Object): Adapt for new path expressions.
1696 (Is_Path_Expression): Return True for (extension) aggregate.
1698 2019-07-09 Piotr Trojanek <trojanek@adacore.com>
1700 * einfo.ads: Fix a typo.
1702 2019-07-09 Ed Schonberg <schonberg@adacore.com>
1704 * sem_util.adb (Scope_Within_Or_Same): Handle properly task
1705 bodies and protected bodies, so that local variables within have
1706 their proper scopes after these constructs have been rewritten
1707 during expansion. This patch resembles but is not identical to
1708 the code in Scope_Within.
1710 2019-07-09 Arnaud Charlet <charlet@adacore.com>
1712 * gnat1drv.adb (Adjust_Global_Switches): Set
1713 Dynamic_Elaboration_Checks to True in CodePeer mode.
1715 2019-07-09 Yannick Moy <moy@adacore.com>
1717 * sem_spark.adb (Get_Perm_Or_Tree): Issue an error when
1718 encountering unknown global variable.
1720 2019-07-09 Yannick Moy <moy@adacore.com>
1722 * sem_spark.adb (Check_Expression): Change signature to take an
1723 Extended_Checking_Mode, for handling read permission checking of
1724 sub-expressions in an assignment.
1725 (Check_Parameter_Or_Global): Adapt to new behavior of
1726 Check_Expression for mode Assign.
1727 (Check_Safe_Pointers): Do not analyze generic bodies.
1728 (Check_Assignment): Separate checking of the target of an
1731 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
1733 * repinfo.ads (JSON format): Adjust.
1734 * repinfo.adb (Need_Blank_Line): Rename to...
1735 (Need_Separator): ...this.
1736 (Blank_Line): Rename to...
1737 (Write_Separator): ...this and add JSON specific handling.
1738 (List_Array_Info): Adjust to above renaming.
1739 (List_Object_Info): Likewise.
1740 (List_Record_Info): Likewise.
1741 (List_Subprogram_Info): Likewise.
1742 (List_Type_Info): Likewise.
1743 (List_Entities): Do not set Need_Blank_Line.
1744 (List_Rep_Info): Set Need_Separator and add JSON specific
1745 handling. Output a single JSON stream in the normal case.
1747 2019-07-09 Arnaud Charlet <charlet@adacore.com>
1749 * doc/gnat_ugn/the_gnat_compilation_model.rst: Update doc on
1750 -fdump-ada-spec now that we generate Ada 2012.
1751 * gnat_ugn.texi: Regenerate.
1753 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
1755 * repinfo.adb (List_Common_Type_Info): New procedure extracted
1757 (List_Type_Info): ...here. Call it for the common information,
1758 start with a blank line and output the linker section at the
1760 (List_Mechanisms): Rename to...
1761 (List_Subprogram_Info): ...this.
1762 (List_Array_Info): Call List_Common_Type_Info.
1763 (List_Entities): Adjust to above change and renaming.
1764 (List_Record_Info): Call List_Common_Type_Info.
1766 2019-07-08 Dmitriy Anisimkov <anisimko@adacore.com>
1768 * libgnat/g-sercom.ads
1769 (Serial_Port_Descriptor): New type.
1770 (Serial_Port): Add a comment, make it hold a
1771 Serial_Port_Descriptor.
1772 (To_Ada, To_C): New procedures.
1773 (Port_Data, Port_Data_Access): Remove types.
1774 * libgnat/g-sercom.adb (To_Ada): New stub.
1775 * libgnat/g-sercom__linux.adb, libgnat/g-sercom__mingw.adb:
1776 Update implementations accordingly.
1777 * s-oscons-tmplt.c: Bind Serial_Port_Descriptor to
1778 System.Win32.HANDLE on Windows, and to Interfaces.C.int on
1779 Linux. Add "Interfaces.C." prefix for other basic integer type
1781 * xoscons.adb (Output_Info): Remove the "Interfaces.C." prefix
1782 for subtypes generation.
1784 2019-07-08 Arnaud Charlet <charlet@adacore.com>
1786 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
1787 Update documentation on No_Exceptions restriction.
1788 * gnat_rm.texi: Regenerate.
1790 2019-07-08 Dmitriy Anisimkov <anisimko@adacore.com>
1792 * libgnat/s-os_lib.adb: Do not call __gnat_kill for Invalid_Pid.
1794 2019-07-08 Piotr Trojanek <trojanek@adacore.com>
1796 * sem_util.adb (Enclosing_Package_Or_Subprogram): Do not expect
1797 package and subprogram bodies.
1799 2019-07-08 Bob Duff <duff@adacore.com>
1801 * doc/gnat_ugn/gnat_utility_programs.rst: Remove documentation
1802 of ignored GNATpp switch.
1804 2019-07-08 Hristian Kirtchev <kirtchev@adacore.com>
1806 * doc/gnat_rm/implementation_defined_pragmas.rst:
1807 Update the documentation of pragma Initialize_Scalars.
1808 * gnat_rm.texi: Regenerate.
1810 2019-07-08 Javier Miranda <miranda@adacore.com>
1812 * exp_ch4.adb (Tagged_Membership): Fix regression silently
1813 introduced in r260738 that erroneouslusy causes the evaluation
1814 to True of the membership test when the left operand of the
1815 membership test is a class-wide interface object and the right
1816 operand is a type that implements such interface type.
1818 2019-07-08 Hristian Kirtchev <kirtchev@adacore.com>
1820 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not
1821 register an address clause when its prefix denotes a generic
1824 2019-07-08 Hristian Kirtchev <kirtchev@adacore.com>
1826 * bindo-diagnostics.adb (Diagnose_Cycle): Capture the presence
1827 of an Elaborate_All edge before iterating over the edges of the
1829 (Output_Elaborate_Body_Transition): Update the parameter profile
1830 and the comment on usage. Add a missing case where the edge is
1831 within the context of an Elaborate_All.
1832 (Output_Transition): Update the call to
1833 Output_Elaborate_Body_Transition.
1834 * bindo-graphs.ads, bindo-graphs.adb
1835 (Contains_Elaborate_All_Edge): New routine.
1837 2019-07-08 Piotr Trojanek <trojanek@adacore.com>
1839 * lib-xref-spark_specific.adb (Create_Heap): Set dummy Etype for
1840 the fake __HEAP entity.
1842 2019-07-08 Daniel Mercier <mercier@adacore.com>
1844 * gnat1drv.adb: Suppress warnings on memory representation in
1845 CodePeer compiler mode.
1847 2019-07-08 Nicolas Roche <roche@adacore.com>
1849 * rtinit.c (__gnat_runtime_initialize): Remove dependency on
1852 2019-07-08 Doug Rupp <rupp@adacore.com>
1854 * Makefile.rtl: Handle vxworks7r2 in x86_64 and x86 vxworks7.
1856 2019-07-08 Dmitriy Anisimkov <anisimko@adacore.com>
1858 * Makefile.rtl: Use g-sercom__linux.adb for all linuxes.
1860 2019-07-08 Yannick Moy <moy@adacore.com>
1862 * expander.adb (Expand): Do not reset Analyzed flag always.
1863 * sem_eval.adb (Fold_Ureal): Mark node as analyzed.
1865 2019-07-08 Ed Schonberg <schonberg@adacore.com>
1867 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not insert twice
1868 the assignment statement that computes the delay value, to
1869 prevent improper tree sharing when the value is a type
1870 conversion and Float_Overflow checks are enabled.
1872 2019-07-08 Hristian Kirtchev <kirtchev@adacore.com>
1874 * bindo.adb: Update the section on terminology to include new
1875 concepts. Update the section on switches to include new
1877 * bindo.ads: Add type Precedence_Kind.
1878 * bindo-builders.adb: Add with and use clauses for Debug and
1879 Bindo.Validators. Add use clauses for
1880 Bindo.Validators.Invocation_Graph_Validators and
1881 Bindo.Validators.Library_Graph_Validators.
1882 (Build_Invocation_Graph): Validate the graph immediately after
1884 (Build_Library_Graph): Update the parameter profile. The
1885 creation of the graph is now elaboration model-agnostic.
1886 Validate the graph immediately after it was built.
1887 (Create_With_Edge): Create regular with edges for Elaborate and
1888 Elaborate_All edges when the appropriate debug switches are in
1890 * bindo-builders.ads (Build_Library_Graph): Update the parameter
1892 * bindo-diagnostics.adb (Diagnose_Cycle): Track the presence of
1893 an Elaborate_All edge throughout the inspection of the cycle's
1895 (Output_Dynamic_Model_Suggestions): Output the suggestion only
1896 when the cycle contains at least one weak edge where the
1897 successor was statically elaborated.
1898 (Output_Elaborate_Body_Transition, Output_Forced_Transition,
1899 Output_With_Transition): Update the assertions.
1900 * bindo-elaborators.adb: Remove use clauses for
1901 Bindo.Validators.Invocation_Graph_Validators and
1902 Bindo.Validators.Library_Graph_Validators. Remove strings
1903 Add_To_All_Candidates_Msg and Add_To_Comp_Candidates_Msg.
1904 Remove type String_Ptr.
1905 (Add_Vertex, Add_Vertex_If_Elaborable, Create_All_Candidates_Set
1906 Create_Component_Candidates_Set): Remove.
1907 (Create_Component_Vertex_Sets, Create_Vertex_Sets): New routine.
1908 (Elaborate_Component): Update the parameter profile and the
1909 comment on usage. Reimplement the elaboration of a component.
1910 The algorithm will now attempt to elaborate as many vertices
1911 possible. If this is not possible, and a weakly elaborable
1912 vertex is available use unit was compiled using the dynamic
1913 model, the algorithm will elaborate it.
1914 (Elaborate_Library_Graph): Reimplement the elaboration of the
1915 graph. The algorithm will now attempt to elaborate as many
1916 vertices along with their components as possible. If this is not
1917 possible, and a weakly elaborable vertex is available use unit
1918 was compiled using the dynamic model, the algorithm will
1919 elaborate it along with its component.
1920 (Elaborate_Units): Merge with the functionality of
1921 Elaborate_Units_Common.
1922 (Elaborate_Units_Common, Elaborate_Units_Dynamic,
1923 Elaborate_Units_Static): Remove.
1924 (Elaborate_Vertex): Update the parameter profile and the comment
1925 on usage. Reimplemented.
1926 (Find_Best_Candidate): Remove.
1927 (Find_Best_Elaborable_Vertex, Find_Best_Vertex,
1928 Find_Best_Weakly_Elaborable_Vertex, Has_Elaborable_Body,
1929 Insert_Elaborable_Successor, Insert_Vertex): New routines.
1930 (Is_Better_Candidate): Remove.
1931 (Is_Better_Elaborable_Vertex,
1932 Is_Better_Weakly_Elaborable_Vertex,
1933 Is_Suitable_Elaborable_Vertex,
1934 Is_Suitable_Weakly_Elaborable_Vertex): New routines.
1935 (Trace_Candidate_Vertices): Remove.
1936 (Trace_Component): Output the number of strong and weak
1938 (Trace_Unelaborated_Vertices): Remove.
1939 (Trace_Vertex): Output the number of strong and weak
1941 (Trace_Vertices): New routine.
1942 (Update_Successor, Update_Successors): Update the parameter
1943 profile and the comment on usage.
1944 * bindo-graphs.adb: Remove type Precedence_Kind.
1945 (Add_Edge_With_Return): Update the increment of pending
1947 (Add_Vertex): Provide default values for strong and weak
1949 (Complementary_Vertex): Move the initial declaration to the
1950 spec. Update the parameter profile and the comment on usage.
1951 (Contains_Weak_Static_Successor): New routine.
1952 (Create): Update the parameter profile. The creation of the
1953 graph is now elaboration model-agnostic.
1954 (Decrement_Pending_Predecessors): Update the parameter profile
1955 and the comment on usage. Reimplemented.
1956 (Delete_Edge): Update the decrement of pending predecesors.
1957 (Has_Elaborate_Body): Do not treat a vertex as being subject to
1958 Elaborate_Body when a debug switch is in effect.
1959 (Increment_Pending_Predecessors): Update the parameter profile
1960 and the comment on usage. Reimplemented.
1961 (Is_Elaborable_Component): Reimplemented.
1962 (Is_Elaborable_Vertex): Move the initial declaration to the
1963 spec. Reimplemented.
1964 (Is_Elaborate_Body_Pair): New routine.
1965 (Is_Dynamically_Elaborated): Update the parameter profile.
1967 (Is_Weakly_Elaborable_Vertex): New routine.
1968 (Pending_Predecessors): Removed.
1969 (Pending_Predecessors_For_Elaboration,
1970 Pending_Strong_Predecessors, Pending_Weak_Predecessors,
1971 Update_Pending_Predecessors): New routines.
1972 (Update_Pending_Predecessors_Of_Components): Update the
1973 increment of pending predecessors.
1974 * bindo-graphs.ads: Update the components of type
1975 Component_Attributes. Update the components of type
1976 Library_Graph_Attributes. Update the components of type
1977 Library_Graph_Vertex_Attributes. Update the initialization of
1978 No_Component_Attributes. Update the initialization of
1979 No_Library_Graph_Vertex_Attributes.
1980 (Complementary_Vertex, Contains_Weak_Static_Successor): New
1982 (Create): Update the parameter profile and the comment on usage.
1983 (Decrement_Pending_Predecessors, Is_Dynamically_Elaborated):
1984 Update the parameter profile and the comment on usage.
1985 (Is_Elaborate_Body_Pair, Is_Weakly_Elaborable_Vertex): New
1987 (Pending_Predecessors): Removed.
1988 (Pending_Predecessors_For_Elaboration,
1989 Pending_Strong_Predecessors, Pending_Weak_Predecessors): New
1991 * bindo-writers.adb (Write_Components): Moved from the spec.
1992 (Write_Component): Output the strong and weak predecessors.
1993 (Write_Library_Graph): Output the components as part of the
1995 (Write_Library_Graph_Vertex): Output the strong and weak
1997 * bindo-writers.ads (Write_Components): Moved to the body.
1998 * debug.adb: Add and document new GNATbind switches -d_a, -d_b,
2000 * bindo-validators.adb: Minor reformattings.
2002 2019-07-08 Bob Duff <duff@adacore.com>
2004 * libgnat/g-sercom.ads, libgnat/g-sercom__linux.adb (Data_Rate):
2005 Support additional data rates.
2007 2019-07-08 Olivier Hainque <hainque@adacore.com>
2009 * gcc-interface/trans.c (Compilation_Unit_to_gnu): Don't request
2010 DECL_ARTIFICIAL_P on elab proc declarations.
2012 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
2014 * repinfo.adb (List_Record_Info): Declare Incomplete_Layout and
2015 Not_In_Extended_Main local exceptions.
2016 (List_Structural_Record_Layout): For an extension, raise the
2017 former if the parent subtype has not been built and the latter
2018 if it is not declared in the main source unit. Fall back to the
2019 flat layout if either exception has been raised.
2021 2019-07-08 Ed Schonberg <schonberg@adacore.com>
2023 * libgnat/a-strfix.adb (Delete): The RM describes the semantics
2024 of Delete as equivalent to that of Replace_String with a null
2025 argument. As a result, deleting a null string that starts past
2026 the end of its argument is a noop and must not raise
2029 2019-07-08 Javier Miranda <miranda@adacore.com>
2031 * exp_disp.adb (Register_Primitive): When registering a
2032 primitive in the secondary dispatch table, handle primitive
2033 inherited through several levels of type derivation (required to
2034 properly handle inherited 'null' primitive).
2036 2019-07-08 Bob Duff <duff@adacore.com>
2038 * doc/gnat_ugn/gnat_utility_programs.rst: Document handling of
2039 preprocessor directives in GNATpp.
2041 2019-07-08 Javier Miranda <miranda@adacore.com>
2043 * gnat1drv.adb (Post_Compilation_Validation_Checks:
2044 Validate_Compile_Time_Warning_Errors is now located in sem_prag
2045 (instead of sem_ch13).
2046 * sem_ch13.ads (Validate_Compile_Time_Warning_Error,
2047 Validate_Compile_Time_Warning_Errors): Move to sem_prag.
2049 (Compile_Time_Warnings_Errors): Move to sem_prag.
2050 (Initialize): Remove initialization of table
2051 Compile_Time_Warning_Errors.
2052 (Validate_Compile_Time_Warning_Error,
2053 Validate_Compile_Time_Warning_Errors): Move to sem_prag.
2054 * sem_prag.ads (Validate_Compile_Time_Warning_Errors): New
2056 * sem_prag.adb (Initialize): Initialize table
2057 Compile_Time_Warning_Errors.
2059 2019-07-08 Ed Schonberg <schonberg@adacore.com>
2061 * sem_ch13.adb (Analyze_Aspect_Specifications): For a
2062 pre/postcondition of a generic subprogram declaration, do not
2063 use Relocate_Node on the aspect expression to construct the
2064 corresponding attribute specification, to prevent tree anomalies
2065 when the expression is a call with named actual parameters.
2067 2019-07-08 Javier Miranda <miranda@adacore.com>
2069 * sem_attr.adb (Analyze_Attribute [Attribute_Size]): For pragmas
2070 used to report user defined compile time warning or errors
2071 handle 'Size for types with known static RM size.
2073 2019-07-08 Justin Squirek <squirek@adacore.com>
2075 * exp_imgv.adb (Build_Enumeration_Image_Tables): Default SSO for
2076 the building of image tables.
2077 (Expand_Image_Attribute): Minor cleanup.
2079 2019-07-08 Dmitriy Anisimkov <anisimko@adacore.com>
2081 * libgnat/g-socket.ads, libgnat/g-socket.adb: Improve
2083 (Get_Socket_Option, Set_Socket_Option): Remove default value for
2086 2019-07-08 Ed Schonberg <schonberg@adacore.com>
2088 * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): For an
2089 unanalized aspect in a generic context that has not been
2090 analyzed yet, if the aspect applies to a type, place the type on
2091 the scope stack to make its components visible, before checking
2092 conformance with the version of the expression analyzed at the
2095 2019-07-05 Justin Squirek <squirek@adacore.com>
2097 * checks.adb (Apply_Accessibility_Check): Add logic to fetch the
2098 function result accessibility level if one is required within
2099 the generated check.
2100 * exp_ch6.adb (Needs_Result_Accessibility_Level): Modify
2101 controlling elsif block to handle more cases such as anonymous
2102 access results and disable checking for coextensions.
2104 2019-07-05 Ed Schonberg <schonberg@adacore.com>
2106 * sem_ch9.adb (Analyze_Accept_Statement): If this is an illegal
2107 accept statement for an enclosing entry abandon analysis to
2108 prevent scope mismatches and potential infinite loops in
2111 2019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
2113 * ali.adb (For_Each_Invocation_Construct,
2114 For_Each_Invocation_Relation): New version.
2115 (Scan_ALI): Initialize field Invocation_Graph_Encoding.
2116 (Set_Invocation_Graph_Encoding): Update the setting of the
2117 invocation graph encoding.
2118 * ali.ads: Move field Invocation_Graph_Encoding from Unit_Record
2119 to ALI_Record because the encoding applies to the whole ALI,
2120 rather than one of the units (spec or body) for which the ALI
2122 (For_Each_Invocation_Construct, For_Each_Invocation_Relation):
2124 * bindo.adb: Update the section on switches. Complete the
2125 section of debugging elaboration order issues.
2126 (Find_Elaboration_Order): Prepare the routine for the switch
2127 from the old to the new elaboration order mechanism.
2128 * bindo-diagnostics.adb (Find_And_Output_Invocation_Paths):
2129 Manage a visited set used by Visit_Vertex.
2130 (Output_All_Cycles_Suggestions,
2131 Output_Dynamic_Model_Suggestions): Clarify the nature of the
2133 (Output_Elaborate_Body_Transition): Update the diagnostic to
2134 emit a better message.
2135 (Output_Forced_Suggestions, Output_Full_Encoding_Suggestions):
2136 Clarify the nature of the suggested switch.
2137 (Visit_Vertex): Update the parameter profile to add a set of
2138 invokers visited during the transition. This set prevents
2139 infinite exploration of the graph in case the invocations are
2141 * bindo-elaborators.adb: Add a use clause for
2142 Bindo.Writers.Dependency_Writers.
2143 (Elaborate_Units_Common): Output the library graph after it has
2144 been augmented with invocation edges. Output just the components
2145 instead of outputting the whole library graph again.
2146 (Elaborate_Units_Dynamic, Elaborate_Units_Static): Output the
2147 dependencies as expressed in the library graph.
2148 * bindo-units.adb (Invocation_Graph_Encoding): Update the
2149 extraction of the invocation graph encoding.
2150 * bindo-writers.adb: Add with and use clauses for Binderr and
2152 (palgc, plgc): New debug routine.
2153 (Write_Components): Moved to the spec. Add a header for the
2155 (Write_Dependencies, Write_Dependencies_Of_Vertex,
2156 Write_Dependency_Edge): New routine.
2157 (Write_Elaboration_Order): Update the logic to follow the format
2158 of Binde's order output.
2159 (Write_Library_Graph): Do not output the components every time
2160 the graph is written.
2161 (Write_Unit): Output the invocation graph encoding of the unit.
2162 Output the invocation constructs and relations for the unit
2164 * bindo-writers.ads (Write_Components): Moved from the body.
2165 (Write_Dependencies): New routine.
2166 * bindusg.adb: Prepare the routine for the switch from the old
2167 to the new elaboration order mechanism.
2168 * debug.adb: Binder switch -d_O is now not associated with any
2170 * einfo.adb (Is_Elaboration_Target): The attribute applies to
2171 packages, as specified by the comment on the attribute usage.
2172 * opt.ads: Add a global flag which controls the choice between
2173 the new and the legacy elaboration order mechanism.
2174 * sem_elab.adb: Add Package_Target to type Target_Kind.
2175 (Build_Elaborate_Body_Procedure, Build_Elaborate_Procedure,
2176 Build_Elaborate_Spec_Procedure, Check_Elaboration_Scenarios,
2177 Check_SPARK_Model_In_Effect): Use Main_Unit_Entity to obtain the
2178 entity of the main unit.
2179 (Create_Package_Rep): New routine.
2180 (Create_Target_Rep): Add processing for packages.
2181 (Declaration_Placement_Of_Node, Has_Prior_Elaboration): Use
2182 Main_Unit_Entity to obtain the entity of the main
2184 (Invocation_Graph_Recording_OK): Prepare the routine for the
2185 switch from the old to the new elaboration order mechanism.
2186 (Main_Unit_Entity): New routine.
2187 (Meet_Elaboration_Requirement,
2188 Process_Conditional_ABE_Variable_Reference): Use
2189 Main_Unit_Entity to obtain the entity of the main unit.
2190 (Process_Invocation_Instantiation): New routine.
2191 (Process_Invocation_Scenario): Add processing for
2193 * switch-b.adb (Scan_Binder_Switches): Prepare the routine for
2194 the switch from the old to the new elaboration order mechanism.
2196 2019-07-05 Joffrey Huguet <huguet@adacore.com>
2198 * libgnat/a-textio.adb: Add abstract state refinment.
2199 * libgnat/a-textio.ads: Add File_System abstract state. Add
2200 global contracts, contract cases, preconditions and
2201 postconditions to procedures and functions.
2202 (Set_Input, Set_Output, Set_Error, Standard_Input,
2203 Standard_Output, Standard_Error, Current_Input, Current_Output,
2204 Current_Error): Turn SPARK_Mode off.
2205 (Get_Line): Turn SPARK_Mode off on Get_Line functions.
2206 * libgnat/a-tideio.ads, libgnat/a-tienio.ads,
2207 libgnat/a-tifiio.ads, libgnat/a-tiflio.ads,
2208 libgnat/a-tiinio.ads, libgnat/a-timoio.ads: Add global
2209 contracts, contract cases, preconditions and postconditions to
2210 procedures and functions.
2212 2019-07-05 Arnaud Charlet <charlet@adacore.com>
2214 * doc/gnat_ugn/platform_specific_information.rst: Refresh doc on
2215 installing from the command line on Windows. Remove obsolete
2217 * gnat_ugn.texi: Regenerate.
2219 2019-07-05 Vasiliy Fofanov <fofanov@adacore.com>
2221 * libgnat/a-wichha.ads (Is_Alphanumeric): Replace comment with
2222 the correct one. Also capitalize references to False
2225 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
2227 * exp_ch4.adb (Expand_N_Indexed_Component): Do not expand actual
2228 parameters of function calls here either.
2230 2019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
2232 * bindo-units.adb, checks.adb, exp_attr.adb, exp_ch3.adb,
2233 exp_ch4.adb, exp_pakd.adb, lib-writ.adb, libgnat/g-traceb.adb,
2234 libgnat/g-traceb.ads, libgnat/s-stratt.ads, sem_aux.ads,
2235 sem_util.adb: Minor reformatting.
2237 2019-07-05 Ed Schonberg <schonberg@adacore.com>
2239 * sem_ch13.adb (Build_Predicate_Functions): If a subtype that
2240 carries a static predicate aspect is frozen immediately after
2241 its declaration, ensure that the generated function body created
2242 for predicate checking is inserted after the corresponding
2243 subprogram declaration, which is created at the point the
2244 declaration is elaborated.
2246 2019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
2248 * exp_ch7.adb (Cleanup_Record): Use the underlying type when
2249 checking for components with tasks.
2251 2019-07-05 Arnaud Charlet <charlet@adacore.com>
2253 * libgnarl/s-osinte__linux.ads: Link with -lrt before -lpthread.
2255 2019-07-05 Ed Schonberg <schonberg@adacore.com>
2257 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Add explicit
2258 range checks when the index type of the bit-packed array is an
2259 enumeration type with a non-standard representation,
2261 2019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
2263 * sem_res.adb (Is_Control_Flow_Statement): Delay statements
2264 contain an expression, which in turn may have side effects and
2265 affect the infinite recursion. As a result, delay statements
2266 should not be treated specially.
2268 2019-07-05 Arnaud Charlet <charlet@adacore.com>
2270 * libgnarl/s-linux.ads, libgnarl/s-linux__alpha.ads,
2271 libgnarl/s-linux__android.ads, libgnarl/s-linux__hppa.ads,
2272 libgnarl/s-linux__mips.ads, libgnarl/s-linux__riscv.ads,
2273 libgnarl/s-linux__sparc.ads: Fix typos in comments.
2275 2019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
2277 * sem_res.adb (Check_Infinite_Recursion): Reimplemented.
2278 (Enclosing_Declaration_Or_Statement,
2279 Invoked_With_Different_Arguments, Is_Conditional_Statement,
2280 Is_Control_Flow_Statement, Is_Immediately_Within_Body,
2281 Is_Raise_Idiom, Is_Raise_Statement, Is_Sole_Statement,
2282 Preceded_By_Control_Flow_Statement,
2283 Within_Conditional_Statement): New routines.
2285 2019-07-05 Javier Miranda <miranda@adacore.com>
2287 * exp_ch4.adb (Expand_N_Type_Conversion): Do not apply an
2288 accessibility check when the conversion is an access to
2289 class-wide interface type and it is an actual parameter.
2290 * exp_ch6.adb (Expand_Call_Helper): Add documentation on the
2291 accessibility level of an anonymous allocator defining the value
2292 of an access parameter.
2293 * sem_util.ads, sem_util.adb (Dynamic_Accessibility_Level): Add
2294 support for an anonymous allocator whose type is that of a
2295 stand-alone object of an anonymous access to object type.
2297 2019-07-05 Piotr Trojanek <trojanek@adacore.com>
2299 * einfo.ads, sem_res.adb: Typo fixes in comments.
2301 2019-07-05 Bob Duff <duff@adacore.com>
2303 * exp_ch6.adb (Is_Build_In_Place_Function): Narrow the check for
2304 Has_Foreign_Convention to the imported case only. If a
2305 build-in-place function is exported, and called from Ada code,
2306 build-in-place protocols should be used.
2308 2019-07-05 Ed Schonberg <schonberg@adacore.com>
2310 * sem_util.adb (Encloing_Subprogram): If Enclosing_Dynamic_Scope
2311 is a loop, continue climbing the scope stack to find the
2312 enclosing subprogram.
2313 (Gather_Components): Handle properly a choice in a record
2314 aggregate that is given by a subtype with a static predicate.
2316 2019-07-05 Javier Miranda <miranda@adacore.com>
2318 * debug.adb (-gnatd.K): Leave available this switch.
2319 * contracts.adb (Build_And_Analyze_Contract_Only_Subprograms):
2321 * scil_ll.ads, scil_ll.adb (Contract_Only_Body_Flag,
2322 Contract_Only_Body_Nodes, Get_Contract_Only_Body,
2323 Is_Contract_Only_Body, Set_Contract_Only_Body): Remove.
2325 2019-07-05 Pierre-Marie de Rodat <derodat@adacore.com>
2327 * libgnat/a-strunb.ads: Import documentation from the RM
2329 2019-07-05 Pierre-Marie de Rodat <derodat@adacore.com>
2331 * libgnat/a-strfix.ads: Import documentation from the RM
2333 2019-07-05 Yannick Moy <moy@adacore.com>
2335 * adabkend.adb (Scan_Back_End_Switches): Accept -Og and -Ofast
2338 2019-07-05 Hristian Kirtchev <kirtchev@adacore.com>
2340 * ali.adb: Relocate types Invocation_Construct_Record,
2341 Invocation_Relation_Record, and Invocation_Signature_Record to
2342 the body of ALI. Relocate tables Invocation_Constructs,
2343 Invocation_Relations, and Invocation_Signatures to the body of
2344 ALI. Remove type Body_Placement_Codes. Add new types
2345 Declaration_Placement_Codes, and
2346 Invocation_Graph_Encoding_Codes. Update the literals of type
2347 Invocation_Graph_Line_Codes.
2348 (Add_Invocation_Construct): Update the parameter profile. Add an
2349 invocation construct built from all attributes provided.
2350 (Add_Invocation_Relation): Update the parameter profile. Add an
2351 invocation relation built from all attributes provided.
2352 (Body_Placement): New routine.
2353 (Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind):
2355 (Code_To_Declaration_Placement_Kind,
2356 Code_To_Invocation_Graph_Encoding_Kind, Column,
2357 Declaration_Placement_Kind_To_Code, Extra,
2358 For_Each_Invocation_Construct, For_Each_Invocation_Relation,
2359 Invocation_Graph_Encoding,
2360 Invocation_Graph_Encoding_Kind_To_Code, Invoker, Kind, Line,
2361 Locations, Name): New routine.
2362 (Scan_Invocation_Construct_Line): Reimplement the scanning
2364 (Scan_Invocation_Graph_Attributes_Line): New routine.
2365 (Scan_Invocation_Graph_Line): Use a case statement to dispatch.
2366 (Scan_Invocation_Relation_Line): Reimplement the scanning
2368 (Scope): New routine.
2369 (Set_Invocation_Graph_Encoding, Signature, Spec_Placement,
2370 Target): New routine.
2371 * ali.ads: Add new type Invocation_Graph_Encoding_Kind. Add
2372 component Invocation_Graph_Encoding to type Unit_Record.
2373 Relocate various types and data structures to the body of ALI.
2374 (Add_Invocation_Construct, Add_Invocation_Relation): Update the
2376 (Body_Placement): New routine.
2377 (Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind):
2379 (Code_To_Declaration_Placement_Kind,
2380 Code_To_Invocation_Graph_Encoding_Kind, Column,
2381 Declaration_Placement_Kind_To_Code, Extra,
2382 For_Each_Invocation_Construct, For_Each_Invocation_Relation,
2383 Invocation_Graph_Encoding,
2384 Invocation_Graph_Encoding_Kind_To_Code, Invoker, Kind, Line,
2385 Locations, Name, Scope, Set_Invocation_Graph_Encoding,
2386 Signature, Spec_Placement, Target): New routine.
2387 * bindo.adb: Add with clause for Binde. Add with and use
2388 clauses for Debug. Update the documentation. Add new switches.
2389 (Find_Elaboration_Order): Dispatch to the proper elaboration
2391 * bindo-augmentors.adb:
2392 Remove with and use clauses for GNAT and GNAT.Sets. Remove
2393 membership set VS. Update the parameter profiles of most
2394 routines to use better parameter names. Update the
2395 implementation of most routine to use the new parameter names.
2396 Remove various redundant assertions.
2397 * bindo-builders.adb: Use better names for instantiated data
2398 structures. Update all references to these names. Update the
2399 parameter profiles of most routines to use better parameter
2400 names. Update the implementation of most routine to use the new
2402 (Build_Library_Graph): Update the parameter profile. Update the
2404 (Create_Vertex): Reimplemented.
2405 (Declaration_Placement_Vertex): New routine.
2406 * bindo-builders.ads (Build_Library_Graph): Update the parameter
2407 profile and comment on usage.
2408 * bindo-diagnostics.adb: Almost a new unit.
2409 * bindo-diagnostics.ads: Add a use clause for
2410 Bindo.Graphs.Invocation_Graphs. Remove package
2412 (Diagnose_Circularities): New routine.
2413 * bindo-elaborators.adb: Remove the with and use clauses for
2414 Binderr and GNAT.Sets. Remove the use clause for
2415 Bindo.Diagnostics.Cycle_Diagnostics. Remove membership set VS.
2416 Update the parameter profiles of most routines to use better
2417 parameter names. Update the implementation of most routine to
2418 use the new parameter names. (Elaborate_Units_Common): Update
2419 the parameter profile. Pass an infication to the library graph
2420 builder whether the dynamic model is in effect.
2421 (Elaborate_Units_Dynamic, Elaborate_Units_Static): Use
2422 Diagnose_Circularities to provide diagnostics.
2423 (Update_Successor): Use routine In_Same_Component to determine
2424 whether the predecessor and successor reside in different
2426 * bindo-graphs.adb: Add with and use clauses for Butil, Debug,
2427 Output, and Bindo.Writers. Remove with and use clauses for
2428 GNAT.Lists. Update the parameter profiles of most routines to
2429 use better parameter names. Update the implementation of most
2430 routine to use the new parameter names. Remove various
2431 redundant assertions. Remove doubly linked list EL. Add new
2432 type Precedence_Kind.
2433 (Add_Cycle): New routine.
2434 (Add_Vertex): Update the parameter profile. Update the creation
2435 of vertex attributes.
2436 (Add_Vertex_And_Complement, Body_Vertex, Column,
2437 Complementary_Vertex, Copy_Cycle_Path, Cycle_Kind_Of): New
2439 (Destroy_Invocation_Graph_Edge, Destroy_Library_Graph_Cycle,
2440 Destroy_Library_Graph_Edge, Extra, File_Name,
2441 Find_All_Cycles_Through_Vertex, Find_All_Cycles_With_Edge,
2442 Find_Cycles, Find_First_Lower_Precedence_Cycle,
2443 Get_LGC_Attributes, Has_Next, Hash_Library_Graph_Cycle,
2444 Hash_Library_Graph_Cycle_Attributes, Highest_Precedence_Cycle,
2445 Highest_Precedence_Edge, In_Same_Component, Insert_And_Sort,
2446 Invocation_Edge_Count, Invocation_Graph_Encoding,
2447 Is_Cycle_Initiating_Edge, Is_Cyclic_Edge,
2448 Is_Cyclic_Elaborate_All_Edge, Is_Cyclic_Elaborate_Body_Edge,
2449 Is_Cyclic_Elaborate_Edge, Is_Cyclic_Forced_Edge,
2450 Is_Cyclic_Invocation_Edge, Is_Cyclic_With_Edge,
2451 Is_Dynamically_Elaborated, Is_Elaborate_All_Edge,
2452 Is_Elaborate_Body_Edge, Is_Elaborate_Edge: New routines.
2453 (Is_Existing_Predecessor_Successor_Relation): Removed.
2454 (Is_Forced_Edge, Is_Invocation_Edge, Is_Recorded_Cycle,
2455 Is_Recorded_Edge, Is_With_Edge, Iterate_Edges_Of_Cycle, Kind,
2456 Length): New routine.
2457 (Lib_Vertex): Removed.
2458 (Line, Links_Vertices_In_Same_Component,
2459 Maximum_Invocation_Edge_Count, Next, Normalize_And_Add_Cycle,
2460 Normalize_Cycle_Path, Number_Of_Cycles, Path, Precedence,
2461 Remove_Vertex_And_Complement, Sequence_Next_Cycle): New routines.
2462 (Sequence_Next_IGE_Id): Renamed to Sequence_Next_Edge.
2463 (Sequence_Next_IGV_Id): Renamed to Sequence_Next_Vertex.
2464 (Sequence_Next_LGE_Id): Renamed to Sequence_Next_Edge.
2465 (Sequence_Next_LGV_Id): Renamed to Sequence_Next_Vertex.
2466 (Set_Is_Existing_Predecessor_Successor_Relation): Removed.
2467 (Set_Is_Recorded_Cycle, Set_Is_Recorded_Edge,
2468 Set_LGC_Attributes, Spec_Vertex, Trace_Cycle, Trace_Edge,
2469 Trace_Eol, Trace_Vertex): New routines.
2470 * bindo-graphs.ads: Add with and use clauses for Types and
2471 GNAT.Lists. Update the parameter profiles of most routines to
2472 use better parameter names. Update the implementation of most
2473 routine to use the new parameter names. Add the new
2474 instantiated data structures IGE_Lists, IGV_Sets, LGC_Lists,
2475 LGE_Lists, LGE_Sets, LGV_Sets, and RC_Sets. Add new type
2476 Library_Graph_Cycle_Id along with an empty and initial value.
2477 Remove component Lib_Vertex and add new components Body_Vertex
2478 and Spec_Vertex to type Invocation_Graph_Vertex_Attributes. Add
2479 new type Library_Graph_Cycle_Kind. Add new iterators
2480 All_Cycle_Iterator and Edges_Of_Cycle_Iterator. Add new type
2481 Library_Graph_Cycle_Attributes. Add new components
2482 Cycle_Attributes, Cycles, and Dynamically_Elaborated to type
2483 Library_Graph_Attributes.
2484 (Body_Vertex, Column, Destroy_Invocation_Graph_Edge,
2485 Destroy_Library_Graph_Cycle_Attributes,
2486 Destroy_Library_Graph_Edge, Extra, File_Name, Find_Cycles,
2487 Has_Elaborate_All_Cycle, Has_Next, Hash_Library_Graph_Cycle,
2488 Hash_Library_Graph_Cycle_Attributes, Highest_Precedence_Cycle,
2489 In_Same_Component, Invocation_Edge_Count,
2490 Invocation_Graph_Encoding, Is_Dynamically_Elaborated,
2491 Is_Elaborate_All_Edge, Is_Elaborate_Body_Edge,
2492 Is_Elaborate_Edge, Is_Forced_Edge, Is_Invocation_Edge,
2493 Is_With_Edge, Iterate_All_Cycles, Iterate_Edges_Of_Cycle, Kind):
2495 (Length, Lib_Vertex, (Line, Next, Number_Of_Cycles, Present,
2496 Same_Library_Graph_Cycle_Attributes, Spec_Vertex): New routines.
2497 * bindo-units.adb (File_Name, Invocation_Graph_Encoding): New
2499 * bindo-units.ads: Add new instantiated data structure
2501 (File_Name, Invocation_Graph_Encoding): New routine.
2502 * bindo-validators.adb: Remove with and use clauses for GNAT and
2503 GNAT.Sets. Remove membership set US. Update the parameter
2504 profiles of most routines to use better parameter names. Update
2505 the implementation of most routine to use the new parameter
2507 (Validate_Cycle, Validate_Cycle_Path, Validate_Cycles,
2508 Validate_Invocation_Graph_Vertex): Remove the validation of
2509 component Lib_Vertex. Add the validation of components
2510 Body_Vertex and Spec_Vertex.
2511 (Write_Error): New routine.
2512 * bindo-validators.ads (Validate_Cycles): New routine.
2513 * bindo-writers.adb: Update the parameter profiles of most
2514 routines to use better parameter names. Update the
2515 implementation of most routine to use the new parameter names.
2516 (Write_Cycle, Write_Cyclic_Edge, Write_Cycles): New routines.
2517 (Write_Invocation_Graph_Vertex): Remove the output of component
2518 Lib_Vertex. Add the output of components Body_Vertex and
2520 * bindo-writers.ads (Write_Cycles): New routine.
2521 * debug.adb: Use binder switches -d_C and -d_P, add
2522 documentation on their usage.
2523 * gnatbind.adb: Remove with and use clauses for Binde. Delegate
2524 the choice of elaboration mechanism to Bindo.
2525 * lib-writ.adb (Column, Extra, Invoker, Kind, Line, Locations,
2526 Name, Placement, Scope, Signature, Target): Removed.
2527 (Write_Invocation_Graph): Moved at the top level.
2528 (Write_Invocation_Graph_Attributes): New routine.
2529 (Write_Invocation_Relation, Write_Invocation_Signature): Moved
2531 * lib-writ.ads: Add a documentation section on invocation graph
2533 * sem_elab.adb (Body_Placement_Of): New routine.
2534 (Declare_Invocation_Construct): Update the call to
2535 Add_Invocation_Construct.
2536 (Declaration_Placement_Of_Node): New routine.
2537 (Get_Invocation_Attributes): Correct the retrieval of the
2538 enclosing subprogram where the postcondition procedure lives.
2539 (Placement_Of, Placement_Of_Node): Removed.
2540 (Record_Invocation_Graph): Record the encoding format used.
2541 (Record_Invocation_Graph_Encoding): New routine.
2542 (Record_Invocation_Relation): Update the call to
2543 Add_Invocation_Relation.
2544 (Spec_Placement_Of): Removed.
2545 * libgnat/g-lists.ads, libgnat/g-lists.adb (Equal): New routine.
2547 2019-07-05 Ed Schonberg <schonberg@adacore.com>
2549 * checks.adb (Apply_Predicate_Check): Except within the
2550 subprogram body that defines the formal, do not apply predicate
2551 check on a formal IN parameter: such a check is redundant and
2552 its expansion can lead to out-of-scope references when it is
2553 originates in a function call in a precondition,
2555 2019-07-05 Yannick Moy <moy@adacore.com>
2557 * sem_res.adb (Resolve_Call): Cannot inline in quantified
2559 * sem_util.adb, sem_util.ads (In_Quantified_Expression): New
2562 2019-07-05 Bob Duff <duff@adacore.com>
2564 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
2566 * gnat_rm.texi: Regenerate.
2568 2019-07-05 Bob Duff <duff@adacore.com>
2570 * exp_attr.adb (Input): Take the No_Stream_Optimizations
2571 restriction into account.
2573 2019-07-05 Claire Dross <dross@adacore.com>
2575 * libgnat/a-cofove.ads, libgnat/a-cofove.adb: Definite formal
2576 vectors are now always bounded so that they do not need to be
2579 2019-07-05 Dmitriy Anisimkov <anisimko@adacore.com>
2581 * libgnat/g-traceb.ads, libgnat/g-traceb.adb (Call_Chain): New
2584 2019-07-04 James Clarke <jrtc27@debian.org>
2586 * libgnarl/s-osinte__kfreebsd-gnu.ads (clockid_t): Make type
2588 (CLOCK_REALTIME): Make value public.
2590 2019-07-04 Javier Miranda <miranda@adacore.com>
2592 * exp_tss.adb (Init_Proc): Adding missing support for access to
2593 subprograms and access to protected subprograms of non-default
2596 2019-07-04 Eric Botcazou <ebotcazou@adacore.com>
2598 * gnat1drv.adb (Adjust_Global_Switches): Use proper interface to
2599 set the validity settings in CodePeer mode.
2600 * par-load.adb (Load): Remove all code dealing with validity
2602 * validsw.ads (Validity_Check_Copies): Alphabetize.
2603 * validsw.adb (Reset_Validity_Check_Options): Set all options to
2605 (Save_Validity_Check_Options): Save all options.
2607 2019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
2609 * exp_ch3.adb, exp_ch4.adb, exp_ch4.ads, exp_ch5.adb,
2610 exp_ch7.adb, exp_ch9.adb, exp_ch11.adb, exp_unst.adb,
2611 rtsfind.ads, sem_attr.adb, sem_ch10.adb, sem_ch12.adb,
2612 sem_ch13.adb, sem_dim.adb, sem_disp.adb, xref_lib.adb: Minor
2615 2019-07-04 Joffrey Huguet <huguet@adacore.com>
2617 * libgnarl/a-taside.ads: Add assertion policy to ignore
2619 (Abort_Task, Is_Terminated, Is_Callable): Add preconditions.
2621 2019-07-04 Eric Botcazou <ebotcazou@adacore.com>
2623 * doc/gnat_rm/implementation_defined_pragmas.rst: Fix
2624 capitalization and parenthesis glitches.
2625 * gnat_rm.texi: Regenerate.
2627 2019-07-04 Ed Schonberg <schonberg@adacore.com>
2629 * sem_ch10.adb (Remove_Context_Clauses): Handle properly the
2630 removal of a limited_with_clause which appears in the library
2631 unit oF the main unit, when some other unit in the context has a
2632 regular with_clause on the same unit, to prevent spurious
2633 visibility errors in the subsequent analysis of pending instance
2636 2019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
2638 * sem_elab.adb: Add new type Elaboration_Phase_Status along with
2639 a global to keep track of the elaboration phase status.
2640 Initialize all internal data structures to Nil for services
2641 Elaborated_Units, Internal_Representation, and Scenario_Storage.
2642 (Build_Call_Marker): Do not create a call marker when the
2643 elaboration phase is not active.
2644 (Build_Variable_Reference_Marker): Do not create a call marker
2645 when the elaboration phase is not active.
2646 (Check_Elaboration_Scenarios): Destroy all internal structures
2647 when the elaboration phase does not have to run. Do not execute
2648 when the elaboration phase is not active.
2649 (Elaboration_Phase_Active): New routine.
2650 (Finalize_All_Data_Structures): New routine.
2651 (Initialize): Initialize all internal data structures and signal
2652 that the elaboration phase has started.
2653 (Initialize_All_Data_Structures): New routine.
2654 (Initialize_Elaborated_Units): Initialize all internal data
2656 (Initialize_Internal_Representation): Initialize all internal
2658 (Initialize_Scenario_Storage): Initialize all internal data
2660 (Kill_Elaboration_Scenario): Do not execute when the elaboration
2661 phase is not active.
2662 (Set_Elaboration_Phase): New routine.
2663 (Update_Elaboration_Scenario): Do not execute when the
2664 elaboration phase is not active.
2666 2019-07-04 Gary Dismukes <dismukes@adacore.com>
2668 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): The special
2669 treatment of calling Mask_Unfrozen_Types must also be done in
2670 the case of an Ignored_Ghost_Entity, because Expander_Active is
2673 2019-07-04 Yannick Moy <moy@adacore.com>
2675 * sem_prag.adb (Check_Library_Level_Entity): Update for new rule
2678 2019-07-04 Justin Squirek <squirek@adacore.com>
2680 * sem_disp.adb (Check_Controlling_Formals): Obtain the full view
2681 before type comparison.
2683 2019-07-04 Ed Schonberg <schonberg@adacore.com>
2685 * exp_ch4.ads, exp_ch4.adb (Build_Eq_Call): New visible
2686 subprogram, extracted from Expand_Composite_Equality, to handle
2687 properly the composition of equality for variant record types.
2688 * exp_ch3.adb (MAke_Eq_If): Use Build_Eq_Call for each
2689 component, to handle properly the case of a component with a
2690 user-defined equality. Revert to predefined equality if the
2691 user-defined operation is abstract, to maintain compatibility
2692 with older versions,
2694 2019-07-04 Justin Squirek <squirek@adacore.com>
2696 * exp_ch3.adb (Build_Initialization_Call): Fixup
2697 *_skip_null_excluding_check argument to handle new default.
2698 (Init_Formals): Make *_skip_null_excluding_check formal default
2700 * exp_ch4.adb (Expand_N_Allocator): Add comment to note heavy
2703 2019-07-04 Bob Duff <duff@adacore.com>
2705 * sem_ch3.adb (Access_Definition): Do not create a master unless
2706 Tasking_Allowed. Otherwise, this fails on restricted runtimes.
2708 2019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
2710 * sem_util.adb (Propagate_DIC_Attributes): Do not propagate the
2711 Default_Initial_Condition attributes to an incomplete type.
2713 2019-07-04 Ed Schonberg <schonberg@adacore.com>
2715 * sem_attr.adb (Check_Array_Type): An array type attribute such
2716 as 'First can be applied to an unconstrained array tyope when
2717 the attribute reference appears within an aspect specification
2718 and the prefix is a current instance, given that the prefix of
2719 the attribute will become a formal of the subprogram that
2720 implements the aspect (typically a predicate check).
2722 2019-07-04 Piotr Trojanek <trojanek@adacore.com>
2724 * sem_util.adb (Yields_Synchronized_Object): Fix typos in
2727 2019-07-04 Yannick Moy <moy@adacore.com>
2729 * sem_util.adb (Yields_Synchronized_Object): Adapt to new SPARK
2732 2019-07-04 Yannick Moy <moy@adacore.com>
2734 * sem_spark.adb (Check_Statement): Only check permission of
2735 object in extended return when it is of a deep type.
2737 2019-07-04 Justin Squirek <squirek@adacore.com>
2739 * sem_ch12.adb (Perform_Appropriate_Analysis): Added for
2740 selecting which type of analysis based on wheither the
2741 instantiation is a generic at the library-level. In which case
2742 expansion during analysis.
2743 (Preanalyze_Actuals): Modify calls to Analyze to use the new
2746 2019-07-04 Ed Schonberg <schonberg@adacore.com>
2748 * exp_unst.adb: Handle conditional expressions.
2750 2019-07-04 Yannick Moy <moy@adacore.com>
2752 * sem_spark.adb (Check_Package_Spec, Check_Package_Body): Only
2753 analyze parts of the code marked in SPARK.
2755 2019-07-04 Hristian Kirtchev <kirtchev@adacore.com>
2757 * erroutc.adb, exp_aggr.adb, inline.adb, opt.adb, sem_ch3.adb:
2760 2019-07-04 Yannick Moy <moy@adacore.com>
2762 * sem_spark.adb (Explanation, Get_Expl): New functions to get
2763 the explanation for a permission mismatch.
2764 (Perm_Error, Perm_Mismatch, Perm_Error_Loop_Exit): Take
2765 explanation into account for issuing a more precise error
2767 (Set_Perm_Prefixes, Set_Perm_Extensions,
2768 Set_Perm_Extensions_Move): Pass suitable argument for the
2771 2019-07-04 Arnaud Charlet <charlet@adacore.com>
2773 * exp_aggr.adb (In_Place_Assign_OK): Moved to top level and add
2774 support for record aggregates.
2775 (Component_Check): Use Is_CCG_Supported_Aggregate instead of a
2776 similar local predicate.
2777 (Convert_To_Assignments): Take advantage of In_Place_Assign_OK
2778 predicate when possible.
2779 (Is_CCG_Supported_Aggregate): Return False for records with
2780 representation clauses and fix the logic for dealing with nested
2783 2019-07-04 Piotr Trojanek <trojanek@adacore.com>
2785 * opt.adb (Set_Config_Switches): Keep assertions policy as
2786 enabled when analysing internal units in GNATprove mode.
2788 2019-07-04 Arnaud Charlet <charlet@adacore.com>
2790 * exp_ch4.adb (Expand_Short_Circuit_Operator): Strip
2791 N_Variable_Reference_Marker when checking for the presence of
2794 2019-07-04 Arnaud Charlet <charlet@adacore.com>
2796 * exp_aggr.adb (Check_Component): Take into account type
2799 2019-07-04 Dmitriy Anisimkov <anisimko@adacore.com>
2801 * doc/gnat_ugn/platform_specific_information.rst: Document
2802 Windows socket timeout particularity.
2803 * gnat_ugn.texi: Regenerate.
2804 * gsocket.h: Include versionhelpers.h.
2805 * socket.c (__gnat_minus_500ms): New function.
2806 * libgnat/g-sothco.ads (Minus_500ms_Windows_Timeout): New
2808 * libgnat/g-socket.adb (Set_Socket_Option): Refactor to remove
2809 500ms from the requested timeout only on old Windows version.
2811 2019-07-04 Thomas Quinot <quinot@adacore.com>
2813 * get_scos.adb: Remove bogus, dead code.
2815 2019-07-04 Ed Schonberg <schonberg@adacore.com>
2817 * sem_dim.adb (Analyze_Dimension_Array_Aggregate): If the
2818 component is an entity name, its dimensions are those of its
2821 2019-07-03 Bob Duff <duff@adacore.com>
2823 * doc/gnat_ugn/gnat_utility_programs.rst: Document new flags in
2826 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
2828 * binde.adb: Remove with clause for System.OS_Lib.
2829 (Force_Elab_Order): Refactor the majority of the code in Butil.
2830 Use the new forced units iterator to obtain unit names.
2831 * bindo-builders.adb: Add with and use clauses for Binderr,
2832 Butil, Opt, Output, Types, GNAT, and GNAT.Dynamic_HTables. Add
2833 a hash table which maps units to line number in the forced
2834 elaboration order file.
2835 (Add_Unit): New routine.
2836 (Build_Library_Graph): Create forced edges between pairs of
2837 units listed in the forced elaboration order file.
2838 (Create_Forced_Edge, Create_Forced_Edges, Destroy_Line_Number,
2839 Duplicate_Unit_Error, Hash_Unit, Internal_Unit_Info,
2840 Is_Duplicate_Unit, Missing_Unit_Info): New routines.
2841 * bindo-graphs.adb (Is_Internal_Unit, Is_Predefined_Unit):
2842 Refactor some of the behavior to Bindo-Units.
2843 * bindo-graphs.ads: Enable the enumeration literal for forced
2845 * bindo-units.adb, bindo-units.ads (Is_Internal_Unit,
2846 Is_Predefined_Unit): New routines.
2847 * butil.adb: Add with and use clauses for Opt, GNAT, and
2848 System.OS_Lib. Add with clause for Unchecked_Deallocation.
2849 (Has_Next, Iterate_Forced_Units, Next, Parse_Next_Unit_Name,
2850 Read_Forced_Elab_Order_File): New routines.
2851 * butil.ads: Add with and use clauses for Types. Add new
2852 iterator over the units listed in the forced elaboration order
2854 (Has_Next, Iterate_Forced_Units, Next): New routine.
2855 * namet.adb, namet.ads (Present): New routine.
2857 2019-07-03 Bob Duff <duff@adacore.com>
2859 * sem_ch3.adb (Access_Definition): The code was creating a
2860 master in the case where the designated type is a class-wide
2861 interface type. Create a master in the noninterface case as
2862 well. That is, create a master for all limited class-wide types.
2864 2019-07-03 Yannick Moy <moy@adacore.com>
2866 * erroutc.adb (Sloc_In_Range): New function to determine whether
2867 the range of a pragma Warnings covers a location, taking
2868 instantiations into account.
2870 2019-07-03 Johannes Kanig <kanig@adacore.com>
2872 * osint.ads, osint.adb (Get_First_Main_File_Name): New routine
2873 to access the first file provided on the command line.
2875 2019-07-03 Ed Schonberg <schonberg@adacore.com>
2877 * inline.adb (Process_Formals_In_Aspects): New procedure within
2878 Expand_Inlined_Call, to perform a replacement of references to
2879 formals that appear in aspect specifications within the body
2882 2019-07-03 Justin Squirek <squirek@adacore.com>
2884 * sem_ch8.adb (Analyze_Object_Renaming): Add call to search for
2885 the appropriate actual subtype of the object renaming being
2887 (Check_Constrained_Object): Minor cleanup.
2889 2019-07-03 Yannick Moy <moy@adacore.com>
2891 * sem_spark.adb (Get_Observed_Or_Borrowed_Expr): New function to
2892 return go through traversal function call.
2893 (Check_Type): Consistently use underlying type.
2894 (Get_Perm): Adapt for case of elaboration code where variables
2895 are not declared in the environment. Remove incorrect handling
2896 of borrow and observe.
2898 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
2900 * inline.adb (Build_Return_Object_Formal): New routine.
2901 (Can_Split_Unconstrained_Function): Code clean up.
2902 (Copy_Formals,Copy_Return_Object): New routines.
2903 (Split_Unconstrained_Function): Code clean up and refactoring.
2905 2019-07-03 Gary Dismukes <dismukes@adacore.com>
2907 * bindo-augmentors.adb, bindo-augmentors.ads,
2908 bindo-builders.ads, bindo-elaborators.adb, sem_ch12.adb,
2909 sem_ch13.adb, sem_spark.adb, sinfo.ads: Minor editorial
2910 corrections and reformatting.
2912 2019-07-03 Bob Duff <duff@adacore.com>
2914 * sem_warn.adb (Check_Infinite_Loop_Warning): Avoid the warning
2915 if an Iterator_Specification is present.
2917 2019-07-03 Bob Duff <duff@adacore.com>
2919 * doc/gnat_ugn/gnat_utility_programs.rst: Document default
2922 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
2924 * ali.adb: Add with and use clauses for GNAT,
2925 GNAT.Dynamic_HTables, and Snames. Add a map from invocation
2926 signature records to invocation signature ids. Add various
2927 encodings of invocation-related attributes. Sort and update
2928 table Known_ALI_Lines.
2929 (Add_Invocation_Construct, Add_Invocation_Relation,
2930 Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind,
2931 Code_To_Invocation_Construct_Kind, Code_To_Invocation_Kind,
2932 Code_To_Invocation_Graph_Line_Kind, Destroy, Hash): New
2934 (Initialize_ALI): Sort the initialization sequence. Add
2935 initialization for all invocation-related tables.
2936 (Invocation_Construct_Kind_To_Code,
2937 Invocation_Graph_Line_Kind_To_Code, Invocation_Kind_To_Code,
2938 Invocation_Signature_Of, Present): New routines.
2939 (Scan_ALI): Add the default values for invocation-related ids.
2940 Scan invocation graph lines.
2941 (Scan_Invocation_Graph_Line): New routine.
2942 * ali.ads: Add with clause for GNAT.Dynamic_Tables. Add types
2943 for invocation constructs, relations, and signatures. Add
2944 tables for invocation constructs, relations, and signatures.
2945 Update Unit_Record to capture invocation-related ids. Relocate
2946 table Unit_Id_Tables and subtypes Unit_Id_Table, Unit_Id_Array
2948 (Add_Invocation_Construct, Add_Invocation_Relation,
2949 Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind,
2950 Code_To_Invocation_Construct_Kind, Code_To_Invocation_Kind,
2951 Code_To_Invocation_Graph_Line_Kind,
2952 Invocation_Construct_Kind_To_Code,
2953 Invocation_Graph_Line_Kind_To_Code, Invocation_Kind_To_Code,
2954 Invocation_Signature_Of, Present): New routines.
2955 * binde.adb: Add with and use clause for Types. Add use clause
2956 for ALI.Unit_Id_Tables;
2957 * binde.ads: Relocate table Unit_Id_Tables and subtypes
2958 Unit_Id_Table, Unit_Id_Array to ALI.
2959 * bindgen.adb: Remove with and use clause for ALI.
2960 * bindgen.ads: Remove with and use clause for Binde. Add with
2961 and use clause for ALI.
2962 * bindo.adb, bindo.ads, bindo-augmentors.adb,
2963 bindo-augmentors.ads, bindo-builders.adb, bindo-builders.ads,
2964 bindo-diagnostics.adb, bindo-diagnostics.ads,
2965 bindo-elaborators.adb, bindo-elaborators.ads, bindo-graphs.adb,
2966 bindo-graphs.ads, bindo-units.adb, bindo-units.ads,
2967 bindo-validators.adb, bindo-validators.ads, bindo-writers.adb,
2968 bindo-writers.ads: New units.
2969 * debug.adb: Use and describe GNAT debug switches -gnatd_F and
2970 -gnatd_G. Add GNATbind debug switches in the ranges dA .. dZ,
2971 d.a .. d.z, d.A .. d.Z, d.1 .. d.9, d_a .. d_z, d_A .. d_Z, and
2972 d_1 .. d_9. Use and describe GNATbind debug switches -d_A,
2973 -d_I, -d_L, -d_N, -d_O, -d_T, and -d_V.
2974 * exp_util.adb, exp_util.ads (Exceptions_OK): Relocate to
2976 * gnatbind.adb: Add with and use clause for Bindo. Use the new
2977 Bindo elaboration order only when -d_N is in effect.
2979 (Column, Extra, Invoker, Kind, Line, Locations, Name, Placement,
2980 Scope, Signature, Target): New routines.
2981 (Write_ALI): Output all invocation-related data.
2982 (Write_Invocation_Graph): New routine.
2983 * lib-writ.ads: Document the invocation graph ALI line.
2984 * namet.adb, namet.ads (Present): New routines.
2985 * sem_ch8.adb (Find_Direct_Name): Capture the status of
2986 elaboration checks and warnings of an identifier.
2987 (Find_Expanded_Name): Capture the status of elaboration checks
2988 and warnings of an expanded name.
2989 * sem_ch12.adb (Analyze_Generic_Package_Declaration): Ensure
2990 that invocation graph-related data within the body of the main
2991 unit is encoded in the ALI file.
2992 (Analyze_Generic_Subprogram_Declaration): Ensure that invocation
2993 graph-related data within the body of the main unit is encoded
2995 (Analyze_Package_Instantiation): Perform minimal decoration of
2996 the instance entity.
2997 (Analyze_Subprogram_Instantiation): Perform minimal decoration
2998 of the instance entity.
2999 * sem_elab.adb: Perform heavy refactoring of all code. The unit
3000 is now split into "services" which specialize in one area of ABE
3001 checks. Add processing in order to capture invocation-graph
3002 related attributes of the main unit, and encode them in the ALI
3003 file. The Processing phase can now operate in multiple modes,
3004 all described by type Processing_Kind. Scenarios and targets
3005 are now distinct at the higher level, and carry their own
3006 representations. This eliminates the need to constantly
3007 recompute their attributes, and offers the various processors a
3008 uniform interface. The various initial states of the Processing
3009 phase are now encoded using type Processing_In_State, and
3010 xxx_State constants.
3011 * sem_elab.ads: Update the literals of type
3012 Enclosing_Level_Kind. Add Inline pragmas on several routines.
3013 * sem_prag.adb (Process_Inline): Ensure that invocation
3014 graph-related data within the body of the main unit is encoded
3016 * sem_util.adb (Enclosing_Generic_Body, Enclosing_Generic_Unit):
3018 (Exceptions_OK): Relocated from Sem_Util.
3019 (Mark_Save_Invocation_Graph_Of_Body): New routine.
3020 * sem_util.ads (Exceptions_OK): Relocated from Sem_Util.
3021 (Mark_Save_Invocation_Graph_Of_Body): New routine.
3022 * sinfo.adb (Is_Elaboration_Checks_OK_Node): Now applicable to
3023 N_Variable_Reference_Marker.
3024 (Is_Elaboration_Warnings_OK_Node): Now applicable to
3025 N_Expanded_Name, N_Identifier, N_Variable_Reference_Marker.
3026 (Is_Read): Use Flag4.
3027 (Is_SPARK_Mode_On_Node): New applicable to
3028 N_Variable_Reference_Marker.
3029 (Is_Write): Use Flag5.
3030 (Save_Invocation_Graph_Of_Body): New routine.
3031 (Set_Is_Elaboration_Checks_OK_Node): Now applicable to
3032 N_Variable_Reference_Marker.
3033 (Set_Is_Elaboration_Warnings_OK_Node): Now applicable to
3034 N_Expanded_Name, N_Identifier, N_Variable_Reference_Marker.
3035 (Set_Is_SPARK_Mode_On_Node): New applicable to
3036 N_Variable_Reference_Marker.
3037 (Set_Save_Invocation_Graph_Of_Body): New routine.
3038 * sinfo.ads: Update the documentation of attributes
3039 Is_Elaboration_Checks_OK_Node, Is_Elaboration_Warnings_OK_Node,
3040 Is_SPARK_Mode_On_Node. Update the flag usage of attributes
3041 Is_Read, Is_Write. Add attribute Save_Invocation_Graph_Of_Body
3042 and update its occurrence in nodes.
3043 (Save_Invocation_Graph_Of_Body): New routine along with pragma
3045 (Set_Save_Invocation_Graph_Of_Body): New routine along with
3047 * switch-b.adb (Scan_Binder_Switches): Refactor the scanning of
3049 (Scan_Debug_Switches): New routine.
3050 * libgnat/g-dynhta.adb, libgnat/g-dynhta.ads (Contains): New routine.
3051 * libgnat/g-graphs.adb (Associate_Vertices): Update the use of
3052 Component_Vertex_Iterator.
3053 (Contains_Component, Contains_Edge, Contains_Vertex, Has_Next):
3055 (Iterate_Component_Vertices): New routine.
3056 (Iterate_Vertices): Removed.
3057 (Next): Update the parameter profile.
3058 (Number_Of_Component_Vertices, Number_Of_Outgoing_Edges): New
3060 * libgnat/g-graphs.ads: Update the initialization of
3061 No_Component. Add type Component_Vertex_Iterator. Remove type
3063 (Has_Next): Add new versions and remove old ones.
3064 (Iterate_Component_Vertices): New routine.
3065 (Iterate_Vertices): Removed.
3066 (Next): Add new versions and remove old ones.
3067 (Number_Of_Component_Vertices, Number_Of_Outgoing_Edges): New
3069 * libgnat/g-sets.adb (Contains): Reimplemented.
3070 * gcc-interface/Make-lang.in (GNATBIND_OBJS): Add
3071 GNAT.Dynamic_HTables, GNAT.Graphs and Bindo units.
3072 * rtsfind.ads: Remove extra space.
3074 2019-07-03 Yannick Moy <moy@adacore.com>
3076 * sem_spark.adb: Add support for locally borrowing and observing
3078 (Get_Root_Object): Add parameter Through_Traversal to denote
3079 when we are interesting in getting to the traversed parameter.
3080 (Is_Prefix_Or_Almost): New function to support detection of
3081 illegal access to borrowed or observed paths.
3082 (Check_Pragma): Add analysis of assertion pragmas.
3084 2019-07-03 Ed Schonberg <schonberg@adacore.com>
3086 * sem_ch13.adb (Build_Predicate_Functions): In a generic context
3087 we do not build the bodies of predicate fuctions, but the
3088 expression in a static predicate must be elaborated to allow
3089 case coverage checking within the generic unit.
3090 (Build_Discrete_Static_Predicate): In a generic context, return
3091 without building function body once the
3092 Static_Discrete_Predicate expression for the type has been
3095 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
3097 * bindgen.adb, inline.adb, layout.adb, sem_ch12.adb,
3098 sem_ch13.adb, sem_ch7.adb, styleg.adb: Minor reformatting.
3100 2019-07-03 Bob Duff <duff@adacore.com>
3102 * par-ch3.adb (P_Defining_Identifier): Call
3103 Check_Defining_Identifier_Casing.
3104 * style.ads, styleg.ads, styleg.adb
3105 (Check_Defining_Identifier_Casing): New procedure to check for
3106 mixed-case defining identifiers.
3107 * stylesw.ads, stylesw.adb (Style_Check_Mixed_Case_Decls): New
3108 flag for checking for mixed-case defining identifiers.
3109 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
3110 Document new feature.
3111 * gnat_ugn.texi: Regenerate.
3113 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
3115 * doc/gnat_ugn/building_executable_programs_with_gnat.rst
3116 (Warning message control): Document that -gnatw.z/Z apply to
3118 * freeze.adb (Freeze_Entity): Give -gnatw.z warning for array
3119 types as well, but not if the specified alignment is the minimum
3121 * gnat_ugn.texi: Regenerate.
3123 2019-07-03 Bob Duff <duff@adacore.com>
3125 * einfo.ads, exp_util.adb, layout.ads, sinfo.ads: Spell "laid"
3128 2019-07-03 Ed Schonberg <schonberg@adacore.com>
3130 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): No error
3131 message on attribute applied to a renaming when the renamed
3132 object is an aggregate (from code reading).
3133 (Check_Aspect_At_End_Of_Declarations): In a generic context
3134 where freeze nodes are not generated, the original expression
3135 for an aspect may need to be analyzed to precent spurious
3136 conformance errors when compared with the expression that is
3137 anakyzed at the end of the current declarative list.
3139 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
3141 * layout.adb (Layout_Type): Do not set the component size of an
3142 array with a scalar component if the component type is
3145 2019-07-03 Ed Schonberg <schonberg@adacore.com>
3147 * inline.adb (Make_Loop_Labels_Unique): New procedure to modify
3148 the source code of subprograms that are inlined by the
3149 front-end, to prevent accidental duplication between loop labels
3150 in the inlined code and the code surrounding the inlined call.
3152 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
3154 * doc/gnat_ugn/elaboration_order_handling_in_gnat.rst: Update
3155 the section on resolving elaboration circularities to eliminate
3156 certain combinations of switches which together do not produce
3157 the desired effect and confuse users.
3158 * gnat_ugn.texi: Regenerate.
3160 2019-07-03 Arnaud Charlet <charlet@adacore.com>
3162 * bindgen.adb (Gen_Main): Disable generation of reference to
3163 Ada_Main_Program_Name for CCG.
3164 * bindusg.adb (Display): Add -G to the command-line usage for
3166 * opt.ads (Generate_C_Code): Update comment.
3167 * switch-b.adb (Scan_Binder_Switches): Add handling for -G.
3169 2019-07-03 Arnaud Charlet <charlet@adacore.com>
3171 * sem_ch7.adb (Has_Referencer): Do not consider inlined
3172 subprograms when generating C code, which allows us to generate
3173 static inline subprograms.
3175 2019-07-03 Justin Squirek <squirek@adacore.com>
3177 * sem_ch6.adb (Check_Conformance): Add expression checking for
3178 constant modifiers in anonymous access types (in addition to
3179 "non-null" types) so that they are considered "matching" for
3180 subsequent conformance tests.
3182 2019-07-03 Arnaud Charlet <charlet@adacore.com>
3184 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
3185 Clarify wording on No_Multiple_Elaboration.
3186 * gnat_rm.texi: Regenerate.
3188 2019-07-03 Ed Schonberg <schonberg@adacore.com>
3190 * sem_ch8.adb (Find_Selected_Component): If the prefix is the
3191 current instance of a type or subtype, complete the resolution
3192 of the name by finding the component of the type denoted by the
3195 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
3197 * doc/gnat_rm/interfacing_to_other_languages.rst (Interfacing to C):
3198 Document that boolean types with convention C now map to C99 bool.
3199 * gnat_rm.texi: Regenerate.
3201 2019-07-03 Javier Miranda <miranda@adacore.com>
3203 * exp_attr.adb (Expand_Min_Max_Attribute): Code cleanup:
3204 removing code that it is now never executed in the CCG compiler
3207 2019-07-02 Iain Sandoe <iain@sandoe.co.uk>
3209 * libgnat/system-darwin-ppc.ads: Set Stack_Check_Probes True for
3212 2019-07-01 Ed Schonberg <schonberg@adacore.com>
3214 * sem_ch12.adb (Is_Defaulted): New predicate in
3215 Check_Formal_Package_Intance, to skip the conformance of checks
3216 on parameters of a formal package that are defaulted,
3218 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3220 * checks.adb, exp_ch9.adb, exp_unst.adb, sem_ch4.adb,
3221 sem_prag.adb, sem_spark.adb: Minor reformatting.
3223 2019-07-01 Ed Schonberg <schonberg@adacore.com>
3225 * sem_attr.adb (Analyze_Attribute, case Enum_Rep): Allow prefix
3226 of attribute to be an attribute reference of a discrete type.
3228 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
3230 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Move up
3231 handling of Has_Pragma_Inline_Always and deal with
3232 Has_Pragma_No_Inline.
3234 2019-07-01 Ed Schonberg <schonberg@adacore.com>
3236 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type is
3237 declared as a subtype of a private type with an inherited
3238 discriminant constraint, its generated full base appears as a
3239 record subtype, so we need to retrieve its oen base type so that
3240 the inherited constraint can be applied to it.
3242 2019-07-01 Yannick Moy <moy@adacore.com>
3244 * sem_spark.adb: Completely rework the algorithm for ownership
3245 checking, as the rules in SPARK RM have changed a lot.
3246 * sem_spark.ads: Update comments.
3248 2019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
3250 * gsocket.h (Has_Sockaddr_Len): Use the offset of sin_family offset in
3251 the sockaddr_in structure to determine the existence of length field
3252 before the sin_family.
3254 2019-07-01 Ed Schonberg <schonberg@adacore.com>
3256 * sem_prag.adb (Analyze_Pragma, case Weak_External): Pragma only
3257 applies to entities with run-time addresses, not to types.
3259 2019-07-01 Piotr Trojanek <trojanek@adacore.com>
3261 * einfo.adb, sem_ch7.adb, sem_prag.adb, sem_util.adb: Update
3262 references to the SPARK RM after the removal of Rule 7.1.4(5).
3264 2019-07-01 Piotr Trojanek <trojanek@adacore.com>
3266 * sysdep.c: Cleanup references to LynuxWorks in docs and
3269 2019-07-01 Ed Schonberg <schonberg@adacore.com>
3271 * checks.adb (Insert_Valid_Check): Do not apply validity check
3272 to variable declared within a protected object that uses the
3273 Lock_Free implementation, to prevent unwarranted constant
3274 folding, because entities within such an object msut be treated
3277 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
3279 * exp_ch9.adb (Check_Inlining): Deal with Has_Pragma_No_Inline.
3281 2019-07-01 Ed Schonberg <schonberg@adacore.com>
3283 * exp_unst.adb (Visit_Node, Check_Static_Type): Improve the
3284 handling of private and incomplete types whose full view is an
3285 access type, to detect additional uplevel references in dynamic
3286 bounds. This is relevant to N_Free_Statement among others that
3287 manipulate types whose full viww may be an access type.
3289 2019-07-01 Pat Rogers <rogers@adacore.com>
3291 * doc/gnat_rm/representation_clauses_and_pragmas.rst: Correct
3292 size indicated for R as a component of an array.
3293 * gnat_rm.texi: Regenerate.
3295 2019-07-01 Justin Squirek <squirek@adacore.com>
3297 * libgnat/s-win32.ads: Add definition for ULONG, modify
3298 OVERLAPPED type, and add appropriate pragmas.
3300 2019-07-01 Bob Duff <duff@adacore.com>
3302 * gnat1drv.adb (gnat1drv): Call Write_ALI if the main unit is
3305 2019-07-01 Yannick Moy <moy@adacore.com>
3307 * sem_ch4.adb (Operator_Check): Refine error message.
3309 2019-07-01 Piotr Trojanek <trojanek@adacore.com>
3311 * libgnat/a-calend.ads: Revert "Global => null" contracts on
3314 2019-07-01 Piotr Trojanek <trojanek@adacore.com>
3316 * exp_attr.adb, libgnat/g-graphs.ads: Fix typos in comments:
3317 componant -> component.
3319 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3321 * libgnat/g-graphs.adb: Use type Directed_Graph rather than
3322 Instance in various routines.
3323 * libgnat/g-graphs.ads: Change type Instance to Directed_Graph.
3324 Update various routines that mention the type.
3326 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3328 * libgnat/g-sets.adb: Use type Membership_Set rathern than
3329 Instance in various routines.
3330 * libgnat/g-sets.ads: Change type Instance to Membership_Set.
3331 Update various routines that mention the type.
3333 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3335 * libgnat/g-lists.adb: Use type Doubly_Linked_List rather than
3336 Instance in various routines.
3337 * libgnat/g-lists.ads: Change type Instance to
3338 Doubly_Linked_List. Update various routines that mention the
3341 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3343 * libgnat/g-dynhta.adb: Use type Dynamic_Hash_Table rather than
3344 Instance in various routines.
3345 * libgnat/g-dynhta.ads: Change type Instance to
3346 Dynamic_Hash_Table. Update various routines that mention the
3349 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3351 * exp_attr.adb, exp_ch7.adb, exp_unst.adb, sem_ch3.adb,
3352 sem_util.adb, uintp.adb, uintp.ads: Minor reformatting.
3354 2019-07-01 Javier Miranda <miranda@adacore.com>
3356 * exp_attr.adb (Expand_Min_Max_Attribute): Disable expansion of
3357 'Min/'Max on integer, enumeration, fixed point and floating
3358 point types since the CCG backend now provides in file
3359 standard.h routines to support it.
3361 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3363 * impunit.adb: Add GNAT.Graphs to list Non_Imp_File_Names_95.
3364 * Makefile.rtl, gcc-interface/Make-lang.in: Register unit
3366 * libgnat/g-dynhta.adb: Various minor cleanups (use Present
3367 rather than direct comparisons).
3368 (Delete): Reimplement to use Delete_Node.
3369 (Delete_Node): New routine.
3370 (Destroy_Bucket): Invoke the provided destructor.
3371 (Present): New routines.
3372 * libgnat/g-dynhta.ads: Add new generic formal Destroy_Value.
3373 Use better names for the components of iterators.
3374 * libgnat/g-graphs.adb, libgnat/g-graphs.ads: New unit.
3375 * libgnat/g-lists.adb: Various minor cleanups (use Present
3376 rather than direct comparisons).
3377 (Delete_Node): Invoke the provided destructor.
3378 (Present): New routine.
3379 * libgnat/g-lists.ads: Add new generic formal Destroy_Element.
3380 Use better names for the components of iterators.
3381 (Present): New routine.
3382 * libgnat/g-sets.adb, libgnat/g-sets.ads (Destroy, Preset,
3383 Reset): New routines.
3385 2019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
3387 * libgnat/g-sothco.adb (Get_Address): Fix the case when AF_INET6
3390 2019-07-01 Ed Schonberg <schonberg@adacore.com>
3392 * exp_attr.adb (Expand_Attribute_Reference, case Invalid_Value):
3393 Resolve result of call to Get_Simple_Init_Val, which may be a
3394 conversion of a literal.
3396 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
3398 * freeze.adb (Freeze_Expression): Remove the horrible useless
3399 name hiding of N. Insert the freeze nodes generated by the
3400 expression prior to the expression when the nearest enclosing
3403 2019-07-01 Pierre-Marie de Rodat <derodat@adacore.com>
3405 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix
3406 formatting issues in the -gnatR section.
3407 * gnat_ugn.texi: Regenerate.
3409 2019-06-30 Iain Sandoe <iain@sandoe.co.uk>
3411 * gnatlink.adb (Link_Step): Remove duplicate -static-libgcc switches.
3412 Push -shared-libgcc explicitly, when it is the target default (unless
3413 overidden by the static flag).
3414 When the user has put an instance of shared/static-libgcc do not push
3415 a duplicate of this.
3417 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3419 * gcc-interface/decl.c (gnat_to_gnu_entity): Beep up comment on SAVED,
3420 and tweak comment on the assertion about the scopes of Itypes. Do not
3421 skip the regular processing for Itypes that are E_Record_Subtype with
3422 a Cloned_Subtype. Get the Cloned_Subtype for every E_Record_Subtype
3423 if the type is dummy and hasn't got its own freeze node.
3424 <E_Record_Subtype>: Save again the DECL of the Cloned_Subtype, if any.
3425 <E_Access_Subtype>: Save again the DECL of the equivalent type.
3426 (Gigi_Equivalent_Type) <E_Access_Subtype>: New case.
3428 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3430 * gcc-interface/utils.c (unchecked_convert): Tweak comment. Only skip
3431 dereferences when padding to have the same size on both sides. Do it
3432 for destination types with self-referential size too.
3434 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3436 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the
3437 type requires strict alignment, then set the RM size to the type size.
3438 Rework handling of alignment and sizes of tagged types in ASIS mode.
3439 (validate_size): Rename local variable and remove special handling for
3440 strict-alignment types.
3441 * gcc-interface/utils.c (finish_record_type): Constify local variables
3442 and use properly typed constants.
3444 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3446 * gcc-interface/decl.c (gnat_to_gnu_field): Rework error messages for
3447 fields requiring strict alignment, add explicit test on Storage_Unit
3448 for position and size, and mention type alignment for position.
3450 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3452 * gcc-interface/trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on
3453 the main variant of a type, if any.
3455 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3457 * gcc-interface/decl.c (set_nonaliased_component_on_array_type): Add
3458 missing guard for the presence of TYPE_CANONICAL.
3459 (set_reverse_storage_order_on_array_type): Likewise.
3461 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
3463 * gcc-interface/gigi.h (make_packable_type): Remove default value.
3464 (value_factor_p): Tweak prototype.
3465 * gcc-interface/decl.c (gnat_to_gnu_entity): Add comment.
3466 (gnat_to_gnu_component_type): Likewise.
3467 (gnat_to_gnu_field): Likewise. Fetch the position of the field earlier
3468 and simplify the condition under which the type is packed. Declare
3469 local variable is_bitfield. Pass 1 as max_align to make_packable_type
3470 if it is set to true.
3471 (copy_and_substitute_in_layout): Pass 0 to make_packable_type.
3472 * gcc-interface/utils.c (make_packable_array_type): New function.
3473 (make_packable_type): Use it to rewrite the type of array field.
3474 (maybe_pad_type): Pass align parameter to make_packable_type.
3475 (create_field_decl): Minor tweaks.
3476 (value_factor_p): Assert that FACTOR is a power of 2 and replace the
3477 modulo computation by a masking operation.
3479 2019-06-25 Eric Botcazou <ebotcazou@adacore.com>
3481 * gcc-interface/decl.c (gnat_to_gnu_entity): Remove superfluous test
3483 * gcc-interface/gigi.h (maybe_character_type): Fix formatting.
3484 (maybe_character_value): Likewise.
3486 2019-06-24 Jan Hubicka <jh@suse.cz>
3488 * gcc-interface/decl.c (gnat_to_gnu_entity): Check that
3489 type is array or integer prior checking string flag.
3490 * gcc-interface/gigi.h (maybe_character_type): Likewise.
3491 (maybe_character_value): Likewise.
3493 2019-06-24 Martin Sebor <msebor@redhat.com>
3495 * gcc-interface/utils.c (handle_nonnull_attribute): Quote attribute
3498 2019-06-18 Arnaud Charlet <charlet@adacore.com>
3501 * sem_ch5.adb (Analyze_Loop_Statement): Avoid exception propagation
3502 during normal processing.
3504 2019-06-17 Arnaud Charlet <charlet@adacore.com>
3507 * exp_ch9.adb (Expand_N_Delay_Relative_Statement): Swap the two
3508 conditions to avoid a unnecessary exception propagation in the default
3511 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3513 * gcc-interface/utils.c (handle_stack_protect_attribute): Move around.
3515 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3517 * doc/gnat_rm/implementation_defined_pragmas.rst (Machine_Attribute):
3518 Document additional optional parameters.
3519 * sem_prag.adb (Analyze_Pragma) <Pragma_Machine_Attribute>: Accept
3520 more than one optional parameter.
3521 * gcc-interface/decl.c (prepend_one_attribute_pragma): Alphabetize
3522 the list of supported pragmas. Simplify the handling of parameters
3523 and add support for more than one optional parameter.
3524 * gcc-interface/utils.c (attr_cold_hot_exclusions): New constant.
3525 (gnat_internal_attribute_table): Add entry for no_icf, noipa, flatten,
3526 used, cold, hot, target and target_clones.
3527 (begin_subprog_body): Do not create the RTL for the subprogram here.
3528 (handle_noicf_attribute): New static function.
3529 (handle_noipa_attribute): Likewise.
3530 (handle_flatten_attribute): Likewise.
3531 (handle_used_attribute): Likewise.
3532 (handle_cold_attribute): Likewise.
3533 (handle_hot_attribute): Likewise.
3534 (handle_target_attribute): Likewise.
3535 (handle_target_clones_attribute): Likewise.
3537 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3539 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Return 0
3541 (Identifier_to_gnu): Use the actual subtype for a reference to a
3542 packed array in a return statement.
3543 (Attribute_to_gnu) <Attr_Size>: Do not strip VIEW_CONVERT_EXPRs from
3544 the prefix in every case.
3546 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3548 * gcc-interface/trans.c (gnat_to_gnu): Remove superfluous tests on
3549 Backend_Overflow_Checks_On_Target and rework comments.
3551 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3553 * gcc-interface/trans.c (walk_nesting_tree): New static function.
3554 (finalize_nrv): Use it to walk the entire nesting tree.
3556 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3558 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Remove
3559 obsolete test on Is_For_Access_Subtype.
3561 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3563 * gcc-interface/decl.c (components_to_record): Set a name on the type
3564 created for the REP part, if any.
3565 * gcc-interface/utils.c (finish_record_type): Only take the maximum
3566 when merging sizes for a variant part at offset 0.
3567 (merge_sizes): Rename has_rep parameter into max.
3569 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3571 * gcc-interface/utils.c (gnat_internal_attribute_table): Add support
3572 for stack_protect attribute.
3573 (handle_stack_protect_attribute): New static function.
3575 2019-05-28 Eric Botcazou <ebotcazou@adacore.com>
3577 * gcc-interface/decl.c (intrin_arglists_compatible_p): Do not return
3578 false if the internal builtin uses a variable list.
3580 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3582 * gcc-interface/trans.c (Call_to_gnu): Do not initialize the temporary
3583 created out of addressability concerns if it's for the _Init parameter
3584 of an initialization procedure.
3586 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3588 * gcc-interface/ada-builtin-types.def: New file.
3589 * gcc-interface/ada-builtins.def: Likewise.
3590 * gcc-interface/ada-tree.h (BUILT_IN_LIKELY): New macro.
3591 (BUILT_IN_UNLIKELY): Likewise.
3592 * gcc-interface/trans.c (independent_iterations_p): Initialize the
3593 auto-vector to 16 elements.
3594 (Call_to_gnu): Remove local variable and change the vector of actual
3595 parameters to an auto-vector. Do not convert actual parameters to
3596 the argument type for front-end built-in functions. Add support for
3597 front-end built-in functions.
3598 (build_noreturn_cond): Use internal instead of built-in function.
3599 * gcc-interface/utils.c (c_builtin_type): Include ada-builtin-types.def
3600 (install_builtin_function_types): Likewise.
3601 (install_builtin_functions): Include ada-builtins.def first.
3603 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3605 * gcc-interface/utils.c (maybe_pad_type): Issue the warning for the
3606 specific case of component types preferably.
3608 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3610 * gcc-interface/trans.c (Identifier_to_gnu): Minor tweaks.
3611 (gnat_to_gnu): Do not convert the result if it is a reference to an
3612 unconstrained array used as the prefix of an attribute reference that
3615 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3617 * gcc-interface/trans.c (Gigi_Types_Compatible): New predicate.
3618 (Identifier_to_gnu): Use it to assert that the type of the identifier
3619 and that of its entity are compatible for gigi. Rename a couple of
3620 local variables and separate the processing of the result type.
3622 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3624 * gcc-interface/trans.c (Call_to_gnu): Use the unpadded type when
3625 putting back an intermediate conversion the type of the actuals.
3627 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
3629 * gcc-interface/trans.c (gnat_to_gnu) <Shift operations>: Convert the
3630 count to the unsigned version of its base type before proceeding.
3632 2019-05-16 Martin Sebor <msebor@redhat.com>
3634 * gcc-interface/trans.c (check_inlining_for_nested_subprog): Quote
3637 2019-05-08 Arnaud Charlet <charlet@adacore.com>
3639 * standard.ads.h: New file.
3641 2019-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3643 * gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
3646 2019-04-29 Michael K. Darling <darlingm@gmail.com>
3648 * gnatvsn.ads: Bump Library_Version to 10.
3650 2019-04-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3651 Bernd Edlinger <bernd.edlinger@hotmail.de>
3652 Jakub Jelinek <jakub@redhat.com>
3655 * raise-gcc.c (TARGET_ATTRIBUTE): Define.
3656 (continue_unwind, personality_body, PERSONALITY_FUNCTION): Add
3659 2019-04-07 Eric Botcazou <ebotcazou@adacore.com>
3661 * libgnat/i-cexten.ads (CFloat_128): New type.
3663 2019-03-22 Dmitriy Anisimkov <anisimko@adacore.com>
3666 * libgnat/g-socket.adb (Bind_Socket, Connect_Socket,
3667 Send_Socket): Fix the computation of structure lengths passed to
3669 (Is_IPv6_Address): Fix the number of expected colons.
3671 2019-03-11 Martin Liska <mliska@suse.cz>
3673 * gcc-interface/misc.c (gnat_post_options): Wrap option name in string
3674 format message and fix GNU coding style.
3676 2019-02-08 Eric Botcazou <ebotcazou@adacore.com>
3678 * gcc-interface/trans.c (gnat_to_gnu) <N_Aggregate>: Minor tweak.
3679 * gcc-interface/utils.c (convert): Do not pad when doing an unchecked
3680 conversion here. Use TREE_CONSTANT throughout the function.
3681 (unchecked_convert): Also pad if the source is a CONSTRUCTOR and the
3682 destination is a more aligned array type or a larger aggregate type,
3683 but not between original and packable versions of a type.
3685 2019-02-08 Eric Botcazou <ebotcazou@adacore.com>
3687 * gcc-interface/utils.c (max_size) <tcc_unary>: Be prepared for an
3688 operand with VOID_TYPE.
3690 2019-02-08 Eric Botcazou <ebotcazou@adacore.com>
3692 * gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the
3693 entities of a package renaming another one.
3695 2019-02-08 Eric Botcazou <ebotcazou@adacore.com>
3697 * gcc-interface/trans.c (Regular_Loop_to_gnu): Replace tests on
3698 individual flag_unswitch_loops and flag_tree_loop_vectorize switches
3699 with test on global optimize switch.
3700 (Raise_Error_to_gnu): Likewise.
3702 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
3704 * libgnarl/s-linux__sparc.ads (ETIMEDOUT): Set to correct value.
3706 2019-02-06 Arnaud Charlet <charlet@adacore.com>
3708 * libgnarl/s-linux__x32.ads: Resync list of signals with s-linux.ads
3710 2019-01-27 Eric Botcazou <ebotcazou@adacore.com>
3712 * repinfo.adb (List_Component_Layout): Remove superfluous space for
3714 * gcc-interface/ada-tree.h (TYPE_IS_EXTRA_SUBTYPE_P): New macro.
3715 * gcc-interface/gigi.h (create_extra_subtype): Declare.
3716 * gcc-interface/decl.c (TYPE_ARRAY_SIZE_LIMIT): Likewise.
3717 (update_n_elem): New function.
3718 (gnat_to_gnu_entity): Use create_extra_subtype to create extra subtypes
3719 instead of doing it manually.
3720 <E_Array_Type>: Use update_n_elem to compute the maximum size. Use the
3721 index type instead of base type for the bounds. Set TYPE_ARRAY_MAX_SIZE
3722 of the array to the maximum size.
3723 <E_Array_Subtype>: Create an extra subtype using the index type of the
3724 base array type for self-referential bounds. Use update_n_elem to
3725 compute the maximum size. Set TYPE_ARRAY_MAX_SIZE of the array to the
3727 (gnat_to_gnu_field): Clear DECL_NONADDRESSABLE_P on discriminants.
3728 * gcc-interface/misc.c (gnat_get_alias_set): Return the alias set of
3729 the base type for an extra subtype.
3730 (gnat_type_max_size): Remove obsolete code.
3731 * gcc-interface/trans.c (Attribute_to_gnu): Minor tweak.
3732 (can_be_lower_p): Deal with pathological types.
3733 * gcc-interface/utils.c (create_extra_subtype): New function.
3734 (create_field_decl): Minor tweak.
3735 (max_size) <tcc_reference>: Compute a better value by using the extra
3736 subtypes on the self-referential bounds.
3737 <tcc_binary>: Rewrite. Deal with "negative value" in unsigned types.
3738 <tcc_expression>: Likewise.
3739 * gcc-interface/utils2.c (compare_arrays): Retrieve the original bounds
3740 of the arrays upfront. Swap only if the second length is not constant.
3741 Use comparisons on the original bounds consistently for the null tests.
3742 (build_binary_op): Use TYPE_IS_EXTRA_SUBTYPE_P macro.
3743 (build_allocator): Minor tweak.
3745 2019-01-27 Eric Botcazou <ebotcazou@adacore.com>
3747 * gcc-interface/decl.c (array_type_has_nonaliased_component): Return
3748 the same value for every dimension of a multidimensional array type.
3750 2019-01-26 Eric Botcazou <ebotcazou@adacore.com>
3752 * gcc-interface/trans.c (Regular_Loop_to_gnu): Use the SLOC of the
3753 iteration scheme, if present, throughout the translation.
3755 2019-01-26 Eric Botcazou <ebotcazou@adacore.com>
3757 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
3758 DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned
3759 by a call to memset if the LHS is a DECL.
3761 2019-01-26 Eric Botcazou <ebotcazou@adacore.com>
3763 * gcc-interface/trans.c (struct loop_info_d): Remove artificial field.
3764 (Loop_Statement_to_gnu): Do not set it.
3766 2019-01-26 Eric Botcazou <ebotcazou@adacore.com>
3768 * gcc-interface/trans.c (Iterate_Acc_Clause_Arg): Fix formatting.
3769 (Acc_gnat_to_gnu): Likewise.
3770 (Acc_Data_to_gnu): Likewise.
3771 (Acc_Var_to_gnu): Likewise.
3772 (Acc_Reduc_to_gnu): Likewise.
3773 (Acc_Size_List_to_gnu): Likewise.
3774 (Pragma_to_gnu) <Pragma_Acc_Loop>: Likewise.
3775 <Pragma_Acc_Data>): Likewise.
3776 (find_loop_for): Remove default value for parameters.
3777 * gcc-interface/trans.c (gnat_to_gnu) <N_Op_And>: Merge into...
3778 <N_Op_Eq>): ...this.
3780 2019-01-26 Eric Botcazou <ebotcazou@adacore.com>
3782 * gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on
3783 the sign bit instead of on the sign of the value.
3784 <PLUS_EXPR>: Turn addition of negative constant into subtraction.
3785 <MULT_EXPR>: Add test for degenerate case.
3786 <BIT_AND_EXPR>: Simplify.
3788 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
3790 * s-oscons-tmplt.c (AF_INET6): Do not undefine for RTEMS.
3792 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3795 * exp_ch11.adb: Change "can not" to "cannot".
3796 * sem_ch4.adb: Likewise.
3798 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
3801 * exp_ch9.adb: Mechanically replace "can not" with "cannot".
3802 * libgnat/s-regpat.ads: Likewise.
3803 * par-ch4.adb: Likewise.
3804 * set_targ.adb: Likewise.
3805 * types.ads: Likewise.
3807 2019-01-08 Justin Squirek <squirek@adacore.com>
3810 2018-07-31 Justin Squirek <squirek@adacore.com>
3812 * lib-writ.adb (Write_With_Lines): Modfiy the generation
3813 of dependencies within ali files so that source unit
3814 bodies are properly listed even if said bodies are
3815 missing. Perform legacy behavior in GNATprove mode.
3816 * lib-writ.ads: Modify documentation to reflect current
3820 2018-09-26 Justin Squirek <squirek@adacore.com>
3822 * lib-writ.adb, lib-writ.ads (Write_With_Lines): Add
3823 documentation and an extra conditional check for RCI
3824 units so that generated ali files will list the spec
3825 only instead of a body when a body is not found.
3827 2019-01-04 Eric Botcazou <ebotcazou@adacore.com>
3829 * gnatvsn.ads: Bump copyright year.
3831 2019-01-01 Jakub Jelinek <jakub@redhat.com>
3833 Update copyright years.
3835 * gnat_ugn.texi: Bump @copying's copyright year.
3836 * gnat_rm.texi: Likewise.
3838 Copyright (C) 2019 Free Software Foundation, Inc.
3840 Copying and distribution of this file, with or without modification,
3841 are permitted in any medium without royalty provided the copyright
3842 notice and this notice are preserved.