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