]>
Commit | Line | Data |
---|---|---|
d11cfaf8 RD |
1 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
2 | ||
3 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
4 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
5 | ||
300b98bb AC |
6 | 2011-08-02 Claire Dross <dross@adacore.com> |
7 | ||
8 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
9 | a-cofove.ads: Add comments. | |
10 | ||
11 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
12 | ||
13 | * gnat_rm.texi: Document formal containers. | |
14 | ||
15 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
16 | ||
17 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
18 | are empty sections. | |
19 | ||
19fb051c AC |
20 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
21 | ||
22 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
23 | reformatting. | |
24 | ||
25 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
26 | ||
27 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
28 | New format of Aspect_Names table checks for omitted entries | |
29 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
30 | handling of boolean aspects for derived types. | |
31 | New aspects Default_Value and Default_Component_Value | |
32 | New format of Aspect_Names table checks for omitted entries | |
33 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
34 | (Has_Default_Value): New flag | |
35 | (Has_Default_Component_Value): New flag | |
36 | (Has_Default_Value): New flag | |
37 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
38 | table. | |
39 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
40 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
41 | Default_Value and Default_Component_Value | |
42 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
43 | New aspects Default_Value and Default_Component_Value | |
44 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
45 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
46 | ||
47 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
48 | ||
49 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
50 | inherit library kind. | |
51 | ||
52 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
53 | ||
54 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
55 | Minor reformatting. | |
56 | ||
57 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
58 | ||
59 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
60 | ||
5f7747af AC |
61 | 2011-08-02 Yannick Moy <moy@adacore.com> |
62 | ||
63 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
64 | ||
65 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
66 | ||
67 | * impunit.adb: Add comment. | |
68 | ||
a5fe697b AC |
69 | 2011-08-02 Yannick Moy <moy@adacore.com> |
70 | ||
71 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
72 | qualification of aggregates in formal mode | |
73 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
74 | another aggregate | |
75 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
76 | qualified in formal mode | |
77 | ||
78 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
79 | ||
80 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
81 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
82 | (Build_Library): Supress all warnings when compiling the binder | |
83 | generated file. | |
84 | ||
bd65a2d7 | 85 | 2011-08-02 Yannick Moy <moy@adacore.com> |
d4487611 | 86 | |
bd65a2d7 AC |
87 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure |
88 | from here... | |
89 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
90 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
91 | Add with/use clauses to make Check_Formal_Restriction visible | |
92 | ||
93 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
94 | ||
95 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
96 | in-parameters when type of the generic formal is private in the generic | |
97 | spec and non-private in the body. | |
98 | ||
99 | 2011-08-02 Claire Dross <dross@adacore.com> | |
100 | ||
101 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
102 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
103 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
104 | * impunit.adb, Makefile.rtl: Take new files into account. | |
d4487611 AC |
105 | |
106 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
107 | ||
108 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
109 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
110 | ||
bd434b3f YM |
111 | 2011-08-02 Yannick Moy <moy@adacore.com> |
112 | ||
113 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
114 | formal mode | |
115 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
116 | matching static array bounds, taking into account the special case of | |
117 | string literals | |
118 | * sem_ch3.adb: Typo in comment. | |
119 | ||
fe5d3068 YM |
120 | 2011-08-02 Yannick Moy <moy@adacore.com> |
121 | ||
122 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
123 | which issues an error in formal mode if its argument node is originally | |
124 | from source | |
125 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
126 | has a discriminant specification so that it does not include the case | |
127 | of derived types | |
128 | (Derived_Type_Declaration): move here the test that a derived type has a | |
129 | discriminant specification | |
130 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
131 | first element of a component association before accessing its choices | |
132 | (presence of component association is not enough) | |
133 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
134 | declaration is a library item before accessing the next element in a | |
135 | list, as library items are not member of lists | |
136 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
137 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
138 | Check_Formal_Restriction whenever possible. | |
139 | ||
b60a3f26 AC |
140 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
141 | ||
142 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
143 | reference when needed. | |
144 | ||
145 | 2011-08-02 Bob Duff <duff@adacore.com> | |
146 | ||
147 | * gnat_ugn.texi: Fix typo. | |
148 | ||
149 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
150 | ||
151 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
152 | archive file name. Do not use the full path name of archives for Open | |
153 | VMS. | |
154 | ||
eaba57fb RD |
155 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
156 | ||
157 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
158 | Analyze_Aspect_Specifications | |
159 | * sem_ch13.adb | |
160 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
161 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
162 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
163 | sequence for Analyze_Aspect_Specifications | |
164 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
165 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
166 | ||
167 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
168 | ||
169 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
170 | aspects, since these no longer exist. | |
171 | ||
172 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
173 | ||
174 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
175 | semicolon, do not try to see if there are aspects following it. | |
176 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
177 | aspect spec. | |
178 | ||
8830d1d2 AC |
179 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
180 | ||
181 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
182 | ||
183 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
184 | ||
185 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
186 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
187 | extracted from... | |
188 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
189 | ||
7ff2d234 AC |
190 | 2011-08-02 Yannick Moy <moy@adacore.com> |
191 | ||
192 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
193 | mode on subprogram declaration outside of package specification, unless | |
194 | it is followed by a pragma Import | |
195 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
196 | Access_Type_Declaration): issue error in formal mode on access type | |
197 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
198 | incomplete type | |
199 | (Analyze_Object_Declaration): issue error in formal mode on object | |
200 | declaration which does not respect SPARK restrictions | |
201 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
202 | declaration which does not respect SPARK restrictions | |
203 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
204 | error in formal mode on digits or delta constraint | |
205 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
206 | decimal fixed point type | |
207 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
208 | other than type extensions of tagged record types | |
209 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
210 | with check on access definition | |
211 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
212 | mode on protected definition. | |
213 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
214 | ||
215 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
216 | ||
217 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
218 | ||
806f6d37 AC |
219 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
220 | ||
221 | * sem_ch6.adb (Can_Override_Operator): New function. | |
222 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
223 | indicator in operators. Fixes regression. | |
224 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
225 | code that evaluates if the subprogram can override an operator by | |
226 | invocations to the above new function. | |
227 | * einfo.adb | |
228 | (Write_Field26_Name): Add missing code to ensure that, following | |
229 | the documentation in einfo.ads, this field is not shown as attribute | |
230 | "Static_Initialization" on non-dispatching functions. | |
231 | ||
232 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
233 | ||
234 | * sem_res.adb (Resolve_Call): A call to | |
235 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
236 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
237 | i.e., when the second parameter is of type Time_Span. | |
238 | ||
239 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
240 | ||
241 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
242 | with an archive instead of -L<library dir> -l<library name>. | |
243 | ||
244 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
245 | ||
246 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
247 | mark the base types In_Use in addition to making the operations | |
248 | use_visible. | |
249 | ||
250 | 2011-08-02 Ed Falis <falis@adacore.com> | |
251 | ||
252 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
253 | * s-inmaop-vxworks.adb: new file. | |
254 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
255 | simplify remaining | |
256 | * s-intman-vxworks.ads: remove unnecessary variable | |
257 | * s-taprop-vxworks.adb: simplify signal initialization | |
258 | ||
780d052e RD |
259 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
260 | ||
261 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
262 | ||
263 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
264 | ||
265 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
266 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
267 | here from Sem_Res. | |
268 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
269 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
270 | ||
29efbb8c ES |
271 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
272 | ||
273 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
274 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
275 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
276 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
277 | constructs. | |
278 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
279 | Ada2012 Use_All_Type clause. | |
280 | (Use_Class_Wide_Operations): new procedure. | |
281 | ||
b0186f71 AC |
282 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
283 | ||
284 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
285 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
286 | expression to expression function. | |
287 | ||
288 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
289 | ||
290 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
291 | if types are compatible. | |
292 | ||
293 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
294 | ||
295 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
296 | returns True if its argument array types have same dimension and same | |
297 | static bounds at each index. | |
298 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
299 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
300 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
301 | multiplication or division with operands of fixed point types which are | |
302 | not qualified or explicitly converted. | |
303 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
304 | Boolean or array type (except String) operands. | |
305 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
306 | operators for array types other than String with non-matching static | |
307 | bounds. | |
308 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
309 | for array types with non-matching static bounds. Factorize the code in | |
310 | Matching_Static_Array_Bounds. | |
311 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
312 | qualified expressions for array types with non-matching static bounds. | |
313 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
314 | conversion for array types with non-matching static bounds | |
315 | ||
767bb4e8 AC |
316 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
317 | ||
318 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
319 | ||
320 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
321 | ||
322 | * par-ch9.adb: save location of entry for proper error message. | |
323 | ||
4ac2477e JM |
324 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
325 | ||
326 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
327 | (Use_Full_View) which permits this routine to climb through the | |
328 | ancestors using the full-view of private parents. | |
329 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
330 | Use_Full_View to true in calls to Is_Ancestor. | |
331 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
332 | true in call to Is_Ancestor. | |
333 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
334 | Use_Full_View to true in call to Is_Ancestor. | |
335 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
336 | call to Is_Ancestor. | |
337 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
338 | Use_Full_View to true in calls to Is_Ancestor. | |
339 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
340 | Make_Select_Specific_Data_Table, Register_Primitive, | |
341 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
342 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
343 | to true in call to Is_Ancestor. | |
344 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
345 | Use_Full_View to true in calls to Is_Ancestor. | |
346 | * exp_cg.adb | |
347 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
348 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
349 | ||
9f90d123 AC |
350 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
351 | ||
352 | * gnat_rm.texi: Minor reformatting. | |
353 | * sem_prag.adb: Minor reformatting. | |
354 | ||
355 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
356 | ||
357 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
358 | ||
359 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
360 | ||
361 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
362 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
363 | decl/instantiation. | |
364 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
365 | (End_Statements): Add Is_Sloc parameterr | |
366 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
367 | (Check_End): Ad Is_Sloc parameter | |
368 | (End_Statements): Add Is_Sloc parameterr | |
369 | ||
370 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
371 | ||
372 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
373 | /SYMBOL_PREPROCESSING. | |
374 | ||
375 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
376 | ||
377 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
378 | grouping of digits is 4 to represent 2 bytes. | |
379 | A procedure spec which is split into several lines is indented two | |
380 | characters. | |
381 | ||
382 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
383 | ||
384 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
385 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
386 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
387 | properly qualified | |
388 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
389 | choice in array aggregate | |
390 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
391 | mark as ancestor | |
392 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
393 | positional and named aggregate for record, or others in record | |
394 | aggregate, or multiple choice in record aggregate | |
395 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
396 | array operands to logical operations AND, OR and XOR do not have the | |
397 | same static lower and higher bounds | |
398 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
399 | ||
2933b16c RD |
400 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
401 | ||
402 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
403 | Replaces Last_Source_Node_In_Sequence. | |
404 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
405 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
406 | parens and blank in string (this was inconsistently implemented). | |
407 | * errout.ads | |
408 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
409 | blank in string (this was inconsistently implemented). | |
410 | * gnat1drv.adb | |
411 | (Set_Global_Switches): Set formal mode switches appropriately | |
412 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
413 | * par-prag.adb | |
414 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
415 | call Set_Error_Msg_Lang to set "spark" as language name. | |
416 | * par.adb: Remove unnecessary call to set formal language for errout | |
417 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
418 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
419 | name. | |
420 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
421 | calls to it, moved after resolution so that types are known | |
422 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
423 | result of concatenation is not of type String | |
424 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
425 | concatenation is not properly restricted | |
426 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
427 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
428 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
429 | * gcc-interface/Make-lang.in: Update dependencies. | |
430 | ||
05dbd302 AC |
431 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
432 | ||
433 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
434 | condition that detects if the overridden operation must replace an | |
435 | existing entity. | |
436 | ||
437 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
438 | ||
439 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
440 | code declarations inserted by Insert_Actions in each alternative of the | |
441 | N_Case_Expression node. | |
442 | ||
443 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
444 | ||
445 | * sem_ch6.adb: Minor code reorganization. | |
446 | * sem_util.adb: Minor reformatting. | |
447 | ||
af9e051f PO |
448 | 2011-08-01 Pascal Obry <obry@adacore.com> |
449 | ||
450 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
451 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
452 | ||
1d801f21 AC |
453 | 2011-08-01 Yannick Moy <moy@adacore.com> |
454 | ||
455 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
456 | literal or operator symbol which is prefixed | |
457 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
458 | mode on access attributes. | |
459 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
460 | that concatenation operands are properly restricted in formal mode | |
461 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
462 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
463 | result of the concatenation has a type different from String. | |
464 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
465 | Analyze_Quantified_Expression, Analyze_Slice, | |
466 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
467 | * sem_ch5.adb | |
468 | (Analyze_Block_Statement): only issue error on source block statement | |
469 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
470 | function which returns the last node in a list of nodes for which | |
471 | Comes_From_Source returns True, if any | |
472 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
473 | Last_Source_Node_In_Sequence | |
474 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
475 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
476 | mode on unsupported constructs | |
477 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
478 | rest of the actions may be needed later on since the error is marked as | |
479 | not serious. | |
480 | * sinfo.ads: Typos in comments. | |
481 | ||
482 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
483 | ||
484 | * projects.texi: Minor editing. | |
485 | ||
53beff22 YM |
486 | 2011-08-01 Yannick Moy <moy@adacore.com> |
487 | ||
488 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
489 | insertion character ~~ | |
490 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
491 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
492 | with insertion character ~~ | |
493 | (Set_Msg_Text): treat insertion character ~~ | |
494 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
495 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
496 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
497 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
498 | errors related to the formal language restriction not serious | |
499 | (insertion character |). | |
500 | * par.adb (Par): set formal language for error messages if needed | |
501 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
502 | generated statements at the end of the function | |
503 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
504 | enumeration value to define a new pragma SPARK_95 | |
505 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
506 | SPARK_Version): new type and variables to store the SPARK version | |
507 | (none by default). | |
508 | (SPARK_Mode): return True when SPARK_Version is set | |
509 | * par-prag.adb: Correct indentation | |
510 | (Prag): take Pragma_SPARK_95 into account | |
511 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
512 | into account. | |
513 | ||
8d606a78 RD |
514 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
515 | ||
516 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
517 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
518 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
519 | ||
1982d5a8 PO |
520 | 2011-08-01 Pascal Obry <obry@adacore.com> |
521 | ||
522 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
523 | Target_Name to Get_Path call. | |
524 | (Parse_Single_Project): Likewise. | |
525 | (Post_Parse_Context_Clause): Likewise. | |
526 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
527 | Call Initialise_Project_Path with the proper Target_Name. | |
528 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
529 | search path. | |
530 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
531 | with the proper Target_Name. | |
532 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
533 | Part.Parse routine. | |
534 | (Parse_Project_And_Apply_Config): Likewise. | |
535 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
536 | This is fine as this part of the code is supporting only native | |
537 | compilation. | |
538 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
539 | is fine as this part of the code is supporting only native compilation. | |
540 | ||
0d53d36b AC |
541 | 2011-08-01 Yannick Moy <moy@adacore.com> |
542 | ||
543 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
544 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
545 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
546 | package declaration occurring after a body. | |
547 | ||
548 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
549 | ||
550 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
551 | ||
552 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
553 | ||
554 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
555 | (Dispatch_Table_Wrappers): Fix documentation. | |
556 | ||
557 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
558 | ||
559 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
560 | ||
8ed68165 AC |
561 | 2011-08-01 Yannick Moy <moy@adacore.com> |
562 | ||
563 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
564 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
565 | procedures out of these packages. | |
566 | * errout.ads, errout.adb | |
567 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
568 | procedures in of this package | |
569 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
570 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
571 | on misplaced later vs initial declarations, like in Ada 83 | |
572 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
573 | formal mode on attribute of private type whose full type declaration | |
574 | is not visible | |
575 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
576 | package declaration inside a package specification | |
577 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
578 | controlled type or discriminant type | |
579 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
580 | user-defined operator means that it should come from the source | |
581 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
582 | entity. | |
583 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
584 | ||
585 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
586 | ||
587 | * atree.adb: Minor reformatting. | |
588 | * checks.adb: Minor reformatting. | |
589 | ||
4230bdb7 AC |
590 | 2011-08-01 Vincent Celier <celier@adacore.com> |
591 | ||
592 | * s-parame-vms-ia64.ads: Fix typo in comment | |
593 | Minor reformatting | |
594 | * s-parame-vms-restrict.ads: Removed, unused. | |
595 | ||
596 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
597 | ||
598 | * exp_ch3.adb | |
599 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
600 | * sem_ch3.adb | |
601 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
602 | * sem_ch3.ads, sem_ch3.adb | |
603 | (Is_Constant_Bound): New extended version of the subprogram that was | |
604 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
605 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
606 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
607 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
608 | array objects with constant bounds, generates the runtime check | |
609 | referencing the bounds of the array type. For other cases this routine | |
610 | provides its previous behavior obtaining such values from the array | |
611 | object. | |
612 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
613 | parent type. | |
614 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
615 | we cannot have semantic interpretations of the new node. | |
616 | ||
2010d078 AC |
617 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
618 | ||
619 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
620 | expressions. | |
621 | ||
622 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
623 | ||
624 | * sem_ch8.adb: Minor code editing. | |
625 | * s-vxwext.adb: Remove trailing space. | |
626 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
627 | consistency with other files. | |
628 | ||
629 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
630 | ||
631 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
632 | ||
633 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
634 | ||
635 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
636 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
637 | then_clause and no else_clause. | |
638 | ||
639 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
640 | ||
641 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
642 | like done by System.Aux_DEC. | |
643 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
644 | ||
daec8eeb YM |
645 | 2011-08-01 Yannick Moy <moy@adacore.com> |
646 | ||
647 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
648 | missing label at end of declaration (subprogram or package) | |
649 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
650 | of positional and named parameter association | |
651 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
652 | Error_Msg_SP which adds a prefix to the error message giving the name | |
653 | of the formal language analyzed | |
654 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
655 | access result type in subprogram, unconstrained array as result type,. | |
656 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
657 | procedure | |
658 | * sem_ch8.adb: Code clean up. | |
659 | ||
38171f43 AC |
660 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
661 | ||
662 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
663 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
664 | (Dispatch_Table_Wrappers): Fix documentation. | |
665 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
666 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
667 | to enforce the documentation of this attribute. | |
668 | (Set_Is_Interface): Cleanup the assertion. | |
669 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
670 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
671 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
672 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
673 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
674 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
675 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
676 | Locate the Underlying_Type entity before reading attribute | |
677 | Access_Disp_Table. | |
678 | ||
679 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
680 | ||
681 | * s-poosiz.ads: Additional overriding indicators. | |
682 | ||
683 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
684 | ||
685 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
686 | formal mode. | |
687 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
688 | parameter specification does not include a subtype mark. | |
689 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
690 | formal mode on abstract subprogram. | |
691 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
692 | user-defined operator. | |
693 | (Process_Formals): issue error in formal mode on access parameter and | |
694 | default expression. | |
695 | * sem_ch9.adb (Analyze_Abort_Statement, | |
696 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
697 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
698 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
699 | Analyze_Requeue, Analyze_Selective_Accept, | |
700 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
701 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
702 | issue error in formal mode on user-defined raise statement. | |
703 | ||
1f250383 AC |
704 | 2011-08-01 Thomas Quinot <quinot@adacore.com> |
705 | ||
706 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
707 | declaration being hidden when overriding an implicit inherited | |
708 | subprogram. | |
709 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
710 | (-gnats), do not complain about a source file that contains only a | |
711 | pragma No_Body. | |
712 | ||
713 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
714 | ||
715 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
716 | variable if already set. | |
717 | ||
607d0635 AC |
718 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> |
719 | ||
720 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
721 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
722 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
723 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
724 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
725 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
726 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
727 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
728 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
729 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
730 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
731 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
732 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
733 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
734 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
735 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
736 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
737 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
738 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
739 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
740 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
741 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
742 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
743 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
744 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
745 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
746 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
747 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
748 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
749 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
750 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
751 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
752 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
753 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
754 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
755 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
756 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
757 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
758 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
759 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
760 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
761 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
762 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
763 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
764 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
765 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
766 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
767 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
768 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
769 | Use GNAT instead of GNARL. | |
770 | ||
771 | 2011-08-01 Bob Duff <duff@adacore.com> | |
772 | ||
773 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
774 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
775 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
776 | reformatting. | |
777 | ||
778 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
779 | ||
780 | * debug.adb (d.D) reverve flag for the SPARK mode | |
781 | (d.E) reverve flag for SPARK generation mode | |
782 | (d.F) reverve flag for Why generation mode | |
783 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, | |
784 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New | |
785 | functions which return True when the corresponding modes are set | |
786 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
787 | mode. | |
788 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
789 | Error_Msg to prefix the error message with a tag giving the formal | |
790 | language | |
791 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
792 | message with a tag giving the formal language | |
793 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
794 | block statement | |
795 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
796 | with a single "others" case alternative | |
797 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
798 | statements which do not respect SPARK restrictions | |
799 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
800 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
801 | formal mode on unreachable code (concerns both code after an infinite | |
802 | loop and after an unconditional jump, both not allowed in SPARK) | |
803 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
804 | Set_Return_Present for a procedure containing a return statement | |
805 | (already done for functions in Analyze_Function_Return) | |
806 | (Analyze_Function_Return): issue error in formal mode on extended | |
807 | return or if return is not last statement in function | |
808 | (Check_Missing_Return): issue error in formal mode if function does | |
809 | not end with return or if procedure contains a return | |
810 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
811 | function to detect if there is an inner scope of its parameter S which | |
812 | is a loop. | |
813 | ||
814 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
815 | ||
816 | * sem_ch6.ads: Minor reformatting. | |
817 | ||
d8b3ccb9 AC |
818 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
819 | ||
820 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
821 | processing private type declarations to avoid reading unavailable | |
822 | attribute. | |
823 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
824 | private extension declaration nodes to avoid reading unavailable | |
825 | attribute. | |
826 | ||
827 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
828 | ||
829 | * sem_ch3.adb: Minor reformatting. | |
830 | ||
831 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
832 | ||
833 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
834 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
835 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
836 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
837 | for VMS, instead parametrize the common implementation with | |
838 | System.Parameters declarations. | |
839 | ||
0bb9276c AC |
840 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> |
841 | ||
842 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
843 | ||
844 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
845 | ||
846 | * seh_init.c: Fix SEH handler installation on win64. | |
847 | ||
848 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
849 | ||
850 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
851 | double analysis of an anonymous access to subprogram, because it can | |
852 | lead to improper sharing of profiles and a back-end crash. | |
853 | ||
6a2e4f0b AC |
854 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
855 | ||
856 | * make.adb, sem_ch4.adb: Minor reformatting. | |
857 | * gcc-interface/Make-lang.in: Update dependencies. | |
858 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
859 | ||
860 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
861 | ||
862 | * gnat_rm.texi: Fix definition of Long_Integer. | |
863 | ||
864 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
865 | ||
866 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
867 | to prevent storage exhaustion. | |
868 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
869 | finalized is a function body, insert the cleanup code before the final | |
870 | return statement, to prevent spurious warnings. | |
871 | * s-pooglo.ads: add overriding indicator. | |
872 | ||
4561baf7 ES |
873 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
874 | ||
875 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
876 | with_clause and a use_clause are needed to make operator usage legal. | |
877 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
878 | determine whether a compilation unit is visible within an other, | |
879 | either through a with_clause in the current unit, or a with_clause in | |
880 | its library unit or one one of its parents. | |
881 | ||
383e179e AC |
882 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
883 | ||
884 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
885 | over an arbitrary expression of an array or container type. | |
886 | * lib-xref.adb: clarify comment. | |
887 | ||
888 | 2011-08-01 Bob Duff <duff@adacore.com> | |
889 | ||
890 | * einfo.ads: Minor reformatting. | |
891 | * debug.adb: Minor comment improvement. | |
892 | ||
893 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
894 | ||
895 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
896 | consider hidden subprograms as valid candidates. | |
897 | ||
898 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
899 | ||
900 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
901 | ||
902 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
903 | ||
904 | * gnat_ugn.texi: Fix typo. | |
905 | ||
61c161b2 AC |
906 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
907 | ||
908 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
909 | lib-xref.adb: Minor reformatting | |
910 | ||
911 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
912 | ||
913 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
914 | when to generate a call to Move_Final_List. | |
915 | (Has_Controlled_Parts): Remove this function. | |
916 | ||
84df40f7 AC |
917 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
918 | ||
919 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
920 | "," in choice list. | |
921 | ||
922 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
923 | ||
924 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
925 | explicit raise of a predefined exception as Comes_From_Source if the | |
926 | original N_Raise_Statement comes from source. | |
927 | ||
928 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
929 | ||
930 | * sinfo.ads: Add comment. | |
931 | * sem_ch6.adb: Minor reformatting. | |
932 | ||
933 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
934 | ||
935 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
936 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
937 | ||
938 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
939 | ||
940 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
941 | better determine whether an entity reference is a write. | |
942 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
943 | subcomponent. | |
944 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
945 | the same location as an immediately preceeding modify-reference, to | |
946 | handle properly in-out actuals. | |
947 | ||
948 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
949 | ||
950 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
951 | ||
952 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
953 | ||
954 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
955 | heap to compute the result. | |
956 | ||
c7f0d2c0 AC |
957 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
958 | ||
959 | * atree.ads: Minor reformatting. | |
960 | ||
961 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
962 | ||
963 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
964 | ||
965 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
966 | ||
967 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
968 | predefined fpt types. | |
969 | (P_Mixed_Name): New procedure to print a name using mixed case | |
970 | (Print_Standard): Use P_Float_Type for printing floating point types | |
971 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
972 | precision IEEE float. | |
973 | ||
974 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
975 | ||
976 | * sem_ch3.adb: Minor reformatting. | |
977 | ||
978 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
979 | ||
980 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
981 | the completion of a generic function, insert the new body rather than | |
982 | rewriting the original. | |
983 | ||
984 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
985 | ||
986 | * sinfo.ads, errout.ads: Typos in comments. | |
987 | ||
1c54829e AC |
988 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
989 | ||
990 | * par-endh.adb: Minor reformatting. | |
991 | ||
992 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
993 | ||
994 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
995 | (Pre_Post_Aspects): New subtype. | |
996 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
997 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
998 | * par-ch7.adb (P_Package): Remove Decl parameter | |
999 | (P_Package): Handle new syntax for aspects (before IS) | |
1000 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
1001 | new aspect syntax | |
1002 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
1003 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
1004 | (P_Package): Remove Decl parameter | |
1005 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
1006 | aspects | |
1007 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
1008 | specs | |
1009 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
1010 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
1011 | * sprint.adb: Handle new syntax of aspects before IS in package | |
1012 | ||
1013 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
1014 | ||
1015 | * atree.ads: Minor reformatting. | |
1016 | * sem_prag.adb: Minor reformatting. | |
1017 | ||
1018 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
1019 | ||
1020 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
1021 | case expr alternative. | |
1022 | ||
1023 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
1024 | ||
1025 | * sem_ch12.adb: Fix typo. | |
1026 | ||
9eea4346 GB |
1027 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
1028 | ||
1029 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
1030 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
1031 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
1032 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
1033 | eventual removal of per type constants. | |
1034 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
1035 | size value of subtype E. | |
1036 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
1037 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
1038 | function. | |
1039 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
1040 | * einfo.adb: | |
1041 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
1042 | ||
3d6c3bd7 GB |
1043 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
1044 | ||
1045 | * cstand.adb: Fix comments. | |
1046 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
1047 | count of arguments. | |
1048 | ||
e7d897b8 AC |
1049 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1050 | ||
1051 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
1052 | ||
1053 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
1054 | ||
1055 | * atree.ads: Fix comment. | |
1056 | ||
c228a069 AC |
1057 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1058 | ||
1059 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
1060 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
1061 | * par.adb: Add with for Namet.Sp. | |
1062 | * par-tchk.adb: Minor reformatting. | |
1063 | ||
1064 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
1065 | ||
1066 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
1067 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
1068 | of the init procedure of a SAL. | |
1069 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
1070 | New procedure. | |
1071 | ||
1072 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
1073 | ||
1074 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
1075 | reformatting. | |
1076 | ||
1077 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
1078 | ||
1079 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
1080 | ||
1081 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
1082 | ||
1083 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
1084 | conformant with its spec (return True only for types that have | |
1085 | an overriding Initialize primitive operation that prevents them from | |
1086 | having preelaborable initialization). | |
1087 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
1088 | initialization for controlled types in Ada 2005 or later mode. | |
1089 | ||
857ade1b RD |
1090 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1091 | ||
1092 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
1093 | Postcondition. | |
1094 | (Same_Aspect): New function. | |
1095 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
1096 | Type_Invariant, Precondition, Postcondition. | |
1097 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
1098 | ||
bd949ee2 RD |
1099 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1100 | ||
1101 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
1102 | here. | |
1103 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
1104 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
1105 | already analyzed, but don't skip entire processing of a declaration, | |
1106 | that's wrong in some cases of declarations being rewritten. | |
1107 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
1108 | Don't delay for integer, string literals | |
1109 | Treat predicates in usual manner for delay, remove special case code, | |
1110 | not needed. | |
1111 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
1112 | (Build_Predicate_Function): Update saved expression in aspect | |
1113 | (Build_Invariant_Procedure): Update saved expression in aspect | |
1114 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
1115 | of replacement of discriminant references if the reference is simple. | |
1116 | ||
f1c952af RD |
1117 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1118 | ||
1119 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
1120 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
1121 | Static_Predicate and Dynamic_Predicate. | |
1122 | (Build_Predicate_Function): Add processing for Static_Predicate | |
1123 | and Dynamic_Predicate. | |
1124 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
1125 | (From_Static_Predicate): New flag | |
1126 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
1127 | ||
1128 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
1129 | ||
1130 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
1131 | * expander.adb: Minor reformatting. | |
1132 | ||
47e11d08 AC |
1133 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1134 | ||
1135 | * atree.ads: Minor comment fix. | |
1136 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
1137 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
1138 | ||
1139 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
1140 | ||
1141 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
1142 | pointers. Use descrip.h header file for convenience. Add some | |
1143 | comments. | |
1144 | ||
1145 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
1146 | ||
1147 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
1148 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
1149 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
1150 | New procedure. | |
1151 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
1152 | (Analye_Aspect_Specification): Minor changes for above procedures | |
1153 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
1154 | specification node as well. | |
1155 | ||
1156 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
1157 | ||
1158 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
1159 | Windows files. Use GetFilesAttributes() in this case to check for file | |
1160 | existence instead of returning with an error code. | |
1161 | ||
a3a16b21 VC |
1162 | 2011-08-01 Vincent Celier <celier@adacore.com> |
1163 | ||
1164 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
1165 | High is above Source length. | |
1166 | ||
ff58cc69 RD |
1167 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1168 | ||
1169 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
1170 | ||
6bb88533 AC |
1171 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
1172 | ||
1173 | * aspects.ads (Boolean_Aspects): New subtype. | |
1174 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
1175 | for derived types in cases where the parent type and derived type have | |
1176 | aspects. | |
1177 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
1178 | with aspects when parent type also has aspects. | |
1179 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
1180 | boolean expression at this point). | |
1181 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
1182 | accordance with final decision on the Ada 2012 feature. | |
1183 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
1184 | ||
1185 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
1186 | ||
1187 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
1188 | ||
060a3f28 AC |
1189 | 2011-08-01 Pascal Obry <obry@adacore.com> |
1190 | ||
1191 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
1192 | Fix Replace_Slice when High is above current string size. | |
1193 | (Replace_Slice): Fix DL computation when High is above current | |
1194 | string length. | |
1195 | ||
1196 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
1197 | ||
1198 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
1199 | ||
e7f567a3 AC |
1200 | 2011-08-01 Matthew Heaney <heaney@adacore.com> |
1201 | ||
1202 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
1203 | of node. | |
1204 | ||
1205 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
1206 | ||
1207 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
1208 | reformatting. | |
1209 | ||
1a265e78 AC |
1210 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
1211 | ||
1212 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
1213 | access to protected subprograms in generic bodies. | |
1214 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
1215 | protected type, indicate that the convention of the subprogram is | |
1216 | Convention_Protected, because it may be used in subsequent declarations | |
1217 | within the protected declaration. | |
1218 | ||
1219 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
1220 | ||
1221 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
1222 | and "final" procedures when the name of the library is "ada", to avoid | |
1223 | duplicate symbols "adainit" and "adafinal" in executables. | |
1224 | ||
67e28ef8 ES |
1225 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
1226 | ||
1227 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
1228 | quantified expression that appears within a postcondition and uses the | |
1229 | Ada2012 'Result attribute. | |
1230 | ||
6da2ca7d RO |
1231 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1232 | ||
1233 | * init.c (__gnat_error_handler): Cast reason to int. | |
1234 | (__gnat_install_handler): Explain sa_sigaction use. | |
1235 | ||
7d5997c6 EB |
1236 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
1237 | ||
1238 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
1239 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
1240 | the return type if it is passed in registers. | |
1241 | ||
4b4cfdd5 EB |
1242 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
1243 | ||
1244 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
1245 | left operand as addressable. | |
1246 | ||
f3d34576 EB |
1247 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
1248 | ||
1249 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
1250 | (build_return_expr): Likewise. | |
1251 | (convert_vms_descriptor): Declare. | |
1252 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
1253 | (build_function_stub): Move to... | |
1254 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
1255 | * gcc-interface/trans.c (build_function_stub): ...here. | |
1256 | (build_return_expr): ...here. | |
1257 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
1258 | Disconnect the parameter attributes cache, if any, once done with it. | |
1259 | Call end_subprog_body only after setting the end_locus. | |
1260 | Build the stub associated with the function, if any, at the very end. | |
1261 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
1262 | variables and streamline control flow. | |
1263 | ||
0a6ecc08 AC |
1264 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> |
1265 | ||
1266 | PR ada/49819 | |
1267 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
1268 | g-trasym-dwarf.adb. | |
1269 | ||
5b6d595b RO |
1270 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1271 | ||
1272 | PR bootstrap/49794 | |
1273 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
1274 | Assign to act.sa_sigaction. | |
1275 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
1276 | current->return_address to char * before arithmetic. | |
1277 | ||
94017021 RO |
1278 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1279 | ||
1280 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
1281 | Correct argument types. | |
1282 | Extract code from reason. | |
1283 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
1284 | ||
52fd02bb EB |
1285 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> |
1286 | ||
1287 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
1288 | (GNAT1_OBJS): ...here. | |
1289 | ||
f39a9ca2 EB |
1290 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> |
1291 | ||
1292 | PR ada/48711 | |
1293 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
1294 | ||
9e36aa23 EB |
1295 | * gcc-interface/gigi.h: Move around comment. |
1296 | ||
e3aca522 JDA |
1297 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
1298 | ||
1299 | PR ada/46350 | |
1300 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
1301 | ||
696b1960 FW |
1302 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> |
1303 | ||
1304 | PR ada/48711 | |
1305 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
1306 | ||
f542c405 EB |
1307 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> |
1308 | ||
1309 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
1310 | range comparison if Pmode is SImode. | |
1311 | ||
9e9bd455 LG |
1312 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> |
1313 | Eric Botcazou <ebotcazou@adacore.com> | |
1314 | ||
1315 | * adadecode.c: Wrap up in extern "C" block. | |
1316 | * adadecode.h: Likewise. | |
1317 | * adaint.c: Likewise. Remove 'const' keyword. | |
1318 | * adaint.h: Likewise. | |
1319 | * argv.c: Likewise. | |
1320 | * atree.h: Likewise. | |
1321 | * cio.c: Likewise. | |
1322 | * cstreams.c: Likewise. | |
1323 | * env.c: Likewise. | |
1324 | * exit.c: Likewise. | |
1325 | * fe.h: Likewise. | |
1326 | * final.c: Likewise. | |
1327 | * init.c: Likewise. | |
1328 | * initialize.c: Likewise. | |
1329 | * link.c: Likewise. | |
1330 | * namet.h: Likewise. | |
1331 | * nlists.h: Likewise. | |
1332 | * raise.c: Likewise. | |
1333 | * raise.h: Likewise. | |
1334 | * repinfo.h: Likewise. | |
1335 | * seh_init.c: Likewise. | |
1336 | * targext.c: Likewise. | |
1337 | * tracebak.c: Likewise. | |
1338 | * uintp.h: Likewise. | |
1339 | * urealp.h: Likewise. | |
1340 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
1341 | * xsinfo.adb: Likewise. | |
1342 | * xsnamest.adb: Likewise. | |
1343 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
1344 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
1345 | * gcc-interface/misc.c: Likewise. | |
1346 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
1347 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
1348 | ada/targext.o here... | |
1349 | (GNAT_ADA_OBJS): ...and not here. | |
1350 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
1351 | (GNATBIND_OBJS): Reorder. | |
1352 | ||
7644b3c7 RH |
1353 | 2011-07-07 Richard Henderson <rth@redhat.com> |
1354 | ||
1355 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
1356 | dwarf2out_frame_init. | |
1357 | ||
8384ac41 EB |
1358 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> |
1359 | ||
1360 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
1361 | ||
fbdd5d87 RO |
1362 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1363 | ||
1364 | PR target/39150 | |
1365 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
1366 | ||
1a072294 RG |
1367 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
1368 | ||
8384ac41 EB |
1369 | * gcc-interface/misc.c (gnat_init): Merge calls to |
1370 | build_common_tree_nodes and build_common_tree_nodes_2. | |
1a072294 RG |
1371 | Re-initialize boolean_false_node. |
1372 | ||
bc712852 EB |
1373 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> |
1374 | Olivier Hainque <hainque@adacore.com> | |
1375 | Nicolas Setton <setton@adacore.com> | |
1376 | ||
1377 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
1378 | the type according to the ARTIFICIAL_P parameter. | |
1379 | (create_type_decl): Likewise. | |
1380 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
1381 | ||
2eb22389 EB |
1382 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
1383 | ||
1384 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
1385 | (gnatbind): Likewise. | |
1386 | ||
4bdaaf2f RO |
1387 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1388 | ||
1389 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
1390 | ||
c020c92b EB |
1391 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
1392 | ||
1393 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
1394 | local variable throughout. Remove useless call to Base_Type. | |
1395 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
1396 | Take it also into account for the volatileness of the field. Set the | |
1397 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
1398 | ||
96769d32 EB |
1399 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
1400 | ||
1401 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
1402 | on a dereference built for a by-ref object if it has an address clause. | |
1403 | ||
7e4680c1 EB |
1404 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
1405 | ||
1406 | * einfo.ads (Address_Taken): Document use for the second argument of | |
1407 | Asm_Input and Asm_Output attributes. | |
1408 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
1409 | argument is an entity name, then set Address_Taken on it. | |
1410 | <Attribute_Asm_Output>: Likewise. | |
1411 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
1412 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
1413 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
1414 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
1415 | ||
1416 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
d5cc9181 JR |
1417 | |
1418 | PR middle-end/46500 | |
1419 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
1420 | ||
677f3fa8 JM |
1421 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
1422 | ||
1423 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
1424 | (ada/utils.o): Update dependencies. | |
1425 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
1426 | ../../../libcpp/libcpp.a. | |
1427 | * gcc-interface/utils.c: Include common/common-target.h. | |
1428 | (process_attributes): Use targetm_common.have_named_sections. | |
1429 | ||
009db074 RG |
1430 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
1431 | ||
0bad0e23 EB |
1432 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
1433 | set_sizetype. | |
009db074 | 1434 | |
3bfc61cf EB |
1435 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
1436 | ||
0bad0e23 | 1437 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
1438 | TREE_THIS_NOTRAP flag. |
1439 | ||
5c4a1c7b EB |
1440 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
1441 | ||
1442 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
1443 | Fix thinko. | |
1444 | ||
e9f57686 EB |
1445 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
1446 | ||
1447 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
1448 | constants whose full view has discriminants specially. | |
1449 | ||
10e4d056 EB |
1450 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
1451 | ||
1452 | * gcc-interface/utils.c: Include diagnostic.h. | |
1453 | (gnat_write_global_declarations): Output debug information for all | |
1454 | global type declarations before finalizing the compilation unit. | |
1455 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
1456 | ||
0957c029 JJ |
1457 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
1458 | ||
1459 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
1460 | ||
52d0a7ac KT |
1461 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
1462 | ||
1463 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
1464 | initialization instead of const/none-const pointer assignment. | |
1465 | ||
1ed1641d JM |
1466 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
1467 | ||
1468 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
1469 | $(EXTRA_GNAT1_OBJS). | |
1470 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
1471 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
1472 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
1473 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
1474 | libcommon-target.a instead of prefix.o. | |
1475 | ||
9fe72ebd JM |
1476 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
1477 | ||
1478 | PR ada/49097 | |
0bad0e23 | 1479 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 1480 | |
2691e6d7 JM |
1481 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
1482 | ||
0bad0e23 EB |
1483 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
1484 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
1485 | instead of version.o. | |
2691e6d7 | 1486 | |
bf6490b5 KT |
1487 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
1488 | ||
1489 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
1490 | boolean_false_node instead of integer_zero_node. | |
1491 | (convert_with_check): Likewise. | |
1492 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
1493 | ||
7bf9a5ac EB |
1494 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
1495 | ||
1496 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
1497 | type of the parameter is an unconstrained array, convert the actual to | |
1498 | the type of the formal in the In Out and Out cases as well. | |
1499 | ||
e5b00edf NF |
1500 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
1501 | ||
1502 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
1503 | call build_function_type_array or build_varargs_function_type_array | |
1504 | instead. | |
1505 | (create_subprog_type): Don't call build_function_type; call | |
1506 | build_function_type_vec instead. | |
1507 | ||
51545682 NF |
1508 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
1509 | ||
1510 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
1511 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
1512 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
1513 | ||
c99c0026 EB |
1514 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
1515 | ||
f620bd21 EB |
1516 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
1517 | ||
c99c0026 EB |
1518 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
1519 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
1520 | ||
3d528853 NF |
1521 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
1522 | ||
c99c0026 | 1523 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 1524 | |
d7d058c5 NF |
1525 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
1526 | ||
1527 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
1528 | instead of accessing TYPE_ARG_TYPES directly. | |
1529 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
1530 | ||
805e60a0 EB |
1531 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
1532 | ||
1533 | PR ada/48844 | |
1534 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
1535 | * gcc-interface/decl.c (get_variant_part): Make global. | |
1536 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
1537 | types have the same constant size, are record types and T1 has a | |
1538 | variant part while T2 doesn't. | |
1539 | ||
907a08d9 EB |
1540 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
1541 | ||
1542 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
1543 | get_pending_sizes. | |
1544 | (end_subprog_body): Likewise. | |
1545 | ||
d35936ab RG |
1546 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
1547 | ||
1548 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
1549 | int_const_binop. | |
1550 | (pos_to_constructor): Likewise. | |
1551 | ||
c1fd8753 NF |
1552 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
1553 | Eric Botcazou <ebotcazou@adacore.com> | |
1554 | ||
1555 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
1556 | of build_function_type. Adjust calls to... | |
1557 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
1558 | Call build_function_type_list instead of build_function_type. | |
1559 | Fix head comment and swap couple of conditional blocks. | |
1560 | ||
4fb87d2b EB |
1561 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
1562 | ||
1563 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
1564 | (Current_Year): Bump to 2011. | |
1565 | ||
fa5e5a76 MM |
1566 | 2011-04-29 Michael Matz <matz@suse.de> |
1567 | ||
1568 | * gcc-interface/misc.c (gnat_handle_option): Set | |
1569 | warn_maybe_uninitialized. | |
1570 | ||
8d6a2f69 GP |
1571 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
1572 | ||
1573 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
1574 | the Watson/McCabe paper. | |
1575 | ||
770937fd JM |
1576 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
1577 | ||
1578 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
1579 | ||
eb601ae1 EB |
1580 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
1581 | ||
1582 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
1583 | onto the new type. | |
1584 | ||
7d7fcb08 EB |
1585 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
1586 | ||
1587 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
1588 | parameter. | |
1589 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
1590 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
1591 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
1592 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
1593 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
1594 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
1595 | don't need debug info here... | |
1596 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
1597 | (gigi): Adjust calls to create_subprog_decl. | |
1598 | (build_raise_check): Likewise. | |
1599 | (establish_gnat_vms_condition_handler): Likewise. | |
1600 | (Compilation_Unit_to_gnu): Likewise. | |
1601 | (gnat_to_gnu): Likewise. | |
1602 | ||
e1876cac EB |
1603 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
1604 | ||
1605 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
1606 | (NO_REORDER_ADAFLAGS): New variable. | |
1607 | (EXTRA_GNATTOOLS): Always define. | |
1608 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
1609 | Clean up and adjust list of files compiled with special options. | |
1610 | * gcc-interface/Make-lang.in: Likewise. | |
1611 | (ada/decl.o): Cosmetical change. | |
1612 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
1613 | ||
04695783 JM |
1614 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
1615 | ||
1616 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
1617 | ||
23399579 EB |
1618 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
1619 | ||
1620 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
1621 | $(CFLAGS) on the link line. | |
1622 | ||
51c5169c EB |
1623 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
1624 | ||
1625 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
1626 | padded type built for the return type if it is unconstrained. | |
1627 | ||
61e46a7d NF |
1628 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
1629 | ||
1630 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
1631 | ||
81f653d6 NF |
1632 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
1633 | ||
b4867846 EB |
1634 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
1635 | before calling TREE_CHAIN. | |
81f653d6 NF |
1636 | * gcc-interface/misc.c (gnat_init_ts): New function. |
1637 | (LANG_HOOKS_INIT_TS): Define. | |
1638 | ||
a358e188 MJ |
1639 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
1640 | ||
b4867846 EB |
1641 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
1642 | instead of cgraph_node. | |
a358e188 | 1643 | |
29b1c5a4 EB |
1644 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
1645 | ||
1646 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
1647 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
1648 | mechanism. | |
1649 | ||
88872b00 EB |
1650 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
1651 | ||
1652 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
1653 | of aggregate types that contain a placeholder. | |
1654 | ||
dcf0c47e NF |
1655 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
1656 | ||
1657 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 1658 | TYPE_ARG_TYPES. |
dcf0c47e NF |
1659 | (handle_type_generic_attribute): Likewise. |
1660 | ||
53e3000c EB |
1661 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
1662 | ||
1663 | PR ada/47163 | |
1664 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
1665 | ||
ab380bb4 KT |
1666 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
1667 | ||
1668 | PR ada/47163 | |
0bad0e23 EB |
1669 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
1670 | to flag value. | |
ab380bb4 | 1671 | |
8ffac116 EB |
1672 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1673 | ||
1674 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
1675 | type case, do not strip a padding type around the array type. | |
1676 | ||
de9528f0 EB |
1677 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1678 | ||
1679 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
1680 | types. | |
1681 | ||
d9d7a26c EB |
1682 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1683 | ||
1684 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
1685 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 1686 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
1687 | (gnat_post_options): Likewise. |
1688 | ||
4cb12a90 EB |
1689 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1690 | ||
1691 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
1692 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
1693 | distinct copy. | |
1694 | ||
acccc61c EB |
1695 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1696 | ||
1697 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
1698 | DECL_ARTIFICIAL flag on enumeration types. | |
1699 | ||
583eb0c9 EB |
1700 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1701 | ||
1702 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
1703 | fat pointer types artificial unconditionally. | |
1704 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
1705 | isn't artificial. | |
1706 | ||
e3edbd56 EB |
1707 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1708 | ||
1709 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
1710 | (build_dummy_unc_pointer_types): Likewise. | |
1711 | (finish_fat_pointer_type): Likewise. | |
1712 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
1713 | fat pointer type has been built, complete it in place. | |
1714 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
1715 | and thin pointers. Remove useless variable. | |
1716 | (finish_fat_pointer_type): Make global and move to... | |
1717 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
1718 | (get_dummy_type): New function. | |
1719 | (build_dummy_unc_pointer_types): Likewise. | |
1720 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
1721 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
1722 | array case. | |
1723 | ||
65444786 EB |
1724 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1725 | ||
1726 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
1727 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
1728 | if this is a Taft amendment type and the full declaration is available. | |
1729 | * gcc-interface/trans.c (process_type): Likewise. | |
1730 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
1731 | (process_freeze_entity): Likewise. | |
1732 | * gcc-interface/utils.c (dummy_global): New static variable. | |
1733 | (gnat_write_global_declarations): If there are types declared as used | |
1734 | at the global level, insert them in the global hash table. | |
1735 | ||
1aeb40dd EB |
1736 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1737 | ||
1738 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
1739 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
1740 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
1741 | copy. | |
1742 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
1743 | flag of the type accordingly. | |
1744 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
1745 | ||
80ec8b4c EB |
1746 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
1747 | ||
1748 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
1749 | finalizing types when updating the pointers to the designated type. | |
1750 | <all>: Finalize the deferred types even if we didn't defer processing | |
1751 | of incomplete types in this invocation. | |
1752 | ||
2a9d769a OH |
1753 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
1754 | Nicolas Setton <setton@adacore.com> | |
1755 | Eric Botcazou <ebotcazou@adacore.com> | |
1756 | ||
1757 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
1758 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
1759 | ||
2438d7a6 KT |
1760 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
1761 | ||
333d8aff | 1762 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
1763 | Windows targets. |
1764 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
1765 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 1766 | |
80ec8b4c | 1767 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 1768 | |
8ad150f6 TG |
1769 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
1770 | ||
1771 | PR ada/44431 | |
80ec8b4c EB |
1772 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
1773 | Use ada output of gnatbind. | |
8ad150f6 TG |
1774 | (ada/b_gnatb.adb): Ditto. |
1775 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
1776 | (ada.mostlyclean, ada.stage1) | |
1777 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
1778 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 1779 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
1780 | Use ada output of gnatbind. |
1781 | (b_gnatm.adb): Ditto. | |
1782 | (b_gnatl.o, b_gnatm.o): New rules. | |
1783 | ||
51c7954d EB |
1784 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
1785 | ||
1786 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
1787 | for the padded type built to support a specified size or alignment. | |
1788 | ||
6ddf9843 EB |
1789 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
1790 | ||
1791 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
1792 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
1793 | unconditionally to the end of the unit when the designated type is | |
1794 | limited_with'ed. | |
1795 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
1796 | for limited_with'ed types as well. | |
1797 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
1798 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
1799 | consistently and remove redundant call to finalize_from_with_types. | |
1800 | ||
5daed84a EB |
1801 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
1802 | ||
1803 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
1804 | subprograms without a previous spec declared in the same unit. | |
1805 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
1806 | subprograms at the end of the unit instead of at the beginning. | |
1807 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
1808 | isn't public for the special handling of non-inline functions nested | |
1809 | inside inline external functions. | |
1810 | ||
0edf1bb2 JL |
1811 | 2011-03-25 Jeff Law <law@redhat.com> |
1812 | ||
5daed84a | 1813 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 1814 | |
e3c4580e EB |
1815 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
1816 | ||
1817 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
1818 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
1819 | to compute Set_Size_Depends_On_Discriminant. | |
1820 | (Layout_Type): Call it on array types in back-end layout mode. | |
1821 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
1822 | types only if the size depends on the value of discriminants. | |
1823 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
1824 | type if the RHS is a call to a function that returns an unconstrained | |
1825 | type with default discriminant. | |
1826 | ||
abbc8c7b EB |
1827 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
1828 | ||
1829 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
1830 | non-conversion to the nominal result type at the end. | |
1831 | ||
ddb5a105 EB |
1832 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
1833 | ||
1834 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
1835 | (create_init_temporary): ...here. Call it. | |
1836 | (call_to_gnu): Create the temporary for the return value early, if any. | |
1837 | Create it for a function with copy-in/copy-out parameters if there is | |
1838 | no target; in other cases of copy-in/copy-out, use another temporary. | |
1839 | Push the new binding level lazily. Add and rename local variables. | |
1840 | ||
0d853156 EB |
1841 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
1842 | ||
1843 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
1844 | error message. | |
1845 | (set_rm_size): Likewise. | |
1846 | ||
4184ef1b EB |
1847 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
1848 | ||
1849 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
1850 | for the padded type built in order to support a specified alignment. | |
1851 | Fix incorrect formatting. | |
1852 | ||
bf7eefab EB |
1853 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
1854 | ||
1855 | PR bootstrap/48216 | |
1856 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
1857 | ||
ef0feeb2 EB |
1858 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
1859 | ||
1860 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
1861 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
1862 | to the end of the list. Adjust recursive call. Rename local variable. | |
1863 | If REORDER is true, reorder components of the record type. | |
1864 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
1865 | components_to_record and adjust the parameter list. | |
1866 | ||
646f9414 EB |
1867 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
1868 | ||
1869 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
1870 | disabled, use the variable for bounds of loop iteration scheme. | |
1871 | ||
62d784f7 KT |
1872 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
1873 | ||
1874 | PR target/12171 | |
0bad0e23 | 1875 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 1876 | |
f230d759 EB |
1877 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
1878 | ||
1879 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
1880 | out whether the expression is read-only. Short-circuit placeholder | |
1881 | case and rename a couple of local variables. | |
1882 | ||
bb1f7929 EB |
1883 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
1884 | ||
1885 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
1886 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
1887 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
1888 | (convert): Deal with conversions from a smaller form type specially. | |
1889 | ||
400a2d24 EB |
1890 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
1891 | ||
1892 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
1893 | its argument, except for the special -I- switch. | |
1894 | ||
c26bc3ad GP |
1895 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
1896 | ||
0bad0e23 EB |
1897 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
1898 | "Ada Issues". | |
c26bc3ad | 1899 | |
07b8e910 EB |
1900 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
1901 | ||
1902 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
1903 | ||
31a5a547 EB |
1904 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
1905 | ||
1906 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
1907 | GNAT_FORMAL. | |
1908 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
1909 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
1910 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
1911 | Do not generate the check directly, instead instantiate the template | |
1912 | check present in the descriptor. | |
1913 | (make_descriptor_field): Move around. | |
1914 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
1915 | (build_vms_descriptor): Remove useless suffixes. | |
1916 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
1917 | ||
dcf25f59 EB |
1918 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
1919 | ||
1920 | PR bootstrap/47467 | |
1921 | * targext.c: Include target files if IN_RTS is defined. | |
1922 | ||
0418e131 RG |
1923 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
1924 | ||
1925 | PR bootstrap/47467 | |
1926 | * targext.c: Include config.h. | |
1927 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
1928 | dependency. | |
1929 | ||
c6eecbd8 PO |
1930 | 2011-01-04 Pascal Obry <obry@adacore.com> |
1931 | Eric Botcazou <ebotcazou@adacore.com> | |
1932 | ||
1933 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
1934 | ||
2d3c7e4f EB |
1935 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
1936 | ||
1937 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
1938 | end-of-case on the end label and its associated gotos, if any. | |
1939 | ||
0394741f EB |
1940 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
1941 | ||
1942 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
1943 | expressions of the parameter cache within the statement group of | |
1944 | the CICO mechanism. | |
1945 | ||
2a02d090 OH |
1946 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
1947 | Eric Botcazou <ebotcazou@adacore.com> | |
1948 | ||
1949 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
1950 | (set_end_locus_from_node): New function. | |
1951 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
1952 | make and the function end_locus. | |
1953 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
1954 | for the elaboration subprogram. | |
1955 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
1956 | set the end_locus of the expression as well. | |
1957 | ||
89f5e978 EB |
1958 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
1959 | ||
1960 | PR ada/47131 | |
1961 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
1962 | variables that are referenced in exception handlers volatile. | |
1963 | ||
1964 | ||
ad41bd84 | 1965 | \f |
797103eb | 1966 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
1967 | |
1968 | Copying and distribution of this file, with or without modification, | |
1969 | are permitted in any medium without royalty provided the copyright | |
1970 | notice and this notice are preserved. |