]>
Commit | Line | Data |
---|---|---|
c65d33a8 | 1 | 2019-07-04 Yannick Moy <moy@adacore.com> |
2 | ||
3 | * sem_util.adb (Yields_Synchronized_Object): Adapt to new SPARK | |
4 | rule. | |
5 | ||
afd77d39 | 6 | 2019-07-04 Yannick Moy <moy@adacore.com> |
7 | ||
8 | * sem_spark.adb (Check_Statement): Only check permission of | |
9 | object in extended return when it is of a deep type. | |
10 | ||
2281b807 | 11 | 2019-07-04 Justin Squirek <squirek@adacore.com> |
12 | ||
13 | * sem_ch12.adb (Perform_Appropriate_Analysis): Added for | |
14 | selecting which type of analysis based on wheither the | |
15 | instantiation is a generic at the library-level. In which case | |
16 | expansion during analysis. | |
17 | (Preanalyze_Actuals): Modify calls to Analyze to use the new | |
18 | routine. | |
19 | ||
542b3e26 | 20 | 2019-07-04 Ed Schonberg <schonberg@adacore.com> |
21 | ||
22 | * exp_unst.adb: Handle conditional expressions. | |
23 | ||
7754aad4 | 24 | 2019-07-04 Yannick Moy <moy@adacore.com> |
25 | ||
26 | * sem_spark.adb (Check_Package_Spec, Check_Package_Body): Only | |
27 | analyze parts of the code marked in SPARK. | |
28 | ||
3843c1bd | 29 | 2019-07-04 Hristian Kirtchev <kirtchev@adacore.com> |
30 | ||
31 | * erroutc.adb, exp_aggr.adb, inline.adb, opt.adb, sem_ch3.adb: | |
32 | Minor reformatting. | |
33 | ||
5bc0f990 | 34 | 2019-07-04 Yannick Moy <moy@adacore.com> |
35 | ||
36 | * sem_spark.adb (Explanation, Get_Expl): New functions to get | |
37 | the explanation for a permission mismatch. | |
38 | (Perm_Error, Perm_Mismatch, Perm_Error_Loop_Exit): Take | |
39 | explanation into account for issuing a more precise error | |
40 | message. | |
41 | (Set_Perm_Prefixes, Set_Perm_Extensions, | |
42 | Set_Perm_Extensions_Move): Pass suitable argument for the | |
43 | explanation node. | |
44 | ||
11903e68 | 45 | 2019-07-04 Arnaud Charlet <charlet@adacore.com> |
46 | ||
47 | * exp_aggr.adb (In_Place_Assign_OK): Moved to top level and add | |
48 | support for record aggregates. | |
49 | (Component_Check): Use Is_CCG_Supported_Aggregate instead of a | |
50 | similar local predicate. | |
51 | (Convert_To_Assignments): Take advantage of In_Place_Assign_OK | |
52 | predicate when possible. | |
53 | (Is_CCG_Supported_Aggregate): Return False for records with | |
54 | representation clauses and fix the logic for dealing with nested | |
55 | aggregates. | |
56 | ||
b0c19ea3 | 57 | 2019-07-04 Piotr Trojanek <trojanek@adacore.com> |
58 | ||
59 | * opt.adb (Set_Config_Switches): Keep assertions policy as | |
60 | enabled when analysing internal units in GNATprove mode. | |
61 | ||
90f2b146 | 62 | 2019-07-04 Arnaud Charlet <charlet@adacore.com> |
63 | ||
64 | * exp_ch4.adb (Expand_Short_Circuit_Operator): Strip | |
65 | N_Variable_Reference_Marker when checking for the presence of | |
66 | actions. | |
67 | ||
39ecad34 | 68 | 2019-07-04 Arnaud Charlet <charlet@adacore.com> |
69 | ||
70 | * exp_aggr.adb (Check_Component): Take into account type | |
71 | conversions. | |
72 | ||
c0e899f1 | 73 | 2019-07-04 Dmitriy Anisimkov <anisimko@adacore.com> |
74 | ||
75 | * doc/gnat_ugn/platform_specific_information.rst: Document | |
76 | Windows socket timeout particularity. | |
77 | * gnat_ugn.texi: Regenerate. | |
78 | * gsocket.h: Include versionhelpers.h. | |
79 | * socket.c (__gnat_minus_500ms): New function. | |
80 | * libgnat/g-sothco.ads (Minus_500ms_Windows_Timeout): New | |
81 | imported function. | |
82 | * libgnat/g-socket.adb (Set_Socket_Option): Refactor to remove | |
83 | 500ms from the requested timeout only on old Windows version. | |
84 | ||
363b1a8e | 85 | 2019-07-04 Thomas Quinot <quinot@adacore.com> |
86 | ||
87 | * get_scos.adb: Remove bogus, dead code. | |
88 | ||
4ae0a9ce | 89 | 2019-07-04 Ed Schonberg <schonberg@adacore.com> |
90 | ||
91 | * sem_dim.adb (Analyze_Dimension_Array_Aggregate): If the | |
92 | component is an entity name, its dimensions are those of its | |
93 | type. | |
94 | ||
d60fa3c9 | 95 | 2019-07-03 Bob Duff <duff@adacore.com> |
96 | ||
97 | * doc/gnat_ugn/gnat_utility_programs.rst: Document new flags in | |
98 | GNATpp. | |
99 | ||
877ad320 | 100 | 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com> |
101 | ||
102 | * binde.adb: Remove with clause for System.OS_Lib. | |
103 | (Force_Elab_Order): Refactor the majority of the code in Butil. | |
104 | Use the new forced units iterator to obtain unit names. | |
105 | * bindo-builders.adb: Add with and use clauses for Binderr, | |
106 | Butil, Opt, Output, Types, GNAT, and GNAT.Dynamic_HTables. Add | |
107 | a hash table which maps units to line number in the forced | |
108 | elaboration order file. | |
109 | (Add_Unit): New routine. | |
110 | (Build_Library_Graph): Create forced edges between pairs of | |
111 | units listed in the forced elaboration order file. | |
112 | (Create_Forced_Edge, Create_Forced_Edges, Destroy_Line_Number, | |
113 | Duplicate_Unit_Error, Hash_Unit, Internal_Unit_Info, | |
114 | Is_Duplicate_Unit, Missing_Unit_Info): New routines. | |
115 | * bindo-graphs.adb (Is_Internal_Unit, Is_Predefined_Unit): | |
116 | Refactor some of the behavior to Bindo-Units. | |
117 | * bindo-graphs.ads: Enable the enumeration literal for forced | |
118 | edges. | |
119 | * bindo-units.adb, bindo-units.ads (Is_Internal_Unit, | |
120 | Is_Predefined_Unit): New routines. | |
121 | * butil.adb: Add with and use clauses for Opt, GNAT, and | |
122 | System.OS_Lib. Add with clause for Unchecked_Deallocation. | |
123 | (Has_Next, Iterate_Forced_Units, Next, Parse_Next_Unit_Name, | |
124 | Read_Forced_Elab_Order_File): New routines. | |
125 | * butil.ads: Add with and use clauses for Types. Add new | |
126 | iterator over the units listed in the forced elaboration order | |
127 | file. | |
128 | (Has_Next, Iterate_Forced_Units, Next): New routine. | |
129 | * namet.adb, namet.ads (Present): New routine. | |
130 | ||
01e6eb2f | 131 | 2019-07-03 Bob Duff <duff@adacore.com> |
132 | ||
133 | * sem_ch3.adb (Access_Definition): The code was creating a | |
134 | master in the case where the designated type is a class-wide | |
135 | interface type. Create a master in the noninterface case as | |
136 | well. That is, create a master for all limited class-wide types. | |
137 | ||
9ad42832 | 138 | 2019-07-03 Yannick Moy <moy@adacore.com> |
139 | ||
140 | * erroutc.adb (Sloc_In_Range): New function to determine whether | |
141 | the range of a pragma Warnings covers a location, taking | |
142 | instantiations into account. | |
143 | ||
f2a8d64e | 144 | 2019-07-03 Johannes Kanig <kanig@adacore.com> |
145 | ||
146 | * osint.ads, osint.adb (Get_First_Main_File_Name): New routine | |
147 | to access the first file provided on the command line. | |
148 | ||
d4f28933 | 149 | 2019-07-03 Ed Schonberg <schonberg@adacore.com> |
150 | ||
151 | * inline.adb (Process_Formals_In_Aspects): New procedure within | |
152 | Expand_Inlined_Call, to perform a replacement of references to | |
153 | formals that appear in aspect specifications within the body | |
154 | being inlined. | |
155 | ||
23e7fc9b | 156 | 2019-07-03 Justin Squirek <squirek@adacore.com> |
157 | ||
158 | * sem_ch8.adb (Analyze_Object_Renaming): Add call to search for | |
159 | the appropriate actual subtype of the object renaming being | |
160 | analyzed. | |
161 | (Check_Constrained_Object): Minor cleanup. | |
162 | ||
f8e6d133 | 163 | 2019-07-03 Yannick Moy <moy@adacore.com> |
164 | ||
165 | * sem_spark.adb (Get_Observed_Or_Borrowed_Expr): New function to | |
166 | return go through traversal function call. | |
167 | (Check_Type): Consistently use underlying type. | |
168 | (Get_Perm): Adapt for case of elaboration code where variables | |
169 | are not declared in the environment. Remove incorrect handling | |
170 | of borrow and observe. | |
171 | ||
d044ba5c | 172 | 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com> |
173 | ||
174 | * inline.adb (Build_Return_Object_Formal): New routine. | |
175 | (Can_Split_Unconstrained_Function): Code clean up. | |
176 | (Copy_Formals,Copy_Return_Object): New routines. | |
177 | (Split_Unconstrained_Function): Code clean up and refactoring. | |
178 | ||
8699de72 | 179 | 2019-07-03 Gary Dismukes <dismukes@adacore.com> |
180 | ||
181 | * bindo-augmentors.adb, bindo-augmentors.ads, | |
182 | bindo-builders.ads, bindo-elaborators.adb, sem_ch12.adb, | |
183 | sem_ch13.adb, sem_spark.adb, sinfo.ads: Minor editorial | |
184 | corrections and reformatting. | |
185 | ||
2ccf6539 | 186 | 2019-07-03 Bob Duff <duff@adacore.com> |
187 | ||
188 | * sem_warn.adb (Check_Infinite_Loop_Warning): Avoid the warning | |
189 | if an Iterator_Specification is present. | |
190 | ||
17b5260d | 191 | 2019-07-03 Bob Duff <duff@adacore.com> |
192 | ||
193 | * doc/gnat_ugn/gnat_utility_programs.rst: Document default | |
194 | new-line behavior. | |
195 | ||
5f71d12c | 196 | 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com> |
197 | ||
198 | * ali.adb: Add with and use clauses for GNAT, | |
199 | GNAT.Dynamic_HTables, and Snames. Add a map from invocation | |
200 | signature records to invocation signature ids. Add various | |
201 | encodings of invocation-related attributes. Sort and update | |
202 | table Known_ALI_Lines. | |
203 | (Add_Invocation_Construct, Add_Invocation_Relation, | |
204 | Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind, | |
205 | Code_To_Invocation_Construct_Kind, Code_To_Invocation_Kind, | |
206 | Code_To_Invocation_Graph_Line_Kind, Destroy, Hash): New | |
207 | routines. | |
208 | (Initialize_ALI): Sort the initialization sequence. Add | |
209 | initialization for all invocation-related tables. | |
210 | (Invocation_Construct_Kind_To_Code, | |
211 | Invocation_Graph_Line_Kind_To_Code, Invocation_Kind_To_Code, | |
212 | Invocation_Signature_Of, Present): New routines. | |
213 | (Scan_ALI): Add the default values for invocation-related ids. | |
214 | Scan invocation graph lines. | |
215 | (Scan_Invocation_Graph_Line): New routine. | |
216 | * ali.ads: Add with clause for GNAT.Dynamic_Tables. Add types | |
217 | for invocation constructs, relations, and signatures. Add | |
218 | tables for invocation constructs, relations, and signatures. | |
219 | Update Unit_Record to capture invocation-related ids. Relocate | |
220 | table Unit_Id_Tables and subtypes Unit_Id_Table, Unit_Id_Array | |
221 | from Binde. | |
222 | (Add_Invocation_Construct, Add_Invocation_Relation, | |
223 | Body_Placement_Kind_To_Code, Code_To_Body_Placement_Kind, | |
224 | Code_To_Invocation_Construct_Kind, Code_To_Invocation_Kind, | |
225 | Code_To_Invocation_Graph_Line_Kind, | |
226 | Invocation_Construct_Kind_To_Code, | |
227 | Invocation_Graph_Line_Kind_To_Code, Invocation_Kind_To_Code, | |
228 | Invocation_Signature_Of, Present): New routines. | |
229 | * binde.adb: Add with and use clause for Types. Add use clause | |
230 | for ALI.Unit_Id_Tables; | |
231 | * binde.ads: Relocate table Unit_Id_Tables and subtypes | |
232 | Unit_Id_Table, Unit_Id_Array to ALI. | |
233 | * bindgen.adb: Remove with and use clause for ALI. | |
234 | * bindgen.ads: Remove with and use clause for Binde. Add with | |
235 | and use clause for ALI. | |
236 | * bindo.adb, bindo.ads, bindo-augmentors.adb, | |
237 | bindo-augmentors.ads, bindo-builders.adb, bindo-builders.ads, | |
238 | bindo-diagnostics.adb, bindo-diagnostics.ads, | |
239 | bindo-elaborators.adb, bindo-elaborators.ads, bindo-graphs.adb, | |
240 | bindo-graphs.ads, bindo-units.adb, bindo-units.ads, | |
241 | bindo-validators.adb, bindo-validators.ads, bindo-writers.adb, | |
242 | bindo-writers.ads: New units. | |
243 | * debug.adb: Use and describe GNAT debug switches -gnatd_F and | |
244 | -gnatd_G. Add GNATbind debug switches in the ranges dA .. dZ, | |
245 | d.a .. d.z, d.A .. d.Z, d.1 .. d.9, d_a .. d_z, d_A .. d_Z, and | |
246 | d_1 .. d_9. Use and describe GNATbind debug switches -d_A, | |
247 | -d_I, -d_L, -d_N, -d_O, -d_T, and -d_V. | |
248 | * exp_util.adb, exp_util.ads (Exceptions_OK): Relocate to | |
249 | Sem_Util. | |
250 | * gnatbind.adb: Add with and use clause for Bindo. Use the new | |
251 | Bindo elaboration order only when -d_N is in effect. | |
252 | * lib-writ.adb | |
253 | (Column, Extra, Invoker, Kind, Line, Locations, Name, Placement, | |
254 | Scope, Signature, Target): New routines. | |
255 | (Write_ALI): Output all invocation-related data. | |
256 | (Write_Invocation_Graph): New routine. | |
257 | * lib-writ.ads: Document the invocation graph ALI line. | |
258 | * namet.adb, namet.ads (Present): New routines. | |
259 | * sem_ch8.adb (Find_Direct_Name): Capture the status of | |
260 | elaboration checks and warnings of an identifier. | |
261 | (Find_Expanded_Name): Capture the status of elaboration checks | |
262 | and warnings of an expanded name. | |
263 | * sem_ch12.adb (Analyze_Generic_Package_Declaration): Ensure | |
264 | that invocation graph-related data within the body of the main | |
265 | unit is encoded in the ALI file. | |
266 | (Analyze_Generic_Subprogram_Declaration): Ensure that invocation | |
267 | graph-related data within the body of the main unit is encoded | |
268 | in the ALI file. | |
269 | (Analyze_Package_Instantiation): Perform minimal decoration of | |
270 | the instance entity. | |
271 | (Analyze_Subprogram_Instantiation): Perform minimal decoration | |
272 | of the instance entity. | |
273 | * sem_elab.adb: Perform heavy refactoring of all code. The unit | |
274 | is now split into "services" which specialize in one area of ABE | |
275 | checks. Add processing in order to capture invocation-graph | |
276 | related attributes of the main unit, and encode them in the ALI | |
277 | file. The Processing phase can now operate in multiple modes, | |
278 | all described by type Processing_Kind. Scenarios and targets | |
279 | are now distinct at the higher level, and carry their own | |
280 | representations. This eliminates the need to constantly | |
281 | recompute their attributes, and offers the various processors a | |
282 | uniform interface. The various initial states of the Processing | |
283 | phase are now encoded using type Processing_In_State, and | |
284 | xxx_State constants. | |
285 | * sem_elab.ads: Update the literals of type | |
286 | Enclosing_Level_Kind. Add Inline pragmas on several routines. | |
287 | * sem_prag.adb (Process_Inline): Ensure that invocation | |
288 | graph-related data within the body of the main unit is encoded | |
289 | in the ALI file. | |
290 | * sem_util.adb (Enclosing_Generic_Body, Enclosing_Generic_Unit): | |
291 | Code clean up. | |
292 | (Exceptions_OK): Relocated from Sem_Util. | |
293 | (Mark_Save_Invocation_Graph_Of_Body): New routine. | |
294 | * sem_util.ads (Exceptions_OK): Relocated from Sem_Util. | |
295 | (Mark_Save_Invocation_Graph_Of_Body): New routine. | |
296 | * sinfo.adb (Is_Elaboration_Checks_OK_Node): Now applicable to | |
297 | N_Variable_Reference_Marker. | |
298 | (Is_Elaboration_Warnings_OK_Node): Now applicable to | |
299 | N_Expanded_Name, N_Identifier, N_Variable_Reference_Marker. | |
300 | (Is_Read): Use Flag4. | |
301 | (Is_SPARK_Mode_On_Node): New applicable to | |
302 | N_Variable_Reference_Marker. | |
303 | (Is_Write): Use Flag5. | |
304 | (Save_Invocation_Graph_Of_Body): New routine. | |
305 | (Set_Is_Elaboration_Checks_OK_Node): Now applicable to | |
306 | N_Variable_Reference_Marker. | |
307 | (Set_Is_Elaboration_Warnings_OK_Node): Now applicable to | |
308 | N_Expanded_Name, N_Identifier, N_Variable_Reference_Marker. | |
309 | (Set_Is_SPARK_Mode_On_Node): New applicable to | |
310 | N_Variable_Reference_Marker. | |
311 | (Set_Save_Invocation_Graph_Of_Body): New routine. | |
312 | * sinfo.ads: Update the documentation of attributes | |
313 | Is_Elaboration_Checks_OK_Node, Is_Elaboration_Warnings_OK_Node, | |
314 | Is_SPARK_Mode_On_Node. Update the flag usage of attributes | |
315 | Is_Read, Is_Write. Add attribute Save_Invocation_Graph_Of_Body | |
316 | and update its occurrence in nodes. | |
317 | (Save_Invocation_Graph_Of_Body): New routine along with pragma | |
318 | Inline. | |
319 | (Set_Save_Invocation_Graph_Of_Body): New routine along with | |
320 | pragma Inline. | |
321 | * switch-b.adb (Scan_Binder_Switches): Refactor the scanning of | |
322 | debug switches. | |
323 | (Scan_Debug_Switches): New routine. | |
324 | * libgnat/g-dynhta.adb, libgnat/g-dynhta.ads (Contains): New routine. | |
325 | * libgnat/g-graphs.adb (Associate_Vertices): Update the use of | |
326 | Component_Vertex_Iterator. | |
327 | (Contains_Component, Contains_Edge, Contains_Vertex, Has_Next): | |
328 | Reimplemented. | |
329 | (Iterate_Component_Vertices): New routine. | |
330 | (Iterate_Vertices): Removed. | |
331 | (Next): Update the parameter profile. | |
332 | (Number_Of_Component_Vertices, Number_Of_Outgoing_Edges): New | |
333 | routines. | |
334 | * libgnat/g-graphs.ads: Update the initialization of | |
335 | No_Component. Add type Component_Vertex_Iterator. Remove type | |
336 | Vertex_Iterator. | |
337 | (Has_Next): Add new versions and remove old ones. | |
338 | (Iterate_Component_Vertices): New routine. | |
339 | (Iterate_Vertices): Removed. | |
340 | (Next): Add new versions and remove old ones. | |
341 | (Number_Of_Component_Vertices, Number_Of_Outgoing_Edges): New | |
342 | routines. | |
343 | * libgnat/g-sets.adb (Contains): Reimplemented. | |
344 | * gcc-interface/Make-lang.in (GNATBIND_OBJS): Add | |
345 | GNAT.Dynamic_HTables, GNAT.Graphs and Bindo units. | |
346 | * rtsfind.ads: Remove extra space. | |
347 | ||
df177848 | 348 | 2019-07-03 Yannick Moy <moy@adacore.com> |
349 | ||
350 | * sem_spark.adb: Add support for locally borrowing and observing | |
351 | a path. | |
352 | (Get_Root_Object): Add parameter Through_Traversal to denote | |
353 | when we are interesting in getting to the traversed parameter. | |
354 | (Is_Prefix_Or_Almost): New function to support detection of | |
355 | illegal access to borrowed or observed paths. | |
356 | (Check_Pragma): Add analysis of assertion pragmas. | |
357 | ||
f3f142ac | 358 | 2019-07-03 Ed Schonberg <schonberg@adacore.com> |
359 | ||
360 | * sem_ch13.adb (Build_Predicate_Functions): In a generic context | |
361 | we do not build the bodies of predicate fuctions, but the | |
362 | expression in a static predicate must be elaborated to allow | |
363 | case coverage checking within the generic unit. | |
364 | (Build_Discrete_Static_Predicate): In a generic context, return | |
365 | without building function body once the | |
366 | Static_Discrete_Predicate expression for the type has been | |
367 | constructed. | |
368 | ||
99d90c85 | 369 | 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com> |
370 | ||
371 | * bindgen.adb, inline.adb, layout.adb, sem_ch12.adb, | |
372 | sem_ch13.adb, sem_ch7.adb, styleg.adb: Minor reformatting. | |
373 | ||
800597f6 | 374 | 2019-07-03 Bob Duff <duff@adacore.com> |
375 | ||
376 | * par-ch3.adb (P_Defining_Identifier): Call | |
377 | Check_Defining_Identifier_Casing. | |
378 | * style.ads, styleg.ads, styleg.adb | |
379 | (Check_Defining_Identifier_Casing): New procedure to check for | |
380 | mixed-case defining identifiers. | |
381 | * stylesw.ads, stylesw.adb (Style_Check_Mixed_Case_Decls): New | |
382 | flag for checking for mixed-case defining identifiers. | |
383 | * doc/gnat_ugn/building_executable_programs_with_gnat.rst: | |
384 | Document new feature. | |
385 | * gnat_ugn.texi: Regenerate. | |
386 | ||
2c75027a | 387 | 2019-07-03 Eric Botcazou <ebotcazou@adacore.com> |
388 | ||
389 | * doc/gnat_ugn/building_executable_programs_with_gnat.rst | |
390 | (Warning message control): Document that -gnatw.z/Z apply to | |
391 | array types. | |
392 | * freeze.adb (Freeze_Entity): Give -gnatw.z warning for array | |
393 | types as well, but not if the specified alignment is the minimum | |
394 | one. | |
395 | * gnat_ugn.texi: Regenerate. | |
396 | ||
08237d0d | 397 | 2019-07-03 Bob Duff <duff@adacore.com> |
398 | ||
399 | * einfo.ads, exp_util.adb, layout.ads, sinfo.ads: Spell "laid" | |
400 | correctly. | |
401 | ||
0396441f | 402 | 2019-07-03 Ed Schonberg <schonberg@adacore.com> |
403 | ||
404 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): No error | |
405 | message on attribute applied to a renaming when the renamed | |
406 | object is an aggregate (from code reading). | |
407 | (Check_Aspect_At_End_Of_Declarations): In a generic context | |
408 | where freeze nodes are not generated, the original expression | |
409 | for an aspect may need to be analyzed to precent spurious | |
410 | conformance errors when compared with the expression that is | |
411 | anakyzed at the end of the current declarative list. | |
412 | ||
c8406f30 | 413 | 2019-07-03 Eric Botcazou <ebotcazou@adacore.com> |
414 | ||
415 | * layout.adb (Layout_Type): Do not set the component size of an | |
416 | array with a scalar component if the component type is | |
417 | overaligned. | |
418 | ||
c38b32ea | 419 | 2019-07-03 Ed Schonberg <schonberg@adacore.com> |
420 | ||
421 | * inline.adb (Make_Loop_Labels_Unique): New procedure to modify | |
422 | the source code of subprograms that are inlined by the | |
423 | front-end, to prevent accidental duplication between loop labels | |
424 | in the inlined code and the code surrounding the inlined call. | |
425 | ||
6d6f134e | 426 | 2019-07-03 Hristian Kirtchev <kirtchev@adacore.com> |
427 | ||
428 | * doc/gnat_ugn/elaboration_order_handling_in_gnat.rst: Update | |
429 | the section on resolving elaboration circularities to eliminate | |
430 | certain combinations of switches which together do not produce | |
431 | the desired effect and confuse users. | |
432 | * gnat_ugn.texi: Regenerate. | |
433 | ||
f3e16ef4 | 434 | 2019-07-03 Arnaud Charlet <charlet@adacore.com> |
435 | ||
436 | * bindgen.adb (Gen_Main): Disable generation of reference to | |
437 | Ada_Main_Program_Name for CCG. | |
438 | * bindusg.adb (Display): Add -G to the command-line usage for | |
439 | gnatbind. | |
440 | * opt.ads (Generate_C_Code): Update comment. | |
441 | * switch-b.adb (Scan_Binder_Switches): Add handling for -G. | |
442 | ||
f4a31b16 | 443 | 2019-07-03 Arnaud Charlet <charlet@adacore.com> |
444 | ||
445 | * sem_ch7.adb (Has_Referencer): Do not consider inlined | |
446 | subprograms when generating C code, which allows us to generate | |
447 | static inline subprograms. | |
448 | ||
2f65e9f7 | 449 | 2019-07-03 Justin Squirek <squirek@adacore.com> |
450 | ||
451 | * sem_ch6.adb (Check_Conformance): Add expression checking for | |
452 | constant modifiers in anonymous access types (in addition to | |
453 | "non-null" types) so that they are considered "matching" for | |
454 | subsequent conformance tests. | |
455 | ||
c336ed70 | 456 | 2019-07-03 Arnaud Charlet <charlet@adacore.com> |
457 | ||
458 | * doc/gnat_rm/standard_and_implementation_defined_restrictions.rst: | |
459 | Clarify wording on No_Multiple_Elaboration. | |
460 | * gnat_rm.texi: Regenerate. | |
461 | ||
78611c86 | 462 | 2019-07-03 Ed Schonberg <schonberg@adacore.com> |
463 | ||
464 | * sem_ch8.adb (Find_Selected_Component): If the prefix is the | |
465 | current instance of a type or subtype, complete the resolution | |
466 | of the name by finding the component of the type denoted by the | |
467 | selector name. | |
468 | ||
5a87a4d9 | 469 | 2019-07-03 Eric Botcazou <ebotcazou@adacore.com> |
470 | ||
471 | * doc/gnat_rm/interfacing_to_other_languages.rst (Interfacing to C): | |
472 | Document that boolean types with convention C now map to C99 bool. | |
473 | * gnat_rm.texi: Regenerate. | |
474 | ||
371c539c | 475 | 2019-07-03 Javier Miranda <miranda@adacore.com> |
476 | ||
477 | * exp_attr.adb (Expand_Min_Max_Attribute): Code cleanup: | |
478 | removing code that it is now never executed in the CCG compiler | |
479 | (dead code). | |
480 | ||
89d2d652 | 481 | 2019-07-02 Iain Sandoe <iain@sandoe.co.uk> |
482 | ||
483 | * libgnat/system-darwin-ppc.ads: Set Stack_Check_Probes True for | |
484 | PPC Darwin. | |
485 | ||
d21e66fb | 486 | 2019-07-01 Ed Schonberg <schonberg@adacore.com> |
487 | ||
488 | * sem_ch12.adb (Is_Defaulted): New predicate in | |
489 | Check_Formal_Package_Intance, to skip the conformance of checks | |
490 | on parameters of a formal package that are defaulted, | |
491 | ||
7a42b778 | 492 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
493 | ||
494 | * checks.adb, exp_ch9.adb, exp_unst.adb, sem_ch4.adb, | |
495 | sem_prag.adb, sem_spark.adb: Minor reformatting. | |
496 | ||
fc8ae496 | 497 | 2019-07-01 Ed Schonberg <schonberg@adacore.com> |
498 | ||
499 | * sem_attr.adb (Analyze_Attribute, case Enum_Rep): Allow prefix | |
500 | of attribute to be an attribute reference of a discrete type. | |
501 | ||
9d27ea41 | 502 | 2019-07-01 Eric Botcazou <ebotcazou@adacore.com> |
503 | ||
504 | * sem_ch12.adb (Analyze_Subprogram_Instantiation): Move up | |
505 | handling of Has_Pragma_Inline_Always and deal with | |
506 | Has_Pragma_No_Inline. | |
507 | ||
bcb8dcf3 | 508 | 2019-07-01 Ed Schonberg <schonberg@adacore.com> |
509 | ||
510 | * sem_ch3.adb (Build_Derived_Record_Type): If the parent type is | |
511 | declared as a subtype of a private type with an inherited | |
512 | discriminant constraint, its generated full base appears as a | |
513 | record subtype, so we need to retrieve its oen base type so that | |
514 | the inherited constraint can be applied to it. | |
515 | ||
d087b9ca | 516 | 2019-07-01 Yannick Moy <moy@adacore.com> |
517 | ||
518 | * sem_spark.adb: Completely rework the algorithm for ownership | |
519 | checking, as the rules in SPARK RM have changed a lot. | |
520 | * sem_spark.ads: Update comments. | |
521 | ||
fe48ee0a | 522 | 2019-07-01 Dmitriy Anisimkov <anisimko@adacore.com> |
523 | ||
524 | * gsocket.h (Has_Sockaddr_Len): Use the offset of sin_family offset in | |
525 | the sockaddr_in structure to determine the existence of length field | |
526 | before the sin_family. | |
527 | ||
b20f7e2c | 528 | 2019-07-01 Ed Schonberg <schonberg@adacore.com> |
529 | ||
530 | * sem_prag.adb (Analyze_Pragma, case Weak_External): Pragma only | |
531 | applies to entities with run-time addresses, not to types. | |
532 | ||
374fdf94 | 533 | 2019-07-01 Piotr Trojanek <trojanek@adacore.com> |
534 | ||
535 | * einfo.adb, sem_ch7.adb, sem_prag.adb, sem_util.adb: Update | |
536 | references to the SPARK RM after the removal of Rule 7.1.4(5). | |
537 | ||
bf13a79d | 538 | 2019-07-01 Piotr Trojanek <trojanek@adacore.com> |
539 | ||
540 | * sysdep.c: Cleanup references to LynuxWorks in docs and | |
541 | comments. | |
542 | ||
866fa2d0 | 543 | 2019-07-01 Ed Schonberg <schonberg@adacore.com> |
544 | ||
545 | * checks.adb (Insert_Valid_Check): Do not apply validity check | |
546 | to variable declared within a protected object that uses the | |
547 | Lock_Free implementation, to prevent unwarranted constant | |
548 | folding, because entities within such an object msut be treated | |
549 | as volatile. | |
550 | ||
bcb5ab83 | 551 | 2019-07-01 Eric Botcazou <ebotcazou@adacore.com> |
552 | ||
553 | * exp_ch9.adb (Check_Inlining): Deal with Has_Pragma_No_Inline. | |
554 | ||
2db33bd6 | 555 | 2019-07-01 Ed Schonberg <schonberg@adacore.com> |
556 | ||
557 | * exp_unst.adb (Visit_Node, Check_Static_Type): Improve the | |
558 | handling of private and incomplete types whose full view is an | |
559 | access type, to detect additional uplevel references in dynamic | |
560 | bounds. This is relevant to N_Free_Statement among others that | |
561 | manipulate types whose full viww may be an access type. | |
562 | ||
6b4f0b7d | 563 | 2019-07-01 Pat Rogers <rogers@adacore.com> |
564 | ||
565 | * doc/gnat_rm/representation_clauses_and_pragmas.rst: Correct | |
566 | size indicated for R as a component of an array. | |
567 | * gnat_rm.texi: Regenerate. | |
568 | ||
cdee70d7 | 569 | 2019-07-01 Justin Squirek <squirek@adacore.com> |
570 | ||
571 | * libgnat/s-win32.ads: Add definition for ULONG, modify | |
572 | OVERLAPPED type, and add appropriate pragmas. | |
573 | ||
2cf822b7 | 574 | 2019-07-01 Bob Duff <duff@adacore.com> |
575 | ||
576 | * gnat1drv.adb (gnat1drv): Call Write_ALI if the main unit is | |
577 | ignored-ghost. | |
578 | ||
0a1ece97 | 579 | 2019-07-01 Yannick Moy <moy@adacore.com> |
580 | ||
581 | * sem_ch4.adb (Operator_Check): Refine error message. | |
582 | ||
ee4279ef | 583 | 2019-07-01 Piotr Trojanek <trojanek@adacore.com> |
584 | ||
585 | * libgnat/a-calend.ads: Revert "Global => null" contracts on | |
586 | non-pure routines. | |
587 | ||
2c6b4ada | 588 | 2019-07-01 Piotr Trojanek <trojanek@adacore.com> |
589 | ||
590 | * exp_attr.adb, libgnat/g-graphs.ads: Fix typos in comments: | |
591 | componant -> component. | |
592 | ||
175c4526 | 593 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
594 | ||
595 | * libgnat/g-graphs.adb: Use type Directed_Graph rather than | |
596 | Instance in various routines. | |
597 | * libgnat/g-graphs.ads: Change type Instance to Directed_Graph. | |
598 | Update various routines that mention the type. | |
599 | ||
a0d15509 | 600 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
601 | ||
602 | * libgnat/g-sets.adb: Use type Membership_Set rathern than | |
603 | Instance in various routines. | |
604 | * libgnat/g-sets.ads: Change type Instance to Membership_Set. | |
605 | Update various routines that mention the type. | |
606 | ||
205a23a3 | 607 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
608 | ||
609 | * libgnat/g-lists.adb: Use type Doubly_Linked_List rather than | |
610 | Instance in various routines. | |
611 | * libgnat/g-lists.ads: Change type Instance to | |
612 | Doubly_Linked_List. Update various routines that mention the | |
613 | type. | |
614 | ||
17fdf8c2 | 615 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
616 | ||
617 | * libgnat/g-dynhta.adb: Use type Dynamic_Hash_Table rather than | |
618 | Instance in various routines. | |
619 | * libgnat/g-dynhta.ads: Change type Instance to | |
620 | Dynamic_Hash_Table. Update various routines that mention the | |
621 | type. | |
622 | ||
216ffc64 | 623 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
624 | ||
625 | * exp_attr.adb, exp_ch7.adb, exp_unst.adb, sem_ch3.adb, | |
626 | sem_util.adb, uintp.adb, uintp.ads: Minor reformatting. | |
627 | ||
5051fe35 | 628 | 2019-07-01 Javier Miranda <miranda@adacore.com> |
629 | ||
630 | * exp_attr.adb (Expand_Min_Max_Attribute): Disable expansion of | |
631 | 'Min/'Max on integer, enumeration, fixed point and floating | |
632 | point types since the CCG backend now provides in file | |
633 | standard.h routines to support it. | |
634 | ||
830a2a71 | 635 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
636 | ||
637 | * impunit.adb: Add GNAT.Graphs to list Non_Imp_File_Names_95. | |
638 | * Makefile.rtl, gcc-interface/Make-lang.in: Register unit | |
639 | GNAT.Graphs. | |
640 | * libgnat/g-dynhta.adb: Various minor cleanups (use Present | |
641 | rather than direct comparisons). | |
642 | (Delete): Reimplement to use Delete_Node. | |
643 | (Delete_Node): New routine. | |
644 | (Destroy_Bucket): Invoke the provided destructor. | |
645 | (Present): New routines. | |
646 | * libgnat/g-dynhta.ads: Add new generic formal Destroy_Value. | |
647 | Use better names for the components of iterators. | |
648 | * libgnat/g-graphs.adb, libgnat/g-graphs.ads: New unit. | |
649 | * libgnat/g-lists.adb: Various minor cleanups (use Present | |
650 | rather than direct comparisons). | |
651 | (Delete_Node): Invoke the provided destructor. | |
652 | (Present): New routine. | |
653 | * libgnat/g-lists.ads: Add new generic formal Destroy_Element. | |
654 | Use better names for the components of iterators. | |
655 | (Present): New routine. | |
656 | * libgnat/g-sets.adb, libgnat/g-sets.ads (Destroy, Preset, | |
657 | Reset): New routines. | |
658 | ||
b0111d94 | 659 | 2019-07-01 Dmitriy Anisimkov <anisimko@adacore.com> |
660 | ||
661 | * libgnat/g-sothco.adb (Get_Address): Fix the case when AF_INET6 | |
662 | is not defined. | |
663 | ||
7362896b | 664 | 2019-07-01 Ed Schonberg <schonberg@adacore.com> |
665 | ||
666 | * exp_attr.adb (Expand_Attribute_Reference, case Invalid_Value): | |
667 | Resolve result of call to Get_Simple_Init_Val, which may be a | |
668 | conversion of a literal. | |
669 | ||
0dae8dc2 | 670 | 2019-07-01 Hristian Kirtchev <kirtchev@adacore.com> |
671 | ||
672 | * freeze.adb (Freeze_Expression): Remove the horrible useless | |
673 | name hiding of N. Insert the freeze nodes generated by the | |
674 | expression prior to the expression when the nearest enclosing | |
675 | scope is transient. | |
676 | ||
487da8ff | 677 | 2019-07-01 Pierre-Marie de Rodat <derodat@adacore.com> |
678 | ||
679 | * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix | |
680 | formatting issues in the -gnatR section. | |
681 | * gnat_ugn.texi: Regenerate. | |
682 | ||
1d79fa18 | 683 | 2019-06-30 Iain Sandoe <iain@sandoe.co.uk> |
684 | ||
685 | * gnatlink.adb (Link_Step): Remove duplicate -static-libgcc switches. | |
686 | Push -shared-libgcc explicitly, when it is the target default (unless | |
687 | overidden by the static flag). | |
688 | When the user has put an instance of shared/static-libgcc do not push | |
689 | a duplicate of this. | |
690 | ||
a850edcd | 691 | 2019-06-29 Eric Botcazou <ebotcazou@adacore.com> |
692 | ||
693 | * gcc-interface/decl.c (gnat_to_gnu_entity): Beep up comment on SAVED, | |
694 | and tweak comment on the assertion about the scopes of Itypes. Do not | |
695 | skip the regular processing for Itypes that are E_Record_Subtype with | |
696 | a Cloned_Subtype. Get the Cloned_Subtype for every E_Record_Subtype | |
697 | if the type is dummy and hasn't got its own freeze node. | |
698 | <E_Record_Subtype>: Save again the DECL of the Cloned_Subtype, if any. | |
699 | <E_Access_Subtype>: Save again the DECL of the equivalent type. | |
700 | (Gigi_Equivalent_Type) <E_Access_Subtype>: New case. | |
701 | ||
b1e46fb1 | 702 | 2019-06-29 Eric Botcazou <ebotcazou@adacore.com> |
703 | ||
704 | * gcc-interface/utils.c (unchecked_convert): Tweak comment. Only skip | |
705 | dereferences when padding to have the same size on both sides. Do it | |
706 | for destination types with self-referential size too. | |
707 | ||
07e38949 | 708 | 2019-06-29 Eric Botcazou <ebotcazou@adacore.com> |
709 | ||
710 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the | |
711 | type requires strict alignment, then set the RM size to the type size. | |
712 | Rework handling of alignment and sizes of tagged types in ASIS mode. | |
713 | (validate_size): Rename local variable and remove special handling for | |
714 | strict-alignment types. | |
715 | * gcc-interface/utils.c (finish_record_type): Constify local variables | |
716 | and use properly typed constants. | |
717 | ||
f4409741 | 718 | 2019-06-29 Eric Botcazou <ebotcazou@adacore.com> |
719 | ||
720 | * gcc-interface/decl.c (gnat_to_gnu_field): Rework error messages for | |
721 | fields requiring strict alignment, add explicit test on Storage_Unit | |
722 | for position and size, and mention type alignment for position. | |
723 | ||
5882c515 | 724 | 2019-06-29 Eric Botcazou <ebotcazou@adacore.com> |
725 | ||
726 | * gcc-interface/trans.c (mark_visited_r): Set TYPE_SIZES_GIMPLIFIED on | |
727 | the main variant of a type, if any. | |
728 | ||
d0de0a27 | 729 | 2019-06-29 Eric Botcazou <ebotcazou@adacore.com> |
730 | ||
731 | * gcc-interface/decl.c (set_nonaliased_component_on_array_type): Add | |
732 | missing guard for the presence of TYPE_CANONICAL. | |
733 | (set_reverse_storage_order_on_array_type): Likewise. | |
734 | ||
2074c859 | 735 | 2019-06-29 Eric Botcazou <ebotcazou@adacore.com> |
736 | ||
737 | * gcc-interface/gigi.h (make_packable_type): Remove default value. | |
738 | (value_factor_p): Tweak prototype. | |
739 | * gcc-interface/decl.c (gnat_to_gnu_entity): Add comment. | |
740 | (gnat_to_gnu_component_type): Likewise. | |
741 | (gnat_to_gnu_field): Likewise. Fetch the position of the field earlier | |
742 | and simplify the condition under which the type is packed. Declare | |
743 | local variable is_bitfield. Pass 1 as max_align to make_packable_type | |
744 | if it is set to true. | |
745 | (copy_and_substitute_in_layout): Pass 0 to make_packable_type. | |
746 | * gcc-interface/utils.c (make_packable_array_type): New function. | |
747 | (make_packable_type): Use it to rewrite the type of array field. | |
748 | (maybe_pad_type): Pass align parameter to make_packable_type. | |
749 | (create_field_decl): Minor tweaks. | |
750 | (value_factor_p): Assert that FACTOR is a power of 2 and replace the | |
751 | modulo computation by a masking operation. | |
752 | ||
83c6da22 | 753 | 2019-06-25 Eric Botcazou <ebotcazou@adacore.com> |
754 | ||
755 | * gcc-interface/decl.c (gnat_to_gnu_entity): Remove superfluous test | |
756 | in previous change. | |
757 | * gcc-interface/gigi.h (maybe_character_type): Fix formatting. | |
758 | (maybe_character_value): Likewise. | |
759 | ||
aaabc7bc | 760 | 2019-06-24 Jan Hubicka <jh@suse.cz> |
761 | ||
762 | * gcc-interface/decl.c (gnat_to_gnu_entity): Check that | |
763 | type is array or integer prior checking string flag. | |
83c6da22 | 764 | * gcc-interface/gigi.h (maybe_character_type): Likewise. |
765 | (maybe_character_value): Likewise. | |
aaabc7bc | 766 | |
5fe09a56 | 767 | 2019-06-24 Martin Sebor <msebor@redhat.com> |
768 | ||
769 | * gcc-interface/utils.c (handle_nonnull_attribute): Quote attribute | |
770 | name. | |
771 | ||
bd9331d6 | 772 | 2019-06-18 Arnaud Charlet <charlet@adacore.com> |
773 | ||
83c6da22 | 774 | PR ada/80590 |
bd9331d6 | 775 | * sem_ch5.adb (Analyze_Loop_Statement): Avoid exception propagation |
776 | during normal processing. | |
777 | ||
8a5a7d1c | 778 | 2019-06-17 Arnaud Charlet <charlet@adacore.com> |
779 | ||
83c6da22 | 780 | PR ada/80590 |
8a5a7d1c | 781 | * exp_ch9.adb (Expand_N_Delay_Relative_Statement): Swap the two |
782 | conditions to avoid a unnecessary exception propagation in the default | |
783 | case. | |
784 | ||
580934f6 | 785 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
786 | ||
787 | * gcc-interface/utils.c (handle_stack_protect_attribute): Move around. | |
788 | ||
c8956236 | 789 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
790 | ||
791 | * doc/gnat_rm/implementation_defined_pragmas.rst (Machine_Attribute): | |
792 | Document additional optional parameters. | |
793 | * sem_prag.adb (Analyze_Pragma) <Pragma_Machine_Attribute>: Accept | |
794 | more than one optional parameter. | |
795 | * gcc-interface/decl.c (prepend_one_attribute_pragma): Alphabetize | |
796 | the list of supported pragmas. Simplify the handling of parameters | |
797 | and add support for more than one optional parameter. | |
798 | * gcc-interface/utils.c (attr_cold_hot_exclusions): New constant. | |
799 | (gnat_internal_attribute_table): Add entry for no_icf, noipa, flatten, | |
800 | used, cold, hot, target and target_clones. | |
801 | (begin_subprog_body): Do not create the RTL for the subprogram here. | |
802 | (handle_noicf_attribute): New static function. | |
803 | (handle_noipa_attribute): Likewise. | |
804 | (handle_flatten_attribute): Likewise. | |
805 | (handle_used_attribute): Likewise. | |
806 | (handle_cold_attribute): Likewise. | |
807 | (handle_hot_attribute): Likewise. | |
808 | (handle_target_attribute): Likewise. | |
809 | (handle_target_clones_attribute): Likewise. | |
810 | ||
62b762c2 | 811 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
812 | ||
813 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Return 0 | |
814 | for 'Size too. | |
815 | (Identifier_to_gnu): Use the actual subtype for a reference to a | |
816 | packed array in a return statement. | |
817 | (Attribute_to_gnu) <Attr_Size>: Do not strip VIEW_CONVERT_EXPRs from | |
818 | the prefix in every case. | |
819 | ||
336a61a3 | 820 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
821 | ||
822 | * gcc-interface/trans.c (gnat_to_gnu): Remove superfluous tests on | |
823 | Backend_Overflow_Checks_On_Target and rework comments. | |
824 | ||
983c5b5e | 825 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
826 | ||
827 | * gcc-interface/trans.c (walk_nesting_tree): New static function. | |
828 | (finalize_nrv): Use it to walk the entire nesting tree. | |
829 | ||
96b4b84e | 830 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
831 | ||
832 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Remove | |
833 | obsolete test on Is_For_Access_Subtype. | |
834 | ||
0b74284e | 835 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
836 | ||
837 | * gcc-interface/decl.c (components_to_record): Set a name on the type | |
838 | created for the REP part, if any. | |
839 | * gcc-interface/utils.c (finish_record_type): Only take the maximum | |
840 | when merging sizes for a variant part at offset 0. | |
841 | (merge_sizes): Rename has_rep parameter into max. | |
842 | ||
689dab9d | 843 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
844 | ||
845 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add support | |
846 | for stack_protect attribute. | |
847 | (handle_stack_protect_attribute): New static function. | |
848 | ||
804f7d39 | 849 | 2019-05-28 Eric Botcazou <ebotcazou@adacore.com> |
850 | ||
851 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Do not return | |
852 | false if the internal builtin uses a variable list. | |
853 | ||
f07f94cc | 854 | 2019-05-27 Eric Botcazou <ebotcazou@adacore.com> |
855 | ||
856 | * gcc-interface/trans.c (Call_to_gnu): Do not initialize the temporary | |
857 | created out of addressability concerns if it's for the _Init parameter | |
858 | of an initialization procedure. | |
859 | ||
abfd658b | 860 | 2019-05-27 Eric Botcazou <ebotcazou@adacore.com> |
861 | ||
862 | * gcc-interface/ada-builtin-types.def: New file. | |
863 | * gcc-interface/ada-builtins.def: Likewise. | |
864 | * gcc-interface/ada-tree.h (BUILT_IN_LIKELY): New macro. | |
865 | (BUILT_IN_UNLIKELY): Likewise. | |
866 | * gcc-interface/trans.c (independent_iterations_p): Initialize the | |
867 | auto-vector to 16 elements. | |
868 | (Call_to_gnu): Remove local variable and change the vector of actual | |
869 | parameters to an auto-vector. Do not convert actual parameters to | |
870 | the argument type for front-end built-in functions. Add support for | |
871 | front-end built-in functions. | |
872 | (build_noreturn_cond): Use internal instead of built-in function. | |
873 | * gcc-interface/utils.c (c_builtin_type): Include ada-builtin-types.def | |
874 | (install_builtin_function_types): Likewise. | |
875 | (install_builtin_functions): Include ada-builtins.def first. | |
876 | ||
caab73a2 | 877 | 2019-05-27 Eric Botcazou <ebotcazou@adacore.com> |
878 | ||
879 | * gcc-interface/utils.c (maybe_pad_type): Issue the warning for the | |
880 | specific case of component types preferably. | |
881 | ||
f1ca2388 | 882 | 2019-05-27 Eric Botcazou <ebotcazou@adacore.com> |
883 | ||
884 | * gcc-interface/trans.c (Identifier_to_gnu): Minor tweaks. | |
885 | (gnat_to_gnu): Do not convert the result if it is a reference to an | |
886 | unconstrained array used as the prefix of an attribute reference that | |
887 | requires an lvalue. | |
888 | ||
e3f3573c | 889 | 2019-05-27 Eric Botcazou <ebotcazou@adacore.com> |
890 | ||
891 | * gcc-interface/trans.c (Gigi_Types_Compatible): New predicate. | |
892 | (Identifier_to_gnu): Use it to assert that the type of the identifier | |
893 | and that of its entity are compatible for gigi. Rename a couple of | |
894 | local variables and separate the processing of the result type. | |
895 | ||
2306cd17 | 896 | 2019-05-27 Eric Botcazou <ebotcazou@adacore.com> |
897 | ||
898 | * gcc-interface/trans.c (Call_to_gnu): Use the unpadded type when | |
899 | putting back an intermediate conversion the type of the actuals. | |
900 | ||
6e4e9378 | 901 | 2019-05-27 Eric Botcazou <ebotcazou@adacore.com> |
902 | ||
903 | * gcc-interface/trans.c (gnat_to_gnu) <Shift operations>: Convert the | |
904 | count to the unsigned version of its base type before proceeding. | |
905 | ||
85b9be9b | 906 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
907 | ||
3d6be0d5 | 908 | * gcc-interface/trans.c (check_inlining_for_nested_subprog): Quote |
909 | reserved names. | |
85b9be9b | 910 | |
65d973ca | 911 | 2019-05-08 Arnaud Charlet <charlet@adacore.com> |
912 | ||
913 | * standard.ads.h: New file. | |
914 | ||
ff628b99 | 915 | 2019-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
916 | ||
917 | * gcc-interface/Makefile.in (install-gcc-specs): Use foreach. | |
918 | Honor DESTDIR. | |
919 | ||
ebd761d4 | 920 | 2019-04-29 Michael K. Darling <darlingm@gmail.com> |
921 | ||
922 | * gnatvsn.ads: Bump Library_Version to 10. | |
923 | ||
5f260823 | 924 | 2019-04-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> |
925 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
926 | Jakub Jelinek <jakub@redhat.com> | |
927 | ||
928 | PR target/89093 | |
929 | * raise-gcc.c (TARGET_ATTRIBUTE): Define. | |
930 | (continue_unwind, personality_body, PERSONALITY_FUNCTION): Add | |
931 | TARGET_ATTRIBUTE. | |
932 | ||
d7ca95c0 | 933 | 2019-04-07 Eric Botcazou <ebotcazou@adacore.com> |
934 | ||
935 | * libgnat/i-cexten.ads (CFloat_128): New type. | |
936 | ||
26b21081 | 937 | 2019-03-22 Dmitriy Anisimkov <anisimko@adacore.com> |
938 | ||
939 | PR ada/89583 | |
940 | * libgnat/g-socket.adb (Bind_Socket, Connect_Socket, | |
941 | Send_Socket): Fix the computation of structure lengths passed to | |
942 | low level routines. | |
943 | (Is_IPv6_Address): Fix the number of expected colons. | |
944 | ||
2f6d557f | 945 | 2019-03-11 Martin Liska <mliska@suse.cz> |
946 | ||
d325ee67 | 947 | * gcc-interface/misc.c (gnat_post_options): Wrap option name in string |
948 | format message and fix GNU coding style. | |
2f6d557f | 949 | |
c1ad6672 | 950 | 2019-02-08 Eric Botcazou <ebotcazou@adacore.com> |
951 | ||
952 | * gcc-interface/trans.c (gnat_to_gnu) <N_Aggregate>: Minor tweak. | |
953 | * gcc-interface/utils.c (convert): Do not pad when doing an unchecked | |
954 | conversion here. Use TREE_CONSTANT throughout the function. | |
955 | (unchecked_convert): Also pad if the source is a CONSTRUCTOR and the | |
956 | destination is a more aligned array type or a larger aggregate type, | |
957 | but not between original and packable versions of a type. | |
958 | ||
62a6ebbd | 959 | 2019-02-08 Eric Botcazou <ebotcazou@adacore.com> |
960 | ||
961 | * gcc-interface/utils.c (max_size) <tcc_unary>: Be prepared for an | |
962 | operand with VOID_TYPE. | |
963 | ||
da383d19 | 964 | 2019-02-08 Eric Botcazou <ebotcazou@adacore.com> |
965 | ||
966 | * gcc-interface/trans.c (elaborate_all_entities): Do not elaborate the | |
967 | entities of a package renaming another one. | |
968 | ||
09c123a0 | 969 | 2019-02-08 Eric Botcazou <ebotcazou@adacore.com> |
970 | ||
971 | * gcc-interface/trans.c (Regular_Loop_to_gnu): Replace tests on | |
972 | individual flag_unswitch_loops and flag_tree_loop_vectorize switches | |
973 | with test on global optimize switch. | |
974 | (Raise_Error_to_gnu): Likewise. | |
975 | ||
a9dd7273 | 976 | 2019-02-07 Eric Botcazou <ebotcazou@adacore.com> |
977 | ||
978 | * libgnarl/s-linux__sparc.ads (ETIMEDOUT): Set to correct value. | |
979 | ||
4836c4f1 | 980 | 2019-02-06 Arnaud Charlet <charlet@adacore.com> |
981 | ||
982 | * libgnarl/s-linux__x32.ads: Resync list of signals with s-linux.ads | |
983 | ||
6b56937c | 984 | 2019-01-27 Eric Botcazou <ebotcazou@adacore.com> |
985 | ||
986 | * repinfo.adb (List_Component_Layout): Remove superfluous space for | |
987 | zero-sized field. | |
988 | * gcc-interface/ada-tree.h (TYPE_IS_EXTRA_SUBTYPE_P): New macro. | |
989 | * gcc-interface/gigi.h (create_extra_subtype): Declare. | |
990 | * gcc-interface/decl.c (TYPE_ARRAY_SIZE_LIMIT): Likewise. | |
991 | (update_n_elem): New function. | |
992 | (gnat_to_gnu_entity): Use create_extra_subtype to create extra subtypes | |
993 | instead of doing it manually. | |
994 | <E_Array_Type>: Use update_n_elem to compute the maximum size. Use the | |
995 | index type instead of base type for the bounds. Set TYPE_ARRAY_MAX_SIZE | |
996 | of the array to the maximum size. | |
997 | <E_Array_Subtype>: Create an extra subtype using the index type of the | |
998 | base array type for self-referential bounds. Use update_n_elem to | |
999 | compute the maximum size. Set TYPE_ARRAY_MAX_SIZE of the array to the | |
1000 | maximum size. | |
1001 | (gnat_to_gnu_field): Clear DECL_NONADDRESSABLE_P on discriminants. | |
1002 | * gcc-interface/misc.c (gnat_get_alias_set): Return the alias set of | |
1003 | the base type for an extra subtype. | |
1004 | (gnat_type_max_size): Remove obsolete code. | |
1005 | * gcc-interface/trans.c (Attribute_to_gnu): Minor tweak. | |
1006 | (can_be_lower_p): Deal with pathological types. | |
1007 | * gcc-interface/utils.c (create_extra_subtype): New function. | |
1008 | (create_field_decl): Minor tweak. | |
1009 | (max_size) <tcc_reference>: Compute a better value by using the extra | |
1010 | subtypes on the self-referential bounds. | |
1011 | <tcc_binary>: Rewrite. Deal with "negative value" in unsigned types. | |
1012 | <tcc_expression>: Likewise. | |
1013 | * gcc-interface/utils2.c (compare_arrays): Retrieve the original bounds | |
1014 | of the arrays upfront. Swap only if the second length is not constant. | |
1015 | Use comparisons on the original bounds consistently for the null tests. | |
1016 | (build_binary_op): Use TYPE_IS_EXTRA_SUBTYPE_P macro. | |
1017 | (build_allocator): Minor tweak. | |
1018 | ||
ecb2c722 | 1019 | 2019-01-27 Eric Botcazou <ebotcazou@adacore.com> |
1020 | ||
1021 | * gcc-interface/decl.c (array_type_has_nonaliased_component): Return | |
1022 | the same value for every dimension of a multidimensional array type. | |
1023 | ||
10f25579 | 1024 | 2019-01-26 Eric Botcazou <ebotcazou@adacore.com> |
1025 | ||
1026 | * gcc-interface/trans.c (Regular_Loop_to_gnu): Use the SLOC of the | |
1027 | iteration scheme, if present, throughout the translation. | |
1028 | ||
aced6683 | 1029 | 2019-01-26 Eric Botcazou <ebotcazou@adacore.com> |
1030 | ||
1031 | * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use | |
1032 | DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned | |
1033 | by a call to memset if the LHS is a DECL. | |
1034 | ||
18b4b30e | 1035 | 2019-01-26 Eric Botcazou <ebotcazou@adacore.com> |
1036 | ||
1037 | * gcc-interface/trans.c (struct loop_info_d): Remove artificial field. | |
1038 | (Loop_Statement_to_gnu): Do not set it. | |
1039 | ||
6dce35b7 | 1040 | 2019-01-26 Eric Botcazou <ebotcazou@adacore.com> |
1041 | ||
1042 | * gcc-interface/trans.c (Iterate_Acc_Clause_Arg): Fix formatting. | |
1043 | (Acc_gnat_to_gnu): Likewise. | |
1044 | (Acc_Data_to_gnu): Likewise. | |
1045 | (Acc_Var_to_gnu): Likewise. | |
1046 | (Acc_Reduc_to_gnu): Likewise. | |
1047 | (Acc_Size_List_to_gnu): Likewise. | |
1048 | (Pragma_to_gnu) <Pragma_Acc_Loop>: Likewise. | |
1049 | <Pragma_Acc_Data>): Likewise. | |
1050 | (find_loop_for): Remove default value for parameters. | |
1051 | * gcc-interface/trans.c (gnat_to_gnu) <N_Op_And>: Merge into... | |
1052 | <N_Op_Eq>): ...this. | |
1053 | ||
f8cd11ee | 1054 | 2019-01-26 Eric Botcazou <ebotcazou@adacore.com> |
1055 | ||
1056 | * gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on | |
1057 | the sign bit instead of on the sign of the value. | |
1058 | <PLUS_EXPR>: Turn addition of negative constant into subtraction. | |
1059 | <MULT_EXPR>: Add test for degenerate case. | |
1060 | <BIT_AND_EXPR>: Simplify. | |
1061 | ||
9a3c51d9 | 1062 | 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1063 | ||
1064 | * s-oscons-tmplt.c (AF_INET6): Do not undefine for RTEMS. | |
1065 | ||
07c11f2b | 1066 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> |
1067 | ||
1068 | PR other/16615 | |
07c11f2b | 1069 | * exp_ch11.adb: Change "can not" to "cannot". |
1070 | * sem_ch4.adb: Likewise. | |
1071 | ||
f4d3c071 | 1072 | 2019-01-09 Sandra Loosemore <sandra@codesourcery.com> |
1073 | ||
1074 | PR other/16615 | |
f4d3c071 | 1075 | * exp_ch9.adb: Mechanically replace "can not" with "cannot". |
1076 | * libgnat/s-regpat.ads: Likewise. | |
1077 | * par-ch4.adb: Likewise. | |
1078 | * set_targ.adb: Likewise. | |
1079 | * types.ads: Likewise. | |
1080 | ||
902071d1 | 1081 | 2019-01-08 Justin Squirek <squirek@adacore.com> |
1082 | ||
1083 | Revert: | |
902071d1 | 1084 | 2018-07-31 Justin Squirek <squirek@adacore.com> |
1085 | ||
76fb0465 | 1086 | * lib-writ.adb (Write_With_Lines): Modfiy the generation |
1087 | of dependencies within ali files so that source unit | |
1088 | bodies are properly listed even if said bodies are | |
1089 | missing. Perform legacy behavior in GNATprove mode. | |
1090 | * lib-writ.ads: Modify documentation to reflect current | |
1091 | behavior. | |
902071d1 | 1092 | |
1093 | and: | |
902071d1 | 1094 | 2018-09-26 Justin Squirek <squirek@adacore.com> |
1095 | ||
76fb0465 | 1096 | * lib-writ.adb, lib-writ.ads (Write_With_Lines): Add |
1097 | documentation and an extra conditional check for RCI | |
1098 | units so that generated ali files will list the spec | |
1099 | only instead of a body when a body is not found. | |
902071d1 | 1100 | |
65a33d4a | 1101 | 2019-01-04 Eric Botcazou <ebotcazou@adacore.com> |
1102 | ||
1103 | * gnatvsn.ads: Bump copyright year. | |
1104 | ||
3d8932fd | 1105 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
8e8f6434 | 1106 | |
fbd26352 | 1107 | Update copyright years. |
1108 | ||
277184bc | 1109 | * gnat_ugn.texi: Bump @copying's copyright year. |
1110 | * gnat_rm.texi: Likewise. | |
7dfbd804 | 1111 | \f |
3d8932fd | 1112 | Copyright (C) 2019 Free Software Foundation, Inc. |
7dfbd804 | 1113 | |
1114 | Copying and distribution of this file, with or without modification, | |
1115 | are permitted in any medium without royalty provided the copyright | |
1116 | notice and this notice are preserved. |