]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
[Ada] Clarify wording on documentation for No_Multiple_Elaboration
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
c336ed70 12019-07-03 Arnaud Charlet <charlet@adacore.com>
2
3 * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst:
4 Clarify wording on No_Multiple_Elaboration.
5 * gnat_rm.texi: Regenerate.
6
78611c86 72019-07-03 Ed Schonberg <schonberg@adacore.com>
8
9 * sem_ch8.adb (Find_Selected_Component): If the prefix is the
10 current instance of a type or subtype, complete the resolution
11 of the name by finding the component of the type denoted by the
12 selector name.
13
5a87a4d9 142019-07-03 Eric Botcazou <ebotcazou@adacore.com>
15
16 * doc/gnat_rm/interfacing_to_other_languages.rst (Interfacing to C):
17 Document that boolean types with convention C now map to C99 bool.
18 * gnat_rm.texi: Regenerate.
19
371c539c 202019-07-03 Javier Miranda <miranda@adacore.com>
21
22 * exp_attr.adb (Expand_Min_Max_Attribute): Code cleanup:
23 removing code that it is now never executed in the CCG compiler
24 (dead code).
25
89d2d652 262019-07-02 Iain Sandoe <iain@sandoe.co.uk>
27
28 * libgnat/system-darwin-ppc.ads: Set Stack_Check_Probes True for
29 PPC Darwin.
30
d21e66fb 312019-07-01 Ed Schonberg <schonberg@adacore.com>
32
33 * sem_ch12.adb (Is_Defaulted): New predicate in
34 Check_Formal_Package_Intance, to skip the conformance of checks
35 on parameters of a formal package that are defaulted,
36
7a42b778 372019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
38
39 * checks.adb, exp_ch9.adb, exp_unst.adb, sem_ch4.adb,
40 sem_prag.adb, sem_spark.adb: Minor reformatting.
41
fc8ae496 422019-07-01 Ed Schonberg <schonberg@adacore.com>
43
44 * sem_attr.adb (Analyze_Attribute, case Enum_Rep): Allow prefix
45 of attribute to be an attribute reference of a discrete type.
46
9d27ea41 472019-07-01 Eric Botcazou <ebotcazou@adacore.com>
48
49 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Move up
50 handling of Has_Pragma_Inline_Always and deal with
51 Has_Pragma_No_Inline.
52
bcb8dcf3 532019-07-01 Ed Schonberg <schonberg@adacore.com>
54
55 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type is
56 declared as a subtype of a private type with an inherited
57 discriminant constraint, its generated full base appears as a
58 record subtype, so we need to retrieve its oen base type so that
59 the inherited constraint can be applied to it.
60
d087b9ca 612019-07-01 Yannick Moy <moy@adacore.com>
62
63 * sem_spark.adb: Completely rework the algorithm for ownership
64 checking, as the rules in SPARK RM have changed a lot.
65 * sem_spark.ads: Update comments.
66
fe48ee0a 672019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
68
69 * gsocket.h (Has_Sockaddr_Len): Use the offset of sin_family offset in
70 the sockaddr_in structure to determine the existence of length field
71 before the sin_family.
72
b20f7e2c 732019-07-01 Ed Schonberg <schonberg@adacore.com>
74
75 * sem_prag.adb (Analyze_Pragma, case Weak_External): Pragma only
76 applies to entities with run-time addresses, not to types.
77
374fdf94 782019-07-01 Piotr Trojanek <trojanek@adacore.com>
79
80 * einfo.adb, sem_ch7.adb, sem_prag.adb, sem_util.adb: Update
81 references to the SPARK RM after the removal of Rule 7.1.4(5).
82
bf13a79d 832019-07-01 Piotr Trojanek <trojanek@adacore.com>
84
85 * sysdep.c: Cleanup references to LynuxWorks in docs and
86 comments.
87
866fa2d0 882019-07-01 Ed Schonberg <schonberg@adacore.com>
89
90 * checks.adb (Insert_Valid_Check): Do not apply validity check
91 to variable declared within a protected object that uses the
92 Lock_Free implementation, to prevent unwarranted constant
93 folding, because entities within such an object msut be treated
94 as volatile.
95
bcb5ab83 962019-07-01 Eric Botcazou <ebotcazou@adacore.com>
97
98 * exp_ch9.adb (Check_Inlining): Deal with Has_Pragma_No_Inline.
99
2db33bd6 1002019-07-01 Ed Schonberg <schonberg@adacore.com>
101
102 * exp_unst.adb (Visit_Node, Check_Static_Type): Improve the
103 handling of private and incomplete types whose full view is an
104 access type, to detect additional uplevel references in dynamic
105 bounds. This is relevant to N_Free_Statement among others that
106 manipulate types whose full viww may be an access type.
107
6b4f0b7d 1082019-07-01 Pat Rogers <rogers@adacore.com>
109
110 * doc/gnat_rm/representation_clauses_and_pragmas.rst: Correct
111 size indicated for R as a component of an array.
112 * gnat_rm.texi: Regenerate.
113
cdee70d7 1142019-07-01 Justin Squirek <squirek@adacore.com>
115
116 * libgnat/s-win32.ads: Add definition for ULONG, modify
117 OVERLAPPED type, and add appropriate pragmas.
118
2cf822b7 1192019-07-01 Bob Duff <duff@adacore.com>
120
121 * gnat1drv.adb (gnat1drv): Call Write_ALI if the main unit is
122 ignored-ghost.
123
0a1ece97 1242019-07-01 Yannick Moy <moy@adacore.com>
125
126 * sem_ch4.adb (Operator_Check): Refine error message.
127
ee4279ef 1282019-07-01 Piotr Trojanek <trojanek@adacore.com>
129
130 * libgnat/a-calend.ads: Revert "Global => null" contracts on
131 non-pure routines.
132
2c6b4ada 1332019-07-01 Piotr Trojanek <trojanek@adacore.com>
134
135 * exp_attr.adb, libgnat/g-graphs.ads: Fix typos in comments:
136 componant -> component.
137
175c4526 1382019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
139
140 * libgnat/g-graphs.adb: Use type Directed_Graph rather than
141 Instance in various routines.
142 * libgnat/g-graphs.ads: Change type Instance to Directed_Graph.
143 Update various routines that mention the type.
144
a0d15509 1452019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
146
147 * libgnat/g-sets.adb: Use type Membership_Set rathern than
148 Instance in various routines.
149 * libgnat/g-sets.ads: Change type Instance to Membership_Set.
150 Update various routines that mention the type.
151
205a23a3 1522019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
153
154 * libgnat/g-lists.adb: Use type Doubly_Linked_List rather than
155 Instance in various routines.
156 * libgnat/g-lists.ads: Change type Instance to
157 Doubly_Linked_List. Update various routines that mention the
158 type.
159
17fdf8c2 1602019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
161
162 * libgnat/g-dynhta.adb: Use type Dynamic_Hash_Table rather than
163 Instance in various routines.
164 * libgnat/g-dynhta.ads: Change type Instance to
165 Dynamic_Hash_Table. Update various routines that mention the
166 type.
167
216ffc64 1682019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
169
170 * exp_attr.adb, exp_ch7.adb, exp_unst.adb, sem_ch3.adb,
171 sem_util.adb, uintp.adb, uintp.ads: Minor reformatting.
172
5051fe35 1732019-07-01 Javier Miranda <miranda@adacore.com>
174
175 * exp_attr.adb (Expand_Min_Max_Attribute): Disable expansion of
176 'Min/'Max on integer, enumeration, fixed point and floating
177 point types since the CCG backend now provides in file
178 standard.h routines to support it.
179
830a2a71 1802019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
181
182 * impunit.adb: Add GNAT.Graphs to list Non_Imp_File_Names_95.
183 * Makefile.rtl, gcc-interface/Make-lang.in: Register unit
184 GNAT.Graphs.
185 * libgnat/g-dynhta.adb: Various minor cleanups (use Present
186 rather than direct comparisons).
187 (Delete): Reimplement to use Delete_Node.
188 (Delete_Node): New routine.
189 (Destroy_Bucket): Invoke the provided destructor.
190 (Present): New routines.
191 * libgnat/g-dynhta.ads: Add new generic formal Destroy_Value.
192 Use better names for the components of iterators.
193 * libgnat/g-graphs.adb, libgnat/g-graphs.ads: New unit.
194 * libgnat/g-lists.adb: Various minor cleanups (use Present
195 rather than direct comparisons).
196 (Delete_Node): Invoke the provided destructor.
197 (Present): New routine.
198 * libgnat/g-lists.ads: Add new generic formal Destroy_Element.
199 Use better names for the components of iterators.
200 (Present): New routine.
201 * libgnat/g-sets.adb, libgnat/g-sets.ads (Destroy, Preset,
202 Reset): New routines.
203
b0111d94 2042019-07-01 Dmitriy Anisimkov <anisimko@adacore.com>
205
206 * libgnat/g-sothco.adb (Get_Address): Fix the case when AF_INET6
207 is not defined.
208
7362896b 2092019-07-01 Ed Schonberg <schonberg@adacore.com>
210
211 * exp_attr.adb (Expand_Attribute_Reference, case Invalid_Value):
212 Resolve result of call to Get_Simple_Init_Val, which may be a
213 conversion of a literal.
214
0dae8dc2 2152019-07-01 Hristian Kirtchev <kirtchev@adacore.com>
216
217 * freeze.adb (Freeze_Expression): Remove the horrible useless
218 name hiding of N. Insert the freeze nodes generated by the
219 expression prior to the expression when the nearest enclosing
220 scope is transient.
221
487da8ff 2222019-07-01 Pierre-Marie de Rodat <derodat@adacore.com>
223
224 * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix
225 formatting issues in the -gnatR section.
226 * gnat_ugn.texi: Regenerate.
227
1d79fa18 2282019-06-30 Iain Sandoe <iain@sandoe.co.uk>
229
230 * gnatlink.adb (Link_Step): Remove duplicate -static-libgcc switches.
231 Push -shared-libgcc explicitly, when it is the target default (unless
232 overidden by the static flag).
233 When the user has put an instance of shared/static-libgcc do not push
234 a duplicate of this.
235
a850edcd 2362019-06-29 Eric Botcazou <ebotcazou@adacore.com>
237
238 * gcc-interface/decl.c (gnat_to_gnu_entity): Beep up comment on SAVED,
239 and tweak comment on the assertion about the scopes of Itypes. Do not
240 skip the regular processing for Itypes that are E_Record_Subtype with
241 a Cloned_Subtype. Get the Cloned_Subtype for every E_Record_Subtype
242 if the type is dummy and hasn't got its own freeze node.
243 <E_Record_Subtype>: Save again the DECL of the Cloned_Subtype, if any.
244 <E_Access_Subtype>: Save again the DECL of the equivalent type.
245 (Gigi_Equivalent_Type) <E_Access_Subtype>: New case.
246
b1e46fb1 2472019-06-29 Eric Botcazou <ebotcazou@adacore.com>
248
249 * gcc-interface/utils.c (unchecked_convert): Tweak comment. Only skip
250 dereferences when padding to have the same size on both sides. Do it
251 for destination types with self-referential size too.
252
07e38949 2532019-06-29 Eric Botcazou <ebotcazou@adacore.com>
254
255 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the
256 type requires strict alignment, then set the RM size to the type size.
257 Rework handling of alignment and sizes of tagged types in ASIS mode.
258 (validate_size): Rename local variable and remove special handling for
259 strict-alignment types.
260 * gcc-interface/utils.c (finish_record_type): Constify local variables
261 and use properly typed constants.
262
f4409741 2632019-06-29 Eric Botcazou <ebotcazou@adacore.com>
264
265 * gcc-interface/decl.c (gnat_to_gnu_field): Rework error messages for
266 fields requiring strict alignment, add explicit test on Storage_Unit
267 for position and size, and mention type alignment for position.
268
5882c515 2692019-06-29 Eric Botcazou <ebotcazou@adacore.com>
270
271 * gcc-interface/trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on
272 the main variant of a type, if any.
273
d0de0a27 2742019-06-29 Eric Botcazou <ebotcazou@adacore.com>
275
276 * gcc-interface/decl.c (set_nonaliased_component_on_array_type): Add
277 missing guard for the presence of TYPE_CANONICAL.
278 (set_reverse_storage_order_on_array_type): Likewise.
279
2074c859 2802019-06-29 Eric Botcazou <ebotcazou@adacore.com>
281
282 * gcc-interface/gigi.h (make_packable_type): Remove default value.
283 (value_factor_p): Tweak prototype.
284 * gcc-interface/decl.c (gnat_to_gnu_entity): Add comment.
285 (gnat_to_gnu_component_type): Likewise.
286 (gnat_to_gnu_field): Likewise. Fetch the position of the field earlier
287 and simplify the condition under which the type is packed. Declare
288 local variable is_bitfield. Pass 1 as max_align to make_packable_type
289 if it is set to true.
290 (copy_and_substitute_in_layout): Pass 0 to make_packable_type.
291 * gcc-interface/utils.c (make_packable_array_type): New function.
292 (make_packable_type): Use it to rewrite the type of array field.
293 (maybe_pad_type): Pass align parameter to make_packable_type.
294 (create_field_decl): Minor tweaks.
295 (value_factor_p): Assert that FACTOR is a power of 2 and replace the
296 modulo computation by a masking operation.
297
83c6da22 2982019-06-25 Eric Botcazou <ebotcazou@adacore.com>
299
300 * gcc-interface/decl.c (gnat_to_gnu_entity): Remove superfluous test
301 in previous change.
302 * gcc-interface/gigi.h (maybe_character_type): Fix formatting.
303 (maybe_character_value): Likewise.
304
aaabc7bc 3052019-06-24 Jan Hubicka <jh@suse.cz>
306
307 * gcc-interface/decl.c (gnat_to_gnu_entity): Check that
308 type is array or integer prior checking string flag.
83c6da22 309 * gcc-interface/gigi.h (maybe_character_type): Likewise.
310 (maybe_character_value): Likewise.
aaabc7bc 311
5fe09a56 3122019-06-24 Martin Sebor <msebor@redhat.com>
313
314 * gcc-interface/utils.c (handle_nonnull_attribute): Quote attribute
315 name.
316
bd9331d6 3172019-06-18 Arnaud Charlet <charlet@adacore.com>
318
83c6da22 319 PR ada/80590
bd9331d6 320 * sem_ch5.adb (Analyze_Loop_Statement): Avoid exception propagation
321 during normal processing.
322
8a5a7d1c 3232019-06-17 Arnaud Charlet <charlet@adacore.com>
324
83c6da22 325 PR ada/80590
8a5a7d1c 326 * exp_ch9.adb (Expand_N_Delay_Relative_Statement): Swap the two
327 conditions to avoid a unnecessary exception propagation in the default
328 case.
329
580934f6 3302019-05-28 Eric Botcazou <ebotcazou@adacore.com>
331
332 * gcc-interface/utils.c (handle_stack_protect_attribute): Move around.
333
c8956236 3342019-05-28 Eric Botcazou <ebotcazou@adacore.com>
335
336 * doc/gnat_rm/implementation_defined_pragmas.rst (Machine_Attribute):
337 Document additional optional parameters.
338 * sem_prag.adb (Analyze_Pragma) <Pragma_Machine_Attribute>: Accept
339 more than one optional parameter.
340 * gcc-interface/decl.c (prepend_one_attribute_pragma): Alphabetize
341 the list of supported pragmas. Simplify the handling of parameters
342 and add support for more than one optional parameter.
343 * gcc-interface/utils.c (attr_cold_hot_exclusions): New constant.
344 (gnat_internal_attribute_table): Add entry for no_icf, noipa, flatten,
345 used, cold, hot, target and target_clones.
346 (begin_subprog_body): Do not create the RTL for the subprogram here.
347 (handle_noicf_attribute): New static function.
348 (handle_noipa_attribute): Likewise.
349 (handle_flatten_attribute): Likewise.
350 (handle_used_attribute): Likewise.
351 (handle_cold_attribute): Likewise.
352 (handle_hot_attribute): Likewise.
353 (handle_target_attribute): Likewise.
354 (handle_target_clones_attribute): Likewise.
355
62b762c2 3562019-05-28 Eric Botcazou <ebotcazou@adacore.com>
357
358 * gcc-interface/trans.c (lvalue_required_for_attribute_p): Return 0
359 for 'Size too.
360 (Identifier_to_gnu): Use the actual subtype for a reference to a
361 packed array in a return statement.
362 (Attribute_to_gnu) <Attr_Size>: Do not strip VIEW_CONVERT_EXPRs from
363 the prefix in every case.
364
336a61a3 3652019-05-28 Eric Botcazou <ebotcazou@adacore.com>
366
367 * gcc-interface/trans.c (gnat_to_gnu): Remove superfluous tests on
368 Backend_Overflow_Checks_On_Target and rework comments.
369
983c5b5e 3702019-05-28 Eric Botcazou <ebotcazou@adacore.com>
371
372 * gcc-interface/trans.c (walk_nesting_tree): New static function.
373 (finalize_nrv): Use it to walk the entire nesting tree.
374
96b4b84e 3752019-05-28 Eric Botcazou <ebotcazou@adacore.com>
376
377 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Remove
378 obsolete test on Is_For_Access_Subtype.
379
0b74284e 3802019-05-28 Eric Botcazou <ebotcazou@adacore.com>
381
382 * gcc-interface/decl.c (components_to_record): Set a name on the type
383 created for the REP part, if any.
384 * gcc-interface/utils.c (finish_record_type): Only take the maximum
385 when merging sizes for a variant part at offset 0.
386 (merge_sizes): Rename has_rep parameter into max.
387
689dab9d 3882019-05-28 Eric Botcazou <ebotcazou@adacore.com>
389
390 * gcc-interface/utils.c (gnat_internal_attribute_table): Add support
391 for stack_protect attribute.
392 (handle_stack_protect_attribute): New static function.
393
804f7d39 3942019-05-28 Eric Botcazou <ebotcazou@adacore.com>
395
396 * gcc-interface/decl.c (intrin_arglists_compatible_p): Do not return
397 false if the internal builtin uses a variable list.
398
f07f94cc 3992019-05-27 Eric Botcazou <ebotcazou@adacore.com>
400
401 * gcc-interface/trans.c (Call_to_gnu): Do not initialize the temporary
402 created out of addressability concerns if it's for the _Init parameter
403 of an initialization procedure.
404
abfd658b 4052019-05-27 Eric Botcazou <ebotcazou@adacore.com>
406
407 * gcc-interface/ada-builtin-types.def: New file.
408 * gcc-interface/ada-builtins.def: Likewise.
409 * gcc-interface/ada-tree.h (BUILT_IN_LIKELY): New macro.
410 (BUILT_IN_UNLIKELY): Likewise.
411 * gcc-interface/trans.c (independent_iterations_p): Initialize the
412 auto-vector to 16 elements.
413 (Call_to_gnu): Remove local variable and change the vector of actual
414 parameters to an auto-vector. Do not convert actual parameters to
415 the argument type for front-end built-in functions. Add support for
416 front-end built-in functions.
417 (build_noreturn_cond): Use internal instead of built-in function.
418 * gcc-interface/utils.c (c_builtin_type): Include ada-builtin-types.def
419 (install_builtin_function_types): Likewise.
420 (install_builtin_functions): Include ada-builtins.def first.
421
caab73a2 4222019-05-27 Eric Botcazou <ebotcazou@adacore.com>
423
424 * gcc-interface/utils.c (maybe_pad_type): Issue the warning for the
425 specific case of component types preferably.
426
f1ca2388 4272019-05-27 Eric Botcazou <ebotcazou@adacore.com>
428
429 * gcc-interface/trans.c (Identifier_to_gnu): Minor tweaks.
430 (gnat_to_gnu): Do not convert the result if it is a reference to an
431 unconstrained array used as the prefix of an attribute reference that
432 requires an lvalue.
433
e3f3573c 4342019-05-27 Eric Botcazou <ebotcazou@adacore.com>
435
436 * gcc-interface/trans.c (Gigi_Types_Compatible): New predicate.
437 (Identifier_to_gnu): Use it to assert that the type of the identifier
438 and that of its entity are compatible for gigi. Rename a couple of
439 local variables and separate the processing of the result type.
440
2306cd17 4412019-05-27 Eric Botcazou <ebotcazou@adacore.com>
442
443 * gcc-interface/trans.c (Call_to_gnu): Use the unpadded type when
444 putting back an intermediate conversion the type of the actuals.
445
6e4e9378 4462019-05-27 Eric Botcazou <ebotcazou@adacore.com>
447
448 * gcc-interface/trans.c (gnat_to_gnu) <Shift operations>: Convert the
449 count to the unsigned version of its base type before proceeding.
450
85b9be9b 4512019-05-16 Martin Sebor <msebor@redhat.com>
452
3d6be0d5 453 * gcc-interface/trans.c (check_inlining_for_nested_subprog): Quote
454 reserved names.
85b9be9b 455
65d973ca 4562019-05-08 Arnaud Charlet <charlet@adacore.com>
457
458 * standard.ads.h: New file.
459
ff628b99 4602019-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
461
462 * gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
463 Honor DESTDIR.
464
ebd761d4 4652019-04-29 Michael K. Darling <darlingm@gmail.com>
466
467 * gnatvsn.ads: Bump Library_Version to 10.
468
5f260823 4692019-04-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
470 Bernd Edlinger <bernd.edlinger@hotmail.de>
471 Jakub Jelinek <jakub@redhat.com>
472
473 PR target/89093
474 * raise-gcc.c (TARGET_ATTRIBUTE): Define.
475 (continue_unwind, personality_body, PERSONALITY_FUNCTION): Add
476 TARGET_ATTRIBUTE.
477
d7ca95c0 4782019-04-07 Eric Botcazou <ebotcazou@adacore.com>
479
480 * libgnat/i-cexten.ads (CFloat_128): New type.
481
26b21081 4822019-03-22 Dmitriy Anisimkov <anisimko@adacore.com>
483
484 PR ada/89583
485 * libgnat/g-socket.adb (Bind_Socket, Connect_Socket,
486 Send_Socket): Fix the computation of structure lengths passed to
487 low level routines.
488 (Is_IPv6_Address): Fix the number of expected colons.
489
2f6d557f 4902019-03-11 Martin Liska <mliska@suse.cz>
491
d325ee67 492 * gcc-interface/misc.c (gnat_post_options): Wrap option name in string
493 format message and fix GNU coding style.
2f6d557f 494
c1ad6672 4952019-02-08 Eric Botcazou <ebotcazou@adacore.com>
496
497 * gcc-interface/trans.c (gnat_to_gnu) <N_Aggregate>: Minor tweak.
498 * gcc-interface/utils.c (convert): Do not pad when doing an unchecked
499 conversion here. Use TREE_CONSTANT throughout the function.
500 (unchecked_convert): Also pad if the source is a CONSTRUCTOR and the
501 destination is a more aligned array type or a larger aggregate type,
502 but not between original and packable versions of a type.
503
62a6ebbd 5042019-02-08 Eric Botcazou <ebotcazou@adacore.com>
505
506 * gcc-interface/utils.c (max_size) <tcc_unary>: Be prepared for an
507 operand with VOID_TYPE.
508
da383d19 5092019-02-08 Eric Botcazou <ebotcazou@adacore.com>
510
511 * gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the
512 entities of a package renaming another one.
513
09c123a0 5142019-02-08 Eric Botcazou <ebotcazou@adacore.com>
515
516 * gcc-interface/trans.c (Regular_Loop_to_gnu): Replace tests on
517 individual flag_unswitch_loops and flag_tree_loop_vectorize switches
518 with test on global optimize switch.
519 (Raise_Error_to_gnu): Likewise.
520
a9dd7273 5212019-02-07 Eric Botcazou <ebotcazou@adacore.com>
522
523 * libgnarl/s-linux__sparc.ads (ETIMEDOUT): Set to correct value.
524
4836c4f1 5252019-02-06 Arnaud Charlet <charlet@adacore.com>
526
527 * libgnarl/s-linux__x32.ads: Resync list of signals with s-linux.ads
528
6b56937c 5292019-01-27 Eric Botcazou <ebotcazou@adacore.com>
530
531 * repinfo.adb (List_Component_Layout): Remove superfluous space for
532 zero-sized field.
533 * gcc-interface/ada-tree.h (TYPE_IS_EXTRA_SUBTYPE_P): New macro.
534 * gcc-interface/gigi.h (create_extra_subtype): Declare.
535 * gcc-interface/decl.c (TYPE_ARRAY_SIZE_LIMIT): Likewise.
536 (update_n_elem): New function.
537 (gnat_to_gnu_entity): Use create_extra_subtype to create extra subtypes
538 instead of doing it manually.
539 <E_Array_Type>: Use update_n_elem to compute the maximum size. Use the
540 index type instead of base type for the bounds. Set TYPE_ARRAY_MAX_SIZE
541 of the array to the maximum size.
542 <E_Array_Subtype>: Create an extra subtype using the index type of the
543 base array type for self-referential bounds. Use update_n_elem to
544 compute the maximum size. Set TYPE_ARRAY_MAX_SIZE of the array to the
545 maximum size.
546 (gnat_to_gnu_field): Clear DECL_NONADDRESSABLE_P on discriminants.
547 * gcc-interface/misc.c (gnat_get_alias_set): Return the alias set of
548 the base type for an extra subtype.
549 (gnat_type_max_size): Remove obsolete code.
550 * gcc-interface/trans.c (Attribute_to_gnu): Minor tweak.
551 (can_be_lower_p): Deal with pathological types.
552 * gcc-interface/utils.c (create_extra_subtype): New function.
553 (create_field_decl): Minor tweak.
554 (max_size) <tcc_reference>: Compute a better value by using the extra
555 subtypes on the self-referential bounds.
556 <tcc_binary>: Rewrite. Deal with "negative value" in unsigned types.
557 <tcc_expression>: Likewise.
558 * gcc-interface/utils2.c (compare_arrays): Retrieve the original bounds
559 of the arrays upfront. Swap only if the second length is not constant.
560 Use comparisons on the original bounds consistently for the null tests.
561 (build_binary_op): Use TYPE_IS_EXTRA_SUBTYPE_P macro.
562 (build_allocator): Minor tweak.
563
ecb2c722 5642019-01-27 Eric Botcazou <ebotcazou@adacore.com>
565
566 * gcc-interface/decl.c (array_type_has_nonaliased_component): Return
567 the same value for every dimension of a multidimensional array type.
568
10f25579 5692019-01-26 Eric Botcazou <ebotcazou@adacore.com>
570
571 * gcc-interface/trans.c (Regular_Loop_to_gnu): Use the SLOC of the
572 iteration scheme, if present, throughout the translation.
573
aced6683 5742019-01-26 Eric Botcazou <ebotcazou@adacore.com>
575
576 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
577 DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned
578 by a call to memset if the LHS is a DECL.
579
18b4b30e 5802019-01-26 Eric Botcazou <ebotcazou@adacore.com>
581
582 * gcc-interface/trans.c (struct loop_info_d): Remove artificial field.
583 (Loop_Statement_to_gnu): Do not set it.
584
6dce35b7 5852019-01-26 Eric Botcazou <ebotcazou@adacore.com>
586
587 * gcc-interface/trans.c (Iterate_Acc_Clause_Arg): Fix formatting.
588 (Acc_gnat_to_gnu): Likewise.
589 (Acc_Data_to_gnu): Likewise.
590 (Acc_Var_to_gnu): Likewise.
591 (Acc_Reduc_to_gnu): Likewise.
592 (Acc_Size_List_to_gnu): Likewise.
593 (Pragma_to_gnu) <Pragma_Acc_Loop>: Likewise.
594 <Pragma_Acc_Data>): Likewise.
595 (find_loop_for): Remove default value for parameters.
596 * gcc-interface/trans.c (gnat_to_gnu) <N_Op_And>: Merge into...
597 <N_Op_Eq>): ...this.
598
f8cd11ee 5992019-01-26 Eric Botcazou <ebotcazou@adacore.com>
600
601 * gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on
602 the sign bit instead of on the sign of the value.
603 <PLUS_EXPR>: Turn addition of negative constant into subtraction.
604 <MULT_EXPR>: Add test for degenerate case.
605 <BIT_AND_EXPR>: Simplify.
606
9a3c51d9 6072019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
608
609 * s-oscons-tmplt.c (AF_INET6): Do not undefine for RTEMS.
610
07c11f2b 6112019-01-09 Sandra Loosemore <sandra@codesourcery.com>
612
613 PR other/16615
07c11f2b 614 * exp_ch11.adb: Change "can not" to "cannot".
615 * sem_ch4.adb: Likewise.
616
f4d3c071 6172019-01-09 Sandra Loosemore <sandra@codesourcery.com>
618
619 PR other/16615
f4d3c071 620 * exp_ch9.adb: Mechanically replace "can not" with "cannot".
621 * libgnat/s-regpat.ads: Likewise.
622 * par-ch4.adb: Likewise.
623 * set_targ.adb: Likewise.
624 * types.ads: Likewise.
625
902071d1 6262019-01-08 Justin Squirek <squirek@adacore.com>
627
628 Revert:
902071d1 629 2018-07-31 Justin Squirek <squirek@adacore.com>
630
76fb0465 631 * lib-writ.adb (Write_With_Lines): Modfiy the generation
632 of dependencies within ali files so that source unit
633 bodies are properly listed even if said bodies are
634 missing. Perform legacy behavior in GNATprove mode.
635 * lib-writ.ads: Modify documentation to reflect current
636 behavior.
902071d1 637
638 and:
902071d1 639 2018-09-26 Justin Squirek <squirek@adacore.com>
640
76fb0465 641 * lib-writ.adb, lib-writ.ads (Write_With_Lines): Add
642 documentation and an extra conditional check for RCI
643 units so that generated ali files will list the spec
644 only instead of a body when a body is not found.
902071d1 645
65a33d4a 6462019-01-04 Eric Botcazou <ebotcazou@adacore.com>
647
648 * gnatvsn.ads: Bump copyright year.
649
3d8932fd 6502019-01-01 Jakub Jelinek <jakub@redhat.com>
8e8f6434 651
fbd26352 652 Update copyright years.
653
277184bc 654 * gnat_ugn.texi: Bump @copying's copyright year.
655 * gnat_rm.texi: Likewise.
7dfbd804 656\f
3d8932fd 657Copyright (C) 2019 Free Software Foundation, Inc.
7dfbd804 658
659Copying and distribution of this file, with or without modification,
660are permitted in any medium without royalty provided the copyright
661notice and this notice are preserved.