]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
[Ada] Minor reformatting
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
99d90c85 12019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
2
3 * bindgen.adb, inline.adb, layout.adb, sem_ch12.adb,
4 sem_ch13.adb, sem_ch7.adb, styleg.adb: Minor reformatting.
5
800597f6 62019-07-03 Bob Duff <duff@adacore.com>
7
8 * par-ch3.adb (P_Defining_Identifier): Call
9 Check_Defining_Identifier_Casing.
10 * style.ads, styleg.ads, styleg.adb
11 (Check_Defining_Identifier_Casing): New procedure to check for
12 mixed-case defining identifiers.
13 * stylesw.ads, stylesw.adb (Style_Check_Mixed_Case_Decls): New
14 flag for checking for mixed-case defining identifiers.
15 * doc/gnat_ugn/building_executable_programs_with_gnat.rst:
16 Document new feature.
17 * gnat_ugn.texi: Regenerate.
18
2c75027a 192019-07-03 Eric Botcazou <ebotcazou@adacore.com>
20
21 * doc/gnat_ugn/building_executable_programs_with_gnat.rst
22 (Warning message control): Document that -gnatw.z/Z apply to
23 array types.
24 * freeze.adb (Freeze_Entity): Give -gnatw.z warning for array
25 types as well, but not if the specified alignment is the minimum
26 one.
27 * gnat_ugn.texi: Regenerate.
28
08237d0d 292019-07-03 Bob Duff <duff@adacore.com>
30
31 * einfo.ads, exp_util.adb, layout.ads, sinfo.ads: Spell "laid"
32 correctly.
33
0396441f 342019-07-03 Ed Schonberg <schonberg@adacore.com>
35
36 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): No error
37 message on attribute applied to a renaming when the renamed
38 object is an aggregate (from code reading).
39 (Check_Aspect_At_End_Of_Declarations): In a generic context
40 where freeze nodes are not generated, the original expression
41 for an aspect may need to be analyzed to precent spurious
42 conformance errors when compared with the expression that is
43 anakyzed at the end of the current declarative list.
44
c8406f30 452019-07-03 Eric Botcazou <ebotcazou@adacore.com>
46
47 * layout.adb (Layout_Type): Do not set the component size of an
48 array with a scalar component if the component type is
49 overaligned.
50
c38b32ea 512019-07-03 Ed Schonberg <schonberg@adacore.com>
52
53 * inline.adb (Make_Loop_Labels_Unique): New procedure to modify
54 the source code of subprograms that are inlined by the
55 front-end, to prevent accidental duplication between loop labels
56 in the inlined code and the code surrounding the inlined call.
57
6d6f134e 582019-07-03 Hristian Kirtchev <kirtchev@adacore.com>
59
60 * doc/gnat_ugn/elaboration_order_handling_in_gnat.rst: Update
61 the section on resolving elaboration circularities to eliminate
62 certain combinations of switches which together do not produce
63 the desired effect and confuse users.
64 * gnat_ugn.texi: Regenerate.
65
f3e16ef4 662019-07-03 Arnaud Charlet <charlet@adacore.com>
67
68 * bindgen.adb (Gen_Main): Disable generation of reference to
69 Ada_Main_Program_Name for CCG.
70 * bindusg.adb (Display): Add -G to the command-line usage for
71 gnatbind.
72 * opt.ads (Generate_C_Code): Update comment.
73 * switch-b.adb (Scan_Binder_Switches): Add handling for -G.
74
f4a31b16 752019-07-03 Arnaud Charlet <charlet@adacore.com>
76
77 * sem_ch7.adb (Has_Referencer): Do not consider inlined
78 subprograms when generating C code, which allows us to generate
79 static inline subprograms.
80
2f65e9f7 812019-07-03 Justin Squirek <squirek@adacore.com>
82
83 * sem_ch6.adb (Check_Conformance): Add expression checking for
84 constant modifiers in anonymous access types (in addition to
85 "non-null" types) so that they are considered "matching" for
86 subsequent conformance tests.
87
c336ed70 882019-07-03 Arnaud Charlet <charlet@adacore.com>
89
90 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
91 Clarify wording on No_Multiple_Elaboration.
92 * gnat_rm.texi: Regenerate.
93
78611c86 942019-07-03 Ed Schonberg <schonberg@adacore.com>
95
96 * sem_ch8.adb (Find_Selected_Component): If the prefix is the
97 current instance of a type or subtype, complete the resolution
98 of the name by finding the component of the type denoted by the
99 selector name.
100
5a87a4d9 1012019-07-03 Eric Botcazou <ebotcazou@adacore.com>
102
103 * doc/gnat_rm/interfacing_to_other_languages.rst (Interfacing to C):
104 Document that boolean types with convention C now map to C99 bool.
105 * gnat_rm.texi: Regenerate.
106
371c539c 1072019-07-03 Javier Miranda <miranda@adacore.com>
108
109 * exp_attr.adb (Expand_Min_Max_Attribute): Code cleanup:
110 removing code that it is now never executed in the CCG compiler
111 (dead code).
112
89d2d652 1132019-07-02 Iain Sandoe <iain@sandoe.co.uk>
114
115 * libgnat/system-darwin-ppc.ads: Set Stack_Check_Probes True for
116 PPC Darwin.
117
d21e66fb 1182019-07-01 Ed Schonberg <schonberg@adacore.com>
119
120 * sem_ch12.adb (Is_Defaulted): New predicate in
121 Check_Formal_Package_Intance, to skip the conformance of checks
122 on parameters of a formal package that are defaulted,
123
7a42b778 1242019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
125
126 * checks.adb, exp_ch9.adb, exp_unst.adb, sem_ch4.adb,
127 sem_prag.adb, sem_spark.adb: Minor reformatting.
128
fc8ae496 1292019-07-01 Ed Schonberg <schonberg@adacore.com>
130
131 * sem_attr.adb (Analyze_Attribute, case Enum_Rep): Allow prefix
132 of attribute to be an attribute reference of a discrete type.
133
9d27ea41 1342019-07-01 Eric Botcazou <ebotcazou@adacore.com>
135
136 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Move up
137 handling of Has_Pragma_Inline_Always and deal with
138 Has_Pragma_No_Inline.
139
bcb8dcf3 1402019-07-01 Ed Schonberg <schonberg@adacore.com>
141
142 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type is
143 declared as a subtype of a private type with an inherited
144 discriminant constraint, its generated full base appears as a
145 record subtype, so we need to retrieve its oen base type so that
146 the inherited constraint can be applied to it.
147
d087b9ca 1482019-07-01 Yannick Moy <moy@adacore.com>
149
150 * sem_spark.adb: Completely rework the algorithm for ownership
151 checking, as the rules in SPARK RM have changed a lot.
152 * sem_spark.ads: Update comments.
153
fe48ee0a 1542019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
155
156 * gsocket.h (Has_Sockaddr_Len): Use the offset of sin_family offset in
157 the sockaddr_in structure to determine the existence of length field
158 before the sin_family.
159
b20f7e2c 1602019-07-01 Ed Schonberg <schonberg@adacore.com>
161
162 * sem_prag.adb (Analyze_Pragma, case Weak_External): Pragma only
163 applies to entities with run-time addresses, not to types.
164
374fdf94 1652019-07-01 Piotr Trojanek <trojanek@adacore.com>
166
167 * einfo.adb, sem_ch7.adb, sem_prag.adb, sem_util.adb: Update
168 references to the SPARK RM after the removal of Rule 7.1.4(5).
169
bf13a79d 1702019-07-01 Piotr Trojanek <trojanek@adacore.com>
171
172 * sysdep.c: Cleanup references to LynuxWorks in docs and
173 comments.
174
866fa2d0 1752019-07-01 Ed Schonberg <schonberg@adacore.com>
176
177 * checks.adb (Insert_Valid_Check): Do not apply validity check
178 to variable declared within a protected object that uses the
179 Lock_Free implementation, to prevent unwarranted constant
180 folding, because entities within such an object msut be treated
181 as volatile.
182
bcb5ab83 1832019-07-01 Eric Botcazou <ebotcazou@adacore.com>
184
185 * exp_ch9.adb (Check_Inlining): Deal with Has_Pragma_No_Inline.
186
2db33bd6 1872019-07-01 Ed Schonberg <schonberg@adacore.com>
188
189 * exp_unst.adb (Visit_Node, Check_Static_Type): Improve the
190 handling of private and incomplete types whose full view is an
191 access type, to detect additional uplevel references in dynamic
192 bounds. This is relevant to N_Free_Statement among others that
193 manipulate types whose full viww may be an access type.
194
6b4f0b7d 1952019-07-01 Pat Rogers <rogers@adacore.com>
196
197 * doc/gnat_rm/representation_clauses_and_pragmas.rst: Correct
198 size indicated for R as a component of an array.
199 * gnat_rm.texi: Regenerate.
200
cdee70d7 2012019-07-01 Justin Squirek <squirek@adacore.com>
202
203 * libgnat/s-win32.ads: Add definition for ULONG, modify
204 OVERLAPPED type, and add appropriate pragmas.
205
2cf822b7 2062019-07-01 Bob Duff <duff@adacore.com>
207
208 * gnat1drv.adb (gnat1drv): Call Write_ALI if the main unit is
209 ignored-ghost.
210
0a1ece97 2112019-07-01 Yannick Moy <moy@adacore.com>
212
213 * sem_ch4.adb (Operator_Check): Refine error message.
214
ee4279ef 2152019-07-01 Piotr Trojanek <trojanek@adacore.com>
216
217 * libgnat/a-calend.ads: Revert "Global => null" contracts on
218 non-pure routines.
219
2c6b4ada 2202019-07-01 Piotr Trojanek <trojanek@adacore.com>
221
222 * exp_attr.adb, libgnat/g-graphs.ads: Fix typos in comments:
223 componant -> component.
224
175c4526 2252019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
226
227 * libgnat/g-graphs.adb: Use type Directed_Graph rather than
228 Instance in various routines.
229 * libgnat/g-graphs.ads: Change type Instance to Directed_Graph.
230 Update various routines that mention the type.
231
a0d15509 2322019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
233
234 * libgnat/g-sets.adb: Use type Membership_Set rathern than
235 Instance in various routines.
236 * libgnat/g-sets.ads: Change type Instance to Membership_Set.
237 Update various routines that mention the type.
238
205a23a3 2392019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
240
241 * libgnat/g-lists.adb: Use type Doubly_Linked_List rather than
242 Instance in various routines.
243 * libgnat/g-lists.ads: Change type Instance to
244 Doubly_Linked_List. Update various routines that mention the
245 type.
246
17fdf8c2 2472019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
248
249 * libgnat/g-dynhta.adb: Use type Dynamic_Hash_Table rather than
250 Instance in various routines.
251 * libgnat/g-dynhta.ads: Change type Instance to
252 Dynamic_Hash_Table. Update various routines that mention the
253 type.
254
216ffc64 2552019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
256
257 * exp_attr.adb, exp_ch7.adb, exp_unst.adb, sem_ch3.adb,
258 sem_util.adb, uintp.adb, uintp.ads: Minor reformatting.
259
5051fe35 2602019-07-01 Javier Miranda <miranda@adacore.com>
261
262 * exp_attr.adb (Expand_Min_Max_Attribute): Disable expansion of
263 'Min/'Max on integer, enumeration, fixed point and floating
264 point types since the CCG backend now provides in file
265 standard.h routines to support it.
266
830a2a71 2672019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
268
269 * impunit.adb: Add GNAT.Graphs to list Non_Imp_File_Names_95.
270 * Makefile.rtl, gcc-interface/Make-lang.in: Register unit
271 GNAT.Graphs.
272 * libgnat/g-dynhta.adb: Various minor cleanups (use Present
273 rather than direct comparisons).
274 (Delete): Reimplement to use Delete_Node.
275 (Delete_Node): New routine.
276 (Destroy_Bucket): Invoke the provided destructor.
277 (Present): New routines.
278 * libgnat/g-dynhta.ads: Add new generic formal Destroy_Value.
279 Use better names for the components of iterators.
280 * libgnat/g-graphs.adb, libgnat/g-graphs.ads: New unit.
281 * libgnat/g-lists.adb: Various minor cleanups (use Present
282 rather than direct comparisons).
283 (Delete_Node): Invoke the provided destructor.
284 (Present): New routine.
285 * libgnat/g-lists.ads: Add new generic formal Destroy_Element.
286 Use better names for the components of iterators.
287 (Present): New routine.
288 * libgnat/g-sets.adb, libgnat/g-sets.ads (Destroy, Preset,
289 Reset): New routines.
290
b0111d94 2912019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
292
293 * libgnat/g-sothco.adb (Get_Address): Fix the case when AF_INET6
294 is not defined.
295
7362896b 2962019-07-01 Ed Schonberg <schonberg@adacore.com>
297
298 * exp_attr.adb (Expand_Attribute_Reference, case Invalid_Value):
299 Resolve result of call to Get_Simple_Init_Val, which may be a
300 conversion of a literal.
301
0dae8dc2 3022019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
303
304 * freeze.adb (Freeze_Expression): Remove the horrible useless
305 name hiding of N. Insert the freeze nodes generated by the
306 expression prior to the expression when the nearest enclosing
307 scope is transient.
308
487da8ff 3092019-07-01 Pierre-Marie de Rodat <derodat@adacore.com>
310
311 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix
312 formatting issues in the -gnatR section.
313 * gnat_ugn.texi: Regenerate.
314
1d79fa18 3152019-06-30 Iain Sandoe <iain@sandoe.co.uk>
316
317 * gnatlink.adb (Link_Step): Remove duplicate -static-libgcc switches.
318 Push -shared-libgcc explicitly, when it is the target default (unless
319 overidden by the static flag).
320 When the user has put an instance of shared/static-libgcc do not push
321 a duplicate of this.
322
a850edcd 3232019-06-29 Eric Botcazou <ebotcazou@adacore.com>
324
325 * gcc-interface/decl.c (gnat_to_gnu_entity): Beep up comment on SAVED,
326 and tweak comment on the assertion about the scopes of Itypes. Do not
327 skip the regular processing for Itypes that are E_Record_Subtype with
328 a Cloned_Subtype. Get the Cloned_Subtype for every E_Record_Subtype
329 if the type is dummy and hasn't got its own freeze node.
330 <E_Record_Subtype>: Save again the DECL of the Cloned_Subtype, if any.
331 <E_Access_Subtype>: Save again the DECL of the equivalent type.
332 (Gigi_Equivalent_Type) <E_Access_Subtype>: New case.
333
b1e46fb1 3342019-06-29 Eric Botcazou <ebotcazou@adacore.com>
335
336 * gcc-interface/utils.c (unchecked_convert): Tweak comment. Only skip
337 dereferences when padding to have the same size on both sides. Do it
338 for destination types with self-referential size too.
339
07e38949 3402019-06-29 Eric Botcazou <ebotcazou@adacore.com>
341
342 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the
343 type requires strict alignment, then set the RM size to the type size.
344 Rework handling of alignment and sizes of tagged types in ASIS mode.
345 (validate_size): Rename local variable and remove special handling for
346 strict-alignment types.
347 * gcc-interface/utils.c (finish_record_type): Constify local variables
348 and use properly typed constants.
349
f4409741 3502019-06-29 Eric Botcazou <ebotcazou@adacore.com>
351
352 * gcc-interface/decl.c (gnat_to_gnu_field): Rework error messages for
353 fields requiring strict alignment, add explicit test on Storage_Unit
354 for position and size, and mention type alignment for position.
355
5882c515 3562019-06-29 Eric Botcazou <ebotcazou@adacore.com>
357
358 * gcc-interface/trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on
359 the main variant of a type, if any.
360
d0de0a27 3612019-06-29 Eric Botcazou <ebotcazou@adacore.com>
362
363 * gcc-interface/decl.c (set_nonaliased_component_on_array_type): Add
364 missing guard for the presence of TYPE_CANONICAL.
365 (set_reverse_storage_order_on_array_type): Likewise.
366
2074c859 3672019-06-29 Eric Botcazou <ebotcazou@adacore.com>
368
369 * gcc-interface/gigi.h (make_packable_type): Remove default value.
370 (value_factor_p): Tweak prototype.
371 * gcc-interface/decl.c (gnat_to_gnu_entity): Add comment.
372 (gnat_to_gnu_component_type): Likewise.
373 (gnat_to_gnu_field): Likewise. Fetch the position of the field earlier
374 and simplify the condition under which the type is packed. Declare
375 local variable is_bitfield. Pass 1 as max_align to make_packable_type
376 if it is set to true.
377 (copy_and_substitute_in_layout): Pass 0 to make_packable_type.
378 * gcc-interface/utils.c (make_packable_array_type): New function.
379 (make_packable_type): Use it to rewrite the type of array field.
380 (maybe_pad_type): Pass align parameter to make_packable_type.
381 (create_field_decl): Minor tweaks.
382 (value_factor_p): Assert that FACTOR is a power of 2 and replace the
383 modulo computation by a masking operation.
384
83c6da22 3852019-06-25 Eric Botcazou <ebotcazou@adacore.com>
386
387 * gcc-interface/decl.c (gnat_to_gnu_entity): Remove superfluous test
388 in previous change.
389 * gcc-interface/gigi.h (maybe_character_type): Fix formatting.
390 (maybe_character_value): Likewise.
391
aaabc7bc 3922019-06-24 Jan Hubicka <jh@suse.cz>
393
394 * gcc-interface/decl.c (gnat_to_gnu_entity): Check that
395 type is array or integer prior checking string flag.
83c6da22 396 * gcc-interface/gigi.h (maybe_character_type): Likewise.
397 (maybe_character_value): Likewise.
aaabc7bc 398
5fe09a56 3992019-06-24 Martin Sebor <msebor@redhat.com>
400
401 * gcc-interface/utils.c (handle_nonnull_attribute): Quote attribute
402 name.
403
bd9331d6 4042019-06-18 Arnaud Charlet <charlet@adacore.com>
405
83c6da22 406 PR ada/80590
bd9331d6 407 * sem_ch5.adb (Analyze_Loop_Statement): Avoid exception propagation
408 during normal processing.
409
8a5a7d1c 4102019-06-17 Arnaud Charlet <charlet@adacore.com>
411
83c6da22 412 PR ada/80590
8a5a7d1c 413 * exp_ch9.adb (Expand_N_Delay_Relative_Statement): Swap the two
414 conditions to avoid a unnecessary exception propagation in the default
415 case.
416
580934f6 4172019-05-28 Eric Botcazou <ebotcazou@adacore.com>
418
419 * gcc-interface/utils.c (handle_stack_protect_attribute): Move around.
420
c8956236 4212019-05-28 Eric Botcazou <ebotcazou@adacore.com>
422
423 * doc/gnat_rm/implementation_defined_pragmas.rst (Machine_Attribute):
424 Document additional optional parameters.
425 * sem_prag.adb (Analyze_Pragma) <Pragma_Machine_Attribute>: Accept
426 more than one optional parameter.
427 * gcc-interface/decl.c (prepend_one_attribute_pragma): Alphabetize
428 the list of supported pragmas. Simplify the handling of parameters
429 and add support for more than one optional parameter.
430 * gcc-interface/utils.c (attr_cold_hot_exclusions): New constant.
431 (gnat_internal_attribute_table): Add entry for no_icf, noipa, flatten,
432 used, cold, hot, target and target_clones.
433 (begin_subprog_body): Do not create the RTL for the subprogram here.
434 (handle_noicf_attribute): New static function.
435 (handle_noipa_attribute): Likewise.
436 (handle_flatten_attribute): Likewise.
437 (handle_used_attribute): Likewise.
438 (handle_cold_attribute): Likewise.
439 (handle_hot_attribute): Likewise.
440 (handle_target_attribute): Likewise.
441 (handle_target_clones_attribute): Likewise.
442
62b762c2 4432019-05-28 Eric Botcazou <ebotcazou@adacore.com>
444
445 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Return 0
446 for 'Size too.
447 (Identifier_to_gnu): Use the actual subtype for a reference to a
448 packed array in a return statement.
449 (Attribute_to_gnu) <Attr_Size>: Do not strip VIEW_CONVERT_EXPRs from
450 the prefix in every case.
451
336a61a3 4522019-05-28 Eric Botcazou <ebotcazou@adacore.com>
453
454 * gcc-interface/trans.c (gnat_to_gnu): Remove superfluous tests on
455 Backend_Overflow_Checks_On_Target and rework comments.
456
983c5b5e 4572019-05-28 Eric Botcazou <ebotcazou@adacore.com>
458
459 * gcc-interface/trans.c (walk_nesting_tree): New static function.
460 (finalize_nrv): Use it to walk the entire nesting tree.
461
96b4b84e 4622019-05-28 Eric Botcazou <ebotcazou@adacore.com>
463
464 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Remove
465 obsolete test on Is_For_Access_Subtype.
466
0b74284e 4672019-05-28 Eric Botcazou <ebotcazou@adacore.com>
468
469 * gcc-interface/decl.c (components_to_record): Set a name on the type
470 created for the REP part, if any.
471 * gcc-interface/utils.c (finish_record_type): Only take the maximum
472 when merging sizes for a variant part at offset 0.
473 (merge_sizes): Rename has_rep parameter into max.
474
689dab9d 4752019-05-28 Eric Botcazou <ebotcazou@adacore.com>
476
477 * gcc-interface/utils.c (gnat_internal_attribute_table): Add support
478 for stack_protect attribute.
479 (handle_stack_protect_attribute): New static function.
480
804f7d39 4812019-05-28 Eric Botcazou <ebotcazou@adacore.com>
482
483 * gcc-interface/decl.c (intrin_arglists_compatible_p): Do not return
484 false if the internal builtin uses a variable list.
485
f07f94cc 4862019-05-27 Eric Botcazou <ebotcazou@adacore.com>
487
488 * gcc-interface/trans.c (Call_to_gnu): Do not initialize the temporary
489 created out of addressability concerns if it's for the _Init parameter
490 of an initialization procedure.
491
abfd658b 4922019-05-27 Eric Botcazou <ebotcazou@adacore.com>
493
494 * gcc-interface/ada-builtin-types.def: New file.
495 * gcc-interface/ada-builtins.def: Likewise.
496 * gcc-interface/ada-tree.h (BUILT_IN_LIKELY): New macro.
497 (BUILT_IN_UNLIKELY): Likewise.
498 * gcc-interface/trans.c (independent_iterations_p): Initialize the
499 auto-vector to 16 elements.
500 (Call_to_gnu): Remove local variable and change the vector of actual
501 parameters to an auto-vector. Do not convert actual parameters to
502 the argument type for front-end built-in functions. Add support for
503 front-end built-in functions.
504 (build_noreturn_cond): Use internal instead of built-in function.
505 * gcc-interface/utils.c (c_builtin_type): Include ada-builtin-types.def
506 (install_builtin_function_types): Likewise.
507 (install_builtin_functions): Include ada-builtins.def first.
508
caab73a2 5092019-05-27 Eric Botcazou <ebotcazou@adacore.com>
510
511 * gcc-interface/utils.c (maybe_pad_type): Issue the warning for the
512 specific case of component types preferably.
513
f1ca2388 5142019-05-27 Eric Botcazou <ebotcazou@adacore.com>
515
516 * gcc-interface/trans.c (Identifier_to_gnu): Minor tweaks.
517 (gnat_to_gnu): Do not convert the result if it is a reference to an
518 unconstrained array used as the prefix of an attribute reference that
519 requires an lvalue.
520
e3f3573c 5212019-05-27 Eric Botcazou <ebotcazou@adacore.com>
522
523 * gcc-interface/trans.c (Gigi_Types_Compatible): New predicate.
524 (Identifier_to_gnu): Use it to assert that the type of the identifier
525 and that of its entity are compatible for gigi. Rename a couple of
526 local variables and separate the processing of the result type.
527
2306cd17 5282019-05-27 Eric Botcazou <ebotcazou@adacore.com>
529
530 * gcc-interface/trans.c (Call_to_gnu): Use the unpadded type when
531 putting back an intermediate conversion the type of the actuals.
532
6e4e9378 5332019-05-27 Eric Botcazou <ebotcazou@adacore.com>
534
535 * gcc-interface/trans.c (gnat_to_gnu) <Shift operations>: Convert the
536 count to the unsigned version of its base type before proceeding.
537
85b9be9b 5382019-05-16 Martin Sebor <msebor@redhat.com>
539
3d6be0d5 540 * gcc-interface/trans.c (check_inlining_for_nested_subprog): Quote
541 reserved names.
85b9be9b 542
65d973ca 5432019-05-08 Arnaud Charlet <charlet@adacore.com>
544
545 * standard.ads.h: New file.
546
ff628b99 5472019-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
548
549 * gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
550 Honor DESTDIR.
551
ebd761d4 5522019-04-29 Michael K. Darling <darlingm@gmail.com>
553
554 * gnatvsn.ads: Bump Library_Version to 10.
555
5f260823 5562019-04-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
557 Bernd Edlinger <bernd.edlinger@hotmail.de>
558 Jakub Jelinek <jakub@redhat.com>
559
560 PR target/89093
561 * raise-gcc.c (TARGET_ATTRIBUTE): Define.
562 (continue_unwind, personality_body, PERSONALITY_FUNCTION): Add
563 TARGET_ATTRIBUTE.
564
d7ca95c0 5652019-04-07 Eric Botcazou <ebotcazou@adacore.com>
566
567 * libgnat/i-cexten.ads (CFloat_128): New type.
568
26b21081 5692019-03-22 Dmitriy Anisimkov <anisimko@adacore.com>
570
571 PR ada/89583
572 * libgnat/g-socket.adb (Bind_Socket, Connect_Socket,
573 Send_Socket): Fix the computation of structure lengths passed to
574 low level routines.
575 (Is_IPv6_Address): Fix the number of expected colons.
576
2f6d557f 5772019-03-11 Martin Liska <mliska@suse.cz>
578
d325ee67 579 * gcc-interface/misc.c (gnat_post_options): Wrap option name in string
580 format message and fix GNU coding style.
2f6d557f 581
c1ad6672 5822019-02-08 Eric Botcazou <ebotcazou@adacore.com>
583
584 * gcc-interface/trans.c (gnat_to_gnu) <N_Aggregate>: Minor tweak.
585 * gcc-interface/utils.c (convert): Do not pad when doing an unchecked
586 conversion here. Use TREE_CONSTANT throughout the function.
587 (unchecked_convert): Also pad if the source is a CONSTRUCTOR and the
588 destination is a more aligned array type or a larger aggregate type,
589 but not between original and packable versions of a type.
590
62a6ebbd 5912019-02-08 Eric Botcazou <ebotcazou@adacore.com>
592
593 * gcc-interface/utils.c (max_size) <tcc_unary>: Be prepared for an
594 operand with VOID_TYPE.
595
da383d19 5962019-02-08 Eric Botcazou <ebotcazou@adacore.com>
597
598 * gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the
599 entities of a package renaming another one.
600
09c123a0 6012019-02-08 Eric Botcazou <ebotcazou@adacore.com>
602
603 * gcc-interface/trans.c (Regular_Loop_to_gnu): Replace tests on
604 individual flag_unswitch_loops and flag_tree_loop_vectorize switches
605 with test on global optimize switch.
606 (Raise_Error_to_gnu): Likewise.
607
a9dd7273 6082019-02-07 Eric Botcazou <ebotcazou@adacore.com>
609
610 * libgnarl/s-linux__sparc.ads (ETIMEDOUT): Set to correct value.
611
4836c4f1 6122019-02-06 Arnaud Charlet <charlet@adacore.com>
613
614 * libgnarl/s-linux__x32.ads: Resync list of signals with s-linux.ads
615
6b56937c 6162019-01-27 Eric Botcazou <ebotcazou@adacore.com>
617
618 * repinfo.adb (List_Component_Layout): Remove superfluous space for
619 zero-sized field.
620 * gcc-interface/ada-tree.h (TYPE_IS_EXTRA_SUBTYPE_P): New macro.
621 * gcc-interface/gigi.h (create_extra_subtype): Declare.
622 * gcc-interface/decl.c (TYPE_ARRAY_SIZE_LIMIT): Likewise.
623 (update_n_elem): New function.
624 (gnat_to_gnu_entity): Use create_extra_subtype to create extra subtypes
625 instead of doing it manually.
626 <E_Array_Type>: Use update_n_elem to compute the maximum size. Use the
627 index type instead of base type for the bounds. Set TYPE_ARRAY_MAX_SIZE
628 of the array to the maximum size.
629 <E_Array_Subtype>: Create an extra subtype using the index type of the
630 base array type for self-referential bounds. Use update_n_elem to
631 compute the maximum size. Set TYPE_ARRAY_MAX_SIZE of the array to the
632 maximum size.
633 (gnat_to_gnu_field): Clear DECL_NONADDRESSABLE_P on discriminants.
634 * gcc-interface/misc.c (gnat_get_alias_set): Return the alias set of
635 the base type for an extra subtype.
636 (gnat_type_max_size): Remove obsolete code.
637 * gcc-interface/trans.c (Attribute_to_gnu): Minor tweak.
638 (can_be_lower_p): Deal with pathological types.
639 * gcc-interface/utils.c (create_extra_subtype): New function.
640 (create_field_decl): Minor tweak.
641 (max_size) <tcc_reference>: Compute a better value by using the extra
642 subtypes on the self-referential bounds.
643 <tcc_binary>: Rewrite. Deal with "negative value" in unsigned types.
644 <tcc_expression>: Likewise.
645 * gcc-interface/utils2.c (compare_arrays): Retrieve the original bounds
646 of the arrays upfront. Swap only if the second length is not constant.
647 Use comparisons on the original bounds consistently for the null tests.
648 (build_binary_op): Use TYPE_IS_EXTRA_SUBTYPE_P macro.
649 (build_allocator): Minor tweak.
650
ecb2c722 6512019-01-27 Eric Botcazou <ebotcazou@adacore.com>
652
653 * gcc-interface/decl.c (array_type_has_nonaliased_component): Return
654 the same value for every dimension of a multidimensional array type.
655
10f25579 6562019-01-26 Eric Botcazou <ebotcazou@adacore.com>
657
658 * gcc-interface/trans.c (Regular_Loop_to_gnu): Use the SLOC of the
659 iteration scheme, if present, throughout the translation.
660
aced6683 6612019-01-26 Eric Botcazou <ebotcazou@adacore.com>
662
663 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
664 DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned
665 by a call to memset if the LHS is a DECL.
666
18b4b30e 6672019-01-26 Eric Botcazou <ebotcazou@adacore.com>
668
669 * gcc-interface/trans.c (struct loop_info_d): Remove artificial field.
670 (Loop_Statement_to_gnu): Do not set it.
671
6dce35b7 6722019-01-26 Eric Botcazou <ebotcazou@adacore.com>
673
674 * gcc-interface/trans.c (Iterate_Acc_Clause_Arg): Fix formatting.
675 (Acc_gnat_to_gnu): Likewise.
676 (Acc_Data_to_gnu): Likewise.
677 (Acc_Var_to_gnu): Likewise.
678 (Acc_Reduc_to_gnu): Likewise.
679 (Acc_Size_List_to_gnu): Likewise.
680 (Pragma_to_gnu) <Pragma_Acc_Loop>: Likewise.
681 <Pragma_Acc_Data>): Likewise.
682 (find_loop_for): Remove default value for parameters.
683 * gcc-interface/trans.c (gnat_to_gnu) <N_Op_And>: Merge into...
684 <N_Op_Eq>): ...this.
685
f8cd11ee 6862019-01-26 Eric Botcazou <ebotcazou@adacore.com>
687
688 * gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on
689 the sign bit instead of on the sign of the value.
690 <PLUS_EXPR>: Turn addition of negative constant into subtraction.
691 <MULT_EXPR>: Add test for degenerate case.
692 <BIT_AND_EXPR>: Simplify.
693
9a3c51d9 6942019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
695
696 * s-oscons-tmplt.c (AF_INET6): Do not undefine for RTEMS.
697
07c11f2b 6982019-01-09 Sandra Loosemore <sandra@codesourcery.com>
699
700 PR other/16615
07c11f2b 701 * exp_ch11.adb: Change "can not" to "cannot".
702 * sem_ch4.adb: Likewise.
703
f4d3c071 7042019-01-09 Sandra Loosemore <sandra@codesourcery.com>
705
706 PR other/16615
f4d3c071 707 * exp_ch9.adb: Mechanically replace "can not" with "cannot".
708 * libgnat/s-regpat.ads: Likewise.
709 * par-ch4.adb: Likewise.
710 * set_targ.adb: Likewise.
711 * types.ads: Likewise.
712
902071d1 7132019-01-08 Justin Squirek <squirek@adacore.com>
714
715 Revert:
902071d1 716 2018-07-31 Justin Squirek <squirek@adacore.com>
717
76fb0465 718 * lib-writ.adb (Write_With_Lines): Modfiy the generation
719 of dependencies within ali files so that source unit
720 bodies are properly listed even if said bodies are
721 missing. Perform legacy behavior in GNATprove mode.
722 * lib-writ.ads: Modify documentation to reflect current
723 behavior.
902071d1 724
725 and:
902071d1 726 2018-09-26 Justin Squirek <squirek@adacore.com>
727
76fb0465 728 * lib-writ.adb, lib-writ.ads (Write_With_Lines): Add
729 documentation and an extra conditional check for RCI
730 units so that generated ali files will list the spec
731 only instead of a body when a body is not found.
902071d1 732
65a33d4a 7332019-01-04 Eric Botcazou <ebotcazou@adacore.com>
734
735 * gnatvsn.ads: Bump copyright year.
736
3d8932fd 7372019-01-01 Jakub Jelinek <jakub@redhat.com>
8e8f6434 738
fbd26352 739 Update copyright years.
740
277184bc 741 * gnat_ugn.texi: Bump @copying's copyright year.
742 * gnat_rm.texi: Likewise.
7dfbd804 743\f
3d8932fd 744Copyright (C) 2019 Free Software Foundation, Inc.
7dfbd804 745
746Copying and distribution of this file, with or without modification,
747are permitted in any medium without royalty provided the copyright
748notice and this notice are preserved.